ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Emulating AMS stuff in ConTeXt
@ 2002-12-07 18:24 Giuseppe Bilotta
  2002-12-08 20:26 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Giuseppe Bilotta @ 2002-12-07 18:24 UTC (permalink / raw)


Hello,

while trying to build an AMS emulation layer on top of ConTeXt
math macros, I defined (among the other) the following macros:

\def\startalign{%
    \startformula
    \let\\\cr
    \grabuntil{stopalign}\doeqalign
}
\def\doeqalign#1{\eqalign{#1\cr}\stopformula}
\let\stopalign\relax

These allow me to write:

\startalign
  a & = b = \\
    & = c
\stopalign

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?

-- 
Giuseppe "Oblomov" Bilotta

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-08 21:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-07 18:24 Emulating AMS stuff in ConTeXt Giuseppe Bilotta
2002-12-08 20:26 ` Hans Hagen
2002-12-08 21:36   ` Re[2]: " Giuseppe Bilotta

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