Re: [patch 13x] fix quoted filenames

2005-06-21 Thread Georg Baum
Am Dienstag, 21. Juni 2005 16:18 schrieb Angus Leeming: > However, whilst I have no problems with latex->dvi->clean dvi with the file > below, pdflatex isn't happy. > > ! LaTeX Error: Unknown graphics extension: .png". > > See the LaTeX manual or LaTeX Companion for explanation. > Type H for

Re: [patch 13x] fix quoted filenames

2005-06-21 Thread Angus Leeming
Georg Baum wrote: Bingo! Well done! That goes to Jean-Marc. I am going to commit the attached patches now. Now uploaded to http://wiki.lyx.org/Windows/LyX136pre as Version 17. However, whilst I have no problems with latex->dvi->clean dvi with the file below, pdflatex isn't happy. ! LaTeX

Re: [patch 13x] fix quoted filenames

2005-06-21 Thread Georg Baum
Angus Leeming wrote: > ! LaTeX Error: File `"a space"' not found. > > ... Oh OK ;-) ... Angus creates "a space.eps" ... Well I sent that too: a nifty hand crafted .eps file with a space (and a box around it so you can see it) :-) > Bingo! Well done! That goes to Jean-Marc. I am going to commit

Re: [patch 13x] fix quoted filenames

2005-06-20 Thread Angus Leeming
Angus Leeming wrote: Could the windows guys please try whether the attached latex file works? You need of course the cleandvi script to postprocess the DVI file. If it works I'll produce patches for 1.3 and 1.4. Georg Bingo! Well done! Whilst we're at it, pdflatex is happy too. Angus

Re: [patch 13x] fix quoted filenames

2005-06-20 Thread Angus Leeming
Georg Baum wrote: Am Montag, 20. Juni 2005 10:16 schrieb Jean-Marc Lasgouttes: What about \string" ? That works on tetex 3.0 :-)) Could the windows guys please try whether the attached latex file works? You need of course the cleandvi script to postprocess the DVI file. If it works I'll

Re: [patch 13x] fix quoted filenames

2005-06-20 Thread Georg Baum
Am Montag, 20. Juni 2005 10:16 schrieb Jean-Marc Lasgouttes: > What about \string" ? That works on tetex 3.0 :-)) Could the windows guys please try whether the attached latex file works? You need of course the cleandvi script to postprocess the DVI file. If it works I'll produce patches for 1.

Re: [patch 13x] fix quoted filenames

2005-06-20 Thread Georg Baum
Jean-Marc Lasgouttes wrote: > What about \string" ? If it works it would of course be better. I'll try that when I use the uptodate box the next time. Georg

Re: [patch 13x] fix quoted filenames

2005-06-20 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> Am Donnerstag, 16. Juni 2005 17:13 schrieb Angus Leeming: >> Georg Baum wrote: > Does the following work with the babel variant? >> > >> > \mdqoff\includegraphics{"dir with spaces/picture with Georg> spaces".eps}\mdqon >> This works

Re: [patch 13x] fix quoted filenames

2005-06-17 Thread Georg Baum
Am Donnerstag, 16. Juni 2005 17:13 schrieb Angus Leeming: > Georg Baum wrote: > > Does the following work with the babel variant? > > > > \mdqoff\includegraphics{"dir with spaces/picture with spaces".eps}\mdqon > > This works perfectly. Fine. The problem is of course that \mdqon and \mdqoff are

Re: [patch 13x] fix quoted filenames

2005-06-16 Thread Angus Leeming
Georg Baum wrote: That rings a bell: babel redefines " to be an active character, so that you can type "o to get an รถ etc. Does the following work with the babel variant? \mdqoff\includegraphics{"dir with spaces/picture with spaces".eps}\mdqon This works perfectly. Angus \documentclass[ge

Re: [patch 13x] fix quoted filenames

2005-06-16 Thread Angus Leeming
Angus Leeming wrote: Anyway, the problem is weird. This compiles: \documentclass{article} \usepackage{graphicx} \begin{document} \includegraphics{"dir with spaces/picture with spaces".eps} \end{document} This doesn't: \documentclass[german]{article} \usepackage{graphicx} \usepackage{babel} \be

Re: [patch 13x] fix quoted filenames

2005-06-16 Thread Georg Baum
Angus Leeming wrote: > Jean-Marc Lasgouttes wrote: >> Wouldn't it be better if the .eps extension was outside of the >> "quotes"? > > I think that's what Georg's patch tries to do, although clearly something > is going wrong. No, I added it within the quotes. Why would outside the quotes be bett

Re: [patch 13x] fix quoted filenames

2005-06-16 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: Wouldn't it be better if the .eps extension was outside of the "quotes"? I think that's what Georg's patch tries to do, although clearly something is going wrong. Anyway, the problem is weird. This compiles: \documentclass{article} \usepackage{graphicx} \begin{do

Re: [patch 13x] fix quoted filenames

2005-06-16 Thread Georg Baum
Angus Leeming wrote: > It doesn't work. Not the .png extension which should be .eps: Aah yes. It seems that we need to put the changes into preparefile() which I wanted to avoid because we would need it at several places. > \begin{flushleft}\includegraphics[% >width=0.9\columnwidth, >hei

Re: [patch 13x] fix quoted filenames

2005-06-16 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Angus Leeming wrote: >> Jean-Marc Lasgouttes wrote: Georg> The attached patch should fix that for 1.3.6. I could not Georg> really test, because my latex on this machine is too old. Maybe Georg> a windows user who has spaces in the

Re: [patch 13x] fix quoted filenames

2005-06-16 Thread Angus Leeming
Angus Leeming wrote: Jean-Marc Lasgouttes wrote: Georg> The attached patch should fix that for 1.3.6. I could not Georg> really test, because my latex on this machine is too old. Maybe Georg> a windows user who has spaces in the path of his temp dir can Georg> test this? It should fix the recen

Re: [patch 13x] fix quoted filenames

2005-06-16 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: Georg> The attached patch should fix that for 1.3.6. I could not Georg> really test, because my latex on this machine is too old. Maybe Georg> a windows user who has spaces in the path of his temp dir can Georg> test this? It should fix the recently reported problems.

Re: [patch 13x] fix quoted filenames

2005-06-16 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> The attached patch should fix that for 1.3.6. I could not Georg> really test, because my latex on this machine is too old. Maybe Georg> a windows user who has spaces in the path of his temp dir can Georg> test this? It should fix the r

[patch 13x] fix quoted filenames

2005-06-16 Thread Georg Baum
The automatic format selection of latex does not work if the file name is quoted: \includegraphics{file} will find file.eps, but \includegraphics{"file"} will fail. The attached patch should fix that for 1.3.6. I could not really test, because my latex on this machine is too old. Maybe a windows