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

learn more… | top users | synonyms

15
votes
2answers
1k views

How do I get \chaptername to appear in the table of contents?

In my tex file I have changed the chapter name from 'Chapter' to 'Day', using: \renewcommand \chaptername {Day} But when I generate a table of contents it only shows '1' and not 'Day 1'. How do I ...
14
votes
3answers
1k views

Replacing dot leaders in the table of contents with better typography

Dot leaders are the lines of dots in the table of contents, for example. Bringhurst says of them: [They] force the eye to walk the width of the page like a prisoner being escorted back to its cell ...
12
votes
2answers
794 views

How do I create custom “list of…”s on a section level?

I have a long document with frequent uses on an environment that needs to be indexed on a per-section basis. I know that the tocloft package allows creation of custom "list of..."s I also know that ...
11
votes
1answer
3k 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. ...
10
votes
2answers
637 views

loading tocloft makes \ifdefined\chapter TRUE in article class

I am using the article class, and I discovered that the tocloft package defines \chapter, which will mess up with my other stuff. How does this happen? Can I make \chapter "undefined" again after ...
10
votes
3answers
4k views

List of Figures - how to add caption label

I'm using the caption package. In the List-Of-Figures I get only the numbers, but I also want to have the prefix. It currently looks like that: List of Figures 1 Caption of Figure 1........1 ...
10
votes
1answer
2k views

List of figures: source below image caption?

I'm relatively new to LaTeX and currently working on a paper. In my list of figures, I'd like to have a structure like this: Fig. 1: <Title of figure> . . . 1 ...
10
votes
1answer
440 views

How to highlight specific entries in a tocloft-formatted ToC

I am writing a document using the book class, and I use tocloft in order to customize the appearance of my ToC. So far, the package did a great job for most customizations, except for one thing: I am ...
10
votes
1answer
48 views

How to make the TOC's part entry in one column while the others in two columns?

I use the tocloft package to design the Table of Contents. I want the part entries listed in one column and all the other entries such as chapter, section, subsection ... should be listed in two ...
9
votes
1answer
668 views

Why \leaders and \mkern works strangely in different font size?

I can hardly determine a good title for this question, I'm sorry. Minimal test code: \documentclass{minimal} \usepackage{lipsum} \begin{document} foo {\fontsize{18}{18}\leaders\hbox{$\mkern ...
9
votes
1answer
1k views

\part and tocloft

The following code was provided by Martin Scharrer in reply to a post in May 10. \documentclass{book} \usepackage[british]{babel} \usepackage[titles]{tocloft} \usepackage{tocloft} ...
8
votes
2answers
371 views

In table of contents, long page numbers intrude on right margin despite plenty of available space

Some of the page numbers listed in my table of contents are long roman numerals. For some reason, these long page numbers get pushed into the right margin. Here is a screenshot of the table of ...
8
votes
1answer
612 views

\chaptername is used even for appendix chapters in ToC

I have searched for something to resolve a problem that has shown up here: How do I get \chaptername to appear in the table of contents? I have tried the code from that thread. But I got an issue, ...
7
votes
3answers
166 views

Apply \cftpagenumbersoff to multiple sectioning levels

This is probably a very basic question, apologies for lacking better knowledge of LaTeX syntax. I want to use \cftpagenumbersoff from the tocloft package to hide the page numbers (and dots) of some ...
7
votes
2answers
204 views

How to replace fixed indentation of ToC entry names with fixed space between number and name?

How to make indents as in the second image? This is what it looks like now: This is what it should look like: MWE: \documentclass[a4paper, 14pt, english]{extreport} \usepackage[T2A]{fontenc} ...
7
votes
1answer
1k views

Add colors that depend on chapters to the TOC

I'would like to add different colors in my TOC, depending on the chapter. I've a color for the header, section subsection of each chapter (red chapter one, blue chapter two etc...). With this code I ...
7
votes
1answer
1k views

How do I indent the 2nd line a long chapter name created using the tocloft package so that it lines up correctly?

I am using the tocloft package already. I have a couple of long chapter names that wrap onto a second line, but it lines it up with the section numbers below. I must have this new line line up with ...
7
votes
1answer
935 views

Keep “Appendix #” in the appendix title, but remove the appendix from the table of contents

I'm writing a PhD thesis, and my university requires that I list the appendices in a "List of Appendices" (LOA) that is separate from the main table of contents (TOC). I've successfully created a LOA ...
7
votes
3answers
10k views

List of Equations / Table of Equations

After finding Table of Equations and http://www.latex-community.org/forum/viewtopic.php?f=5&t=428, I set about making a List of Equations for my document. The catch here is that we already have a ...
7
votes
1answer
3k views

Question about indent lengths in ToC

It seems that there is a different length between the different levels. It seems it is larger between the subsection and subsubsection as opposed to between the section and subsection. I have read ...
7
votes
1answer
2k views

Line of dots in Table of Contents?

In my ToC, the "Bibliography" entry is treated as a chapter heading, so has no line of dots to the page number. However, as it has no sections, my publishers would like the line of dots. Same for ...
7
votes
1answer
1k views

Tocloft and list of figure: Change Line Spacing between listings

This not the same question as here. While creating a list of figures with tocloft the way shown in the example, I would like to control the line spacing between the listings of the figures. With ...
7
votes
1answer
250 views

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

I'm getting odd behavior using package tocloft to format my table of contents and center the titles "Contents", "List of Figures", and "List of Tables". Using the code suggested in the tocloft ...
6
votes
2answers
4k views

Changing the TOC style of an Article document-class

When typesetting an article documentclass, the sections appear as bold in the table of contents, with no leading dots. I would like to change these to non-bold, and insert some leading dots. I tried ...
6
votes
1answer
70 views

how to suppress page number for subfigures in LOF?

I am using tocloft and subcaption package, and I would like to suppreess page numbers and dot line for subfigures in LOF. I know, if one uses tocloft and subfigure package, this can be done with the ...
6
votes
1answer
423 views

How to emulate titletoc with tocloft

I was using titletoc until I realized that it has some incompatibilities with hyperref. The thing is, that titletoc can do the same thing in a easier way, less one. \titlecontents*{subsection}[5.4em] ...
6
votes
1answer
831 views

Appendix Chapters typeset as Sections in ToC

I am very new to LaTeX and still more in a trial and error phase than on a real understanding level. My goal is to have all appendices - which are chapters and I would like to keep it that way - to ...
6
votes
2answers
3k views

Extra space for numbered titles in table of contents

Background A manual with chapters, sections, subsections, and sub-subsections. Using KOMA Script v2. Problem The spacing between the heading title and its number is too close to the number in some ...
6
votes
1answer
708 views

List of Figures: How do I get a vertical space between figures from my final chapter and my first appendix?

I'm using tocloft with the report document class. I have four chapters and some appendices. My List of Figures produces vertical spacing between figures from different chapters, but it does not add ...
6
votes
1answer
440 views

Chapter descriptions in the TOC, but at a fixed width

I'm really in love with the TOC one gets using the accepted answer at Adding a per-chapter image along with group of entries in ToC. However, instead of having sections in my TOC, I'd like to ...
6
votes
1answer
297 views

List of [newfloat] – change font

Using the tocloft package, I can change the appearance of the "List of Tables/Figures" by redefining \cfttoctitlefont etc. However, I created a new float type, called "Example", with the newfloat ...
6
votes
1answer
302 views

how to add extra vspace in TOC after one specific section?

