# 10 ways to customize toc/lof/lot

I put together this list of 10 ways to customize the Table of Contents, List of Figures and List of Tables. Some of them are pretty common, some may be new to you. Hope you enjoy the list…

Some pieces of code below require the tocloft package which provides extensive customization functionality for table of contents, list of figures and list of tables. It will be indicated wherever the tocloft or any other package needs to be loaded in the preamble.

Note: I will use the abbreviations toc for table-of-contents, lof for list-of-figures and lot for list-of-tables in the article below.

Change the heading can be done without loading any specific package. Obviously, the name has to be changed before creating the list.

\renewcommand\contentsname{}
\tableofcontents
\renewcommand\listfigurename{}
\listoffigures
\renewcommand\listtablename{}
\listoftables

2. Add “Page” above page numbers

Several people asked me how to place the word “Page” on top of the page numbers in toc/lof/lot. Here is how you do it:

\tableofcontents
\chapter{...}

"Page" above page numbers

It works the same way with lof and lot. The code was taken from here.

3. Change depth of entries

You can change the depth, i.e. how many levels shall be printed using the respective counter:

\setcounter{tocdepth}{1}
\tableofcontents

0: chapter (not available for \documentclass{article),
1: section,
2: subsection, etc.
The default depth is 3, subsubsection.
Similarly, including subfigures and subtables can be achieved using:

\setcounter{lofdepth}{2}
\setcounter{lotdepth}{2}

4. Roman page numbers for toc/lof/lot

To get a different page number style for toc/lof/lot, use:

\pagenumbering{}

and change it back to arabic before the first chapter starts.

Available styles are arabic, roman, Roman, alph and Alph.

Complete code example:

...
\pagenumbering{roman}
\tableofcontents
\listoffigures
\listoftables
\clearpage
\pagenumbering{arabic}
\chapter{...}
...

Loading the hyperref package will let you navigate from toc/lof/lot entries directly to the respective content:

\usepackage{hyperref}

If you only want the page number to be clickable, you’ll need to load the package with the following option:

\usepackage[linktocpage=true]{hyperref}

6. Adding the lists to toc

Adding entries to toc/lof/lot can be done manually with a single command. Usually, to be sure the page number is correct, it’s advisable to add entries directly before or after the actual content to list. And here is how:

\addcontentsline{}{}{}

The file line(s) shall be added (toc, lof or lot), the type of the entry (chapter, figure, etc.) and the entry text itself.

To add the three lists to the toc use:

\tableofcontents
\listoffigures
\listoftables
\addcontentsline{toc}{chapter}{List of Tables}

7. Changing the font of entries

To change the way the actual entries look, you can make use of a command provided by the tocloft package. The command will affect the number as well as the text. However, it will not change the page number and the separator (if there are any). The nice thing here is that since it’s placed just in front of the sequence number, you can also use it to add words such as “Chapter 1: Biology … Here are a few examples for illustration:

\usepackage{tocloft}
\renewcommand{\cftchapfont}{\scshape}
\renewcommand{\cftsecfont}{\bfseries}
\renewcommand{\cftfigfont}{Figure }
\renewcommand{\cfttabfont}{Table }

Try it and make sure you don’t forget the space behind Figure_ and Table_, otherwise it will be glued to the number.

8. Creating you own list of …

Again, the tocloft package has to be loaded. First, define a new list environment as well as the item which are later being listed. In this case, we are defining lemmas, but it could also be proofs, equations, a special list of figures, footnotes, anything. The last line of the lemma command defines how lemmas should be numbered, here “chapter.lemma”.

\usepackage{tocloft}
...
\newcommand{\listlemmaname}{List of Lemmas}
\newlistof{lemma}{lem}{\listlemmaname}
\newcommand{\lemma}[1]{%
\refstepcounter{lemma}
\par\noindent\textbf{Lemma \thelemma. #1}
{\protect\numberline{\thechapter.\thelemma}#1}\par
}
...
\listoflemma
...
\lemma{My first lemma}
\label{lem:lemma1}

You can find a complete code example here.

9. Alternative text in toc/lof/lot for headings and captions

In case your caption is too long for the lof/lot, you can give it an alternative text. Similarly, the headings can be given an alternative name in the toc:

\caption[]{}
\chapter[]{}

10. Chapter specific tocs with minitoc

Finally, minitoc produces beautiful tocs at the beginning of every chapter (or any other heading) and therefore, I will dedicate this 10th and last entry to that package:

\usepackage{minitoc}
...
\dominitoc
\tableofcontents
...
\chapter{...}
\minitoc

A minitoc example

Here is an earlier post I wrote about the package as well as the complete documentation.

Wow, that’s the longest post I ever wrote. Hope you’ve enjoyed my list, have fun customizing :-).

#### 69 responses to “10 ways to customize toc/lof/lot”

• ofer

Thanks, you have been very helpful to me!

• Jo

Do you have an idea how can customize the font size etc. of the list headings? I’ve been googling this for quite some time now without finding a solution…

• tom

Hi Jo,

Try the tocloft package. Here is an example, even though an ugly one:

\usepackage{tocloft}
\renewcommand{\cftsecfont}{\Large\itshape}
\renewcommand{\cftsecpagefont}{\Large\itshape}

You can find the documentation here.

Tom.

• David

Concerning the solution for adding “Page” above the page numbers, it doesn’t work if you have a section (an abstract, for example) that appears before your toc that is numberless but included in your toc by way of:

\section*{\centering ABSTRACT}
\addcontentsline{toc}{section}{Abstract}

What happens is it shows up in your toc above the word “Page” because we are tricking LaTeX into doing what we want, but really it thinks that “Page” is a section. I know there’s probably another work around for my scenario, but I thought I might bring it up. Hopefully there is a cleaner solution for formatting the toc in this way.

By the way, I used an article document class, in case that matters.

• tom

Hi David,

Best, Tom.

• Anthony

Hi Tom, thanks for all your answer … this is the only thing I need and the only question you didn’t really answered to
Do you have any clue on how to do it?
Thanks

• tom

You are right, I never answered that question. The solution would be to move the command that adds the word “Page” further up so that it appears before “Abstract”. Here is the code:

\documentclass[11pt]{article}
\usepackage{blindtext}
\begin{document}
\section*{\centering Abstract}
\blindtext
\tableofcontents
\section{A first section}
\blindtext
\section{A second section}
\blindtext
\end{document}
• hugoleo75

Dear tom, I need some help. In Brazil, in the list of tables we use the word “tabela” before the number and the title of the table. That is I need to customize the way the list of table appears. Normally, Latex just show, for example:

List of Table

1.1 Fisrt example of table
1.2 Second table on the first chapter

******

I need to show exactly as shown in caption:

List of table

Table 1.1 Fisrt example of table
Table 1.2 Second table on the first chapter

Thanks,

Hugo Ribeiro

• tom

Hello Hugo,

To change the title, you can either load the babel package with the option portuguese or set the name manually to anything you like:

\usepackage[portuguese]{babel}
%\renewcommand\listtablename{Lista de Tabelas}

To add the word tabela before the number, use the tocloft package as shown below:

\usepackage{tocloft}
\renewcommand{\cfttabfont}{Tabela }

Hope that helps. Let me know if you have any other question.

Cheers, Tom.

• hugoleo75

Hi Tom,

that was exactly what I was looking for:

\renewcommand{\cfttabfont}{Tabela }

And then I did for the figure “lof”:

\renewcommand{\cftfigfont}{Figura }

They did work as I wanted.

Thanks a lot.
Hugo

• tom

Great! Happy to help. Best, Tom.

• Naeem

Hi Tom,

Thanks a lot for your post, its really informative.

I have a quick question. While finalising my thesis, I came across a problem of representing a range of pages for a single entry in table of contents. For instance, If I want to use a page range 1~10 for “Preliminary Pages”. I couldn’t get any useful help from the blogs.

Best,
Naeem

PS: I am using LaTeX report for my thesis.

• tom

Hi Naeem,

Try the following code. Everything you need to add to your document is highlighted. It adds the line manually and suppresses the standard chapter entry.

Hope it works!

Best, Tom.

\documentclass[11pt]{report}
\usepackage{blindtext}
\usepackage{tocloft, nameref}
\makeatletter\renewcommand{\@pnumwidth}{3em}\makeatother
\newcommand{\nocontentsline}[3]{}
\begin{document}
\tableofcontents
\notoc\chapter{Preliminary Pages}\label{beforeprelimpages}\egroup
\protect\parbox{1em}{\thechapter} \nameref{beforeprelimpages}}%
{\thepage\ -- \pageref{afterprelimpages}}
\Blindtext
\label{afterprelimpages}
\chapter{First Test Chapter}
\section{Test Section}
\chapter{Second Test Chapter}
\Blindtext
\end{document}
• Krishna

Hi Tom,
I have been searching for a quick tip how to use a “tab” space in table of contents (between the content names). To be more precise, for instance, i have a section 1, subsection1 and a subsubsection (1, 1.1, 1.1.1). How can I get all of them displayed (at the moment I cannot see subsubsection in the TOC!!) in TOC by having an offset infront of them (like stairs)..as in your 2nd tip (add “page” above number). Thanks for your help in advance.
BR
Krishna

• tom

Hi Krishna,

The indentation you see in my example is the normal behavior of TOC. The example below shows how to change the depth of what is included in the TOC.

Hope it helps,
Tom.

\documentclass{article}
\usepackage{tocloft}
\setcounter{tocdepth}{3}%including subsubsection
\begin{document}
\tableofcontents
\section{Section Example}
\subsection{Subsection Example}
\subsubsection{Subsubsection Example}
\end{document}
• Krishna

Hi Tom,
thanks for your quick reply. Today one of my clleague was help me to get TOC as i wanted. But the way you showed in your example is very simple. I will use it tomorrow in my document :).. Thanks once again.

