Skip to content

Instantly share code, notes, and snippets.

@Shusei-E
Forked from m-note/beamer_twoPic1.tex
Last active November 17, 2018 14:38
Show Gist options
  • Save Shusei-E/8536241e264b976acd6b to your computer and use it in GitHub Desktop.
Save Shusei-E/8536241e264b976acd6b 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}{.49\textwidth}
\begin{figure}
\includegraphics[width= 1.0 \linewidth]{example-image-a}
\caption{First image}
\end{figure}
\end{column}
\hfill
\begin{column}{.49\textwidth}
\begin{figure}
\includegraphics[width= 1.0 \linewidth]{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