From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17159 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \mathstrut in \underbrace and nath Date: Fri, 19 Nov 2004 16:38:13 +0100 Message-ID: <419E1365.3000104@wxs.nl> References: <20041117160050.GE8954@puritan.pcp.ath.cx> <179845091.20041118163421@iol.it> <20041118185157.GN9088@puritan.pcp.ath.cx> <419E0D52.10701@creutzig.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1100878817 23271 80.91.229.6 (19 Nov 2004 15:40:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Nov 2004 15:40:17 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 19 16:40:01 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CVArh-0003Xv-00 for ; Fri, 19 Nov 2004 16:40:01 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 46DF712772; Fri, 19 Nov 2004 16:40:01 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20407-04; Fri, 19 Nov 2004 16:40:01 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 00FBC12780; Fri, 19 Nov 2004 16:38:16 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ACA9112780 for ; Fri, 19 Nov 2004 16:38:15 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20407-03-2 for ; Fri, 19 Nov 2004 16:38:15 +0100 (CET) Original-Received: from mailrelay01.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 07D2E12772 for ; Fri, 19 Nov 2004 16:38:15 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id iAJFcBht023187 for ; Fri, 19 Nov 2004 16:38:11 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 3DC332D238; Fri, 19 Nov 2004 16:38:14 +0100 (CET) Original-Received: from [10.100.1.191] (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id E87B81837E for ; Fri, 19 Nov 2004 15:38:12 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <419E0D52.10701@creutzig.de> X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay01 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17159 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17159 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 -----------------------------------------------------------------