【转载】Latex定制章节编号格式和计数器

原文: http://www.chengkaiblog.com/software-application/latex/customize-section-format-counter.html

_1._编号格式

修改section/subsection编号格式的方法如下:

\renewcommand\thesection{\Roman{section}}
\renewcommand\thesubsection{\Roman{section}.\Alph{subsection}}

其中,可通过修改\Roman\Alph等字样达到修改编号格式的问题,可选的格式有

\arabic 阿拉伯数字
\roman 小写的罗马数字
\Roman 大写的罗马数字
\alph 小写字母
\Alph 大写字母

可通过上面进行组合,实现自己想要的编号格式。

_2._编号深度

在report, book结构中,subsubsection是没有编号的,但是可以利用以下命令使得subsubsection也有编号

\setcounter{secnumdepth}{3}  <-修改编号最深层次 ,其中secnumberdepth,book类-2~5,缺省为2,-2时取消编号, article类-1~5,缺省为3。

_3._计数器

latex内部有23个计数器,17个为序号计数器,6个是控制计数器,选列如下,因此我们可以根据需要改变计数器计数形式。

计数器名 用途
part 部序号
chapter 章序号
section
subsection 小节
subsubsection 小小节
paragraph
subparagraph 小段
figure 插图序号
table 表格序号
equation 公式序号
page 页码计数器
footnote 脚注序号
mpfootnote 小页环境中脚注计数器

修改计数器值的方式

\setcounter{计数器名}{数}

eg. LaTeX系统自动给每页一个编号, 页码编号从1开始, 如果要使页码编号从3开始, 也就是打印出来的第一页的编号是3, 该怎么办?

\setcounter{page}{3}




微信公众号:AutoML机器学习
MARSGGBO原创
如有意合作或学术讨论欢迎私戳联系~
邮箱:marsggbo@foxmail.com

2020.03.01



posted @ 2019-01-28 18:29  marsggbo  阅读(12053)  评论(0编辑  收藏  举报