How do I get figure numbers to run in the same sequence as equation numbers, eg (1.2.3) equation …. figure 1.2.4? For the environments I define I use \newtheorem{thm}[equation]{THM}
, but I don't know how to do the same trick with pre-defined environment like figure.
[Tex/LaTex] Numbering figures
floatsnumbering
Best Answer
The required numbering scheme can be confusing since figures written using the
figure
environment might float away from the point where you wrote them in the code (see my example code below in which the numbers appear out of their natural order).If you want this scheme, using, for example. the
amsmath
package and its\numberwithin
command you can make theequation
andfigure
counters tied to section numbering: then, with the help of theetoolbox
package you can make thefigure
environment to increase theequation
counter and viceversa: