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

jfbu jfbu at free.fr
Fri Jun 1 14:43:53 CEST 2018


Le 1 juin 2018 à 14:19, jfbu <jfbu at free.fr> a écrit :

> Hi,
> 
> 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
> 
> %&myformat
> \documentclass{article}
> 
> \begin{document}
> hello
> 
> \foo
> \end{document}
> 
> 
> and try
> 
> $ luatex testluatex.tex 
> This is LuaTeX, Version 1.07.0 (TeX Live 2018) 
> restricted system commands enabled.
> (./testluatex.tex
> ! Undefined control sequence.
> l.2 \documentclass
>                {article}
> ? 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
> 
> Then 
> 
> $ 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
> (./testluatex.tex
> LaTeX2e <2018-04-01> patch level 5
> (/usr/local/texlive/2018/texmf-dist/tex/latex/base/article.cls
> Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
> (/usr/local/texlive/2018/texmf-dist/tex/latex/base/size10.clo))
> (./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)



trying man luatex I see this in output

       --fmt=FORMAT
              Use  FORMAT as the name of the format to be used, instead of the
              name by which luaTeX was called or a %& line.


which suggest that %& line parsing should work although that is perhaps
not so clear from top of man page

Best,

Jean-François


More information about the tex-live mailing list