Questions tagged [table-of-contents]
{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}, {tocbasic}, {minitoc} and {etoc}.
7,447 questions
2
votes
1
answer
24
views
Change figure caption from 1 to Abb. 1 (Fig. 1) with correct indentation in ToF?
Im trying to change the figure enumeration in the table of figures as many people have tried before me. The answer I most commonly read is by using
\renewcommand{\thefigure}{Abb. \arabic{figure}}
or
\...
3
votes
1
answer
39
views
List of tcolorboxes per chapter, with `tcblistof`
Setup: In a big document with several chapters, i generate several tcolorbox instances per chapter of the same tcbtheorem called "method", with an option list inside={methods}.
Needed: At ...
0
votes
1
answer
54
views
memoir: Chapter TOCs (Part 3)
This issue is related to memoir: Chapter TOCs (Part 1) and memoir: Chapter TOCs (Part 2).
After implementing a partial TOC (Chapter TOCs), I need to format it differently from the main Table of ...
0
votes
0
answers
30
views
Table of contents / AMS BOOK
I am writing a document in amsbook and I am having trouble customizing the table of contents.
I would like the table of contents to look like this:
Chapter titles should be in bold, including their ...
5
votes
1
answer
180
views
Newest pdfmanagement conflicts with tocloft package also for pdflatex
I have been using DocumentMetadata with tocloft in pdflatex without setbacks for more than two years. However, something changed with the most recent updates.
Currently the code gives warning tocloft....
0
votes
0
answers
15
views
Glossary terms in section heading: don't consider toc as first use, don't link to toc from glossary
If I use \gls{} in section headings, the table of contents will be considered first use. This isn't pretty, because it means that toc entries will differ from the section headings. It also links to ...
2
votes
0
answers
42
views
Conditional formatting of `\thepage`
I'm trying to format \thepage depending on whether a conditional is true (and have it carry over to the table of contents). The simple strategy below isn't doing the trick...
Preferably the solution ...
1
vote
0
answers
40
views
How to change the order of items in List of Tables (or Figures etc.)
Is it possible to specify/change the order of items in a list of tables?
For various reasons, I have two tables with fixed numbers.
The code below produces a list in the order they appear in the ...
1
vote
1
answer
44
views
Is it possible to control the indent of chapterprecis separately from chapter headings in a table of contents
\documentclass[article]{memoir}
\chapterstyle{article}
\setlength\cftchapternumwidth{4em} %Position of numbers and titles in TOC
\setlength\cftsectionindent{3em}
\setlength\cftsectionnumwidth{...
5
votes
1
answer
152
views
List of symbols with page number by symbol location
List of symbols with page numbers based on symbol position
I'm using the code below to create a list of symbols consisting of the symbol, description, and page number. The problem is that the page ...
0
votes
2
answers
83
views
automatic checking for input in a .tex file
I need to get a automatic checking if a .tex file has input or not.
Now there is always the page with "Anhang" and the page "Anhangsverzeichnis" after compiling the project, also ...
0
votes
2
answers
46
views
Vertical spacing front matter in table of contents [closed]
I'd like to group my front matter entries together in the table of contents so that there is no vertical space between them. Here's my current code:
\frontmatter
\chapter*{Abstract}
% Abstract ...
2
votes
1
answer
52
views
Remove chapter title from toc
How can I remove the chapter title from toc?
I tried to change my chapter formatting to accept \chapter* but it doesn't work
I also tried some shenanigans options with tocloft or tocdepth with no ...
3
votes
1
answer
69
views
Adjusting line spacing in table of content for amsbooks (plus having two tables of contents)
I'm writing a book with using amsbooks. I would like to have two tables of contents:
One that just lists the parts and chapters, but does not include sections.
A second more detailed one that lists ...
3
votes
1
answer
136
views
amsart: error arises when $\tilde \cV$ in section title
I have a tex file
\documentclass{amsart}
\newcommand{\cV}{\mathcal{V}}
\begin{document}
\tableofcontents
\section{Regularity of $\tilde{\mathcal{V}}$}
\section{Regularity of $\tilde{\cV}$}
$\...
1
vote
1
answer
36
views
How to exclude section TOC slides from navigation dots in Beamer [duplicate]
I would like to exclude section TOC slides from navigation dots.
I create a TOC slide at the beginning of each section using \tableofcontents[currentsection], but these TOC slides are being counted in ...
1
vote
1
answer
57
views
ToC page numbers does not end in the page's margin, and issues with multiline entries
Good afternoon everyone,
I am struggling with formatting a Table of Content.
Below I provide the part of code of my file declaring the ToC entries:
\DocumentMetadata{lang=en,pdfstandard=UA-2,...
6
votes
2
answers
214
views
Avoid hyperref to affect line spacing
I have this document structure:
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[margin=1in]{geometry}
\usepackage{tabularx}
\usepackage{booktabs}
...
4
votes
2
answers
98
views
Display the table of content inside tabularx environment
I would like to include the table of content inside a tabularx.
The following code produce a pdf without warning nor errors, but the table of content is not visible.
\documentclass[11pt,a4paper]{...
2
votes
0
answers
52
views
Adding further sectioning above part in kaobook
I've seen on this previous question that the memoir package can be used. I was wondering whether srcbook has a similar set-up: I tried to apply this previous solution to the current case, but I am ...
0
votes
1
answer
40
views
Biblatex-apa inserts new line after figure number in list-of-figures
I am writing a book about gifted education and use a - heavily adapted - template to achieve that. As I took up writing again, I noticed something odd in the layout of the list of figures. Contrary to ...
3
votes
1
answer
128
views
ConTeXt: Link to page number in custom ToC
Background
Looking to customize the ToC and have hyperlinks for the chapter number go to the starting page for that chapter.
mtx-context | current version: 2025.08.21 23:32
Problem
The page ...
0
votes
1
answer
51
views
List of figures and List of tables equal spacing between figure name and description / caption
How can I make an equal space in LOF and LOT:
"Figure: (space) Caption of figure"
and
"Table: (space) Caption of table" ?
If the words figure and table are not eqal length (like in ...
2
votes
2
answers
130
views
Make separate appendix table of contents and remove appendix chapters and sections from main toc
I want to remove all my Appendix Chapters, Sections etc. from the main TOC and only display "Appendix" with the page numer of the first page there.
On the first page of the appendix there ...
0
votes
1
answer
87
views
How to add hypertarget entries in the table of contents
Can the text of the table of contents be edited ? I would like to add hyperref's \hypertarget entries -- that is: text and label references -- to it.
Consider a common table of contents like
Chapter 1 ...
0
votes
1
answer
67
views
Create a table of content inside a table using \input{\jobname.toc} for a custom class
I newbee to writing a class for syllabus book creation. I am trying to generate a \jobname.toc file outputing commands, which when I try to read through \input{\jobname.toc} inside tabular environment,...
4
votes
2
answers
122
views
My \parttoc shows the chapters from the next part
I'm not fluent so sometimes my sentences won't be understandable.
I am building a document that uses \parttoc for every part. My documentclass is book and worked until now.
Before, I had a document ...
2
votes
0
answers
66
views
Adding the Abstract and the Table of Contents to the Table of Contents of an Article
How can I add the abstract and the table of contents to the table of contents of my article properly with Roman numerals and hyperref compatibility?
2
votes
1
answer
100
views
How can I make the Table of Contents display the column number of a page in a two‑column document?
I am typesetting a document using the multicols package (sometimes in two‑column mode, other times in three‑column mode). I would like the Table of Contents to not only display the page number, but ...
0
votes
1
answer
62
views
Abbreviation list does not appear in report document
In a previous version of the code, the abbreviation list appeared properly. However, with this MWE, it is not visible anymore (although it is in the TOC).
\documentclass[table, a4paper, twoside, 12pt]{...
2
votes
2
answers
120
views
How to add the word “Chapter” before chapters in both table of contents using TeX4ht / TeX4ebook?
Currently, in the EPUB version of the book I’m writing using LaTeX + TeX4ebook, the table of contents looks odd – it just contains the number and then the title of the chapter; nothing before the ...
1
vote
1
answer
84
views
Sub categories of appendix in list of contents
I'm currently writing my bachelor's thesis in Overleaf and have a question regarding the appendix. When I add subsections to the appendix, only the main appendix entry appears in the table of contents,...
1
vote
2
answers
128
views
How to put the same text as a list of a list on the listing list?
I want the subtitle of my listing list to be equal to the figure below:
In the listing list it is as follows:
That is, in the list of listing should also be "Listagem 1 - A especificação com ...
0
votes
0
answers
50
views
TOC maker not designed for 10 items?
My TOC maker is just \tableofcontents for a standard \documentclass[10pt,a4paper,envcountsect]{llncs}. Can it be that this command does not expect ten \subsubsection (my deepest to-list) items? ...
0
votes
0
answers
31
views
How to adjust KOMA-Script ToC spacing for custom section numbering? [duplicate]
I have a journal written in LaTeX/memoir where I customize the numbering of each section by changing thesection to a date, like this:
\usepackage[en-CA]{datetime2}
\newcommand{\entry}[2]{
\...
1
vote
1
answer
57
views
Changing \numberline - issue with \protect?
I am looking to modify the table of contents without a package, to change the number formatting for different sectioning levels. Below is an example:
\def\numberline#1{\csname #1@numberline\endcsname}
...
1
vote
1
answer
55
views
Problem with TOC with tex4ht when using `accent` and `hyperref` with `\texorpdfstring`
I found I need to use \texorpdfstring in sections titles in order to work around a compile error with lualatex. see tex-capacity-exceeded.
But now I find the table of content in HTML generated by ...
3
votes
2
answers
101
views
Making an initial toc without the frontmatter chapters, and and final toc with
As part of my thesis, I am trying to create a final table of contents listing all the titles that appear in my thesis (the basic format suits me fine), but I also want to display a summary at the ...
5
votes
2
answers
77
views
Specific formatting in the table of contents
I am trying to make a few subtle changes to the default table of contents in document{report}.
I need the table of contents entries to adhere to the global \doublespacing, except for when an entry ...
2
votes
1
answer
116
views
koma-script: change font and color of table of contents
I have a tex file:
\documentclass{scrreprt}
\usepackage{xcolor}
\usepackage[T1]{fontenc}
\definecolor{fun_blue}{HTML}{1B5BA2}
\usepackage{hyperref}
\hypersetup{
hypertexnames=false,
colorlinks=...
0
votes
1
answer
62
views
Table of contents change vertical space between title/first chapter and title/page top margin
How can I decrease the space between the toc title and the top page margin and also the toc title and the first entry of toc?
\documentclass[12pt,oneside,ngerman]{book}
% ─────────────────────────────...
4
votes
1
answer
92
views
Is there a way to remove the hanging indent from the table of contents using the titletoc package?
In LaTeX, when using the titletoc package for long titles, how do I remove the hanging indent? Here's a MWE:
\documentclass{book}
\usepackage{titletoc}
\ExplSyntaxOn
\makeatletter
\cs_new_protected:...
5
votes
1
answer
143
views
How can I generate a "List of Links" like \listoffigures
https://www.overleaf.com/learn/latex/Lists_of_tables_and_figures
It appears to be straightforward to add a list of tables or figures. Can I do the same thing to list all the urls hidden by \href{url}{...
4
votes
3
answers
232
views
Section and subsection numbers overlaping in the ToC
My documents have about 20 chapters, lots of sections and subsections. The ToC is then producing some overlaps, as shown with this MWE code:
\documentclass[11pt,twoside]{book}
\usepackage[T1]{fontenc}...
2
votes
2
answers
131
views
How to properly change the codes numbers?
I would like to change the numbering system of all codes in a large document. Currently, the MWE code below lists all the codes with the chapter number in its title. I would like to remove that ...
2
votes
3
answers
130
views
paracol and tableof: out of sync
If I run the example below, I get the following toc, it does not show the correct elements. It seems things get out of sync, since everything works when we use \kant[1] instead of \kant (aka \...
0
votes
1
answer
61
views
main table of content for article class. How to show only subsections but keep numbering same as if section was present?
This is best explained with screen shots below.
Basically, I have an article class, with title and only one section in it with a title which is really same as main title.
It seems the section here is ...
3
votes
2
answers
96
views
How to make local toc at the paragraph level for article class?
I have very large documents where I need to go all the way to \paragraph and inside this I can have number of \subparagraph
I want to make local toc for the \paragraph which shows all the \...
2
votes
1
answer
85
views
Automating generating local TOC for each chapter and each section. Problem found
Currently, to make local TOC for each chapter and each section, I manually type some code just below each chapter and section title.
I wanted to automate this using \renewcommand so that the code to ...
4
votes
1
answer
59
views
KOMA-script: Print chapterprefix ("Chapter 1") above the chapter title in TOC
In scrreprt, I have the text "Chapter 1" appear before the chapter title in the TOC. However, I would like to have "Chapter 1" be above the chapter title in the TOC - essentially ...