Added optional argument for specifying latex command to latex2pdf().