#!/bin/bash rm -f assembled.pdf convert media/cover.jpg cover.pdf ~/Applications/pandoc --variable=geometry:a5paper wiktopher.md --pdf-engine=xelatex --from markdown+simple_tables+line_blocks+multiline_tables --toc -V toc-title:"Table of Contents" --toc-depth=2 --include-in-header=titlesec-conf.tex -o draft.pdf pdfunite cover.pdf draft.pdf wiktopher.pdf # # Build epub # ~/Applications/pandoc ch1.md --from markdown+simple_tables+line_blocks --toc -V toc-title:"Table of Contents" --toc-depth=2 --epub-metadata=metadata.yaml --epub-cover-image=media/cover.jpg --css epub.css -w epub -o assembled.epub