summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-08-30 12:29:22 +0200
committerJonas Smedegaard <dr@jones.dk>2024-08-30 13:53:26 +0200
commit0a74790763c61bf5603e240b66579f7b00fce1df (patch)
tree9ba9273b1ff83f64fe34b5f418df017cc1622ace /Makefile
parenta1c1cbe4a877879a69027851bb57dbf8ddd7abbc (diff)
generate preview of paper front pages
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 807e0a8..bdfcea1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+PAPERS = $(wildcard report/*/*.pdf)
+
all: render cal-render publish
preview:
@@ -19,3 +21,11 @@ cal-render:
cal-publish:
rsync -av --delete-after events/study www-ruc@xayide.jones.dk:public_websites/play.abcde.../events/
+
+frontpages: $(addsuffix /paper.svg,$(dir $(PAPERS)))
+
+%.svg:
+# pdftocairo -f 1 -l 1 -svg "$(wildcard $(dir $@)/*.pdf)" "$@"
+# dvisvgm --pdf --optimize --font-format=woff2 --output=$@ "$(wildcard $(dir $@)/*.pdf)"
+ dvisvgm --pdf --optimize --no-fonts --output=$@ "$(wildcard $(dir $@)/*.pdf)"
+# pdf2svg "$(wildcard $(dir $@)/*.pdf)" $@ 1