I like some extra vertical white space in the TOC after one specific section. So far I have: \documentclass{article} \usepackage{etoolbox} \usepackage{tocloft} \preto\section{% ...
5
votes
2answers
968 views

List of appendices with tocloft and memoir

I found a very nice example showing how to create a list of appendices here: How to get a list of appendices? but it doesn't seem to work with the memoir document class. I get the error message ...
5
votes
3answers
2k views

Table of Contents with Chapter and Appendix

I'm using this code to get word Chapter in TOC before each chapter. \documentclass[a4paper]{book} \usepackage{tocloft,calc} \renewcommand{\cftchappresnum}{Chapter } ...
5
votes
1answer
622 views

ToC, LoF, LoT with same style as chapter style

I've added ToC, LoF and LoT in a .tex file in which the chapter style is Glenn. The problem is that ToC, LoF and LoT don't adapt the desired style, while bibliography i.e. does. I've tried ...
5
votes
1answer
523 views

Adding indents to the ToC without adding dotted lines between sections

I wanted to add indents to format my ToC so I added the tocloft package I saw recommended on other threads. Now the indentation is perfect, but there is a dotted line in between each section in the ...
5
votes
1answer
263 views

Move (sub)section number right of (sub)section title in table of contents

I restyled the \section and \subsection a little bit, to better suite my needs when writing assignments. Using titlesec, I moved the (sub)section number to the right of the (sub)section title. In my ...
5
votes
3answers
345 views

Let chapter number be distinct in mainmatter and ToC

I would like the chapter number to be different in mainmatter and ToC. In the ToC I would like to see : chapter 1 ... bla bla bla chapter 2 ... bla bla bla But if I did : ...
5
votes
1answer
131 views

Upper case chapter titles Tocstyle?

I would like to make table of contents in Tocstyle (standard package). Here is my code. \documentclass[fontsize=12pt]{scrreprt} \usepackage{tocstyle} \usetocstyle{standard} ...
5
votes
1answer
175 views

Getting error using \MakeUppercase with tocloft

Trying to use tocloft package to customize a table of contents, but I am running into errors using \MakeUppercase or \uppercase with certain commands, namely \cftsecfont. When I run the following ...
5
votes
1answer
598 views

Center parts in toc with tocloft

I'm trying to create a toc in a large Latex document which uses the KOMA script. In the toc I would like to center the parts and remove all other components (pagenumber, partnumber). I use tocloft (a ...
5
votes
1answer
491 views

Positioning the beginning of table of content (toc) to the top of the page

I managed with great help from here to shift the beginning of the chapter titles to the top of the page, but it doesn't affect the table of content. Why is that? And how could I do that? I don't ...
5
votes
1answer
352 views

Minimal code to support table of contents in custom class

I'm trying to create a custom class to replace the class book and need to include ToC functionality. Placing the command \tableofcontents leads to error "Undefined control sequence". Using packages ...
5
votes
1answer
198 views

Efficient use of several lists of … in a document

Friends, I'm stuck with a design issue. I'm writing a songbook with thousands of songs (using the songs package). So far so good. These days I decided to create indices for each song style/genre, ...
5
votes
1answer
792 views

Remove section number ToC entries with tocloft

I have formatted a ToC with tocloft package. I have it almost right, but I would like to remove the numbers of the sections; just leave the section names. I am trying different commands but I can not ...
5
votes
1answer
589 views

Table of Contents chapter number width

I am using the tocloft package to design my table of contents. I know how to set the width of the chapter numbers in the toc using \setlength{\cftchapnumwidth}{2em} However this sets a fixed ...
5
votes
3answers
3k views

Creating a separate list of appendices with tocloft

I'm very sorry but I have to ask for urgent help as I could not make sense of the individual questions I asked previously. I'm required a separate list of appendices, i.e. the appendix is not to show ...
5
votes
2answers
148 views

Source of Image in List of Figures

I need to have my sources, for example from image files, in my list of figures. \documentclass[10pt,a4paper]{article} \usepackage[list=true]{subcaption} \usepackage{graphicx} \usepackage{tocloft} ...
5
votes
1answer
156 views

ToC: controlling spacing between major headings and subheadings

So I am attempting to begin early on my thesis, and I am running into some strange TeX problems. I am using 12pt font - important for the spacing commands below. When formatting the ToC we are ...
5
votes
1answer
73 views

How to adjust \cftchapnumwidth dynamically?

I'm using tocloft package to format Table of Contents. The problem is reproduced in the following minimal working example. The indentation level of Appendix A is incorrect. But the command ...