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

Jerry jerry at seibercom.net
Sat Jun 1 22:59:32 CEST 2013


On Sat, 1 Jun 2013 13:10:59 -0700
William F Hammond articulated:

> Jerry <jerry at seibercom.net> writes:
> 
> > 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?
> 
> Put "\setcounter{secnumdepth}{0}" in the preamble.
> 
> Instead of \section*{} use \section{}.

Thank you. I did not know I could do that.

-- 
Jerry ♔

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__________________________________________________________________


More information about the texhax mailing list