Thursday, March 3, 2011

Placing Multiple Figures on a Beamer Slide

Beamer is pretty interesting. Since I prefer Latex for my documents it makes sense to try it. I'm not 100% sold, but it's pretty damn aesthetic. What I don't like, is that it doesn't seem to take the same syntax as the actual Latex document. For instance, multiple figures with individual captions don't seem to work since the subfloat package seems to crash it. The way around is to have syntax like

\begin{figure}
\centering
\includegraphics[width=.45\textwidth]{../figures/Ch_Vortex_Flows/CL_Viscous_Ur}
\includegraphics[width=.45\textwidth]{../figures/Ch_Vortex_Flows/CL_Viscous_Uq}\\
\includegraphics[width=.45\textwidth]{../figures/Ch_Vortex_Flows/CL_Viscous_Uz}
\includegraphics[width=.45\textwidth]{../figures/Ch_Vortex_Flows/CL_Viscous_P}
\caption{The viscous complex-lamellar bidirectional vortex with $\kappa=0.103$ and $z=0.3$.}
\end{figure}

It's pretty compact compared to all the stuff for the subfigures in the draft. As far as I can tell, if you want multiple captions, then you have to put the graphics in individual \begin{figure} blocks but then the vertical spacing won't fit well.

1 comment:

Unknown said...

works ok for me with \usepackage{subfig} in the preamble