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
1 vote
1 answer
20 views

How to feature only chosen subsubsections in the toc

I am working on a document which contains a lot of sections, subsections, and subsubsections. I am only printing the sections and subsections in the table of contents to keep it less cluttered. ...
user avatar
0 votes
1 answer
28 views

How do I make the section text in capital letters?

How to format the section with capital letters and leave the TOC text in normal format. I want to use this command: \section{Section Text} with the result similar to this: \section[Section Text]{\...
user avatar
0 votes
1 answer
39 views

How to remove the text added by \addtocontents

\documentclass{article} \usepackage{etoc} \begin{document} \addtocontents{toc}{\hfill Page\par} % The first TOC \tableofcontents \section{first part} \subsection{first part} % The second TOC %%%% I ...
user avatar
  • 2,353
1 vote
1 answer
23 views

How to Align part number to the right and part name to left, in toc

I need to align the roman number to the right, to maintain part names vertically aligned \documentclass{book} \usepackage{graphicx} \usepackage{titlesec} \usepackage[T1]{fontenc} \usepackage{fontspec}...
user avatar
0 votes
1 answer
30 views

Remove page link/number from table of contents for Part, make it centered and name in new line

I am trying to reproduce the format of table of contents shown here: My attempt: \documentclass[12pt]{book} \usepackage{tocloft,titletoc} %\cftsetindents{section}{0em}{2em} %\cftsetindents{...
user avatar
  • 799
0 votes
0 answers
14 views

Repeat TOC at each part and highlight relevant entries

At every part I would like to repeat the full table of content, but would like to highlight the entries that are in this part. Is there a toc package which supports this?
user avatar
0 votes
1 answer
25 views

Titletoc appears to truncate part of the title label defined by titlesec

I have the following MWE where I'm adjusting how my sections are rendered using the titlesec package. Based on this question, I came up with the following: \documentclass{article} \usepackage{titlesec}...
user avatar
  • 1,382
0 votes
0 answers
17 views

How to make local list of tables and local list of figures

How can I create a local list of tables as well as a local list of figures in the same manner discussed in How to make a local TOC that only shows levels below where it is inserted? I have a book ...
user avatar
  • 733
0 votes
1 answer
32 views

I would like Appendices to be listed separately from the main table of contents

I want my table of contents to look like the included image where the appendices are listed separately from everything else. I would also like to know how to remove the excess space between the table ...
user avatar
0 votes
1 answer
24 views

Error in table of contents using parts

I run into an error using part from the package tocloft. Below is an example which generates such an error: \documentclass{book} \usepackage{titletoc} \usepackage[titles]{tocloft} \titlecontents{...
user avatar
0 votes
0 answers
18 views

titletoc: nested subsections with titlerules

I wish that my TOC looks like this: 1. Section 1 (Subsection 2, Subsection 3) ...................... 8 2. Section 2 (Subsection x, Subsection y) ...................... 12 To do so, using titletoc's ...
user avatar
  • 1,244
0 votes
1 answer
36 views

How to align section titles without numbers left to section titles with numbers in TOC with a global way?

Firt a MWE is as follows. \documentclass{book} \usepackage{tocloft} \begin{document} \tableofcontents \chapter{Chapter title} \section{Section title with numbers} \phantomsection \section*{Section ...
user avatar
  • 3,029
0 votes
2 answers
55 views

titletoc: How to match the numbering format in the table of contents to that of the section titles?

In a document class, I edited the numbering format (with color gray and Euler font) of sections and subsections using titlesec. However, I don't know how to apply the same style to the labels in table ...
user avatar
  • 6,190
0 votes
1 answer
48 views

How to change the numbering in toc and titles?

I am preparing a template for the PhD thesis at our institute. The thesis includes published papers as chapters and regular book chapters. I am building on the book.cls. I also have different ...
user avatar
  • 7
-2 votes
1 answer
39 views

How to change the Title of Bibliography Chapter into UPPERCASE (BIBLIOGRAPHY)?

I want to change the title of Bibliography Chapter into UPPERCASE like BIBLIOGRAPHY. I have tried changing it using \titleformat, \addcontentsline{toc}{chapter}{BIBLIOGRAPHY} and something like that ...
user avatar
0 votes
2 answers
82 views

Two different chapter styles in main body and TOC

In my thesis I have two chapter styles. One is numbered style like - CHAPTER N - INTRODUCTION. For this style I have defined the style in the preamble and write in the main body as \chapter{...
user avatar
0 votes
0 answers
26 views

How to change Chapter heading to bold using titletoc

I have the following code and use the book class. I am unable to bold the chapter heading i.e. the first-level heading. Kindly help, thank you. % DESIGN OF THE TITLES of the parts of the work (...
user avatar
  • 1
1 vote
1 answer
133 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. ...
user avatar
0 votes
2 answers
73 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 ...
user avatar
  • 201
1 vote
1 answer
70 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 ...
user avatar
0 votes
1 answer
96 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 ...
user avatar
0 votes
0 answers
90 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 ...
user avatar
  • 1
1 vote
1 answer
44 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 ...
user avatar
1 vote
0 answers
33 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} {\...
user avatar
0 votes
2 answers
113 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 ...
user avatar
2 votes
0 answers
66 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 ...
user avatar
2 votes
0 answers
26 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 ...
user avatar
1 vote
0 answers
95 views

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

% %------------------------------------------------------------------------------------------------------------------------ % \documentclass[english,11pt]{book} %---------------------------------------...
user avatar
0 votes
1 answer
60 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 ...
user avatar
-1 votes
1 answer
105 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 ...
user avatar
  • 101
0 votes
2 answers
40 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 ...
user avatar
  • 615
1 vote
2 answers
113 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 ...
user avatar
1 vote
2 answers
54 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 ...
user avatar
  • 35
1 vote
0 answers
41 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 ...
user avatar
  • 1,975
0 votes
2 answers
98 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 ...
user avatar
0 votes
1 answer
51 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: \...
user avatar
0 votes
1 answer
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?
user avatar
0 votes
1 answer
62 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} \...
user avatar
0 votes
1 answer
73 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 ...
user avatar
1 vote
2 answers
105 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 ...
user avatar
  • 271
0 votes
0 answers
43 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 ...
user avatar
0 votes
0 answers
32 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{...
user avatar
  • 729
2 votes
0 answers
38 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} {} {\ |...
user avatar
5 votes
2 answers
259 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 ...
user avatar
2 votes
1 answer
94 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, ...
user avatar
  • 35
2 votes
1 answer
32 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 ...
user avatar
5 votes
2 answers
147 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 ...
user avatar
  • 53
2 votes
0 answers
108 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 ...
user avatar
0 votes
1 answer
212 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[...
user avatar
1 vote
1 answer
69 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}, ...
user avatar
  • 6,190

1
2 3 4 5
7