Fix makefile standalone flowchart png generation

This commit is contained in:
Cedric
2025-01-03 08:25:12 +00:00
parent c99efe6f20
commit 7f6fde9e42
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
\documentclass[tikz]{standalone} \documentclass[tikz]{standalone}
\usepackage{tikz} \usepackage{tikz}
\usepackage{pgfplots}
\usepackage[mode=match, reset-text-family=false]{siunitx} \usepackage[mode=match, reset-text-family=false]{siunitx}
\DeclareSIUnit\degF{\text{°}F} \DeclareSIUnit\degF{\text{°}F}
\input{flowcharts_tikz.tex} \input{flowcharts_tikz.tex}

View File

@@ -90,11 +90,10 @@ tgt_figures := $(patsubst %.tex, %.png,$(src_figures))
# TODO: check if it works on github CI # TODO: check if it works on github CI
%.png: %.tex %.png: %.tex
@echo "\input{./vars.tex}" > $@.in @printf '%s\n' "\input{./vars.tex}" > $@.in
# \b is backspace.. @printf '%s\n' "\begin{document}" >> $@.in
@echo "\\\begin{document}" >> $@.in
@cat $< >> $@.in @cat $< >> $@.in
@echo "\\\end{document}" >> $@.in @printf '%s\n' "\end{document}" >> $@.in
$(LATEX) $@.in $(LATEX) $@.in
figures/export_figures.sh $@.pdf figures/export_figures.sh $@.pdf