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

1
vote
3answers
1k views

titlesec messin' up my hyperref'd table of contents

Please consider the following multipage MWE, which contains page number restarting; made to compile with pdflatex test.tex: \documentclass[12pt]{article} \usepackage{geometry} ...
1
vote
1answer
24 views

Exclude section numbers from links in ToC: non-numbered sections bug

I use etoc to exclude section numbers from links in ToC. However, when I insert a non-numbered appexdix section — etoc adds a period: I played with the code, and found that the problem is with ...
9
votes
2answers
907 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 ...
3
votes
2answers
213 views

counterwithin problems with table of content

I would like to use the option counterwithin to get my numbering as I, I.1., I.2, .., II, II.1, II.2,... I use the following minimal script \documentclass[11pt, a4paper, twoside, openany]{scrbook} ...
3
votes
1answer
28 views

Table of Contents in Elsevier Class with two columns

How can I show a table of contents in one column and below of abstract in Elsevier Class, considering twocolumn and preprint as selected options? My minimal example is below. ...
4
votes
0answers
68 views

LoF, LoT, Abstract, Acronyms non-numbered in ToC - why?

The solution of LOF+LOT+BIB in TOC with numbered chapter does not work in my case. Admittedly I used a template of some other person - when I produce a Pdf with his code all above mentioned sections ...
4
votes
2answers
76 views

List of theorem dots overlapping with theorem name

Here is my MWE: \documentclass[a4paper]{report} \usepackage{amsmath,amsfonts,amssymb,amsthm,thmtools,tikz,xparse,lipsum} \usepackage{newtxtext,newtxmath} \usepackage{hyperref} \makeatletter ...
4
votes
1answer
53 views

Formatting acronym in tableofcontent

