Renumbering figure in LaTeX?

user248237 picture user248237 · Aug 2, 2010 · Viewed 67.3k times · Source

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.

Answer

TjibbeD picture TjibbeD · Aug 5, 2010

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