1

I need to divide a frame into two columns and in each column i put two image taht one above the other.

\documentclass[compress,red]{beamer}
\usepackage{etex}
\mode<presentation>
\usetheme{Warsaw}
\usepackage[applemac]{inputenc}%les accents pour mac
\usepackage{caption}
\captionsetup{font=small}
\captionsetup{labelformat=empty}
\usepackage{subfigure}
 \usepackage{amsmath}
 \usepackage{graphicx}
\usepackage{array,ragged2e}
\usepackage{setspace}
\usepackage{multirow} 
  \begin{document}
   \section{section1 }
   \frame[shrink]{\frametitle{Titre de la fenetre}
   \begin{columns}
  \column{1.5in}
   \begin{figure}[!h]
   \centering
  \fbox{
   \mbox{\subfigure[Scénario 1]{\includegraphics[width=3cm]      {listefigures/scenario1.png}}\\
     \subfigure[Scénario 2]{\includegraphics[width=3cm]{listefigures/sc10.png}}}}
     \caption{Image 1} 
    \end{figure}
    \column{1.5in}
     \begin{figure}[!h]
    \centering
       \fbox{
     \mbox{\subfigure[Scénario 1]{\includegraphics[width=3cm]{listefigures/scenario2.png}}\\
     \subfigure[Scénario 2]{\includegraphics[width=3cm]{listefigures/sc11.png}}}}
      \caption{Image 2} 
       \end{figure}
        \end{columns}
               }


         \end{document}
10

1 Answer 1

3

In this approach, subcaption package (which provides subfigure envrionment too) is used; instead of subfigure package. Please note that some packages have been disable to prevent crash.

Edit:

  1. To remove the label (a) and (b), use \captionsetup[subfigure]{labelformat=empty} from caption package.
  2. To remove the subcaption wording, simply delete the subcaption.
  3. To increase the vertical space between two images, use \vskip xxpt.

enter image description here

\documentclass[compress,red]{beamer}
\usepackage{etex}
\mode<presentation>
\usetheme{Warsaw}
%\usepackage[applemac]{inputenc}  %les accents pour mac. for xelatex, pdflatex is used here
\usepackage{caption}
\captionsetup{font=small}
\captionsetup{labelformat=empty}
\usepackage[list=true]{subcaption}
%\usepackage[demo]{graphicx}  % beamer already load this
\usepackage{multicol}
  \usepackage{animate}
%  \usepackage{movie 15}
 \usepackage{amsmath}
 \usepackage{epsfig}
\usepackage[all,knot]{xy}
\xyoption{arc}
\usepackage{url}
\usepackage{array,ragged2e}
\usepackage{multimedia}
\usepackage{hyperref}
\usepackage{setspace}
\usepackage{multirow} 

\begin{document}
   \section{section1}
   \begin{frame}[shrink]
   \frametitle{Titre de la fenetre}
\begin{columns}
  \column{2in}
\begin{figure}
\centering
 \subcaptionbox{subcaption}{\includegraphics[width=0.4\textwidth]{example-image-a}}\\
 \subcaptionbox{subcaption}{\includegraphics[width=0.4\textwidth]{example-image-b}}
 \caption{Image 1} 
\end{figure}
  \column{2in}
\begin{figure}
\centering
 \subcaptionbox{Scénario 1}{\includegraphics[width=0.4\textwidth]{example-image-a}}\\
 \subcaptionbox{Scénario 2}{\includegraphics[width=0.4\textwidth]{example-image-b}}
 \caption{Image 2}
\end{figure}
 \end{columns}
 \end{frame}
\end{document}
11
  • I use subfigure and it works very well but I delete \fbox Nov 17, 2013 at 6:57
  • please How can I make a vertical rule between two image in this case Nov 17, 2013 at 7:00
  • I find it \vrule{} Nov 17, 2013 at 7:05
  • Use \vskip 5pt. But the tolerance is limited because of the frame height. It is possible that too large dimension for skip will make them horizontally aligned.
    – Jesse
    Nov 17, 2013 at 7:06
  • I get en error with \vskip 5pt Nov 17, 2013 at 7:08

You must log in to answer this question.

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