ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Sample of the day. More on align.
@ 1999-09-09 19:51 David Arnold
  0 siblings, 0 replies; only message in thread
From: David Arnold @ 1999-09-09 19:51 UTC (permalink / raw)


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

All, dvi attached.

\documentclass[leqno]{amsldoc}
\usepackage{amsmath}
\begin{document}

You can put the tags on the left with the legno option.

You can align equations with automatic numbering each line.
\begin{align}
2x+3&=5\\
2x+3-3&=5-3\\
2x&=2\\
\frac{2x}2&=\frac22\\
x&=1
\end{align}

You can suppress numbering.
\begin{align*}
2x+3&=5\\
2x+3-3&=5-3\\
2x&=2\\
\frac{2x}2&=\frac22\\
x&=1
\end{align*}

You can have subnumbering.

\begin{subequations}
\begin{align}
2x+3&=5\\
2x+3-3&=5-3\\
2x&=2\\
\frac{2x}2&=\frac22\\
x&=1
\end{align}
\end{subequations}

You can interject text.

\begin{align*}
2x+3&=5\\
2x+3-3&=5-3  &  \text{Subract 3 from both sides}\\
2x&=2  &  \text{Simplify}\\
\frac{2x}2&=\frac22  &  \text{Divide both sides by 2}\\
x&=1 & \text{Simplify}
\end{align*}

You can align more than one set of equations.

\begin{align*}
2x+3&=5                 &  r&=0\\
2x+3-3&=5-3             & 1+2\sin\theta&=0\\
2x&=2                   & \sin\theta&=-\frac12\\
\frac{2x}2&=\frac22     & \theta&=\frac{7\pi}6\\
x&=1
\end{align*}

\end{document}

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-09-09 19:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-09 19:51 Sample of the day. More on align David Arnold

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