[Thunar-dev] Thumbnails for HTML documents
Benedikt Meurer
benedikt.meurer at unix-ag.uni-siegen.de
Sun Jan 7 21:55:48 CET 2007
Erlend Davidson wrote:
>>> Attached a rough latex thumbnailer. Uses latex to generate a dvi and
>>> then convert to output a png.
>>>
>> You should cleanup the temporary files used by your script.
>>
> Latex can leave quite a lot of temporary files behind after a compile.
> How should I deal with these temporary files? If the original latex
> file is document.tex then the temporary files generated by latex will be
> document.[aux,log,toc] (sometimes there are more if there are errors, or
> bibtex files) - but I'm not currently checking to see if files by these
> names are already in /tmp ... so I might be overwriting some other log file.
>
> Should I create a subdirectory in /tmp (maybe the name of which is the
> md5sum of document.tex??) compile into that directory (so the .dvi file
> and all the temporary files go in there) and then rm -r /tmp/[directory] ?
Yes, or use mkdtemp() to create a temporary directory.
Benedikt
More information about the Thunar-dev
mailing list