
この質問が以前に回答されていない場合は申し訳ありませんが、フォーラムで以前に尋ねられた同様の質問の可能な解決策に従うことができません。私は 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
変更された数字に必要なスペースの増加を考慮して増加します。