我如何为这些图像添加标题?
\begin{frame}{Einführung 2}
\begin{columns}
\column{0.5\textwidth}
\centering
\includegraphics[height=2.5cm]{FiguresAndPictures/AlleAktien-Netflix-Logo.png}\vspace{0.5cm}
\includegraphics[height=4cm]{FiguresAndPictures/Amazon-Logo.jpg}
\column{0.5\textwidth}
\centering
\includegraphics[height=4cm]{FiguresAndPictures/facebook.png}
\end{columns}
\end{frame}
答案1
使用capt-of
包:
\documentclass[demo]{beamer} % in real document remove option "demo"
\setbeamertemplate{caption}[numbered]
\setlength\abovecaptionskip{0ex}
\setlength\belowcaptionskip{1.5ex}
\usepackage{capt-of}
\begin{document}
\begin{frame}{Einführung 2}
\begin{columns}
\column{0.5\textwidth}
\centering
\includegraphics[height=2.5cm]{FiguresAndPictures/AlleAktien-Netflix-Logo.png}
\captionof{figure}{A}
\includegraphics[height=4cm]{FiguresAndPictures/Amazon-Logo.jpg}
\captionof{figure}{B}
\column{0.5\textwidth}
\centering
\includegraphics[height=4cm]{FiguresAndPictures/facebook.png}
\captionof{figure}{C}
\end{columns}
\end{frame}
\end{document}
答案2
\documentclass{beamer}
\begin{document}
\begin{frame}[t]
\frametitle{Captions}
\begin{columns}[T]
\begin{column}{0.49\textwidth}
\centering
\begin{figure}
\centering
\includegraphics[width=0.6\linewidth]{example-image-a}
\caption{Figure a.}
\end{figure}
\begin{figure}
\centering
\includegraphics[width=0.6\linewidth]{example-image-b}
\caption{Figure b.}
\end{figure}
\end{column}
\begin{column}{0.49\textwidth}
\centering
\begin{figure}
\centering
\includegraphics[width=0.6\linewidth]{example-image-c}
\caption{Figure c.}
\end{figure}
\end{column}
\end{columns}
\end{frame}
\end{document}