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

1

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.

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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.