【LaTeX排版--为目录章节加前缀】好多同学在用latex排版毕业论文的时候,发现目录只有序号+标题,很多同学问,老师,能不能给每章的标题前加一个前缀,如 第一章或 Chapter 呀?如:
%--------------------------------
The TITLE of Chapter 1
1.1 The title of section
1.2 The title of section
%------------------------------
那么,能不能自定义一个前缀呢,如:
%--------------------------------
第一章 The TITLE of Chapter 1
1.1 The title of section
1.2 The title of section
%------------------------------
或
%--------------------------------
Chapter 1 The TITLE of Chapter 1
1.1 The title of section
1.2 The title of section
%------------------------------
答案是:可以!我们用下面的这种方法,来解决这个问题:
在导言区加入如下代码
%--------------------------------
\usepackage{titletoc}%
\titlecontents{chapter}[0pt]{\addvspace{1.5pt}\filright\bf}%
{\contentspush{Chapter~\thecontentslabel\ }}%
{}{\titlerule*[8pt]{.}\contentspage}
%------------------------------
就会在每章的标题前 加 Chapter
如果是中文,我们改一下代码,如下:
%--------------------------------
\usepackage{titletoc}%
\titlecontents{chapter}[0pt]{\addvspace{1.5pt}\filright\bf}%
{\contentspush{第~\thecontentslabel\ 章 }}%
{}{\titlerule*[8pt]{.}\contentspage}
%------------------------------
就会在目录中每章的标题前,加 第x章 xxxxx
下面展示两个案例效果图
%--------------------------------
The TITLE of Chapter 1
1.1 The title of section
1.2 The title of section
%------------------------------
那么,能不能自定义一个前缀呢,如:
%--------------------------------
第一章 The TITLE of Chapter 1
1.1 The title of section
1.2 The title of section
%------------------------------
或
%--------------------------------
Chapter 1 The TITLE of Chapter 1
1.1 The title of section
1.2 The title of section
%------------------------------
答案是:可以!我们用下面的这种方法,来解决这个问题:
在导言区加入如下代码
%--------------------------------
\usepackage{titletoc}%
\titlecontents{chapter}[0pt]{\addvspace{1.5pt}\filright\bf}%
{\contentspush{Chapter~\thecontentslabel\ }}%
{}{\titlerule*[8pt]{.}\contentspage}
%------------------------------
就会在每章的标题前 加 Chapter
如果是中文,我们改一下代码,如下:
%--------------------------------
\usepackage{titletoc}%
\titlecontents{chapter}[0pt]{\addvspace{1.5pt}\filright\bf}%
{\contentspush{第~\thecontentslabel\ 章 }}%
{}{\titlerule*[8pt]{.}\contentspage}
%------------------------------
就会在目录中每章的标题前,加 第x章 xxxxx
下面展示两个案例效果图
#五月天# 五月天# 五月天新加坡# #五月天新加坡原价售票# #五月天新加坡演唱会# #2018年6月2日# #五月天演唱会# #五月天新加坡# #Mayday 五月天周边# #五月天拼房# #五月天拼票# #五月天转票# #五月天人生有限公司#
《原价让票》
【区域/座位】【持有数量】
cat 2- section 111 Row R x2
cat 2- section 111 Row V x4
cat 2- section 114 Row J x1
cat 2- section 116 Row C x1
cat 4- section 406 Row N x1
【价格】【手续费】【换实体票手续费】
cat 2- S$248 + $4 Booking Fee + $3 Printing Fee = S$255
cat 4- S$168 + $4 Booking Fee + $3 Printing Fee = S$175
#黄牛绕道 帮朋友买的时候多买了~ 然后又有些朋友临时不能去了
《原价让票》
【区域/座位】【持有数量】
cat 2- section 111 Row R x2
cat 2- section 111 Row V x4
cat 2- section 114 Row J x1
cat 2- section 116 Row C x1
cat 4- section 406 Row N x1
【价格】【手续费】【换实体票手续费】
cat 2- S$248 + $4 Booking Fee + $3 Printing Fee = S$255
cat 4- S$168 + $4 Booking Fee + $3 Printing Fee = S$175
#黄牛绕道 帮朋友买的时候多买了~ 然后又有些朋友临时不能去了
#好莱坞影片速递#【布莱克-莱弗莉片场受伤 新片《节奏感》暂停拍摄】据国外媒体报道,因出演《绯闻女孩》(Gossip Girls)而出名的美国演员布莱克·莱弗莉在新片片场不小心伤到了手,导致新片暂停拍摄。
这部莱弗莉正在拍摄的新电影是派拉蒙制作的一部间谍惊悚片,名为《节奏感》(The Rhythm Section)。派拉蒙的制片人已经向媒体证实,莱弗莉在拍摄一个动作场景时弄伤了自己的手,目前电影已经暂时停止拍摄,并会尝试尽早恢复拍摄。https://t.cn/RY3gG8n
这部莱弗莉正在拍摄的新电影是派拉蒙制作的一部间谍惊悚片,名为《节奏感》(The Rhythm Section)。派拉蒙的制片人已经向媒体证实,莱弗莉在拍摄一个动作场景时弄伤了自己的手,目前电影已经暂时停止拍摄,并会尝试尽早恢复拍摄。https://t.cn/RY3gG8n
✋热门推荐