diff --git a/shell.nix b/shell.nix index 67b57e8..ce10d00 100644 --- a/shell.nix +++ b/shell.nix @@ -9,8 +9,8 @@ let texlive.combine { inherit (texlive) scheme-medium bitter titlesec; }; in pkgs.mkShell { buildInputs = with pkgs; [ + calibre dyson - kindlegen kubectl kubectx mdbook diff --git a/src/Tulpanomicon.png b/src/Tulpanomicon.png new file mode 100644 index 0000000..69c19c6 Binary files /dev/null and b/src/Tulpanomicon.png differ diff --git a/src/build.sh b/src/build.sh index b34d25c..9f55af5 100755 --- a/src/build.sh +++ b/src/build.sh @@ -104,7 +104,7 @@ set -x pandoc -o tulpanomicon.epub --epub-chapter-level=2 --resource-path=. title.md $FILES pandoc -o test.tex -s --include-in-header sectionpagebreak.tex --variable=subparagraph --toc --toc-depth=2 --resource-path=. title.md $FILES pandoc -o tulpanomicon.pdf --include-in-header sectionpagebreak.tex --variable=subparagraph --toc --toc-depth=2 --pdf-engine xelatex --resource-path=. title.md $FILES || exit -kindlegen tulpanomicon.epub +ebook-convert tulpanomicon.epub tulpanomicon.mobi mkdir -p ../book cp -vrf tulpanomicon.mobi ../book/ cp -vrf tulpanomicon.epub ../book/ diff --git a/src/title.md b/src/title.md index 81c45b4..e9c1140 100644 --- a/src/title.md +++ b/src/title.md @@ -6,6 +6,7 @@ language: en-US creator: - role: collector text: Within +cover-image: ./Tulpanomicon.png # pandoc LaTeX crud documentclass: book