Please, can you help me with the problem.
Now I have the following automatic numeration:
Section 1
Figure 1
Figure 2
Section 2
Figure 3
Figure 4
Section 3
Figure 5
Figure 6
But I want:
Section 1
Figure 1.1
Figure 1.2
Section 2
Figure 2.1
Figure 2.2
Section 3
Figure 3.1
Figure 3.2
How can I achieve this?
Graphics, Figures & Tables ⇒ Advanced Numeration of Figures&Tables
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Advanced Numeration of Figures&Tables
Hi an24,
welcome to the board!
If you're already using amsmath, you could achieve that by
Or use the cngcntr package:
Or, especially if your document is large, consider to use a class like book or report (or scrbook, scrreprt, memoir) that provide chapters. Usually figures and tables would already be numbered in the desired way, per chapter.
Stefan
welcome to the board!
If you're already using amsmath, you could achieve that by
Code: Select all
\numberwithin{figure}{section}
\numberwithin{table}{section}
Code: Select all
\usepackage{chngcntr}
\counterwithin{figure}{section}
\counterwithin{table}{section}
Stefan
LaTeX.org admin
Re: Advanced Numeration of Figures&Tables
Thanks a lot! It works.