fix TinyTeX.render() bug

This commit is contained in:
Sina Atalay 2023-09-07 20:50:24 +02:00
parent 4dcea39c08
commit 3d4828660f
1 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,8 @@ import subprocess
def render(latexFilePath):
latexFilePath = os.path.normpath(latexFilePath)
latexFile = os.path.basename(latexFilePath)
if os.name == "nt":
tinytexPath = os.path.join(
os.path.dirname(__file__),
@ -17,11 +19,10 @@ def render(latexFilePath):
f"{tinytexPath}\\latexmk.exe",
"-lualatex",
# "-c",
"test.tex",
f"{latexFile}",
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"test.tex",
],
cwd=os.path.dirname(latexFilePath),
)