{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

2
votes
1answer
595 views

tocloft and width of the table of contents

In the ClassicThesis class, the table of contents is set up through the tocloft package and I cannot find a way to line up the page numbers (on the right) as shown below with the thick red line. I'd ...
5
votes
1answer
373 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 ...
2
votes
1answer
219 views

Make tocloft insert empty page after the ToC

How can I redefine the tocloft \tableofcontents to insert a new page automatically after the table of contents. The suggestions at Redefine \tableofcontents to start a new page after the ToC do not ...
5
votes
1answer
88 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 ...
14
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
1answer
3k 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 ...
2
votes
1answer
2k views

Formatting new list of definitions with tocloft

Using the tocloft package in LaTeX, I created a List of Definitions. From the package documentation and some online examples I came up with: \newcommand{\listdefinitionname}{My list of definitions} ...
5
votes
2answers
1k 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 ...
11
votes
2answers
698 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 ...
2
votes
1answer
957 views

Spacing in list of figures / tables for entries from appendices

Having made the changes Werner very helpfully suggested in the Separate table of appendices - pdf bookmarks & avoid previous chapter's format, my list is up and running but I have some spacing ...
6
votes
1answer
819 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 ...
4
votes
1answer
592 views

Separate table of appendices - pdf bookmarks & avoid previous chapter's format

I'm trying to format my thesis which requires a seperate list of appendices. Thanks to a really useful post - Creating a separate list of appendices with tocloft - I have the list up and running. I'm ...
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
1answer
1k 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 ...
9
votes
1answer
701 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 ...
6
votes
1answer
467 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 ...
3
votes
1answer
586 views

tocloft conditional spacing

This is my first question on stackexchange! I am using the tocloft package for my thesis and my university requires doublespacing before and after the chapter titles in the ToC, but only if the ...
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 ...
4
votes
0answers
427 views

tocloft recipe to simulate the titlecontents* behaviour of titletoc [closed]

I can't use titletoc, since there are incompatibilities between this package and others that I am using. However, tocloft works fine. I would like to simulate the \titlecontents* effect using ...
3
votes
1answer
396 views

Highlight entries in Table of Contents with coloured rectangles using TikZ an tocloft

The solution presented in How to highlight specific entries in a tocloft-formatted ToC did not work for colored background. There is a problem when using color because the colored rectangles are ...
2
votes
2answers
732 views

How to linebreak part ToC entries using tocloft/titletoc and the book class

I'm currently writing a LaTeX document in the book documentclass. In my ToC I want the actual titles of certain entries (parts in my case) to come in a newline after a generic name of the section-type ...
2
votes
1answer
1k views

Table of Contents: Titles for Parts with \tocloft

I use the tocloft package to design the Table of Contents. I wanted to add the word Part before the numbers of parts in TOC (f.e. using \cftpartpresnum), but I want to add it only for numbered parts. ...
3
votes
1answer
753 views

Conditional loading of tocloft causes errors

Looking for a way to customise a table of contents, I came across this recommendation to use tocloft. As per the suggestion (and the documentation), I've put a conditional in place which tests for ...
2
votes
1answer
3k views

Font size in toc

I get a problem when creating toc with my style, I want all font size is normalsize, but it doesn't work for the chapter. here my code : \titleformat{\chapter}[display]{\large\bfseries\fillast }{BAB ...
1
vote
0answers
2k views

Create appendix in LyX? [closed]

I use report class, I create appendix in LyX : The definition of the appendix has been defined from the LyX menu Document->Start Appendix Here The contents of Appendices are listed in a separate ...
4
votes
1answer
627 views

ToC: How to no-indent the second line of large entries?

ToC: How to no-indent the second line of large entries? I'm using the scrreprt class, typesetting a book with only 120mm of paperwidth.
4
votes
3answers
2k views

Customizing the list of listings generated by \lstlistoflistings?

I'm using listings in my document, and its command \lstlistoflistings to generate the list of listings. The problem is that I've customized all the other lists (TOC, LOF and LOT). More precisely, I've ...
3
votes
1answer
490 views

How to make multiple lines in ToC horizontally align?

For single line, the content aligned nicely, but that's not the case when the it contains multiple lines. The alignment is odd: So how can I make them align nicely? Mimimum Example ...
3
votes
2answers
371 views

Contextual newlines in tocloft

I'm using a shorttoc with tocloft to put the names of chapters on a newline. Unfortunately, there are some chapters (such as the Preface or Index) which are not numbered, and I end up with additional, ...
6
votes
1answer
903 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 ...
2
votes
1answer
872 views

Why does \setlength using tocloft causes strange alignment in TOC?

The problem I'm having is to align the number and text in the TOC. I searched and found one solution is to use package tocloft, like proposed in TOC Text - numbers alignment. Then I tried to apply it ...
3
votes
2answers
2k views

\listoffigures font size

Can anyone tell me how I can change the font size of the \listoffigures content (not the caption)? I couldn't find a corresponding option in the tocloft package
2
votes
2answers
1k views

Typeset cftchapfont as uppercase

I'm trying to put the whole cftchapfont as uppercase. \renewcommand\cftchapfont{\MakeUppercase} does not work at all (it actually messes up everything), nor does: ...
10
votes
1answer
457 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 ...
3
votes
2answers
692 views

Dots and Spacing in Table of Contents/List of Figures, etc. with `hyperref` loaded

I'm using the hyperref package and am unable to load tocloft. I've tried everything including a voodoo ritual involving a rubber chicken to get the two to shake hands. Is there a work around to get ...
5
votes
1answer
207 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, ...
1
vote
1answer
1k views

How do I convince tocloft to put the word 'Figura' ahead of entries in my List of Figures?

How to customize list of figures, adding word FIGURA to appears in the table of contents? I changed \newcommand{\cftfigfont}{Figura }, but in the summary, it's not linked (hyperref). How to solve it? ...
1
vote
2answers
1k views

Customizing Table of Contents Formatting

For the most part, the default formatting for the ToC, LoF, and LoT is fine. But I need to add an extra line (university's requirements for my thesis) between each numbered entry. In order to do this, ...
2
votes
3answers
3k views

How to change the style of “Contents” heading?

Help me, please to make the style of "Contents" heading to be as \chapter{Le choix du thème}. Also I would like to put all headings a little bit higher and to fix the hyperref for "Contents" in pdf ...
5
votes
2answers
548 views

Replacing page number with other counter in listoftodos

I'm using the todonotes package to add notes in my documents. The \listoftodos command adds a ToC for todos. Instead of the page numbers in this ToC, I would like to display another value, for ...
8
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
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 ...
2
votes
1answer
2k views

How to get the chapter name and other TOC data in the table of contents?

It's a good solution. But could you help me to change it a little bit. For example using report style in text I wrote: \documentclass{report} \usepackage{tocloft,calc} ...
8
votes
3answers
11k 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 ...
2
votes
1answer
996 views

Short List of Figures in Memoir

I really like the appearance of the short list of contents, introduced in the memoir manual. What I want is a short list of figures command changing the LoF style similarly. Centered captions followed ...
7
votes
2answers
4k 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
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 ...
11
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 ...
12
votes
2answers
845 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 ...