From: Tobias Burnus <tobias.burnus@physik.fu-berlin.de>
Cc: <ntg-context@ntg.nl>
Subject: Re: Math help needed
Date: Sun, 3 Feb 2002 13:56:26 +0100 (CET) [thread overview]
Message-ID: <Pine.BSF.4.30.0202031354360.68530-100000@tom.physik.fu-berlin.de> (raw)
In-Reply-To: <w1b5AdCLTIX8EwVB@granby.demon.co.uk>
Hi Bruce,
On Sun, 3 Feb 2002, Bruce Horrocks wrote:
> Is there a math manual available? (I couldn't find one)
Unfortunally no good math manual exists for ConTeXt, but one can use
(nearly) all plain TeX commands.
> For example, how can I do the following plain TeX in ConTeX:
> $$\eqalignno{\sin(x)^2 &= 1-\cos(x)^2 &(1) \cr
> \noalign{\hbox{and also}}
> \cos(x)^2 &= 1-\sin(x)^2 &(2) \cr}$$
Your plain TeX version works, but how about this:
(ConTeXt used to count, noalign doesn't need a(n extra) \hbox{})
\placeformula
\startformula
\eqalignno{
\sin^2 x &= 1-\cos^2 x & \formulanumber[sin]\cr
\noalign{and also}
\cos^2 x &= 1-\sin^2 x & \formulanumber[cos]\cr
}\stopformula
or alternative:
\placeformula[cos-sin]
\startformula
\eqalignno{
\sin^2 x &= 1-\cos^2 x & \formulanumber[sin2]{a}\cr
\noalign{and also}
\cos^2 x &= 1-\sin^2 x & \subformulanumber[cos2]{b}\cr
}\stopformula
Then you can refer to these equation by using:
\in[sin] produces 1
\in[cos] produces 2
\in[cos-sin] produces 3
\in[sin2] produces 3a
\in[cos2] produces 3b
Tobias
next prev parent reply other threads:[~2002-02-03 12:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-03 0:31 Bruce Horrocks
2002-02-03 12:56 ` Tobias Burnus [this message]
2002-02-03 18:06 ` Bruce Horrocks
2002-02-03 18:40 ` Hans Hagen
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=Pine.BSF.4.30.0202031354360.68530-100000@tom.physik.fu-berlin.de \
--to=tobias.burnus@physik.fu-berlin.de \
--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).