Skip to content

Commit 6c6ede8

Browse files
committed
docs: cleanup image generation scripts
1 parent e747c7f commit 6c6ede8

96 files changed

Lines changed: 487724 additions & 191 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

publication/ICREC_Rome/Makefile

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,40 @@
11
TEX = main.tex
22
PDF = $(TEX:.tex=.pdf)
3+
SVG_SRC = ../output/figures
4+
ASSETS = assets
5+
6+
# Figures used in the paper
7+
FIGURES = \
8+
savings_vs_overhead_all \
9+
threshold_space_overview \
10+
margin_vs_best_overview \
11+
multiyear_avg_score
12+
13+
SVG_TARGETS = $(addprefix $(ASSETS)/, $(addsuffix .svg, $(FIGURES)))
14+
EPS_TARGETS = $(addprefix $(ASSETS)/, $(addsuffix .eps, $(FIGURES)))
315

416
all: $(PDF)
517

6-
$(PDF): $(TEX)
18+
.PRECIOUS: $(SVG_TARGETS)
19+
20+
$(PDF): $(EPS_TARGETS) $(TEX)
721
latexmk -pdfps $(TEX)
822

23+
# Copy SVGs from publication/output/figures/ to assets/
24+
$(ASSETS)/%.svg: $(SVG_SRC)/%.svg
25+
cp $< $@
26+
27+
# Convert SVG -> EPS for the latex -> dvi -> ps -> pdf pipeline
28+
$(ASSETS)/%.eps: $(ASSETS)/%.svg
29+
rsvg-convert -f eps -o $@ $<
30+
31+
# Regenerate SVGs from the simulation results
32+
svgs:
33+
cd ../.. && uv run scripts/visualize_results.py
34+
35+
.PHONY: clean all svgs
36+
937
clean:
1038
latexmk -c $(TEX)
1139
rm -f *.bbl *.dvi *.ps main.pdf
12-
13-
.PHONY: all clean
40+
rm -f $(addprefix $(ASSETS)/, *.svg *.eps)

publication/ICREC_Rome/assets/margin_vs_best_overview.eps

Lines changed: 37898 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)