ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Sample of the day (AmSTeX alignments)
@ 1999-09-12 18:52 David Arnold
  1999-09-14 15:23 ` Taco Hoekwater
  0 siblings, 1 reply; 2+ messages in thread
From: David Arnold @ 1999-09-12 18:52 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 2694 bytes --]

I am now going to do some of the same alignments in  \AmSTeX. Note
the subtle differences in equation labeling.

Here is an example of the align environment.
\TagsOnLeft

$$
\align
(a+b)^{n+1}
 &=(a+b)(a+b)^n=(a+b)\sum_{j=0}^n\binom nja^{n-1}b^j\tag1\\
 &=\sum_{j=0}^n\binom nj a^{n+1-j}b^j+\sum_{j=1}^n\binom
  n{j-1}a^{n-j}b^j\tag2\\
 &=\sum_{j=0}^n\binom{n+1}ja^{n+1-j}b^j\tag3
\endalign
$$

\TagsOnRight

$$
\align
(a+b)^{n+1}
 &=(a+b)(a+b)^n=(a+b)\sum_{j=0}^n\binom nja^{n-1}b^j\tag1\\
 &=\sum_{j=0}^n\binom nj a^{n+1-j}b^j+\sum_{j=1}^n\binom
  n{j-1}a^{n-j}b^j\tag2\\
 &=\sum_{j=0}^n\binom{n+1}ja^{n+1-j}b^j\tag3
\endalign
$$

Here is an example of the aligned environment.
\TagsOnLeft

$$
\aligned
(a+b)^{n+1}
 &=(a+b)(a+b)^n=(a+b)\sum_{j=0}^n\binom nja^{n-1}b^j\\
 &=\sum_{j=0}^n\binom nj a^{n+1-j}b^j+\sum_{j=1}^n\binom
  n{j-1}a^{n-j}b^j\\
 &=\sum_{j=0}^n\binom{n+1}ja^{n+1-j}b^j
\endaligned\tag5--4
$$

\TagsOnRight

$$
\aligned
(a+b)^{n+1}
 &=(a+b)(a+b)^n=(a+b)\sum_{j=0}^n\binom nja^{n-1}b^j\\
 &=\sum_{j=0}^n\binom nj a^{n+1-j}b^j+\sum_{j=1}^n\binom
  n{j-1}a^{n-j}b^j\\
 &=\sum_{j=0}^n\binom{n+1}ja^{n+1-j}b^j
\endaligned\tag5--4
$$

Here is an example of the split environment.
\TagsOnLeft

$$
\split
(a+b)^{n+1}
 &=(a+b)(a+b)^n=(a+b)\sum_{j=0}^n\binom nja^{n-1}b^j\\
 &=\sum_{j=0}^n\binom nj a^{n+1-j}b^j+\sum_{j=1}^n\binom
  n{j-1}a^{n-j}b^j\\
 &=\sum_{j=0}^n\binom{n+1}ja^{n+1-j}b^j
\endsplit\tag1--2
$$

\TagsOnRight

$$
\split
(a+b)^{n+1}
 &=(a+b)(a+b)^n=(a+b)\sum_{j=0}^n\binom nja^{n-1}b^j\\
 &=\sum_{j=0}^n\binom nj a^{n+1-j}b^j+\sum_{j=1}^n\binom
  n{j-1}a^{n-j}b^j\\
 &=\sum_{j=0}^n\binom{n+1}ja^{n+1-j}b^j
\endsplit\tag1--2
$$

Here is an example of the gather environment.
\TagsOnLeft

$$
\gather
(a+b)^{n+1}
 =(a+b)(a+b)^n=(a+b)\sum_{j=0}^n\binom nja^{n-1}b^j\tag1\\
 =\sum_{j=0}^n\binom nj a^{n+1-j}b^j+\sum_{j=1}^n\binom
  n{j-1}a^{n-j}b^j\tag2\\
 =\sum_{j=0}^n\binom{n+1}ja^{n+1-j}b^j\tag3
\endgather
$$

\TagsOnRight

$$
\gather
(a+b)^{n+1}
 =(a+b)(a+b)^n=(a+b)\sum_{j=0}^n\binom nja^{n-1}b^j\tag1\\
 =\sum_{j=0}^n\binom nj a^{n+1-j}b^j+\sum_{j=1}^n\binom
  n{j-1}a^{n-j}b^j\tag2\\
 =\sum_{j=0}^n\binom{n+1}ja^{n+1-j}b^j\tag3
\endgather
$$

Here is an example of the multline environment.
\TagsOnLeft

$$
\multline
(a+b)^{n+1}
 =(a+b)(a+b)^n\\
 =(a+b)\sum_{j=0}^n\binom nja^{n-1}b^j
 =\sum_{j=0}^n\binom nj a^{n+1-j}b^j+\sum_{j=1}^n\binom
  n{j-1}a^{n-j}b^j
 =\sum_{j=0}^n\binom{n+1}ja^{n+1-j}b^j
\endmultline\tag1--2
$$

\TagsOnRight

$$
\multline
(a+b)^{n+1}
 =(a+b)(a+b)^n\\
 =(a+b)\sum_{j=0}^n\binom nja^{n-1}b^j
 =\sum_{j=0}^n\binom nj a^{n+1-j}b^j+\sum_{j=1}^n\binom
  n{j-1}a^{n-j}b^j
 =\sum_{j=0}^n\binom{n+1}ja^{n+1-j}b^j
\endmultline\tag1--2
$$

\bye

[-- Attachment #2: split.dvi --]
[-- Type: application/octet-stream, Size: 8376 bytes --]

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

* Re: Sample of the day (AmSTeX alignments)
  1999-09-12 18:52 Sample of the day (AmSTeX alignments) David Arnold
@ 1999-09-14 15:23 ` Taco Hoekwater
  0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 1999-09-14 15:23 UTC (permalink / raw)


>>>>> "David" == David Arnold <darnold@northcoast.com> writes:

    David> I am now going to do some of the same alignments in
    David> \AmSTeX. Note the subtle differences in equation labeling.

Which do you prefer? I don't want to use the name \tag in context,
since context has \equationnumber for this purpose, and it follows
that I prefer the latex-style \tag syntax. \TagsOn.. functionality
will be available anyway. AmsTeX has an advantage from my point of
view, because amsmath depends quite heavily on LaTeX's "array", which
of course is not present in Context.

Greetings, Taco

-- 
Taco Hoekwater                                 taco.hoekwater@wkap.nl
Kluwer Academic Publishers                            -- Pre Press --
Achterom 119, 3311 KB Dordrecht, The Netherlands  tel.  31-78-6392550
---------------------------------------------------------------------


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

end of thread, other threads:[~1999-09-14 15:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-12 18:52 Sample of the day (AmSTeX alignments) David Arnold
1999-09-14 15:23 ` 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).