54

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.

pedrosaurio
  • 4,708
  • 11
  • 39
  • 53
  • 4
    This would be better asked on the TeX/LaTeX Stack Exchange site, now in public beta: http://tex.stackexchange.com/questions – David Z Aug 02 '10 at 20:39
  • have you looked at the caption package? – Mica Aug 02 '10 at 20:42
  • See http://tex.stackexchange.com/questions/41318/how-to-change-table-numbering-scheme-at-a-new-section and http://bytesizebio.net/2013/03/11/adding-supplementary-tables-and-figures-in-latex/ for more information and http://tex.stackexchange.com/questions/39315/how-to-change-the-numbering-for-different-figures and http://tex.stackexchange.com/questions/85776/change-figure-numbering-for-appendix?rq=1 for more info – kdauria Mar 13 '14 at 23:33

2 Answers2

77

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
gioele
  • 9,748
  • 5
  • 55
  • 80
TjibbeD
  • 786
  • 5
  • 2
11

you can reset the figure counter with

\setcounter{figure}{0}
second
  • 28,029
  • 7
  • 75
  • 76