![Novato: Cómo colocar 3 imágenes en 1 diapositiva con 2 arriba y una debajo](https://rvso.com/image/370328/Novato%3A%20C%C3%B3mo%20colocar%203%20im%C3%A1genes%20en%201%20diapositiva%20con%202%20arriba%20y%20una%20debajo.png)
Tengo este pequeño ejemplo,
\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}
Y estoy tratando de alinear estas imágenes para tener 2 imágenes en mi fila superior, luego la tercera imagen y la siguiente línea y centradas entre las 2 imágenes superiores.
Pero cada vez que intento formatear, empeora cada vez más.
Respuesta1
Puedes hacer uso de columnas:
\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}
Respuesta2
Algunos comentarios y observaciones:
- En un
beamer
documento,figure
lostable
entornos no flotan. - De hecho, en un
beamer
documento, tiene poco sentido emplear entornosfigure
ytable
, aparte de, digamos, contenedores para entornossubfigure
ysubtable
, supongo. Ah, y simplemente coloque el material del título en el argumento de\frametitle
. - Si realmente quieres ajustar los tres gráficosyel
itemize
entorno en un solo cuadro, es casi seguro que tendrás que colocar los tres gráficos uno al lado del otro, en lugar de dos en la primera fila y el tercero en la segunda fila. - En el código que proporcionó, las opciones de ancho y escala de las
\includegraphics
directivas entran en conflicto entre sí. Utilice sólo la opción, pero no ambas.
\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}