Page LayoutModify table of Contents content

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
bindigit1
Posts: 7
Joined: Sat Aug 08, 2009 12:16 am

Modify table of Contents content

Post by bindigit1 »

I know that the title sounds like a vicious circle, but here is a problem I have while writing my dissertation: I want the numbering of the TOC to look like this:

Acknowledgements iii
Abstract v
Contents vii
1 Introduction 1
2 Survey 6


etc.
I have successfully changed the numbering of pages from roman to arabic after the table of contents part BUT I cannot find a way to include acknowledgements, abstract, and contents in the Table of Contents.

Any ideas how this can be done?

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
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Modify table of Contents content

Post by frabjous »

Have you tried this?

Where the acknowledgements section occurs in your document, add:

\addcontentsline{toc}{chapter}{Acknowledgements}

And so on.

I don't know what document class you're using, but the following works perfectly well for the Book class:

Code: Select all

\documentclass{book}
\begin{document}
%
\frontmatter
Whatever is on page i.
%
\cleardoublepage
\addcontentsline{toc}{chapter}{Acknowledgements}
\chapter*{Acknowledgements}
These are acknowledgements.
%
\cleardoublepage
\addcontentsline{toc}{chapter}{Abstract}
\chapter*{Abstract}
This is the abstract.
%
\cleardoublepage
\addcontentsline{toc}{chapter}{Contents}
\tableofcontents
%
\mainmatter
\chapter{Introduction}
This is chapter one.
\chapter{Survey}
This is chapter two.
\end{document}
Last edited by frabjous on Sat Aug 08, 2009 12:40 am, edited 1 time in total.
bindigit1
Posts: 7
Joined: Sat Aug 08, 2009 12:16 am

Re: Modify table of Contents content

Post by bindigit1 »

Thank you. It works perfectly for aknowledgements and abstract. However, for table of contents, if I put the Tex line you gave just before the Table of contents, it numbers the previous page as the first page of TOC (similarly, it numbers one page after the end of TOC, if I put it at the end - I do not know if this makes sense as I describe it here...)
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Modify table of Contents content

Post by frabjous »

I added some code after I posted. Perhaps it would help. The key is to use \cleardoublepage (or just \clearpage, if you're using openany) before adding the line.
bindigit1
Posts: 7
Joined: Sat Aug 08, 2009 12:16 am

Re: Modify table of Contents content

Post by bindigit1 »

Thank you very much!
Post Reply