Novato - Como colocar 3 imagens em 1 slide com 2 em cima e uma embaixo

Novato - Como colocar 3 imagens em 1 slide com 2 em cima e uma embaixo

Eu tenho este pequeno exemplo,

\documentclass{beamer}

\mode<presentation>
{
  \usetheme{Boadilla}     
  \usecolortheme{wolverine}
  \usefonttheme{structurebold}  
  \setbeamertemplate{navigation symbols}{}
  \setbeamertemplate{caption}[numbered]
\setbeamertemplate{itemize items}[ball]
} 

\usepackage{array,amsmath,booktabs}
\usepackage{amsmath}
\usepackage[version=4]{mhchem}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{subcaption}

\begin{document}

\begin{frame}
\begin{figure}[H]
  \centering
  \begin{subfigure}[b]{0.28\linewidth}
    \includegraphics[clip, trim=1 1.75 3 1, width=50mm,scale=0.35]{Image1}
     \caption{Substrate-Enzyme association}
  \end{subfigure}
  \begin{subfigure}[b]{0.28\linewidth}
    \includegraphics[clip, trim=1 1.75 3 1, width=50mm,scale=0.35]{Image2}
    \caption{Complex dissociation}
  \end{subfigure} \\
  \begin{subfigure}[b]{0.3\linewidth}
    \includegraphics[clip, trim=1 1.75 3 1, width=50mm,scale=0.35]{Image3}
    \caption{Product formation}
  \end{subfigure}
  \caption{Prior and posterior after 100, 200 and 300 reactions for reaction in Micahelis-Menten model}
  \label{fig:boat2}
\end{figure}
\begin{itemize}
\item as more reactions take place, posterior becomes narrower 
\end{itemize}
\end{frame}

 \end{document}

E estou tentando alinhar essas imagens para que eu tenha 2 imagens na linha superior, depois a 3ª imagem e a linha seguinte e centralizada entre as 2 imagens superiores.

Mas tudo que tento a formatação fica cada vez pior.

Responder1

Você pode fazer uso de colunas:

\documentclass{beamer}

\mode<presentation>
{
  \usetheme{Boadilla}     
  \usecolortheme{wolverine}
  \usefonttheme{structurebold}  
  \setbeamertemplate{navigation symbols}{}
  \setbeamertemplate{caption}[numbered]
\setbeamertemplate{itemize items}[ball]
} 

\usepackage{array,amsmath,booktabs}
\usepackage{amsmath}
\usepackage[version=4]{mhchem}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{subcaption}

\begin{document}

\begin{frame}\centering
  \begin{columns}
    \begin{column}{0.5\textwidth}
  \begin{figure}
    \includegraphics[clip, trim=1 1.75 3 1, width=30mm,scale=0.3]{Image1}
     \caption*{Substrate-Enzyme association}
  \end{figure}
    \end{column}
    \begin{column}{0.5\textwidth}
  \begin{figure}[b]
    \includegraphics[clip, trim=1 1.75 3 1, width=30mm,scale=0.3]{Image2}
    \caption*{Complex dissociation}
  \end{figure} 
    \end{column}
  \end{columns}
\vspace{-10px}  
  \begin{columns}
    \begin{column}{0.5\textwidth}
    \begin{figure}[b]
      \includegraphics[clip, trim=1 1.75 3 1, width=30mm,scale=0.3]{Image3}
      \caption*{Product formation}
  \end{figure}
    \end{column}
  \end{columns}
\vspace{-20px}  
\begin{columns}
  \begin{column}{\textwidth}
\begin{figure}[H]
  \caption{\centering{}Prior and posterior after 100, 200 and 300 reactions for reaction in Micahelis-Menten model}
  \label{fig:boat2}
\end{figure}
\vspace{-25px}
\begin{itemize}
\item as more reactions take place, posterior becomes narrower 
\end{itemize}
  \end{column}
\end{columns}
\end{frame}

 \end{document}

g

Responder2

Alguns comentários e observações:

  • Em um beamerdocumento figuree tableos ambientes não flutuam.
  • Na verdade, num beamerdocumento, há pouco sentido em empregar ambientes figuree table- além de, digamos, como recipientes para ambientes subfiguree subtable, suponho. Ah, e basta colocar o material da legenda no argumento de \frametitle.
  • Se você realmente deseja ajustar todos os três gráficoseo itemizeambiente em um único quadro, você quase certamente terá que colocar todos os três gráficos lado a lado, em vez de 2 na primeira linha e o terceiro na segunda linha.
  • No código que você forneceu, as opções de largura e escala das \includegraphicsdiretivas estão em conflito entre si. Use apenas a opção, mas não ambas.

insira a descrição da imagem aqui

\documentclass[demo]{beamer} % omit 'demo' option in real document
%% I've taken the liberty of streamling and de-duplicating the preamble.
\mode<presentation>%
{ \usetheme{Boadilla}     
  \usecolortheme{wolverine}
  \usefonttheme{structurebold}  
  \setbeamertemplate{navigation symbols}{}
  \setbeamertemplate{caption}[numbered]
\setbeamertemplate{itemize items}[ball] } 
\usepackage{array,mathtools,booktabs}
\usepackage[version=4]{mhchem}
\usepackage{subcaption}
\begin{document}

\begin{frame}
\frametitle{Prior and posterior after 100, 200 and 300 reactions for reaction in Micahelis-Menten model}
\begin{figure}
\begin{subfigure}[t]{0.3\linewidth}
     \includegraphics[clip, trim=1 1.75 3 1, width=\textwidth]{Image1}
     \caption{Substrate-Enzyme association}
\end{subfigure}\hfill
\begin{subfigure}[t]{0.3\linewidth}
    \includegraphics[clip, trim=1 1.75 3 1, width=\textwidth]{Image2}
    \caption{Complex dissociation}
\end{subfigure}\hfill
\begin{subfigure}[t]{0.3\linewidth}
    \includegraphics[clip, trim=1 1.75 3 1, width=\textwidth]{Image3}
    \caption{Product formation}
\end{subfigure}
\end{figure}

\begin{itemize}
\item As more reactions take place, posterior becomes narrower.
\end{itemize}
\end{frame}
\end{document}

informação relacionada