I modeled this after the LaTeX sources because I had to move on:

\newcommand{\ensuremath}[1]{\ifmmode\expandafter\FirtsOfOne%
        \else\expandafter\EnsuredMath\fi}
\long\def\FirstOfOne#1{#1}
\long\def\EnsuredMath#1{$\relax#1$}

but is there a ConTeXt way of doing this?

G

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to