[Thunar-dev] Thumbnails for HTML documents

Erlend Davidson E.R.M.Davidson at sms.ed.ac.uk
Fri Jan 5 16:20:09 CET 2007



Benedikt Meurer wrote:
> 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] ?



More information about the Thunar-dev mailing list