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
1answer
23 views

How to format \contentslabel in titletoc?

so in making ToC, \contentslabel gives you the section number, and using \thecontentslabel give you the default format. The problem is that this number is in arabic, while I want to use roman. ...
0
votes
2answers
64 views

Adding the word "Chapter" to the chapter in the TOC [duplicate]

I want to add the word "Chapter" before the chapter number in the TOC (keeping the code) as follows Table of contents Chapter 1: Chapter name and no as Table of contents 1 Chapter name How ...
1
vote
1answer
33 views

Alignment of bibliography and unnumbered chapters in table of contents

I have the following MWE in which I have a bibliography (using biblatex) and an ununmbered chapter that I want to have them aligned, in the table of contents, not with the chapter numbers, but with ...
0
votes
1answer
61 views

How to get a flexible left margin in the table of contents?

I'm aware that using package titletoc one can easily change the format of ToC. But, I'm wondering if there exist some solutions to make the left margin in ToC flexible. By "flexible", I mean ...
0
votes
0answers
79 views

Automated customized indentations in first line by different levels of titles

I’m trying to create a Latex template to write my thesis. As usual, my university impose some formatting rules. I managed to implement all but this. The thesis can have 5 levels of titles. First one ...
1
vote
1answer
25 views

Titletoc margins and part content name

I'm working on the table of contents for my dissertation, using titlesec and titletoc. I finally figured out how to setup the margins of the chapter entries to be aligned with the part, except the ...
1
vote
0answers
28 views

coloring and changing font of TOC using titletoc

