ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Gerben Wierda <Gerben.Wierda@rna.nl>
Subject: ConTeXt equivalent for \ensuremath?
Date: Fri, 11 Mar 2005 15:46:37 +0100	[thread overview]
Message-ID: <4010ecb891c7439727015208c6c6b11e@rna.nl> (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

             reply	other threads:[~2005-03-11 14:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-11 14:46 Gerben Wierda [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4010ecb891c7439727015208c6c6b11e@rna.nl \
    --to=gerben.wierda@rna.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).