如何使用乳胶将分段拆分?

时间:2017-07-17 16:32:29

标签: latex

我是连续的章节序列,但我想分段而不改变数字。例如,当前索引如下。

Chapter 1
Chapter 2 
Chapter 3 
Chapter 4 
Chapter 5

现在让我在一个片段中需要第2章和第3章,而在另一个片段中需要4到5。我希望我的索引看起来像下面这样(不改变实际章节号)。如果可能的话,我想在第2章和第4章之前添加整页以表明这些段。

 Chapter 1
 **--SEGMENT 1----**
 Chapter 2 
 Chapter 3 
**--SEGMENT 2---**
Chapter 4 
Chapter 5
你可以告诉我一种方法吗?

1 个答案:

答案 0 :(得分:0)

一种方法是使用tocloft包:

\documentclass{book}
\usepackage{tocloft}

\renewcommand{\thepart}{\arabic{part}}

\begin{document}

\tableofcontents

\part{Fauna}
\chapter{Native fauna}
\chapter{Introduced fauna}
\chapter{Extinct fauna}

\part{Flora}
\chapter{Native plants}
\chapter{Invasive plants}

\end{document}

产生此目录: enter image description here

如果您希望目录显示“段”和“章”字,您可以在序言中使用这样的内容:

\renewcommand{\cftpartpresnum}{SEGMENT~}
\renewcommand{\cftchappresnum}{Chapter~}
\renewcommand{\cftchapnumwidth}{2.5cm}