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

9
votes
1answer
15k 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: ...
9
votes
2answers
200 views

Different hierarchical levels in TOC and hyperref-generated PDF bookmarks

I would like to make hyperref generate bookmarks for all available hierarchical levels of my documents, but only in the produced PDF. For the TOC itself (i.e. the one printed at the beginning of the ...
9
votes
2answers
229 views

Rendering only the Table of Contents

Strange question, but I wanted to know if its possible to render only the table of contents and not the associated body of text below. Is there a suppression command that means that a section is ...
9
votes
1answer
692 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 ...
9
votes
1answer
500 views

Minitoc with two column content

I have a question regarding \minitoc, I want to change the layout for \minitoc inside my MSc thesis. The document is written using a single column, but I want to have the content within the \minitoc ...
9
votes
1answer
3k views

How to make \subsection not appear in the ToC

How do I get a sub \subsection{title} I choose not not appear in the ToC and not interfere with the counting of the other \subsection's?
9
votes
2answers
965 views

Inline table of contents

I am trying to generate an inline Table of Contents that would have no title, a depth of two and the following formatting: 1. Section one ‖ 1.1. Subsection one; 1.2. Subsection two ‖ 2. Section two ...
9
votes
1answer
815 views

How do I remove hyperlinks from \tableofcontents in beamer?

I am designing a presentation in beamer and would like to use \tableofcontents to generate an outline frame. However, by default, beamer includes hyperlinks on the section names in the table of ...
9
votes
1answer
154 views

How to typeset the table of contents raggedright in memoir?

I basically have the same question as this one Table of contents: section titles ragged right but none of the two solutions there work with memoir. I want to typeset section etc. titles raggedright ...
9
votes
1answer
1k views

List section in pdf bookmarks, but omit in LaTeX table of contents

Normally (under pdflatex with hyperref) a section added with \section will appear in both the LaTeX table of contents, and the pdf metadata; while a \section* will be omitted from both. Is it ...
9
votes
1answer
224 views

Centering contents name with [twocolumn] contents

I'm trying to make Table of Contents in two columns, but I'd like to center the contents name. Now I'm doing \twocolumn \tableofcontents but these commands give something like this: Contents name ...
9
votes
1answer
305 views

suppress lot/lof entry in memoir

Using the caption package, one can suppress lot/lof entry with an empty optional argument for \caption. But the caption package is incompatible with memoir. How can I suppress lot/lof entries in ...
9
votes
2answers
4k views

How do I use LaTeX to create a table of contents for a set of pdf files which I am merging into a single large pdf?

I have a set of pdf files which I want to merge into a larger pdf files. Each individual pdf file is an article with sections. I am hoping to make the merged pdf file into a book format with each ...
9
votes
3answers
1k views

Generating a separate pdf file of tables and figures from a latex file?

Is it possible to generate a pdf of figures and tables of a paper from latex itself? I saw Journals and Conferences asking for a separate file of tables and figures. In this question, questioner ...
9
votes
1answer
215 views

ToC showing page number and then the chapter title

I would like to have the Table of Contents of the book I am editing showing first the pages of the chapters and then the chapter titles. Something like this book: I am working with XeTeX (through ...
9
votes
1answer
729 views

Todonotes: group list-of-todos by chapter

I use the todonotes package extensively to mark and comment my projects. So, for a large project, I have dozens of todo-notes and the list of todos, which I insert at the beginning of a document, ...
9
votes
1answer
1k views

\part and tocloft

The following code was provided by Martin Scharrer in reply to a post in May 10. \documentclass{book} \usepackage[british]{babel} \usepackage[titles]{tocloft} \usepackage{tocloft} ...
9
votes
1answer
49 views

Limit \listoffigures to several chapters of an entire book?

I use book class and have several chapters in it. However, I want to limit the number of chapters that are included in \listoffigures to less number then there actually are chapters. How could this be ...
9
votes
1answer
279 views

How to remove the indentation in list of listing

The list (from \lstlistoflistings) is indented compared to list of tables (\listoftables). How can I remove the extra indentations? \documentclass{memoir} \usepackage{listings} \begin{document} ...
9
votes
1answer
155 views

Removing Subordinated Headline Levels From The ToC Automatically When Using `*`

Usually, when you use section*{}only the section will be removed from the toc. In order to remove subordinated subsections you have to add the *. Is it possible to define a command that removes ...
8
votes
2answers
2k views

Give a chapter a letter

I have a preface for my document and instead of calling it Chapter 1, or using \chapter* to not include it in the table of contents, I would like it so it instead of a 1 I have a P. Then normal ...
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: ...
8
votes
3answers
6k 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
4k views

More section headings?

I am a novice in LaTeX and I have one question. Can someone tell me what if you want more heading's in LaTeX. Like 5 or 10 or even 15. Is there a package for that?
8
votes
2answers
1k views

Second table of contents only for annexes

I'd like to have in my report a table of contents from introduction to conclusion and another between the conclusion and the first annexe. This latter only for annexes : - Table of contents - 1. ...
8
votes
2answers
629 views

How to make bold all of the TOC by default?

Is there a way to make all the table of contents bold by default?
8
votes
2answers
262 views

Can't add \raisebox to ToC in XeTeX

In XeLaTeX I've defined the following command: \newcommand*{\PoETeX}{P\kern -.15em\raisebox{-0.21em}{O}\kern -.05em E\TeX} as a simple (non-robust) way to create a silly logo styled after \LaTeX. ...
8
votes
2answers
429 views

In table of contents, long page numbers intrude on right margin despite plenty of available space

Some of the page numbers listed in my table of contents are long roman numerals. For some reason, these long page numbers get pushed into the right margin. Here is a screenshot of the table of ...
8
votes
3answers
490 views

Adding table of contents to contents - wrong page numeration

I want the "Table of contents" position to appear in the table of contents. I'm using \addcontentsline to add this position, but the page numeration seems a bit odd. I have a table of contents ...
8
votes
2answers
960 views

Different indentations of same level in ToC

I am writing a paper for university and I need to do it according to style guides. Everything looks peachy, except for the ToC. This is how it comes out for me: The word "appendix" shouldn't ...
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 ...
8
votes
2answers
108 views

How can I print the table of contents multiple times in my document?

I am using also titletoc to improve how my table of contents. I would like to print the table of contents several times. How can I do it? It does not work in the MWE: \documentclass{article} ...
8
votes
3answers
303 views

No caption but entry in list of figures

Now, there are many 'solutions' for this problem on the internet, but they all seem a bit messy to me. Like for e.g. this one: Link to ' Community' Is there a proper solution for this? As this is ...
8
votes
2answers
279 views

Have almost managed to get my TOC the way I want, but need help making it 100% perfect

If you compile my current TOC code: \documentclass[a4paper,10pt]{book} \usepackage{lipsum,kantlipsum} \usepackage[dotinlabels]{titletoc} \contentsmargin{0pt} ...
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 ...
8
votes
4answers
471 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 ...
8
votes
4answers
142 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 ...
8
votes
2answers
2k 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 ...
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
2answers
2k 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 ...
8
votes
2answers
1k views

Capitalization of Titles and Headers

I'm attempting to capitalize certain titles or headings in my LaTeX file. Specifically, if I want to use \printindex, \listoffigures, or \listoftables the title heading on each of these will be ...
8
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 ...
8
votes
2answers
2k 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?
8
votes
2answers
1k views

Make Chapter Titles link to Table of Contents

I'm using the hyperref package to create hyperlinks in my document. The links from the TOC->chapters/sections work great, but I was wondering if there was a way to automatically insert hyperlinks from ...
8
votes
2answers
1k views

How do I make the list of figures use an automatically shortened version of the caption?

Many of my captions are quite long and appear as 5 or more lines in the list of figures. To save me the effort of using the optional argument in the caption are there any packages that can produce ...
8
votes
2answers
1k views

Table of contents: section titles ragged right

In the standard book class, if there are very long section titles, \tableofcontents tries to produce justified text. How can I produce a table of contents so that the section titles are typeset flush ...
8
votes
3answers
730 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
3answers
944 views

Is it possible to add \chapter after a few \part's at the same level of hierarchy?

Consider the following code: \documentclass{scrbook} \usepackage[bookmarks, bookmarkstype=toc]{hyperref} \begin{document} \tableofcontents \chapter{Introduction} \part{First part} ...
8
votes
2answers
640 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, ...
8
votes
2answers
368 views

Custom ToC — Put vspace only below chapters that have sections in them

I’m using the titletoc package in the book class. Currently, my chapter entries are configured like this (I left out the unimportant parameters for simplicity): \titlecontents{chapter}[0pc] ...