Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

What is the best way to add four images on a beamer frame? I am using

\documentclass[slidestop,compress,11pt,xcolor=dvipsnames]{beamer}
\usefonttheme[onlymath]{serif}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usepackage[bars]{beamerthemetree} % Beamer theme v 2.2
\usepackage{multicol}
\usepackage{lmodern}
\usepackage{lipsum}
%\usepackage{graphicx}
\usepackage{marvosym}

\begin{document}
\begin{frame}
\begin{frame}
\begin{columns}
\begin{column}{.49\textwidth}
\centering
\begin{figure}[H]
\includegraphics[width=5cm,height=3.5cm]{lab1}
\end{figure}
\hspace{0.7cm}
\centering
\begin{figure}[H]
\includegraphics[width=5cm,height=4cm]{lab2}
\end{figure}
\end{column}%
\hfill%
\begin{column}{.49\textwidth}
\includegraphics[width=5cm,height=4cm]{lab3}\\
\includegraphics[width=5cm,height=4cm]{lab4}
\end{column}%
\end{columns}
\end{frame}
\end{frame}

\end{document}

The result is not the best...

Any possible ideas will be welcomed!

share|improve this question
1  
Why do you use figure? In your case I'd use a simple two column tabular with \includegraphics in each cell. –  Ignasi Oct 1 '12 at 16:03
1  
Related : tex.stackexchange.com/questions/73626/… –  percusse Oct 1 '12 at 16:05
add comment

1 Answer 1

up vote 6 down vote accepted

You don't really need the figure environment since you are not providing captions (beamer, in any case, deactivates the floating mechanism); so you can simply say:

\PassOptionsToPackage{demo}{graphicx}
\documentclass[slidestop,compress,11pt,xcolor=dvipsnames]{beamer}
\usefonttheme[onlymath]{serif}
\definecolor{LHCblue}{RGB}{4, 114, 255}
\usecolortheme[named=LHCblue]{structure}
\usepackage[bars]{beamerthemetree} % Beamer theme v 2.2
\usepackage{multicol}
\usepackage{lmodern}
\usepackage{lipsum}
\usepackage{marvosym}

\begin{document}

\begin{frame}
\begin{columns}[t]
\column{.5\textwidth}
\centering
\includegraphics[width=5cm,height=3.5cm]{lab1}\\
\includegraphics[width=5cm,height=4cm]{lab2}
\column{.5\textwidth}
\centering
\includegraphics[width=5cm,height=4cm]{lab3}\\
\includegraphics[width=5cm,height=4cm]{lab4}
\end{columns}
\end{frame}

\end{document}

enter image description here

Of course, you might need to adjust the width and or height of your images.

The line

\PassOptionsToPackage{demo}{graphicx}

was only included to replace actual figures with black rectangles; delete that line from your actual code.

On a side note, the slidestop class option is obsolete, so you should load the class using the t option instead:

\documentclass[t,compress,11pt,xcolor=dvipsnames]{beamer}
share|improve this answer
    
Thank you very much for your answer! I like the simplicity of your solution!Nice!!! I played with the dimensions...I used width=\columnwidth. The thing is that the spacing between column is too much...In adition is there a way to space the images horizontally? I tried with \hspace{} but it isn't quite working... –  Thanos Oct 2 '12 at 5:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.