23 lines
559 B
Bash
Executable File
23 lines
559 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
declare -a PANDOC_VARIABLES=(
|
|
#--filter pandoc-codeblock-include
|
|
#--filter pandoc-crossref
|
|
#--filter pandoc-imagine
|
|
--variable papersize=a4paper
|
|
--table-of-contents
|
|
--number-sections
|
|
--variable links-as-notes=true
|
|
--highlight-style=pygments
|
|
--pdf-engine="xelatex"
|
|
)
|
|
|
|
{
|
|
cat header.md
|
|
curl "https://wiki.pvv.ntnu.no/wiki/Halv%C3%A5rsm%C3%B8te/2019H?action=raw" \
|
|
| pandoc -f mediawiki -t gfm
|
|
cat footer.md
|
|
} | pandoc -f markdown "${PANDOC_VARIABLES[@]}" -o out.pdf
|
|
|
|
echo >&2 "Written to out.pdf"
|