[OS X TeX] spaces in names

Massimiliano Gubinelli mgubi at mac.com
Thu Mar 16 12:55:27 EST 2006


thanks to all.

  to clarify my problem: I do not mind of \input files. All I'm  
trying to do is to compile a simple tex file whose name is "test  
1.tex" (with a space between test and 1). If I open it in TeXShop it  
doesn't compile either. The log window says

This is pdfeTeX, Version 3.141592-1.30.3-2.2 (Web2C 7.5.5)
\write18 enabled.
entering extended mode
! I can't find file `"test 1.tex"'.
<*> "test 1.tex"

Please type another input file name:


as in my previous attemps from the command line.
I do not understand why TeX puts double quotes around the file name  
when it reports the error.

Can somebody reproduce this?

I have TeXshop 2.08 and the Gerben Installation dated 2005/10/09.

thanks,
max


PS: I love Emacs...


On 16 Mar 2006, at 17:07, Roberto Avanzi wrote:

> On 16 Mar 2006, at 10:44, Peter Dyballa wrote:
>
>> Am 16.03.2006 um 15:17 schrieb Massimiliano Gubinelli:
>>
>>> could someone give me hints on what it wrong with me?
>>
>> Your *not* using Emacs, Massimiliano!
>>
>> I can do in GNU Emacs 22.0.50:
>>
>>
>> pete 180 /\ pushd ~/Quellen/texshopsource/More/
>>
>> pete 181 /\ pdflatex LaTeX\ Class\ -\ Article
>> This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)
>
> I think the reason it works is the recent Web2C version, not emacs.
> Empty spaces in the name of the MAIN file are not a problem even
> with TeXshop.  The files  "LaTeX Class - Article".aux etc are
> input from the LaTeX system itself, are passed to the TeX engine
> as strings, they are thus not really parsed for whitespaces,
> and they are supported.
>
> The problem Massimiliano is having is a different one and has
> to do with the working of the \input command (that interpretes
> whitespace as end of its argument, even if you just put braces).
> This has been changed only relatively recently in order to
> allow spaces in filenames, and this required changes in TeX's
> internals (to support the spaces) as well as in the \input command
> itself.  Typing \input{"file with spaces.tex"}
> is a bit awkward, but works, at least.
>
>  liebe Grüße
>
>   Roberto
>
>
> ------------------------- Info --------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
>          & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
>

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list