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

7
votes
2answers
152 views

How to clear what has been previously declared with \AtEndDocument?

I am using a class file that uses \AtEndDocument to include a table of contents at the end of the document. However, I would like to override the original \AtEndDocument and force the document not to ...
7
votes
2answers
385 views

Alignment of page numbers in table of contents

Consider the following example: \documentclass[a4paper,12pt]{article} \begin{document} \tableofcontents \newpage \section{test} \newpage \setcounter{page}{22} \section{introduction} \newpage ...
7
votes
2answers
93 views

How to replace fixed indentation of ToC entry names with fixed space between number and name?

How to make indents as in the second image? This is what it looks like now: This is what it should look like: MWE: \documentclass[a4paper, 14pt, english]{extreport} \usepackage[T2A]{fontenc} ...
7
votes
2answers
1k views

List of Figures/Tables - eliminate dots?

I need to eliminate the dots that appear in \listoffigures and \listoftables results - is there an easy way to do that? EDIT: I think I need to actually eliminate the dots. Modifying @dotsep via ...
7
votes
4answers
3k views

How can I force long chapter names (including page numbers) to stay in the margins on the table of contents?

I'm somewhat new to LaTeX and have been tasked with satisfying some strict formatting requirements for this LaTeX document using a custom class. Currently, if there is a long chapter name (within a ...
7
votes
4answers
102 views

Know the width of the widest section label in memoir

I'm using memoir class to write my master's thesis, and my university asks to align all section labels to the left. I say section, but I really mean all levels, as chapters, sections, subsecs and so ...
7
votes
2answers
104 views

How to add an environment in the table of contents?

For example, if I use amsbook document class and have the section Problems, how to include problem environments created like: \documentclass[a4paper,12pt, reqno, oneside]{amsbook} ...
7
votes
2answers
484 views

How do I remove spacing from before the table of contents in memoir class?

I am using memoir class to create a collection of short stories, and the default space before the table of contents and chapter titles is quite large. I have seen several posts on this site that show ...
7
votes
1answer
1k 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} ...
7
votes
1answer
292 views

Right-align numbers in ToC

How do I right-align the section/subsection/.. number in the ToC? The distance between the number and the heading should be fixed. Instead of | 1 Section | 1.1 Subsection I'd like ...
7
votes
1answer
2k views

Setting TOC depth not working

I'm using a \documentclass[11pt]{book} document. I have tried to define a TOC with a maximum depth of 4 with: \setcounter{secnumdepth}{4} \setcounter{tocdepth}{4} \tableofcontents The resulting ...
7
votes
1answer
725 views

Table of contents (minitoc, parttoc) and line breaks

I have to make a table of contents for each part of a book document. I use minitoc package, and \parttoc command. I have line breaks (\\) in the chapters and sections titles in both [] and {} ...
7
votes
3answers
5k views

How can I add abstract and acknowledgement pages into the table of contents?

I followed Mike's solution from my first question: Roman numeral page numbering My next question is how to add entries (for the abstract and acknowledgements pages) into the table of contents.
7
votes
3answers
587 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 ...
7
votes
1answer
806 views

Add colors that depend on chapters to the TOC

I'would like to add different colors in my TOC, depending on the chapter. I've a color for the header, section subsection of each chapter (red chapter one, blue chapter two etc...). With this code I ...
7
votes
1answer
971 views

How do I indent the 2nd line a long chapter name created using the tocloft package so that it lines up correctly?

I am using the tocloft package already. I have a couple of long chapter names that wrap onto a second line, but it lines it up with the section numbers below. I must have this new line line up with ...
7
votes
2answers
847 views

Grouping the list of listings by chapter

I am using the listings package. I want to print out a list of listings, which I can do. The thing is that in the other listings the typesetter "groups" figures/tables by chapter. Is it possible to ...
7
votes
1answer
61 views

Separator in middle of table of contents

