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.
Tell me more
×
TeX - LaTeX Stack Exchange is a question and answer site for
users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
|
The required numbering scheme can be confusing since figures written using the If you want this scheme, using, for example. the
|
||||
|
|
|
You want to use the same counter for figures as you use for equations? Here's one solution:
The solution was borrowed from a TeX stackexchange discussion on Slave Duplicate Counters |
|||
|
|

figureenvironment might float away from the point where you wrote them in the code. – Gonzalo Medina May 20 '12 at 2:31amsmathpackage is loaded, all you need to do is issue the command\numberwithin{figure}{section}. – Mico May 20 '12 at 5:07