Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使 TeX 文档中的数字重新编号?我希望主要数字是 1, 2, 3, ...等。但后来我想要一个部分有补充数字,S1,S2,S3,S4。“S”不必出现在图形名称中,但我确实想重置计数器。
接下来为数字重置计数器:
\setcounter{figure}{0}
您还可以使用以下方法添加“S”:
\makeatletter \renewcommand{\thefigure}{S\@arabic\c@figure} \makeatother
您可以使用重置数字计数器