pdflatex -output-directory="./build" -interaction="nonstopmode" -jobname='$@' -output-format='pdf' "\documentclass{ootc-pdf}\input{docs/$@}"
pdflatex -output-directory="./build" -interaction="nonstopmode" -jobname='$@' -output-format='pdf' "\documentclass{ootc-pdf}\input{docs/$@}"
+ # make the titlepage for the document
+ pdfjam ./build/$@.pdf 1 -o ./build/cover-$@.pdf
+ magick -density 60x60 ./build/cover-$@.pdf -quality 90 -background white -flatten -alpha off ./build/$@.png
+
# compile as epub using the ootc-epub format
latexmlc --dest=./build/$@.epub --base=./build --includestyles "literal:\documentclass{ootc-html}\input{docs/$@}"
.PHONY : tidy
tidy :
-rm latexml.log
- -rm ./build/*.log ./build/*.aux
+ -rm ./build/*.log ./build/*.aux ./build/cover-*
.PHONY : clean
clean :