From c50b58054ff5b1c9da1a102a75e7a18079610ad1 Mon Sep 17 00:00:00 2001 From: Matt Sephton Date: Mon, 6 Dec 2021 13:08:28 +0000 Subject: [PATCH] Add epub building --- scripts/build.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index 1019089..92c7589 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -16,6 +16,7 @@ TEMP2="../temp/newfile2.txt" ##TIMESTAMP=$(date +"%s") TIMESTAMP=$(date -u +%Y%m%d_%H%M%SZ) OUTPUT="../output/Manifestos_for_the_Internet_Age-"$TIMESTAMP".pdf" +OUTPUTEPUB="../output/Manifestos_for_the_Internet_Age-"$TIMESTAMP".epub" ## Create the temp and output folder if they does not exist if [ ! -d "../temp" ]; then @@ -84,4 +85,18 @@ pandoc -f markdown --template=../templates/customV2 $TEMP \ --include-before-body=../content/intro.txt \ -o $OUTPUT +pandoc -f markdown --template=../templates/custom $TEMP \ + --pdf-engine=xelatex \ + --variable mainfont="HKGrotesk-Regular" \ + --variable boldfont="LinLibertineOB" \ + --variable italicfont="LinLibertineOI" \ + --variable fontsize=9pt \ + --variable urlcolor=black \ + --variable linkcolor=black \ + --variable documentclass=book \ + --toc --toc-depth=1 \ + --listings \ + --include-before-body=../content/intro.txt \ + -o $OUTPUTEPUB + ## End of file