Gerben Wierda wrote:
On Mar 11, 2005, at 15:57, Nikolai Weibull wrote:
\newcommand{\ensuremath}[1]{\ifmmode\expandafter\FirtsOfOne%
\else\expandafter\EnsuredMath\fi}
\long\def\FirstOfOne#1{#1}
\long\def\EnsuredMath#1{$\relax#1$}
\newcommand{\bit}[2]{\ensuremath{\hbox{\tf #1}_\hbox{\tf
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
* Gerben Wierda (Mar 11, 2005 15:50):
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
On Mar 11, 2005, at 15:57, Nikolai Weibull wrote:
\newcommand{\ensuremath}[1]{\ifmmode\expandafter\FirtsOfOne%
\else\expandafter\EnsuredMath\fi}
\long\def\FirstOfOne#1{#1}
\long\def\EnsuredMath#1{$\relax#1$}
\newcommand{\bit}[2]{\ensuremath{\hbox{\tf #1}_\hbox{\tf #2}}}
but is there a
Gerben Wierda said this at Fri, 11 Mar 2005 16:54:38 +0100:
But my way also doesn't work. I get empty output as a result of the
\bit{b}{off} command.
Help?
This is probably not satisfying, because you probably want to get new
mathematics commands working, but if this is to be used solely in
On Mar 11, 2005, at 18:20, Adam Lindsay wrote:
Gerben Wierda said this at Fri, 11 Mar 2005 16:54:38 +0100:
But my way also doesn't work. I get empty output as a result of the
\bit{b}{off} command.
Help?
This is probably not satisfying, because you probably want to get new
mathematics commands