commit 57b5113431c34635fd794c7c3f31cef2105b2046 Author: Peder Bergebakken Sundt Date: Mon Oct 7 22:04:35 2019 +0200 Initial commit diff --git a/footer.md b/footer.md new file mode 100644 index 0000000..f2d864e --- /dev/null +++ b/footer.md @@ -0,0 +1,24 @@ + +\newpage + +# Underskrifter + +Peder Bergebakken Sundt\newline\newline + +__________________________________________________ + +Torstein Nordgård-Hansen\newline\newline + +__________________________________________________ + +Sondre Haugen Elgaaen\newline\newline + +__________________________________________________ + +Andrea Pettersen Helåsen\newline\newline + +__________________________________________________ + +Emma Lu Eikemo\newline\newline + +__________________________________________________ diff --git a/header.md b/header.md new file mode 100644 index 0000000..3a9d728 --- /dev/null +++ b/header.md @@ -0,0 +1,5 @@ +% Halvårsmøte +% Programvareverkstedet +% Høsten 2019 + +\newpage diff --git a/make.sh b/make.sh new file mode 100755 index 0000000..a1099d9 --- /dev/null +++ b/make.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash + +pandoc_to_pdf () +{ + #VARIABLES="--filter pandoc-codeblock-include --filter pandoc-crossref --filter pandoc-imagine"; + VARIABLES="$VARIABLES --variable papersize=a4paper"; + VARIABLES="$VARIABLES --table-of-contents"; + VARIABLES="$VARIABLES --number-sections"; + VARIABLES="$VARIABLES --variable links-as-notes=true"; + VARIABLES="$VARIABLES --highlight-style=pygments"; + if test "$1" == ""; then + echo you must supply an input!; + else + if test "$2" == ""; then + echo you must supply an output!; + else + source="$1"; + shift; + dest="$1"; + shift; + pandoc "$source" --pdf-engine="xelatex" $VARIABLES "$@" -o "$dest"; + fi; + fi +} + + +( + cat header.md + curl "http://www.pvv.ntnu.no/w/index.php?title=Halv%C3%A5rsm%C3%B8te/2019H&action=raw" | + pandoc -f mediawiki -t gfm + cat footer.md +) > out.md + +pandoc_to_pdf out.md out.pdf + +rm out.md +echo written to out.pdf diff --git a/out.pdf b/out.pdf new file mode 100644 index 0000000..1e2f184 Binary files /dev/null and b/out.pdf differ