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