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

1
vote
1answer
31 views

Problem with tocloft, minitoc and bold math mode

To ensure equations in headings are written bold as well I have added the following command to my document: \makeatletter \g@addto@macro\bfseries{\boldmath} \makeatother This works very well until ...
2
votes
1answer
27 views

Leaders in tocloft with minimum width

How can redefine the leader in tocloft so that is has a minimum length? The background is that I always want leaders in TOC to appear with at least two dots, forcing line breaks in titles if ...
3
votes
1answer
62 views

Remove both number and chapter but keep in TOC

I am using \documentclass{book} with both packages tocloft and titlesec. I can't figure out if there is a way to remove both numbering and 'Chapter' (e.g "Introduction") from my \chapter's, but keep ...
3
votes
2answers
71 views

Using hspace before page number in contents, not aligned right

According to Robert Bringhurst (Elements of Typographical Style), leaders in a table of contents is unsightly. This question asks about one better way to set the table of contents. Another way, even ...
6
votes
1answer
213 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 ...
2
votes
0answers
61 views

Packages to place partial TOC, LOF, LOT, LOA and LOS in some of the chapters in a report?

Context I'm doing a template for a Master Thesis based on the report class and want to achieve the following characteristics: a) Tikz-based titles, headers and/or footers b) IEEE-alphanumeric style ...
1
vote
0answers
34 views

How to match vertical alignment of titlesec with tocloft?

I want to vertically align the Contents title including the horizontal rules (using tocloft) with the Introduction chapter title (using titlesec). However, I am confused as both packages seem to ...
5
votes
1answer
36 views

tocloft: How to add chapters in a new list defined with \newlistof?

Using the tocloft package, I defined a "List of Footnotes" which is displayed as a simple list, while I would like to display the chapters, too, in the following way: List of Figures ...
3
votes
1answer
44 views

How to wrap a TOC entry in custom code

I have a book in which I'm using titletoc and tocloft. I would like to be able to add some custom code to the code written to the .toc file. For example, I currently have a line in the .toc file like ...
5
votes
3answers
96 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} ...
2
votes
1answer
56 views

tocloft cross-references a section as a subsection

I have document which creates a new list of examples. The list has a label \label{sec:examples} which labels the title of the list, which is rendered as a section. However, cross referencing ...
2
votes
2answers
159 views

How to use tocloft to create a list which appears in the middle of the document

I have a document in IEEE (conf) format and I want to add a new environment using tocloft. The relevant code looks like this (slightly abbreviated): \documentclass[conference]{IEEEtran} ...
1
vote
1answer
50 views

tocloft, listoffigures and scrheadings missing page-numbers

There are in this example page-numbers missing at the pages containing table of contents and list of figures. Just for clarification: They're not missing in toc or list of figures but on the pages ...
2
votes
1answer
71 views

How can I change the font size of TOC, LOF and LOT?

I am using \documentclass[11pt, a4paper]{memoir} \usepackage{tocloft} \renewcommand{\cftfigfont}{\small} \begin{document} \frontmatter \tableofcontents \cleardoublepages \listoffigures ...
0
votes
1answer
56 views

Accent in equation list

I'm need to make a list of equation in my document. I found and use the modified version of Lev Bishop's code from here. Everything work until there's an accent in the equation label. I got this error ...
2
votes
1answer
56 views

Lists of figures and table - Print “Figure X.Y - ”

I want to customize my lists of figures and tables so that it looks like this: Figure 1.1 - Name of the fig. Figure 1.2 - etc. I am currently using the tocloft package and managed to have Figure ...
4
votes
2answers
67 views

Chapter Roman in tableofcontents

I try to change number of chapter to CHAPTER I,II,III in contents and it is done. \documentclass{report} \usepackage{tocloft} \addtocontents{toc}{~\hfill{\small Page}\par} \AtBeginDocument{% ...
1
vote
0answers
27 views

Add “Chapter” to the table of contents. Report class [duplicate]

I currently have my ToC formatted exactly as I need it except I need the word "Chapter" to appear before the chapter number. i.e: I want to see Chapter 1: Title instead of 1: ...
5
votes
2answers
59 views

Formatting list of figures with no space on left side

Basically I want this: Abbildungsverzeichnis Abbildung 1: somecaptiontextxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx.........................................................34 ...
3
votes
1answer
39 views

Centering List of X and Following with Text

With the tocloft package, I can add text under the title of a "List of Z" at the beginning of a latex document: \renewcommand{\cftafterZtitle}{\par\noindent \textnormal{Z} \hfill \textnormal{PAGE}} ...
4
votes
1answer
72 views

Reducing Vertical Margin List of Equations

I am trying to add a List of Equations to my dissertation that matches the style of the list of tables and list of figures. I am very close but am hung up on the last step. How can I reduce the ...
1
vote
0answers
26 views

How to move titles in TOC due to special numbering? [duplicate]

I need special numbering for an article: (e.g. Part 1 should be numbered J4.1, the section below should be J4.1.1). I did this with: \renewcommand{\thepart}{J4.\arabic{part}} \setcounter{part}{0} ...
1
vote
1answer
40 views

why adding tocloft package causes tex4ht not to generate a table of contents?

texlive 2014 on Linux mint 17. This MWE does not generate a table of contents in the HTML file generated by htlatex \documentclass{article} \usepackage{tocloft} %if this line is commented, then toc ...
1
vote
1answer
111 views

How to improve table of contents?

I want to improve my table of contents so that I have larger writing (but with different sizes for section, subsection etc..), better spacing between lines and to add 'page' above the numbers.., maybe ...
1
vote
1answer
78 views

Adding the string “part” before the entries in the TOC

I want to add the word "Part" before my entries in the toc. I read here that I could use \renewcommand\cftpartpresnum{Part~}. I have tried adding making some modifications to the partpresnum and ...
0
votes
0answers
59 views

Repeat headings in list of tables for multiple pages

I am trying to add header for the list of tables in multiple pages, which is something like this. I want to repeat that "Table" and "Page" on every page of my list of tables as shown in the figure. ...
3
votes
1answer
52 views

Divided list of figures

I am using this solution to divide my list of figures and tables into chapters, however, I have a section heading on its own at the bottom of a page and then the table captions are on the next page. ...
2
votes
2answers
55 views

Hyphenation in list of figures

I am trying to remove hyphenated words from my list of figures and tables and I've no real idea how to do it. I just don't like the look of the same words broken at different points. For example ...
0
votes
1answer
77 views

hyperref for longtable jumps to first page of PDF [closed]

I have have longtable in my document, but when I click the caption name in the list of tables, or any reference to the table (using \ref{tab:table label}) it takes me to the first page of the document ...
3
votes
1answer
175 views

Line spacing in ToC, LoF, and LoT

I am currently writing my thesis in Latex and the thesis is supposed to be double spaced, so I have used the \doublespacing command in my latex file. The problem: Chapter or Section Titles, Figure ...
3
votes
1answer
132 views

Adjust Format of List of Algorithms

I'm using an existing LaTeX template for a thesis and am trying to match the List of Algorithms to the List of Figures. I have already applied some formatting changes, but there are a few attributes ...
3
votes
2answers
54 views

How to customize the list of figure page from `.cls` file?

I have been preparing a .cls file modifying the article.cls. I need to customize the list of figure page of my document. The list of figure part of my .cls file is as follows: ...
2
votes
0answers
57 views

tocloft package adds page number to first side of table of contents

I have a problem with the tocloft package. Whenever I try to include it in my document, the first page (only) of the table of contents contains a page number, even so I donĀ“t want any page numbers at ...
2
votes
1answer
73 views

tocloft removes content title formatting

I am using code from this answer http://tex.stackexchange.com/a/93792/19817 to make horizontal lines above and under chapter title. \documentclass{book} \usepackage{titlesec} ...
3
votes
1answer
123 views

Undefined control sequence on \cftaddtitleline

The following code produces ! Undefined control sequence. \documentclass{article} \begin{document} \tableofcontents \cftaddtitleline{toc}{section}{Topic 1}{} \end{document} What am I doing wrong? I ...
4
votes
2answers
100 views

Add text before “part” number in table of contents

I would like to add "Partie" before the part's number it only appears in the text and not in the table of contents. It works for sections, subsections etc. but not part with renew command. This is ...
6
votes
2answers
115 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} ...
10
votes
1answer
235 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 ...
4
votes
1answer
105 views

Add a symbol in ToC between the section number and its section

My problem is that there exists an overlap between the symbol to introduce and the section title; it is manifest with two \heartsuits \documentclass{article} \usepackage{tocloft} \usepackage{lipsum} ...
6
votes
1answer
749 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 ...
1
vote
1answer
242 views

Lyx - List of Figures

I am using LyX and the report class. (KOMA-Script). My List of Figures just prints the figure number and its caption but not the word Figure infront. How could I modify the command in the Latex ...
3
votes
1answer
125 views

Include both short and long caption in list of figures

I'm writing a paper where I'm trying to repurpose the list of figures as a figure legends section. I'd like each figure to have something like "Figure X: Title" at the bottom, with list of figures ...
3
votes
2answers
149 views

Adjusting the look of ToC

I need to make my Table of Contents entries like this: (With the heading table of contents at the center). The things I was able to achieve till now: i) Modifying the title of ToC ii) Modifying ...
2
votes
1answer
181 views

Moving the page number in a table of contents to the left of the titles with tocloft

I would like to move the page number from the right-hand side of a table of contents to the left, using tocloft. The page number should still be right-aligned. The question has already been answered ...
3
votes
2answers
247 views

Underline the section title text in table of contents

Hopefully this is easy. I would like to underline the text of the section title in the table of contents (with the section number removed). Similar to this picture, with the red line where the ...
5
votes
1answer
122 views

\relax undefined in tocloft \cftchapaftersnum

I found this error while try to compile latex document in my new machine: ! LaTeX Error: \relax undefined. l.35 \renewcommand {\cftchapaftersnum}{.} It didn't appear in my previous ...
5
votes
1answer
429 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} ...
1
vote
0answers
53 views

etoolbox preto command doesn't work when tocloft package is used

So I am trying to use: \preto\tableofcontents{ ... } to add something before ToC (and same thing for LoF and LoT) in the Class file (i.e. neither adding ... in the real .tex file, nor making ...
2
votes
1answer
260 views

Space between items in List of Figures/Tables within a chapter

I would like to add some tiny space between items within a chapter in the List of Figures/Tables. It should be compatible with \setlength{\cftbeforechapskip}{Xpt} I'm using for ToC. My code is: ...
4
votes
1answer
151 views

How to make section name uppercase in ToC?

Is there another way to change section names in ToC to uppercase besides Uppercase sections and subsections on ToC Cause this one doesn't work for me very well. Can it be done with tocloft package?