[texhax] Adding "\section*" entries to TOC

jfbu jfbu at free.fr
Sat Jun 1 21:58:52 CEST 2013


If you insert

\setcounter{secnumdepth}{0}

at the beginning of the body of the document, and use \section{FOO}
without the star, then the TOC will display the (unnumbered) section
entries.

Subsections will not be numbered too, and you can control with the
tocdepth counter if they appear or not in the TOC

regards

Jean-François

Le 1 juin 2013 à 20:37, Jerry <jerry at seibercom.net> a écrit :

> I have a document that contains over 50 sections using the
> "\section*{FOO}" style. I want these listed in the TOC; however, I am
> unable to figure out how to do it automatically. The sections do not
> have numbers in the main document, and I do not want them listed with
> pseudo numbers in the TOC. Other than entering each one individually via
> "\addcontentsline{}{}{}", which would be extremely slow, is there way to
> accomplish this?
> 
> Thanks!
> 
> -- 
> Jerry ♔
> 
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the Reply-To header.
> __________________________________________________________________
> 
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> 
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org




More information about the texhax mailing list