Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
1answer
38 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\...
1
vote
0answers
24 views

Display “chapter” from the List of appendices

Can somenoe help me remove the "chapter' title from the list of appendices. I just want : LIST OF APPENDICES APPENDICE 1 : Questionnaire 1........................... APPENDICE 2 : Questionnaire ...
5
votes
1answer
33 views

\RequirePackage{tocloft} doesn't work before \documentclass

\RequirePackage is supposed to work before \documentclass and, indeed, the following MCE works like a charm: \RequirePackage{url} \documentclass{article} \begin{document} \url{foo} \end{document} ...
1
vote
1answer
24 views

adjust line spacing of entries using tocloft

When using tocloft in a book class document with chapter and section entries, the line spacing within chapter entries should be adjustable, but how? As it stands the section entries in the ToC are set ...
0
votes
0answers
18 views

How can I get a ToC to show colored rectangles when clicked upon them?

The situation I've done a simple ToC: When you click it, it redirects to the page, and shows a blue rectangle: The issue I don't know why this happens. I have currently two windows opened in ...
0
votes
1answer
29 views

Remove trailing period from captions in ToC

Every figure, table, formula and listing in my document has a caption that ends with a period. The problem is, that these periods are also displayed in the ToC, which they shouldn't. I found a ...
2
votes
2answers
43 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
2answers
46 views

How to change the table of contents' style?

I would like to give a custom style to my table of contents, in a memoir document. My goal is to make it look like in the image below, more specifically underline the entire line for sections and ...
1
vote
1answer
29 views

Changing only the number in table of contents

My minimal document looks like this This colors the numbers in the table of contents, and in the section. How can i color the page number in the table of contents as well? I tried using tocloft and ...
2
votes
2answers
49 views

How do I print the contents page on another page(s)?

MWE \documentclass[a4paper,11pt]{book} \usepackage{multicol} \usepackage{titletoc} \makeatletter \renewcommand{\tableofcontents}[1][\contentsname]{% \section*{#1} \begin{multicols}{2} \@starttoc{...
1
vote
1answer
26 views

Using tocloft together with titlesec

I'm using tocloft for modifying the appearance of my toc. But it will disable the style of the toc title modified with titlesec. If I disable \usepackage{tocloft} and the two renewcommands, my ...
0
votes
0answers
39 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
65 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
40 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
33 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
20 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 ...
0
votes
1answer
43 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 ...
1
vote
0answers
28 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
25 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
20 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
148 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 ("...
3
votes
2answers
47 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 ...
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
71 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
40 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 ...
2
votes
1answer
63 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
65 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 ...
31
votes
2answers
15k views

Remove vertical space before table of contents title

I've been trying to figure out a way to easily reduce the space/gap from the top of the page to the table of contents title, as in to reduce the vertical space before the table of contents begins. ...
1
vote
0answers
36 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
25 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
33 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
39 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
29 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
40 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
27 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
73 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
52 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
30 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
82 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
137 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
19 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
152 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 ...
0
votes
0answers
53 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
93 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
76 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
1answer
48 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
45 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 ...
0
votes
1answer
53 views

How can I patch the abstract, list of figures, and list of tables macros to be included in the ToC automatically?

We can definitely use \phantomsection \addcontentsline{toc}{chapter}{<name>} right after we begin the environments or type the relevant macro, which would include abstract, list of figures and ...
3
votes
1answer
1k 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
101 views

Paragraph spacing in \documentclass{article} with Figure and Listings

I have a problem with the paragraph spacing in my \documentclass{article}. I am using \lstset{} function (Code Listings), LOF and TOF. I want to have a 1em spacing between my paragraph text and the ...