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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 31686 in the body.
You can then email your comments to 31686 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-auctex <at> gnu.org:
bug#31686; Package auctex. (Sat, 02 Jun 2018 12:22:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to jfbu <jfbu <at> free.fr>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Sat, 02 Jun 2018 12:22:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jfbu <jfbu <at> free.fr>
To: bug-auctex <at> gnu.org
Subject: 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






Information forwarded to bug-auctex <at> gnu.org:
bug#31686; Package auctex. (Fri, 08 Jun 2018 09:20:01 GMT) Full text and rfc822 format available.

Message #8 received at 31686 <at> debbugs.gnu.org (full text, mbox):

From: jfbu <jfbu <at> free.fr>
To: 31686 <at> debbugs.gnu.org
Subject: Re: bug#31686: 12.1.1 ; Generation of Previews for platex with cached
 preamble fails with filename having spaces
Date: Fri, 8 Jun 2018 11:19:24 +0200
Le 02/06/2018 à 14:21, jfbu a écrit :
> Notice though that even if that was fixed, bug #31684 would cause a problem

Hi Keita and all,

I can confirm that using proposed patches to fix #31684 and #31685,
this one is cured too in my brief testing with pLaTeX compilation.

> Running `Preview-LaTeX' on `abc jap' with ``platex -ini -interaction=nonstopmode "&platex" prv_abc_jap.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" "{\detokenize{" \"abc\ jap.tex\" "}}"''
> This is e-pTeX, Version 3.14159265-p3.8.0-180226-2.6 (utf8.euc) (TeX Live 2018) (INITEX)
>  restricted \write18 enabled.
> entering extended mode
> (./prv_abc_jap.ini
> pLaTeX2e <2018-05-20> (based on LaTeX2e <2018-04-01> patch level 5)
> (/usr/local/texlive/2018/texmf-dist/tex/latex/carlisle/mylatex.ltx) (/usr/local/texlive/2018/texmf-dist/tex/latex/tools/.tex File ignored))
> No auxiliary output files.
> 
> [... lines cut ....]
> No pages of output.
> Transcript written on prv_abc_jap.log.
> 
> TeX Output finished at Fri Jun  8 11:11:37
> Running `Preview-LaTeX' on `abc jap' with ``platex  -kanji=utf8  -file-line-error -interaction=nonstopmode \&prv_abc_jap "/AUCTEXINPUT{" \"abc\ jap.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
> pLaTeX2e <2018-05-20> (based on LaTeX2e <2018-04-01> patch level 5)
> CUSTOMISED FORMAT. Preloaded files:
>         .
>   pldefs.ltx    2018/02/04 v1.6l pLaTeX Kernel (Default settings)
>    jy1mc.fd    2018/02/04 v1.6l KANJI font defines
>    jy1gt.fd    2018/02/04 v1.6l KANJI font defines
>    jt1mc.fd    2018/02/04 v1.6l KANJI font defines
>    jt1gt.fd    2018/02/04 v1.6l KANJI font defines
>  kinsoku.tex
>   "abc jap.tex" 
> jarticle.cls    2018/02/04 v1.7h Standard pLaTeX class
>  jsize10.clo    2018/02/04 v1.7h Standard pLaTeX file (size option)
>         .
> (./abc jap.tex
> [.... lines cut ....]
>  )
> (see the transcript file for additional information)
> Output written on "abc jap.dvi" (1 page, 1584 bytes).
> Transcript written on "abc jap.log".
> 
> TeX Output exited as expected with code 1 at Fri Jun  8 11:11:37
> Running `Preview-DviPNG' with ``dvipng -picky -noghostscript abc\ jap.dvi -o abc\ jap.prv/tmppvWcgV/prev%03d.png  -D186 ''
> This is dvipng (dvipng (TeX Live)) 1.15 Copyright 2002-2015 Jan-Ake Larsson
> [1 (preview-latex version 12.1) (preview-latex tightpage option detected, will use its bounding box)] 
> 
> Preview-DviPNG finished at Fri Jun  8 11:11:37

Best,

Jean-François





Information forwarded to bug-auctex <at> gnu.org:
bug#31686; Package auctex. (Fri, 08 Jun 2018 09:55:02 GMT) Full text and rfc822 format available.

Message #11 received at 31686 <at> debbugs.gnu.org (full text, mbox):

From: jfbu <jfbu <at> free.fr>
To: 31686 <at> debbugs.gnu.org
Subject: Re: bug#31686: 12.1.1 ; Generation of Previews for platex with cached
 preamble fails with filename having spaces
Date: Fri, 8 Jun 2018 11:54:40 +0200
Hi,

Le 08/06/2018 à 11:19, jfbu a écrit :
> Le 02/06/2018 à 14:21, jfbu a écrit :
>> Notice though that even if that was fixed, bug #31684 would cause a problem
> 
> Hi Keita and all,
> 
> I can confirm that using proposed patches to fix #31684 and #31685,
> this one is cured too in my brief testing with pLaTeX compilation.
> 
>> Running `Preview-LaTeX' on `abc jap' with ``platex -ini -interaction=nonstopmode "&platex" prv_abc_jap.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" "{\detokenize{" \"abc\ jap.tex\" "}}"''
>> This is e-pTeX, Version 3.14159265-p3.8.0-180226-2.6 (utf8.euc) (TeX Live 2018) (INITEX)
>>  restricted \write18 enabled.
>> entering extended mode
>> (./prv_abc_jap.ini
>> pLaTeX2e <2018-05-20> (based on LaTeX2e <2018-04-01> patch level 5)
>> (/usr/local/texlive/2018/texmf-dist/tex/latex/carlisle/mylatex.ltx) (/usr/local/texlive/2018/texmf-dist/tex/latex/tools/.tex File ignored))
>> No auxiliary output files.
>>
>> [... lines cut ....]
>> No pages of output.
>> Transcript written on prv_abc_jap.log.
>>
>> TeX Output finished at Fri Jun  8 11:11:37
>> Running `Preview-LaTeX' on `abc jap' with ``platex  -kanji=utf8  -file-line-error -interaction=nonstopmode \&prv_abc_jap "/AUCTEXINPUT{" \"abc\ jap.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
>> pLaTeX2e <2018-05-20> (based on LaTeX2e <2018-04-01> patch level 5)
>> CUSTOMISED FORMAT. Preloaded files:
>>         .
>>   pldefs.ltx    2018/02/04 v1.6l pLaTeX Kernel (Default settings)
>>    jy1mc.fd    2018/02/04 v1.6l KANJI font defines
>>    jy1gt.fd    2018/02/04 v1.6l KANJI font defines
>>    jt1mc.fd    2018/02/04 v1.6l KANJI font defines
>>    jt1gt.fd    2018/02/04 v1.6l KANJI font defines
>>  kinsoku.tex
>>   "abc jap.tex" jarticle.cls    2018/02/04 v1.7h Standard pLaTeX class
>>  jsize10.clo    2018/02/04 v1.7h Standard pLaTeX file (size option)
>>         .
>> (./abc jap.tex
>> [.... lines cut ....]
>>  )
>> (see the transcript file for additional information)
>> Output written on "abc jap.dvi" (1 page, 1584 bytes).
>> Transcript written on "abc jap.log".
>>
>> TeX Output exited as expected with code 1 at Fri Jun  8 11:11:37
>> Running `Preview-DviPNG' with ``dvipng -picky -noghostscript abc\ jap.dvi -o abc\ jap.prv/tmppvWcgV/prev%03d.png  -D186 ''
>> This is dvipng (dvipng (TeX Live)) 1.15 Copyright 2002-2015 Jan-Ake Larsson
>> [1 (preview-latex version 12.1) (preview-latex tightpage option detected, will use its bounding box)]
>> Preview-DviPNG finished at Fri Jun  8 11:11:37
> 

Due to some mix-up at my side the above is with the first version
of the patches proposed by Keita for #31685.

With the second version of the patches, it does work too, bthere
are some differences in the command line incovations.

Although I am creating a bit of noise, I feel I must now
copy-paste how it really looks like with the v2 of Keita's patches for #31685
at my locale:

> Running `Preview-LaTeX' on `abc jap' with ``platex -ini -kanji=utf8 -interaction=nonstopmode "&platex" prv_abc_jap.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" "{\detokenize{" \"abc\ jap.tex\" "}}"''
> This is e-pTeX, Version 3.14159265-p3.8.0-180226-2.6 (utf8.euc) (TeX Live 2018) (INITEX)
>  restricted \write18 enabled.
> entering extended mode
> (./prv_abc_jap.ini
> pLaTeX2e <2018-05-20> (based on LaTeX2e <2018-04-01> patch level 5)
> (/usr/local/texlive/2018/texmf-dist/tex/latex/carlisle/mylatex.ltx) (/usr/local/texlive/2018/texmf-dist/tex/latex/tools/.tex File ignored))
> [.... cut lines ....]
> Transcript written on prv_abc_jap.log.
> 
> TeX Output finished at Fri Jun  8 11:46:24
> Running `Preview-LaTeX' on `abc jap' with ``platex -kanji=utf8 -interaction=nonstopmode -file-line-error \&prv_abc_jap "/AUCTEXINPUT{" \"abc\ jap.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
> pLaTeX2e <2018-05-20> (based on LaTeX2e <2018-04-01> patch level 5)
> CUSTOMISED FORMAT. Preloaded files:
>         .
>   pldefs.ltx    2018/02/04 v1.6l pLaTeX Kernel (Default settings)
>    jy1mc.fd    2018/02/04 v1.6l KANJI font defines
>    jy1gt.fd    2018/02/04 v1.6l KANJI font defines
>    jt1mc.fd    2018/02/04 v1.6l KANJI font defines
>    jt1gt.fd    2018/02/04 v1.6l KANJI font defines
>  kinsoku.tex
>   "abc jap.tex" 
> jarticle.cls    2018/02/04 v1.7h Standard pLaTeX class
>  jsize10.clo    2018/02/04 v1.7h Standard pLaTeX file (size option)
>         .
> (./abc jap.tex
> [.... cut lines ....]
> (see the transcript file for additional information)
> Output written on "abc jap.dvi" (1 page, 1584 bytes).
> Transcript written on "abc jap.log".
> 
> TeX Output exited as expected with code 1 at Fri Jun  8 11:46:24
> Running `Preview-DviPNG' with ``dvipng -picky -noghostscript abc\ jap.dvi -o abc\ jap.prv/tmpHKfXq8/prev%03d.png  -D186 ''
> This is dvipng (dvipng (TeX Live)) 1.15 Copyright 2002-2015 Jan-Ake Larsson
> [1 (preview-latex version 12.1) (preview-latex tightpage option detected, will use its bounding box)] 
> 
> Preview-DviPNG finished at Fri Jun  8 11:46:24

Anyway, problem fixed for my MWE.

Best,

Jean-François




Information forwarded to bug-auctex <at> gnu.org:
bug#31686; Package auctex. (Fri, 08 Jun 2018 13:36:02 GMT) Full text and rfc822 format available.

Message #14 received at 31686 <at> debbugs.gnu.org (full text, mbox):

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: jfbu <jfbu <at> free.fr>
Cc: 31686 <at> debbugs.gnu.org
Subject: Re: bug#31686: 12.1.1 ;
 Generation of Previews for platex with cached preamble fails with
 filename having spaces
Date: Fri, 08 Jun 2018 22:35:21 +0900
Hi Jean and all,

>>>>> jfbu <jfbu <at> free.fr> writes:

>> I can confirm that using proposed patches to fix #31684 and #31685,
>> this one is cured too in my brief testing with pLaTeX compilation.

> Due to some mix-up at my side the above is with the first version
> of the patches proposed by Keita for #31685.

> With the second version of the patches, it does work too, bthere
> are some differences in the command line incovations.

> Although I am creating a bit of noise, I feel I must now
> copy-paste how it really looks like with the v2 of Keita's patches for #31685
> at my locale:

>> Running `Preview-LaTeX' on `abc jap' with ``platex -ini -kanji=utf8 -interaction=nonstopmode "&platex" prv_abc_jap.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" "{\detokenize{" \"abc\ jap.tex\" "}}"''

[...]

>> TeX Output finished at Fri Jun  8 11:46:24
>> Running `Preview-LaTeX' on `abc jap' with ``platex -kanji=utf8 -interaction=nonstopmode -file-line-error \&prv_abc_jap "/AUCTEXINPUT{" \"abc\ jap.tex\" "}"''

[...]

>> TeX Output exited as expected with code 1 at Fri Jun  8 11:46:24
>> Running `Preview-DviPNG' with ``dvipng -picky -noghostscript abc\ jap.dvi -o abc\ jap.prv/tmpHKfXq8/prev%03d.png  -D186 ''
>> This is dvipng (dvipng (TeX Live)) 1.15 Copyright 2002-2015 Jan-Ake Larsson
>> [1 (preview-latex version 12.1) (preview-latex tightpage option
>> detected, will use its bounding box)] 
>> 
>> Preview-DviPNG finished at Fri Jun  8 11:46:24

> Anyway, problem fixed for my MWE.

Thank you for testing.  In fact, dvipng will fail with dvi file
generated by (u)platex if it contains Japanese characters like this:
----------------------------------------------------------------------
dvipng: Fatal error, VF font /usr/local/texlive/2018/texmf-dist/fonts/vf/ptex-fonts/standard/goth10.vf exceeds char numbering limit
----------------------------------------------------------------------
(I am talking about the Japanese characters in the contents of the dvi
file, not in the file name).  This is because (u)platex outputs dvi
files with slightly extented format and most of the dviwares including
dvipng cannot process this extended dvi.  But anyway, the fallback run
of Preview-Dvips takes care of that failure, so the functionality of
preview-latex is kept.

Best regards,
Ikumi Keita




Added tag(s) fixed. Request was from Ikumi Keita <ikumi <at> ikumi.que.jp> to control <at> debbugs.gnu.org. (Thu, 01 Nov 2018 06:10:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 31686 <at> debbugs.gnu.org and jfbu <jfbu <at> free.fr> Request was from Ikumi Keita <ikumi <at> ikumi.que.jp> to control <at> debbugs.gnu.org. (Thu, 01 Nov 2018 06:10:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 29 Nov 2018 12:24:05 GMT) Full text and rfc822 format available.

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.