Does anybody know how to enable first line parsing in LuaTeX/LuaLaTeX? Please consider that I cannot change the default command line option to run the job, so I'm relying solely on this first line syntax in my source tex file:
%&mylualatex
\documentclass{...}
But it didn't work. My custom (pre-built) format never loads. As usual, issuing:
> lualatex "&mylualatex.fmt" "fmt-test.tex"
did work. But I can't rely on this method in my remote (web) environment. I'm using texlive 2021 and help output from the lualatex command reads:
Usage: luahbtex --lua=FILE [OPTION]... [TEXNAME[.tex]] [COMMANDS]
or: luahbtex --lua=FILE [OPTION]... \FIRST-LINE
But the second line above means nothing to me.
os.executedoesn't work here either, because it needs shell-escape... – Phelype Oleinik Nov 10 '21 at 12:49