summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile19
-rw-r--r--inquiries/2019-03-28-flfd.mdwn6
-rw-r--r--sed/latex.sed18
3 files changed, 42 insertions, 1 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..794a87c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+ALL = \
+pdf/2019-03-28-flfd.pdf
+
+all: pdf $(ALL)
+
+OPT_PANDOC = \
+ -f markdown \
+ -t latex \
+ -V documetclass=article -V classoption=twocolumn \
+
+
+pdf/2019-03-28-flfd.pdf: inquiries/2019-03-28-flfd.mdwn
+ cat $< | sed -f sed/latex.sed | pandoc $(OPT_PANDOC) -o $@
+
+pdf:
+ mkdir -p $@
+
+clean:
+ rm -fr pdf
diff --git a/inquiries/2019-03-28-flfd.mdwn b/inquiries/2019-03-28-flfd.mdwn
index 61f49a7..465b769 100644
--- a/inquiries/2019-03-28-flfd.mdwn
+++ b/inquiries/2019-03-28-flfd.mdwn
@@ -1,4 +1,8 @@
-[[!meta title="Utredning om utökad lagring i Lagring för delning"]]
+[[!meta
+ title="Utredning om utökad lagring i Lagring för delning"
+ author="Gustav Eek och Stian Rødven Eide"
+ date="mars--april 2019"
+]]
[[!tag utredning]]
[[!tag inquiry]]
diff --git a/sed/latex.sed b/sed/latex.sed
new file mode 100644
index 0000000..1c46d3e
--- /dev/null
+++ b/sed/latex.sed
@@ -0,0 +1,18 @@
+#!/bin/sed
+#
+# Prepare for ODT
+#
+# This should be used after the markdown filter
+/^\[\[!meta/,/^\]\]/ {
+ s/^\[\[!meta/---/
+ s/^\]\]/.../
+ s/ *\(.*\)="\(.*\)"/\1: \2/
+}
+
+/^\[\[!tag/ d
+/^\[\[!toc/ d
+/^\*\*Innehåll\*\*$/ d
+
+s/DNS/\\textsc{dns}/
+s/ISBN/\\textsc{isbn}/
+