mirror of https://github.com/eyhc1/rendercv.git
don't use latexmk
This commit is contained in:
parent
e3cb9deffd
commit
7e175fee1e
|
@ -372,7 +372,7 @@ def run_latex(latex_file_path):
|
||||||
"bin",
|
"bin",
|
||||||
"windows",
|
"windows",
|
||||||
)
|
)
|
||||||
executable = os.path.join(tinytex_path, "latexmk.exe")
|
executable = os.path.join(tinytex_path, "lualatex.exe")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
tinytex_path = os.path.join(
|
tinytex_path = os.path.join(
|
||||||
|
@ -382,16 +382,12 @@ def run_latex(latex_file_path):
|
||||||
"bin",
|
"bin",
|
||||||
"x86_64-linux",
|
"x86_64-linux",
|
||||||
)
|
)
|
||||||
executable = os.path.join(tinytex_path, "latexmk")
|
executable = os.path.join(tinytex_path, "lualatex")
|
||||||
|
|
||||||
subprocess.run(
|
subprocess.run(
|
||||||
[
|
[
|
||||||
executable,
|
executable,
|
||||||
"-lualatex",
|
|
||||||
f"{latex_file}",
|
f"{latex_file}",
|
||||||
"-synctex=1",
|
|
||||||
"-interaction=nonstopmode",
|
|
||||||
"-file-line-error",
|
|
||||||
],
|
],
|
||||||
cwd=os.path.dirname(latex_file_path),
|
cwd=os.path.dirname(latex_file_path),
|
||||||
stdout=subprocess.DEVNULL, # suppress latexmk output
|
stdout=subprocess.DEVNULL, # suppress latexmk output
|
||||||
|
|
Loading…
Reference in New Issue