#!/bin/sh
#
# Create HTML and PDF output with toc
# One argument: Markdown source with no extension
# H. Conrad Cunningham
# Revised: 2017-02-02
#
pandoc --self-contained --toc --toc-depth=5 --latexmathml     -o $1.html $1.md
pandoc --self-contained -H nonumber.latex --toc --toc-depth=4 -o $1.tex  $1.md 
pdflatex $1.tex
pdflatex $1.tex
rm $1.aux $1.log $1.out $1.toc
