![如何修剪 \listoffigures 中的图形标题](https://linux22.com/image/405391/%E5%A6%82%E4%BD%95%E4%BF%AE%E5%89%AA%20%5Clistoffigures%20%E4%B8%AD%E7%9A%84%E5%9B%BE%E5%BD%A2%E6%A0%87%E9%A2%98.png)
我想修剪图题以显示部分标题,比如说第一句话。同时,我不想从文档本身的实际标题中剪掉。我需要图的完整说明,但不在图列表中。如何实现?
这是脚本示例:
\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}