compile latex by command line code example Example: run latex from command line pdflatex yourfilename.tex