#!/bin/bash
# Shell script I use to generate my... well you know
TMP=$(mktemp)
echo "making HTML"
pandoc --ascii -f markdown-smart RESUME.md -t html -o RESUME.html \
    -V "mainfont:Fira Mono"
sed -e 's/<\/h4>/<\/h4>\&nbsp;/g' RESUME.html > $TMP
echo "making PDF"
pandoc --ascii -f html $TMP -o RESUME.pdf --pdf-engine=xelatex \
    --metadata-file=pdfopts.yaml
