How to place a quote exactly under the figure when there is a break?

2 answers

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]

, , .

+3

bib, , stackengine \cite{}:

\usepackage{stackengine}

% ....

\begin{figure}[h]
\centering
\stackunder[5pt]{\includegraphics[width=10cm]{unnamed.png}}{\cite{hawking_thermodynamics_1983}}%
\caption{Example figure}\label{fig1}
\end{figure}

enter image description here

0

Source: https://habr.com/ru/post/1691321/


All Articles