mirror of
https://git.sr.ht/~rabbits/wikbook
synced 2024-11-16 19:49:27 +01:00
14 lines
655 B
Bash
14 lines
655 B
Bash
#!/bin/bash
|
|
|
|
rm -f assembled.pdf
|
|
convert media/cover.jpg cover.pdf
|
|
pandoc --variable=geometry:a5paper wiktopher3.md --pdf-engine=xelatex --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
|
|
pdfunite cover.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"
|
|
|
|
|