Re: [NTG-context] Bad interaction between new interpretation of underscore and modules

2011-01-14 Thread Mathieu Boespflug
Thank you for the solution, Wolfgang. But it seems rather painful to have to replace every occurrence of _ in my definitions module with the very verbose \normalsubscript just because it's a module. The new default catcode for _ introduces extra difficulty when defining math macros. Would it be

Re: [NTG-context] Bad interaction between new interpretation of underscore and modules

2011-01-14 Thread Wolfgang Schuster
Am 14.01.2011 um 10:15 schrieb Mathieu Boespflug: Thank you for the solution, Wolfgang. But it seems rather painful to have to replace every occurrence of _ in my definitions module with the very verbose \normalsubscript just because it's a module. The new default catcode for _ introduces

Re: [NTG-context] Bad interaction between new interpretation of underscore and modules

2011-01-14 Thread Mathieu Boespflug
Hi Wolfgang, thank you for the explanation and the solution. Best, Mathieu On Fri, Jan 14, 2011 at 10:32 AM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 14.01.2011 um 10:15 schrieb Mathieu Boespflug: Thank you for the solution, Wolfgang.  But it seems rather painful to

Re: [NTG-context] Bad interaction between new interpretation of underscore and modules

2011-01-14 Thread Hans Hagen
On 14-1-2011 10:15, Mathieu Boespflug wrote: Thank you for the solution, Wolfgang. But it seems rather painful to have to replace every occurrence of _ in my definitions module with the very verbose \normalsubscript just because it's a module. The new default catcode for _ introduces extra

Re: [NTG-context] Bad interaction between new interpretation of underscore and modules

2011-01-14 Thread Wolfgang Schuster
Am 14.01.2011 um 12:01 schrieb Hans Hagen: just add a space before the _ when it directly follows a \cs, so ... $\cs _2$ ... but regular text like ... $x_2$ ... can be left as it is He put the definitions in a external file which he loads with \usemodule and then this won’t work

[NTG-context] Bad interaction between new interpretation of underscore and modules

2011-01-13 Thread Mathieu Boespflug
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

Re: [NTG-context] Bad interaction between new interpretation of underscore and modules

2011-01-13 Thread Wolfgang Schuster
Am 13.01.2011 um 17:18 schrieb Mathieu Boespflug: 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

Re: [NTG-context] Bad interaction between new interpretation of underscore and modules

2011-01-13 Thread Aditya Mahajan
On Thu, 13 Jan 2011, Wolfgang Schuster wrote: Am 13.01.2011 um 17:18 schrieb Mathieu Boespflug: 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:

Re: [NTG-context] Bad interaction between new interpretation of underscore and modules

2011-01-13 Thread Wolfgang Schuster
Am 13.01.2011 um 23:43 schrieb Aditya Mahajan: Untested: \def\lambdax{\math{\lambda_x}} should also work. Not, this won’t work in a module because _ has catcode 11 when you define the \lambdax command and it doesn’t matter whether you use \math, $ or \Ustartmath. What happens is that TeX