Let me explain my problem.
I am using the command \tableofcontents, and I also need to have itself of Contents (as a section) in TOC.
So that I use the following code:
Code: Select all
\addcontentsline{toc}{section}{Contents}
\tableofcontents
As I have checked the *.toc file, I saw that its key refers to the previous section.
I therefore updated my code as the following:
Code: Select all
\section*{\centering Contents}
\addcontentsline{toc}{section}{Contents}
\tableofcontents
How can I remove the one created automatically?
Or is there another way to handle this situation?
Thanks.
bkarpuz