1

In writing a presentation using beamer, and I would like to add "source information" to my graphs (under the picture). I've implemented the great solution I found here: How to write a source description under the loaded picture and it works fine for me on a article document class.

But I cannot make it work on a beamer document. It inserts the figure caption above and below the figure.

My code is:

\begin{frame}
  \frametitle{Total Variance Decomposition of Grades}
  \begin{figure}[H]
  \centering
  \caption{Vriance decomposition}
  \includegraphics[scale=0.25]{var_dec_eiop_explicada_FG2018}
  \caption*{Source of the image.}
  \end{figure}
\end{frame}

The output is:

sample_graph

epR8GaYuh
  • 2,432

2 Answers2

4

One way is use of copyrightbox:

\documentclass{beamer}
\setbeamertemplate{caption}[numbered] % if you like to have numbered figures
%
\usepackage{copyrightbox}
\makeatletter
\renewcommand{\CRB@setcopyrightfont}%
    {\tiny\color{gray}}
\makeatother

\begin{document}
\begin{frame}
  \frametitle{Total Variance Decomposition of Grades}
  \begin{figure}
  \caption{Variance decomposition}
  \copyrightbox[b]{\includegraphics[width=0.8\linewidth]{example-image-duck}}%
                  {Source of the image.}
  \end{figure}
\end{frame}
\end{document}

enter image description here

Note: figure environment in beamer doesn't float, so it is not need any positioning option. It also is always centered, so \centering is not needed.

Zarko
  • 296,517
0

Without the \caption* command you can use something like the following:

enter image description here

\documentclass{beamer}

\begin{document}

\begin{frame}
  \frametitle{Total Variance Decomposition of Grades}
  \begin{figure}[H]
  \centering
  \caption{Vriance decomposition}
  \includegraphics[scale=0.25]{example-image}

  {\small Source of the image.}
  \end{figure}
\end{frame}

\end{document}
leandriis
  • 62,593