Re: [NTG-context] \jobname and \doifelse

2022-11-06 Thread Pablo Rodriguez via ntg-context
On 11/6/22 11:21, Hans Hagen via ntg-context wrote: > [...] > More relevan tis that you'r on TeX where catcodes matter > (here letter vs other) > >\doifelse{\inputfilebarename}{oeps} > {yes}{no} > >\doifelse{\detokenize\expandafter{\jobname}}{\detokenize{oeps}} > {yes}{no} Many

Re: [NTG-context] \jobname and \doifelse

2022-11-06 Thread Pablo Rodriguez via ntg-context
On 11/5/22 16:55, Wolfgang Schuster via ntg-context wrote: > Pablo Rodriguez via ntg-context schrieb am 05.11.2022 um 16:30: >> >>\doifelse{\jobname}{a} >> {yes}{no} >> >> I get "no" as in TeX and "yes" with Lua, being "a.tex" the source file. >> >> The TeX conditional used to work before.

Re: [NTG-context] \jobname and \doifelse

2022-11-06 Thread Hans Hagen via ntg-context
On 11/5/2022 4:30 PM, Pablo Rodriguez via ntg-context wrote: Dear list, using current latest (2022.10.22 11:23), I have the following sample: \starttext \doifelse{\jobname}{a} {yes}{no} \jobname \startluacode if tex.jobname == "a" then context("yes") else conte

Re: [NTG-context] \jobname and \doifelse

2022-11-05 Thread Wolfgang Schuster via ntg-context
Pablo Rodriguez via ntg-context schrieb am 05.11.2022 um 16:30: Dear list, using current latest (2022.10.22 11:23), I have the following sample: \starttext \doifelse{\jobname}{a} {yes}{no} \jobname \startluacode if tex.jobname == "a" then context("yes") else co

[NTG-context] \jobname and \doifelse

2022-11-05 Thread Pablo Rodriguez via ntg-context
Dear list, using current latest (2022.10.22 11:23), I have the following sample: \starttext \doifelse{\jobname}{a} {yes}{no} \jobname \startluacode if tex.jobname == "a" then context("yes") else context("no") end \stopluacode \stoptext I get "no" as in TeX and "yes