From: Hans Hagen <pragma@wxs.nl>
Subject: Re: \mathstrut in \underbrace and nath
Date: Fri, 19 Nov 2004 16:38:13 +0100 [thread overview]
Message-ID: <419E1365.3000104@wxs.nl> (raw)
In-Reply-To: <419E0D52.10701@creutzig.de>
Christopher Creutzig wrote:
> Nikolai Weibull wrote:
>
>> ! Undefined control sequence.
>> \dodosmash [#1]->\edef \@@smash
>> {#1}\futurelet \nexttoken \dododosmash
>> \relbar ->\mathrel {\smash
>> -}
>
>
> Uh-uh. The problem is clear: \inlinemath tries (in the definition of
> \inlinemath@) to expand the formula (in the sense of TeX macro
> expansion). \longrightarrow cum suis are, however, not expandable in
> ConTeXt.
>
> Now, I do believe the xdef is a bug in nath, but the following
> workaround does work:
>
> \protected\def\longrightarrow {\relbar\joinrel\rightarrow}
>
> Hans, do you have a command that sort of changes an existing definition
> as if \protected had been used in the first place?
first of all, \protected is not what you think it is; i had a \protected before
etex was around; the context name is \unexpanded
\let\unprotectedlongrightarrow\longrightarrow
\unexpanded\def\longrightarrow{\unprotectedlongrightarrow}
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
next prev parent reply other threads:[~2004-11-19 15:38 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-17 16:00 Nikolai Weibull
2004-11-18 15:34 ` Giuseppe Bilotta
2004-11-18 18:51 ` Nikolai Weibull
2004-11-19 15:12 ` Christopher Creutzig
2004-11-19 15:38 ` Hans Hagen [this message]
2004-11-19 15:58 ` Christopher Creutzig
2004-11-19 17:34 ` Hans Hagen
2004-11-22 9:20 ` Christopher Creutzig
2004-11-19 17:16 ` Nikolai Weibull
2004-11-19 17:53 ` Re[2]: " Giuseppe Bilotta
2004-11-19 22:10 ` h h extern
2004-11-20 11:35 ` Re[2]: " Giuseppe Bilotta
2004-11-21 22:19 ` 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=419E1365.3000104@wxs.nl \
--to=pragma@wxs.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).