ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <darnold@northcoast.com>
Subject: align
Date: Tue, 26 Oct 2004 21:47:44 -0700	[thread overview]
Message-ID: <3.0.5.32.20041026214744.008c4ae0@mail.northcoast.com> (raw)

All,

In ams math, the default behavior of align is to align each equation on the
&. By default, each equation is numbered. Individual equations can be
labeled and referenced. Try:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{align}
F(x)&=\int_0^x f(t)\, dt\label{eq:1}\\
F'(x)&=f(x)\label{eq:2}
\end{align}

In equation~(\eqref{eq:1}) and equation~(\eqref{eq:2}), we see\ldots
\end{document}

To suppress number of equations, we use the align* environment. Try:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{align*}
F(x)&=\int_0^x f(t)\, dt\\
F'(x)&=f(x)
\end{align*}

\end{document}

When one wants to number an aligned environment as a group, we use aligned
instead of align. This requires that we be in math mode. Try:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}\label{fundthm}
\begin{aligned}
F(x)&=\int_0^x f(t)\, dt\\
F'(x)&=f(x)
\end{aligned}
\end{equation}

\end{document}

I can get this with amsl, with:

\usemodule[amsl]

\starttext

\placeformula[fundthm]
\startalign
F(x)&=\int_0^x f(t)\, dt\\
F'(x)&=f(x)
\stopalign

We see in the \in{Fundamental Theorem}[fundthm] \ldots

\stoptext

I'm not sure how to label and reference individual equations in the align
environment, however.

             reply	other threads:[~2004-10-27  4:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-27  4:47 David Arnold [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-09-08 19:57 Align David Arnold
1999-09-09 10:02 ` Align 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.20041026214744.008c4ae0@mail.northcoast.com \
    --to=darnold@northcoast.com \
    --cc=ntg-context@ntg.nl \
    /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).