How can I put some kind of separator, (say horizontal line or tikz edge), mid way through the table of contents to break the Table of Contents into distinct blocks for frontmatter, mainmatter and ...
7
votes
2answers
126 views

Table of contents not dotfilling?

Is this wrong? It seems the ToC does dotfilling only for sections and not subsections. Why is this happening and how can I fix it? I'm using \tableofcontents and nothing else to generate this ToC, ...
7
votes
2answers
601 views

LaTeX contents page: hiding specific page numbers automatically

Is it possible to have a contents page in LaTeX that doesn't show a page number of a particular subsection, if the one immediately before it shares the same page number? e.g. If there are 3 ...
7
votes
1answer
1k views

Turn off List of Figures for Appendix material

How do I prevent figures in the Appendix from appearing in the list of figures? It seems that after the command \appendix the numbering automatically starts. I've tried leaving the first part in ...
7
votes
2answers
175 views

Have some figures show up in two listofs: list of figures and list of special figures

I have a number of figures in my dissertation. Out of those figures, there are some that I want to be included simultaneously in two listof's: the standard "List of Figures" and a non-standard "List ...
7
votes
2answers
343 views

Location of entry's page number in toc, lot and lof

I'm using titlecontens offered by titletoc package to format the entries in toc, lot and lof. For a multiline entry, the default location of its corresponding page number is after the last line of ...
7
votes
2answers
275 views

Create plain CSV list of pages with/without figures

I'm wondering if there's an easy way to have LaTeX output two lists: of pages containing and of pages not containing figures and/or other color objects. I'd like to print color pages on a color ...
7
votes
1answer
958 views

Remove chapter from ToC

\documentclass{mwrep} \begin{document} \tableofcontents \chapter{c1} \chapter{c2} \chapter*{c3} \chapter*{c4} \section*{s} \chapter{c5} \end{document} I know chapter* removes a chapter from ...
7
votes
1answer
74 views

Supress `\cleardoublepage` for _some_ chapters

I am using book environment. Between \listoffigures, \listoftables, \printglossary[glossaryname]s and appendices, I need a normal \clearpage between them (not a \cleardoublepage). I still need to ...
7
votes
1answer
128 views

How to change the display of subfigures in List of Figures?

I'm using the subcaption package and I would like to change the display in the List of Figures of the subfigures. Right now, it displays as : 2.1 Caption 1 . . . . . . . . . . . . . . . . . . . . . ...
7
votes
2answers
161 views

Problem with missing spaces when having >9 subsections in table of contents (using the beamer class)

I have googled extensively and found no answer to my specific question. My problem is: I am creating lecture slides using the beamer class. My style file is University-specific. I have, in my first ...
7
votes
1answer
83 views

Page Number Spacing Issue With Titletoc

I'm new to LaTeX and I could use a bit of help. I'm using the report class and I'm trying to color the chapter headings a green I have defined. I don't really want to change the default formatting, ...
7
votes
1answer
387 views

Index not linked properly in the navigation

I'm having troubles making Index visible in the navigation that is shown with the pdf preview of the document. Namely, the following is the end of my main .tex file: % Bibliography % ...
7
votes
1answer
747 views

Strange blank page between abstract and ToC

I am puzzled by a blank page appearing between my abstract and ToC. Since I'm using the report document class, I am not expecting LaTeX to insert any blank pages. Here is a MWE showing the problem: % ...
7
votes
1answer
361 views

How to set Table of Contents page numbers ragged right?

First post and certainly a tyro at LaTeX. Thanks to all those who have made this site such a helpful resource. I'm using the memoir class to typeset a novel, and would like to have the Table of ...
7
votes
2answers
245 views

Creating lists of figures based on groups

Friends, consider the following code: \documentclass{article} \usepackage{graphicx} \usepackage{lipsum} \begin{document} \listoffigures \newpage \lipsum[2] \begin{figure}[h] \centering ...
7
votes
1answer
528 views

Second page of list of figures: spacing too large

I have a list of figures which spans multiple pages. The first page is looking just fine but when it continues on to the next page, the space between the lines is more than tripled compared to the ...
7
votes
3answers
121 views

Write “chapter” before list of figures

if I use the \listoffigures command LaTeX creates a new chapter (I'm using the book class), but there is no chapter heading. Is it like it uses \chapter*{List of figures}. Of course this is what we ...
7
votes
1answer
204 views

The line spacing in the list of algorithms

This is my code: \documentclass[12pt,a4paper]{book} \usepackage[T1]{fontenc} \usepackage[chapter]{algorithm} \renewcommand{\baselinestretch}{1.5} \begin{document} \begin{spacing}{1.2} ...
7
votes
1answer
180 views

Insert Text between “List of XXX” Heading and Actual Listing

I would like to insert a small paragraph of text between the "List of Figures" heading and the actual list of figures, and also between "List of Listings" and the actual list of listings. I am using ...
7
votes
1answer
106 views

How do I get a chapter \ref in counting numbers when the ToC uses Roman numerals?

My university's formatting requirements for theses require Roman numerals for chapters in the table of contents (e.g. "Chapter II ..... Lions"), but for references to chapters within the text, ...
7
votes
2answers
136 views

Move section out of part

I am using the document class article. Once I place a part in the document, all subsequent sections belong to the part automatically. How can I reset a section such that it does not belong to a part? ...
7
votes
1answer
170 views

How can I add Section numbering and a Contents entry to the PDF bookmarks?

I'm having a bit of trouble with the PDF bookmarks. I am trying to Add "Contents" as an entry to the PDF bookmarking. Have numbering for my sections and subsections. I am looking to achieve ...
7
votes
1answer
1k views

Hyperref, Table of Contents and subsections

I have encountered a problem in latex that I have not been able to solve. While the hyperref package generates clickable links in the table of contents, it does not link any subsection to the actual ...
7
votes
1answer
310 views

How to leave nomenclature list out of table of contents

In my thesis, I have a table of contents, list of figures, list of tables and a list of symbols and nomenclature generated with nomencl (in that order). The lists of figures and tables do not appear ...
7
votes
1answer
440 views

Table of contents: Dots and title

I want to remove the dots of the table of content (toc), so i used: \makeatletter \renewcommand{\@dotsep}{10000} \makeatother but it doesn’t work… How can I remove the title (name) of the toc? ...
7
votes
1answer
248 views

Memoir mysterious overfull hbox in TOC when mathptmx is used

I'm trying to troubleshoot an overfull hbox warning that arises with some long chapter titles in memoir. I've narrowed it down to the following minimal example. The problem arises with mathptmx but ...
7
votes
1answer
258 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 ...
7
votes
2answers
142 views

How can I list items created with the float package in the ToC

I created a new type of float using the float package. \floatstyle{plaintop} \newfloat{recommendation}{htbp}{lop}[section] \floatname{recommendation}{Recommendation} I would like it listed in the ...
7
votes
1answer
564 views

Fancy part name in TOC

I was just trying to add some fancy part name in TOC using a code I got from a post in this site. Here is what I added. \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
7
votes
1answer
609 views

\minitoc on the \part-page

I would like to modify the \partpage such that it shows a table of contents of that part. Preferably also one or two levels deeper than the toc in the beginning of the document. In styling the \part ...
7
votes
1answer
157 views

Hide section in table of contents but show it in pdfbookmark

This question is linked to another newer question. For my PDF Bible I need the Bible-Chapter (section) to be hidden in the table of contents. The same Bible-Chapter (section) should however appear in ...
7
votes
1answer
334 views

Text alignment issue in custom Table of Contents

As you can see from the image below, I have an issue with the text alignment of extra long chapter names. How can I fix it so that the text will not go further left than the start of the chapter name? ...

1 2 3 4 5 28