General ⇒ [toc] how to add Chapter before 1.introduction in toc
[toc] how to add Chapter before 1.introduction in toc
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
[toc] how to add Chapter before 1.introduction in toc
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
...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: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
[toc] how to add Chapter before 1.introduction in toc
Re: [toc] how to add Chapter before 1.introduction in toc
Re: [toc] how to add Chapter before 1.introduction in toc
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
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.