General ⇒ [toc] how to add Chapter before 1.introduction in toc
[toc] how to add Chapter before 1.introduction in toc
by default the toc formed like this
NameOf1stChapter
1. Introduction..................1
1.1 xxx.............................2
How to change it to
CHAPTER 1--NameOf1stChapter...........1
1. Introduction.........................................1
...
I used
\renewcommand{\cftchappresnum}{CHAPTER }
However, it overlaps with the NameOf1stChapter
Thanks a lot
NameOf1stChapter
1. Introduction..................1
1.1 xxx.............................2
How to change it to
CHAPTER 1--NameOf1stChapter...........1
1. Introduction.........................................1
...
I used
\renewcommand{\cftchappresnum}{CHAPTER }
However, it overlaps with the NameOf1stChapter
Thanks a lot
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10323
- Joined: Mon Mar 10, 2008 9:44 pm
[toc] how to add Chapter before 1.introduction in toc
Hi chao,
perhaps try like this, untested:
Stefan
perhaps try like this, untested:
Code: Select all
\renewcommand*\cftchappresnum{\MakeUppercase{\chapapp}~}
\settowidth{\cftchapnumwidth}{\cftchappresnum}
\renewcommand{\cftchapaftersnumb}{\qquad}
...
% perhaps for the appendix:
\addtocontents{toc}{%
\protect\renewcommand*\protect\cftchappresnum{\MakeUppercase{\appendixname}~}}
\appendix
...
LaTeX.org admin
Re: [toc] how to add Chapter before 1.introduction in toc

it works.
I only changed \chapapp to "chapter"
a following question is how to add "...." to link the "chapter 1. introduction" to page number "1" in toc?
- Stefan Kottwitz
- Site Admin
- Posts: 10323
- Joined: Mon Mar 10, 2008 9:44 pm
[toc] how to add Chapter before 1.introduction in toc
LaTeX.org admin
Re: [toc] how to add Chapter before 1.introduction in toc
you are my savor
Re: [toc] how to add Chapter before 1.introduction in toc
Hi
as per dept. requirement, i want similar to this
CHAPTER 1 Introduction...........1
1. Introduction..................1
as per dept. requirement, i want similar to this
CHAPTER 1 Introduction...........1
1. Introduction..................1
Re: [toc] how to add Chapter before 1.introduction in toc
Hi
as per dept. requirement, i want similar to this
CHAPTER 1 Introduction...........1
1.1 Introduction.........1
I am using book class. Please any one can help me to solve this problem.
i used following command but no use
\renewcommand*\cftchappresnum{\MakeUppercase{\chapapp}~}
\settowidth{\cftchapnumwidth}{\cftchappresnum}
\renewcommand{\cftchapaftersnumb}{\qquad}
i am getting error message. thank you for your help.
as per dept. requirement, i want similar to this
CHAPTER 1 Introduction...........1
1.1 Introduction.........1
I am using book class. Please any one can help me to solve this problem.
i used following command but no use
\renewcommand*\cftchappresnum{\MakeUppercase{\chapapp}~}
\settowidth{\cftchapnumwidth}{\cftchappresnum}
\renewcommand{\cftchapaftersnumb}{\qquad}
i am getting error message. thank you for your help.
[toc] how to add Chapter before 1.introduction in toc
1,1,2,3,5,8,13,21,34,55,89,144,233,...