• tom

Happy to help. Cheers, Tom.

• Krishna

Hi Tom,

set counter was set to 2 in my document and now i changed it to 3 as you suggested. it worked. But what I meant for offset is “horizontal space” between contents.. and another point is, in my case somehow toc indentation was not default (as you mentioned).. donno why.. but following code solved my problem..just wanted to share.. thanks anyway

here it is,

\makeatletter
\def\l@subsection{\@tocline{2}{2pt}{2pc}{}{}}
\def\l@subsubsection{\@tocline{2}{2pt}{3pc}{}{}}
\makeatother

I used 2pt to define the “vertical space b/w the contents”..it is only working for sub and subsub sections..not for sections..anytip to get vertical space b/w sections in toc ?

BR
Krishna

• tom

Hi Krishna,

I tried to run your code, but tocline was not defined. What package or documentclass do you use? Please give a minimal working example that I can copy-paste and then typeset.

Just by just looking at your code, what you can try is to add one more line for section, identical to the definitions for subsection and subsubsection you already have.

\def\l@section{\@tocline{2}{2pt}{2pc}{}{}}

Cheers, Tom.

• rozita

hi
I am going to submit final edit of my thesis. Just 1 problem i am having, plz if possible help me. I have list of figures, tables, algorithms and Abbreviations. I made successfully the list of each one those. But in table of contents i am having only the list of Tables and Figures. I am not able to show in Table of contents , the page which is included the list of Algorithms as well as page for the list of Abbreviations.
please tell me how should be do it?
i tried with both 8. Creating you own list of … commands but i could make properly my requirements . plz help me.
the other problem is sorting references by alphabet, if possible give me some help for this also.

