70

I am new to Beamer and LaTeX itself.

Right now, I want to create a simple slide with an image on the right and text and the sidebar (using the Hannover theme) on the left. I cannot figure out how to do that.

Any suggestions?

2 Answers 2

75

Use the columns environment to divide the slide into two columns. Then use \includegraphics to insert your image:

\documentclass{beamer}
\usetheme{Hannover}
\begin{document}
\begin{frame}
\frametitle{A frame}
  \begin{columns}[T]
    \begin{column}{.5\textwidth}
     \begin{block}{Your textblock}
% Your text here
    \end{block}
    \end{column}
    \begin{column}{.5\textwidth}
    \begin{block}{Your image}
% Your image included here
    \includegraphics[<options, e.g. width=\textwidth>]{<your image file>}
    \end{block}
    \end{column}
  \end{columns}
\end{frame}
\end{document} 
3
  • I haven't tried it, did you forget to use graphicx.sty? Commented Jan 22, 2011 at 15:11
  • 3
    @xport No, beamer loads graphicx.
    – Alan Munn
    Commented Jan 22, 2011 at 15:15
  • 4
    Just a general node: the block environments add a nice block, but are not technically required. I often go without them, but this is of course just a matter of style. Commented Jul 5, 2011 at 7:25
12

With minipage

You can also do this using a minipage:

animation of the items and the image appearing

Here's the corresponding LaTeX code where the image appears at the same time¹ as the third text item:

\documentclass{beamer}

% No "Figure:" prefix for image captions
\usepackage{caption}
\captionsetup[figure]{labelformat=empty}

% Define appearance of the slides
\usetheme{Rochester}
\usecolortheme{spruce}

\definecolor{ming}{HTML}{417E8C}

% Some themes don't include the slide number
\setbeamerfont{page number in head/foot}{size=\small}
\setbeamercolor{page number in head/foot}{fg=ming}
\setbeamertemplate{footline}[frame number]

\setbeamercolor{itemize item}{fg=ming}
\setbeamertemplate{itemize item}[circle]

% No navigation symbols at the slides' bottom
\beamertemplatenavigationsymbolsempty

% Insert a pause after every item.
% Show an item immediately by adding <.->
\beamerdefaultoverlayspecification{<+->}

\begin{document}
\frame{
  \frametitle{A test with images}
  \framesubtitle{The image appears with the third item}
  \begin{minipage}{0.5\textwidth}
    \begin{itemize}
      \item don't show the image yet
      \item wait for it...
      \item show the image now
      \item keep showing the image
      \item keep showing the image still
    \end{itemize}
  \end{minipage} \hfill
  \begin{minipage}{0.45\textwidth}
    % Show the image at item three and afterwards
    \uncover<3->{
      \begin{figure}
        % From https://i.imgur.com/AyzVOIO.jpg
        \includegraphics[height=0.9\textwidth]{asimo}
        \caption{here's the image!}
      \end{figure}
    }
  \end{minipage}
}
\end{document}

It's \uncover that allows to show elements when we reach a certain item in the presentation.


¹ Synchronizing the appearance of the image with an item is something I couldn't figure out using columns.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .