From 240fcd0d43760b314016efb278716de9b79fbc21 Mon Sep 17 00:00:00 2001 From: Martin Stancsics Date: Sun, 29 Sep 2024 12:37:51 +0200 Subject: [PATCH] Add latex dep for matplotlib --- Snakefile | 5 +++-- src/util/makeutils.py | 4 ++++ tl_packages.txt | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Snakefile b/Snakefile index 8d24403..2718015 100644 --- a/Snakefile +++ b/Snakefile @@ -55,8 +55,9 @@ rule update_latex_deps: dep_file = "tl_packages.txt" shell: "python src/util/makeutils.py collect-latex-packages \ - --add-biber --add-latexmk --add-manim-deps --check-against-tl \ - --output-file tl_packages.txt --force-add ms {input.deps}" + --add-biber --add-latexmk --add-manim-deps --add-matplotlib-deps \ + --check-against-tl --output-file tl_packages.txt --force-add ms \ + {input.deps}" rule paper: diff --git a/src/util/makeutils.py b/src/util/makeutils.py index c5a22e4..da47cd2 100644 --- a/src/util/makeutils.py +++ b/src/util/makeutils.py @@ -99,6 +99,7 @@ def collect_latex_packages( add_biber: bool = False, add_latexmk: bool = False, add_manim_deps: bool = False, + add_matplotlib_deps: bool = False, check_against_tl: bool = False, force_add: list[str] = [], print_console: bool = False, @@ -164,6 +165,9 @@ def collect_latex_packages( ] ) + if add_matplotlib_deps: + deps.add("type1cm") + packages = set() for dep in deps: req = requests.get(f"https://www.ctan.org/json/2.0/pkg/{dep}") diff --git a/tl_packages.txt b/tl_packages.txt index 593fa72..9d2d69f 100644 --- a/tl_packages.txt +++ b/tl_packages.txt @@ -65,6 +65,7 @@ snapshot standalone tipa tools +type1cm uniquecounter url wasy