#!/bin/bash [[ -z $1 ]] && echo argument missing && exit 1 echo -n ${1%\.md}.slides.pdf... #pandoc --latex-engine=xelatex -V geometry:margin=1in -t beamer \ # --listings -H ~/preamble.slides.tex \ # $1 -o ${1%\.md}.slides.tex && echo -n tex... pandoc --latex-engine=xelatex -V geometry:margin=1in -t beamer \ --listings -H ~/preamble.slides.tex \ $1 -o ${1%\.md}.slides.pdf && echo done