I am trying to manually add several subsections to my table of contents. How do I do this? When I use \addcontentsline the entries appear as sections (with no indent), not subsections. Specifically, how do I add a subsection so that it is indented? Also, how do I add roman numerals to all the manually added sections?

For example:













I. Automatically Added Section ... 3

Ch2 ... 4

Ch2-1 ... 4 (I want to indent this)

Ch3 ... 5

Any help would be appreciated!

  • \addcontentsline{toc}{subsection}{\protect{\numberline{\thesubsection} foo} ;-) or \addcontentsline{toc}{subsubsection}{...}. But why are you adding it manually? If \thesubsection is defined to output Roman numbers the ToC will show them as well – user31729 Jan 3 at 18:06
  • They're added as sections because you use \addcontentsline{toc}{section}{..}. If you want them to be formatted like subsections, then use \addcontentsline{toc}{subsection}{..}. – Werner Jan 3 at 18:16

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.