图表列表的缩进

图表列表的缩进

我正在 overleaf 中处理回忆录文档类。我一直遇到的问题是在表格和图表列表中。我需要在 LOF 和 LOT 中的数字前添加前缀“Figure”和“Table”。我使用以下几行来执行此操作:

{%

\let\oldnumberline\numberline%
\renewcommand{\numberline}{\figurename~\oldnumberline}%
\listoffigures%

}

我面临的问题是,我的某些图形有长标题,添加前缀后,第二行标题似乎没有在 LOF 中对齐,如图所示: 在此处输入图片描述

我尝试添加以下命令来调整该问题:

{%

\usepackage{tocloft}%
\cftsetindents{table}{0em}{4em}%
\renewcommand\cfttabpresnum{Table }%

}

但我收到以下错误信息:

```命令 \cfttabpresnum 未定义````

任何帮助,将不胜感激。

答案1

您只需要使用\renewcommand*{\cftfigurename}{Figure\space}添加单词“Figure”即可。

要在 LoT 中添加 Table 一词,请使用 \renewcommand*{\cfttablename}{Table\space}

b

\documentclass[12pt,a4paper]{memoir}

\renewcommand*{\cftfigurename}{Figure\space} %<<<<<<<<<<<<<<<<<<<<

\renewcommand*{\cfttablename}{Table\space} %<<<<<<<<<<<<<<<<<<<<
    
\begin{document}
    
    \listoffigures  
    
    \listoftables
            
    \chapter{ONE}
    
    \begin{figure}[hb!]
        \caption{As any dedicated reader can clearly see, the Ideal of
            practical reason is a representation of, as far as I know, the things
            in themselves; as I have shown elsewhere, the phenomena should only be
            used as a canon for our understanding.}
    \end{figure}


    \begin{table}[hb!]
        \caption{As any dedicated reader can clearly see, the Ideal of
        practical reason is a representation of, as far as I know, the things
        in themselves; as I have shown elsewhere, the phenomena should only be
        used as a canon for our understanding.}
    
    \end{table}
    
\end{document}

相关内容