latex execute shell command code example Example: run latex from command line pdflatex yourfilename.tex