From 0a74790763c61bf5603e240b66579f7b00fce1df Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 30 Aug 2024 12:29:22 +0200 Subject: generate preview of paper front pages --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3