Hi Brooks

The following simple file works fine if I comment out the \usemodule[newmat] line, but crashes if I put it in.

  \usemodule[newmat]
  \starttext
  \placeformula
   \startformula
   \eqalign{\frac{1}{2} \cr}
   \stopformula
  \stoptext


ah ... the alignment lookahead problem, i think we can safely patch \mathematics to catch lookahead as well as make frac more robust for unwanted expansion

\usemodule[newmat]

\unexpanded\def\frac#1#2{\mathematics{\genfrac{}{}{}\donothing{#1}{#2}}}

\def\mathematics#1{\relax\ifmmode#1\else$#1$\fi}

\starttext

\placeformula
\startformula
\eqalign{\frac{1}{2}}
\stopformula

\stoptext

-----------------------------------------------------------------
                                         Hans Hagen | PRAGMA ADE
             Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                            | www.pragma-pod.nl
-----------------------------------------------------------------


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

Reply via email to