# Requirements:
# - make
# - pandoc
# - python
# - MiKTeX
# - pandoc-eqnos (pip install pandoc-eqnos)

html_options=\
	--mathjax \
	--standalone \
	--metadata title="Numerical Dispersion" \
	--metadata fontsize=14px \
	--filter pandoc-eqnos \
	--table-of-contents \
	--number-sections


latex_options=\
	--pdf-engine=xelatex \
	--filter pandoc-eqnos \
	--table-of-contents

all: main.html main.pdf

main.html: main.md Makefile
	pandoc -f markdown -t html -o main.html $(html_options) main.md
	python move_headers.py

main.pdf: main.md Makefile
	pandoc -H disable_float.tex -f markdown -t pdf -o main.pdf $(latex_options) main.md
