GNU bug report logs - #25276
11.89.8; xetex engine not work when master filename contains space

Previous Next

Package: auctex;

Reported by: Qiang Yin <yinqiang.sjtu <at> gmail.com>

Date: Mon, 26 Dec 2016 15:35:02 UTC

Severity: normal

Found in version 11.89.8

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Arash Esbati <arash.esbati+ml <at> gmail.com>
To: Mosè Giordano <mose <at> gnu.org>
Cc: Qiang Yin <yinqiang.sjtu <at> gmail.com>, 25276 <at> debbugs.gnu.org
Subject: bug#25276: 11.89.8; xetex engine not work when master filename contains space
Date: Tue, 27 Dec 2016 11:39:05 +0100
Hi Mosè,

Mosè Giordano <mose <at> gnu.org> writes:

> 2016-12-26 16:34 GMT+01:00 Qiang Yin <yinqiang.sjtu <at> gmail.com>:
>> Hi,
>> I prefer xetex as my default tex engine. But this will cause a AucTeX
>> bug when the master filename contains a space.
>>
>> The following is a minimal example. It contains only one master file "foo
>> bar.tex". Notice the filename contains a space. And the content of "foo
>> bar.tex" is just the following:
>>
>> \documentclass{article}
>> \begin{document}
>> Hello world
>> \end{document}
>> %%% Local Variables:
>> %%% mode: latex
>> %%% TeX-master: t
>> %%% TeX-engine: xetex
>> %%% End:

I can reproduce this behavior on Windows.  I think the issue is an extra
pair of single quotes (see below).

>> Now if press C-c C-c to compile this file. AucTeX will return the
>> following error message:
>>
>> Running `LaTeX' on `foo bar' with ``xelatex  -file-line-error  --synctex=1
>> -interaction=nonstopmode "\input" ^"\^"foo bar.tex\^"^"''
>> This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2016/W32TeX)
>> (preloaded format=xelatex)
>>  restricted \write18 enabled.
>> entering extended mode
>> LaTeX2e <2016/03/31> patch level 3
>> Babel <3.9r> and hyphenation patterns for 83 language(s) loaded.
>> ! I can't find file `'"foo bar.tex"''.
>> <*> \input '"foo bar.tex"'
>>
>> (Press Enter to retry, or Control-Z to exit)
>> Please type another input file name
>> ! Emergency stop.
>> <*> \input '"foo bar.tex"'
              ^_____________^

For reasons not clear to me, the compiler gets the file name passed in
those single quotes.  As a test, at a command prompt I can do

    xelatex -interaction=nonstopmode "\input" "foo bar.tex"

and it works, but

    xelatex -interaction=nonstopmode "\input" '"foo bar.tex"'

exits with:

    This is XeTeX, Version 3.14159265-2.6-0.99996 (TeX Live 2016/W32TeX) (preloaded format=xelatex)
     restricted \write18 enabled.
    entering extended mode
    LaTeX2e <2016/03/31> patch level 3
    Babel <3.9r> and hyphenation patterns for 67 language(s) loaded.
    ! I can't find file `'"foo bar.tex"''.
    <*> \input '"foo bar.tex"'

    (Press Enter to retry, or Control-Z to exit)
    Please type another input file name
    ! Emergency stop.
    <*> \input '"foo bar.tex"'

Does this help?

Best, Arash




This bug report was last modified 1 year and 135 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.