答案1
这是一个解决方案(通过添加命令\renewcommand{\@tocrmarg}{4.2em}
:):
\documentclass[a4paper,12pt]{article}
\usepackage{array,caption}
\usepackage{tocloft}
\usepackage[left=3cm, top=3cm, right=2.5cm, bottom=2.5cm]{geometry}
\renewcommand{\listtablename}{\hfill\bfseries\normalsize List of Tables\hfill\vspace{24pt}}
\renewcommand{\cfttabdotsep}{0.25}
\newlength\mylength
\cftsetindents{table}{0cm}{0.9cm}
\renewcommand\cfttabpresnum{\tablename~}
\settowidth\mylength{\cfttabpresnum}
\addtolength\cfttabnumwidth{\mylength}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{etoolbox}
\makeatletter
\renewcommand{\@tocrmarg}{4.2em}% -> Here!!!
\renewcommand{\@pnumwidth}{4.2em}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{sloppypar}
\listoftables
\end{sloppypar}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\vspace{-2cm}
{\noindent
$
\begin{array}{llr}
\hspace{-0.2cm}\textbf{Table No}& \hspace{-0.2cm}\textbf{Table Title} & \hspace{9cm}\textbf{Page No}
\end{array}
$}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\begin{table}[h]
\caption{Mean SSIM results for 20 traditional images with different SPN ratios ranging from bla bla bla}
xxx
\end{table}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
答案2
我猜想以下 MWE 就足够了。
\documentclass[a4paper,12pt]{article}
\usepackage{array,caption}
\usepackage{tocloft}
\usepackage[left=3cm, top=3cm, right=2.5cm, bottom=2.5cm]{geometry}
\renewcommand{\listtablename}{\hfill\bfseries\normalsize List of Tables\hfill\vspace{24pt}}
\renewcommand{\cfttabdotsep}{0.25}
\newlength\mylength
\cftsetindents{table}{0cm}{0.9cm}
\renewcommand\cfttabpresnum{\tablename~}
\settowidth\mylength{\cfttabpresnum}
\addtolength\cfttabnumwidth{\mylength}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatletter
\renewcommand{\@pnumwidth}{4.2em}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\listoftables
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\vspace{-2cm}
{\noindent
$
\begin{array}{llr}
\hspace{-0.2cm}\textbf{Table No}& \hspace{-0.2cm}\textbf{Table Title} & \hspace{9cm}\textbf{Page No}
\end{array}
$}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\begin{table}[h]
\caption{Mean SSIM results for 20 traditional images with different SPN ratios ranging from bla bla bla}
xxx
\end{table}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
对于上面的例子,YAP 如下: