include ../common/Makefile.common

tmp/%.tex: %.rst $(INCLUDED_TEX) $(SOURCES) | tmp
	$$(command -v rst2latex rst2latex.py | head -n 1) \
		--no-section-numbering \
		--table-style=booktabs \
		--documentclass=article \
		--documentoption=12pt,A4,table \
		--syntax-highlight=short \
		--stylesheet=$(PACKAGES),$(TEX_STYLE) \
		$< $@