From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65233 Path: news.gmane.org!not-for-mail From: Mathieu Boespflug <0xbadcode@gmail.com> Newsgroups: gmane.comp.tex.context Subject: Bad interaction between new interpretation of underscore and modules Date: Thu, 13 Jan 2011 17:18:29 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1294935532 686 80.91.229.12 (13 Jan 2011 16:18:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 Jan 2011 16:18:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 13 17:18:48 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 1PdPsu-0008Ru-8F for gctc-ntg-context-518@m.gmane.org; Thu, 13 Jan 2011 17:18:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 84204CA994; Thu, 13 Jan 2011 17:18:47 +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 4iKiwOfK+Ltk; Thu, 13 Jan 2011 17:18:44 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4DF49CA985; Thu, 13 Jan 2011 17:18:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BE421CA985 for ; Thu, 13 Jan 2011 17:18:42 +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 G79c9T0YvUY2 for ; Thu, 13 Jan 2011 17:18:31 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 7D0E3CA983 for ; Thu, 13 Jan 2011 17:18:31 +0100 (CET) Original-Received: from mail-qw0-f41.google.com (mail-qw0-f41.google.com [209.85.216.41]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0DGITUF007288 for ; Thu, 13 Jan 2011 17:18:30 +0100 Original-Received: by qwa26 with SMTP id 26so1843321qwa.14 for ; Thu, 13 Jan 2011 08:18:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=N5AA+UozGGr6YA1vEHgetbJrXyqxNL0trVrj8gwszTs=; b=ca6EAnGS+/DKh3KSy735ARJGgYmeJGxM2q63RhBbL2+WQqnJgMA1rBzle7VSXK9XRE +Dnnfk8iK4SlPp982lY0hAxb9XDK7EZYwS4lx3kMfSerEYfMBLAkz+I7JehvKszU8RvY rUIgAZGdliY9jole6SDJBajFtVtF+5gJf+za4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=EmH8x46HaLGbFKt89MDO7/c+lxJyhfTeRBL+Q6ENXIwz/za8AIfbMaTbQTs7LeYiBe HYeUOzYwqDv5FXjthiQrzDUhvVvGTusFvX9xSuC3L/04rmeQvR27xty6KdFx4hX8S2cG QMDzk1TZkOsC2XUOsqByd8PX35sQfQuJasInc= Original-Received: by 10.229.229.18 with SMTP id jg18mr2083388qcb.276.1294935509353; Thu, 13 Jan 2011 08:18:29 -0800 (PST) Original-Received: by 10.229.238.194 with HTTP; Thu, 13 Jan 2011 08:18:29 -0800 (PST) X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=209.85.216.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: 0dDT4iusy - a34f860723e6 - 20110113 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:65233 Archived-At: Hi all, today's beta introduced a really strange problem. Consider two source files: 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. Many thanks, Mathieu ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________