beamer
provides the columns
environment. Within it, you specify a column
environment with a given width. Together, the following generic structure is used:
\begin{columns}[<options>]
\begin{column}{<width>}
...
\end{column}
...
\begin{column}{<width>}
...
\end{column}
\end{columns}
It is best to specify the above <width>
parameters as factors of \textwidth
. As such, I've passed the option onlytextwidth
to columns
in the example below. Since these environments are inherent to beamer
, it doesn't warrant using something like multicol
. Here's an example of what you might be after - I used \rule{<width>}{<height>}
to denote your graphics:
\documentclass{beamer}
\let\Tiny\tiny% http://tex.stackexchange.com/a/94159/5764
\begin{document}
\begin{frame}
\frametitle{This is a frame title}
\begin{columns}[onlytextwidth]
\begin{column}{0.4\textwidth}
\centering
\rule{100pt}{150pt}% Place your graphic here
\end{column}
\begin{column}{0.2\textwidth}
\centering
\rule{40pt}{150pt}% Place your graphic here
\end{column}
\begin{column}{0.4\textwidth}
Here is some regular text in a column. And there is an equation
\[
f(x)=ax^2+bx+c
\]
Here is some more text.
\end{column}
\end{columns}
\end{frame}
\end{document}
Read the beamer
package documentation (p 127, section 12.7 Splitting a Frame into Multiple Columns) for more information.
For adjusting the vertical alignment of the columns, you can add the t
(for t
op) option to the columns
environment:
\documentclass{beamer}
\let\Tiny\tiny% http://tex.stackexchange.com/a/94159/5764
\usepackage[export]{adjustbox}
\begin{document}
\begin{frame}
\frametitle{This is a frame title}
\begin{columns}[onlytextwidth,t]
\begin{column}{0.4\textwidth}
\centering
\includegraphics[width=40pt,height=150pt,valign=t]{example-image-a}% Place your graphic here
\end{column}
\begin{column}{0.2\textwidth}
\centering
\includegraphics[width=40pt,height=150pt,valign=t]{example-image-b}% Place your graphic here
\end{column}
\begin{column}{0.4\textwidth}
Here is some regular text in a column. And there is an equation
\[
f(x)=ax^2+bx+c
\]
Here is some more text.
\end{column}
\end{columns}
\end{frame}
\end{document}
Note that the inclusion of graphics makes for some unintuitive output in terms of alignment. That's before alignment at the t
op implies the "baseline of the t
op line." And since graphics are placed in a single line, their t
op turns out to be more like their b
ottom. To correct for this, we use adjustbox
's valign=t
option, which is export
to be used as part of graphicsx
's \includegraphics
options.
You have to carefully adjust the dimensions of your image and the number of lines the wrap figure will extend ( for example [10]
in \begin{wrapfigure}[10]{r}{5.5cm}
).
An example:
\documentclass{article}
\usepackage{graphicx,wrapfig,lipsum}
%------------------------------------------
\begin{document}
This is where the table goes with text wrapping around it. You may
embed tabular environment inside wraptable environment and customize as you like.
%------------------------------------------
\begin{wrapfigure}[10]{r}{5.5cm}
\rule{5.5cm}{7.1cm}
\caption{A wrapped figure}\label{wrap-fig:1}
\end{wrapfigure}
%------------------------------------------
This is where the table goes with text wrapping around it. You may
embed tabular environment inside wraptable environment and customize as you like. This is where the table goes with text wrapping around it. You may
embed tabular environment inside wraptable environment and customize as you like. This is where the table goes with text wrapping around it.
%
\begin{figure}[h]
\begin{minipage}{6cm}
\centering
\rule{\textwidth}{3cm}
\caption{my figure}\label{fig:2}
\end{minipage}%
\end{figure}%
\lipsum[2-3]
Figure~\ref{wrap-fig:1} is a wrapped figure.
%------------------------------------------
\end{document}
Best Answer
One more suggestion:
\centering
\hfil
\quad
is not clear, let remove itsubfigure
content is surplus. Rather make sub figure width smaller and adopt figure width to width of subfigureComplete code:
The result is: