Skip to main content

New answers tagged

1 vote
Accepted

Adding a contents line to a "non-current" chapter

Broadly speaking, there are three ways to do it: You implement your own TOC system from scratch and give it the characteristics you want it to have. (For example, I have had to do it to create ...
gxono's user avatar
  • 302
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/
Not That Guy's user avatar
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}{...
devbf's user avatar
  • 101
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]{...
NBur's user avatar
  • 5,166
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{...
samcarter_is_at_topanswers.xyz's user avatar
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=...
user691586's user avatar
  • 2,298
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,...
David Carlisle's user avatar
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
Martin Rosalie's user avatar
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. \...
user691586's user avatar
  • 2,298
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 ...
Piotr's user avatar
  • 25
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} \...
firmln's user avatar
  • 1
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:
guemax's user avatar
  • 170
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 ...
daleif's user avatar
  • 55.2k
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} \...
samcarter_is_at_topanswers.xyz's user avatar
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.
egreg's user avatar
  • 1.1m

Top 50 recent answers are included