JelteF / PyLaTeX

A Python library for creating LaTeX files
https://jeltef.github.io/PyLaTeX/
MIT License
2.27k stars 289 forks source link

No examples or methods for generating PDFs directly from the existing(own written) latex(.tex) files #210

Open hygull opened 6 years ago

hygull commented 6 years ago

I found, there are no methods have been suggested to generate the PDFs directly from the existing/own written latex files.

scottwernervt commented 6 years ago

@hygull You can generate a PDF from an existing LaTeX file using latexmk or pdflatex.

hygull commented 6 years ago

@scottwernervt , thanks for your suggestion & help.

I think it is the command line way to generate the PDF from the existing file from the existing(own written) latex files.

Mean to say we have to execute commands using Python.

Eg. os.system("latexmk -pdf"); is the statement for executing latexmk -pdf command.

I will try to compile my existing latex files with the help of these documentation links.

Suggest me if I am wrong.

Thanks again.