tex → dvi → ps → png
platex
dvi
dvips
ps
pstoimg -antialias -scale 2 -transparent -crop a -out $file_out $file_in.ps
png