Questions tagged [tocloft]

{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 ...".

Filter by
Sorted by
Tagged with
1 vote
1 answer
41 views

How to make red page numbers in table of contents while 'linktoc=all' and '\hypersetup{linkcolor=black}' are present?

How can I make page numbers red in table of contents? I have colorlinks=true, linkcolor=blue, so standard internal links are blue; linctoc=all, so both table of contents entry names and page numbers ...
Linear Christmas's user avatar
0 votes
0 answers
17 views

Issues with newfloat, custom ref macros, and listof

I have written macros to generate "names spaces" for chapters and sections etc. This all works great but newfloat's listof feature (or the underling tocloft) seams to break on it: \...
AltF4's user avatar
  • 75
0 votes
1 answer
14 views

Ensuring sufficient horizontal space in TOC numbering when using alphalph to create multi-letter appendix names [duplicate]

I am using the appendix package to manage my appendix with the \appendices environment, specifically with the options toc and title so that in the text, headings read "Appendix A" whereas in ...
Ann's user avatar
  • 519
1 vote
1 answer
32 views

using @starttoc causes Package tocloft Warning: \@starttoc has already been redefined;

I am required to use a .cls (minimized code below) which produces this warning: Package tocloft Warning: @starttoc has already been redefined; tocloft bailing out. on input line 1156. Any thoughts on ...
me_online's user avatar
  • 125
1 vote
0 answers
26 views

LaTeX: Individualized figure names in List of Figures

sorry if this has been resolved elsewhere but I cannot find the solution and I'm not very LaTeX-savvy Currently I have some "Figures" in my document with the unique label "Movie" (...
samjam's user avatar
  • 11
0 votes
0 answers
20 views

Wrong page numbers in pdf bookmarks in two-part document

I'm writing a two-part document, where the second part has roman page-numbering and its own table of contents. Unfortunately, some sections in the second part (starting with the section 'Second Part') ...
picky_porpoise's user avatar
0 votes
1 answer
32 views

How to Fix Spacing Between Item Number and Caption in List of Figures

Consider the code: \documentclass[12pt]{book} \usepackage{graphicx,caption} \usepackage[T1]{fontenc} % Allows one to make bold smallcaps. \usepackage{tocloft} \renewcommand{\listfigurename}{\LARGE\...
mlchristians's user avatar
  • 7,724
2 votes
2 answers
93 views

What's wrong with this code (how to fix the overfull \hbox)?

I'm getting lots of "overfull \hbox" warnings during compilation of a large document, and apparently this is caused by the following ToC customization. The compiled PDF output appears to be ...
Cham's user avatar
  • 2,190
0 votes
1 answer
54 views

How do I make the chapter title in the heading different from the chapter title in the TOC?

I'm setting a document using the octavo class and including the packages tocloft and fancyhdr. Here are my fancyhdr settings: \fancyhead[CE]{\itshape\booktitle} \fancyhead[CO]{\itshape\leftmark} \...
Joel Derfner's user avatar
0 votes
0 answers
31 views

How LaTeX removes "CHAPTER 1. NAME" from header of Introduction chapter?

I use: \chapter*{Introduction} \addcontentsline{toc}{chapter}{Introduction} \chaptermark{Introduction} When table of contents was in the beginning of the book it seemed working well, on the header of ...
Nikolay Yasinskiy's user avatar
0 votes
0 answers
32 views

How can I make a table of contents with parttitle and chaptertitles before dots and pagenumber?

I use this setting: \renewcommand\cftchappresnum{\chaptername~} \renewcommand\cftpartpresnum{\partname~} \renewcommand\cftchapaftersnum{.} \renewcommand\cftpartaftersnum{.} \newlength\mylength \...
Nikolay Yasinskiy's user avatar
0 votes
0 answers
6 views

Can't use both pagestyle and tocloft package to add dots to table of contents and remove "chapter 1" before its name on headers

Here is my preamble: \documentclass[12pt,a5paper,openany]{book} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \usepackage{babel} \usepackage{etoolbox} \usepackage{blindtext, color} \usepackage{...
Nikolay Yasinskiy's user avatar
0 votes
0 answers
18 views

adding ToC prevents using custom LoF

I'm trying to make a document with the following structure: front matter (cover, etc) ToC (regular, no customization) text LoF (customized) Figures The issue: If I add a table of contents, the ...
Carlos Grohmann's user avatar
0 votes
1 answer
35 views

List of Figures customization

I want to customize the list of figures. Here is my settings: % Figures and table in the directories \usepackage[titles]{tocloft} \renewcommand{\cfttabpresnum}{Table } \renewcommand{\cftfigpresnum}{...
RoSy8264's user avatar
1 vote
1 answer
26 views

How to set TOC title above its content when using multicols and tocloft

Background: Hello there. I read this Q&A, which I thought would answer my question, but I am still confused (surely due to my newness to LaTeX). I have a two-column table of contents that uses ...
HermyS's user avatar
  • 15
0 votes
0 answers
45 views

Why is my cross-linking system interfering with the TOC?

\documentclass{book} %\usepackage[fontsize=13.5pt]{fontsize} \usepackage{fontspec} % compile w/XeLaTeX \usepackage{appendix} \usepackage{kantlipsum} \usepackage{fancyhdr} \setmainfont{Perpetua} \...
BlueIris's user avatar
  • 331
0 votes
1 answer
45 views

How to set NO indent on 2nd line of a toc that is using multicols and tocloft

Background:: Hi there, new to everything here. I have a table of contents I'm producing in an Rnw file using \tableofcontents. I am formatting this toc to be two columns with the multicols package. I ...
HermyS's user avatar
  • 15
0 votes
0 answers
50 views

How to add dot after chapter number in table of contents without affecting the main document's chapters in book class?

I have made my own format of document and Table of content. The chapter title format in document is as follows: Chapter 1 (underline, all caps & centered) Chapter name or title (underline, all ...
Sage Khan's user avatar
0 votes
0 answers
36 views

How to get prefix for section numbering in Table of Contents using tocloft

Im trying to make a customized Table of Content. The section numbering in the document is as follows: Title of section. (Underline, in running text, with the first letter capitalized) In table of ...
Sage Khan's user avatar
2 votes
1 answer
58 views

Cannot add to "after" hook of sectioning command

It seems one cannot add to the "after" hook of a sectioning command. For example the document \documentclass{article} \AddToHook{cmd/section/after}{\bfseries} \begin{document} abc \section{...
mbert's user avatar
  • 2,451
0 votes
0 answers
33 views

Custom List with Chapter Number and ToC-Entry

I would like to make a custom list as a regular chapter. Adding a number to the title and bringing the chapter to the table of contents. How can I achieve that? Thanks for any help. Here is my current ...
pro-kswe's user avatar
0 votes
0 answers
46 views

Table of contents with horizontal lines like table

In my thesis, I have to change the table of contents layout according to the following picture. Being not so skilled in latex I can't get a way out. The codes of different people at StackExchange are ...
Optimist Optimizer's user avatar
1 vote
1 answer
57 views

How to Make a Portion of a Bold TOC Entry Not Bold on an Ad Hoc Basis

Consider the code \documentclass[12pt]{book} \usepackage{tocloft} \renewcommand{\cftchapfont}{\small\bfseries} \begin{document} \tableofcontents \addcontentsline{toc}{chapter}{INTRODUCTION (Unbold ...
mlchristians's user avatar
  • 7,724
0 votes
1 answer
51 views

cleanthesis - logo on each page after first chapter page

I currently use the cleanthesis v0.4.0 and my main issue right now is that I'm not able to place a logo on each page after the first page of the chapter. Used fancyhdr but I get always the complain ...
JmlGmbn's user avatar
  • 33
0 votes
1 answer
88 views

KOMA TOC: Changing tocline color

Is it possible to change the color of the tocline (dotted line between entrys and page number) only? Im not sure if this is possible in KOMA and havent found out how to use tocloft for this (or if ...
hendrik m's user avatar
0 votes
1 answer
49 views

tocloft newlistof numwidth

I'm trying to make a custom List of TBDs similar to the built-in List of Figures and List of Tables. I got that all to work using tocloft's newlistof feature, but the numbering format I'm using for ...
Kevin Rak's user avatar
  • 111
1 vote
1 answer
67 views

Efficient Way to Allow TOC Section Entries to be of Different Fonts

Consider the code \documentclass[12pt]{book} \usepackage{lipsum,tocloft} \begin{document} \renewcommand{\cftchapfont}{\bfseries} \renewcommand{\cftsecfont}{\itshape} \tableofcontents \newpage \...
mlchristians's user avatar
  • 7,724
2 votes
1 answer
54 views

Why TOC with \pgfpagesuselayout{2 on 1} Displays Incorrect Page Numbers

This question is a follow-up to Place a Vertical Line Between the Two Pages with pgfpagesuselayout{2 on 1} Consider the code \documentclass[14pt]{memoir} \usepackage{pgfpages} %\pgfpagesuselayout{2 on ...
mlchristians's user avatar
  • 7,724
2 votes
1 answer
81 views

Reducing the Amount of Vertical Space Between the Lines of a TOC Subsection Entry

Consider the code \documentclass[12pt]{book} \usepackage[showframe,paperwidth=5.5in,paperheight=8.25in]{geometry} \textwidth=4in \textheight=6.40in \voffset -7pt \usepackage{tocloft} \renewcommand{\...
mlchristians's user avatar
  • 7,724
0 votes
0 answers
8 views

Overflow when custom tocloft list is on the same page as other content

I currently have this custom To Do list made using tocloft; \newcommand{\listhtodoname}{{\normalsize My To Do List}} \newlistof{htodo}{hdo}{\listhtodoname} \newcommand{\htodo}[1]{ \newcommand{\...
Hussein Esmail's user avatar
0 votes
0 answers
33 views

How to remove "Apendix" from the TOC for Apendixes?

I want to remove the Appendix title from the TOC of a book. I have this: But I want this: I figured that using \begin{appendices} \small \chapter{Anexo 1} \section{Texto 1 do ...
JPMD's user avatar
  • 311
2 votes
3 answers
82 views

After adding 'Chap' word in toc in report, change color of the entire chap lin in toc?

Referring to good working solution with MWE included in How can I add the word "Chap" before the chapters numbers in the Toc in class report? for adding word 'Chap' before chapter numbers in ...
Shahmeer's user avatar
1 vote
1 answer
52 views

How to Selectively Eliminate the Dotfill in a TOC Chapter Entry

This question is an extension of the one posed in How to Selectively Turn Chapter Page Numbers Off in the Table of Contents I am using dotfill for chapter entries in the TOC; however, I would like to ...
jean-marie's user avatar
  • 1,014
1 vote
1 answer
63 views

How to Selectively Turn Chapter Page Numbers Off in the Table of Contents

MWE: \documentclass{book} \usepackage{tocloft} \begin{document} \tableofcontents \newpage \cftpagenumbersoff{chapter} \addcontentsline{toc}{chapter}{CHAPTER 1} \cftpagenumberson{chapter} \...
jean-marie's user avatar
  • 1,014
0 votes
2 answers
70 views

How can I put an Arabic translation for each section in the Table of Contents

I am typesetting the Quran in LaTeX with English on the left side and Arabic on the right side. I use XeLaTeX and arabxetex to do this. I use the tocloft package to customize the Table of Contents and ...
Amarakon's user avatar
  • 165
1 vote
0 answers
33 views

How to Efficiently Suppress TOC Section Entries from Appearing

I am currently working on a geometrically small book in which I don't want the TOC to be too long. I don't know yet if I will omit section entries from the TOC, but I am considering it. Without having ...
mlchristians's user avatar
  • 7,724
0 votes
1 answer
52 views

Having Trouble Extending Dotfill in the Usual Way with Book Class

Consider the code: \documentclass[10pt]{book} \usepackage[showframe,margin=.3in,paperwidth=4in,paperheight=6in]{geometry} \textheight=5.25in \usepackage[frame,noinfo,center]{crop} \usepackage{tocloft}...
mlchristians's user avatar
  • 7,724
0 votes
1 answer
34 views

How to extend link from text and page number to dots in table of contents (lualatex)

I spread table of contents links from text to also page number using this setting: \hypersetup{linktoc=all} But it doesn't include dots (\renewcommand{\cftdot}{or whatever this value is}), meaning ...
Andrew15_5's user avatar
1 vote
1 answer
93 views

How to remove numbering from one single entry in list of figures

I have multiple figures, and I have one specific figure for which I would like to remove the numbering in the \listoffigures, let us call it fig_x I have found on other threads that using the caption ...
Mehdi RH's user avatar
  • 115
1 vote
1 answer
86 views

How to organize a list of figures and tables corresponding to each section?

I need to organize both my list of figures and tables to adhere to two reports attached together, corresponding to each title of the reports, as it has to be one pdf file. I have seen hardly any ...
Fish4November's user avatar
0 votes
1 answer
54 views

Patch no longer finding search pattern for hyperref command despite previously working, unsure how to update it

Some time ago I used user Werner's solution provided here: https://tex.stackexchange.com/a/582389 in one of my own documents. Specifically, the goal was to make the part number and the part title in ...
tex_user_'s user avatar
0 votes
0 answers
21 views

A litle problem with the format of LOF and LOT

The attached images show the part of the style problem that I want to correct: 1) Get the dotted lines of TOC, LOF and LOT to have the same density (you can see that in TOC I got a denser line). 2) ...
Jesús Álvarez Lobo's user avatar
1 vote
1 answer
53 views

How to Add a Dotfill for a TOC Chapter When There were None Earlier

Consider the code \documentclass{book} \usepackage{tocloft} \let\cleardoublepage\clearpage % Clears all blank pages \renewcommand\cftchapafterpnum{\vspace*{5pt}} % Space after each Chapter in the ...
mlchristians's user avatar
  • 7,724
0 votes
1 answer
28 views

Using \string in place of underscores satisfies the pgffor's foreach but not the tocloft's addcontentsline

%! lualatex --shell-escape \documentclass[a4paper,openany,oneside,]{extbook} \usepackage{fontspec} % for lualatex is used \usepackage{pgffor} \usepackage{minted} \usepackage[]{tocloft} \begin{...
Lars Malmsteen's user avatar
1 vote
2 answers
110 views

tocloft parts are misaligned with the chapters

I'm trying to put the ToC on the cover page using tocloft: However, the parts are misaligned with the chapter titles. How to make the part titles align with the chapter titles ? Note: Sorry, the 2 ...
Lars Malmsteen's user avatar
0 votes
2 answers
50 views

tocloft's part font color clashes with hyperref's linkcolor

% tocloft's part font color clashes with hyperref's linkcolor \documentclass[a4paper,14pt]{book} \usepackage[]{tocloft} \usepackage{xcolor} % I'd like to change the tocloft's cftpartfont color ...
Lars Malmsteen's user avatar
4 votes
1 answer
148 views

Numbering and captioning pgfplots/tikzpicture

Problem Description I have a specific way I would like to caption my graphs created with \begin{tikzpicture}. More specifically I want to give them a numbering system, like that of figures and tables, ...
Aaron Rhodes's user avatar
0 votes
1 answer
176 views

List of Tables not showing chapter name in table of contents

Overleaf link for the project I am using \listoftables to generate list of table in Table of Contents, the table number in the content is showing along with Chapter number (e.g. Table 1.1 Table title)...
Shubham Kumar's user avatar
1 vote
1 answer
61 views

Horizontal align of section* in table of contents

I want the section* to be aligned with all the other entries in the table of contents. I guess that tocloft is the package I need to achieve that, but at the moment I couldn't understand what is the ...
tush's user avatar
  • 1,083
0 votes
1 answer
52 views

Links in ToC missing targets by a few pages

I have a very long article class document (~300p). The links in the ToC often miss the targets in the document by a few pages. The problem goes away when I shorten the document so I can't make a ...
hodop smith's user avatar

1
2 3 4 5
14