Questions tagged [tocloft]

{tocloft} is a package providing control over the typography of the Table of Contents, List of Figures and List of Tables, and the ability to create new "List of ...".

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

Change chapter numbering in body and ToC

To change the numbering of chapters I have included this in the preamble: \renewcommand{\thechapter}{\Alph{chapter}} \titleclass{\chapter}{straight} \titleformat{\chapter}[block]% {\bfseries\...
0
votes
0answers
32 views

How do I resolve an error of this form (\cftchapleader undefined. \renewcommand{\cftchapleader})

I am working on a thesis proposal using a predefined Tex style and I get this error each time i compile
1
vote
1answer
29 views

Section numbering problem in toc when using tocloft

When using \part with tocloft (without fontspec) in pdflatex as suggested in the answer in this post Separate book into parts and chapters, I encounter a problem in the section numbering in the ...
1
vote
1answer
60 views

Easy way to make a new “List of…” that copies the typesetting of LoT or LoF without tocloft

I am trying to make a template for people I work with, and they want a "List of Objects" in addition to List of Tables and List of Figures. But they want the "List of Objects" to have the exact same ...
1
vote
1answer
26 views

How to add space before chapter in toc?

I know how to add space after a chapter number \renewcommand\cftchapafterpnum{\vskip3mm} How to do it before? I thought something like \cftchapbeforepnum would be available but it is not.
1
vote
0answers
16 views

How do I remove page numbers from a list of figures with subcaption and tables?

In subcaption: remove page number from lof, someone asks how to remove page numbers from the list of figures when using subcaption. This in itself works fine. However, when I generate a list of ...
1
vote
0answers
25 views

List of Equations with tocloft not created with Pandoc

I want to create a list of Equations in my thesis and have used this to create my own version for use with pandoc: --- header-includes: | \usepackage{amsmath} \usepackage{tocloft} --- \...
0
votes
1answer
24 views

Included PDF should appear as bookmark

I modified this answer to include PDFs in my file. MWE \documentclass{report} \usepackage{pdfpages} \usepackage{tocloft} \renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} \usepackage[...
0
votes
0answers
17 views

The tocloft package adds an empty page between list of figures (lof) and Chapter 1

I'm using the tocloft package in my book class document primarily to take care of undesired line breaks and formatting issues in the ToC, LoT, and LoF. The last item in the LoF was alone on a new page,...
4
votes
1answer
135 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
1answer
39 views

'missing \item' error when using `\addtocontents` to insert a new line in the table of figures

According to the requirements of my school, the List of Tables and List of Figures must have an underlined Table and Page headings right above the columns of table of contents A “Page” column ...
2
votes
2answers
29 views

Find the number of todonotes (from the previous run)

I would like to have a small '\if' there are todonotes; then show a large warning and list of todonotes on the first page. And otherwise don't. I've got no trouble accessing the todonotes counter: \...
0
votes
0answers
19 views

Modifying custom list obtained by tocloft

I have used the tocloft package for creating a custom list of a bunch of abstracts for a conference programm book. In my real world problem there the numbers in front of the contentlines are equally ...
0
votes
1answer
55 views

\clearpage does not work when adding tocloft

I am using scrbook and using \begin{titlepage} and \end{titlepage} to make the title of the book. After that, added \clearpage before making \tableofcontents so that toc do not show on the second page,...
0
votes
1answer
33 views

Table of contents - filled dots not to unnumbered chapters

I'm trying to create table of contents with hyperref and dot-filled lines. However I don't want them to be in unnumbered chapters. I couldn't find the solution for my problem from similar questions so ...
3
votes
2answers
38 views

Flushing titles of headings against the left margin in table of contents

I want all headings in the following LOF, LOT, and TOC to be flushed against the left margin. What I mean with headings here is the title of the chapters or sections which excludes the numbering. In ...
1
vote
1answer
43 views

`hyperref` does not jump to the correct location of the bibliography

I use the following syntax to add the bibliography of a chapter as a section \defbibheading{bibliography}{\section{References for \chaptername\space\thechapter}} However, the above syntax will add ...
1
vote
2answers
56 views

Add dotted lines in TOC without changing spacing

I would like to add dotted lines to the chapters in my TOC. Currently my PDF and code look like this: \documentclass[12pt,a4paper,twoside]{report} %openright %Schriftart Arial - ACHTUNG: Compile ...
1
vote
0answers
27 views

The vertical spacing before the title of TOC is inconsistent with the normal section title

I use the tocloft package to customize the format of TOC and the ctex package to support Chinese typesetting and to customize the section title format. Everything works well. But I find that the ...
0
votes
1answer
23 views

tocloft does not add all \cftaddnumtitle entries to ToC

I am including PDF documents and using tocloft \cftaddnumtitleline to recreate Table of Content elements in the included documents. I expect the ToC to look like this: The ToC actually looks like ...
0
votes
0answers
30 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
1answer
34 views

Change pnumwidth locally for picture / table, redefine it variably or colorbox pagenumbers

I'm trying to format my thesis and have a problem because of my very long appendix (which is numbered in roman). The page numbers at the end of the document exceed the defined pnumwidth . I know that ...
0
votes
0answers
26 views

`tocloft` messing with main TOC

Following the advice of this link, I added the package tocloft to my KOMAScript-based template to create an independent "list of" elements of a given class. It works like a charm, but it seems ...
0
votes
0answers
35 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 ...
0
votes
0answers
24 views

tocloft and babel (possible) incompatibility

I am trying to change the default section title for the TOC, renewing tocloft's \contentsname macro: \documentclass{article} \usepackage[american]{babel} % (*) THE STARRED LINE \usepackage{tocloft} ...
0
votes
1answer
47 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 ...
0
votes
1answer
38 views

Missing page numbers while using the tocloft package

I need to use the tocloft package because I edited my list of figures and tables that it displays "Figure/Table 1..." in bold text before the name using \renewcommand{\cftfigpresnum}{\bfseries Figure/...
1
vote
1answer
28 views

tocloft appears to raise the table of contents of books. What gives?

I would like to use the tocloft package for customizing the table of contents in my "book" document. However, when I include this package, the table of contents shifts upward by the line width of a ...
0
votes
2answers
69 views

How do I center the table of contents title without using tocloft?

I would simply like to center the title of the table of contents in my "book" document. I just added dot leaders to the table of contents, and this appeared to be best accomplished by forgoing the ...
3
votes
3answers
96 views

Keep section and subsection together in table of content

I have a long ToC provided by the tocloft package. It is long enough that it runs on to a second page. What I have then is that (for example) section 2 is at the end of the first page and section 2.1 ...
1
vote
0answers
18 views

Changing TOC to include figure and table and fancy header [duplicate]

How can I change the TOC to display Figure: X and Table X? Also if you notice in the header there is a somewhat fancy header with the name and a horizontal line, I would like to get that too. I ...
0
votes
0answers
49 views

How to style specific chapter in table of content

I have the following code : \documentclass[12pt, times new roman, a4paper, onecolumn, oneside, final]{report} \usepackage{tocbibind} \usepackage{tocloft} \newcommand{\addChapter}[1]{\phantomsection \...
2
votes
1answer
91 views

How can I put title chapter at center of the line in tableofcontents?

I am trying format \tableofcontents I want to put the chapter's titles Topological spacesat center and Chapter 1, ...like this picture , but I can't get the result. My code \documentclass[12pt,...
0
votes
1answer
63 views

Numbering List of Appendices

I use the following for creating my own list of appendices (which comes as the e.g. table of figures after the toc): \newcommand{\listappendicesname}{Anhangverzeichnis} \newlistof[section]{appendices}...
0
votes
0answers
141 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 ...
3
votes
1answer
873 views

Adjust TOC title font, size and weight using tocloft

I would like to use the tocloft package to make some adjustments to my TOC. This MWE is based on the accepted answer to this question. \documentclass [a4paper,11pt,twoside]{book} \usepackage{...
1
vote
1answer
55 views

controlling spacing between lines in tree of contents

Since yesterday I have learned that doing a hard reset on a git branch also throws away stashed changes. So, I need to recreate some steps that I have inadvertently thrown away. Unfortunately I cannot ...
0
votes
0answers
25 views

How to Customize Table of Contents [duplicate]

I need to format the ToC for my thesis write-up in this format; My code is; \documentclass[12pt,a4paper]{report} \usepackage[utf8]{inputenc} \usepackage[hidelinks]{hyperref} \hypersetup{colorlinks=...
0
votes
1answer
86 views

Table of Contents customization

I need help to get the ToC heading in the center of the page. The code \renewcommand{\contentsname}{\centering Table of Contents} did not work for me. I need the dots after the chapter names to be ...
0
votes
1answer
45 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
0answers
39 views

List of `to do's` with chapter AND section, and skipping ch/sect without to do's

I have defined a command for the to do's: \documentclass{book} \usepackage{graphicx} \usepackage{hyperref} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amssymb} \...
0
votes
1answer
67 views

Table of Contents – How to display some chapter entries (namely the frontmatter and appendices) in italics

For making font changes for all chapter, I use the following command from the tocloft package: \renewcommand{\cftchapfont}{\normalfont\hfill}. However, for this use case, I need the main chapter ...
0
votes
1answer
30 views

Uppercase Table of Contents with polyglossia and RTL

I am trying to typset chapter titles in my TOC uppercase, as in this answer. I do not want to do it in the \chapter{} command, since I use the hyperref package to refer to the titles throughout my ...
1
vote
0answers
39 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 ...
3
votes
1answer
121 views

overfull hbox in list of figures even if line is within page margins

The code below complain for an overfull hbox in the list of figure, albeit the line is well within pagemargin. How can the warning be removed? What is Latex typesetting after the number? \...
4
votes
1answer
170 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 ...
1
vote
1answer
190 views

Long title of table caption in list of tables

Is there a way of the second line of the title of the table be right below the start of the first line? Here's my code: \documentclass[10pt,a4paper]{report} \usepackage[utf8]{inputenc} \usepackage[...
0
votes
0answers
39 views

List of Symbols don't show inputs

I'm using the tocloft package to create a list of symbols. But the inputs that I want to appear in the list just don't show up in it. Here's a MWE of my code: \documentclass[12pt,openright,a4paper,...
0
votes
1answer
80 views

avoid page numbers in minitoc if tocloft is loaded

Below is a MWE which shows page numbers in the minitoc as soon as I uncomment the line loading the tocloft package. How to prevent this in addition to setting \mtcsetpagenumbers{minitoc}{off}? \...
2
votes
1answer
38 views

Spacing between equation number and its description in a custom listofequations page

I'm currently in the process of writing my thesis and have been asked to have a list of equations are the start of write up similar to that of a list of figures or list of tables. When compiled, the ...