![espaçamento entre capítulos na lista de tabelas](https://rvso.com/image/254688/espa%C3%A7amento%20entre%20cap%C3%ADtulos%20na%20lista%20de%20tabelas.png)
tocloft parece adicionar automaticamente espaço extra entre entradas de tabela de capítulos diferentes. Quero um único espaço entre todas as entradas da lista de tabelas. No momento, tenho um espaço entre entradas do mesmo capítulo e dois espaços entre entradas de capítulos diferentes. Aqui está um MWE do que eu tenho.
\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}
\addtocontents{lot}{Table \hfill\ {Page} \par}
\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}
Eu uso \setlength\cftbeforechapskip{0pt}
, mas isso parece não ter efeito. Eu encontrei isso:Como alterar o espaçamento entre linhas na minha lista de figuras?e tentei algumas das sugestões, mas nenhuma pareceu funcionar para mim. Alguma ideia?
Responder1
Esse espaço não é produzido, tocloft
mas pela classe utilizada, geralmente na definição de \@chapter
(pelo menos nas classes padrão); uma solução possível seria redefinir este comando para suprimir o espaçamento adicional; o código abaixo mostra esta redefinição para a classe padrão book
(as linhas que adicionam espaço ao LoF e LoT foram comentadas e marcadas com %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}
\addtocontents{lot}{Table \hfill\ {Page} \par}
\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.}%
\addcontentsline{toc}{chapter}%
{\protect\numberline{\thechapter}#1}%
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
\else
\addcontentsline{toc}{chapter}{#1}%
\fi
\chaptermark{#1}%
% \addtocontents{lof}{\protect\addvspace{10\p@}}% NEW
% \addtocontents{lot}{\protect\addvspace{10\p@}}% NEW
\if@twocolumn
\@topnewpage[\@makechapterhead{#2}]%
\else
\@makechapterhead{#2}%
\@afterheading
\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}
Como você está usando uma classe não padrão, a solução acima pode não ser apropriada para você; nesse caso, precisaremos ver como sua turma está adicionando esse espaço.