Skip to content

Commit

Permalink
Add latex dep for matplotlib
Browse files Browse the repository at this point in the history
  • Loading branch information
stanmart committed Sep 29, 2024
1 parent 54c662a commit 240fcd0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions src/util/makeutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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}")
Expand Down
1 change: 1 addition & 0 deletions tl_packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ snapshot
standalone
tipa
tools
type1cm
uniquecounter
url
wasy
Expand Down

0 comments on commit 240fcd0

Please sign in to comment.