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

_______________________________________________
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to