15 lines
324 B
Bash
Executable file
15 lines
324 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
SCRIPT=`realpath $0`
|
|
SCRIPTPATH=`dirname $SCRIPT`
|
|
|
|
INPUT_FILE=`realpath $1`
|
|
OUTPUT_FILE=output.pdf
|
|
|
|
PANDOC_ARGS="$INPUT_FILE --template $SCRIPTPATH/main.tex -o $OUTPUT_FILE"
|
|
|
|
echo "Building document..."
|
|
pandoc $PANDOC_ARGS
|
|
|
|
echo "Running second pass..."
|
|
pandoc $PANDOC_ARGS --lua-filter=second-pass.lua
|