{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

2
votes
2answers
86 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
58 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 ...
5
votes
3answers
210 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} ...
2
votes
1answer
165 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
164 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
127 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
143 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
52 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
117 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
81 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
228 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
104 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
126 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
142 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
224 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
97 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
561 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 ...
3
votes
1answer
207 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
144 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
332 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
203 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
354 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
142 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 ...
6
votes
1answer
414 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
133 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
287 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
700 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
135 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
690 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
379 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
559 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
378 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
954 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
236 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}}{} ...
4
votes
1answer
385 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
413 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
2k 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
862 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
2k 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 ...
6
votes
1answer
982 views

Modifying mini-toc content

I have adapted the pretty table of contents solution written by Gonzalo Medina with the modification to the "blue box style" that Stephan Lehmke helped me with to design a somewhat consistent ...
4
votes
1answer
223 views

Automatically adjusting size of a box based on other content

The following code creates chapter titles with a red bar of adjustable height. Currently, I have to potentially adjust the height for each chapter based on the included mini table of contents. Is ...
2
votes
1answer
393 views

Modifying toc & bib titles

I would like to \flushright the toc's and bibliography's title, but the font size and spaces above and below should be the same as for regular chapters. Here is what I did: \documentclass{report} ...
8
votes
2answers
331 views

Custom ToC — Put vspace only below chapters that have sections in them

I’m using the titletoc package in the book class. Currently, my chapter entries are configured like this (I left out the unimportant parameters for simplicity): \titlecontents{chapter}[0pc] ...
5
votes
1answer
780 views

Indention of partial TOC (titletoc)

I'm happily using this solution I asked for few days ago: Two independent TOCs Now a follow-up question appeared: My second TOC contains only \subsubsection and deeper nested elements till ...
3
votes
1answer
322 views

Making the dots in a TOC go all the way up to a number (using titletoc)

I’m using the titletoc package to create a TOC. How can I make sure that my dotted lines always touch the number? More precisely, I want the dotted lines to look as in the following image:
9
votes
2answers
888 views

Inline table of contents

I am trying to generate an inline Table of Contents that would have no title, a depth of two and the following formatting: 1. Section one ‖ 1.1. Subsection one; 1.2. Subsection two ‖ 2. Section two ...
1
vote
0answers
308 views

Including a graphic in the contentsline of a Table of Contents [closed]

In a dictionary, I have the first page of each section — corresponding to a different letter of the alphabet — marked to appear in the table of contents, using the titletoc package: ...
5
votes
1answer
988 views

titletoc: How to format mini/partial tocs for each section (hspacing, vspace of entries)?

I would like to have partial tocs (mini-tocs) for each section. I would like to achieve this with the titletoc package. As you can see from the code below, it pretty much does the job but the problem ...
1
vote
0answers
67 views

List of Figures / Tables Prefixed with “Figures” or “Tables” [duplicate]

Possible Duplicate: Adding word 'Table' before each entry in list of tables I'm attempting to modify the figure and table listing in my document from: 3.1 Some_Figure To: Figure ...