I solved my problem. I add the following code for appendix.
\addtocontents{toc}{\protect\setboolean{isAppendix}{true}}
\addtocontents{toc}{%
\protect\contentsline{chapter}{\textbf{附件一}}{}{}}
Then, when the LaTeX generated ToC, it will make isAppendix=true before adding the appendix into ToC ...
Search found 7 matches
- Fri Aug 26, 2011 9:27 am
- Forum: Page Layout
- Topic: Add Stuff to ToC under XeLaTeX UTF8
- Replies: 2
- Views: 2622
- Mon Aug 15, 2011 8:31 am
- Forum: Page Layout
- Topic: Add Stuff to ToC under XeLaTeX UTF8
- Replies: 2
- Views: 2622
Add Stuff to ToC under XeLaTeX UTF8
It seems like no one can give a hint on my question. I have another thought. I can use
\addcontentsline{toc}{chapter}{Any Chinese Words}
to add a line in toc. But I don't want to show the page number and the dotted line (as those for Chapter in usual toc). Is there a way to do this? Can I use ...
\addcontentsline{toc}{chapter}{Any Chinese Words}
to add a line in toc. But I don't want to show the page number and the dotted line (as those for Chapter in usual toc). Is there a way to do this? Can I use ...
- Thu Aug 11, 2011 4:01 pm
- Forum: Page Layout
- Topic: Add Stuff to ToC under XeLaTeX UTF8
- Replies: 2
- Views: 2622
Add Stuff to ToC under XeLaTeX UTF8
Hi, I am working on my report. I use XeLaTeX and UTF8 for Chinese words. Below is my code. Because I want to add words for chapter title in the table of content, so I use \titlecontents command to modify the "chapter" level label. To differ from the appendix part, I add a boolean variable ...
- Thu Aug 11, 2011 3:08 pm
- Forum: Page Layout
- Topic: \addtocontents error while compiling
- Replies: 2
- Views: 5510
Re: \addtocontents error while compiling
Hi Stefan,
The code works. Thank you so much!
The code works. Thank you so much!

- Thu Aug 11, 2011 1:24 pm
- Forum: Page Layout
- Topic: \addtocontents error while compiling
- Replies: 2
- Views: 5510
\addtocontents error while compiling
Hi, I want to manually add a line into toc, and I used the code
\addtocontents{toc}{\contentsline{chapter}{\numberline{}APP}{}}
But in compiling (I use XeLaTeX), I got the error message as follow.
! Argument of \contentsline has an extra }.
<inserted text>
\par
l.104 ...ontentsline{chapter ...
\addtocontents{toc}{\contentsline{chapter}{\numberline{}APP}{}}
But in compiling (I use XeLaTeX), I got the error message as follow.
! Argument of \contentsline has an extra }.
<inserted text>
\par
l.104 ...ontentsline{chapter ...
- Thu Aug 11, 2011 11:12 am
- Forum: Page Layout
- Topic: Double Rule in Header
- Replies: 3
- Views: 9116
Double Rule in Header
Thank you Thorsten. Your code solved my problem. I slightly modified the code to generate a double-line, different thickness header and footer. Please find below about the code I used.
Thank you again, Thorsten. :)
\documentclass[11pt,english]{report}
\usepackage[T1]{fontenc}
\usepackage{babel ...
Thank you again, Thorsten. :)
\documentclass[11pt,english]{report}
\usepackage[T1]{fontenc}
\usepackage{babel ...
- Wed Aug 10, 2011 10:26 am
- Forum: Page Layout
- Topic: Double Rule in Header
- Replies: 3
- Views: 9116
Double Rule in Header
Hi, I use package 'fancyhdr' and I noticed that I can add a headrule in the header section. I learned that I can change the thickness of the line, and from fnacyhdr manual, I can change the \headrule from solid line to a dotted line. However, I don't understand the command used in the above change ...