[NTG-context] \jobname and \doifelse

Pablo Rodriguez oinos at gmx.es
Sat Nov 5 16:30:31 CET 2022


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" with Lua, being "a.tex" the source file.

The TeX conditional used to work before.

Am I missing something or have I hit a bug?

I’m on Linux64 (if this may be relevant).

Many thanks for your help,

Pablo


More information about the ntg-context mailing list