[tex-live] is luatex parsing of first line off?

jfbu jfbu at free.fr
Fri Jun 1 14:19:48 CEST 2018


sorry if perhaps off-list 

I have problems with first line %&formatname and luatex

Consider this

$ luatex -ini -jobname myformat \&lualatex \\def\\foo{foo} \\dump

It works.

Then consider file testlualatex.tex
whose contents are




and try

$ luatex testluatex.tex 
This is LuaTeX, Version 1.07.0 (TeX Live 2018) 
 restricted system commands enabled.
! Undefined control sequence.
l.2 \documentclass
? X

warning  (pdf backend): no pages of output.
Transcript written on testluatex.log.

On the other hand

$ luatex \&myformat testluatex.tex

does work.

Now repeat the whole thing with xetex or pdftex, then it works.

For example

$ xetex -ini -jobname myformat \&xelatex \\def\\foo{foo} \\dump


$ xetex testluatex.tex 
This is XeTeX, Version 3.14159265-2.6-0.99999 (TeX Live 2018) (preloaded format=myformat)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2018-04-01> patch level 5
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(./testluatex.aux) [1] (./testluatex.aux) )
Output written on testluatex.pdf (1 page).
Transcript written on testluatex.log.

(sorry for filename... it should have been testformat.tex)



More information about the tex-live mailing list