Eitan Gurari <[EMAIL PROTECTED]> wrote: > > > There is an option to send output files (.html,.css,.png) files to > > > a directory other than the current directory. For example > > > > > > htlatex sample2e "" "" "-d~/home_page/test" > > > > > > will send the output files to ~/home_page/test. > > > Well, it would be nice if the temporary directory was automatically > > created if it doesn't exist. But what I'd appreciate even more is if it > > would (or is?) possible to permanently set the -d switch, so that I > > don't need to type it every time. > > That can be done by adding in the htlatex-like script files the -d > switch to the t4ht records, e.g., > > t4ht ... -d~/WWW/temp/ > > Similarly, within mk4ht add the -d switch to the trailing quoted "..." > segments, e.g., > > "ht", "htlatex", "latex", "", "", "-cvalidatehtml > -d~/WWW/temp/", > > It doesn't seem appropriate to introduce such a switch permanently > as different users might prefer different directories for their > output.
I think you are right that this switch should not be added permanently. But I don't think the suggestion to change htlatex or mk4ht works well. If a new version of tex4ht is installed, it would overwrite my changes; or if I keep my changed versions in an other bin directory, I'll loose any changes in the script that might be needed for the new version. What I would prefer is that one of the central scripts (e.g. mk4ht) source a configuration file, e.g. /etc/tex4ht.cfg and ~/.tex4ht.cfg, in that order, and set any commandline switches specified in there. I'd prefer mk4ht over htlatex, because it will also cover other output formats. I'm willing to write a patch for that if you agree. Do you mind if I use additional Perl modules (AppConfig, e.g.)? Regards, Frank -- Frank Küster Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich Debian Developer (teTeX)

