GeneralUn-numbered sections in Frontmatter

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Sekantombi
Posts: 21
Joined: Mon Apr 21, 2008 3:50 am

Un-numbered sections in Frontmatter

Post by Sekantombi »

Friends,

How to do:

Un-numbered headings in frontmatter that still appear in TOC?

Starred versions don't appear in TOC, yet normal sections produce result: "0.0.1" etc. which ain't good.

Is there some way to combine starred sections with [optional title]?

S.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Un-numbered sections in Frontmatter

Post by Stefan Kottwitz »

Hi Sekantombi,

you can combine starred sections with \addcontentsline.
Or manipulate the secnumdepth counter, look here into the UK TeX FAQ: Unnumbered sections in the Table of Contents.

Stefan
LaTeX.org admin
Sekantombi
Posts: 21
Joined: Mon Apr 21, 2008 3:50 am

Re: Un-numbered sections in Frontmatter

Post by Sekantombi »

Thanks Stefan,

Will investigate that --- not thinking too clearly after a long day's TeX-ing.

Strange thing I'm struggling with at the moment.

By manipulating secnumdepth and tocdepth, and starring various things in frontmatter, got the effect that I wanted. Will look at yours too --- probably more elegant.

However, with mine I have a strange effect --- 'Contents' appears in the header (fancyhdr being used) until the first chapter starts.

How do I stop this from happening?

Have fairly extensive frontmatter (~26pp.)

S.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
Joined: Mon Mar 10, 2008 9:44 pm

Un-numbered sections in Frontmatter

Post by Stefan Kottwitz »

Hi Sekantombi,

you can use \markboth to override or to clear the headings after \tableofcontents.

Stefan
LaTeX.org admin
Post Reply