{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
1answer
16 views

How to adapt Contents header to match other chapter headers

I am using \documentclass[a4paper,11pt,twoside,openright]{book} and customized my headers using \usepackage{titlesec, blindtext, color} \definecolor{gray75}{gray}{0.75} ...
4
votes
1answer
39 views

Chapter font in TOC with package quotchap

I cannot get the chapter titles (not the label) in bold and Large font in the TOC, while using quotchap. I get the label "Chapter" in a good font (using titletoc), but not the title which stays in the ...
2
votes
1answer
48 views

How do I color the page number in a partial TOC?

I am writing a thesis and have the first two pages of each chapter colored gray with white text, before starting with the sections on white pages. I now want a partial TOC in each chapter, on these ...
4
votes
1answer
24 views

ellipsis+titletoc+…(utf character) : does it also cause a bug and how to solve it?

The error In the MWE \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{titletoc, ellipsis} \begin{document} \addcontentsline{toc}{section}{So…} \end{document} I get the error ...
4
votes
2answers
60 views

Hyperref links in TOC point to wrong location when using titletoc

I have modified the formatting of subsections in the toc, so that they appear in one line instead of separate lines. For this i used the titletoc package. Here is a MWE: \documentclass{scrbook} ...
2
votes
1answer
47 views

add \figurename to \listoffigures (package titletoc)

at the moment I'm a little bit fighting with my listoffigures. - I 'just' want to put the \figurename(here it is "Pict.") in front of the \contentslabel in the lof. Here's a little code example: ...
3
votes
1answer
50 views

How to make a separate toc in appendix

I want to have a table of contents in the appendix. My situation looks like this: --rest of document-- \appendix \setcounter{secnumdepth}{3} \chapter{Title of appendix} \stopcontents ...
2
votes
1answer
69 views

Alignement in table of contents (\titlecontents)

In the code below, I use \titlecontents{part} to customise the way the parts are displayed in my table of contents. \titlecontents{part} [0em] ...
1
vote
1answer
59 views

How to modify \titlecontents{part}?

For the moment, I have and I would like to change the part entry to obtain something like that Can you help me to modify the code below? \documentclass{book} \usepackage[english]{babel} ...
3
votes
1answer
44 views

On the use of \titleofcontents to customize the table of contents

I use the following piece of code (titletoc package) to customize the "part entries" of my table of contents. Can you help me to push the page number to the right so that it is aligned with the other ...
2
votes
2answers
336 views

Adding word “Chapter” into Table of Contents for only numbered chapter entries

I'm trying to use the titletoc package to add the word "Chapter" only to my numbered entries in my Table of Contents. I'm using a report document class. I'm really close (I think), I just need to know ...
4
votes
1answer
99 views

Generate a ToC from left to right: author, page number, title

This is the kind of layout that might occur in a compilation, front page of a journal, magazine, or a book with each author having a separate entry or article. I'm trying to generate a table of ...
6
votes
3answers
325 views

Titlesec & Titletoc: dangerous relationships

Please, consider the following code: \documentclass[a4paper]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[italian]{babel} \usepackage{cfr-lm} \usepackage{titlesec} ...
3
votes
1answer
192 views

How to imitate great looking Motion Mountain ToC, including hyperlinks?

I wanted to customize my ToC to look more or less like the one in Motion Mountain physics textbook, including clickable page numbers. My decision was to use hyperref and titletocpackages. Now it seems ...
2
votes
1answer
297 views

Customization of chapter entries in Table of Contents

I want to customize chapter entries in Table of Contents. \documentclass[final]{book} \title{Title} \author{Author} \date{} \begin{document} \maketitle \tableofcontents \chapter*{Chapter Title} ...
6
votes
1answer
193 views

Custom table of contents with appendices, how to get 'Chapter' and 'Appendix'

I try to generate a table of contents which hopefully should look something like Chapter 1 First chapter .... Chapter 2 Second chapter .... Appendix A First appendix .... Appendix ...
8
votes
4answers
159 views

LOF: Formatting Figurenames and adding Column Names

Here is the specific format I have to apply to the LOF: It should be Basically 3 aligned columns that contain: page number - figure number - the figure name (in this very order, like a tabular). And I ...
0
votes
0answers
58 views

Table-of-Contents items appearing flush against the edge of the left margin

I am using \documentclass{amsart} and want my table of contents subsections to be indented slightly beneath the sections. Right now, all the sections and subsections are equally flush to the left ...
2
votes
0answers
139 views

Chapter Headings in TOC

I'm looking to accomplish what was shown here: Table of Contents with Chapter Where the toc was changed from 1 Introduction to Chapter 1 Introduction Except I also have an abstract, ...
4
votes
1answer
94 views

Chapter titles as hyperlinks in the list-of-figures

I would like to include the chapter titles in my list of figures. @GonzaloMedina previously answered this question using titletoc. However, not all my chapters are numbered, so I would like the ...
4
votes
2answers
273 views

Problem with titlesec/titletoc/tikz

I have a problem in the sheet dedicated to the table of contents. I'm using titlesec/titletoc/tikz which works fine except in the page "table of contents". I have this result : The problem is that ...
3
votes
1answer
113 views

Separation between label and Title

How can I increase the space between the Section number and the Section-Title in the TOC? I am using the titletocpackage and my code currently looks like this: \contentsmargin[25pt]{0pt} ...
3
votes
1answer
143 views

How to limit number of sections in minitoc using titletoc

Anyone know how to limit number of section titles, for example to 3 or 4, in one line minitoc using titletoc? So, in example bellow, sections starting with "Kolyvagin Classes" should be in the second ...
1
vote
1answer
161 views

how to make hard code in table of content?

I am using the pdfpages package for including a few pages of pdf to my main LaTeX document, therefore I would like to add some lines to the table of content for that pages by myself. I am using the ...
0
votes
1answer
270 views

Remove header and footer in titletoc

With the standard TOC, I use this code : %make the second and other page from TOC without header and footer \makeatletter \patchcmd{\tableofcontents}% <cmd> {\@starttoc}% <search> ...
2
votes
1answer
105 views

How to trim the space in the contents page?

I hope to remove some vertical space between the top of the content page and the word "Contents" so as to put a bit more lines in the page. I am using the "titletoc" package. Are there any way to ...
4
votes
1answer
678 views

Appendix with titletoc and memoir

I'm trying to customize the TOC layout with titletoc in a memoir document. The chapter styling works well as below, but if I try the appendix section, I'll get an error for missing number. I think I ...
4
votes
1answer
249 views

New titleclass not counted in the table of contents

The following defines a new titleclass which I would prefer not counted in the table of contents defined. How can this be achieved? \documentclass{book} \usepackage{titlesec} \usepackage{titletoc} ...
2
votes
1answer
153 views

Transfering Style of Sectioning-Titles to TOC-, LOF-, LOT-Titles

This is a continuation of my last (answered) question: I want to style the Title of TOC, LOF and LOT exactly the same as the Sectioning-Titles. Problem is that they (a) start "higher" than normal ...
2
votes
1answer
379 views

Titletoc and Titlesec in just some chapters

I have a twocolumn document and I should insert the minitoc in the first chapters with titlesec and titletoc. I read the answer to Customize minitoc; however, if I change the \titleformat before ...
7
votes
1answer
257 views

Typesetting listofalgorithms like listoffigures and listoftables using titletoc

I would like to typeset the \listofalgorithms generated by package algorithm in the same way than the \listoffigures and \listoftables, using package titletoc. However, I have not been able to find a ...
2
votes
2answers
388 views

Common style for global TOC, LOF, LOT and titletoc partial TOCs (with hyperref & caption)

I am currently writing my PhD thesis, and I have trouble defining a common style for my global TOC and the partial TOCs generated by titletoc. Basically if you check the following MWE, I like the ...
3
votes
1answer
146 views

How can I temporarily change title of contents of subsection formatting using titletoc

I have a common document type (grant application) which expects listed aims, usually enumerated as Aim 1, Aim 2, etc. In the MWE below, an article class works fine to format the subsection headings ...
7
votes
1answer
506 views

Weird behavior of Partial TOC with titletoc

I have been looking for two hours for an explanation to the problem I am facing, and so far I found no hint. In a document of the book class, I am trying to include partial TOC at the beginning of my ...
1
vote
1answer
141 views

Change Spacing Between Internal TOC numbering and subsection titles

In my Supporting Info chapter, I have my subsections defined as \renewcommand{\thesubsection}{\thechapter-\Roman{section}.\arabic{subsection}} Which is the format requested of me by my professor. ...
1
vote
1answer
308 views

Mimic memoir ToC layout in titletoc output

I with the help of a previous answer on here Different tocdepth for main toc and in-section toc, I have made it so my titletoc is able to contain subsections while my main toc does not have them. ...
0
votes
0answers
44 views

How to revert changes made with titletoc [duplicate]

Possible Duplicate: How to save and restore chapter's heading format I have a document with a structure : Content Appendix Bibliography As I wanted to change the ...
4
votes
1answer
803 views

Problem with titleformat: Don't want Chapter Style to be Applicable on Table of Contents & Bibliography

Please consider the following code: \documentclass[11pt,twoside,openany]{book} \usepackage[svgnames,x11names]{xcolor} \usepackage{wallpaper} \usepackage{changepage} \usepackage[explicit]{titlesec} ...
7
votes
1answer
150 views

Page Number Spacing Issue With Titletoc

I'm new to LaTeX and I could use a bit of help. I'm using the report class and I'm trying to color the chapter headings a green I have defined. I don't really want to change the default formatting, ...
2
votes
4answers
909 views

Generating .toc file without generating a ToC

Problem: I want to generate a .toc file without the table of contents actually being displayed anywhere in the text. Background: I want a short ToC at the beginning of my text, using shorttoc. Then, ...
5
votes
1answer
444 views

How to remove section indentation in partial ToC using titletoc?

See MWE below. How can I remove the indent in front of the section entries in the partial ToC (only there, not in the normal ToC)? \documentclass{book} \usepackage{titletoc} \usepackage{lipsum} ...
6
votes
2answers
630 views

Roman chapter numbers cause overfull hbox in titletoc-ToC

Overfull hbox in ToC after chapter numbers changed to Roman; see MWE below. With the tocloft package \setlength\cftchapternumwidth{3em} solves the problem. But: Is there any solution to the problem ...
6
votes
1answer
425 views

Remove entries from short ToC but not from long ToC

Please find a minimal example illustrating this question below. The problem is this: There is only one appendix chapter, which is divided into several paragraphs. These paragraphs should appear in ...
4
votes
1answer
1k views

How to add leaders to Table of Contents without tocloft?

I'm using a third-party non-standard document class which is based on book. Class be damned, I want to add dot leaders for chapters, sections and subsections in the Table of Contents. If I include ...
5
votes
0answers
255 views

How to customize the font and margin for lstlistoflistings TOC entry? [closed]

In my LaTeX template, I define the chapter and section TOC entry with the titletoc package: \titlecontents{chapter}[0pt]{\vspace{.1\baselineskip}\bfseries} {\thecontentslabel\hspace{2.8mm}}{} ...
5
votes
1answer
447 views

How can I customize the listoftable with titletoc package

I know how to customize the chapter and section toc withtitletoc package just like this \titlecontents{chapter}[0pt]{\vspace{.1\baselineskip}\bfseries} {\thecontentslabel\hspace{2.8mm}}{} ...
11
votes
2answers
452 views

Different tocdepth for main toc and in-section toc

Having code like this \documentclass{article} \usepackage{lipsum} \usepackage{titletoc} \begin{document} \tableofcontents \section{A long section} \startcontents[section] ...
6
votes
1answer
3k views

Understanding titletoc example (and vertical alignment on line)

EDIT: TLDR summary (as I wrote in comments): What I want from this question (and couple of others referenced herein) is: -- section number (label) to be top-aligned with the title + AND I want the ...
6
votes
1answer
926 views

suppress pagebreaks in titletoc's titlecontents* blocks

How do I suppress pagebreaks in the toc "paragraphs" produced by titlesec's \titlecontents* command without stopping linebreaks between subsections? The follwoing suppresses linebreaks within ...
17
votes
3answers
3k views

Include chapters in List of Figures with titletoc?

I'm working on a book using titlesec&titletoc and want to include chapters (with their numbers and names, but no page number) in the list of figures, if and only if they contain figures. Manually ...