Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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 ...".

0
votes
1answer
30 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
21 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
25 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
17 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
32 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
22 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
23 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
54 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
62 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
17 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
43 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
88 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
54 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
127 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
234 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
52 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
23 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
63 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
41 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
37 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
55 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
22 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
28 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
77 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
148 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
80 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
57 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
37 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 ...
0
votes
1answer
70 views

List of Figure/Table : Full justify caption

How can I fully justify list of figure/table like the image below ? I believe it has something to do with tocloft configuration, but I cant find relevant things related to justify.
1
vote
1answer
46 views

Creating a list of enclosed items that mix figures and pdfs

I need to list in a document enclosed items that are comprised of pdf's and images, in a certain order. The way I have approached this, is to use floats with option H[ere] for the images, and ...
0
votes
1answer
41 views

Is there a way to have a constant space between the (sub)section number and the heading in the ToC

I have a document which unfortunately has a section 10.13 and a subsection 10.13.1 and I'm sure there will be many other such examples. Unfortunately, this makes for an extremely ugly table of ...
1
vote
1answer
76 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 ...
2
votes
2answers
394 views

tocloft change font size of “List of Figures”

I am using tocloft for the first time, and I want to make the "List of Figures" and "List of Tables" font smaller and appear on the same page, directly after the table of contents. I want list titles ...
0
votes
1answer
49 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 ...
2
votes
1answer
58 views

How to achieve different vertical alignment in table columns?

Can anyone help me to create a simple table in which the cells have the vertical alignments: column 1: top column 2: wrapped column 3: bottom? I have used constructions like \begin{tabular}{p{0.1\...
2
votes
2answers
104 views

Different style for backmatter chapters in TOC

I am looking for a way to make both frontmatter and backmatter chapters non-bold italic in the Table of Contents. For the frontmatter chapters, I found a short and well-working solution here by ...
0
votes
0answers
86 views

Enumeration of items in table of contents

I want to enumerate the manually added items in the table of contents. Also the items are not a section or a subsection or a chapter, they are like definition or a example which I added in the toc and ...
0
votes
1answer
60 views

cftXpresnum overlapping with heading [duplicate]

As per the tocloft package documentation, we should be able to use \renewcommand{\cftsecpresnum}{something} to insert some text before the section number in the table of contents (for example, should ...
2
votes
1answer
35 views

latex manual insert some special figure name in the list of figure

When I use \section*{namename}, if I want to insert it in the toc, I will use \addcontentsline{toc}{section}{namename} So, I want to know, if I want insert some figure name (I don't use \caption{} ...
0
votes
0answers
54 views

Warnings when changing chapter's appearence in TOC with tocloft

I want to get rid of some annoying warnings that showed up when changing how chapters look in TOC (institutional requirements). From the log: Overfull \hbox (58.08pt too wide) detected at line 3 ...
0
votes
2answers
46 views

Indenting individual elements in ToC

Sorry if this seems blatant and obvious, but I'm only beginning my adventure with LaTeX and I've run into a problem to which I cannot find a solution even among the existing questions. I need first ...
2
votes
1answer
81 views

Crosshatch pattern in table of contents

In his TeXbook, Donald Knuth creates a very beautiful crosshatch pattern for the leaders in the Table on Contents. I tried mimicking it with the package tocloft, using an complicated scheme of an ...
0
votes
1answer
77 views

Appendix and space in TOC

I have the code below and it works, but not exactly the way I want. \documentclass{report} \usepackage[titles]{tocloft} \usepackage{titlesec} \renewcommand{\contentsname}{Table of contents} \...
0
votes
2answers
114 views

Insert titlerule underneath table of contents heading

I have a line drawn under my chapter headings using \titlerule[2pt]. I want to achieve this same design underneath my 'Contents', 'List of Figures' and 'List of Tables' headings. Can anyone advise me ...
0
votes
0answers
179 views

Tocloft package problem

My figure captions should be normal text, no bold no italic. But figure numbers in List of figures should be bold. Also same for the List of Tables. Additionally for table of contents I need to bold ...
0
votes
0answers
157 views

How to change the font size of tocloft title

I'm using the Cambridge PhD latex template and I'm trying to insert my list of publications. I found it can be done using the tocloft package which works. However, the title "List of Publications" ...
2
votes
1answer
276 views

Formatting List of Figures: Spacing, Colon, Too Long Captions

These issues have been discussed extensively on this forum, unfortunately i have failed to fix them. I have the following issues: I would like to separate figure label and caption by a semicolon. ...
2
votes
1answer
54 views

How to align contents title in Portuguese documents?

In Portuguese, the name of "Table of Contents" is "Sumário". So, I'd like to get the word "Sumário" in the center of the page. I know how to put the title in the center: \documentclass{article} \...
0
votes
2answers
95 views

TOC part formatting - How to change from: I. NAME PART 1 to: PART I. NAME PART 1

I'm using \usepackage{titlesec} packages and have included the simplest example possible to illustrate the problem and that the first proposed solution does work only when the titlesec formatting ...