Add epub building

This commit is contained in:
Matt Sephton 2021-12-06 13:08:28 +00:00
parent 79f3772c99
commit c50b58054f

View File

@ -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