Page LayoutMaking two columns - figure + equation

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
aplrt
Posts: 6
Joined: Thu Apr 15, 2010 10:03 pm

Making two columns - figure + equation

Post by aplrt »

I'm having some problem formatting a segment of my paper into two columns.

I wish to put a figure next to an equation, and the "easiest" way would be to make two columns - how do I do that ? I know how to do it for a figure and a text segment, but how do I do it for a figure and an equation (!) ?

Thanks for any help.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Making two columns - figure + equation

Post by gmedina »

Hi

one possibility would be to use minipage environments; take a look at the following example:

Code: Select all

\documentclass{article}
\usepackage{caption}
\usepackage{amsmath}

\begin{document}

\noindent\begin{minipage}{.45\textwidth}
  \centering
  \rule{4cm}{3cm}
  \captionof{figure}{Test figure.}
  \label{fig:figure}
\end{minipage}
\begin{minipage}{.45\textwidth}
\begin{align}
  a &= b\\
  &= c\\
  &= d
\end{align}
\end{minipage}

\end{document}
If your figure doesn't require a caption then you can safely remove the \captionof command
1,1,2,3,5,8,13,21,34,55,89,144,233,...
aplrt
Posts: 6
Joined: Thu Apr 15, 2010 10:03 pm

Re: Making two columns - figure + equation

Post by aplrt »

Tried out minipage, and got the figure perfectly aligned with the equation now.

Thanks for the help !
Post Reply