From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65237 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Bad interaction between new interpretation of underscore and modules Date: Thu, 13 Jan 2011 22:50:06 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1294955499 14336 80.91.229.12 (13 Jan 2011 21:51:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 Jan 2011 21:51:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 13 22:51:34 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PdV4v-0007g2-3m for gctc-ntg-context-518@m.gmane.org; Thu, 13 Jan 2011 22:51:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 62F25CA999; Thu, 13 Jan 2011 22:51:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Z3FOzmP7xnwA; Thu, 13 Jan 2011 22:51:28 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B1680CA988; Thu, 13 Jan 2011 22:51:28 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 368A8CA988 for ; Thu, 13 Jan 2011 22:51:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FKj5IXLgBsrO for ; Thu, 13 Jan 2011 22:51:16 +0100 (CET) Original-Received: from filter7-ams.mf.surf.net (filter7-ams.mf.surf.net [192.87.102.75]) by balder.ntg.nl (Postfix) with ESMTP id 068D8CA987 for ; Thu, 13 Jan 2011 22:51:15 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter7-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0DLp91h019006 for ; Thu, 13 Jan 2011 22:51:14 +0100 Original-Received: by fxm12 with SMTP id 12so2137509fxm.14 for ; Thu, 13 Jan 2011 13:51:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=c8Owi+UZGYXfgPzpFtIDEEqfaY158Z4fgYxowWkQTrs=; b=Oq9ftZPrlXfidutWB95ApVeN3ZNwQ0kFba4l9zENeH5vjOpL2b9eyMbZt0egIYgPuc AsNvmdbM2REULSLCGqC+eq+C9vYL7Td1fzxVOyseVbPZ0nHm45dpck36cqfVTyzhU6cy W61o79x+pFlLtvMWRjskDlJ7QCb4haGoMiwR4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=x12qJpIOP8V0/pH/x6LvrnbPezy0aT02IMQC88qk6/IXEMBHDNPPRhgMJNQkNx63v1 lQ4ToVlaFVAf+66s5kKbEaDjkkQJo96uGG5Gsa9Ssu/FRPSNshsM9vyEbou0OpzPTmxV js2yWtAjWLfCmfZP7P7kQDbdYMDxqrp+H/Ij4= Original-Received: by 10.223.101.140 with SMTP id c12mr2909868fao.16.1294955468869; Thu, 13 Jan 2011 13:51:08 -0800 (PST) Original-Received: from [192.168.2.23] (p5B294C71.dip.t-dialin.net [91.41.76.113]) by mx.google.com with ESMTPS id y3sm263480fai.14.2011.01.13.13.51.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Jan 2011 13:51:07 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0DDT9P9Hz - 808c14f1f0d4 - 20110113 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.75 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:65237 Archived-At: Am 13.01.2011 um 17:18 schrieb Mathieu Boespflug: > Hi all, > = > today's beta introduced a really strange problem. Consider two source fil= es: > = > definitions.tex: > \startmodule[definitions] > \def\lambdax{\lambda_x} > \stopmodule[definitions] > = > main.tex: > \usemodule[definitions] > \starttext > blah $\lambdax$ blah. > \stoptext > = > This results in the following compile error: > = > ! Undefined control sequence. > \lambdax ->\lambda_x > = > l.5 blah $\lambdax > $ blah. > ? > = > However, if you change "\usemodule[definitions]" into "\input > definitions" instead, then there is no compile error! My understanding > is that the underscore is a valid character for macro names now > outside of math mode, which is what is causing the problem. But I > really don't understand what magic is going on in the modules code to > trigger this. > = > I would be very interested in an explanation of what is going on. You need \normalsubscript in your module. You define a command and in this case it doesn=92t matter that you plan to use it in math mode, the _ is now a normal letter like =93a=94 and this won=92t change when you call \lambdax in your document. Write \def\lambdax{\lambda\normalsubscript x} and it will work again. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________