You can include [source: <cite>]
as part of your figure
:
\begingroup
\figure[h]
\centering
\includegraphics[width=10cm]{example.png}
\caption{Example figure}\label{fig1}
[source: @hawking_thermodynamics_1983]
\endfigure
\endgroup
The above model imitates the same grouping proposed \begin{figure}[h]
... \end{figure}
without explicitly using the environment figure
; the Rmarkdown process skips and assumes that everything in LaTeX (for example figure
) will only contain LaTeX code, so it does not recognize the markup syntax [source: @<cite>]
, but instead complains that it <cite>
contains an underscore that can only be used in math mode.
, , float
YAML
header-includes:
- <other packages>
- \usepackage{float}
float [H]
, , H
ere:
\begin{figure}[H]
\centering
\includegraphics[width=10cm]{example.png}
\caption{Example figure}\label{fig1}
\end{figure}
[source: @hawking_thermodynamics_1983]
, , .