wikbook/build.sh
rekkabell 220222b3ce *
2023-11-22 20:06:21 -08:00

13 lines
799 B
Bash

!/bin/bash
# rm -f assembled.pdf
convert media/cover.jpg cover.pdf
pandoc --variable=geometry:a5paper wiktopher3.md --pdf-engine=tectonic --from markdown+simple_tables+line_blocks+multiline_tables+inline_notes --toc -V toc-title:"Table of Contents" --toc-depth=2 --include-in-header=titlesec-conf.tex -o draft.pdf
pandoc --variable=geometry:a5paper wiktopher3.md --pdf-engine=tectonic --include-in-header=titlepage.tex -o titlepage.pdf
pdfunite cover.pdf titlepage.pdf draft.pdf wiktopher.pdf
# # # build epub
# pandoc wiktopher3.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 wiktopher.epub
# # # mobi
# ebook-convert "wiktopher.epub" "wiktopher.mobi"