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

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