Text FormattingIgnoring one section in TOC

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Yeats
Posts: 62
Joined: Fri Nov 07, 2008 12:29 pm

Ignoring one section in TOC

Post by Yeats »

Hi,
I need LaTeX to ignore my first section in toc. Anyone knows command to do that?

Let me explain: My first section is Introduction. After that comes the First Chapter

It all looks like this:

Code: Select all

1 Introduction
2 First Chapter Name
3 Second Chapter Name
4 Third Chapter Name
Literature
I would like to get toc to look like this:

Code: Select all

Introduction
1 First Chapter Name
2 Second Chapter Name
3 Third Chapter Name
Literature
What i tried for now is to add \setcounter{section}{-1} before Introduction which produce this:

Code: Select all

0 Introduction
1 First Chapter Name
2 Second Chapter Name
3 Third Chapter Name
Literature
Is there anyway to tell LaTeX to ignore one section in toc?

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Ignoring one section in TOC

Post by localghost »

Nothing easier like this.

Code: Select all

\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}
This is for standard classes. Other classes may have built-in features.


Best regards
Thorsten¹
Yeats
Posts: 62
Joined: Fri Nov 07, 2008 12:29 pm

Ignoring one section in TOC

Post by Yeats »

localghost wrote:Nothing easier like this.

Code: Select all

\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}
This is for standard classes. Other classes may have built-in features.


Best regards
Thorsten¹
Worked like a charm. Thank you.
Post Reply