2024-11-27 13:07:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
INPUT_FILE="$1"
|
|
|
|
OUTPUT_FILE="$(basename $INPUT_FILE).pdf"
|
2024-11-27 13:19:44 +00:00
|
|
|
METADATA_FILE="$2"
|
|
|
|
TEMPLATE="eisvogel"
|
|
|
|
PANDOC_OPTIONS="--listings"
|
|
|
|
|
|
|
|
# Setup proper boilerplate to handle cmd line options , check args etc...
|
2024-11-27 13:07:32 +00:00
|
|
|
|
|
|
|
pandoc \
|
|
|
|
$INPUT_FILE \
|
|
|
|
-o $OUTPUT_FILE \
|
2024-11-27 13:19:44 +00:00
|
|
|
--template $TEMPLATE \
|
|
|
|
--metadata-file=$METADATA_FILE
|
2024-11-27 13:07:32 +00:00
|
|
|
--from markdown \
|
2024-11-27 13:19:44 +00:00
|
|
|
$PANDOC_OPTIONS
|