表格列表和图表列表中的标题与小节编号重叠

表格列表和图表列表中的标题与小节编号重叠

我需要显示表格和图片的编号,直到小节,使编号有四位数字(例如表 1.2.3.4)。当我创建表格列表或图片列表时,标题的标题与编号的最后一位数字重叠。

参见图片:

重叠描述

我只找到了在条目之间添加垂直空间的方法,但没有找到在条目内添加水平空间的方法。任何想法都会受到赞赏,特别是如果它不会改变目录的间距。

平均能量损失

\documentclass[11pt, a4paper, oneside]{report}

\usepackage{chngcntr} % to be able to change the numbering "depth"
    \counterwithin{figure}{subsection} % make figures show subsection number
    \counterwithin{table}{subsection} % make tables show subsection number

\begin{document}

\listoftables
\newpage


\chapter{chap1}
\section{sec1.1}
\subsection{subsec1.1.1}

\begin{table}[!htb]
\centering
\caption{caption.}
\begin{tabular}{lll}
\hline
Hola & Hello & Hallo \\ 
Adéu & Bye   & Tchüs \\ \hline
\end{tabular}
\end{table}

\begin{table}[!htb]
\centering
\caption{caption.}
\begin{tabular}{lll}
\hline
Hola & Hello & Hallo \\ 
Adéu & Bye   & Tchüs \\ \hline
\end{tabular}
\end{table}

\begin{table}[!htb]
\centering
\caption{caption.}
\begin{tabular}{lll}
\hline
Hola & Hello & Hallo \\ 
Adéu & Bye   & Tchüs \\ \hline
\end{tabular}
\end{table}


\end{document}

答案1

按照下面的方法使用该tocloft包。

% lotnumprob.tex  SE 554603
\documentclass[11pt, a4paper, oneside]{report}

\usepackage{tocloft}
\setlength{\cfttabnumwidth}{3.5em}
\setlength{\cftfignumwidth}{3.5em}

\usepackage{chngcntr} % to be able to change the numbering "depth"
    \counterwithin{figure}{subsection} % make figures show subsection number
    \counterwithin{table}{subsection} % make tables show subsection number

\begin{document}

\listoftables
\newpage


\chapter{chap1}
\section{sec1.1}
\subsection{subsec1.1.1}

\begin{table}[!htb]
\centering
\caption{caption.}
\begin{tabular}{lll}
\hline
Hola & Hello & Hallo \\ 
Adéu & Bye   & Tchüs \\ \hline
\end{tabular}
\end{table}

\begin{table}[!htb]
\centering
\caption{caption.}
\begin{tabular}{lll}
\hline
Hola & Hello & Hallo \\ 
Adéu & Bye   & Tchüs \\ \hline
\end{tabular}
\end{table}

\begin{table}[!htb]
\centering
\caption{caption.}
\begin{tabular}{lll}
\hline
Hola & Hello & Hallo \\ 
Adéu & Bye   & Tchüs \\ \hline
\end{tabular}
\end{table}

\end{document}

更改3.5em以适合您的设计。

相关内容