GNU bug report logs - #31686
12.1.1 ; Generation of Previews for platex with cached preamble fails with filename having spaces

Previous Next

Package: auctex;

Reported by: jfbu <jfbu <at> free.fr>

Date: Sat, 2 Jun 2018 12:22:01 UTC

Severity: normal

Tags: fixed

Found in version 12.1.1

Done: Ikumi Keita <ikumi <at> ikumi.que.jp>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: jfbu <jfbu <at> free.fr>
To: 31686 <at> debbugs.gnu.org
Subject: bug#31686: 12.1.1 ; Generation of Previews for platex with cached preamble fails with filename having spaces
Date: Sat, 2 Jun 2018 14:21:38 +0200
Hi,

consider this file

\documentclass{jsarticle}
\def\abc{abc}
\begin{document}
$\abc$
\end{document}

Name it `abc def ghi.tex`.

Compilation (to DVI) works fine.

But generation of previews using cached preamble fails,
the format can not be used:

generation ok

Running `Preview-LaTeX' on `abc def ghi' with ``platex -ini -interaction=nonstopmode "&platex" prv_abc_def_ghi.ini    "\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}" "\input" \"abc\ def\ ghi.tex\"''
This is e-pTeX, Version 3.14159265-p3.8.0-180226-2.6 (utf8.euc) (TeX Live 2018) (INITEX)

.... etc....


but usage fails

Running `Preview-LaTeX' on `abc def ghi' with ``platex  -kanji=utf8  -interaction=nonstopmode "&prv_abc_def_ghi" \"abc\ def\ ghi.tex\"''
This is e-pTeX, Version 3.14159265-p3.8.0-180226-2.6 (utf8.euc) (TeX Live 2018) (preloaded format=platex)
 restricted \write18 enabled.
entering extended mode
! I can't find file `abcdefghi.tex'.
<*> &prv_abc_def_ghi "abc def ghi.tex"
                                      
(Press Enter to retry, or Control-D to exit)
Please type another input file name
! Emergency stop.
<*> &prv_abc_def_ghi "abc def ghi.tex"
                                      
No pages of output.
Transcript written on texput.log.

TeX Output exited as expected with code 1 at Sat Jun  2 14:19:27
LaTeX: LaTeX found no preview images


Explanation is simple, the hack of \dump in preview.el is effective only
if \pdfoutput primitive exists. This hack was done to counteract
mylatex.ltx making spaces ignored.

Notice though that even if that was fixed, bug #31684 would cause a problem

Best,

Jean-François






This bug report was last modified 6 years and 287 days ago.

Previous Next


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