tags:

views:

254

answers:

3

In LaTeX, I have two ineqaulites e.g. a \leq b and c \leq d. I want to have a numbered line which has both of these inequalities on it:

a \leq b      c \leq d     (1)

Like this. What's the easiest way to get the spacing to behave itself? Which environment should I use?

+3  A: 

For some space, just use \quad, \qquad or any other spacing command of your choice (maybe \hfill?).

I don't know about any environments to do this, the environments that come with the AMS packages are meant to align columns (so they're only useful if you have multiple lines).

Martijn
Will Robertson
Martijn
Will Robertson
I agree on `
Martijn
+1  A: 

You should use the amsmath package (for spacing options). The do the following:

\begin{equation}
a \leq b \qquad c \leq d
\end{equation}
Kyle Butt
Actually, there's no amsmath here: \qquad is standard.
Martijn
`amsmath` does however contain the `align` environment, which you'll probably end up wanting if you're doing anything very fancy.
Jefromi
+6  A: 
Will Robertson
Indeed a less-known (or less-consciously-known) feature of `align`: it takes care of the intercolumn space which is, of course, what we're after in this question. +1
Martijn