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}
\...
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 ...
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}
\...
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:
\...
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 ...
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. ...
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}
...
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 ...
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, ...
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}{\...
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 ...
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 ...
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>
{\...
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{\...
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:
\...
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 ...
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}.
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\...
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.
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), ...
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 ...
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{...
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 ...
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] {} {\...
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 ...
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).
\...
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 ...
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
\...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
titletoc × 369table-of-contents × 266
titlesec × 86
tocloft × 38
sectioning × 25
hyperref × 22
formatting × 20
minitoc × 12
chapters × 11
parts × 11
memoir × 10
indentation × 10
appendices × 10
titles × 9
tikz-pgf × 8
spacing × 8
koma-script × 8
xetex × 7
horizontal-alignment × 6
luatex × 6
macros × 5
color × 5
vertical-alignment × 5
line-breaking × 5
tcolorbox × 5