I'd like to put some footnotes in a caption of a subcaption
paragraph. However, as you can see the footnode appears in the caption itself, and not at the bottom of the page.
Any solution?
Thanks!
MWE
\documentclass{article}
\usepackage{graphicx}
% To display subfigures
\usepackage{caption}
\usepackage{subcaption}
\begin{document}
\begin{figure}[h!]
\centering
\begin{subfigure}[t]{.47\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image-a}
\caption{My caption with a footnote\footnote{Yes I like footnotes ! But this one is not a true foot note, because it's not at the bottom of the page...}}
\label{fig:myfiga}
\end{subfigure}\hspace*{.05\textwidth}%
\begin{subfigure}[t]{.47\textwidth}
\centering
\includegraphics[width=\linewidth]{example-image-b}
\caption{Other caption}
\label{fig:myfigb}
\end{subfigure}
\caption{My big caption}
\label{fig:myfig}
\end{figure}
\end{document}
Best Answer
You can use a
\footnotemark
and\footnotetext
pair:Or, if you prefer a more automatic solution (requires LaTeX 2020-10-01, at least), you can redefine
\footnote
in thefigure
environment, so that it does\footnotemark
, and store the\footnotetext
in a hook to be executed after thefigure
environment, then you can just use\footnote
insidefigure
: