latex $1.tex dvips -Ppdf -E $1.dvi -o $1.eps gs -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pngalpha -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r600 -sOutputFile=$1.png $1.eps convert $1.png +level-colors white, $1_white.png
latex $1.tex dvips -Ppdf -E $1.dvi -o $1.eps gs -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pngalpha -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r600 -sOutputFile=$1.png $1.eps convert $1.png +level-colors white, $1_white.png