aboutsummaryrefslogtreecommitdiffstats
path: root/annual
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2024-05-15 20:02:21 +0200
committerGustav Eek <gustav.eek@fripost.org>2024-05-17 21:46:11 +0200
commite430972e8596710db4c566d84cf3248b12beef5f (patch)
tree4c966cdb4f0fd1b2cc299e13b357c2c07034a2ab /annual
parent547615de58b7013381cb44e920ddcb0168b32375 (diff)
Annual 2024. Add Makefile for motions
Diffstat (limited to 'annual')
-rw-r--r--annual/2024/motions/Makefile11
-rw-r--r--annual/2024/motions/drop.sed4
-rw-r--r--annual/2024/motions/options.tex1
3 files changed, 16 insertions, 0 deletions
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}