Generalized latex2pdf to allow specification of latex binary.