ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bad interaction between new interpretation of underscore and modules
@ 2011-01-13 16:18 Mathieu Boespflug
  2011-01-13 21:50 ` Wolfgang Schuster
  0 siblings, 1 reply; 9+ messages in thread
From: Mathieu Boespflug @ 2011-01-13 16:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-01-14 11:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-13 16:18 Bad interaction between new interpretation of underscore and modules Mathieu Boespflug
2011-01-13 21:50 ` Wolfgang Schuster
2011-01-13 22:43   ` Aditya Mahajan
2011-01-14  0:14     ` Wolfgang Schuster
2011-01-14  9:15   ` Mathieu Boespflug
2011-01-14  9:32     ` Wolfgang Schuster
2011-01-14 10:09       ` Mathieu Boespflug
2011-01-14 11:01     ` Hans Hagen
2011-01-14 11:13       ` Wolfgang Schuster

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