INNER CODE UNIT · Python

latex_command_conda

IvanIsCoding/ResuLLMe · src/render/__init__.py:39

            latex_command_conda = [tectonic_path] + [c for c in latex_command][1:]
            

        # Find the Tectonic Vendored Cache
        current_dir = pathlib.Path(__file__).resolve().parent
        cache_dir = current_dir.parents[1] / "tectonic_cache"

        # Inject Tectonic Environment Variables
        tectonic_env = os.environ.copy()
        tectonic_env["XDG_CACHE_HOME"] = str(cache_dir)
        tectonic_env["TECTONIC_CACHE_DIR"] = f"{str(cache_dir)}/tectonic_cache"

        # run latex command
        latex_process = subprocess.Popen(
            latex_command_conda, cwd=tmpdirname, env=tectonic_env,
        )
        latex_process.wait()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…