
很抱歉,如果這個問題之前沒有得到解答,但我無法遵循論壇中先前提出的類似問題中可能的解決方案。我對 LaTex 很陌生。目前,我正在使用特定的模板撰寫論文。使用該模板,我得到以下圖形列表頁面:
雖然我想要這樣的東西:
我目前正在使用:
\documentclass[a4paper,12pt,openright,notitlepage,twoside]{book}
\usepackage{tocloft} % it serves to make lists of the most beautiful figures and tables
\renewcommand{\cftfigfont}{Figure } % to add "Figures" in the list of figures
% List of Figures
\phantomsection
\listoffigures
\addcontentsline{toc}{chapter}{\listfigurename}
\cleardoublepage
請讓我知道如何解決長句子案例清單條目中的這個問題。
答案1
請再次閱讀tocloft
文件。
% lofprob.tex SE 561254
\documentclass{book}
\usepackage{tocloft}
%\renewcommand{\cftfigfont}{Figure }
\renewcommand{\cftfigpresnum}{Figure } % put Figure before number
\setlength{\cftfignumwidth}{5em} % need more space for Figure + number
\begin{document}
\listoffigures
\chapter{A chapter}
\begin{figure}
\centering
A FIGURE
\caption{Regular caption}
\end{figure}
\begin{figure}
\centering
ANOTHER FIGURE
\caption{A caption that will take more than one line in the List of Figures}
\end{figure}
\end{document}
用於\cftfigpresnum
在數字之前放置一些內容並增加\cftfignumwidth
以允許修改數字所需的增加空間。