[NTG-context] Align a compound inequality
Aditya Mahajan
adityam at umich.edu
Sat Jan 21 07:07:38 CET 2006
<--- On Jan 20, David Arnold wrote --->
> All,
>
> I have:
>
> \placeformula[-]
> \startformula
> \startalign[m=2]
> 3-2x&<-1 & 3-2x&>1\\
> -2x&<-4 & -2x&>-2\\
> x&>2 & x&<1
> \stopalign
> \stopformula
>
> And it works. However, I want to sqeeze the word "or" between the
> inequalities on the first row so that it reads:
>
> 3 - 2x < -1 or 3 - 2x > 1
>
> How can I do this?
This is how I would do this,
\startformula \startalign[n=5,align={right,left,middle,right,left}]
3 - 2x & < -1 & \quad \text{or} \quad & 3-2x & > 1 \\
-2x < & -4 & \text{or} & -2x &> -2 \\
\stopalign \stopformula
--
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
More information about the ntg-context
mailing list