rcdoc-pipeline/makepdf.sh

17 lines
364 B
Bash
Raw Normal View History

2024-11-27 13:07:32 +00:00
#!/bin/bash
INPUT_FILE="$1"
OUTPUT_FILE="$(echo $INPUT_FILE|awk -F '.' '{print $1}').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 \
2024-11-27 13:47:30 +00:00
--metadata-file=$METADATA_FILE \
2024-11-27 13:07:32 +00:00
--from markdown \
2024-11-27 13:19:44 +00:00
$PANDOC_OPTIONS