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
  • 62.6k
8 votes
Accepted

Why do I get this error in this very simple mwe?

You need to insert a paragraph break before the chapter line. As \par directly is not allowed, use \endgraf: \documentclass[notoc]{tufte-book} \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \...
Ulrike Fischer's user avatar
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.1m
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
  • 85.4k
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
  • 11.2k
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
  • 271k
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.4k
4 votes
Accepted

minitoc for section printing the starred versions of subsection

You can redefine \subsection to automate this via xparse: \documentclass{article} \usepackage{titletoc,lipsum} \usepackage{xparse} \let\oldsubsection\subsection \RenewDocumentCommand{\subsection}{s ...
Werner's user avatar
  • 602k
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.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
  • 85.4k
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.2k
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
  • 85.4k
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
  • 602k
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
  • 21.7k
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
  • 218k
3 votes
Accepted

Error in creating new title class and excluding from ToC

From the titletoc documentation (section 6.1. A ten-minute guide to titletoc): \dottedcontents{<section>}[<left>]{<above-code>} {<label width>}{<leader width&...
Werner's user avatar
  • 602k
3 votes

Why do I get this error in this very simple mwe?

It stems from the introduction of random text inside the .toc file via \addtocontents{toc}{text} If you wish to do so, ensure that the text is on its own by issuing a \par afterwards. The following ...
Werner's user avatar
  • 602k
3 votes

How can I customize the numbering in toc with titletoc

Try this \usepackage{titletoc} \titlecontents{chapter}[1em]{\smallskip}% {\contentslabel[\MakeUppercase{\romannumeral\thecontentslabel}.]{1.5em}\enspace } {}%numberless% ...
Bernard's user avatar
  • 271k
3 votes
Accepted

Adding just chapter label and number, without the title

You would have to provide enough space for the additional content that forms part of \contentslabel to fit, but also adjust the indentation: \documentclass{report} \usepackage{titletoc} \...
Werner's user avatar
  • 602k
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

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
  • 59.7k
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
  • 85.4k
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
  • 271k
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

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