\caption 功能齐全,但在图表列表中没有显示?

\caption 功能齐全,但在图表列表中没有显示?

使用 tocloft 来列出我的图表列表,我正在寻找一些方法,使我能够选择一些特定的条目(\caption),例如更下面的条目,它不应该进入图表列表,但在内容中仍然以通常的方式进行计数/编号。

\begin{figure}
\centering
\includegraphics[width=1.0\textwidth]{rhythmus.pdf}
\caption[Own grafic.]{Beispielrhythmus: Ta ta tatata, tata tataa ta taa.}
\label{rhythmus}
\end{figure}

我使用图片列表来显示图片的来源,但我有很多自制的图不需要指定来源。我会分别用一句话来说明它们。

我在序言中进行了以下设置,可能会起到一些作用。

\usepackage{tocloft}

\usepackage{etoolbox}
\usepackage{lipsum}

 % This is for using numbering for the sections, chapters, etc. in the content, but not in the table of content.
\makeatletter
\let\oldnumberline\numberline
\patchcmd{\@caption}{\numberline}{\oldnumberline}{}{} %
\renewcommand*{\numberline}[1]{}
\makeatother

然后:

\chapter{List of Figures}
{\makeatletter
%\let\@cftmakeloftitle\relax
\@starttoc{lof}% Print List of Figures
%\listoffigures
\makeatother}
\begingroup\noindent \footnotesize{Abb. 1.1, 1.2 ... here some more.. are made by myself}\endgroup

答案1

正在做

\begin{figure}
\renewcommand{\addcontentsline}[3]{}
\centering
\includegraphics[width=1.0\textwidth]{rhythmus.pdf}
\caption[Own grafic.]{Beispielrhythmus: Ta ta tatata, tata tataa ta taa.}
\label{rhythmus}
\end{figure}

将抵消文件中任何内容的写入.lof。 的效果\renewcommand将在环境结束时消失。当然,\caption在这种情况下, 的可选参数没有任何用处。

相关内容