New answers tagged table-of-contents
0
votes
How to add a navigation window to a LaTeX generated PDF document?
\usepackage[bookmarks=true]{hyperref}
\usepackage{bookmark}
This should work.
Credit: https://www.reddit.com/r/LaTeX/comments/e3bz4j/how_can_i_display_table_of_contents_in_pdf/
0
votes
Font style for page number for chapter in ToC
For everybody using a KOMA-Script class, you can use this code to set the size of your page numbers in the toc and other listings:
\DeclareTOCStyleEntry[
pagenumberformat=\footnotesize
]{default}{...
1
vote
Adding acknowledgments and abstract in PDF bookmarks and referring to them correctly
The second argument of \pdfbookmark is a label: it has to be unique!
For the table of contents, I explicitly add a pagebreak to put the bookmark on the right page.
\documentclass[12pt,a4paper,openany]{...
1
vote
Accepted
beamer section slide with name in colorbox centered in the frame
The default section page automatically has a box around the section title. In some themes, the default colour is empty, but it can be changed to make the box visible:
\documentclass{beamer}
\usetheme{...
0
votes
Change TOC color only
You need to compile twice after adding like here
\addtocontents{toc}{\protect\hypersetup{hidelinks}}
right after \begin{document}.
\documentclass{article}
\usepackage{xcolor}
\usepackage[colorlinks=...
1
vote
Accepted
Can thecontentslabel text values be right justified in a table of contents?
The definition of a custom version of \Roman seems unnecessary really but simply adding \hfill will flush the text to the right.
\DocumentMetadata{}
\documentclass[b5paper,12pt,openright,twoside,...
1
vote
Alignment issue in table of contents with more than 1000 pages
Thanks to David Carlisle in the comments, following this link : tex.stackexchange.com/a/127652/1090 leads to this solution:
\makeatletter
\renewcommand*\@pnumwidth{2.5em}
\makeatother
1
vote
Accepted
Create a 'sub' table of contents for a section. Should include only the contents of that section (i.e., subsections and subsubsections, not sections)
Here is as suggested in comments using etoc. Refer to its documentation (texdoc etoc) for more. Pass option linktoc=all to hyperref if you want page numbers to be hyperlinked in the tocs.
\...
0
votes
Accepted
Change line spacing in a ToC
I found all the details I wanted in the following thread: How to change spaces between items in Table of Contents.
In my case, using the \spacing{.95} to reduce the global spacing of the ToC and ...
0
votes
How can I change the line spacing in a multiline caption within the list of figures/tables?
I know it's been a while, in case someone else has the same problem, you can use the setspace package and set the spacing of the list of figures.
\documentclass{article}
\usepackage{tocloft}
\...
1
vote
Accepted
How to color only the chapter, section and subsection numbers in Table of Contents?
To elaborate on daleif's comment, you should replace each occurrence of \textcolor{red} in your original source code with \color{red}. This will result in the following output:
1
vote
How to color only the chapter, section and subsection numbers in Table of Contents?
You cannot always expect that the macros is executed in a manner where they are given an argument. Here, say, \cftsecpresnum is used like this
...\cftsecpresnum #1...
where #1 is the numbering. So if ...
0
votes
Accepted
Latex Beamer - Add left padding to table of contents
You could redefine the section in toc template and change the left skip how you want:
\documentclass[10pt]{beamer}
%\usepackage[utf8]{inputenc}
\usetheme{Boadilla}
\usecolortheme{beaver}
\...
3
votes
Accepted
Matching the table of contents with the chapter style of quotchap package
You need
\usepackage[titles]{tocloft}
Why did the author think to such a funnily named option to tell the package that it mustn't change the chapter titles? Who knows.
Top 50 recent answers are included
Related Tags
table-of-contents × 7246sectioning × 698
tocloft × 544
hyperref × 426
chapters × 400
beamer × 383
memoir × 339
koma-script × 326
numbering × 306
appendices × 302
page-numbering × 287
spacing × 276
titletoc × 265
formatting × 262
header-footer × 244
tables × 190
captions × 189
floats × 172
titlesec × 163
bibliographies × 142
minitoc × 138
bookmarks × 122
horizontal-alignment × 121
indentation × 121
parts × 115