From 7c183e4e088985e7321eae0d899ec7ff480a71f0 Mon Sep 17 00:00:00 2001 From: Cedric Date: Fri, 3 Jan 2025 08:25:12 +0000 Subject: [PATCH] Fix standalone flowchart png generation in makefile --- book/figures/vars.tex | 1 + book/makefile | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/book/figures/vars.tex b/book/figures/vars.tex index b4bc120..d87e959 100644 --- a/book/figures/vars.tex +++ b/book/figures/vars.tex @@ -1,5 +1,6 @@ \documentclass[tikz]{standalone} \usepackage{tikz} +\usepackage{pgfplots} \usepackage[mode=match, reset-text-family=false]{siunitx} \DeclareSIUnit\degF{\text{°}F} \input{flowcharts_tikz.tex} diff --git a/book/makefile b/book/makefile index 788fa6f..cba31f7 100644 --- a/book/makefile +++ b/book/makefile @@ -91,10 +91,9 @@ tgt_figures := $(patsubst %.tex, %.png,$(src_figures)) # TODO: check if it works on github CI %.png: %.tex @echo "\input{./vars.tex}" > $@.in - # \b is backspace.. - @echo "\\\begin{document}" >> $@.in + @echo "\begin{document}" >> $@.in @cat $< >> $@.in - @echo "\\\end{document}" >> $@.in + @echo "\end{document}" >> $@.in $(LATEX) $@.in figures/export_figures.sh $@.pdf