17 lines
344 B
Bash
17 lines
344 B
Bash
#!/bin/bash
|
|
|
|
INPUT_FILE="$1"
|
|
OUTPUT_FILE="$(basename $INPUT_FILE).pdf"
|
|
METADATA_FILE="$2"
|
|
TEMPLATE="eisvogel"
|
|
PANDOC_OPTIONS="--listings"
|
|
|
|
# Setup proper boilerplate to handle cmd line options , check args etc...
|
|
|
|
pandoc \
|
|
$INPUT_FILE \
|
|
-o $OUTPUT_FILE \
|
|
--template $TEMPLATE \
|
|
--metadata-file=$METADATA_FILE \
|
|
--from markdown \
|
|
$PANDOC_OPTIONS |