Footcites in captions #14

Open
schocco opened this Issue Mar 1, 2012 · 1 comment

Projects

None yet

1 participant

@schocco
Owner

using the footcite command within the caption environment can cause strange results.
this seems to be a common issue and a workaround should be documented

@schocco
Owner

One possible workaround is to use the commands \footnotemark and \footnotetext.
\foonotetext would then need the according string, that \footcite usually creates as a param.
However, footnotes may still appear on different pages than the figure. Using float-barriers for the figure positioning might help.
Biblatex provides a command \footcitetext which works with footnotetext internally. Hence one can reference within captions like that:

\begin{figure}[H]
\begin{center}
    \fbox{
    \includegraphics[width=\textwidth]{img/placeholder1.jpg}
    }
    \captionof{figure}[LOF entry]{Caption text\footnotemark}
    \label{fig:placeholder}
\end{center}
\end{figure}
\footcitetext[Cf.][123]{reference_key}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment