* Align a compound inequality @ 2006-01-21 3:23 David Arnold 2006-01-21 6:07 ` Aditya Mahajan 0 siblings, 1 reply; 4+ messages in thread From: David Arnold @ 2006-01-21 3:23 UTC (permalink / raw) 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? I am not sure what m and n are meant to do with this code. Hans said n=n_of_columns and m=n_of_pairs, but I am not sure what these mean as relates to my problem above. Ideas? ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Align a compound inequality 2006-01-21 3:23 Align a compound inequality David Arnold @ 2006-01-21 6:07 ` Aditya Mahajan 2006-01-21 6:27 ` David Arnold 0 siblings, 1 reply; 4+ messages in thread From: Aditya Mahajan @ 2006-01-21 6:07 UTC (permalink / raw) <--- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Align a compound inequality 2006-01-21 6:07 ` Aditya Mahajan @ 2006-01-21 6:27 ` David Arnold 2006-01-21 7:05 ` Aditya Mahajan 0 siblings, 1 reply; 4+ messages in thread From: David Arnold @ 2006-01-21 6:27 UTC (permalink / raw) Aditya, Thanks, and I am getting this to work, which is similar to the way the align macros from the AMS work: \placeformula[eq:twosolve] \startformula \startalign[m=3] 3-2x&>-1 &&\qor& 3-2x&<1\\ -2x&>-4 &&& -2x&<-2\\ x&<2 &&& x&>1 \stopalign \stopformula On Jan 20, 2006, at 10:07 PM, Aditya Mahajan wrote: > <--- 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 > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Align a compound inequality 2006-01-21 6:27 ` David Arnold @ 2006-01-21 7:05 ` Aditya Mahajan 0 siblings, 0 replies; 4+ messages in thread From: Aditya Mahajan @ 2006-01-21 7:05 UTC (permalink / raw) <--- On Jan 20, David Arnold wrote ---> > Aditya, > > Thanks, and I am getting this to work, which is similar to the way the align > macros from the AMS work: Keep in mind Hans comment in math-ext % amstex compatibility mode: (ugly) I kinda agree. Look at the example in the source for using \NC \NC \NR instead of & .. \\. That gives you more flexibility in using labels and numbering for for specific equations. > \placeformula[eq:twosolve] > \startformula > \startalign[m=3] > 3-2x&>-1 &&\qor& 3-2x&<1\\ > -2x&>-4 &&& -2x&<-2\\ > x&<2 &&& x&>1 > \stopalign > \stopformula > > > On Jan 20, 2006, at 10:07 PM, Aditya Mahajan wrote: > >> <--- 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 >> _______________________________________________ >> ntg-context mailing list >> ntg-context@ntg.nl >> http://www.ntg.nl/mailman/listinfo/ntg-context > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > > -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-01-21 7:05 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2006-01-21 3:23 Align a compound inequality David Arnold 2006-01-21 6:07 ` Aditya Mahajan 2006-01-21 6:27 ` David Arnold 2006-01-21 7:05 ` Aditya Mahajan
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).