{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 (4)

31
votes
1answer
5k views

How to modify the indentation before sectioning titles in the table of contents?

I'm preparing a document using the book class. In the table of contents, the indentation before the subsection title is too long. How to reduce it?
35
votes
4answers
22k views

How can I display a short chapter name in the header and a long chapter name in the ToC?

I am writing a book and one of my chapter has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the \chapter[short title]{long title} ...
37
votes
3answers
9k views

List sections of chapter at beginning of that chapter

How can one have a mini table of contents for the current chapter appear just after the chapter name listing all sections of that chapter?
14
votes
1answer
5k views

How to show subsections and subsubsections in TOC?

So we have something like: \documentclass[english]{article} \setcounter{secnumdepth}{2} \setcounter{tocdepth}{2} \usepackage{amsmath} \usepackage{tocloft} \usepackage{xstring} \usepackage{titlesec} ...
142
votes
4answers
6k views

Pretty Table of Contents

I would like to know if it's possible to have a Table of Contents looking like the following, where the number of the page is the big number on the left. The sections could look like in the ...
8
votes
2answers
2k views

TOC Text - numbers alignment

I am using \tableofcontents to create TOC in my document. however it is appearing as shown in the image. As the numbers increase the gap between the number and text is reducing. Thanks for your ...
22
votes
2answers
16k views

Creating unnumbered chapters/sections (plus adding them to the ToC and/or header)

I'm using the report document class for a thesis, and I need to add things like "Acknowledgements" and an "Introduction". I noticed that there is an \abstract command which would have been wonderful ...
46
votes
4answers
39k views

Making the bibliography appear in the table of contents

I need to make my (BibTeX) references section appear in the table of contents of my LaTeX document (documentclass: article), with section numbering too. My approach until now has been making a new ...
25
votes
1answer
1k views

Table of Contents with additional description of entries

I would like to achieve table of contents with additional description for chapters/sections (see screenshot). What way would you go to achieve this? I'm wondering if it is possible to wrap the ...
13
votes
5answers
2k views

Roman numerals become “too wide” in table of contents

Following minimal document: \documentclass{report} \begin{document} \renewcommand*\thechapter{\Roman{chapter}} \tableofcontents \setcounter{chapter}{6} % Problem starts at chapter 7 \chapter{Seven} ...
18
votes
2answers
12k views

How to change the title of ToC?

I need to change default title of ToC. Is it possible with titlesec package? Here is my MWE: \documentclass{book} \usepackage{titlesec} ...
11
votes
2answers
4k views

Section added by \addcontentsline on the wrong page

I am adding a section with the bibliography references by using \addcontentsline in order to add a link to the table of contents. Unfortunately the link in the table of contents links to a wrong page, ...
6
votes
1answer
251 views

Chapterwise page range in the TOC

Can you give me some advice for how to obtain the following format of the TOC? Chapter’s heading 1-7 Chapter’s heading 9-10 Chapter’s heading 11-15
15
votes
2answers
8k views

Incorrect bookmarks and page number in table of contents

I have problem with table of contents and with bookmarks. In pdf file table of contents shows wrong page number of Introduction and Bibliography, Bookmarks: introduction and bibliography don't bring ...
27
votes
1answer
9k views

How to make clickable links and cross-references in pdfs produced by LaTeX?

How can I make things link url references, my index, table of contents, and cross references clickable links in documents produced by LaTeX? I generally use pdflatex to produce my documents.
20
votes
3answers
7k views

How to remove the self-reference of the ToC from the ToC?

I'm having a very weird problem. The following example should illustrate it quite right. \documentclass[a4paper,12pt]{memoir} \begin{document} \frontmatter \tableofcontents \clearpage ...
14
votes
3answers
7k views

How to change the line spacing in my list of figures?

I am using the book documentclass and have a list of figures. After much trouble I noticed that there is a blank line to separate figures that are in different chapters, but not if they are within the ...
13
votes
1answer
2k views

Adding word 'Table' before each entry in list of tables

I need to prefix each entry in list of tables and figures with appropriate text - table or figure for each. Also I need to remove chapter numbers from list, because tables are numbered consequently ...
23
votes
1answer
3k views

How to customize the table of contents using TikZ?

Are you aware of tentatives to customize the table of contents with TikZ? I am thinking of fancy graphical objects (coloured ovals, squares, rectangles...) coming with "chapter" or the numbering, for ...
9
votes
2answers
2k views

Minitoc and memoir

I read this question about minitoc but I can't make it work with memoir. Is there an known incompatibility between these two ? Is it somehow possible to make it work ?
8
votes
2answers
3k views

Ignore citations in captions in list of figures when numbering

When using the \cite command in figure captions and the ieeetr bibliography style, then BibTeX numbers the citations as appearing earlier than they do in reality (i.e. the first citation in the ...
6
votes
1answer
316 views

Table of Contents modifications required

I tried latex code for generating toc suggested by stack exchange in response to my previous query . Still I need small modifications. In the first page of toc, At top middle “TABLE OF CONTENTS” is ...
30
votes
1answer
1k views

Adding a per-chapter image along with group of entries in ToC

Friends, I have an old analytic geometry book with an unusual table of contents: for every group of entries based on the current chapter, there is an image along with it. Well, let me show some actual ...
16
votes
2answers
1k views

Beamer: Vertical alignment of multi-column ToC

In my LaTeX beamer presentation I have a long Table of Contents, which has been split across two columns by using the multicol package. The problem is that I have not found any way to control vertical ...
17
votes
3answers
3k views

Include chapters in List of Figures with titletoc?

I'm working on a book using titlesec&titletoc and want to include chapters (with their numbers and names, but no page number) in the list of figures, if and only if they contain figures. Manually ...
17
votes
3answers
1k views

How can I force ToC not to end with a chapter?

So I am writing a programming book and I decided to include \sections in the ToC as well (see picture below). The problem I am having is that I have ugliness where \chapter is the last item on the ...
13
votes
3answers
766 views

Is there any way to produce List of frames with beamer?

There is a way to make TOC using \tableofcontents, but there are only sections and subsections. How can I get list of all frames without using sectioning?
18
votes
4answers
2k 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 ...
15
votes
2answers
1k 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 ...
11
votes
3answers
4k views

List of Figures - how to add caption label

I'm using the caption package. In the List-Of-Figures I get only the numbers, but I also want to have the prefix. It currently looks like that: List of Figures 1 Caption of Figure 1........1 ...
7
votes
1answer
3k 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 ...
6
votes
2answers
235 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
3answers
1k 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
668 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 ...
6
votes
3answers
652 views

Why does Beamer's table of contents items link to the second slide in a section?

When I include a table of contents in a Beamer slide show, each section entry in the TOC ends up linking to the second slide in that section. I would have expected it to link to the first slide. What ...
4
votes
2answers
183 views

Fix formatting errors of page number > 99 in table of contents?

This is a follow up question of Page numbers > 99 in the table of content are not aligned correctly (cleanthesis). The formatting problem has nothing to do with cleanthesis.sty. The problem is ...
23
votes
1answer
2k 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 ...
30
votes
1answer
12k views

Adding unnumbered sections to TOC

I have many unnumbered sections in my report (more than 100), all created with: \section*{section name} I want to find an way to easily add all them to the TOC (specifically to a minitoc), since I ...
5
votes
3answers
3k views

Creating a separate list of appendices with tocloft

I'm very sorry but I have to ask for urgent help as I could not make sense of the individual questions I asked previously. I'm required a separate list of appendices, i.e. the appendix is not to show ...
13
votes
1answer
3k views

make section headings invisible?

Simple question here: how to make section headings invisible, but still get the correct list of sections in the TOC and headers ? e.g. on page 10, if I do a \section{New section}, I must not see the ...
13
votes
2answers
6k views

Table of Contents with Chapter

I'm attempting to modify the Table of Contents in my document. Currently, chapter one in my document is listed as 1 Introduction What I would like to see is Chapter 1 Introduction Seems ...
8
votes
3answers
11k views

List of Equations / Table of Equations

After finding Table of Equations and http://www.latex-community.org/forum/viewtopic.php?f=5&t=428, I set about making a List of Equations for my document. The catch here is that we already have a ...
14
votes
6answers
6k 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} ...
8
votes
1answer
758 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
4answers
461 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
2answers
584 views

\makeatletter explained

I am using the following code in my beamer document to make the frame title's appear in the table of contents: \documentclass{beamer} \usetheme{default} \usepackage{bookmark} \usepackage{etoolbox} ...
7
votes
1answer
341 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
4k 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] ...
5
votes
1answer
1k 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 ...
4
votes
1answer
428 views

Add the word “Algorithm” before each entry in the List of Algorithms

I'm trying to add the word "Algorithm" before each entry in the List of Algorithms (because of unavoidable thesis guidelines). I saw similar questions but the solutions listed there don't work for ...