bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-AUCTeX] lualatex needs --jobname option


From: Manuel Pégourié-Gonnard
Subject: Re: [Bug-AUCTeX] lualatex needs --jobname option
Date: Wed, 15 Jun 2011 00:47:05 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110510 Icedove/3.1.10

Le 14/06/2011 22:43, Ralf Angeli a écrit :
> I've tried the --jobname switch with a file that contains a space in its
> name.  I guess that the file name has to be quoted in this case.

Normally, no quoting is necessary in this case (other than required by the shell
to make it a single argument).

> The first one is from a local copy of TeX Live 2010 and the second one
> is the version which is available in Debian/sid right now.
> 
Ok, got it. The discrepancy comes not from the version of the engine but from
the underlying distribution: Debian (even sid) still ships TeX Live 2009. The
(partially-working) autoquoting mechanism was introduced in the lualatex format
in TeX Live 2010.

> $ /home/angeli/texlive/2010/bin/x86_64-linux/lualatex --jobname=\"luatex\ 
> test\"  -interaction=nonstopmode "\input" \"luatex\ test.tex\"
> This is LuaTeX, Version beta-0.60.2-2010071218 (TeX Live 2010) (rev 3736) 
> [...]
> ! LaTeX Error: Missing \begin{document}.
> [...]
> Output written on luatex test.pdf (1 page, 12492 bytes).
> Transcript written on "luatex test.log".
> 
> This does not work.
> 
This was not the intended use, so the lualatex format adds an extra pair of
quotes, which is obviously wrong.

I would have expected pdflatex to fail in the same way in this case, but it does
handle is correctly, and so does xelatex (but with a slightly different
implementation).

> $ /home/angeli/texlive/2010/bin/x86_64-linux/lualatex --jobname="luatex test" 
>  -interaction=nonstopmode "\input" \"luatex\ test.tex\"
> This is LuaTeX, Version beta-0.60.2-2010071218 (TeX Live 2010) (rev 3736) 
> [...]
> Output written on luatex test.pdf (1 page, 10924 bytes).
> Transcript written on "luatex test.log".
> 
> So, this seems to work.
> 
Yep, this was the intended use. It works with pdflatex and xelatex too.

> $ lualatex -interaction=nonstopmode "\input" \"luatex\ test.tex\"
> This is LuaTeX, Version beta-0.70.1-2011052000 
> [...]
> ! LaTeX Error: Missing \begin{document}.
> [...]
> Output written on luatex test.pdf (1 page, 12686 bytes).
> Transcript written on "luatex test.log".
> 
> No problem with the job name, but elsewhere.
> 
Yep, this was the original problem that started the whole story. I fails in the
same way with the more usual invocation

        lualatex luatex\ test.tex

and the change in the lualatex format in TL 2010, introducing autoquoting of the
job name, was meant to fix this problem. (We noticed only too late that the fix
didn't work with the less usual invocation style used by AucTeX.)

> $ lualatex --jobname=\"luatex\ test\"  -interaction=nonstopmode "\input" 
> \"luatex\ test.tex\"
> This is LuaTeX, Version beta-0.70.1-2011052000 
> [...]
> Output written on luatex test.pdf (1 page, 11284 bytes).
> Transcript written on "luatex test.log".
> 
> Okay, this seems to work.
> 
Yep, this may be called manually quoting the job name, as opposed to the
(imperfect) autoquiting feature of the lualatex format in TL 2010.

> $ lualatex --jobname="luatex test"  -interaction=nonstopmode "\input" 
> \"luatex\ test.tex\"
> This is LuaTeX, Version beta-0.70.1-2011052000 
> [...]
> ! LaTeX Error: Missing \begin{document}.
> [...]
> Output written on luatex test.pdf (1 page, 12686 bytes).
> Transcript written on "luatex test.log".
> 
> Does not work.
> 
This is equivalent to

        lualatex luatex\ test.tex

which, as mentioned above, was the original problematic case in TL 09.

> When supplying --jobname, LuaTeX 0.60 only works with --jobname="luatex
> test" and LuaTeX 0.70 only with --jobname=\"luatex\ test\".
> 
> Do you happen to know a way of quoting which works with both versions?
> 
Unfortunately not, and I'm really sorry for that. I tend to recommend the

        --jobname=luatex\ test

way, since it works for TL 2010 and TL 2011, and this is more important IMO than
supporting 2009 even if it is the Debian version for the following reasons:
1. Debian users seem unlikely to use spaces in their tex filenames too often, I
believe this is rather an habit of Windows and OS X users;
2. LuaTeX users tend to want up-to-date suff anyway.
(I admit this reasons are rather based on clichés.)

The only good news in this picture is that, however you quote the argument of
--jobname, it will work with any version of TeX Live if the filename doesn't
contain spaces. So it is probably still a good idea to add --jobname: it would
fix the problem with the autoquote fix in TL 2010/11 for filenames without 
spaces.

Manuel.

PS: I confirm your current syntax works with LuaTeX 0.71 on top of TeX Live
2011, as will the --jobname luatext\ test syntax. I'll also arrange for the
--jobname \"luatex\ test\" to work now that I'm aware of the issue.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]