#!/bin/bash
cd /tmp
latex image${1}.tex > /dev/null
dvips image${1}.dvi -o > /dev/null
pstopnm image${1}.ps > /dev/null
pnmcrop image${1}001.ppm > image${1}.ppm
pnmtopng -transparent white image${1}.ppm > image${1}.png 

