[Tugindia] Figure/Text Side by Side how to

Josy P. Pullockara josy at ctfd.cmmacs.ernet.in
Thu Nov 24 04:50:25 CET 2005


On Wed, 2005-11-23 at 23:28 +0100, Sreejith Pulloor wrote:
> \begin{figure}
> \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.
> any tips in how to keep text/figures side by side in a bemer frame?

The above code would have been perfectly fine if you had tried reducing
the minipage sizes to say 0.45\linewidth!

\documentclass{beamer}
\begin{document}
\frame{\frametitle{Test}
        \begin{figure}
        \begin{minipage}[b]{0.45\linewidth} page
        {My Text and Equations goes here}
        \end{minipage}
        \hspace{0.5cm}
        \begin{minipage}[b]{0.45\linewidth}
        \centering
        \includegraphics[width=6cm]{myfig}
        \caption{En liten bild till}
        \end{minipage}
        \end{figure}
}
\end{document}

works as you intend.
-- 
Josy P. Pullockara

Scientist,                             eMail:josy at ctfd.cmmacs.ernet.in
Computational and Theoretical          Phone:+91-80-2505 1627
Fluid Dynamics Division,               Fax  :+91-80-2522 0952
National Aerospace Laboratories        Cell :+91-9448376505
----------------------------------------------------------------------
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html




More information about the tugindia mailing list