From 03d52d93dabb15c16b9b8a0ca4834c788a3b8c33 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Fri, 17 Nov 2023 18:50:13 +0100 Subject: [PATCH] run latex twice for cross-referencing --- rendercv/rendering.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rendercv/rendering.py b/rendercv/rendering.py index 7bd8928..dfdb20e 100644 --- a/rendercv/rendering.py +++ b/rendercv/rendering.py @@ -448,11 +448,15 @@ def run_latex(latex_file_path: str) -> str: [ executable, f"{latex_file_name}", + "&&", + executable, + f"{latex_file_name}", ], 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 text=True, + shell=True, ) as latex_process: output, error = latex_process.communicate()