I got a problem with my \tableofcontents command. At first I post a simple example: \documentclass[ 12pt, a4paper, DIV13, pdftex, BCOR10mm, smallheadings, fleqn, liststotoc, ...
4
votes
2answers
194 views

Removing the zero in the chapter numbering

I have a line of code to hide "Chapter" and just head every chapter in the format "ChapterNumber" + "." + "ChapterTitle". However, the Table of Contents is assumed to be "Chapter 0", so it shows "0. ...
1
vote
1answer
46 views

How does one create a counted command (e.g. TODO) for use in a list?

Pretext: I am aware of packages such as todonotes, todo, and fixme, but this is more of a task for learning LaTeX programming. Therefore, the use of additional packages downloaded from CTAN is ...
2
votes
1answer
87 views

Adding general introduction to table of contents as chapter causes a problem

I'm trying to add a general introduction to my report. Well I added it to the table of contents and without number. Using this code : \addcontentsline{toc}{chapter}{\protect\numberline{}Introduction ...
1
vote
0answers
61 views

List of Listings (LOL) multiple entries with the same name [closed]

I splitted some source code into various listing all with the same name "Company ontology" (to use the firstnumber=auto), now in my LOL I have multiple repeated entries, is there a way to solve, maybe ...
0
votes
0answers
28 views

Conditionally prepend text to chapter title in TOC

I want to prepend some text to chapter titles on the TOC according to certain conditions. For example (this doesn't work): \documentclass[letterpaper,openany,oneside]{book} ...
2
votes
1answer
729 views

minted list of listings and TOC conflict

I am using minted for source code highlighting. I want a List of Listings, and I want the List of Listings to itself have an entry in the main Table of Contents. I thought I could do this with ...
6
votes
1answer
41 views

roman numbers too wide in table of contents

Consider the Code below: \documentclass[% paper=A4, twoside=true, fontsize=12pt, titlepage=true, listof=totoc, bibliography=totoc, listof=flat, open=right, ...
5
votes
2answers
135 views

Token allowed in PDF string in \section but not in a customized (with \addcontentsline) section command

babel's frenchb option makes active e.g. ! character by making it automatically preceded by a \thinspace. Such active characters are properly supported in sections by hyperref's bookmarks. But, when I ...
3
votes
1answer
32 views

Deeper TOC only in one section

I have a deep title structure (until subsubsubsection) and want to show for the whole document only sections and subsections – this is easy so far. But for one section only, I want to have also ...
0
votes
1answer
32 views

List of numbered pieces of text

To number short pieces of text throughout my report I used: \newtheorem{SampleEnv}{}[section] How do I generate a list of all the numbered pieces of text?
2
votes
1answer
36 views

Setting Entries of List of Listings in LaTeX. Package Listings

I'm trying to put an hyphen after the entries of the "List of Listings" as follows: List of Codes Code 1 -- First Code ................................ 7 Code 2 -- Second Code ...
6
votes
2answers
89 views

Modify ToC Backmatter Entry Distance

I created a simple document using memoir class as follows: \documentclass[12pt,a5paper]{memoir} \renewcommand\thepart{\arabic{part}} % modify ToC part \renewcommand{\cftpartaftersnum}{.} ...
3
votes
1answer
69 views

Is there a way to limit the scope of the Table of Contents (\tableofcontents command)?

Question If I have a document with multiple tables of contents, can I limit the scope of a toc sections are added and reset the toc? Situation I have a document made up of 10 languages. (using ...
11
votes
2answers
1k 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 ...
0
votes
0answers
15 views

Two ToCs in a document? [duplicate]

I want to have a first level ToC in the beginning of the document, and full ToC at the end. I'm using titletoc. There's a similar question but it is actually about printing ToC by parts. I expected ...
0
votes
0answers
19 views

Table of contents inside an included PDF [duplicate]

I've got some problem with LaTeX right now, well to be honest it's not really a problem and I'm not even sure that it is possible but I would like to be able to do it. Basically, here is my LaTeX : ...
1
vote
1answer
40 views

Creating a very custom ToC for moderncv

My university has a platform for job search which allows uploading only one curriculum vitae. However, I want to upload several curricula, each in a different language (I live in Europe and I speak ...
2
votes
1answer
38 views

Hide subsubsections from TOC, but keep PDF bookmarks with beamer

Yes, I realize that subsubsections are evil. The only reason I'm using them however, is for myself, to structure the presentation and be able to jump around efficiently if necessary. The beamer theme ...
1
vote
3answers
38 views

How to hide chapter numbering in table of contents?

I know \setcounter{secnumdepth}{1} lets you set the depth of numberings, but I have to number sections and subsections only, not chapters. Is there a one-liner to do this? I have seen some answers to ...
1
vote
1answer
31 views

ToC formatting - numbers too close to section headers [duplicate]

I am putting together a report as part of a group project for part of physics degree, and I have been having fun trying to format the table of contents correctly. Here is a MWE: ...
1
vote
1answer
46 views

Add word 'Chapter' before chapter number in toc (memoir class)

i want to have the word 'ΚΕΦΑΛΑΙΟ' which means Chapter in greek, before the chapter number in the table of contents and the 'ΠΑΡΑΡΤΗΜΑ' before appendices, i am using memoir class and the command ...
1
vote
1answer
95 views

Chapter Number only unbold in TOC

I have created toc and how do unbold the chapter number in table of contents. The dotsep between chapter title and page number is also disapper? How do on the dotsep. My MWE is: \documentclass{book} ...
2
votes
1answer
39 views

hiding section name and include it in toc

I tried to find a solution, but I cant. I'm writing my thesis, and all my sections are numerated arabic. I have no problem displaying them in TOC. Before those section i have several pages numerated ...
1
vote
1answer
33 views

Cross-referencing label and table of contents

I am using a label for referencing. I just added my table of contents and saw the label is used as chaptertitle. How could I fix this? My MWE: \documentclass[a4paper,dutch]{report} ...
3
votes
1answer
71 views

Reproducing the standard layout of the “book” class with “titletoc”

Is there a reference that shows how to use titletoc commands (\titlecontents, etc.) to approximate the layout of the table of contents in the standard book class? In particular, I would like to see ...
7
votes
2answers
233 views

Increasing spacing between section number and title in the table of contents

I'm using the simple ordinary \tableofcontents command to produce a table of contents, and I find that the resulting spacing between the section number and the section title is too small: Can ...
2
votes
2answers
58 views

How to create a tabular of contents?

Given some latex code like \section{the first section} some text \section{the second section} some text \section{the third section} some text \section{the fourth ...
0
votes
1answer
34 views

Appendix for thesis with only one file (also: reference in toc)

The Appendix of my thesis consists only of one long table. Now its time for some style. But here is the problem: normal use of \appendix like: \documentclass[a4paper]{scrbook} \begin{document} ...
0
votes
1answer
58 views

Table of content and header [duplicate]

I have table of content in my document and header/footer with section, subsection marks. When I include tocloft package I don't have header/footer anymore, that is not I want. On the other hand, I ...
3
votes
1answer
21 views

Table of contents: Correct hyperllinks to two different “section 1”s

I have a document divided in parts, sections and subsections and each part starts with "section 1". I totally dislike this, but I cannot change that. So sadly, I have to cope with the arising ...
2
votes
1answer
47 views

A table of contents for each section. Including only the entries of that section

I am preparing a presentation on Beamer and I will have different sections. I would like to put a title page and a table of contents for each of the section. In particular, for each section a toc ...
6
votes
1answer
552 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 ...
2
votes
0answers
79 views

Remove section titles from text, but not table of contents — interaction with columns

Update: a previous version of this question wrongly attributed the problem to use of minitoc to get section-level tables of contents (\secttoc). I've got a complicated document with a tables of ...
0
votes
0answers
51 views

Table of Contents (Continued) heading [duplicate]

The solution here Changing the table of contents for getting a "Table of Contents (Continued)" heading in the text of the second page of the table of contents works very well and is the best solution ...
3
votes
0answers
26 views

Error with \tableofcontents when using “\(…\)” in section [duplicate]

I want to type math equation in section headers, but I had some error with \tableofcontents command. When I compile this file \documentclass{book} \usepackage[utf8]{inputenc} \begin{document} ...
1
vote
1answer
53 views

How can I get page numbers to link to the table of contents in latex?

Just gonna ask a question from 4 years ago: "I've seen a pdf LaTeX document where the page numbers at the bottom of the page are hyperref links, and clicking them causes you to jump to the contents ...
1
vote
2answers
76 views

Trouble adding appendix to ToC

I'm trying to add the appendix to my thesis and I've used the following commands: \begin{appendices} \chapter{Performance Tables of ABCD} \input{tab1} \input{tab2} \input{tab3} \input{tab4} ...
9
votes
3answers
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 ...
1
vote
1answer
621 views

pdfpages/hyperref - Contents link jumps to wrong part of page

I'm using pdfpages to combine multiple pdf documents; I would also like a front 'contents' page for the new file, using hyperref to allow me to jump directly to the correct page. The 'addtotoc' option ...
4
votes
1answer
46 views

Making chapters bold in table of contents

Problem: How do I make chapter titles bold in the below MWE? Minimal working example: \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[titles]{tocloft} \begin{document} %: ...
1
vote
1answer
49 views

Start TOC from chapter 1 and also page numbering

Problem: Start page numbers from chapter one and also reflect this in the TOC. Currently the code for TOC is: \renewcommand{\contentsname}{Table of contents} \setcounter{secnumdepth}{2} ...
3
votes
2answers
42 views

How can I modify the page number for abstract in ToC?

I am very new in LaTeX. I am writing a thesis and I need to have two abstracts one in English and one in Portuguese. However, when I try to include them in this way: \selectlanguage{portuguese} ...