Hello there,
I have some sections that are not numbered using the \section*{SECTION_NAME} command. But I want them to appear in the table of contents.
I have used the \addcontentsline{toc}{section}{SECTION_NAME} command which does add the correct section but the page number that it gives is that of the table of contents not the page the section is on.
Does anyone know why this is the case and/or can fix it.
Thanks.
Page Layout ⇒ Formatting Table of Contents
Re: Formatting Table of Contents
It's ok, I've solved it.
I had put the commands just before the \include tableofcontents command which is where is takes its reference.
By moving the command to just after the \section{} command then it picks up the correct page number.
I had put the commands just before the \include tableofcontents command which is where is takes its reference.
By moving the command to just after the \section{} command then it picks up the correct page number.