mirror of https://github.com/eyhc1/rendercv.git
fix TinyTeX.render() bug
This commit is contained in:
parent
4dcea39c08
commit
3d4828660f
|
@ -4,6 +4,8 @@ import subprocess
|
||||||
|
|
||||||
def render(latexFilePath):
|
def render(latexFilePath):
|
||||||
latexFilePath = os.path.normpath(latexFilePath)
|
latexFilePath = os.path.normpath(latexFilePath)
|
||||||
|
latexFile = os.path.basename(latexFilePath)
|
||||||
|
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
tinytexPath = os.path.join(
|
tinytexPath = os.path.join(
|
||||||
os.path.dirname(__file__),
|
os.path.dirname(__file__),
|
||||||
|
@ -17,11 +19,10 @@ def render(latexFilePath):
|
||||||
f"{tinytexPath}\\latexmk.exe",
|
f"{tinytexPath}\\latexmk.exe",
|
||||||
"-lualatex",
|
"-lualatex",
|
||||||
# "-c",
|
# "-c",
|
||||||
"test.tex",
|
f"{latexFile}",
|
||||||
"-synctex=1",
|
"-synctex=1",
|
||||||
"-interaction=nonstopmode",
|
"-interaction=nonstopmode",
|
||||||
"-file-line-error",
|
"-file-line-error",
|
||||||
"test.tex",
|
|
||||||
],
|
],
|
||||||
cwd=os.path.dirname(latexFilePath),
|
cwd=os.path.dirname(latexFilePath),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue