ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Nikolai Weibull <mailing-lists.context-users@rawuncut.elitemail.org>
Subject: Re: ConTeXt equivalent for \ensuremath?
Date: Fri, 11 Mar 2005 15:57:16 +0100	[thread overview]
Message-ID: <20050311145716.GC5540@puritan.pcp.ath.cx> (raw)
In-Reply-To: <4010ecb891c7439727015208c6c6b11e@rna.nl>

* 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 doing this?

\mathematics{...},
	nikolai

-- 
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}

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

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-11 14:46 Gerben Wierda
2005-03-11 14:57 ` Nikolai Weibull [this message]
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=20050311145716.GC5540@puritan.pcp.ath.cx \
    --to=mailing-lists.context-users@rawuncut.elitemail.org \
    --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).