格式化圖形清單 - tocloft 包不起作用

格式化圖形清單 - tocloft 包不起作用

這就是我所擁有的:

在此輸入影像描述

我想要什麼:(數字和標題之間的連字號)

在此輸入影像描述

我從下面的這兩個問題中找到了 tocloft 包,但它對我不起作用。我使用的是自訂類別(不是我創建的),因此很難確切地說哪個參數導致了一些不相容。

如何更改圖表清單的格式?

圖片列表 - 如何新增標題標籤

知道如何解決這個問題,最好不使用 tocloft 包嗎?

讓我知道需要哪些詳細資訊。

答案1

您還沒有顯示任何代碼。你使用什麼類別?您使用什麼軟體包?您所顯示的不是常規的 LaTeX 輸出。你嘗試了什麼tocloft

以下是基於article類別和tocloft套件的 MWE,為您提供所需的 LoF。

% tocloftprob.tex  SE 562533
\documentclass{article}
\usepackage{tocloft}

% change LoF title and position
\renewcommand{\listfigurename}{LIST DE ILUSTRACOES}
\renewcommand{\cftloftitlefont}{\hfill\Large\bfseries}
\renewcommand{\cftafterloftitle}{\hfill}
% change appearance of figure number
\renewcommand{\cftfigpresnum}{Figura } % put this before the number
\renewcommand{\cftfigaftersnum}{ ---} % put this after number
\setlength{\cftfignumwidth}{5.2em} % need more space for changed number represenation

\begin{document}

\listoffigures

\clearpage

\begin{figure}
\centering
AN ILLUSTRATION
\caption{A figure}
\end{figure}

\end{document}

也許上面的一些內容是無關緊要的,因為您似乎已經設法(我不知道如何)更改 LoF 的標題及其位置。

相關內容