When creating a table of content (TOC) , bibliography and index are not listed when created with \bibliography and \printindex. This is how you get them to appear in the TOC with the correct page numbers.
\cleardoublepage
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{plain}
\bibliography{../all}
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Index}
\printindex
\cleardoublepage
\addcontentsline{toc}{chapter}{Bibliography}
\bibliographystyle{plain}
\bibliography{../all}
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Index}
\printindex
Comments
Post a Comment