Initial commit

master
Peder Bergebakken Sundt 2019-10-07 22:04:35 +02:00
commit 57b5113431
4 changed files with 66 additions and 0 deletions

24
footer.md Normal file
View File

@ -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
__________________________________________________

5
header.md Normal file
View File

@ -0,0 +1,5 @@
% Halvårsmøte
% Programvareverkstedet
% Høsten 2019
\newpage

37
make.sh Executable file
View File

@ -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

BIN
out.pdf Normal file

Binary file not shown.