11 Mar
2005
11 Mar
'05
2:46 p.m.
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