Page LayoutTable of contents

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

Table of contents

Post by bazman »

Hi there,

Thanks to help on this board I was abke to create a table of contents.

However the table of contents are included as pasge numbers?

Is there a way to circumvent this?

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
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Re: Table of contents

Post by Stefan Kottwitz »

Hi,

please explain further what you want to achieve or what's unwanted.

Stefan
LaTeX.org admin
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

Re: Table of contents

Post by bazman »

Sorry,

currently the contets pages are counting towards the total number of pages.

I would rather that page 1 was page 1 of chapter 1.

Is that clearer?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Table of contents

Post by Stefan Kottwitz »

Perhaps ... I guess you want to start the page numbering with the first chapter and to suppress the numbering of the previous pages, have a look at

Code: Select all

\documentclass[a4paper,10pt]{book}
\begin{document}
\pagestyle{empty}
\addtocontents{toc}{\protect\thispagestyle{empty}}
\tableofcontents
\clearpage
\setcounter{page}{1}
\chapter{Test}
text
\end{document}
Stefan
LaTeX.org admin
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

Re: Table of contents

Post by bazman »

Perfect!
bazman
Posts: 78
Joined: Mon Jan 26, 2009 3:24 am

Re: Table of contents

Post by bazman »

ah no wait!

Now all the page number are missing?

How can I turn them back on at chapter1?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Table of contents

Post by Stefan Kottwitz »

Just call again \pagestyle with the style you want, like

Code: Select all

\pagestyle{headings}
at the beginning of the first chapter.

Stefan
LaTeX.org admin
Post Reply