如何修剪 \listoffigures 中的图形标题

如何修剪 \listoffigures 中的图形标题

我想修剪图题以显示部分标题,比如说第一句话。同时,我不想从文档本身的实际标题中剪掉。我需要图的完整说明,但不在图列表中。如何实现?

这是脚本示例:

\documentclass{book}

\begin{document}

\tableofcontents
\listoffigures

\chapter{(Chapter Name)}

\section{Real Analysis}
\begin{figure}
\caption{A very long figure caption here. I need to display part of it because this very long caption does not look right in the list of figures. Nevertheless, I need this full description in the caption. I just do not want all of it to appear in the listoffigures}
\end{figure}
\section{Role of LUB Axiom}

\结束{文档}

这就是图表中出现的内容。 在此处输入图片描述

答案1

caption 命令有一个可选条目,显示在图形/表格/等的列表中:\caption[Short title for lof]{Long title for document} 您的文档将如下所示:

\documentclass{book}

\begin{document}

\tableofcontents
\listoffigures

\chapter{(Chapter Name)}

\section{Real Analysis}
\begin{figure}
\caption[A short caption for the lof]{A very long figure caption here. I need to display part of it because this very long caption does not look right in the list of figures. Nevertheless, I need this full description in the caption. I just do not want all of it to appear in the listoffigures}
\end{figure}
\section{Role of LUB Axiom}

\end{document}

相关内容