auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] [AUCTeX] files with non-ascii characters and LaTeX as


From: Ikumi Keita
Subject: Re: [AUCTeX-devel] [AUCTeX] files with non-ascii characters and LaTeX as in TeXLive 2018
Date: Thu, 24 May 2018 16:24:06 +0900

Hi Jean,

>>>>> Ikumi Keita <address@hidden> writes:
> Thank you very much for your all valuable works!  I'll test this with
> other cases (TL2017, file names with space, on w32 platform) and propose
> to commit again.

Unfortunately, it seems that the proposed method using /AUCTEXINPUT does
not work with file name with space.  The sample I'm using is a file named
"ppp qqq.tex" with the content:
------- ppp qqq.tex --------------------------------------------------
\documentclass{article}
\begin{document}
Hello, World
\(xyz\)
\end{document}

%%% Local Variables: 
%%% TeX-master: t
%%% End: 
----------------------------------------------------------------------

The format file is generated successfully:
----------------------------------------------------------------------
Running `Preview-LaTeX' on `ppp qqq' with ``pdflatex -ini 
-interaction=nonstopmode "&pdflatex" prv_ppp_qqq.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{" \"ppp\ qqq.tex\" "}}"''
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (INITEX)
 restricted \write18 enabled.
entering extended mode
(./prv_ppp_qqq.ini
LaTeX2e <2018-04-01> patch level 4
(/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.

(./ppp qqq.tex (/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)) )
Beginning to dump on file prv_ppp_qqq.fmt
 (preloaded format=prv_ppp_qqq 2018.5.24)
7585 strings of total length 123256
58367 memory locations dumped; current usage is 219&56905
4191 multiletter control sequences
\font\nullfont=nullfont
\font\OMX/cmex/m/n/5=cmex10
[...]
\font\OT1/cmss/m/n/10=cmss10
5716 words of font info for 21 preloaded fonts
1141 hyphenation exceptions
Hyphenation trie of length 370691 has 8997 ops out of 35111
  143 for language 83
  110 for language 82
[...]
  181 for language 0
0 words of pdfTeX memory
0 indirect objects
No pages of output.
Transcript written on prv_ppp_qqq.log.

TeX Output finished at Thu May 24 16:09:49
----------------------------------------------------------------------

However, the next run with the dumped format doesn't make its way:
----------------------------------------------------------------------
Running `Preview-LaTeX' on `ppp qqq' with ``pdflatex -interaction=nonstopmode 
\&prv_ppp_qqq /AUCTEXINPUT{\"ppp\ qqq.tex\"}''
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded 
format=pdflatex)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2018-04-01> patch level 4
CUSTOMISED FORMAT. Preloaded files:
        .
  "ppp qqq.tex" 
 article.cls    2014/09/29 v1.4h Standard LaTeX document class
  size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
        .

! LaTeX Error: File `"pppqqq.tex"' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: tex")

Enter file name: 
! Emergency stop.
<read *> 
         
<*> &prv_ppp_qqq /AUCTEXINPUT{"ppp qqq.tex"}
                                            ^^M
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on texput.log.

TeX Output exited as expected with code 1 at Thu May 24 16:11:23
LaTeX: LaTeX found no preview images
----------------------------------------------------------------------

When I replace \&prv_ppp_qqq with -fmt="prv_ppp_qqq.fmt" from xterm, the
error changes slightly:
----------------------------------------------------------------------
[bash]$ pdflatex -interaction=nonstopmode -fmt="prv_ppp_qqq.fmt" 
/AUCTEXINPUT{\"ppp\ qqq.tex\"}
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018) (preloaded 
format=prv_ppp_qqq.fmt)
 restricted \write18 enabled.
entering extended mode
(/usr/local/texlive/2018/texmf-dist/tex/latex/tools/.tex
LaTeX2e <2018-04-01> patch level 4
CUSTOMISED FORMAT. Preloaded files:
        .
  "ppp qqq.tex" 
 article.cls    2014/09/29 v1.4h Standard LaTeX document class
  size10.clo    2014/09/29 v1.4h Standard LaTeX file (size option)
        .
)
Runaway argument?
! File ended while scanning use of ^^M.
<inserted text> 
                \par 
<*> "/AUCTEXINPUT{ppp qqq.tex}
                              "

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
<*> "/AUCTEXINPUT{ppp qqq.tex}
                              "

! LaTeX Error: File `ppp qqq.tex' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: tex)

Enter file name: 
! Emergency stop.
<read *> 
         
<*> "/AUCTEXINPUT{ppp qqq.tex}
                              "^^M
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on .log.
----------------------------------------------------------------------

I'm currently stuck up with this situation.  It's hard to cope with
unusual file names...

Regards,
Ikumi Keita



reply via email to

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