# build a presentation from a markdown file via pandoc and latex beamer if [ -z $1 ]; then echo "needs name" exit 1 fi outfile="${1%.md}.pdf" pandoc "$1" -t beamer -o "$outfile"