summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@etraveli.com>2018-04-24 22:03:12 +0200
committerGustav Eek <gustav.eek@etraveli.com>2018-04-24 22:03:12 +0200
commit8cbc31028383428a59eadfd99ee56f76f637a50f (patch)
tree81d52c40d6e7418b2f8654bb29423fb3157e8d5e
parent17aa6b22ea19a44ce2dd48a83fb7effb411a84ad (diff)
Flyer for event notification for May first added
Including Makefile and wrapper LaTeX scripts
-rw-r--r--flyers/event-info/Makefile43
-rw-r--r--flyers/event-info/flygblad-lagring-foer-delning-2018.odtbin0 -> 107898 bytes
-rw-r--r--flyers/event-info/master.tex7
3 files changed, 50 insertions, 0 deletions
diff --git a/flyers/event-info/Makefile b/flyers/event-info/Makefile
new file mode 100644
index 0000000..037181e
--- /dev/null
+++ b/flyers/event-info/Makefile
@@ -0,0 +1,43 @@
+
+ALL = \
+ event-info-single.pdf \
+ event-info.pdf \
+
+SEND_FILES = $(ALL)
+
+all: $(ALL)
+
+fripost-mayday-flyer.pdf: fripost-mayday-flyer-single.pdf
+ pdftk $< cat 1 1 output $@
+
+event-info-single.pdf: master.tex flygblad-lagring-foer-delning-2018.pdf
+ jobname=$(basename $@) ;\
+ log=$(addsuffix .log, $(basename $@)) ;\
+ count=5 ;\
+ pdflatex -jobname $$jobname $< ;\
+ while egrep -s 'Rerun (LaTeX|to get cross-references right)' $$log && [ $$count -gt 0 ] ;\
+ do echo "Rerunning latex...." ; pdflatex -jobname $$jobname $< ;\
+ count=`expr $$count - 1`;\
+ done;
+
+# General cases
+
+%.pdf: %-single.pdf
+ pdftk $< cat 1 1 output $@
+
+%.pdf: %.odt
+ libreoffice --headless "-env:UserInstallation=file:///tmp/lo-$$" --convert-to pdf $<
+
+%.png: %.pdf
+ convert $< $@
+
+# Sends to fripost.org for publication
+
+send:
+ rsync -ruvp --chmod=Dugo+rx,Fugo+r $(SEND_FILES) www.fripost.org:/var/www/fripost.org/material/
+ @echo; echo Now avialable as; for f in $(SEND_FILES); do echo " - https://fripost.org/material/$$f"; done
+
+clean:
+ rm -fr $(ALL)
+
+SHELL = /bin/bash
diff --git a/flyers/event-info/flygblad-lagring-foer-delning-2018.odt b/flyers/event-info/flygblad-lagring-foer-delning-2018.odt
new file mode 100644
index 0000000..eb20f89
--- /dev/null
+++ b/flyers/event-info/flygblad-lagring-foer-delning-2018.odt
Binary files differ
diff --git a/flyers/event-info/master.tex b/flyers/event-info/master.tex
new file mode 100644
index 0000000..e102b16
--- /dev/null
+++ b/flyers/event-info/master.tex
@@ -0,0 +1,7 @@
+\documentclass[a4paper, 11pt]{article}
+\usepackage[a4paper, margin = 0pt]{geometry}
+\usepackage{pdfpages}
+\pagestyle{empty}
+\begin{document}
+\includepdf[pages = {1, 2, 2, 1}, nup = 2x2]{flygblad-lagring-foer-delning-2018.pdf}
+\end{document}