From: David Arnold <darnold@northcoast.com>
Subject: Sample of the day (AmSTeX alignments)
Date: Sun, 12 Sep 1999 11:52:23 -0700 [thread overview]
Message-ID: <3.0.5.32.19990912115223.00b5ae00@mail.northcoast.com> (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 --]
next reply other threads:[~1999-09-12 18:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-12 18:52 David Arnold [this message]
1999-09-14 15:23 ` Taco Hoekwater
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3.0.5.32.19990912115223.00b5ae00@mail.northcoast.com \
--to=darnold@northcoast.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).