Using the columns environment in beamer one can easily align two images side by side in frame, so that both images take up the whole side they are assigned.
The following minimal working example shows how to do this:
% How to align two images side by side in beamer \documentclass{beamer} % Theme choice \usetheme{CambridgeUS} \begin{document} \begin{frame}{Side by side images in Beamer}{Bottom vertical alignment} % start the columns environment and set the % positioning of the content inside the columns at % the top with the T specifier \begin{columns}[c] % create the column with the first image, that occupies % half of the slide \begin{column}{.5\textwidth} \begin{figure} \centering \includegraphics[width=0.8\textwidth]{Block-Diagram.png} \caption{Block diagram of a 1st order system.} \end{figure} \end{column} % create the column with the second image, that also % occupies half of the slide \begin{column}{.5\textwidth} \begin{figure} \centering \includegraphics[width=0.9\textwidth]{Step-Response.png} \caption{Step response of a 1st order system.} \end{figure} \end{column} \end{columns} \end{frame} \end{document}
Compiling this code yields:
Comments:
- The above code has a column environment and inside it two columns with the same width (0.5\textwidth).
- Inside the first column, we included the figure “Block-Diagram.png” with a width equals to 80% of the column text width.
- Inside the first column, we included the figure “Step-Response.png” with a width equals to 80% of the column text width.
- Content of both columns is vertically centered aligned by adding the option [c] to columns environment.
By changing the option [c] to [b], we get content bottom vertically aligned. Here is the output:
To get top alignment, we add the option [T] to columns environment and here is what we get:
Fore more details, I invite you to check this lesson: “Create and customize columns in Beamer“. If you liked this tutorial, please share it!