I have to create the following TOC: As for now, I was able to create this: It was made using titletoc, namely I specified: \titlecontents{section}[1em]{\normalfont \sffamily \bfseries} {\...
0
votes
2answers
53 views

Changing TOC font to Helvetica with titlesec

I'm writing a template for my university's phd theses in a book document class, but I keep getting stuck at how to implement the titlesec package. I've managed to remove the 'Chapter 1' numbering, but ...
2
votes
0answers
62 views

ToC appearance to be customized/optimized

Unfortunately a minor problem with my ToC encountered recently. My recent research in the internet was equally unsuccessful. Thats why I ask you for help and I hope there is somebody skilled out there ...
2
votes
0answers
19 views

Inserting partial ToC into \part

I am currently just playing around with TeX and I had some questions regarding the use of titletoc and the book documentclass. As of now, I am creating partial small ToC after each chapter with the ...
1
vote
0answers
93 views

The variable \partname is not included in the CONTENTS output display in amsbook class

% %------------------------------------------------------------------------------------------------------------------------ % \documentclass[english,11pt]{book} %---------------------------------------...
0
votes
1answer
34 views

How can I remove the prefix "Appendix" from toc? [duplicate]

I am an spanish user. But I found here are a great community, so I have to ask. After review many post, and questions in Tex StackExchange. The problem keep me stuck and watching the code, I don't ...
0
votes
1answer
63 views

Narrowing ToC with titletoc

Following up this question of mine (Increase margin in section titles with titlesec), I'd like to configure my Table of Contents in a similar way, mainly to substitute the bold font for section titles ...
0
votes
2answers
36 views

Paragraph number misaligned when included in table of contents

I want to include paragraphs in my table of contents for my dissertation. However, when I do so, the paragraph number is misaligned compared to the rest. The numbers for the preceding sections are set ...
1
vote
2answers
62 views

Single spaced long chapter title with double spacing between different chapter titles in table of contents

I am preparing the table of contents for my thesis via the titletoc package. Specifically, I have a long chapter title that continues through multiple lines which are double spaced. However, I need ...
1
vote
2answers
50 views

Change subsection font in TOC, but keep dotting and page number unaffected

I am trying to to change the subsection font to italics in the TOC, and have managed to do so like in this MWE typesetted with pdflatexmk with the TeXShop app for MacOS: %% Define document class with ...
1
vote
0answers
35 views

How to add a TOC of subsections at the beginning of each section in a book

Right after each section title, I would like a partial TOC of the subsections in that section and that section only. titledoc's \startcontents[sections] \printcontents[sections]{p-}{2}[2] prints all ...
0
votes
2answers
75 views

Chapter numbers followed by a dot in Table of Contents (TOC), but not in Headings (Titles)

In the book class, I want parts, chapters, sections, and subsections numbers to be followed by a dot, both in headings and TOC, with one exception: chapter numbers should only add a dot in TOC, but ...
0
votes
1answer
35 views

Ragged right TOC entries using \titlecontents* int tufte-book

I am trying to make the subsection entries in a TOC to be grouped together as a paragraph, as provided by the \titlecontents* command in the titletoc package. See my attempt in this MWE: \...
0
votes
1answer
22 views

How can I change the numeration of my TOC?

Before my introductory chapter, I have abstract etc. How can I remove these from the enumeration of the TOC, so that my into chapter becomes chapter 1?
0
votes
1answer
37 views

Set tocdepth for local table of contents for part heading page

I am using a part of the MWE from How to use the package etoc to create local toc's? I would like to know how to set the tocdepth. \documentclass{report} \usepackage{lipsum} \usepackage{titlesec} \...
0
votes
1answer
52 views

How to get rid of unwanted line - multiple table of contents in "report" class using titletoc package

I'm writing my thesis, and have stumbled upon a problem, I don't know how to fix. I want two tables of contents - one for the actual thesis and one just before the appendix. As the headline says, I'm ...
1
vote
2answers
53 views

Insert tab space in title of contents text

I have sections with names that follow the format and some of the numbers are longer than others. When the table of contents is created, the portions are not aligned. For example, with the ...
0
votes
0answers
32 views

Header not displaying "Appendix A" when using titletoc, only displays A

By using \usepackage[titletoc]{appendix} I managed to make so that the appendix is displayed as: "Appendix A" and not "A" in the table of content. The problem is that now in my ...
0
votes
0answers
29 views

Negative \contentsmargin changes page number alignment in toc

I am using \titletoc to modify a table of contents. The problem is that the command \contentsmargin{-1.5em} seems to change the alignment of the page numbers (from right to left). \documentclass{...
2
votes
0answers
29 views

How I align my toc to the left when the chapter name is too big

This is my toc, I want to align the page number \documentclass{book} \usepackage[utf8]{inputenc} \usepackage{titletoc} \titlecontents{chapter}[5.3em]{\vspace{0.1cm}} {\hfill\thecontentslabel} {} {\ |...
5
votes
2answers
213 views

Finer control of KOMA-Script Table of Contents alignment

This is really a multi-part question largely related to getting the table of contents style to match an established style. I'm attaching screenshots below of 1) my current status and 2) the example ...
2
votes
1answer
75 views

Formatting the table of contents in a thesis document

Sorry for another newbie post. Long-story-short, I'm working in a custom thesis document that does not allow me to use tocloft. It has definitions for part, chapter, section, subsection, etc; however, ...
2
votes
1answer
27 views

Change or toggle spacing between toc entries for individual groups of entries

In my table of contents I have regular chapters with sections and subsections etc. and I have chapters as part of the preface and postface, which do not have any sections. The spacing between every ...
5
votes
2answers
114 views

Unexpected interaction of titletoc and appendix?

I have a thesis (book-class document) with several chapters and appendices. I am using titletoc and titlesec to format the chapter headings and table of contents. When I create an appendix the title ...
2
votes
0answers
58 views

"Something's wrong--perhaps a missing \item" with partial personalized TOC (titletoc)

I would like that each chapter starts with a personalized partial TOC (I did this with titletoc). When I compile I got the following error : something's wrong--perhaps a missing \item I've done a ...
0
votes
1answer
106 views

Package calc error`\let ' invalid at this point, probably wrong unit of measure

I'll attach a MWE which replicates the problem \documentclass[a4paper,11pt,oneside,notitlepage,reqno]{book} \usepackage{minted} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[...
1
vote
1answer
47 views

titlesec interferes with the part title in TOC

In this answer, I designed a simple TOC style. However, I find the TOC setting for part doesn't work normally if the title format for \part has been modified by titlesec. Without \titleformat{\part}, ...
0
votes
1answer
70 views

How can I create a fancy TOC with background colors?

I'm trying to create a TOC that looks like the following: I already tried different ways of achieving it with titletoc and tocloft but I'm not getting the desired output. I would like the links to be ...
1
vote
1answer
22 views

How to increase vertical separation of table of contents entries when using titletoc?

I have a document like this: \documentclass[oneside]{book} \usepackage{titletoc} \titlecontents{chapter} [0pt] {} {\makebox[10em][r]{\thecontentslabel}\hspace{1em}\bfseries} {\makebox[...
1
vote
0answers
44 views

How to add or reduce the vertical space between lines in the TOC?

I'm using titletoc to produce the TOC of the whole book, and using minitoc to produce the TOC of each Chapters. Can I assign some different style to the subsection style of book TOC and Chapter TOC? ...
0
votes
1answer
39 views

Customize table of contents to get column-names

\usepackage{tocloft} \begin{document} \fontsize{14}{14}\selectfont {\tableofcontents{}} \end{documents} By this code, I get a simple table of contents: Contents Introduction ...
0
votes
2answers
67 views

How can I align the multiple line of chapter title with titletoc package?

I am currently doing my thesis. I use titletoc package to manage my TOC. I have a problem with the very long chapter title. I would like to have a new line that is aligned at the same as the first ...
0
votes
0answers
45 views

Can someone tell me why is the title look like this?

\makeatother%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \renewcommand{\thesection}{\Roman{section}} \renewcommand{\thesubsection}{\thesection.\Alph{subsection}} \usepackage[brazil]{...
0
votes
1answer
125 views

How to set margin of titletoc

I am currently doing my thesis. I am going to create a table of content. I use titlesec and itletoc to manage my TOC. However, some chapter heading is perfect alignment but some chapter is not. ...
1
vote
0answers
54 views

Titletoc - addtocontents not obeying partial toc \startcontents

Consider the following MWE: Two chapters. The first chapter additional injects two items to toc a) - One via \addcontentsline b) - A second via \addtocontents (a) behaves properly in respect of the ...
2
votes
3answers
599 views

LuaLaTeX: Automate multiple compilation with for ToC, Index, Bibliography, Glossary and others on CI

To have reproducible and reliable builds of documents on a remote CI system I would like to automate all the command line tools and multiple compilations necessary to produce a complete document. This ...
0
votes
2answers
117 views

Unable to get sections to display in the table of contents

I'm using \documentclass[12pt]{book} to put together a 500-page book. The .tex file is getting pretty heavy and complex. As a result, I'm running into conflicts with the ToC. \setcounter{tocdepth}{3} ...
0
votes
0answers
59 views

How do I format my Table of Contents in LaTeX to this?

How do I implement this TOC in LaTeX? This is the TOC of "The Variational Principles of Mechanics" by Cornelius Lanczos.
1
vote
1answer
26 views

Can I have chapters numbered while not having them appear in the table of contents automatically? [duplicate]

I have a thesis file that has chapters, sections, etc. In the document I make references to previous lemmas, etc. I want to remove the automatic generation in the table of contents of the chapter ...
1
vote
1answer
70 views

Remove chapter number before section number within TOC only

I have seen the answer to a similar question, but I want more control: I have roman Chapters and arabic sections. I want the roman numeral to be hidden from the TOC, and from the TOC only (...
0
votes
1answer
65 views

Titletoc + multitoc : conflit on \@starttoc

I got an troublesome issue when using both titletoc and multitoc. In short, code looks like this : MWE : \documentclass{report} \usepackage{listings} \usepackage{titletoc} \usepackage[toc,page]{...
0
votes
1answer
77 views

How to split a Listings table

I would like to split \lstlistoflistings into two lists (one in the main contents of the document, one in the appendices). Titletoc only works for figures / tables : is there a workaround for that ? ...
2
votes
1answer
46 views

How can I put section title numbers in a box

How can I put section title number in a box and I want the numbers to be shifted like this picture : This is my code. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{xcolor} \...
1
vote
1answer
145 views

Tikz for Chapter heading with polyglossia

When I add polyglossia (commented in code) the code does not work. I do not know where is the error. Can anyone help me? \documentclass[10pt,a4paper,openany]{book} \usepackage[x11names,dvipsnames,...

1
2 3 4 5
7