The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
102 views

Unnumbered centered part: linebreak in table of contents

I am working on a XeLaTeX “book” document, which is separated in two unnumbered parts. These two parts need to be entitled according to a “Title / Subtitle” scheme, with a linebreak as a separator ...
3
votes
3answers
79 views

Different styles for sections

I would like to have several kinds of \sections. \starSection{Title} would print “1.3 Title” but \starSection[2]{Title} would print “1.3** Title”. Could you help me? Thanks edit Actually, I would ...
2
votes
3answers
37 views

Using titletoc to redefine chapter toc entry as part number + chapter

I am trying to get the part number appended to a chapter within that part. E.g. I would like to get: I Part One I.1 Chapter One I.2 Chapter Two II Part Two II.3 Chapter Three II.4 Chapter ...
1
vote
2answers
53 views

How to set margin between section number and section title in TOC?

I want to create a TOC, that will have equal margins between section numbers and section titles regardless of the number of digits in section number. I have an example of solution, but I want to use ...
0
votes
1answer
28 views

The name at the beginning of the letters in the appendix does not change in ToC

MWE \documentclass{book} \usepackage{lipsum} \usepackage{titletoc} \usepackage{appendix} \renewcommand{\chaptername}{\textit{Division}} \renewcommand{\appendixname}{\textit{Addition}} \...
0
votes
1answer
33 views

delete the header of the table of contents

I want to delete the header of the table of contents pages, to keep only the title : table of contents. and this my code is : \documentclass{book} \usepackage{fourier} \usepackage{tikz} \usepackage[...
0
votes
0answers
52 views

upgrade to texlive 2019 - printcontents from titletoc doesn't use specified titlecontents formatting

Just upgraded to the 2019 version of LaTeX. Prior to upgrading, this command had no problems: \printcontents{l}{0}{\setcounter{tocdepth}{1}} After upgrading, this command does not print the ...
4
votes
1answer
148 views

Make decrease the space between title of list of figures and list of tables on the same page

I try to reduce the space between the title name of list of figure ("Liste des Figures" on the image below) and the list of figures. I would like to do the same for the title name of list of tables ("...
0
votes
0answers
30 views

How do you change the font style of a part or section without changing its size and spacing?

I'm trying to make all of my parts, sections, and subsections in article class \scshape. First, being the naïve LaTeX user I am, I tried \renewcommand{\part}[1]{\part{\scshape #1}} and \renewcommand{\...
1
vote
1answer
153 views

titletoc-like toc-layout for subsections with KOMA-Script only

Since the use of titletoc in connection with KOMA-Script is not recommended, I am looking for a solution that allows the following toc-layout for subsections exclusively with KOMA-Script. I tried it ...
3
votes
1answer
49 views

ToC after chapter configuration

The following mwe example showcases some issues that I am currently facing. Any help would be appreciated. \documentclass[letterpaper,11pt,openany]{book} \usepackage[showframe]{geometry} \usepackage{...
3
votes
0answers
23 views

Prepending digits to section numbers in ToC

I have more than ten sections that I want to list in the ToC as the following: Which means I need to prepend 0s to sections of \ifnum\thesection<10. How do I do this in the ToC? MWE : \...
2
votes
0answers
70 views

titletoc fails with custom titlecontents

I'm using titletoc for having a partial index going down to paragraphs. I wrote a custom formatting for it using \titlecontents and \titlecontents*. In some cases (some specific combination of ...
1
vote
1answer
41 views

How to convert \tableofcontents from interfaces-tocloft to titletoc package?

I'm trying to remove the interfaces-tocloft package from my documents, it causes problems in some and loads packages that I do not want in some occasions, so I've tried using titletoc (which is ...
0
votes
1answer
86 views

Display a titletoc in the style of minitoc

I'm writing my thesis and for easy reading and structures, I'm using the minitoc package to display a ToC for each chapter. When I get to the appendices however, the \minitoc doesn't work anymore (it ...
0
votes
0answers
33 views

Table of Contents - alter number of vertical spaces

In my thesis, I'm required to submit a table of contents which begins 5 blank single-spaced lines below margin. The contents of the table begin 2 single-spaced lines after the header. The picture ...
0
votes
2answers
50 views

Overfull hbox in toc

While compiling the code: \documentclass[draft]{book} % --------------------------------------------- \usepackage{titletoc} \contentsmargin{0pt} \titlecontents{chapter}[0pc]% {\addvspace{2.7ex}\...
4
votes
1answer
115 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
28 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
39 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
31 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
34 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
71 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
166 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
36 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
66 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
58 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
212 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
149 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
63 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
62 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
48 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
44 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
48 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
62 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 ...
2
votes
1answer
93 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
54 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
240 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
45 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
28 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
112 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
45 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 ...
1
vote
1answer
137 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
53 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
103 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 \...
1
vote
1answer
58 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
32 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
180 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
91 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
47 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 ...