snippets/presbuild

12 lines
205 B
Plaintext
Raw Normal View History

# 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"
xdg-open "$outfile"