bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] Problem with spaces in file names


From: Peter PICHLER
Subject: Re: [Bug-AUCTeX] Problem with spaces in file names
Date: Sun, 20 Sep 2009 11:07:43 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)


Ralf Angeli wrote on 13.09.2009 18:14:
- I then installed MiKTeX 2.7 instead of the 2.8 version. It appears that MiKTeX 2.7 prints only the file name without path. With this, AucTeX is able to point its cursor to the error position when there is a blank anywhere in the path (output_2.7_space_in_path).

Okay, so the quotation marks are new in MiKTeX 2.8.

The problem should be fixed in CVS now.  I'd be grateful if you could
check if the new code works with MiKTeX 2.7 and 2.8.

And thanks very much for including the content of the output buffers.
This was really useful for the debugging work.
I tried the CVS version with MiKTeX 2.7 and 2.8 and everything works nicely with spaces in the path. Spaces in the filename give lots of problems, though (see below).

- I then tried a space in the file name for a path without a blank. In this case, AucTeX isn't able to correctly call LaTeX even for a test example without error. A call of LaTeX by
  latex  -interaction=nonstopmode "\input" "x x.tex"
  instead of (output_2.7_space_in_name)
  latex  -interaction=nonstopmode "\input" "\"x x.tex\""
  works flawlessly, though.

Hm, I think I saw this before on Windows but I cannot reproduce it on
GNU/Linux.  And I'm a bit reluctant to boot into Windows. (c:
I think, there are at least two problems with MiKTeX 2.8. Calling latex from the command line or from within Emacs with
latex "x x.tex"
works fine. In Windows, the quotation marks are removed from the argument and MiKTeX 2.8 is able to access and translate the respective LaTeX file. At least it worked that way with a simple C program that wrote the argv[] strings to a file. However, when calling latex with
latex "\"x x.tex\""
only the outer quotation marks are removed and MiKTeX 2.8 apparently cannot find the file "x x.tex". So, I would think that double quotation marks like "\" ... \"" should be avoided for a Windows-compatible version. However, when only removing the inner quotation marks from the default call and invoking latex by
latex -interaction=nonstopmode "\input" "x x.tex"
did not work either. There came the message "LaTeX: successfully formatted [0] pages" but in the buffer
. * *c:/Sync/test/x x out: 446  LaTeX [0]: exit      c:/Sync/test/
the text in the attached file output.1 was displayed. Instead of a file "x x.log", a file "x.log" was created (also attached). My little C program did not report me anything unexpected. On the other hand, the call works with
latex -interaction=nonstopmode "x x.tex"
You will find the file output.2 with the contents of the output buffer and the file "x x.log" attached. This is something certainly related to MiKTeX 2.8 and I can't remember that it worked that way with 2.7.

I can avoid having spaces in the file names. So, my problems are solved. However, if you want to track that down and if I can be of any help, just tell me what to do.

Kind regards,

Peter Pichler
Running `LaTeX' on `x x' with ``latex  -interaction=nonstopmode "\input" "x 
x.tex"''
This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8)
entering extended mode
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, 
german, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french, loaded.
("C:\Programme\MiKTeX 2.8\tex\latex\tools\x.tex"

LaTeX exited abnormally with code 1 at Sun Sep 20 10:51:20
This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (preloaded format=latex 
2009.9.5)  20 SEP 2009 10:51
entering extended mode
**\input x x.tex
("C:\Programme\MiKTeX 2.8\tex\latex\tools\x.tex"
! .
l.33   \batchmode \errmessage{}
                               \csname @@end\endcsname \end
This error message was generated by an \errmessage
command, so I can't give any explicit help.
Pretend that you're Hercule Poirot: Examine all clues,
and deduce the truth by order and method.

 ) 
Here is how much of TeX's memory you used:
 7 strings out of 495286
 177 string characters out of 3180690
 45021 words of memory out of 3000000
 3306 multiletter control sequences out of 15000+200000
 3640 words of font info for 14 fonts, out of 3000000 for 9000
 14 hyphenation exceptions out of 8191
 4i,0n,3p,100b,8s stack positions out of 5000i,500n,10000p,200000b,50000s

No pages of output.
Running `LaTeX' on `x x' with ``latex  -interaction=nonstopmode "x x.tex"''
This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8)
entering extended mode
("c:\Sync\test\x x.tex"
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, 
german, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french, loaded.
("C:\Programme\MiKTeX 2.8\tex\latex\base\article.cls"
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
("C:\Programme\MiKTeX 2.8\tex\latex\base\size10.clo"))
No file x*x.aux.
[1] ("c:\Sync\test\x x.aux") )
Output written on "x x.dvi" (1 page, 216 bytes).
Transcript written on "x x.log".

LaTeX finished at Sun Sep 20 10:58:15
This is pdfTeX, Version 3.1415926-1.40.10 (MiKTeX 2.8) (preloaded format=latex 
2009.9.5)  20 SEP 2009 10:58
entering extended mode
**x*x.tex
("c:\Sync\test\x x.tex"
LaTeX2e <2005/12/01>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, german-x-2009-06-19, ngerman-x-2009-06-19, french, loaded.
("C:\Programme\MiKTeX 2.8\tex\latex\base\article.cls"
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
("C:\Programme\MiKTeX 2.8\tex\latex\base\size10.clo"
File: size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
)
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
address@hidden
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
No file x*x.aux.
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
[1

] ("c:\Sync\test\x x.aux") ) 
Here is how much of TeX's memory you used:
 200 strings out of 495286
 2081 string characters out of 3180690
 46027 words of memory out of 3000000
 3488 multiletter control sequences out of 15000+200000
 3640 words of font info for 14 fonts, out of 3000000 for 9000
 14 hyphenation exceptions out of 8191
 23i,4n,17p,120b,107s stack positions out of 5000i,500n,10000p,200000b,50000s

Output written on "x x.dvi" (1 page, 216 bytes).

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


reply via email to

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