[Tugindia] Figure/Text Side by Side how to

Aditya Mahajan adityam at umich.edu
Thu Nov 24 06:23:44 CET 2005


<--- On Nov 23, Sreejith Pulloor wrote --->

> I would like to keep some text/equations and a figure side by side in
> beamer frame. I mean, to divide the frame into half and keep text in
> one and the figure in the other half

Beamer provides a columns environment for things like this. Have a 
look at the user guide.

> \begin{figure}

You do not need figure environment.

> \begin{minipage}[b]{0.5\linewidth} page
> {My Text and Equations goes here}
> \end{minipage}
> \hspace{0.5cm}
> \begin{minipage}[b]{0.5\linewidth}
> \centering
> \includegraphics[width=6cm]{myfig.pdf}
> \caption{En liten bild till}
> \end{minipage}
> \end{figure}
>
> But the figure is always coming below the text/equation which is not
> what i like to have.

This is because there is not enough space to place the minipages is 
one line

You have 0.5\linewidth + 0.5cm + 0.5\linewidth > \linewidth

so everything can not come in one line. Either remove the 
\hspace{0.5cm} or reduce the width of minipage to 0.45\linewidth or 
something smaller, till there is enough space fit everything on a line




-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008



More information about the tugindia mailing list