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] ?
_______________________________________________
Thunar-dev mailing list
Thunar-dev@xfce.org
http://foo-projects.org/mailman/listinfo/thunar-dev

Reply via email to