Math & Scienceusing subequations with columns

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
lancekam
Posts: 6
Joined: Mon May 18, 2009 10:40 pm

using subequations with columns

Post by lancekam »

I am typing a paper in which I would like to use subequations with 3 columns. I want the output to look like

w=4 (1a) a>b (2a)
x=a^2+b^2 (1b) a=2wt (2b)
y=c^2+d^2 (1c) where b=3ew (2c)
z=e^2+f^2 (1d) c=5 (2d)
q=t (1e)
Note:the 1a,1b,... are the subequation numbering (and I reference them later, so I need it to be the subequation numbering) and the "where" is centered. I cannot seem to get \begin{multicols} to accept subequations. I do not know how to get the "where" centered to where it is half way down in the second column. Any help would be much appreciated.

Lance

Recommended reading 2024:

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

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

fatra2
Posts: 126
Joined: Fri May 01, 2009 1:43 pm

Re: using subequations with columns

Post by fatra2 »

Hi there,

Did you try with minipage???

Cheers
User avatar
Juanjo
Posts: 657
Joined: Sat Jan 27, 2007 12:46 am

using subequations with columns

Post by Juanjo »

The following code may help you:

Code: Select all

\begin{minipage}{0.3\textwidth}
  \begin{subequations}
  \begin{align}
    w&=4, \\
    x&=a^2+b^2, \\
    y&=c^2+d^2, \\
    z&=e^2+f^2, \\
    q&=t,
  \end{align}
  \end{subequations}
\end{minipage}%
\hfill where\hfill
\begin{minipage}{0.3\textwidth}
  \begin{subequations}
  \begin{align}
    a&>b, \\
    a&=2wt, \\
    b&=3ew, \\
    c&=5.
  \end{align}
  \end{subequations}
\end{minipage}
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
lancekam
Posts: 6
Joined: Mon May 18, 2009 10:40 pm

Re: using subequations with columns

Post by lancekam »

Thank you both so much. I am a little new to Latex and have yet to mess with minipage. Juanjo, your code works perfectly. It is exactly what I was looking for. Thank you so much. This is such a help.
Post Reply