@@ -79,13 +79,13 @@ all: build-program
7979
8080# Document process rules.
8181%.html: % $(MAIN)
82− ./$(MAIN) -s -S --toc $< >$@ || rm -f $@
82+ ./$(MAIN) -s --template templates/html.template -S --toc $< >$@ || rm -f $@
8383%.tex: % $(MAIN)
84− ./$(MAIN) -s -w latex $< >$@ || rm -f $@
84+ ./$(MAIN) -s --template templates/latex.template -w latex $< >$@ || rm -f $@
8585%.rtf: % $(MAIN)
86− ./$(MAIN) -s -w rtf $< >$@ || rm -f $@
86+ ./$(MAIN) -s --template templates/rtf.template -w rtf $< >$@ || rm -f $@
8787%.pdf: % $(MAIN) markdown2pdf
88− sh ./markdown2pdf $< || rm -f $@
88+ sh ./markdown2pdf --template templates/latex.template $< || rm -f $@
8989%.txt: %
9090 perl -p -e 's/\n/\r\n/' $< > $@ || rm -f $@ # convert to DOS line endings
9191
@@ -268,7 +268,8 @@ $(tarball):
268268.PHONY: website
269269web_src:=web
270270web_dest:=pandoc-website
271−make_page:=./$(MAIN) -s -S -B $(web_src)/header.html \
271+make_page:=./$(MAIN) -s --template templates/html.template \
272+ -S -B $(web_src)/header.html \
272273 -A $(web_src)/footer.html \
273274 -H $(web_src)/css
274275cleanup_files+=$(web_dest)