• tom

Hi Rozita,

You can manually add these lists to the table of contents. Use the following code right before producing the actual list to get the page number right.

\addcontentsline{toc}{chapter}{Algorithms}

It seems you defined you own list of algorithms. I wrote a post on that topic, which has more details concerning how to add it to the table of contents.

In order to help you with your second question, I would need a little more details. What package do you use, biblatex, natbib, …? Please provide a minimal working example.

Best, Tom.

• tabassum

hi Tom,
i have inserted a table as a figure. i changed the name by
\renewcommand{\figurename}{table}
but how can i now change the table of content and list of figures.

• tom

I guess you want to remove the table from list of figures and add it to list of tables.

First, suppressing a figure from appearing in the list of figures is done using the caption package and a starred caption:

\usepackage{caption}
...
\begin{figure}
...
\caption*{Figure caption}
\end{figure}

Now you can manually add the table to the list of tables:

\addcontentsline{lot}{table}{\protect\numberline{\thetable}Some caption text.}\par

You may also have to manually increase the table counter.

HTH, Tom.

• Alain Raymond

Hey Tom, I’ve created some custom lists and I’m able to display them with no issues. The problem is, however, that I need them to be 2-level lists. The first level would be the chapters and the second would be the elements of my list. So instead of having something of this sort:

Lemma1……..9
Lemma2……..10

It should be like this:

Chapter1…………………………………..9
Lemma1………………………………..9
Chapter2………………………………….10
Lemma2……………………………….10

Have you any idea of how I could accomplish that? Thanks in advance!

• tom

