10 latex typesetting tex mathematical-typesetting
如何更改LaTeX中所有数字的标题以包含前缀?例如,使所有数字显示为"补充图1","补充图2",......而不是"图1","图2"?
谢谢.
小智 16
答案是使用以下命令:
\renewcommand{\figurename}{Supplementary Figure}
Run Code Online (Sandbox Code Playgroud)
小智 12
要为带有前缀“S”的标签编号,请使用:
\renewcommand{\thepage}{S\arabic{page}}
\renewcommand{\thesection}{S\arabic{section}}
\renewcommand{\thetable}{S\arabic{table}}
\renewcommand{\thefigure}{S\arabic{figure}}
要修改标题开头使用的文本:
\renewcommand{\figurename}{Supplemental Material, Figure}
资料来源:https : //www.stat.berkeley.edu/~paciorek/computingTips/Customizing_numbering_pages.html
小智 5
如果您希望重新从 1 开始对数字进行编号,请添加第二行。
\renewcommand{\figurename}{Supplementary Figure}
\setcounter{figure}{0}
Run Code Online (Sandbox Code Playgroud)