From: Ralf H. <hem...@ri...> - 2004-08-26 10:41:01
|
Hello Jay, > It would be easy enough to have ps2image create the necessary > directory, but another problem is that file.ps will be created as > ./dir/file.ps. This would occur (in texfile.makeimage) before > ps2image is called, and if htmldirectory isn't ".", then the png file > will be htmldir/dir/file.png. So both directories ./dir and > htmldir/dir would have to exist. It would be nice if file.ps were just > ./file.ps, but the ps file name is made by TeX based on the image name > dir/file, and I don't know how to (reasonably) strip off the directory > name in TeX. Well, so let us convince the \endimage macro to generate only the filename (file.ps) instead of (dir/file.ps). I have not incorporated it locally into my hyperlatex.sty but as you can see from the attachment, it should be enough to replace the line \jobname.dvi\space>\space\im...@na...^^J% in the \endimage macro by \jobname.dvi\space>\space\strip{\im...@na...}^^J% (of course after placing the \strip macro somewhere into the code). Whether you include the .ps or write it behind } does not matter. The only restriction of my \strip macro is, that filenames (including dirs) should not contain a semicolon (;) right after a slash (/). (I don't think that is a big restriction.) Ah, and don't forget to convince ps2image to remove this temporary .ps file. Hope that helps Ralf BTW, I still somehow favour an environment where I don't have to give a filename argument. |