Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Including starred sections in TOC

42 views
Skip to first unread message

Jeroen

unread,
Apr 28, 2001, 7:11:23 AM4/28/01
to
Hi everyone,

Is there a way to include starred (unnumbered) sections in the TOC? In a lot
of books you see things like preface and list of figures in the TOC, not so
in my case. What am I doing wrong?

Thanks, Jeroen


Jeroen

unread,
Apr 28, 2001, 9:14:31 AM4/28/01
to
Okay, I have found out how to do the list of figures/tables with
\addcontentsline but I would like to know if there is a standard way to
include starred sections into the TOC?


Donald Arseneau

unread,
Apr 28, 2001, 10:05:32 AM4/28/01
to
"Jeroen" <J.G.H...@student.utwente.nl> writes:

\addcontentsline is the standard way to include starred sections
into the TOC.

But you ask too specific a question. If you asked how to have
unnumbered sections in the TOC, I would have told you about
\frontmatter and \backmatter in \documentclass{book}, and
the counter "secnumdepth".

Donald Arseneau as...@triumf.ca

Geoffrey Swindale

unread,
Apr 28, 2001, 1:20:38 PM4/28/01
to
Truth is rarely pure, and never simple
"Jeroen" <J.G.H...@student.utwente.nl> wrote in message
news:9ceg2n$nh5$1...@dinkel.civ.utwente.nl...

> Okay, I have found out how to do the list of figures/tables with
> \addcontentsline but I would like to know if there is a standard way to
> include starred sections into the TOC?
>

\addcontentsline{toc}{section}{\numberline{}Sectionname}

does the trick quite nicely, and AFAIK is the only way to do it, you can
change {section} to {chapter} for chapters etc.

--
Geoffrey Swindale
---------------------------------------------------------
Truth is rarely pure, and never simple

Peter Wilson

unread,
Apr 30, 2001, 12:03:29 PM4/30/01
to Jeroen

One way is to not bother with starred sections but use the tocvsec2
package which gives you independent control, at any points in your
document, over what gets numbered and what gets listed in the ToC.

Peter W.
peter.r...@boeing.com

0 new messages