Initial commit
This commit is contained in:
commit
57b5113431
|
@ -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
|
||||
|
||||
__________________________________________________
|
|
@ -0,0 +1,5 @@
|
|||
% Halvårsmøte
|
||||
% Programvareverkstedet
|
||||
% Høsten 2019
|
||||
|
||||
\newpage
|
|
@ -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
|
Loading…
Reference in New Issue