Latex: Addcontentsline break page numeration in table of content
Thu, Aug 20, 2020
One-minute read
In some of my documents I have the secion below:
\phantomsection
\addcontentsline{toc}{chapter}{Bibliografia}
\begin{thebibliography}{9}
\end{thebibliography}
\phantomsection
\addcontentsline{toc}{chapter}{Spis rysunków}
\listoffigures
\phantomsection
\addcontentsline{toc}{chapter}{Spis tabel}
\listoftables
It did that in the table of content the page numeration was broken. Changing above configuration by adding \cleardoublepage
:
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Bibliografia}
\begin{thebibliography}{9}
\end{thebibliography}
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Spis rysunków}
\listoffigures
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Spis tabel}
\listoftables
fixed the issue.
Useful resources: Stack Exchange: Table of Contents incorrect page numbering
Newsletter
Thank you for visiting my website. I hope you enjoyed content which I prepared and learned something valuable from it. If you want to be informed about my next entries or occasionally get a message with a collection of some interesting links, please subscribe to my newsletter. I will be extremely pleased if you do this and join my community!