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