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
85 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
40 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
125 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
52 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
60 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
90 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
716 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
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 ...
2
votes
1answer
61 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
141 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
117 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
84 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
44 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
64 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
56 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
107 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
95 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} \...
1
vote
2answers
184 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
278 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 ...
2
votes
1answer
417 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
60 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
148 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 ...
5
votes
1answer
85 views

Why are the leader dots in the table of contents typeset in math mode?

Here is a general kernel question. I am wondering why the leader dots are typeset in math mode. While experimenting with my own sectioning commands, I had alignment issues with the dots. Does it have ...
1
vote
1answer
72 views

How change caption delimiter of floats in lof?

Is there a way to change the caption delimiter of floats? For example, I have "Figure 1: Big figure" and want to obtain "Figure 1 - Big figure" both in text and list of figure. Using this code I ...
0
votes
1answer
89 views

Suppress one particular Part from Table of Contents (TOC)

I have the PDF set up so that the TOC and PDF bookmarks are generated. However, I want to get rid of the Part "Front Matter" from the TOC (but not the sections under this part), while still ...
0
votes
1answer
73 views

How to color parts' title background in TOC with tocloft?

As you can guess from the title, I am using the package tocloft to customize the table of contents of a document, which, by the way, I am compiling with LuaTeX. The final result that I would like to ...
1
vote
1answer
104 views

scrbook: spacing between section number and title in toc

I would like to increasing the space between section number and title in the toc. I tried to solve the problem using \setlength\cftsectionnumwidth{ } but this does not work with the class scrbook. \...
0
votes
0answers
98 views

newlistof without numbers

I need to include a List of Cases to my dissertation in which it appears the name of each case and the page the case is described, but I don't want the cases to be numbered. Is there a way of doing ...
2
votes
1answer
256 views

How to sort alphabetically a custom list defined with tocloft?

I have defined a "list of definitions" using the following code: \documentclass[a4paper, 12pt]{report} \usepackage{subcaption} \usepackage[subfigure]{tocloft} \usepackage{blindtext} \newcommand{\...
0
votes
1answer
168 views

Change the color of item in table of content

The color of the item in the presentation was changed. But, In the table of content, I still saw old color and couldn't fine change the way of the color of the item in the table of content. I used the ...
0
votes
0answers
149 views

Error when trying to use subfig package instead of subfigure

I am writing a report. I was using subfigure package along with tocloft. Members at Tex Stack Exchange have suggested to use subfig package since its newer. When I tried to use it, I am getting ...
0
votes
0answers
122 views

Aligning Mutli-line Chapter name in table of contents

I am making a report. The table of contents needs to be adjusted to as shown below I have used packages for adjusting Table of Contents, However I am not able to get the following things ...
1
vote
1answer
63 views

How to force Latex to keep TOC lines within page margins?

I've a line in my toc that is a bit too long, but not as long as latex would recognize it to make a new line: In Latex code, this is: \subsection{Lineares Positioniersystem mit Waage und 3D-...
0
votes
1answer
225 views

Remove indent from a specific chapter title in table of contents

Problem: I wish that some chapter titles in the TOC are indented but not others. Minimal Working Example: \documentclass{book} \usepackage[titles]{tocloft} \newcommand*{\disableboldchapterintoc}{%...
3
votes
2answers
1k views

Remove bold style for chapter names in table of contents

Problem: I wish to have bold style for certain chapter names but not for others. Minimal Working Example: \documentclass{book} \usepackage[titles]{tocloft} %: ----------------------- Table of ...
0
votes
1answer
227 views

tocloft \cftpartpresnum not working with titlesec

I have come across a strange issue: I want to change the \part number in my TOC the same way that I have done it for \chapter: The way I achieved that for the chapter heading is with this command: \...
1
vote
1answer
138 views

ListOfFigures in TOC

I'm trying to put the List of Figures into the toc, but everything I tried does not work. My main.tex file: \documentclass[ a4paper, 11pt, parskip=half-, oneside, ...
1
vote
2answers
120 views

Override New Section Style to Look Default in TOC

I need to change the sections, subsections, etc., styles. And I did. The problem is I need the table of contents to keep the default style. The text colour in my new style is white, so the TOC ...
1
vote
0answers
45 views

Defining a dedicated ToC in multicols context

I'm making an aicraft checklist, it is a way for me to discover some Latex Functions. So, the checklist is printed on an A4 sheet splitted in two columns thanks mulitcols package. The document is ...
1
vote
1answer
65 views

Style of chapter

I modified the list of figures and list of tables with help that I got here The problem is that the summary, the list of figures and the list of tables do not follow the same formatting of the ...
2
votes
2answers
333 views

Modify format of chapter number in ToC with tocloft

I am using the tocloft package to change the style of my ToC. I would like to typeset the chapter numbers as roman numerals. However, for the ToC I would to typeset them using the romanbars package. ...
1
vote
2answers
758 views

Format fonts for TOC/LOF/LOT with tocloft

my publisher requires me to change the way TOC/LOT/LOF and sections are formatted. Sadly my grasp on LaTeX and possibly on the English language is not firm enough to make heads or tails from the ...
2
votes
2answers
197 views

Formatting correction in Table of Contents when using algorithm2e

Setup In my MWE I am trying to add a "LIST OF ALGORITHMS" into the TOC. Following some examples on here I was able to add a page, however each heading in the TOC became doubled and the name "LIST OF ...
0
votes
0answers
73 views

Insert ToC after part in book class?

So I am using the scrbook class and have a very large document - which recently got larger. From a previous question of mine, in which I had a few separate scrbook documents and wanted to combine them ...
1
vote
1answer
260 views

List of \newenvironment in TOC

How can I create an additional List to appear in the TOC referencing a custom environment? Working on Overleaf, I've unsuccessfully tried applying the answers from the following questions, and I can't ...
1
vote
1answer
289 views

Vertical spacing between chapters in a tocloft List of Equations

I have a List of Equations in my thesis, built using tocloft. The thing that's bothering me is that, in the List of Figures and List of Tables, there's vertical space where one chapter's figures/...
0
votes
1answer
135 views

Formatting Table of Contents so it has Chapter in front of every chapter and appendix in front of every appendix

I've searched for days and unfortunately could not find the solution to my problem. Consider the following minimal example, it produces a ToC as follows: This is not the one I need. I need the ...
0
votes
0answers
340 views

Change the color and font family for the “Table of Contents” in toc within book.cls (\contentsname)?

By editing the book.cls file, I have tried several times without any success to alter the typeface for the \contentsname parameter, with the following custom color and font family: \cnavy \Huge\...
1
vote
1answer
58 views

Incorrect page number for LoA in ToC

I want to create a list of appendices at the end of my document, and add the corresponding entry and page number to the table of contents. The following code is a simplified version of my code (MWE), ...
0
votes
0answers
76 views

Custom Header for listoflistings using Memoir and Listings Package

Ok, I'm still working on a formatting various lists for my dissertation and have figured out how to get the format for the list of figures and tables right. I'm using custom page styles along the ...