From 8cbc31028383428a59eadfd99ee56f76f637a50f Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Tue, 24 Apr 2018 22:03:12 +0200 Subject: Flyer for event notification for May first added Including Makefile and wrapper LaTeX scripts --- flyers/event-info/Makefile | 43 +++++++++++++++++++++ .../flygblad-lagring-foer-delning-2018.odt | Bin 0 -> 107898 bytes flyers/event-info/master.tex | 7 ++++ 3 files changed, 50 insertions(+) create mode 100644 flyers/event-info/Makefile create mode 100644 flyers/event-info/flygblad-lagring-foer-delning-2018.odt create mode 100644 flyers/event-info/master.tex (limited to 'flyers/event-info') 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 Binary files /dev/null and b/flyers/event-info/flygblad-lagring-foer-delning-2018.odt 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} -- cgit v1.2.3