{table-of-contents} is about the creation or modification of the Table of Contents or similar listings like List of Figures and List of Tables as well as custom lists. Popular packages are {tocloft}, {titletoc}, and {minitoc}.

learn more… | top users | synonyms (6)

5
votes
3answers
4k views

How to hide a footnote in a section title from the table of contents

This is a question that arose in the comments here: Change Section titles to Small Caps only in ToC I normally hide footnotes from the TOC by doing this: \section[title]{title\footnote{This is a ...
19
votes
4answers
3k views

Centering \section* and adding them to the ToC

I'm using LaTeX and the book class and have one problem: I want that my starred sections (only starred sections) appear in the center of the pages instead of the left side of the pages and also these ...
16
votes
2answers
2k views

How do I get \chaptername to appear in the table of contents?

In my tex file I have changed the chapter name from 'Chapter' to 'Day', using: \renewcommand \chaptername {Day} But when I generate a table of contents it only shows '1' and not 'Day 1'. How do I ...
10
votes
1answer
13k views

Remove dots & Page numbers from TOC

I am using example given here by @stephan TOC Section & Subsection coloring. Works great however I want to get rid of dots and page numbers. I added this to the preamble ...
9
votes
3answers
5k views

Add 'Page' above page numbers in Table of Contents

I am using my school's latex cls file. Unfortunately, since this package was last updated, we are now required to add the word 'Page' above the topmost page number on each page of the Table of ...
8
votes
2answers
424 views

Hyperref within hyperref

I'm using the hyperref package in LaTeX. In the compiled PDF, in the table of contents (TOC), I correctly get all the links to the corresponding chapters and sections. There is only one chapter which ...
8
votes
1answer
1k views

\chaptername is used even for appendix chapters in ToC

I have searched for something to resolve a problem that has shown up here: How do I get \chaptername to appear in the table of contents? I have tried the code from that thread. But I got an issue, ...
8
votes
1answer
5k views

Remove newpage after \tableofcontents, \listoffigures, etc. in book class

When using a documentclass of book, it seems there is a \newpage inserted after the \tableofcontents and \listoffigures. How can I suppress this? In articles, the following works. How can I get this ...
7
votes
1answer
2k views

Beamer with Warsaw Theme: Two column navigation

I am using Beamer with the Warsaw theme to make a presentation. I quite like having a mini-outline of the TOC at the start of each slide. However, I have found that it tends to take up quite a bit ...
8
votes
3answers
2k views

Adding numberless chapters to the table of contents

How do I include a chapter reference within the table of contents without giving it a chapter number? I am using the report document class. Normally, I would create a chapter as follows: ...
7
votes
2answers
1k views

Table of Contents with headings on every page

I am writing my doctoral thesis using LaTeX and now I face the following problems. On every page of the ToC, the headings must be printed. For example, on the first page and consecutive pages of the ...
34
votes
1answer
3k views

Resources for designing a table of contents

What various packages, example code, or examples of existing documents with available source code are available to assist one in: Changing the style and formating of a table of contents? Building a ...
22
votes
2answers
7k views

Hyperref: Changing the linkcolor locally in the TOC

I found that the link-color for TOC text is identical to the link-color for Figures and Tables. When I change the color to black in the TOC also the color for Figures/Tables citation etc. is changed. ...
16
votes
2answers
28k views

Bibliography in table of contents

\begin{document} \tableofcontents \include{chapter1} \bibliographystyle{plain} \bibliography{biblio} \end{document} The bibliography does not appear in the table of contents, have you an ...
11
votes
3answers
8k views

\tableofcontents from \part commands in Beamer

I am not able to generate the table of contents made of all the parts (declared by \part command) of my Beamer presentation. While sections of each part are listed easily, there is no hint in the ...
8
votes
2answers
5k views

coloring the page numbers in the table of contents

I try to color the page numbers of my table of contents. I'm using the package hyperref along with the options : \hypersetup{ colorlinks, linkcolor=wine-stain % custom color } Here's the ...
18
votes
4answers
1k views

How to determine whether a list of figures is empty, then not show it at all?

I want to check whether the document has any figures so as to decide whether or not to have a list of figures. Is this possible? Feasible without doing something like parsing the lof file? Note that ...
11
votes
2answers
6k views

Extra space for numbered titles in table of contents

Background A manual with chapters, sections, subsections, and sub-subsections. Using KOMA Script v2. Problem The spacing between the heading title and its number is too close to the number in some ...
5
votes
2answers
1k views

Help formatting table of contents, left margin numbers

Hello I am trying to get rid of some of the numbers on the left side of the table of contents entries. I am using the article class and I would like to eliminate numbers left of "sections" but not ...
5
votes
3answers
3k views

Customizing the list of listings generated by \lstlistoflistings?

I'm using listings in my document, and its command \lstlistoflistings to generate the list of listings. The problem is that I've customized all the other lists (TOC, LOF and LOT). More precisely, I've ...
14
votes
6answers
7k views

ToC numbering problem

My LaTeX document is acting strangely. Here is a simplified version of it: \documentclass{article} \begin{document} \tableofcontents \newpage \addcontentsline{toc}{part}{A Part of My Document} ...
10
votes
2answers
7k views

Changing the TOC style of an Article document-class

When typesetting an article documentclass, the sections appear as bold in the table of contents, with no leading dots. I would like to change these to non-bold, and insert some leading dots. I tried ...
8
votes
4answers
594 views

Index is incorrectly listed in the table of contents

I have a large document with an index compiled through makeindex, and is included in my source .tex as follows: \cleardoublepage \phantomsection \addcontentsline{toc}{chapter}{Index} \printindex ...
7
votes
1answer
501 views

First chapter appearing before first line in table of contents

I have a table of contents in my memoir book. I want there to be one line for each chapter, in addition to headings for each set of similar chapters. For some reason, the line for the first chapter ...
6
votes
4answers
5k views

Custom list of hypotheses in table of contents format

The Context: I am writing a multi-chapter scientific report with many numbered hypotheses. I have created a custom hypothesis environment in the preamble: \newtheorem{hypothesis}{Hypothesis}[chapter] ...
4
votes
1answer
6k views

Adjusting spaces for the ToC [duplicate]

Possible Duplicate: TOC Text - numbers alignment How to modify the indentation before sectioning titles in the table of contents? I have a LaTeX document with many subsections (more than ...
13
votes
1answer
2k views

Hiding the “Table of Contents” page from Table of Contents

I'm using the memoir class, and it adds the Table of Contents page to the TOC. It is... well... pretty redundant... Any quick way to eliminate this? \documentclass{memoir} \begin{document} ...
7
votes
1answer
801 views

Space length between the chapter number and the chapter title

How can I learn the horizontal distance between the chapter number and the chapter title both in ToC and the body text where I use \documentclass[12pt,reqno]{book}. Which keys hold these values?
6
votes
1answer
328 views

write contents of an environment to document and toc

I want to write the contents of an environment to the document and the toc. Here's a MWE hacked to look (almost) like what I need. \documentclass[pdftex,12pt]{book} \usepackage{hyperref} ...
4
votes
1answer
97 views

Redefining \listoffigures and \listoftables as tables

A friend of mine is required by his faculty to format his lists of figures (= "Abbildungsverzeichnis") and tables (= "Tabellenverzeichnis") as shown in the picture below. Is there a way to realize ...
30
votes
3answers
1k views

Visual table of contents using tikz mindmap or similar

For a book, I'd like to have a visual table of contents, showing parts, chapters (and maybe sections) visually as a radial tree diagram or mindmap. Ideally, it would be lovely to have some tool to ...
54
votes
1answer
23k views

Captions for figures in \listoffigures

When I use \listoftables and \listoffigures I get in the list long captions that appear next to the tables/figures. I would like to use short captions for this list which summarize these captions. Is ...
22
votes
1answer
5k views

Two independent TOCs

I wonder if there is any way to achive two independent TOCs. For example I write a document and have my regular \tableofcontents right after my titlepage. For some reason I have a long appendix and ...
22
votes
4answers
2k views

Is there an easy way to tag content in a LaTeX document?

I am writing a document which will contain many small (approximately a page) snippets of text, potentially organized in sections or subsections. To each such section, I would like to attach several ...
18
votes
2answers
11k views

Remove “chapter #” from the chapter title but keep chapter number in the table of contents

I am using report document class. I want to remove word "Chapter" and "chapter number" from chapter title, so when new chapter starts I will get only chapter title. I can do it using: ...
12
votes
1answer
10k views

Show ToC of only a section in beamer (completely hide other subsections)

I'm using beamer for a presentation. What I want is that whenever a section o subsection starts, it completely hides other subsections that are outside the section in the ToC. I mean, for example if ...
11
votes
2answers
1k views

tcolorbox - list of listings?

In a book with figures, tables and listings, I figured out that all listings and some tables and figures look better when presented in a tcolorbox. The book has the usual tables of contents: ...
9
votes
2answers
3k views

Numbered section hidden from the ToC

I'm writing a set of course notes that has an appendix containing many activities. I do not wish the activities to be shown in the Table of Contents, but I do wish them to be numbered. Here is the ...
18
votes
2answers
46k views

Making a table of contents for a book

I'd like to know how to create a table of contents in LaTeX. For example, if I were to write a book, I would want something like this Contents Chapter 1 1.1 Real Analysis .............. 1 ...
5
votes
1answer
2k views

How to create a fancy table of contents for Beamer

How can I create a fancy-looking table of contents for a Beamer presentation? \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \begin{document} \frame{ \tableofcontents ...
16
votes
2answers
7k views

change caption in list of tables

I would like to change the caption in the List of Tables in a way it is different from the caption in the corresponding table. How can I do that? Does there exist a command to do that?
16
votes
2answers
3k views

Avoid hyperlinked TOC if hyperref is used

I'm using the hyperref package because I have a link in my document, but do not want to have the TOC as links. How can this be done?
13
votes
2answers
2k views

Two tables of content

See the min expl below. I would like to have two ToC: one giving only the rough structure of the document and a second one giving all the details down to subsubsections. The code pasted below should ...
7
votes
1answer
701 views

How to emulate titletoc with tocloft

I was using titletoc until I realized that it has some incompatibilities with hyperref. The thing is, that titletoc can do the same thing in a easier way, less one. \titlecontents*{subsection}[5.4em] ...
9
votes
3answers
10k views

Formatting the title of the TOC

I would like for example to have a bold Arial like font and a red color for the title of the table of contents, and also I would like to change this title to for example "Another title for the table ...
8
votes
3answers
858 views

Insert key words & key phrases into toc

To make the structure of documents (here: my PhD-thesis) comprehensible straight from the ToC, I would like to insert some key words or key phrases in each element of the ToC. I saw this device in a ...
8
votes
2answers
837 views

How to add some text to every page of the TOC?

I'm finalizing my dissertation, and they require that the "Table of Contents - Continued" heading in the ToC (that shows if it flows onto a second page) be centered. I thought I could find the code ...
5
votes
1answer
8k views

Adding appendix “chapters,” without sections, in table of contents

I have a document with two appendices, and I would like the appendices to appear in the table of contents but without the sections of each appendix appearing. For example, I would like the table of ...
5
votes
1answer
4k views

List of Appendices

My document guidelines for a multi-chapter thesis requires that any appendices be pulled out of the TOC and dropped into a separate List Of Appendices (LOA). The latex package put together for my ...
4
votes
2answers
3k views

How do I include a \section*{} in a \tableofcontents? [duplicate]

Possible Duplicate: Centering \section* and adding them to the ToC I've got something like \documentclass{article} \begin{document} \tableofcontents \section*{About this Article} ...