Generaladdtocontentsline at beginning of toc?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
moinmoin
Posts: 8
Joined: Wed Oct 01, 2008 4:54 pm

addtocontentsline at beginning of toc?

Post by moinmoin »

Greetings,

as indicated in the subject: how to insert a section / chapter before the auto-generated toc? adding at the end works, but I can't find an option to put it at the beginning. The section in question is a glossary which I would like to have at the beginning instead of at the end.

The nomencl package has an option to do it (option 'intoc'), but I prefer the package acronym which - sadly - lacks this option, so I have to do it manually. But how?

cheers

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

addtocontentsline at beginning of toc?

Post by Stefan Kottwitz »

Hi,

just use \addcontentsline or \addtocontents before the first sectioning commands to insert a line at the beginning of the toc.

Stefan
LaTeX.org admin
moinmoin
Posts: 8
Joined: Wed Oct 01, 2008 4:54 pm

Re: addtocontentsline at beginning of toc?

Post by moinmoin »

quick and correct answer - as ever :)

For me, \addcontentsline works better than \addtocontents

thanks!
Post Reply