为了符合所需的格式,我需要删除图表列表中数字和标题之间的空格。
我已经找到了 tocloft 包并且感觉它可以做我想做的事情,但是改变 \cftXaftersnumb 似乎会移动整个标题列表,我需要单独调整每一行。
\documentclass{report}
\usepackage{tocloft}
\usepackage{booktabs}
%%% Add Table XX: to list of tables
\renewcommand\cfttabpresnum{Table }
\renewcommand{\cfttabaftersnum}{:}
\renewcommand{\cfttabaftersnumb}{\hspace{-.5em}} % move caption to end of 100:
\setlength{\cfttabindent}{0pt} % remove indentation from tables in lot
%%% Handle extra space in tof
\newlength{\mylenb} % a "scratch" length
\settowidth{\mylenb}{\cfttabpresnum\cfttabaftersnum} % extra space
\addtolength{\cfttabnumwidth}{\mylenb} % add the extra space
\begin{document}
\listoftables
\begin{table}[!ht]
\centering
\begin{tabular}{lllll }
\toprule \footnotesize
One& Two & Three & Four & Five \\
\midrule
2.35& 45.87 & 9.00 & 1.00 &0.33 \\
\bottomrule
\end{tabular}
\caption{Another Table.}
\label{tab:exp1}
\end{table}
\setcounter{table}{99} % blow up counter to triple digits
\begin{table}[!ht]
\centering
\begin{tabular}{ lllll}
\toprule \footnotesize
One& Two & Three & Four & Five \\
\midrule
2.35& 45.87 & 9.00 & 1.00 &0.33 \\
\bottomrule
\end{tabular}
\caption{Another Table.}
\label{tab:exp2}
\end{table}
\end{document}
任何帮助都将不胜感激。谢谢!