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
51 views
+50

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
  • 49
2 votes
1 answer
27 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
15 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
28 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
  • 11
0 votes
0 answers
11 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
56 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
37 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
59 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
31 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
  • 406
0 votes
0 answers
32 views

How LaTeX removes "CHAPTER 1. NAME" from header of Introduction chapter?

I use: \chapter*{Introduction} \addcontentsline{toc}{chapter}{Introduction} \chaptermark{Introduction} When table of contents was in the beginning of the book it seemed working well, on the header of ...
Nikolay Yasinskiy's user avatar
0 votes
1 answer
32 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
36 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
33 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
0 votes
0 answers
18 views

TitleToc + ThesisTemplate

I am using the following Thesis template, and would like to have individual tables of contents for each chapter. Doing this with \minitoc seems to require manually changing the minitoc counter for ...
Gesbesgue's user avatar
3 votes
2 answers
106 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,093
2 votes
1 answer
54 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,093
0 votes
1 answer
27 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
39 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
  • 2,989
0 votes
0 answers
47 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
94 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
  • 143
2 votes
0 answers
37 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
39 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
  • 7,826
0 votes
1 answer
45 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
96 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
53 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
  • 697
0 votes
1 answer
116 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
25 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
107 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
44 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
56 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
79 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
154 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
115 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
  • 7,826
1 vote
1 answer
36 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
280 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
66 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,677
1 vote
1 answer
39 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}...
Gabriel Felipe Silva's user avatar
0 votes
1 answer
107 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{...
Masum's user avatar
  • 929
0 votes
1 answer
33 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}...
user32882's user avatar
  • 1,574
0 votes
1 answer
46 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 ...
Aurelius_nero's user avatar
0 votes
1 answer
68 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{...
Clement Yung's user avatar
0 votes
1 answer
218 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 ...
M. Logic's user avatar
  • 3,961
0 votes
2 answers
135 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 ...
Jinwen's user avatar
  • 7,826
0 votes
1 answer
433 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 ...
Pab's user avatar
  • 17
-1 votes
1 answer
123 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 ...
AYYASY SYAHBAA's user avatar
0 votes
2 answers
398 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{...
MAzharul Islam's user avatar
1 vote
1 answer
619 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. ...
Archie Bellega's user avatar
0 votes
2 answers
206 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 ...
Gallagher's user avatar
  • 213
1 vote
1 answer
248 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 ...
Felipe Baldner's user avatar
1 vote
1 answer
400 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 ...
Qi Tianluo's user avatar

1
2 3 4 5
8