[Tugindia] Figure/Text Side by Side how to

Duvvuri Venu Gopal venugopal_duvvuri at rediffmail.com
Thu Nov 24 05:10:26 CET 2005


  
My dear sir I think you are not correct. The catch is two {minipage} environments with \hfill in between them.

like:

\begin{minipage}
\end{minipage}
\hfill        <---- This is most important!!
\begin{minipage}
\end{minipage}

On Thu, 24 Nov 2005 Josy P.Pullockara wrote :
>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
>
>
>_______________________________________________
>Home:        http://www.tug.org.in/
>TeX FAQ:     http://www.tex.ac.uk/faq
>unsubscribe: http://tug.org/mailman/listinfo/tugindia




More information about the tugindia mailing list