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

5
votes
3answers
252 views

list of occurences of references

I need a list like the list of figures for \ref entries in the text to instances of a custom Theorem environment. Here's a MWE with a handbuilt example. The solution should add features to this code I ...
5
votes
1answer
6k 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 ...
5
votes
1answer
1k views

Beamer: increase radius of circle in TOC and include subsection bullet

I am trying to increase the radius of the circle in the TOC of a beamer presentation and include a subsection bullet. The beamer manual states gives an example of \setbeamertemplate{some beamer ...
5
votes
2answers
2k views

How to remove “zero” preceding section number?

\documentclass[11pt]{book} \usepackage[svgnames]{xcolor} \makeatletter \let\stdl@section\l@section \renewcommand*{\l@section}[2]{% \stdl@section{\textcolor{blue}{#1}}{\textcolor{blue}{#2}}} ...
5
votes
1answer
471 views

Spacing (numwidth) control for listtheorems

I am using the \listtheorems command from ntheorem to generate a list of theorems for a document. However, because I number the theorems inside sections, the theorem number is a bit on the long side, ...
5
votes
2answers
3k views

TOC Section & Subsection coloring

Is it possible to create a TOC with section headings in one color and subsection headings in different color. \tableofcontents \setcounter{tocdepth}{2} I am using above lines to create TOC, do I ...
5
votes
1answer
2k views

How do you make a TOC link cover text and page number?

The hyperref package allows you to specify that TOC links in the pdf cover the text (default) or the page number (linktocpage=true), but not both. That is, you can have this: [My Title]. . . . . . ...
4
votes
1answer
247 views

Remove blank page between Acknowledgements and Table of Contents?

I get a blank page between “Acknowledgement” and “Table of contents”. How can I remove it? I used a template from somewhere. The preamble is as follows: \documentclass[openany,12pt]{ubthesis} ...
4
votes
1answer
81 views

How to use \section*{something} without removing it from the Table of Contents?

I am trying to insert an abstract and acknowledgement page into my report. I want to suppress the (numbers in front of): Abstract Acknowledgment part by using \section*. But by doing so, it is ...
4
votes
1answer
302 views

Let title distinct in mainmatter and TOC and header

Title in mainmatter (long title): Sec.1 The introduction of TEX --- A powerful typsetting system blabla... Sec.2 installation blabla... Title in TOC (short title, line break before em ...
3
votes
3answers
392 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 ...
3
votes
1answer
2k views

How to make (force) line-break in Chapter Title (in ToC, Chapter, Header) - if possible?

I've found how to make different text for Title appearing in ToC, Chapter and headers Chapter title in header too long : \chapter[medium-length title for TOC, if wanted]{full title name} ...
2
votes
3answers
3k views

How to change the style of “Contents” heading?

Help me, please to make the style of "Contents" heading to be as \chapter{Le choix du thème}. Also I would like to put all headings a little bit higher and to fix the hyperref for "Contents" in pdf ...
1
vote
1answer
148 views

Hyperref-ize the keywords in toc

once I asked in Insert key words & key phrases into toc whether it is possible to insert some keywords in the toc that it looks like this: Contents 1 section .............................1 key ...
11
votes
1answer
187 views

Problems with mathtools package

The following code produces an error. If the mathtools package is removed, it works. Why? \documentclass{report} \usepackage{mathtools} \usepackage{etoolbox} \newbool{shorttoc} \makeatletter ...
10
votes
1answer
2k views

List of figures: source below image caption?

I'm relatively new to LaTeX and currently working on a paper. In my list of figures, I'd like to have a structure like this: Fig. 1: <Title of figure> . . . 1 ...
10
votes
1answer
440 views

How to highlight specific entries in a tocloft-formatted ToC

I am writing a document using the book class, and I use tocloft in order to customize the appearance of my ToC. So far, the package did a great job for most customizations, except for one thing: I am ...
9
votes
1answer
714 views

List of Figures + Beamer?

I want to have a List of Figures in my Beamer presentation. I spent some time searching the web for a solution and only found desperate people telling others that it's not possible, i.e. here or here ...
8
votes
3answers
2k views

Excluding chapters from ToC in amsbook

I'm writing a book using the amsbook class, and I've included a page for acknowledgements using \chapter*{}, thinking it wouldn't show up in the ToC. However, it does (and for some reason it's ...
8
votes
1answer
334 views

How do I create a new command \listofcodes in latex?

In addition to tables and figures, I have a bunch of code pieces. Just like follows: \begin{figure} \lstinputlisting[ language=C++, breaklines=true, keywordstyle=\color{blue}, ...
8
votes
1answer
13k views

Changing color and bullets in Beamer's table of contents

Does anyone know how to change the color scheme and/or bullets used in Beamer's table of contents (without changing the overall structure color or theme)? Unfortunately, the following doesn't work: ...
6
votes
1answer
860 views

suppress pagebreaks in titletoc's titlecontents* blocks

How do I suppress pagebreaks in the toc "paragraphs" produced by titlesec's \titlecontents* command without stopping linebreaks between subsections? The follwoing suppresses linebreaks within ...
6
votes
2answers
388 views

Use italic ampersand in different sizes depending on environment

This is going to be a little complicated: in the spirit of Bringhurst I am trying to incorporate italic ampersands into headings. I am using a LuaLaTeX modified version of classicthesis, hence the ...
6
votes
2answers
3k views

customizing TOC

I'm new to latex, I'm thankful if someone can give me an example script to customize TOC that looks like Chapter 1.XXXXXX (1-15) 1.1 ...
5
votes
5answers
170 views

Reference to the Table of Contents page

I thought that someone must have asked this, but my searches didn't find it. I am looking to refer back to the table of contents from places in my document. How can I do this?
5
votes
2answers
58 views

entries in the toc from printindex

I want the entries in the TOC for the indices to align with the Chapter entries. I can do this with \addcontents. \printindex also puts an entry in the TOC but it is aligned with the section entries. ...
5
votes
1answer
250 views

Splitting list of figures

I'm starting to accumulate a large and fairly unwieldy list of figures at the start of my thesis and want to split that list into two. I want to have a list of the 'main' figures included in the ...
5
votes
1answer
289 views

lstlistoflistings isn't showing the lstlistingname

I've actually a problem with my document. I redefined the listing for my ruby code: \usepackage{listings} \renewcommand\lstlistingname{Quellcode} \lstloadlanguages{Ruby} \lstset{% ...
5
votes
1answer
143 views

Remove Formatting in Table of Contents

I have custom colouring in the section headings, i.e. \section{\textcolor[red]{Heading}}, so when I use \tableofcontents it prints the table of contents including all the unnecessary colouring. Is ...
5
votes
2answers
502 views

Replacing page number with other counter in listoftodos

I'm using the todonotes package to add notes in my documents. The \listoftodos command adds a ToC for todos. Instead of the page numbers in this ToC, I would like to display another value, for ...
5
votes
1answer
784 views

\listoffigures chokes on inline math delimiters in captions. What is going on?

I'm working on my thesis, and I've realized that, any time I try to use \( \)-type inline delimiters in captions, that pdflatex breaks. While I can weasel out of actually \needing\ math in my ...
4
votes
1answer
113 views

How to add cover pages to appendices?

For my thesis, I need to have appendices preceded by a cover page. From school manual: As of now, I have \documentclass[12pt,letterpaper,oneside]{book} \usepackage[toc,page]{appendix} ... ...
4
votes
1answer
204 views

Aligning long table captions in the list of tables using tocloft

I am using the tocloft package so that the word Table shows up before the number in the list of tables. When I do this, the tables with long captions wrap to the next line but are not aligned. This ...
4
votes
3answers
350 views

Table of content only on right-side pages

Is there any way I can force all the pages of table of contents (and its family) to be printed only on the right side ? Presently I am having it as : \phantomsection \tableofcontents ...
4
votes
1answer
443 views

remove unwanted contents from list of listings

The following code adds a wrong line to the list of listings \documentclass{scrbook} \usepackage{listings} \usepackage{filecontents} \begin{document} \begin{filecontents*}{democodefile} ...
4
votes
1answer
569 views

Separate table of appendices - pdf bookmarks & avoid previous chapter's format

I'm trying to format my thesis which requires a seperate list of appendices. Thanks to a really useful post - Creating a separate list of appendices with tocloft - I have the list up and running. I'm ...
4
votes
1answer
343 views

Same distance between chapter head and text / toc

With the following example, I get a different vertical distance between "Contents" and "1 bar 5" and "foo" and "Lorem". How do I get the first entry of the TOC to the same height as "Lorem ipsum", ...
4
votes
1answer
486 views

Hyperref breaks my all-caps ToC entries

I started out on this earlier question. I now have a simple and elegant etoolbox solution to making all-caps chapter entries, but leaving appendix entries untouched. Simple, elegant, and incompatible ...
3
votes
2answers
56 views

Since few days: Trouble with mhchem using \listoftables or \listoffigures

I'm having trouble with the mhchem package. When I have a figure with a separate TOC entry that involves a \ce{} environment, I get error messages saying that the control sequence \aaaa is not ...
3
votes
2answers
100 views

How can I make a reference to a Glossary that typesets as \glossarytoctitle?

I'm using the glossaries package. I created a custom glossary called foo with the title, "My Foo Glossary Title": \newglossary[fgg]{foo}{fgs}{fgo}{My Foo Glossary} Ideally, I'd like to make a ...
3
votes
1answer
37 views

Alignment of the titles in a ToC and \Roman{section}

There is a problem with the alignment of the numbering of the ToC: When we use \renewcommand{\thesection}{\Roman{section}} the numbers encroach on the titles. When the command is commented out, ...
3
votes
2answers
359 views

tex4ht: limit toc

When I run the following file through htlatex main html,4, the first (main) page has a table of contents that is too deeply nested. I only need part,chapter and section in my toc. The section page ...
3
votes
2answers
830 views

Single Spacing Long Subsection Header in Table of Contents

I'm assembling my master's thesis in latex, using my university's provided latex style file. They mandate that if you have a long entry in the table of contents / list of figures et cetera, that the ...
2
votes
1answer
505 views

Different upper margin for the second page of table of contents [closed]

I am writing a thesis, and I need to change the upper margin for the second page for the table of contents only. The university demands 2in upper margin for first page of ToC, followed by 1.25in upper ...
2
votes
1answer
2k views

Ignore figure for list of figures

I'd like to include some figures in my LaTeX document just like every other figure but don't have exactly these figures included in the list of figures. Since I couldn't find a solution I have to ask ...
2
votes
1answer
948 views

How to get header and footer over ToC, LoF and Nomeclature?

I would like to know how we include header and footer over Table of Contents, List of Figures and Nomenclature? Do we need to renew any command? or any package is used to do that? Sample script would ...
2
votes
1answer
4k views

No page numbering for the table of contents

How do I skip numbering until the beginning of chapter 1 with scrbook? I'm using something alone the lines of \begin{document} \pagestyle{empty} \pagenumbering{none} \maketitle \tableofcontents ...
1
vote
1answer
607 views

Reduce the spacing of the Table of Contents

How do I reduce the line spacing in my Table of Contents? I tried with \renewcommand{\baselinestretch}{1} but it doesn't...
1
vote
1answer
412 views

\listoffigures problem

As a part of my thesis, I am using \listoffigures to display the list of figures. Now, some of the figures have \footnote in their captions. To display the \footnotes properly, I have used the ...
1
vote
0answers
494 views

Memoir class top margin varies throughout the document. It needs to be 1" exactly throughout [closed]

This is the pagestyle stuff shown for ToC only, others are similar: \makepagestyle{toc} \makeevenfoot{toc}{}{\thepage}{} \makeoddfoot{toc}{}{\thepage}{} \DoubleSpacing ...