I'm having trouble getting LaTeX to format my thesis table of contents correctly. I've tried several different packages and guides from the forums, but haven't made any progress.
The specific issues I would like to fix are: - large and bold font for TOC name should be normal font and not bold. - TOC depth isn't correct. It won't show sub-sections. - dots connecting page number to heading - "page" label at top-right of TOC.

    %General Packages

    %%Bibliography Setup

    % toc SETUP


    \renewcommand{\contentsname}{{TABLE OF CONTENTS}}

    \chapter{Test 1}
    Test Text
    Test Text
    Test Text
    \chapter{Test 3}
    Test Text
    Test Text
    Test Text

This is what I would like: This is what I would like:

And this is what I currently get: And this is what I currently get:

  • For displaying subsections, \setcounter{tocdepth}{2} should do the trick. – Manuel Weinkauf Jan 25 '17 at 17:47
  • Forgive me for my question: why on earth do you have to insert the Table of Contents into the Table of contents? What information does the gentle reader gain from this input? It seems more natural, to align the page numbers flush right/ragged left. – Jan Jan 25 '17 at 18:16
  • @ManuelWeinkauf: he already had \setcounter{tocdepth}{3} in his MWE. But he needs to set it to 4. Same to \setcounter{secnumdepth}{4}. – Jan Jan 25 '17 at 18:26
  • 1
    Another comment: stared section commands like \subsection* won't be inserted into the Table of Content. A lot of the packages in your MWE are not concerned to your question. You should consider to leave them aside. You should put the package hyperref towards the end of the packages. Usually it is the last package. – Jan Jan 25 '17 at 18:31
  • 1
    @Jan: I agree with you about having the ToC itself listed in the ToC, but it will add a bookmark if hyperref is used, so it's quite easy to jump to the ToC using the bookmark panel. Some say the ToC should be listed...well, that's what memoir supports, for example, unless \tableofcontents* is used – user31729 Jan 25 '17 at 18:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.