Anthony's variation works on my machine too (I already have latex and imagemagick installed and in the path). I like the trick of sending the output to /dev/null or NUL on windows. Any way to suppress the read input box that shows up during processing?