Skip to main content
10 votes

Two independent toc in beamer presentation

I would suggest using the \part mechanism of beamer as shown in the following example. This creates two individual parts with separate tables of contents. \documentclass{beamer} \begin{document} \...
leandriis's user avatar
  • 63.2k
5 votes
Accepted

Why does \titleclass remove my sections from the TOC?

I've always found \titleclass very mysterious. You can solve this in a different way, by setting the preface in the frontmatter (but it's just for logical placement) as \chapter*, adding manually the ...
egreg's user avatar
  • 1.2m
5 votes
Accepted

Table of Contents with titletoc is cut off after first page

If you want to use package titletoc to format your TOC then remove package tocloft: \documentclass[fontsize=9pt, BCOR=5mm, ngerman, paper=a4,DIV=calc]{scrreprt} \usepackage[ngerman]{babel} \...
esdd's user avatar
  • 86.2k
5 votes
Accepted

Customize the Table of Contents

for the dots replace \hfill by \dotfill to remove the grey box in front of the bibliography, you could make use of the syntax of \titlecontents and define a separate format for unnumbered chapters: \...
samcarter_is_at_topanswers.xyz's user avatar
5 votes

Trouble changing word "Chapter" in ToC to something else

I do not know if it is the most powerful solution but you can redefine the name of some structures like the following: \renewcommand\contentsname{New contents name} \renewcommand\listfigurename{New ...
J Leon V.'s user avatar
  • 12.9k
5 votes
Accepted

Problems formatting \part entries in ToC with `titletoc`

You have to redefine the part formatting with titlesec first, because you read in § 3.7, Other Package Options of the documentation: Standard parts write the toc entry number in a non standard way. ...
Bernard's user avatar
  • 273k
5 votes
Accepted

hyperref and titletoc: prints extra "section.1" or "Doc-Startchapter.1"

Load hyperref after titletoc: \documentclass{article} \usepackage{titletoc} \usepackage{hyperref} \begin{document} \section{Bla} \startcontents \printcontents{}{2}{} \subsection{Blabla: bla bla} ...
Ulrike Fischer's user avatar
5 votes
Accepted

Make decrease the space between title of list of figures and list of tables on the same page

Here is a simple fix. The basic idea is to change the vertical space that is added at the end of \@makechapterhead and \@makeschapterhead locally for the list of figures and tables. I therefore made ...
siracusa's user avatar
  • 13.5k
4 votes
Accepted

Formatting \Cref affects Tables of Contents

As already mentioned by Christian you have to load all packages except cleveref before hyperref. cleveref should be loaded after hyperref. If only the chapter tocs should not list the subsections, ...
esdd's user avatar
  • 86.2k
4 votes
Accepted

Table of contents: no chapter number in section label

Here is what you need. \renewcommand{\thesection}{\arabic{section}} \titleformat{\section} {\normalfont\Large\bfseries}{\thechapter.\thesection}{1em}{} for titles \renewcommand{\p@section}{\...
touhami's user avatar
  • 19.6k
4 votes
Accepted

How to make a part toc that looks like the following with package titletoc?

Maybe you want something like this. \documentclass[openany]{book} \raggedbottom %reduce underfull \vbox \usepackage{titlesec, titletoc} \usepackage{indentfirst}% indents first paragraph after ...
Johannes_B's user avatar
  • 24.4k
4 votes
Accepted

A very strange phenomenon when use package 'titletoc' , ask for why and how to solve it?

Replace the \titlecontents*{lsection}... \titlecontents{lsection}[4pt]{\small}{\thecontentslabel~}{}{\cdotfill\contentspage} Note that the starred version is for grouping the entries in a single ...
esdd's user avatar
  • 86.2k
4 votes

Long chapter titles not aligning correctly in ToC

Use the argument for the <left> margin in \titleformat: \documentclass{book} \usepackage{titletoc,xpatch}% \titlecontents{chapter}% <section-type> [1.5em]% [0pt]% <left> {\...
Werner's user avatar
  • 610k
4 votes
Accepted

How do I recreate this two-column TOC layout with chapter goals on the left and TOC on the right

You could start here: \documentclass[a4paper]{book} \usepackage[ngerman]{babel} \usepackage{xcolor} \definecolor{azure}{HTML}{105F74} \usepackage{enumitem} \usepackage{multicol} \setlength{\...
DG''s user avatar
  • 22.2k
4 votes
Accepted

Can't get Appendix before A on TOC, when using appendix package with titlesec and titletoc

Borrowing heavily from two other answers on the site Unexpected interaction of titletoc and appendix? Properly aligning TOC entries using titletoc The following seems to do what you want: \...
Alan Munn's user avatar
  • 221k
4 votes
Accepted

titletoc: \addvspace not working

I propose something with etoc and enumitem. etoc provides the toc content through commands like \etocnumber, \etocname or \etocpage. enumitem allows to customize lists, by setting the space before the ...
jlab's user avatar
  • 4,246
3 votes
Accepted

How to fix this small table of contents

To get the chapter entries in your TOC bold and with adjustable space use \dottedcontents{chapter}[1.0em]{\bfseries}{3.0em}{0pc}.
Skillmon's user avatar
  • 63.1k
3 votes
Accepted

Add "Chapter" and chapter label before each chapter(within mainmatter) in table of contents with package titletoc?

Use \titlecontents{chapter}% [0pt]{\sffamily\bfseries\large\protect\addvspace{10pt}}% {\chaptername\ \thecontentslabel\enskip}{}% <- changed {\hfill\contentspage}% [\addvspace{0.3ex}\titlerule\...
esdd's user avatar
  • 86.2k
3 votes

Hyperref links in TOC point to wrong location when using titletoc

This was fixed in version 2.11 of titletoc; see the changelog at https://github.com/jbezos/titlesec When I switched to this version of titletoc, it solved this problem for me.
user200147's user avatar
3 votes
Accepted

Table of Contents - Font Parameters

For the formatting of the table of contents, you can use the numberless key, and the explicit option from titlesec (note all unnumbered sections – bibliography, &c., will be formatted similarly), ...
Bernard's user avatar
  • 273k
3 votes
Accepted

Part Number separated of Part Name in Table of Contents

This looks like some sort of incompatibility between book and titletoc (or rather, a strange design of book)... What is written to the .toc for the \part is: \contentsline {part}{I\hspace {1em}The ...
Phelype Oleinik's user avatar
3 votes
Accepted

Handle part (book class) with titletoc

book is incompatible with titletoc as it is. Using the patch proposed here you can make it work easily: \documentclass{book} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{...
Phelype Oleinik's user avatar
3 votes
Accepted

Strange behaviour of Table of contents if there are some Greek words inside the text

The issue is due to the fact that each greek environment in the document writes two lines in the auxiliary files, including .toc, namely \select@language{greek} \select@language{italian} These ...
egreg's user avatar
  • 1.2m
3 votes
Accepted

Titletoc + titlesec to create automatic ToC at beginning of chapters

Here is a solution. \documentclass[a4paper,11pt]{book} \usepackage[T1]{fontenc} \usepackage{titletoc} \setcounter{secnumdepth}{3} \AtBeginDocument{ \titlecontents{psection}[2.3em] {} {\...
touhami's user avatar
  • 19.6k
3 votes
Accepted

titletoc-like toc-layout for subsections with KOMA-Script only

From version KOMA-Script 3.27.3167 it is now possible to realize the above mentioned toc-layout with the new tocstyle toctext (see comment from @esdd). Here is a new working MWE (with thanks to Markus ...
bho's user avatar
  • 61
3 votes
Accepted

How can I put section title numbers in a box

It all can be done with titlesec. Note I used the simplified version of the parameters in \titlespacing* (with a * to remove the indent of the first paragraph after the sections titles). \...
Bernard's user avatar
  • 273k
3 votes

LuaLaTeX: Automate multiple compilation with for ToC, Index, Bibliography, Glossary and others on CI

As others and yourself have mentioned, latexmk seems the correct tool for this job. To see how it can be implemented, let me highlight the relevant bits from my own LaTeX document/template CI pipeline ...
Alex Povel's user avatar
3 votes
Accepted

titlesec interferes with the part title in TOC

You need the newparttoc option and to change the rendering of \thecontentslabel. \documentclass{book} \usepackage[newparttoc]{titlesec} \titleclass{\part}{top} % make part like a chapter \...
egreg's user avatar
  • 1.2m

Only top scored, non community-wiki answers of a minimum length are eligible