开发者

Renumbering figure in LaTeX?

开发者 https://www.devze.com 2023-01-10 10:35 出处:网络
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开发者_如

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开发者_如何学Go have to appear in the figure name, but I do want to reset the counter.


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


you can reset the figure counter with

\setcounter{figure}{0}
0

精彩评论

暂无评论...
验证码 换一张
取 消