Redirect stdout and stderr to /dev/null when running latex.