1
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
tex-template-builder/build.sh

16 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