From: Ralf H. <ra...@he...> - 2004-08-24 07:55:49
|
Hello, I had a problem when using hyperlatex -image in conjunction with the default \htmldirectory{.}. hyperlatex produces a file.makeimage with the command mv file.png . Of course this results in an error since the file is already there and cannot be moved to itself. Yes, it would be possible to convince my Makefile to ignore such an error, but I think I have another solution. See the modified files in the attachment. hyperlatex.sty: I have modified \endimage to produce a command suitable for the modified ps2image. So instead of ps2image -png ... file.ps > file.png mv file.png . it will produce ps2image ... file.ps htmldir/file.png ps2image: This script recognises the target filetype from a parameter that ends in .png or .gif. The extension .ps is always assumed to be the input filename. Since the target filename includes the targed directory, an additional move of the file is unnecessary. It even seems ps2image is a bit shorter. ;-) The only problem that remains is the following. It is now possible to say \begin{image}{dir/file} ... \end{image} and the picture file.png (or file.gif) will be generated in the subdirectory 'dir', but only if 'dir' already exists. There is no code at the moment, that would generate such a missing directory. Maybe I could think about putting some extension code into my rhxxname package, but this will take some more spare time. Best regards Ralf |