Skip to content

Instantly share code, notes, and snippets.

@m-note
Last active February 28, 2016 01:02
Show Gist options
  • Save m-note/b319d0f643d28233d152 to your computer and use it in GitHub Desktop.
Save m-note/b319d0f643d28233d152 to your computer and use it in GitHub Desktop.
% 横に並べる
% cf. http://tex.stackexchange.com/questions/232259/adding-captions-to-aligned-images-in-beamer
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{columns}[onlytextwidth]
\begin{column}{.45\textwidth}
\begin{figure}
\includegraphics[width=\textwidth]{example-image-a}
\caption{First image}
\end{figure}
\end{column}
\hfill
\begin{column}{.45\textwidth}
\begin{figure}
\includegraphics[width=\textwidth]{example-image-b}
\caption{Second image}
\end{figure}
\end{column}
\end{columns}
\end{frame}
\end{document}
\documentclass{beamer}
\usepackage{graphicx}
\begin{document}
\begin{frame}[plain]
\makebox[\linewidth]{% 横に2枚並べる
\includegraphics[width=0.5\paperwidth,height=\paperheight]{cat1}%
\includegraphics[width=0.5\paperwidth,height=\paperheight]{cat2}}
\end{frame}
\begin{frame}[plain]
\makebox[\linewidth]{% 縦に2枚並べる
\includegraphics[width=\paperwidth,height=0.5\paperheight]{cat1}}\\\nointerlineskip
\makebox[\linewidth]{%
\includegraphics[width=\paperwidth,height=0.5\paperheight]{cat2}
}
\end{frame}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment