From 3d4828660faf60ce1db16dfc28e6b0c4e67d0b4d Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Thu, 7 Sep 2023 20:50:24 +0200 Subject: [PATCH] fix TinyTeX.render() bug --- rendercv/tinytex/render.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rendercv/tinytex/render.py b/rendercv/tinytex/render.py index ac93e41..45d3550 100644 --- a/rendercv/tinytex/render.py +++ b/rendercv/tinytex/render.py @@ -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), )