From e430972e8596710db4c566d84cf3248b12beef5f Mon Sep 17 00:00:00 2001 From: Gustav Eek Date: Wed, 15 May 2024 20:02:21 +0200 Subject: Annual 2024. Add Makefile for motions --- annual/2024/motions/Makefile | 11 +++++++++++ annual/2024/motions/drop.sed | 4 ++++ annual/2024/motions/options.tex | 1 + 3 files changed, 16 insertions(+) create mode 100644 annual/2024/motions/Makefile create mode 100644 annual/2024/motions/drop.sed create mode 100644 annual/2024/motions/options.tex (limited to 'annual') diff --git a/annual/2024/motions/Makefile b/annual/2024/motions/Makefile new file mode 100644 index 0000000..244dbc8 --- /dev/null +++ b/annual/2024/motions/Makefile @@ -0,0 +1,11 @@ +YL = $(basename $(wildcard *.yml)) + +all: $(addsuffix .pdf, $(YL)) + +PD = \ + -N -s -f markdown -t latex -H ../head.tex \ + -V classoption=a4paper + +$(addsuffix .pdf, $(YL)): %.pdf: %.yml %.md + cat < $*.md | sed -f ../pre.sed | sed -f drop.sed | \ + pandoc $(PD) --metadata-file=$*.yml -o $@ diff --git a/annual/2024/motions/drop.sed b/annual/2024/motions/drop.sed new file mode 100644 index 0000000..b4c87bb --- /dev/null +++ b/annual/2024/motions/drop.sed @@ -0,0 +1,4 @@ + +s/^.*DROP.*$/`{\\color{red!50!black}`{=latex}/ +s/^.*ADD.*$/`{\\color{green!33!black}`{=latex}/ +s/^.*END.*$/`}`{=latex}/ diff --git a/annual/2024/motions/options.tex b/annual/2024/motions/options.tex new file mode 100644 index 0000000..4bdf68e --- /dev/null +++ b/annual/2024/motions/options.tex @@ -0,0 +1 @@ +\PassOptionsToPackage{svgnames}{xcolor} -- cgit v1.2.3