Commit 966f49b2 authored by Felix Hilsky's avatar Felix Hilsky
Browse files

md pandoc call turned into script

parent fbca0978
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\fancyhead[L]{CURRENTCOMMIT}
\AtBeginDocument{\renewcommand{\setminus}{\mathbin{\backslash}}}
#! /usr/bin/env bash
mkdir -p .maindir/out
cp .maindir/scripts/md-preamble.tex .maindir/out/md-preamble-orig.tex
sed -i 's#CURRENTCOMMIT#'$(git rev-parse --short HEAD)'#' .maindir/scripts/md-preamble.tex
pandoc --pdf-engine lualatex --lua-filter .maindir/scripts/pandoc-gitlab-math.lua --include-in-header=.maindir/scripts/md-preamble.tex' "$1" -o "${2:-~/Desktop/pandoc.pdf}"
cp .maindir/out/md-preamble-orig.tex .maindir/scripts/md-preamble.tex
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment