{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

0
votes
0answers
28 views

Conditionally prepend text to chapter title in TOC

I want to prepend some text to chapter titles on the TOC according to certain conditions. For example (this doesn't work): \documentclass[letterpaper,openany,oneside]{book} ...
1
vote
3answers
38 views

How to hide chapter numbering in table of contents?

I know \setcounter{secnumdepth}{1} lets you set the depth of numberings, but I have to number sections and subsections only, not chapters. Is there a one-liner to do this? I have seen some answers to ...
2
votes
1answer
49 views

How can I hide the reference links in the TOC, LOF, and LOT globally (shared preamble)?

Question How can I use hypersetup{hidelinks} globally, such that the scope is the TOC, LOF, and LOT only? Situation I have many documents that share a common preamble. I am using the \hyperref ...
4
votes
1answer
46 views

Making chapters bold in table of contents

Problem: How do I make chapter titles bold in the below MWE? Minimal working example: \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[titles]{tocloft} \begin{document} %: ...
2
votes
1answer
57 views

How can I exclude a custom sectioning command from the table of contents?

Question How can I exclude a custom titling command (sectioning command) from the table of contents? Note that I do not want to simply inherit the \paragraph, because it is reserved for and extra ...
2
votes
1answer
74 views

No page numbering on ToC, LoT, LoF

I'm trying to supress page numbering in the table of contents, list of figures and list of tables. If they have more than one page, subsequent pages should have no page numbering also, but they must ...
0
votes
0answers
29 views

Errors with tocloft

I'm trying to use tocloft to create a list of equations in the contents table of my thesis, but it's erroring when I compile the document. I've used \newcounter to define a new list of R scripts for ...
5
votes
1answer
104 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 ...
2
votes
0answers
69 views

LOF and LOT customization in memoir

I am attempting to add LOF and LOT to my current document using the memoir class. When I try to remove the spacing above the LOF and LOT titles, I get the "Undefined control sequence. ...
0
votes
1answer
54 views

Change page number of manually added TOC entry without adding blank pages

I have a main LaTeX document and an external PDF that I used to include with pdfpages (and it looks great!). But, now I want to insert TOC entries to reference sections and subsections inside external ...
1
vote
2answers
177 views

custom table of contents using tikz and tocloft

I have using tocloft and tikz for creating custom table of contents. Please find the my MWE below: \documentclass{book} \usepackage{tocloft,refcount} \usepackage[colorlinks,linkcolor=black]{hyperref} ...
6
votes
3answers
139 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} ...
1
vote
1answer
102 views

table of contents in two column different layout

I would like to get the below output in my table of contents. How do achieve this. My MWE is: \documentclass{book} \usepackage{tocloft} \makeatletter \renewcommand*{\l@section}[2]{% \ifnum ...
1
vote
1answer
35 views

Tocloft - change listof title format individually, while using titles option

I defined some new listofs with the tocloft package and used the provided titles option, but I only want the ToC to look like one of my chapters. My custom listofs should look like sections without ...
4
votes
1answer
61 views

Aligning the LOT and LOF captions

I try to align the captions in the LOT and LOF flush left. I had to add a word before the table and figure numbers. After I added these I could not make it flush left as you can see here on the ...
6
votes
2answers
158 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 ...
2
votes
2answers
112 views

Adjust space between chapter number and caption in TOC

I have document like this: \documentclass{book} \renewcommand\thechapter{\Roman{chapter}} \begin{document} \chapter{Some title} \chapter{Some other title} \chapter{One more title} \tableofcontents ...
1
vote
2answers
98 views

Chapter numbering in table of contents

I have a not so far problem from the question opened here: Adding word "Chapter" into Table of Contents for only numbered chapter entries I'm using a "literal numbering for chapters, using ...
2
votes
0answers
69 views

tocstyle style settings for user-defined list

I'm using tocloft and tocstyle using settings standard and nopagecolumn for my book. I'd like these settings to apply to my user-defined list of examples (.loe), but haven't had much luck. I naively ...
0
votes
1answer
36 views

How do I add a leader between the ToC chapter number and title with tocloft?

The title of my question says it all. Is it possible to add a leader between the number and title of a chapter in the ToC with tocloft? I tried doing this: ...
3
votes
2answers
61 views

Appendix with a colon causing problems in list of figures

I have added a colon to Appendix in the toc using the following command. \apptocmd{\appendices}{\apptocmd{\thesection}{:}{}{}}{}{} Due to this, in the list of figures section, I am getting ...
1
vote
1answer
73 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
38 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
137 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
132 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
319 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 ...
3
votes
0answers
92 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
60 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
74 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
50 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
128 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
71 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
260 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
102 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
121 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
70 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
79 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
88 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
30 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
90 views

Formatting list of figures with no space on left side

Basically I want this: Abbildungsverzeichnis Abbildung 1: somecaptiontextxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx.........................................................34 ...
3
votes
1answer
46 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
82 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
48 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
139 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
96 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
77 views

Repeat headings in list of tables for multiple pages [duplicate]

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
64 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
78 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
91 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 ...