[英]Compile Latex file using a python script
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. 我能够使用python脚本创建一个LaTeX文件,但我想获取该文件并进行编译,因此它使用python脚本创建了一个pdf。 I have seen some things using os and subprocess but I really don't understand it.
我看过一些使用os和subprocess的东西,但我真的不明白。
Try this out. 试试吧。
import os
os.system("pdflatex mylatex.tex")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.