Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [titletoc]

{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.

4
votes
1answer
66 views

How do I recreate this two-column TOC layout with chapter goals on the left and TOC on the right

Recently I have been looking through Till Tantau's (the creator of TikZ) script on logic (see here). He uses a beautiful layout at each beginning of a chapter. So I want to recreate the little "...
1
vote
1answer
15 views

hyperref and titletoc: prints extra “section.1” or “Doc-Startchapter.1”

I'm using both hyperref and titletoc for writing my thesis, which is known to cause other kind of incompatibilities which I don't observe in my case. Using titletoc I'm adding a table of content at ...
0
votes
0answers
25 views

Spacing between figure number and caption text in table of contents

I want to have equal spaces between my caption number and caption text on the list of figures and list of tables. I tried modifying the lines as given Here But the list of figures have less space in ...
1
vote
1answer
18 views

Indentation after line wrap in listoftables/listoffigures using titletoc

I am trying to better understand the titletoc package behavior. I am wondering if there is a decent way to control the hspace infront of all the "wrapped" lines. In other words, of all lines except ...
0
votes
1answer
20 views

Unwanted space between page number and margin when using titletoc

When using the titletoc package, how does one get rid of the space between the page of the chapter, section, ecc and the right margin of the page? MWE: \documentclass{book} \usepackage{titletoc} \...
0
votes
1answer
32 views

Chapter name separate from chapter titles in table of contents

I want my chapter title names to be on separate line dotted as shown in the picture below observe that the chapter name is in Arabic dotted on its own line and the name of the chapter follows. I have ...
2
votes
1answer
154 views

epigraph and titlesec+titletoc create misbehaviour

I use titlesec and titletoc to create my own style of chapter that contains a minitoc after the chapter title. And I use epigraph when I want to have one before the chapter title. I am currently ...
0
votes
0answers
25 views

How to get no numbering in table of contents, but still have dots to page numbers?

Using titletoc. I can get numbers in the table of contents (i.e. before section/subsection/etc. heading) with dots going across to the page number using \dottedcontents. I can get no numbers but ...
3
votes
1answer
35 views

Problems formatting \part entries in ToC with `titletoc`

I'm trying to understand how to use titletoc and I succeeded in customizing the appearance of chapter entries in the ToC, but I'm failing with \part. I can't understand what I'm doing wrong. Here's ...
0
votes
1answer
46 views

Fail to renewcommand contentsname if \pagesty{fancy} is introduced

When I customize the \contentsname with \renewcommand, I find that the existence of \pagestyle{fancy} or \thispagestyle{fancy} will cause compile fail. I can't understand this. why? Is this a problem ...
1
vote
1answer
66 views

Titletoc + titlesec to create automatic ToC at beginning of chapters

I want to create an automatic Table of Content (ToC) at the beginning of very chapter. To do so, I use the combination of packages titlesec and titletoc. I use \titleformat to include the command to ...
0
votes
0answers
127 views

Use titletoc to create a new list of equation

From this question it is possible to create a list of equation (or other object). But the solution suggested in the answer is using tocloft. Therefore, I would like to know if it's possible to do this ...
0
votes
1answer
54 views

List of figures showing id of figures not included

I tried to make two separate list of figures. One for Appendix I and one for Appendix E. I found this code on stackexchange.com: \usepackage{titletoc} \startlist[main]{lof}% starts main list of ...
0
votes
2answers
43 views

Aligned TOC with titletoc

I'm trying to get my toc build with the titletoc package as I'm using it to do other content tables with it. I get it to work almost like i want it to, but i have some issues: First of all i have do ...
0
votes
1answer
41 views

Error with \titleformat command after inserting TOC

MWE: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsfonts,amssymb,amsbsy,amsmath} \usepackage{tocloft} \usepackage{times} \usepackage{titlesec, titleps titletoc} %%\titleformat{...
1
vote
1answer
34 views

Change TOC number system

In using this TOC Style, I want to change the number system of the TOC, i.e., I do not want to use the Arabic numbers, but the ancient Greek number system for pages and chapters. I tried: \...
0
votes
1answer
39 views

Chapters in TOC horizontally align

I want to reproduce this TOC style with Latex, but I do not know how to do this with titletoc, all my attempts to put the chapter format in line just led me to errors, so, I do not have any kind of ...
0
votes
2answers
47 views

Handle part (book class) with titletoc/xelatex

Referring to this thread: Handle part (book class) with titletoc , I've a new file, this time compiled with XeLaTeX (and no more with pdfLaTeX). If I use the same code for titletoc, section titles ...
1
vote
1answer
65 views

Page numbers in ToC not right aligned

I have a problem with my ToC. If a Chapter title is as long as the width of the TOC, then the page number is forced into the next line. However, the page number is not aligned on the right hand side ...
2
votes
1answer
42 views

Strange behaviour of Table of contents if there are some Greek words inside the text

Referring to this thread: Subsection titles (and not only) alignement with titletoc, I've a strange behaviour in a specific case. Please, consider the following code: \documentclass[a4paper,twoside,...
3
votes
2answers
112 views

Long chapter titles not aligning correctly in ToC

I am having trouble formatting the ToC for a book. I have long chapter titles which wrap onto two lines of ToC text. The problem is that the second line of a single chapter title is aligned with the ...
0
votes
0answers
38 views

Difficult partnership of titletoc and titlesec

Thank to different threads and to the help of tex.stackexchange, I reached satisfactory formats both for Table of contents and for text titles. But escapes me the logic of the synergy between titlesec ...
1
vote
0answers
17 views

How to increase linespread in titletoc?

I was using titletoc to include 'CHAPTER' in the table of contents. But for long chapter titles, the linespread became uneven (see figure). This has disrupted the double spacing format using \...
1
vote
1answer
61 views

Subsection titles (and not only) alignement with titletoc

Referring to this tread Section titles alignement with titletoc I've a further and (I hope) last question. I've a problem to apply this code to subsection to obtain this result: My (wrong) code it's ...
1
vote
0answers
29 views

How to include the section in the same line as the subsection in the table of contents (report class)?

I am using the report class to make a pdf via LaTeX. I have a table of contents, which looks more like an outline. Just below is a picture for examples sake. I would like to show all the higher ...
0
votes
1answer
70 views

Overfull \hbox in table of contents page numbers with kpfonts

It seems like the table of contents of standard classes (nor with titlesec loaded) do not adjust the spacing reserved for page numbers depending on the font used. The example is the following: \...
2
votes
2answers
33 views

Handle part (book class) with titletoc

I'd like to have \part title as in figure 1, centered in 2 lines, but I'm not able to create the right code, even if I didn't find in titletoc manual a specific treatment for \part. The following ...
2
votes
1answer
85 views

Section titles alignement with titletoc

with the following code \documentclass{book} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{titletoc} \titlecontents{chapter} [0em] {\vspace*{\baselineskip}} {\mdseries \...
0
votes
0answers
41 views

Custom TOC works with \chapter*, but not \chapter, in \frontmatter

In the custom TOC below (original here), \frontmatter gives the following error when used with \chapter but not with \chapter*, and I am unable to figure out what is missing. ! Extra }, or ...
1
vote
1answer
48 views

Part Number separated of Part Name in Table of Contents

I've created this simplified TOC based on this amazing post. MWE: %XeLaTeX \documentclass[11pt]{book} \usepackage[ paperwidth=8in, paperheight=10in, inner=0.5in, outer=0.5in, ...
1
vote
0answers
25 views

No indentation in local ToC

I do not want indentation on the local ToC. I am using the titletoc package, also I use titlesec and titleref packages. \documentclass[twocolumn]{book} \usepackage[english]{babel} \usepackage{...
4
votes
1answer
148 views

Sub-Tocs in Appendices and Appendices as Sections on Toc

I am trying to compile a document with 'Sub-tocs' on the first page of each part and each chapter. Gonzalo Medina's solution to a previous question can be used to achieve this. The appendices ...
0
votes
1answer
63 views

Titletoc not working with chapter?

I need to generate two separate lists of images in my document, so I want to use titletoc and \startist, \stoplist and \printlist commands. When I try to compile my document, I get an error: ! LaTeX ...
1
vote
0answers
42 views

How to add this heading to list of equations [closed]

I generated a list of equations in a report class with this code in preamble: \DeclareCaptionType{myeqcap}[][List of Equations] \captionsetup[myeqcap]{labelformat=empty} Now, I want to add this ...
0
votes
1answer
87 views

ClassicThesis - more space after TOC title

I work with the latest ClassicThesis package and realized the TOC shows my entries too close to the title "CONTENT". I would like to have some more space between the title and the first entry of the ...
3
votes
1answer
74 views

How do I change the text at the ToC?

Here is an example for a .lyx file: % Preview source code %% LyX 2.3.0 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \...
0
votes
0answers
34 views

Can I do a different design for ToC and unnumbered section?

Look at this question: How do I return the normal ToC format? And now see the example here: % Preview source code %% LyX 2.3.0 created this file. For more info, see http://www.lyx.org/. %% Do not ...
0
votes
1answer
47 views

How do I return the normal ToC format?

I use a styled section format with titlesec (and mdframed, but it also happens with tcolorbox), and it change the style of the TOC. How I return it to the normal style? (see picture and file below) % ...
0
votes
0answers
61 views

titletoc: inserting text, or space, in toc without page number

I now use the titletoc package to generate several toc's with different ranges and depths in the same document. How can I insert in these toc's a word, a hrule, a vertical space, etc. without ...
0
votes
0answers
97 views

Multiple toc's with a different depth

Another question about my large book with three volumes contained in a single latex document (the latex class is book). It already has multiple toc's; minitoc inserts a specific toc at the beginning ...
0
votes
0answers
57 views

Color problem: Displaying author for each chapter in book

I am quite new to latex, so I hope to find some help here. I am preparing a journal using the book class and need to have the author for each chapter printed in the table of contents and at the top of ...
0
votes
1answer
176 views

Appendix font size too small in table of contents

I am trying to create my table of contents, but I want the text "Appendices" to have the same font size as a part (Investigation). How can I increase the font size? Also, I have tried \...
1
vote
1answer
51 views

Lyx: add space before figure title in list of figures

How to add space before figure titles in list of figures ? I'm using LyX Version 2.3.0 Adding the following code to the preamble yields the following error \usepackage{tocloft} \setlength{\...
3
votes
1answer
106 views

Trouble changing word “Chapter” in ToC to something else

I am trying to change the word "Chapter" to "Story" in the ToC. I have successfully changed it in the chapter headings, but the ToC is giving me trouble. I tried to alter this answer, but it hasn't ...
0
votes
1answer
73 views

frontmatter command causing error when used with custom ToC

I've been playing with this pretty ToC, with the goal of simplifying it for my needs. I have successfully done that, but when I try to implement it into my bigger file, \frontmatter seems to cause an ...
1
vote
0answers
46 views

Put “Section” “Sub Section” “Paragraph” “Sub Paragraph” in front of the title in table of contents using “titletoc”

I want to put the table of contents as: the Chapter and Part: Part 1 Title Chapter 1 Title Chapter Section 1 Section Title Section 1 Section Title Subsection 1 Section Title ...
0
votes
1answer
109 views

titlesec footers and headers

I've read through the titlesec package, and I don't understand why my headers don't appear (in chapters, not TOC or intro) and why the page numbers on the first page of each chapter are in the center ...
1
vote
1answer
69 views

Table of Contents - Font Parameters

The font, font size, and color for my section titles are different than the rest of my document. The goal for my table of contents is to use the same color (black) and font type (Fourier) as the rest ...
0
votes
1answer
101 views

\chapter* with a titletoc entry and a running head [duplicate]

The answer referred to above involves Koma and deals with a single chapter. I have not been able to make any use of the answer in my case where the document class is book and where I want to deal with ...
0
votes
0answers
104 views

Aligning Mutli-line Chapter name in table of contents

I am making a report. The table of contents needs to be adjusted to as shown below I have used packages for adjusting Table of Contents, However I am not able to get the following things ...