Hi Alain,

I did not test this, but something along the lines of the code below should do the trick.

\let\oldchapter=\chapter
\renewcommand{\chapter}[1]{%
\oldchapter{#1}
}

It’s not a clean approach, this will not use the optional argument nor the starred version of chapter.

I remember there is a better way though. I forgot the name and couldn’t find it just now, but if I remember correctly, there is a package which allows you to extend existing commands by adding code before or after. Maybe you have more luck finding it…

• Deming

Hey Tom, i am now preparing my PhD thesis, i have several problems, I use book class.

1. I use “algorithm2e” generate my “List of Algorithms”, and “thmtools” generate “List of Theorems”, question is how to add “Page” above page numbers for them

2. As what you did in 8, for “List of Algorithms” and “List of Theorems”, how can we add ‘Algorithms’ and ‘Theorems’ in front of the sequence number, respectively.

Deming

• Deming

I have solved all these problems, but have a new one, that in “List of Theorems” using “themtools” package, the space between different chapters is not the same as the space in “List of Tables”. To make it clearly, take the space between the last one of Chapter1 and the first one of Chapter2 for example, it is very closed. Any idea to change this kind of space/

• tom

Great! Would you mind posting your solution here?

I figured out your first question, but the second seems more tricky.

\addtocontents{loe}{~\hfill\textbf{Page}\par}
\addtocontents{loa}{~\hfill\textbf{Page}\par}

Could it be that the difference in space has something to do with the fix of your previous problem? I created a minimal working example (see below) and the spacing seems to be the same.

\documentclass[11pt]{report}
\usepackage{amsthm, thmtools}
\declaretheorem{theorem}

\begin{document}
\listoffigures
\listoftheorems

\clearpage

\chapter{First}
\begin{figure}[ht]
\centering
\rule{4cm}{3cm}
\caption{dummy 1}
\end{figure}
\begin{theorem}[dummy 1]empty\end{theorem}

\chapter{Second}
\begin{figure}[ht]
\centering
\rule{4cm}{3cm}
\caption{dummy 2}
\end{figure}
\begin{theorem}[dummy 2]empty\end{theorem}
\end{document}

Cheers, Tom.

• sodeju

Is there a way to increase the column offset of the section in the table of contents? The toc now looks like:

5.20Topic Title

Without a space between the number and the title.

• Ding Yuan

Hi Tom,

Thanks for your post. But I cannot find what I need.
I used the following command to generate list of figures and tables.

\tableofcontents
\listoffigures
\listoftables

However I found that the figure and table captions extend beyond the A4 page space. Is there anyway to strictly control the long captions, say like a paragraph with margins and indentations? Multiple line is acceptable for me.

Cheers

• tom

Hi!

I would need to see a minimal working example showing that captions reach into the list-of-figure margins. In the simple example below, line-breaks are correctly added to long captions. In case you are using the hyperref package, see here for more information on how to fix the problem.

\documentclass[11pt]{article}
\usepackage{blindtext}
\begin{document}
\listoffigures
\section{Figure}
\begin{figure}[ht]
\centering
\rule{4cm}{3cm}
\caption{\blindtext}
\label{fig:default}
\end{figure}
\end{document}
• Mauro

Hello Tom, I have a question and I hope you can help me. So the thing is that I add a list of acronyms using the nomencl package. Later I add it manually to the table of contents as your example says. However the problem is that when I modify my Acronym list (Nomenclature) in order to have it in 2 columns, then it doesn’t appear correctly in the toc (i.e. instead of having page number “ix” it appears after my chapter 1 with page number 1).

\tableofcontents
\listoffigures
\listoftables
\printnomenclature


And where I have defined the Acronyms:

% Nomenclature
\usepackage{nomencl}
\makenomenclature
\usepackage{multicol}
\renewcommand*\nompreamble{\begin{multicols}{2}}
\renewcommand*\nompostamble{\end{multicols}}
\renewcommand{\nomname}{Acronyms}


Is it clear what my problem is? Thank you Tom. Best regards!

• Mauro

This is exactly what I get as an output

Contents…………………………………iv
List of Figures……………………….. vii
List of Tables………………………… viii
1 Introduction…………………………. 1
1.1 Motivation…………………………. 1
1.2 Objectives…………………………. 1
1.3 Methodology ………………………1

Acronyms……………………………….. 1

While in the actual documents the Acronyms sections is in page ix

• tom

Hi Mauro,

I tried to reproduce your issue with the code you provided. Try adding \clearpage before you change the page-numbering to arabic (in case that’s how you do it). See the minimal example below:

\documentclass[11pt]{report}

% Nomenclature
\usepackage{nomencl}
\renewcommand{\nomname}{Acronyms}
\makenomenclature

\begin{document}
\pagenumbering{roman}
\tableofcontents
\listoffigures
\listoftables
\printnomenclature
\clearpage

\pagenumbering{arabic}
\chapter{Introduction}
\section{Motivation}

\end{document}
• Mauro

Ok Tom, it seems to work like that. But only if I add the \clearpage after the \listoftables and before the nomenclature. Thanks a lot!

\tableofcontents
\listoffigures
\listoftables \clearpage
\printnomenclature


best regards!

Hi Tom,
I have a simple question though I couldn’t find an answer through google and all the tex forums. I am writing an article and am using a list of figures, as the figures page numbers will change upon publication (hopefully) I need to remove the page numbering. Up to here there is no problem if I use the tocloft package. The problem arises because I am also using the subcaption package and the two packages seem to conflict. More precisely, when I use the tocloft package the subcaptions (captions for subfigures) don’t appear in the list. I would appreciate your help in either removing the page numbering without tocloft or in having the subcaptions appear with tocloft.
many thanks

• raouf

thx for this post very helpful

• Ganesh Sharma

Dear Tom,
How we can put the page numbering in TOC like

kindly help me.
Thank you in anticipation.

• Barbara

Hi Tom,
A new standard for the Table of Contents has been set in my University in which the titles must be aligned. For example:

CONTENTS
1 INTRODUCTION

2 OTHER CHAPTER NAME
2.1 SECTION
2.1.1 Subsection
2.1.1.1 Subsubsection

REFERENCES

I don’t know where to put these spaces to set this weird configuration!
Do you have anything in mind?

• tom

Hi Barbara,

Use the tocloft package to set these values as follows:

\documentclass[11pt]{report}
\usepackage{tocloft}

% Remove indent
\setlength\cftsecindent{0pt}
\setlength\cftsubsecindent{0pt}
\setlength\cftsubsubsecindent{0pt}

% increase numwidth
\setlength\cftchapnumwidth{3em}
\setlength\cftsecnumwidth{3em}
\setlength\cftsubsecnumwidth{3em}
\setlength\cftsubsubsecnumwidth{3em}

\begin{document}
\tableofcontents
\chapter{Chapter}
\section{Section}
\section{Subsection}
\subsection{Subsubsection}
\end{document}
• Barbara

Hi Tom,
Thanks for the answer! I think the spaces I tryed to show in the comment are missing but you were able to get the idea! That’s what I was looking for! I’ll test this tocloft package!
Thanks again! And best regards!

• tom

Hi Barbara,
Unfortunately, the formatting doesn’t work that well in comments unless you use HTML tags. But I saw the spaces you added which helped :-).

