# spacing between chapters in list of tables

tocloft seems to automatically add extra space between table entries from different chapters. I want a single space between all the entries in the list of tables. Right now I have one space between entries from the same chapter and two spaces between those from different chapters. Here's a MWE of what I have.

\documentclass[11pt, letterpaper]{thesis}

\usepackage[lmargin=1.5in, rmargin=1.0in, tmargin=2.0in, bmargin=1.0in]{geometry}

\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\arabic{section}}
\renewcommand{\thetable}{\arabic{chapter}.\arabic{table}}

\usepackage{tocloft}

\usepackage{titlesec}
\usepackage{caption}
\usepackage{ctable}
\usepackage{tabularx}

\begin{document}

% List of Tables

\renewcommand{\cftlottitlefont}{\normalfont}
\renewcommand\listtablename{\centerline{TABLES}}
\renewcommand{\cfttabaftersnum}{.}
\setlength{\cfttabindent}{0pt}
\setlength\cftbeforechapskip{0pt}
\setlength\cftbeforetabskip{11pt}

\listoftables

% End List of Tables

\chapter{Chapter One}

\begin{table}[htbp]
\centering
\begin{tabular}{lll}
\toprule
& Col 1 & Col 2 \\
\midrule
Row 1 & 11 & 12 \\
Row 2 & 21 & 22 \\
\bottomrule
\end{tabular}
\caption{This is table 1.1.}
\end{table}

\begin{table}[htbp]
\centering
\begin{tabular}{lll}
\toprule
& Col 1 & Col 2 \\
\midrule
Row 1 & 11 & 12 \\
Row 2 & 21 & 22 \\
\bottomrule
\end{tabular}
\caption{This is table 1.2.}
\end{table}

\chapter{Chapter Two}

\begin{table}[htbp]
\centering
\begin{tabular}{lll}
\toprule
& Col 1 & Col 2 \\
\midrule
Row 1 & 11 & 12 \\
Row 2 & 21 & 22 \\
\bottomrule
\end{tabular}
\caption{This is table 2.1.}
\end{table}

\begin{table}[htbp]
\centering
\begin{tabular}{lll}
\toprule
& Col 1 & Col 2 \\
\midrule
Row 1 & 11 & 12 \\
Row 2 & 21 & 22 \\
\bottomrule
\end{tabular}
\caption{This is table 2.2.}
\end{table}

\end{document}


I use \setlength\cftbeforechapskip{0pt}, but this seems to have no effect. I did find this: How to change the line spacing in my list of figures? and tried some of the suggestions but none seemed to work for me. Any ideas?

• That space is not produced by tocloft but by the class used; can we see the definition of \@chapter of your document class? – Gonzalo Medina Aug 29 '12 at 16:52

That space is not produced by tocloft but by the class used, usually in the definition of \@chapter (at least in the standard classes); one possible solution would be to redefine this command to suppress the additional spacing; the code below shows this redefinition for the standard class book (the lines adding space to the LoF and LoT were commented out and marked with %NEW):

\documentclass[11pt, letterpaper]{book}

\usepackage[lmargin=1.5in, rmargin=1.0in, tmargin=2.0in, bmargin=1.0in]{geometry}

\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\arabic{section}}
\renewcommand{\thetable}{\arabic{chapter}.\arabic{table}}

\usepackage{tocloft}

\usepackage{titlesec}
\usepackage{caption}
\usepackage{ctable}
\usepackage{tabularx}

\makeatletter
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
{\protect\numberline{\thechapter}#1}%
\else
\fi
\else
\fi
\chaptermark{#1}%
\if@twocolumn
\else
\fi}
\makeatother

\begin{document}

% List of Tables

\renewcommand{\cftlottitlefont}{\normalfont}
\renewcommand\listtablename{\centerline{TABLES}}
\renewcommand{\cfttabaftersnum}{.}
\setlength{\cfttabindent}{0pt}
\setlength\cftbeforechapskip{0pt}
\setlength\cftbeforetabskip{11pt}

\listoftables

% End List of Tables

\chapter{Chapter One}

\begin{table}[htbp]
\centering
\begin{tabular}{lll}
\toprule
& Col 1 & Col 2 \\
\midrule
Row 1 & 11 & 12 \\
Row 2 & 21 & 22 \\
\bottomrule
\end{tabular}
\caption{This is table 1.1.}
\end{table}

\begin{table}[htbp]
\centering
\begin{tabular}{lll}
\toprule
& Col 1 & Col 2 \\
\midrule
Row 1 & 11 & 12 \\
Row 2 & 21 & 22 \\
\bottomrule
\end{tabular}
\caption{This is table 1.2.}
\end{table}

\chapter{Chapter Two}

\begin{table}[htbp]
\centering
\begin{tabular}{lll}
\toprule
& Col 1 & Col 2 \\
\midrule
Row 1 & 11 & 12 \\
Row 2 & 21 & 22 \\
\bottomrule
\end{tabular}
\caption{This is table 2.1.}
\end{table}

\begin{table}[htbp]
\centering
\begin{tabular}{lll}
\toprule
& Col 1 & Col 2 \\
\midrule
Row 1 & 11 & 12 \\
Row 2 & 21 & 22 \\
\bottomrule
\end{tabular}
\caption{This is table 2.2.}
\end{table}

\end{document}


Since you are usinga non-standard class, the above silution might not be appropriate for you; in that case, we will need to see how your class is adding this space.

• Thanks, this works. I went into the thesis.cls file and used that code for chapter definition in place of the code you had. I just commented out the lines that had to do with lof and lot, just as you did for the book document class. – COM Aug 29 '12 at 17:37
• @COM it's not the best practice to directly edit a .cls file; instead, you can copy in your .tex file the relevant part of the code inside \makeatletter, \makeatother as I did in my example code and permorm the changes there. – Gonzalo Medina Aug 29 '12 at 17:50
• @ Gonzalo Medina, I actually did copy the code out of the .cls file and used \makeatletter and \makeatother. Sorry for not making that clear in my comment. – COM Aug 29 '12 at 18:04
{"ft_lang_label":"__label__en","ft_lang_prob":0.60638154,"math_prob":0.76035994,"size":2220,"snap":"2020-10-2020-16","text_gpt3_token_len":772,"char_repetition_ratio":0.13853791,"word_repetition_ratio":0.38327527,"special_character_ratio":0.30045044,"punctuation_ratio":0.08516484,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9753947,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-23T21:13:09Z\",\"WARC-Record-ID\":\"<urn:uuid:30aebe57-75df-48a0-91a6-c00deaa877b6>\",\"Content-Length\":\"150072\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f5e0ae7a-3dae-40aa-b347-4214dc5d8de5>\",\"WARC-Concurrent-To\":\"<urn:uuid:70f07e59-8213-456e-85db-9c0b1e902d95>\",\"WARC-IP-Address\":\"151.101.1.69\",\"WARC-Target-URI\":\"https://tex.stackexchange.com/questions/69321/spacing-between-chapters-in-list-of-tables\",\"WARC-Payload-Digest\":\"sha1:ZY3QVMJBOXLKKLUBG34QA72WYE4BZ6KM\",\"WARC-Block-Digest\":\"sha1:LQGX47GVTMIYW4N2CJK24JIQ3UZ4LTRD\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875145839.51_warc_CC-MAIN-20200223185153-20200223215153-00534.warc.gz\"}"}