ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ConTeXt equivalent for \ensuremath?
@ 2005-03-11 14:46 Gerben Wierda
  2005-03-11 14:57 ` Nikolai Weibull
  0 siblings, 1 reply; 6+ messages in thread
From: Gerben Wierda @ 2005-03-11 14:46 UTC (permalink / raw)


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

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

end of thread, other threads:[~2005-03-13 21:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-11 14:46 ConTeXt equivalent for \ensuremath? Gerben Wierda
2005-03-11 14:57 ` Nikolai Weibull
2005-03-11 15:54   ` Gerben Wierda
2005-03-11 17:20     ` Adam Lindsay
2005-03-11 18:03       ` Gerben Wierda
2005-03-13 21:24     ` h h extern

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