[OS X TeX] simpdftex and spaces in filenames

Bruno Voisin bvoisin at mac.com
Fri May 23 13:23:28 CEST 2008


Le 23 mai 08 à 11:27, Enrico Franconi a écrit :

> if a have a tex file with a space in its name, then simpdftex fails.
>
> simpdftex --mode dvips a\ b.tex
> [...]
>
> How can this be fixed? I tried to call it in various ways, but to no  
> avail.

A quick-and-dirty fix is two run simpdftex twice, with different  
syntaxes:

simpdftex a\ b.tex
simpdftex a\ b.dvi

First run creates "a b.dvi" but passes on filename ab.dvi to dvips  
which then fails. Second run applies directly dvips to "a b.dvi" and  
generates ab.ps then launches ps2pdf which creates ab.pdf.  
Extension .dvi in the second command is optional.

It seems the problem lies inside simpdftex in the variable

	nosuffixbasename=`printf "%s" ${basename}|sed 's/\.[^.]*$//'`

which eliminates the space you may have introduced through "\ " in  
Terminal. It's far beyond my programming abilities to propose a fix  
for that.

Bruno Voisin 
-------------------------- Helpful Info --------------------------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://www.esm.psu.edu/mac-tex/list/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
List Archive: http://tug.org/pipermail/macostex-archives/
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/



More information about the macostex-archives mailing list