简体   繁体   English

在LaTeX中为数字标题添加前缀?

[英]adding prefix to figure caption in LaTeX?

How can I change the caption of all figures in LaTeX to include a prefix? 如何更改LaTeX中所有数字的标题以包含前缀? For example, make all figures appear as "Supplementary Figure 1", "Supplementary Figure 2", ... rather than "Figure 1", "Figure 2"? 例如,使所有数字显示为“补充图1”,“补充图2”,......而不是“图1”,“图2”?

thanks. 谢谢。

答案是使用以下命令:

\renewcommand{\figurename}{Supplementary Figure}

To number labels with prefix 'S', use: \\renewcommand{\\thepage}{S\\arabic{page}} 要为前缀为“S”的标签编号,请使用: \\renewcommand{\\thepage}{S\\arabic{page}}
\\renewcommand{\\thesection}{S\\arabic{section}}
\\renewcommand{\\thetable}{S\\arabic{table}}
\\renewcommand{\\thefigure}{S\\arabic{figure}}

To modify the text used at the start of a caption: \\renewcommand{\\figurename}{Supplemental Material, Figure} 要修改标题开头使用的文本: \\renewcommand{\\figurename}{Supplemental Material, Figure}

Source: https://www.stat.berkeley.edu/~paciorek/computingTips/Customizing_numbering_pages.html 资料来源: https//www.stat.berkeley.edu/~paciorek/computingTips/Customizing_numbering_pages.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM