user248237
user248237

Reputation:

Renumbering figure in LaTeX?

How can I make figures be renumbered in a TeX document? I want the main figures to be 1, 2, 3, ...etc. But then I want a section to have supplementary figures, S1, S2, S3, S4. The "S" does not have to appear in the figure name, but I do want to reset the counter.

Upvotes: 55

Views: 97831

Answers (2)

TjibbeD
TjibbeD

Reputation: 826

Next to reseting the counter for the figures:

\setcounter{figure}{0}

You can also add the "S" by using:

\makeatletter 
\renewcommand{\thefigure}{S\@arabic\c@figure}
\makeatother

Upvotes: 81

second
second

Reputation: 28637

you can reset the figure counter with

\setcounter{figure}{0}

Upvotes: 11

Related Questions