python子进程和(lua)编译

2024-04-20 13:41:03 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试使用subprocess和下面的python脚本编译文档。我没有得到编译,只是这个提示在等待:

This is LuaTeX, Version 1.07.0 (TeX Live 2019/dev/Debian) 
restricted system commands enabled.
**

这个剧本怎么了?你知道吗

import subprocess

tex_file = r"processImage_equation.tex"

commande_lualatex = r"lualatex"
option1_lualatex = r"--interaction=nonstopmode"
option2_lualatex = r"--shell-escape"

subprocess.call([commande_lualatex,
                 option1_lualatex,
                 option2_lualatex,
                 tex_file], shell=True)

Tags: 文档脚本isversionshellthisfiletex