在图的 \caption 中使用 \footnote

在图的 \caption 中使用 \footnote

也许这很容易,但是我已经为此挣扎太久了:)

我想要在图表的标题中添加脚注,请参见示例。

\begin{figure}[!ht]
  \caption{a figure caption\footnote{where i got it from}}
  \label{somelabel}
  \begin{center}   
    \pgfuseimage{...}
  \end{center}
\end{figure}

编译错误如下

! Argument of \@caption has an extra }.
<inserted text> 
            \par 
l.192 ...i got it from}}

我的身材的实际 tex 代码与 Leo 的答案

\pgfdeclareimage[width=6cm]{aba.medcenter}{aba.medcenter}

\begin{figure}[!ht]
  \begin{minipage}{\textwidth}
    \caption[Medcenter Monthly Medication System]{Medcenter\textsuperscript\textregistered Monthly Medication System\footnote{Quelle Bild: http://www.amazon.com/dp/B000RZPL0M}}
    \label{aba.medcenter}
    \begin{center}
      \pgfuseimage{aba.medcenter}
    \end{center}
  \end{minipage}
\end{figure}

导致错误

! LaTeX Error: Command \itshape invalid in math mode.

在同一行。如果我注释掉脚注,一切都会编译正常。\textsuperscript\texttrademark也不是问题。

答案1

\documentclass{article}
\usepackage[demo]{graphicx}

\begin{document}

\begin{figure}
  \centering
  \includegraphics{foo}  ...
  \caption[Caption for LOF]{Real caption\footnotemark}
\end{figure}

Anywhere on the same page where the float appears\footnotetext{blah}
but at least before the next footnote\footnote{the nextone}

\end{document}

\caption当使用图形列表时,应始终使用可选参数。否则,您必须\protect使用\footnote

  \caption[Caption without FN]{caption with FN}

一个有用的替代方法是直接在标题下写一个脚注式的评论:

\begin{figure}
  \centering
  \includegraphics{foo}  ...
  \caption[Caption for LOF]{Real caption\textsuperscript{a=}}
  \small\textsuperscript{a=} The footnote-like comment under the caption
\end{figure}

答案2

给出的答案的组合通过赫伯特通过彼得 对我有用,即以下代码:

\documentclass{article}
\usepackage[demo]{graphicx}

\begin{document}

\begin{figure}
   \centering
   \includegraphics{foo}  ...
   \caption[Caption for LOF]{Real caption\protect\footnotemark}
\end{figure}

\footnotetext{blah blah blah}

\end{document}

答案3

一个解决方案:

\begin{figure}
  \begin{minipage}{\textwidth}
    ...
    \caption[Caption for LOF]%
      {Real caption\footnote{blah}}
  \end{minipage}
\end{figure}

请参阅 TeX 常见问题解答:标题中的脚注

答案4

在所有这些答案中,人们都希望脚注位于页面底部。有时,如果脚注出现在表格中,人们希望脚注位于表格底部。我有几种处理方法,但这里是其中一种:

\documentclass[12pt]{article}
\parskip 1em
\usepackage{boxhandler}
\begin{document}

 Here is an example of a table with a footnote:
\bxtable[ht]{Caption goes here}
{\begin{tabular}{l}
%FIRST ROW OF OUTER TABULAR IS THE INNER TABLE
\begin{tabular}{|l|c|c|}
\hline
Title & Column 1 & Column 2\\    \hline
First Test & 1.234 & 5.389$^\dag$\\    \hline
Second Test & 3.894 & 1.586~~\\    \hline
\end{tabular}\\    %SECOND ROW OF THE OUTER TABULAR IS THE FOOTNOTE
\rule{0in}{1.2em}$^\dag$\scriptsize This is the footnote text\\    \end{tabular}
}

If you look at the form as defined in the .tex file, you will see
several things of note.  First, there is a tabular within a tabular.
The outer (first to begin, last to end) tabular uses a single column and
contains two ``rows.''  The first ``row'' is the inner tablular and the
second ``row'' is the footnote Next, we use the \verb,\dag, command for
the footnote symbol, but you can use any symbol you like.  I also added
two hard spaces after the 1.586 so that the column alignment wasn't
messed up by the dagger.  I used the rule command of 0 width and 1.2em
height to set the footnote offset below the table.  Making 1.2 a greater
number will increase the offset and vice versa.  Finally, you will note
that I used {\scriptsize\verb,\scriptsize,} to change the size of the
footnote text.  You could make it {\footnotesize\verb,\footnotesize,} or
even keep it the same size as the table {\small\verb,\small,}.

\end{document}

在此处输入图片描述

相关内容