如何修剪\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[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}

相關內容