• Markus Bremer

Hello,
I implemented your example for program code,
but it does not INDENT the entries from the left. All my other entries in lot and lof ARE indented…what can I do? I figured it may have to do with chapter/section in \thechapter? Tried to put \indent almost everywhere and deleted \noindent in the example but it didnt work! Please help

• tom

Hi Markus,

I assume you were trying the code for “new list of…”. There was an error in my code which is fixed now. The indentation of entries can be changed the same way as for chapters/sections in table of contents, using tocloft. Assuming the code from above:

\setlength\cftlemmanumwidth{3.5em}

HTH, Tom.

Hi Tom, really I fell very sad, I can not debug the problem, I have to customize the TOC but I can not, when I use the command \renewcommand{\cfttoctitlefont}{\hfill\normalsize\bfseries} i face error but when i used it with a new class document it works properly

• tom

Hard to say without seeing more of your code. My guess would be that one of the packages you load creates a conflict with tocloft. Do you load subfigure in your document? Try:

\usepackage{subfigure}
\usepackage[subfigure]{tocloft}

Otherwise, I recommend to start from your “new class document” and add one package at the time to find which causes the error.

• Nick

Hi Tom,

Thank you for these blog posts, they are awesome. That said, I’ve been trying to get the tocloft package to play nice in order to implement one of the solutions proposed in the comments- to customize the lof as such:
1 Figure 1
2 Figure 2

to
Figure 1. Figure 1
Figure 2. Figure 2
(and same for table)
but either some class or package is interfering with. Are there any way to manually customize the lof?

