{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

18
votes
1answer
5k 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. ...
16
votes
3answers
2k 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 ...
15
votes
2answers
2k 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 ...
12
votes
3answers
6k 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
938 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
2answers
797 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 ...
11
votes
1answer
4k 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 ...
11
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} ...
10
votes
1answer
373 views

Todonotes: group list-of-todos by section

This is a follow up question to group list-of-todos by chapter. egreg's solution works great with classicthesis and scrreprt, and I've been trying to do the same without classicthesis and for ...
10
votes
1answer
492 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
100 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
5k views

Display \chaptername in table of contents

I'm looking for something to resolve the problem that has been metioned at How do I get \chaptername to appear in the table of contents? and Table of Contents with “Chapter” and per-chapter ...
9
votes
1answer
5k 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 ...
9
votes
3answers
12k 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 ...
9
votes
1answer
806 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
2answers
5k 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 ...
9
votes
1answer
2k 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 ...
8
votes
2answers
555 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
2answers
6k 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 ...
8
votes
1answer
1k 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, ...
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 ...
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
3answers
361 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
262 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
2k views

Table of equations like list of figures

I am fairly new at this and trying to put a table containing a brief description of the equations I use, into my thesis. This has proven to be quite an irritating problem. I have found a nice concise ...
7
votes
1answer
2k 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
589 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] ...
7
votes
1answer
2k 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
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 ...
6
votes
3answers
3k 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 } ...
6
votes
3answers
164 views

No hyphenation in TOC entries, please

I have some very long section titles and do not want their entries in the TOC to be hyphenated. \documentclass{scrreprt} %\usepackage[ngerman]{babel} \usepackage{tocloft} ...
6
votes
2answers
236 views

How to get Section without numbers in Title and TOC, but subsections with them

First of all, I have been searching on the web and I have found similar cases but nothing useful for my problem, and more over, I'm pretty new in LaTeX. The Problem If I take off the numbers from ...
6
votes
1answer
408 views

Modify Fancy Table of Contents

I am creating a fancy ToC based on @pluton 's question How to customize the table of contents using TikZ? Although this code works fine, it seems that it missbehaves when using an appendix. Instead ...
6
votes
2answers
180 views

Supress page numbers for \part in toc

I have created two custom macros for chapter and part command. When I am using following code: \documentclass[final]{book} \usepackage{lipsum} \usepackage{tocloft} ...
6
votes
1answer
87 views

List of all labels with hyperlinks

I'm writing a document with several \label{} environments and I'm looking for an opportunity to generate a list of all of them at the beginning, something like this: Label 1 ..... 1 Label 2 ..... 2 ...
6
votes
1answer
176 views

extra \fi error when using \localtableofcontents inside an \if…\else..\fi

When I put \localtableofcontents (which comes from one of these pacakges tocloft or etoc), inside the \if....\else..\fi then I get an error. The reason I wanted to put it inside an if is because I ...
6
votes
1answer
123 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
1k 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
1answer
459 views

Can't compile with most recent version of TeX Live (2013)

I have used a tex template for my CV for years. But I recently migrated everything to a new Mac running OS 10.8.4 and the document will no longer compile. I have confirmed that the file compiles ...
6
votes
1answer
2k 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 ...
6
votes
1answer
1k 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
524 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
252 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, ...
6
votes
1answer
530 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
609 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{% ...
6
votes
1answer
52 views

List figures with \listoffigures but don't show the figures themselves

For a journal submission, I need a list of figure captions at the end of my manuscript but they explicitly asks not to include the figures themselves in the document. I have added \listoffigures at ...
5
votes
3answers
159 views

list of newcounter

I've set up a newcounter in a LaTeX document: \newcounter{example}[section] \newenvironment{example}[1][]{\refstepcounter{example}\par\medskip \textbf{Example~\theexample. #1} \rmfamily}{\medskip} ...
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 ...
5
votes
1answer
2k views

How to add leaders to Table of Contents without tocloft?

I'm using a third-party non-standard document class which is based on book. Class be damned, I want to add dot leaders for chapters, sections and subsections in the Table of Contents. If I include ...
5
votes
1answer
860 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 ...