Compile Latex file using a python script
Question: I am able to use python script to create a LaTeX file, but I want to take that
file and compile it, so it creates a pdf by using a python script. I have seen
some things using os and subprocess but I really don't understand it.


Answer: Try this out.

    
    
      import os  
      os.system("pdflatex mylatex.tex")
    

