在使用Latex写文章时,经常不满足于默认的章节编号样式,故有自定义编号样式的需求,例如需要改成中文的编号等等。本文总结了一些常见编号样式的修改方法。

%section
%修改编号为数字
\renewcommand\thesection{\arabic{section}}
%修改编号为小写字母
\renewcommand\thesection{\alph{section}}
%修改编号为大写字母
\renewcommand\thesection{\Alph{section}}
%修改编号为中文数字(需要导入ctex宏包)
\renewcommand\thesection{\chinese{section}}

其他诸如subsection之类的同理操作即可。