図のキャプションをトリミングして、キャプションの一部、たとえば最初の文を表示したいのですが、同時に、ドキュメント自体の実際のキャプションを切り取りたくありません。図の完全な説明が必要ですが、図のリストには含まれていません。どうすればこれを実現できますか?
これはスクリプトのサンプルです:
\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}
\end{ドキュメント}
答え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}