ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <darnold@northcoast.com>
Subject: cases
Date: Tue, 26 Oct 2004 22:08:07 -0700	[thread overview]
Message-ID: <3.0.5.32.20041026220807.008c3100@mail.northcoast.com> (raw)

All,

Try:

\documentclass[12pt]{article}
\usepackage{amsmath}

\begin{document}

\begin{equation}
  \label{func}
  P_{r-j}=
  \begin{cases}
    0, & \text{if $r-j$ is odd}\\
    r!(-1)^{(r-j)/2}, & \text{if $r-j$ is even.}
  \end{cases}
\end{equation}

\end{document}

Then try:

\usemodule[amsl]

\starttext

\placeformula[func]
\startformula
P_{r-j}=
\startcases
0, & \text{if $r-j$ is odd}\\
r!(-1)^{(r-j)/2}, & \text{if $r-j$ is even.}
\stopcases
\stopformula

\stoptext

You'll note that the spacing in the latter is not as good.

                 reply	other threads:[~2004-10-27  5:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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.20041026220807.008c3100@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).