Tagged Questions

{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

8
votes
1answer
4k 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 ...
2
votes
2answers
2k views

Capitalise table of contents title with tocloft

Simple question, but I can't put the answer together through googleing. I want to capitalize the table of contents TITLE in my LaTeX document. Nothing else. I'm using the tocloft package and various ...
8
votes
2answers
454 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 ...
3
votes
1answer
1k views

How to change vertical spacing in TOC between section entry and only the first subsection entry in each section?

I am using article class and tocloft package. Does anyone know how to put a space (for example of size "22pt") between a ToC section entry and only the first subsection entry in every section. ...
1
vote
0answers
31 views

Tocloft: Make a 'pagebreak' (vertical skip between chapters) [duplicate]

Possible Duplicate: How can I force ToC not to end with a chapter? I started using tocloft which changed formatting and spacing in my ToC a little. I have fixed other issues, but this one ...
5
votes
1answer
675 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 ...
1
vote
1answer
225 views

Tocloft + KOMA, get rid of numberings in table of content, but keep them in the content and in other lists such as list of figures

I am using the documentclass scrbook (KOMA) with tocloft and would like to get rid of all the numberings of the chapters, sections and subsections in the table of content, but not in the content and ...
2
votes
1answer
224 views

Tocloft + KOMA, get rid of numberings in table of content, but keep them in the content

I am using the documentclass scrbook (KOMA) with tocloft and would like to get rid of all the numberings of the chapters, sections and subsections in the table of content, but not in the content ...
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 ...
4
votes
1answer
1k views

Tocloft and List of Figures: Get rid of title and begin right at the top

I am using tocloft to create an List of Figures. Now I would like to get rid of title and the list of figure should begin right at the top after the chapter title. I know the following is not a ...
3
votes
1answer
655 views

tocloft and list of figures: get rid of page number of apperance

I would like to get rid of the page number of appearance in my List of figures, since it should only reference to the sources of the figures. I am working with tocloft. Following code gets rid of the ...
2
votes
1answer
541 views

Table of contents without title with 'tocloft' (class=report)

I would like my Table of contents to be without any title and vertical space skipping. How can I do that with tocloft package? I've seen Table of contents without title, but code ...
8
votes
1answer
4k 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 ...
3
votes
2answers
5k views

How can I single-space text within entries of my table of contents?

I am writing my dissertation. My university requires that the document be double-spaced; I am using the setspace package to do this. However, I must single-space entries of the table of contents ...
2
votes
1answer
618 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
387 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
222 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
101 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 ...
15
votes
1answer
4k 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
730 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
1k 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
864 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
610 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 ...
10
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
732 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
487 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
598 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 ...
16
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
436 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
411 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
765 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
799 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
686 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
527 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
378 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
942 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
920 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
469 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
729 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
220 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, ...