ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [ConTeXt] math eq align
@ 1999-10-04 10:41 Tobias Burnus
  1999-10-05  9:25 ` Taco Hoekwater
  0 siblings, 1 reply; 7+ messages in thread
From: Tobias Burnus @ 1999-10-04 10:41 UTC (permalink / raw)


Hi,

since we have some TeX and math experts on the list, how can I best align this:

{\omega_1 =\omega_0=\omega_{\rm s}}               {Z_1=\pmatrix{1\cr1\cr}={\bi
Z}_{\rm s}} \formulenumber{a}
{\omega_2 =-\omega_0=-\omega_{\rm s}}             {Z_1=\pmatrix{1\cr1\cr}={\bi
Z}_{\rm s}} \subformulenumber{b}
{\omega_3 =\omega_0\sqrt{1+2f}=\omega_{\rm a}}    {Z_1=\pmatrix{1\cr-1\cr}={\bi
Z}_{\rm a}}\subformulenumber{c}
{\omega_4 =-\omega_0\sqrt{1+2f}=-\omega_{\rm a}}  {Z_1=\pmatrix{1\cr-1\cr}={\bi
Z}_{\rm a}}\subformulenumber{d}

Regards,

Tobias


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [ConTeXt] math eq align
@ 1999-10-05 19:55 David Arnold
  1999-10-06  9:40 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: David Arnold @ 1999-10-05 19:55 UTC (permalink / raw)
  Cc: ntg-context

Tobias,

Here is a final version. TeX's \halign is an unusually flexible construct,
but it's tough to become proficient in its use (I'm not. I much prefer the
macros provided by AMSTeX). Before you start thinking I am a TeX guru (I'm
not), I need to say that I stole the following idea from Donald Knuth's
"The TeXbook", page 334, example 22.9. The TeXbook ranks as one of the best
books that I own.

$$
\openup1\jot \tabskip=0pt plus1fil
\halign to\displaywidth{\tabskip=0pt
 $\hfil#$&${}#\hfil$\tabskip=0pt plus1fil
 & \tabskip=0pt$\hfil#$ & ${}#\hfil$
 \tabskip=0pt plus1fil &\llap{#}\tabskip=0pt\cr
\omega_1 & =\omega_0=\omega_{\rm s}
 &   Z_1&=\pmatrix{1\cr1\cr}={\bf Z}_{\rm s}
 & (a) \cr
\omega_2 & =-\omega_0=-\omega_{\rm s}
 &   Z_1&=\pmatrix{1\cr1\cr}={\bf Z}_{\rm s}
 & (b) \cr
\omega_3 & =\omega_0\sqrt{1+2f}=\omega_{\rm a}
 &   Z_1&=\pmatrix{1\cr-1\cr}={\bf Z}_{\rm a}
 & (c) \cr
\omega_4 & =-\omega_0\sqrt{1+2f}=-\omega_{\rm a}
 &   Z_1&=\pmatrix{1\cr-1\cr}={\bf Z}_{\rm a}
 & (d) \cr}
$$

David Arnold
College of the Redwoods
Mathematics Department
7351 Tompkins Hill Road
Eureka, CA 95501
(707) 476-4222

My Home Page
http://online.redwoods.cc.ca.us/instruct/darnold/index.htm

Ordinary Differential Equations Using Matlab
http://www.prenhall.com/books/esm_0130113816.html


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1999-10-11 11:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-04 10:41 [ConTeXt] math eq align Tobias Burnus
1999-10-05  9:25 ` Taco Hoekwater
1999-10-05 19:55 David Arnold
1999-10-06  9:40 ` Hans Hagen
1999-10-06 13:22   ` Taco Hoekwater
1999-10-06 11:52     ` Wolfgang Huber
1999-10-11 11:32       ` Taco Hoekwater

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).