These are my packages:

\usepackage{array}
%\usepackage{tocloft}
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{floatrow}
\usepackage{hyperref}
• tom

Hi Nick,

I don’t see a problem with these packages, but I would have to see the entire code. See below for an example. Cheers, Tom.

\documentclass[11pt]{article}

\usepackage{array}
\usepackage{tocloft}
\usepackage{epsfig}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{floatrow}
\usepackage{hyperref}

\renewcommand{\cftfigpresnum}{Figure }
\setlength{\cftfignumwidth}{50pt}
\renewcommand{\cfttabpresnum}{Table }
\setlength{\cfttabnumwidth}{50pt}

\begin{document}

\tableofcontents
\listoffigures

\section{Some section name}
\begin{figure}[ht]\centering\rule{\textwidth}{0.5\textwidth}\caption{Some caption text}\label{fig:some}\end{figure}

\end{document}
• Travis

Hello Tom,

I’m having a spacing issue with the Table of Contents in my thesis that I can’t find a solution to elsewhere. Specifically, I want to have a single blank space between each chapter. There is no problem if the chapter has sections, but some chapters don’t have sections and in this case I’m getting two spaces between the chapter headings. As an example, the ToC might look like:

1 INTRODUCTION

1.1 Subsection 1
1.2 Subsection 2

2 BACKGROUND

3 MAIN BODY

3.1 Subsection 1
3.2 Subsection 2

4 CONCLUSION

(I would like for there to be a single space between Chapters 2 and 3.)
I apologize for not including a minimal working example – the class file was written by someone else years ago and I don’t know what’s essential. I could be wrong, but I believe the problem occurs in the following string:

\renewcommand{\@makechapterhead}[1]{%
\vspace*{1.0in}%
{\doublespace \parindent \z@ \centering \normalsize
\ifnum \c@secnumdepth > \m@ne
\bfseries \@chapapp{} \thechapter \par
\fi
\interlinepenalty\@M
\bfseries\uppercase{#1}\par\nobreak
\vskip \li
}}

• tom

Hi Travis,

I wasn’t able to run the code using report. The code adds doublespace (setspace package) for TOC chapter entries plus some space before a new chapter which makes it look like two spaces for chapters without sections/subsections. I found this similar question (and answer) on tex.SX which you might find helpful.

HTH, Tom

• Travis

Tom,

I was able to work it out (following the link you provided) by inserting the following on line 7 of the code I sent previously:

\ifnum \value{chapter}=2 \addtocontents{toc}{\protect\addvspace{-12pt}} \fi

It’s a little ad hoc, but any port in a storm. Thank you so much for your prompt reply, for pointing me in the right direction, and for your patience with my ignorance.

-Travis

• tom

Hi Travis,

Glad you found a solution that works. Thanks for posting it here!
Btw. I wrote a short article last night, using some of the ideas I came across while looking for answers to your question :-). Glad you asked, thanks!

Cheers, Tom

• Carrie

Tom, I have been searching for a simple solution to a what I think is a common problem. For my thesis, the only numbering allowed on TOC is roman numerals for Chapter levels only. However, I needed to manage the indentions since roman numerals after VI overlap with the chapter heading. I was able to do this simply using:

\usepackage{tocloft}
\setlength{\cftchapnumwidth}{0.8cm}

However, now every “addcontentsline” I used for other chapters have shortened dot fill space and dont actually reach the page number in the TOC.

\cleardoublepage
\listoftables

\newpage
\makeatletter

\tableofcontents
\newpage

Do you have any idea why the \dotfill is affected by the tocloft change or what I can do to fix it?

Thanks

• tom

Hi Carrie,

You can automatically add LOF and LOT to the table of contents using the tocbibind package. If you do it manually, I suggest to rename the titles (like you do for TOC) and then use the name-macro in the document.

\renewcommand{\contentsname}{TABLE OF CONTENTS}
\renewcommand{\listtablename}{LIST OF TABLES}
\renewcommand{\listfigurename}{LIST OF FIGURES}
...
\listoftables\clearpage
\listoffigures\clearpage

See this post for more details.

If you like to have dots between the title and the page number for chapters in TOC, use:

\usepackage{tocloft}
\renewcommand{\cftchapdotsep}{\cftdotsep}

In general, I recommend to make all global changes in the preamble.

Let me know if you have further questions.

HTH, Tom