aboutsummaryrefslogtreecommitdiffstats
path: root/.agents/skills/ml-paper-writing/templates/neurips2025/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '.agents/skills/ml-paper-writing/templates/neurips2025/Makefile')
-rw-r--r--.agents/skills/ml-paper-writing/templates/neurips2025/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/.agents/skills/ml-paper-writing/templates/neurips2025/Makefile b/.agents/skills/ml-paper-writing/templates/neurips2025/Makefile
new file mode 100644
index 0000000..9baab4a
--- /dev/null
+++ b/.agents/skills/ml-paper-writing/templates/neurips2025/Makefile
@@ -0,0 +1,36 @@
+FIGURES_FOLDER := figures
+PDFS := \
+$(filter-out $(wildcard $(FIGURES_FOLDER)/*-crop.pdf),$(wildcard $(FIGURES_FOLDER)/*.pdf)) \
+$(filter-out $(wildcard $(FIGURES_FOLDER)/**/*-crop.pdf),$(wildcard $(FIGURES_FOLDER)/**/*.pdf))
+CROPPED_PDFS := $(PDFS:.pdf=-crop.pdf)
+
+all: main.pdf
+
+%.pdf: %.tex Makefile $(CROPPED_PDFS)
+ pdflatex -synctex=1 -interaction=nonstopmode $<
+ -bibtex $*.aux
+ pdflatex -synctex=1 -interaction=nonstopmode $<
+ pdflatex -synctex=1 -interaction=nonstopmode $<
+
+.PHONY: figures
+figures: $(CROPPED_PDFS)
+
+.PRECIOUS: $(CROPPED_PDFS)
+%-crop.pdf: %.pdf Makefile
+ pdfcrop $<
+
+.PHONY: clean upgrade
+clean:
+ find . -maxdepth 1 \
+ \( -name "*.aux" -o -name "*.bbl" -o -name "*.blg" -o \
+ -name "*.log" -o -name "*.out" -o -name "*.pdf" -o \
+ -name "*.synctex.gz" \) | xargs $(RM)
+ find $(FIGURES_FOLDER) -name "*-crop.pdf" | xargs $(RM)
+
+YEAR := 2025
+
+upgrade:
+ curl -O https://media.neurips.cc/Conferences/NeurIPS$(YEAR)/Styles.zip
+ unzip -u Styles.zip
+ mv Styles/neurips_${YEAR}.sty neurips.sty
+ $(RM) -r Styles.zip Styles