General ⇒ toc and page numbering
toc and page numbering
I am using these commands:
\pagenumbering{roman}
\tableofcontents\newpage
\addcontentsline{toc}{chapter}{Contents}
\listoffigures\newpage
\addcontentsline{toc}{chapter}{List of Figures}
\listoftables\newpage
\addcontentsline{toc}{chapter}{List of Tables}
\pagenumbering{arabic}
to add list of figures, list of tables and contents in the table of contents itself.
I'm also numbering those pages with lowercase roman letters while the rest of the report has Arabic number.
Now, the problem is that often, in the pdf output, there is no correspondence between the page number shown in the contents and the page where the entry effectively is.
Either, though the previous commands, lists of figures and tables have Arabic pagenumbers.
Does anyone know what it is due to?
thank you.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- pumpkinegan
- Posts: 91
- Joined: Thu May 03, 2007 10:29 pm
toc and page numbering
Code: Select all
\pagenumbering{roman}
\tableofcontents\addcontentsline{toc}{chapter}{Contents}
\newpage
\listoffigures\addcontentsline{toc}{chapter}{List of Figures}
\newpage
\listoftables\addcontentsline{toc}{chapter}{List of Tables}
\newpage
\pagenumbering{arabic}
Re: toc and page numbering
But thank you for the suggestion.