Multiple equations on one line

3,467 views
Skip to first unread message

Chris

unread,
Jul 8, 2008, 9:25:26 AM7/8/08
to LaTeX Users Group
In order to save some space, I've put two equations on a single line
(which I currently do using the equation environment and \quad to
space them). However, I can't work out how (if it is indeed possible)
to still have both equations numbered individually --- ideally
something like:
EQUATION1, EQUATION2 (1a,b)

Anyone have any ideas?

Thanks,

Chris

Murugan S

unread,
Jul 15, 2008, 1:20:33 AM7/15/08
to LaTeX Users Group
Use This coding

\begin{align}
\begin{split}
aaaaaaaaaaaaaaa+ b = 5 asfaddf
\end{split}
\begin{split}
bbba+ b = 5 asfaddf
\end{split}\tag{1a,b}
\end{align}

wr

S. Murugan

Chris

unread,
Jul 15, 2008, 12:16:20 PM7/15/08
to LaTeX Users Group
Many thanks, just what I needed (though it does have the downside of
losing the ability to cross reference)

Chris

Werner Grundlingh

unread,
Jul 15, 2008, 3:57:39 PM7/15/08
to LaTeX Users Group
You run into some difficulty when trying to reference single equations
in a 'double equation' environment like you want. So, by saving some
space, you're sacrificing some of that LaTeX functionality. However,
I'm sure it would be possible, by defining new environments and
counters, to exactly obtain what you want. Using the AMSmath package
one can actually obtain subequation numbering in a very straight-
forward way. Consider compiling the following minimal LaTeX example
document:

\documentclass{article}

\usepackage{amsmath,texlogos}

\begin{document}

Using \amslogo{math}, we are able to number subequations.

\begin{subequations}
\label{subeqn:list}
\begin{align}
x^4+x^3+x^2+x+1 &= 20 \label{subeqn:first} \\
x^4-x^3-x^2-x-1 &= -10 \label{subeqn:second}
\end{align}
\end{subequations}

We can now individually refer to the equations above
as~(\ref{subeqn:first}) and~(\ref{subeqn:second}), or to the group as
a whole by~(\ref{subeqn:list}).

\end{document}

Werner
Reply all
Reply to author
Forward
0 new messages