mirror of https://github.com/eyhc1/rendercv.git
run latex twice for cross-referencing
This commit is contained in:
parent
87c79b97be
commit
681f582ec8
|
@ -500,17 +500,19 @@ def run_latex(latex_file_path: str) -> str:
|
||||||
)
|
)
|
||||||
|
|
||||||
# Run TinyTeX:
|
# Run TinyTeX:
|
||||||
def run():
|
|
||||||
with subprocess.Popen(
|
with subprocess.Popen(
|
||||||
[
|
[
|
||||||
executable,
|
executable,
|
||||||
f"{latex_file_name}",
|
f"{latex_file_name}",
|
||||||
|
"&&",
|
||||||
|
executable,
|
||||||
|
f"{latex_file_name}",
|
||||||
],
|
],
|
||||||
cwd=os.path.dirname(latex_file_path),
|
cwd=os.path.dirname(latex_file_path),
|
||||||
stdout=subprocess.PIPE,
|
# stdout=subprocess.PIPE,
|
||||||
stdin=subprocess.DEVNULL, # don't allow TinyTeX to ask for user input
|
stdin=subprocess.DEVNULL, # don't allow TinyTeX to ask for user input
|
||||||
text=True,
|
text=True,
|
||||||
encoding="utf-8",
|
shell=True,
|
||||||
) as latex_process:
|
) as latex_process:
|
||||||
output, error = latex_process.communicate()
|
output, error = latex_process.communicate()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue