Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The following outputs two equations side-by-side, with the equation number after each equation:

\begin{minipage}{.5\linewidth}
\begin{equation}
 x = y
\end{equation}
\end{minipage}%
\begin{minipage}{.5\linewidth}
\begin{equation}
  y = z
\end{equation}
\end{minipage}

I would like to see if it looks better if the two equations stay in the same position, but with the (1) removed and the (2) becoming (1, 2) to reflect the numbers of both equations (in an assumed respective order). Is this possible?

I have searched but have only found questions asking if it is possible to only have one equation number for two equations. I want something similar to this, but displaying both equation numbers and only one set of brackets.

share|improve this question
1  
how automated should this be? The simplest is the manual \tag{1,2}. –  percusse Mar 2 '13 at 20:54
    
This is part of a document with about 100 equations, and the order is liable to change, so if possible it'd be ideal if it take its number from the equation counter. –  dplanet Mar 2 '13 at 21:04
add comment

1 Answer

up vote 4 down vote accepted

I hope you are not doing this very often, because that's not a good bookkeeping of equations.

\documentclass{article}
\usepackage{amsmath}


\begin{document}\noindent
From a distance real numbers are all the same
\begin{equation}
\pi = 3
\end{equation}
\begin{equation}
e = 3
\end{equation}
Then, 
\begin{equation}
\stepcounter{equation}
\cos(x)=\cot(x)\quad\implies s(x)=t(x)\tag{\theequation,\number\numexpr\theequation+1\relax}
\end{equation}
\stepcounter{equation}
since some mathematical pompous statement,
\begin{equation}
\int x=\sum y
\end{equation}
\end{document}

enter image description here

share|improve this answer
    
Thanks, but what do you mean when you say it's not good bookkeeping - in terms of "nobody does it like that" or in terms of LaTeX getting mixed up? –  dplanet Mar 2 '13 at 21:37
    
@dplanet In terms of referring to them and also in terms of back-tracking one might search for formula 4 if it appears on an isolated page. –  percusse Mar 2 '13 at 21:41
    
Okay may try a different strategy. Thanks. –  dplanet Mar 2 '13 at 21:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.