From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Emulating AMS stuff in ConTeXt
Date: Sun, 08 Dec 2002 21:26:14 +0100 [thread overview]
Message-ID: <5.1.0.14.1.20021208212025.03bb0510@remote-1> (raw)
In-Reply-To: <1592367314.20021207192429@iol.it>
At 07:24 PM 12/7/2002 +0100, you wrote:
>def\startalign{%
> \startformula
> \let\\\cr
> \grabuntil{stopalign}\doeqalign
>}
>\def\doeqalign#1{\eqalign{#1\cr}\stopformula}
^^ better make that \crcr in order to catch
users \\
>\let\stopalign\relax
>
>These allow me to write:
>
>\startalign
> a & = b = \\
> & = c
>\stopalign
isn't \startmathalign a better choice?
>and everything is fine. Yet I cannot do
>
>\placeformula[hook]
>\startalign
> a & = b = \\
> & = c
>\stopalign
>
>because of expansion problems. Why? How can I define the stuff?
took me a couple of cd's to uncover this -)
(1) placeformula has to look ahead, and the next command is not seen as
something math; so,
(2) i made another lookahead, and then
(3) we ran into those \cr & and # things that may not always show up
everywhere, so
(4) i had to rewrite a low level macro that i didn't like rewriting, i.e.
(5) i had to use a variant i'd always thought that could be avoided
so, you spoiled my afternoon -)
btw, if you isolate/collect the ams math that's not yet in m-newmat, i can
see if/how i can add it there in a configurable way, so if some things
fails, we can look into it later
you can try the version i just uploaded
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
next prev parent reply other threads:[~2002-12-08 20:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-07 18:24 Giuseppe Bilotta
2002-12-08 20:26 ` Hans Hagen [this message]
2002-12-08 21:36 ` Re[2]: " Giuseppe Bilotta
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=5.1.0.14.1.20021208212025.03bb0510@remote-1 \
--to=pragma@wxs.nl \
--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).