Skip to main content

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

Can thecontentslabel text values be right justified in a table of contents?

Would you please tell me if it is possible (and, if so, how) to right align the Roman numerals in the first column of the table of contents? No positioning options seem to have any effect in [\...
Gary's user avatar
  • 147
2 votes
2 answers
78 views

How to capitalize ToC entries using \capitalisewords and \titlecontents

I'm having a formatting issue with my document's table of contents (ToC). Specifically, I'm trying to capitalize the first letter of each word in the ToC entries using the \capitalisewords command ...
Mycroft_47's user avatar
1 vote
0 answers
33 views

How to Properly Case Change in ToC Entries and Make Chapter Numbers Clickable

I'm facing two issues with my LaTeX document's Table of Contents (ToC): Formatting Issue with \capitalisewords: I am using the \titlecontents command to format my ToC. I want to capitalize the words ...
Mycroft_47's user avatar
3 votes
2 answers
56 views

How to create two types of new sections (error)

I need to create two types of sections. The first section (sectionc) works without errors. The second (sectionlcc) is similar to the first, but without \MakeUppercase. It does not work. Error in line: ...
Youra_P's user avatar
  • 1,128
0 votes
1 answer
55 views

How to redefine chapter*

I would like to save the name of the chapter* sections to a variable and to achieve this I am trying to redefine the chapter* command, how could I do this? Any help would be greatly appreciated. \...
xyz04's user avatar
  • 137
2 votes
1 answer
47 views

"Advanced section/subsection" custom command produces unexpected numbering behaviour

I am attempting to create new commands for "advanced sections/subsections" (similar to what you might see in a textbook, where a "starred section" indicates an advanced topic or a ...
user319109's user avatar
1 vote
1 answer
59 views

titletoc: \addvspace not working

Suppose the following simple code: \documentclass{article} \usepackage{titletoc} \titlecontents{section} [2em] {\addvspace{\baselineskip}} {} {} {} [\addvspace{\baselineskip}] ...
Gargantuar's user avatar
  • 1,241
1 vote
1 answer
47 views

Roman numerals, titletoc and hyperlinks

My sections use roman numbers. But when they display in the TOC, the sections labels overtake on the left margin. I tried fixing it with the dottedcontents command but then the hyperlink disappears ...
Enevevet's user avatar
  • 796
0 votes
0 answers
25 views

Shifting the "Contents" heading to ensure that the distance between the top of the paper and the "Contents" heading is 2.5cm

In this minimum working example, I am trying to shift the "Contents" heading to ensure that the distance between the top of the paper and the "Contents" heading is 2.5cm. I want to ...
Abdulhafeez Ayinde Abdulsalam's user avatar
0 votes
1 answer
21 views

In `titletoc` package, how to set the left margin in toc separately for numbered and unnumbered entries?

I am using titletoc to creat ToC, and for some reasons, I want the space from the left margin ⟨left⟩ to be set differently for numbered and unnumbered entries. However, the current syntax \...
Atom's user avatar
  • 665
2 votes
2 answers
117 views

My table of contents is weird

I doing a template which I use tocloft for summary title and titletoc for summary body. Well, I've just noticed that It isn't respecting the margin, so I dont know what to do now(find no error). Could ...
Leonidas's user avatar
0 votes
0 answers
9 views

Cannot format list of algorithms using titletoc with algorithms package [duplicate]

I am not sure what I am doing wrong, but I cannot get the titletoc formatting to work on my list of algorithms. I am using algorithm and algpseudocode, not algorithm2e. In the following, just as an ...
tgkolda's user avatar
  • 758
0 votes
1 answer
82 views

Formatting manually entered toc entries with tcolorbox

Followup to How to access the section titles in toc in order to format with tcolorbox I would like to put a manually entered toc entry using \addcontentsline in a tcolorbox. However, I am confused how ...
rk89's user avatar
  • 139
0 votes
1 answer
71 views

How to access the section titles in toc in order to format with tcolorbox

I would like to put both the section number and the title of the section in the table of contents into a \tcolorbox. While this works easily for the number, I don't know how to access the name of the ...
rk89's user avatar
  • 139
0 votes
0 answers
23 views

Figure captions stagger out of margin in List of Figures using package titletoc

Figure captions stagger out of margin in the Chapter List of Figure created using the package titletoc. How to fix and make sure captions stay within the margin? Using package tocloft changes the ...
Himanshi Sharma's user avatar
1 vote
0 answers
44 views

Chapter number and name on separate lines using titletoc

I was wanting to use titletoc to put the chapter number and title on different lines in the table of contents. If I were to type the ToC out manually, then I would type something along the lines of \...
Troy W.'s user avatar
  • 151
1 vote
1 answer
130 views

Can't get Appendix before A on TOC, when using appendix package with titlesec and titletoc

I'm writing my thesis and Appendices have to say “Anexo” before chapter letter. I tried using \usepackage[titletoc]{appendix}, but it didn't work. Also tried to comment command from titlesec and ...
JJP's user avatar
  • 81
2 votes
1 answer
196 views

Properly aligning TOC entries using titletoc

Beginning latex user here, I'm trying to customise a TOC using titletoc. What would like to align the parts and chapters so that the chapter/part names (e.g. Chapter 1, Part I) are right-aligned, ...
StudentInDistress's user avatar
0 votes
0 answers
17 views

Preventing chapter title alone at bottom of toc ams book [duplicate]

A chapter title appears on bottom of page in toc with section titles beginning on the next page of toc. Is there some way to force the chapter title onto the next page?
R. Gregory Taylor's user avatar
1 vote
1 answer
48 views

Counter in sectioning

I am using TikZ to define my chapter and section style, but the numbering of sections resets after every chapter. I want to number my section continuous after chapters. I use >remset.sty: \...
Durtle's user avatar
  • 21
0 votes
0 answers
16 views

using titletoc to add vertical spacing in table of contents which wraps to multiple pages

I'm setting up some course materials which will be in the article document class and have several parts. At the beginning of each part, I want to add in a page with the section names and some white ...
mim's user avatar
  • 1
0 votes
1 answer
255 views

Add space between section title and page number in toc

I desperately need help i tried and searched for everything but not even chatGPT was able to help me at this point maybe its just not possible please enlighten me. So since some of my section have ...
Nicolo Volturana's user avatar
2 votes
0 answers
49 views

How to put the section line into tcolorbox

The contents of chapter are put into tcolor by below code. How can we modify the code for section. My code have created the \mysectionnamebox to add a contentline of section. Thank you for help! \...
Nam Tran Le's user avatar
0 votes
1 answer
64 views

Custom editing of subsection titles with hyperlinks in the table of contents

I redefined subsection titles, so the table of contents looks like this: \documentclass[twoside, a4paper, 12pt, showtrims]{book} %\usepackage{showframe} \usepackage[X2,T1,T2A]{fontenc} \usepackage[...
Anton Dmitrievich's user avatar
1 vote
1 answer
36 views

Solid line under each entry in table of contents

I am trying to recreate this table of contents formatting. I've tried using the titletoc package and got this far. But I don't know how to make the line go underneath all the entries. \documentclass[...
Mike's user avatar
  • 416
0 votes
1 answer
44 views

bad hyperref and pdf bookmark targets when using titletoc/titlesec, but toc numbers are right

Using the following mwe: % vim: spell spelllang=en ft=tex \documentclass[12pt,twoside,openright,english]{book} \usepackage{hyperref} \usepackage{lipsum} \usepackage[explicit]{titlesec} \usepackage{...
hanetzer's user avatar
  • 147
0 votes
1 answer
43 views

Titlesec package is indenting space for \chapter listing in Contents

I am using both the titletoc and titlesec packages to format my chapters. I am using a special font and the following command: \usepackage{titletoc} \usepackage{titlesec} \usepackage{anyfontsize} \...
Felipe Dilho's user avatar
1 vote
1 answer
38 views

ToC and references list headers' labels issue with customized \section using titlesec and titletoc

I have customized the appearance of the \section command using the titlesec package, and I have also customized the appearance of the table of contents using the titletoc package. However, it appears ...
aglobalphenomenon's user avatar
3 votes
2 answers
148 views

Control the distance between table of contents elements

I want to understand what are the lengths dimension #1 and #2 in the following example. Moreover, is the blue dimension in the picture equals the length of \parskip? How can I control the dimensions #...
tush's user avatar
  • 1,147
2 votes
1 answer
61 views

Package titletoc doesn't make changes to Hebrew document

In a Hebrew document, it seems that \titlecontents{chapter}... doesn't make any formatting changes to the way chapters appear in my table of contents. Though for sections and subsections it works fine....
tush's user avatar
  • 1,147
0 votes
1 answer
29 views

Can't get the chapter numbers displayed in the customized Table of Contents

I'm trying to get the chapter number displayed in the TOC. Here's my current code: \documentclass{report} \usepackage{tikz} \usepackage{xcolor} \usepackage{titletoc} \definecolor{tbl}{HTML}{F035A3} \...
SingularisArt's user avatar
0 votes
1 answer
71 views

Book class list of figures with subfigures listed in paragraph format

For a report I am writing, there is a page limit and I have to include lists of figures/schemes/tables. I would like for the figure caption to be standard (i.e. 1.1 Testing ....... 1) and for ...
JamesT's user avatar
  • 3,201
0 votes
0 answers
77 views

Table of contents with horizontal lines like table

In my thesis, I have to change the table of contents layout according to the following picture. Being not so skilled in latex I can't get a way out. The codes of different people at StackExchange are ...
Optimist Optimizer's user avatar
0 votes
1 answer
114 views

How to recreate this lecture command?

Im trying to create a lecture command which will allow me to insert the lecture number which will be used to number sections, figures, and etc, and which will allow me to name the lecture. I also want ...
xyz04's user avatar
  • 137
2 votes
0 answers
42 views

Reproduce article's default table of contents with the "titletoc" package

I'm currently trying to create my own class and in it I change the colors on the sectioning commands, in order to do that I used the "titlesec" package to change from \section to \...
AmadoC's user avatar
  • 435
1 vote
2 answers
101 views

Long page number not properly right aligned in ToC

Consider the following example: \documentclass{article} \usepackage{titletoc} \titlecontents{section} [2em] {\normalfont} {\contentslabel{1.5em}} {\hspace*{-1.5em}} {\titlerule*[...
Jinwen's user avatar
  • 8,618
0 votes
1 answer
60 views

How can I achieve this formatting of the table of contents (ToC) using titletoc, without running into the problem of unpredictably disappearing dots?

This question is a hopefully a clearer statement of a previous question. I am using titletoc to format my Table of Contents. Two notes right from the start: 1: in my actual document, I am also using ...
linguisticturn's user avatar
1 vote
1 answer
161 views

In the ToC (titletoc), how to make sure the dotted line is never wrongly suppressed?

Edit I have rephrased this question and, following a suggestion by one of the answerers here, I have posted it as a new question, here. The original question Consider the following table of contents: ...
linguisticturn's user avatar
1 vote
1 answer
86 views

No hyphenation in table of contents (with titletoc)

I am trying to turn off hyphenation in the table of contents. Here is a minimal working example with my titletoc setup: \documentclass[a5paper]{article} \usepackage[italian]{babel} \usepackage{...
Massimo's user avatar
  • 727
0 votes
1 answer
307 views

Formatting entires of ToC according to chapter/sections using titletoc/titlesec

In my book, I need my chapters to be bold-face and uppercase, my sections to be uppercase and regular, subsections to be bold and regular case and subsubsections to be italic regular case. In the text,...
Felipe Baldner's user avatar
0 votes
0 answers
26 views

Section titles formatted as blocks in the Table of Contents

I have a basic question but cannot find an answer in the (rich) titlesec titletoc documentation. In the Toc, I would like to have the section titles formatted as the following, taken from the ...
Mathias's user avatar
  • 36
1 vote
1 answer
144 views

Using personalised entry in the TOC for sections instead of section number in scrbook

I am writing a publication-based dissertation. And I want to use the manuscript number in the TOC instead of the section number. See for example this figure, I want to remove the 2.1 and have as '...
Choguerrero's user avatar
4 votes
0 answers
79 views

titleformat and parttoc

I would like to have a parttoc on the first page of the part but I would like to be able to change the style of the part title. Can someone help me please ? I need to run this : \documentclass[12pt,...
Claire's user avatar
  • 41
0 votes
1 answer
67 views

Main TOC show global numbering and local TOC show local numbering scheme

based on question two page numbering scheme for SOP - Standard Operating Procedure document, I got this MWE. \documentclass{article} \usepackage{atenddvi} % added <<<<<<<<<&...
leonardo cesar's user avatar
0 votes
2 answers
96 views

Alignment of a 2-line title in the TOC in scrbook

I have checked several other questions addressing similar issues as this one, but I am still not able to tweak my document the way I want. I have this 2-line chapter title: which looks awful in the ...
Choguerrero's user avatar
1 vote
1 answer
243 views

Content title with background image in scrbook

I am trying to add a figure in the background of the table of contents page. Similar to this one: I found this template The legrand orange book and tried to use the code used there for my document, ...
Choguerrero's user avatar
1 vote
1 answer
177 views

Issues with titlesec's \titleclass

Following the guideline in section 3.9. Creating new levels and changing the class of the titlesec manual, I'm trying to create a new sectioning command \sectionsub under \section, to achieve what was ...
Jinwen's user avatar
  • 8,618
1 vote
1 answer
38 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. ...
Subhajit Paul's user avatar
0 votes
1 answer
571 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]{\...
alexandre goes da cruz's user avatar
0 votes
1 answer
96 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 ...
lyl's user avatar
  • 2,747

1
2 3 4 5
8