• LaTeX: Table of Contents tricks

    by  • Friday 29 December 2006 • Software • 1 Comment

    As my dissertation draft grows bigger (and messier…), I see that I need to restrict the depth of the Table of Contents. These lines do the trick:

    \setcounter{tocdepth}{1}
    \tableofcontents

    First I tried to use tocdepth 2, but that gave me three levels. I guess this is because it counts the chapter level as 0.

    I have also been wondering why the bibliography hasn’t shown up in the table of contents. I haven’t found an explanation, but the solution is this:

    \addcontentsline{toc}{chapter}{References}
    \bibliographystyle{chicago}
    \bibliography{arj-references}

    About

    Alexander Refsum Jensenius is a music researcher and research musician living in Oslo, Norway.

    http://www.arj.no

    One Response to LaTeX: Table of Contents tricks

    1. Jan Doe
      Tuesday 22 April 2008 at 23:51

      You must add this to your document class options to put the bibliography and the lof to your toc.

      \documentclass[liststotoc,bibtotoc...]

    Leave a Reply

    Your email address will not be published. Required fields are marked *