{titletoc} is a package to handle ToC entries. Its philosophy is similar to that of its companion {titlesec} -- instead of hooking the commands as defined by standard LaTeX and classes, there are new commands to format the ToC entries in a generic way.

learn more… | top users | synonyms

0
votes
2answers
25 views

Part contents in TOC in two lines

I have reached this: To look like this: So that the page number is in front of the title of the part and aligned with the other page numbers, and the title of the part is aligned with the part ...
4
votes
2answers
61 views

Remove dot after part number in TOC

I want to remove the dot after the Part number in the TOC. So far, only Koma-Script classes worked. \documentclass{mwbk} \usepackage{titletoc} \titlecontents{part} [0pt] {\addvspace{2pc}% \...
2
votes
2answers
24 views

Creating various mini ToC fails to print desired ToC

I will be referring to the mwe below: \documentclass[11pt,twoside,openany]{book} \usepackage{titlesec} \usepackage{titletoc} \usepackage{xparse} \let\oldsubsection\subsection \RenewDocumentCommand{\...
3
votes
1answer
16 views

Error in creating new title class and excluding from ToC

I am trying to create a new title class somewhat like a section but that is not included in the ToC. But when I use \titlecontents{exercise}{}{}{}{} it does not compile. How can I fix this? Here is a ...
5
votes
1answer
43 views

minitoc for section printing the starred versions of subsection

My objective is to print a mini ToC under a section but this mini ToC should only print the subsection* automatically and not appear in the main ToC. As a reference, I am using the following: sample ...
1
vote
1answer
84 views

Modifying Table of contents using titletoc

I need to remove the roman numbers of the part class and the alphabetic enumeration marks from the subpart entry. Then I want the chapter to have arabic numbers. As I tried to show some chapter ...
0
votes
1answer
71 views

overfull \vbox warning in table of contents, TOC doesn't break to a new page

I'm having the overfull \vbox problem in TOC. As you can see in the following image there is an overwrite on the footer. The warning I get is: "Overfull \vbox (188.96039pt too high) has occurred while ...
4
votes
1answer
79 views

Customizing toc in book class (appendix and coloring sections depending on current chapter)

I'm trying to customize my TOC as in this post (second example) and I'm having two issues. The first one is documented but I can't figure out what I'm doing wrong : I want to write "Appendix" instead ...
7
votes
2answers
240 views

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

Why do I get this error in this very simple mwe? It seems that the same error appears in the book class, two. \documentclass[notoc]{tufte-book} \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \...
2
votes
1answer
54 views

TOC, Chapter Toc, and Appendix misfunctions

The attached image shows the problems in an almost MWE: In TOC, the appendices are called Chapter instead of Appendix Much worse is that the sections in the Appendices find their way in the Chapter ...
1
vote
1answer
38 views

How to change the title position for list of figures and table of contents?

I have used a style for the toc and lof title but the position is a little bit far from the top of the page and i want to make it more closer to the header Here is a complete example \...
1
vote
0answers
29 views

How to remove page numbers and dots from a minitoc created by the titletoc package?

In the code below, how to remove page numbers and dots from the minitoc (not the main TOC)? I didn't find any commands or options in the documentation to do that. \documentclass{book} \usepackage{...
1
vote
1answer
28 views

Incompatibility of \setcounter{secnumdepth}{0} with \titlecontents{section}{\thecontentslabel\quad}{\underline}{}{\hfill\thecontentspage}

The following (other than the \setcounter{secnumdepth}{0}) is taken from User math's answer in Underline the section title text in table of contents. \documentclass{article} \usepackage{titletoc} % ...
2
votes
2answers
58 views

How can I customize the numbering in toc with titletoc

I am new to titletoc. And I want to have a table of content like: I. First Chapter 1. first section 2. section section 2.1 subsection II. Second Chapter So I would like to ...
1
vote
2answers
81 views

Page numbers in Table of contents should be aligned left

I'm writing my thesis, but unfortunately I'm having a problem. In our thesis template, the page numbers in table of contents should be aligned left (default=right) as shown in the figure. When I look ...
1
vote
1answer
44 views

hyperref, titletoc and \appendix

I provide here a MWE: \documentclass{article} \usepackage{titletoc} \usepackage[colorlinks=true ,urlcolor=blue ,anchorcolor=blue ,citecolor=blue ,filecolor=blue ,linkcolor=blue ,menucolor=blue ...
2
votes
1answer
37 views

\hyperref and modified \addcontentsline

I'm using hyperref (and titletoc) package(s). I redefined \appendix that way \newif\if@appendix\@appendixfalse \renewcommand\appendix{\par \setcounter{section}{0}% \setcounter{subsection}{0}% \gdef\...
1
vote
0answers
71 views

Titletoc / Titlesec numbers overlap text

Pretty simple problem, I have part numbers included in my section and subsection numbers, and I want to increase the space after the numbers, preferably without screwing up the rest of the alignment. ...
0
votes
2answers
80 views

Problems after adding starred sections headings in table of contents

My document has both starred and non-starred version of section, and I want to add both types to my table of contents. I am using titletoc and I tried to solve it as follows: \titleformat{\section}[...
3
votes
1answer
34 views

Adding just chapter label and number, without the title

I am trying to create the following ToC with titletoc package: Chapter 1 .......... 1 Chapter 2 .......... 10 Chapter 3 .......... 20 The titletoc code is the following: \titlecontents{chapter}[...
4
votes
1answer
71 views

Centred “Contents” in TOC in twocolumn document with custom sections

I want to adjust the TOC for my twocolumn document. I want to have the word "Contents" at the top and centre of the page, and the toc entries following in two columns afterwards. I found this which ...
0
votes
1answer
89 views

How to customize link style in Table of contents using titletoc?

I want to customize the links (appearance) in the TOC. In the entire document I use 'hidelinks' in hyperref (to turn of the box), and then have some fancy own link visualization (here for MWE replaced ...
2
votes
1answer
88 views

Hanging indent within a TOC entry with titletoc?

Is there a way to add horizontal space to the second and subsequent lines of every TOC entry with titletoc, whether the entry's title wraps to the second line (as in the first section below) or ...
2
votes
1answer
37 views

Problems to properly append chapter without numering to the table of contents

In my document I have a number of chapters, that have their numbering suppressed. I know that to append them to the table of contents one should use the \usepackage{etoolbox} and subsequently define ...
4
votes
1answer
69 views

Issue with TOC alignment when using fontspec and titletoc with font size >10pt

I am in the process of switching a large document to lualatex for various reasons, and I noticed an issue with the table of contents when the packages fontspec and titletoc are loaded together, AND ...
0
votes
1answer
119 views

Titletoc: split part title in two lines

I need to split the part title in the ToC as follow: Part I title of the part I am using the titletoc package. It seems easy with the chapter, but I am not able to figure out how to do it on parts. ...
1
vote
0answers
1k views

Mfirstuc.sty not found error at \usepackage{titletoc}

\usepackage[nottoc,notlot,notlof,numbib]{tocbibind} \usepackage[titletoc]{appendix} \usepackage{titletoc} One of these line is giving the error mfirstuc.sty not found. I tried installing package ...
2
votes
1answer
69 views

Appendices appear in sub-toc of previous chapter

I want to have a sub table of contents at the head of each chapter. I did this by using the titletoc package and redefining chapter. This works fine in the main matter, but when I add appendices, the ...
3
votes
1answer
63 views

conditional formatting of \thesection

here a not-so MWE: \documentclass{book} \usepackage{graphicx} \usepackage{polyglossia} \setmainlanguage[spelling=new,babelshorthands=true]{german} \usepackage[autostyle]{csquotes} \usepackage{lipsum} ...
0
votes
1answer
161 views

how to make only the chapter-titles to be in the middle of a new page

I am using Thesis.cls to write my thesis (From Easy Thesis tempalate). I wish to have the chapter title in a separate page and at the middle of the page. For that I browse the internet and I got ...
1
vote
1answer
133 views

Table of contents [toc]: Variable tocdepth within toc when using multiple tables of contents

I can universally vary the table of contents depth. This is typically handled with command:\setcounter{tocdepth}{ [depth] }. I can partially vary the table of contents depth. This is instead handled ...
1
vote
1answer
160 views

Modifying list of tables/images

I'd like to customize the list of figures and tables with a similar design to this: Modifying mini-toc content Does somebody know how to do a similar design for a list of tables/images?
2
votes
2answers
108 views

How to split the toc in two?

I want to split my thesis in two main parts: "Theory" and "Practice" in such a way that: 1) "Theory" and "Practice" appear as main bookmarks in the pdf; 2) the table of contests is splitted in two, ...
2
votes
1answer
128 views

Add both part and chapter titles to list of figures with formatting and line wrapping

In a table of contents style list of figures I would like to combine the appearance of each of these questions. Part title in list of figures and tables? Include chapters in List of Figures with ...
0
votes
0answers
139 views

Paragraph skip preserving titlesec, titletoc, table of contents, list of figures and indentation

I have hard time dealing with paragraph skip while keeping titlesec/titletoc, table of contents, list of figures and indentation the same (this is a french book). I have the following class: \...
3
votes
1answer
115 views

Custom List of Listing Page Numbers Not Working

So I have been using this particular latex template for a while now and I keep adding and changing it to be what I want. Recently I tried reformatting to get rid of the leading dots in the TOC, LOF, ...
4
votes
1answer
160 views

titletoc: getting rid of empty line at TOC start

Consider the following simplified TOC style (yes, the real-life version does look better than this MWE). Thing looks okay except for the fact that the first TOC line lies one line below where it ...
0
votes
1answer
53 views

Fancy header trouble when used with titletoc

In a very big and complex document using the book class (so I can't reporduce easily a MWE, sorry), I want to use the fancyhdr package to display chapter name and number on the top left of even pages ...
0
votes
0answers
32 views

titletoc: Hyperref section number and page number [duplicate]

Using titletoc, is it possible to not only hyperlink the section name, but also the section number and the page number? Solution: http://tex.stackexchange.com/a/100413/71253
0
votes
0answers
22 views

Two ToCs in a document? [duplicate]

I want to have a first level ToC in the beginning of the document, and full ToC at the end. I'm using titletoc. There's a similar question but it is actually about printing ToC by parts. I expected ...
1
vote
3answers
1k views

How to hide chapter numbering in table of contents?

I know \setcounter{secnumdepth}{1} lets you set the depth of numberings, but I have to number sections and subsections only, not chapters. Is there a one-liner to do this? I have seen some answers to ...
2
votes
1answer
299 views

titlesec with the explicit option messes up toc title

When using titlesec with the option explicit the toc title "Contents" is formatted using settings from the (where the explicit #1 parameter must be used). I think the MWE shows it all. %!TEX TS-...
1
vote
1answer
309 views

Using titletoc's \contentspush{} to non-rigidly align titles in ToC

The document uses the book class. Currently I'm working on the ToC using the titletoc package. Attached here are Screenshot-1 and Screenshot-2. The screenshots were taken at 80% zoom. Screenshot-1: ...
2
votes
2answers
53 views

Include class numbering in TOC with a subclass entry when using titlesec and titletoc

I am trying to use titleclass to define two new classes : savoir and subsavoir. In the TOC, I would like to get something like this : Savoir 1 -- First knowkledge title Savoir 1.a -- First "...
2
votes
1answer
115 views

Is there a way to divide bibliography, indexes in two volumes?

I'm working on a big thesis, divided in two volumes (but one pdf), which are sequentially numbered. Main TOC and TOCs for volumes are made using titletoc package: \startcontents[main] ..... \...
5
votes
1answer
512 views

Customize part in TOC by titletoc

I want to represent the \part in the TOC as on the figure below: The problem is the \part could be represented so simple as other headers. As you see in the MWE below, the \part design has been ...
2
votes
2answers
384 views

How to change locally titletoc

Please, consider this code \begin{filecontents*}{\jobname.bib} @book{ hoyningen:1993, author = "Hoyningen-Huene, Paul", title = "Recontructing Scientific Revolutions", ...
2
votes
2answers
306 views

Show all level section numbering in text, but not in ToC?

I want section numbering in ToC to appear as \renewcommand\thesection{\Roman{section}} \renewcommand\thesubsection{\alph{subsection}} \renewcommand\thesubsubsection{\arabic{subsubsection}} but in ...
2
votes
1answer
55 views

Character clash in ToC with long chapter numbers

I need to change \thechapter into something that spans several characters. Doing so mixes up characters in my customized table of contents (as well as the ordinary ToC). Here's an example: Here's ...
2
votes
2answers
280 views

Chapter numbering in table of contents

I have a not so far problem from the question opened here: Adding word "Chapter" into Table of Contents for only numbered chapter entries I'm using a "literal numbering for chapters, using ...