Re: [NTG-context] Parsing \...luacode within a \def

2018-06-18 Thread Procházka Lukáš Ing .
Hello, thanks for explanation - I could not understand difference in behavior inside \def ("--" dismiss all following) and out of \def ("--" acts on the one line only); so the explanation is "\startluacode INSIDE MACRO body acts like any such catcode regime changing operation"... Best

Re: [NTG-context] Parsing \...luacode within a \def

2018-06-14 Thread Hans Hagen
On 6/14/2018 9:20 PM, Tomas Hala wrote: Hi Lukáš, I am not sure but I guess that the problem is related with the behaviour of the input processor which erases characters at the end of line (CR, LF) and replace them by a space. Then, the whole content between \start/stopluacode is at only one

Re: [NTG-context] Parsing \...luacode within a \def

2018-06-14 Thread Tomas Hala
Hi Lukáš, I am not sure but I guess that the problem is related with the behaviour of the input processor which erases characters at the end of line (CR, LF) and replace them by a space. Then, the whole content between \start/stopluacode is at only one line. If you the second way of comment

[NTG-context] Parsing \...luacode within a \def

2018-06-14 Thread Procházka Lukáš Ing .
Hello, I encountered a phenomena that I cannot understand. Let's have the following code: \def\T{% \startluacode context("t") \stopluacode } \def\U{% \startluacode -- context("u") \stopluacode } \starttext A \startluacode -- context("b")

[NTG-context] Parsing \...luacode within a \def

2018-06-14 Thread Procházka Lukáš Ing .
Hello, I encountered a phenomena that I cannot understand. Let's have the following code: \def\T{% \startluacode context("t") \stopluacode } \def\U{% \startluacode -- context("u") \stopluacode } \starttext A \startluacode -- context("b") \stopluacode