Angus Leeming wrote: > Georg wrote: >> It seems that dvips is a bit behind and does not understand >> quoted filenames. > > Yes, I say this last night. > > It's possible that a wrapper to dvips could get around this problem. > Check out DTL (http://www.ctan.org/tex-archive/dviware/dtl/)
Ok, as proof of principle, on a teTeX 2 box I managed to manipulate a DVI file to reference a PostScript file containing spaces and to then create a valid PostScript file using dvips. $cat trial.tex \documentclass[a4paper]{article} \usepackage{graphicx} \begin{document} \section{This in insetgraphics} \includegraphics{sub\string~dir/im\string~ge.eps} foo \end{document} $ latex trial $ dv2dt trial.dvi > trial.dtl Edited the .dtl file by hand: -... 'PSfile="sub~dir/im~ge.eps" ...' +... 'PSfile="sub~dir/im ge.eps" ...' Translated back to a dvi file $ dt2dv trial.dtl trial2.dvi $ cp "sub~dir/im~ge.eps" "sub~dir/im ge.eps" $ dvips -o trial2.ps trial2 The resulting trial2.ps file works perfectly. It shouldn't be hard to write a wrapper for dvips to manipulate quoted file names in similar fashion. -- Angus