#!/usr/bin/env bash set -euo pipefail cd "$(dirname "$0")/.." command -v pandoc >/dev/null command -v pdflatex >/dev/null pandoc research/paper.md --standalone -H research/preamble.tex \ -V geometry:margin=1in -V fontsize=11pt -V colorlinks=true \ -V linkcolor=blue -V urlcolor=blue --pdf-engine=pdflatex -o research/paper.pdf # For editable LaTeX source, use the same metadata variables: pandoc research/paper.md --standalone -H research/preamble.tex -t latex \ -V geometry:margin=1in -V fontsize=11pt -V colorlinks=true \ -o research/paper.tex