Compare commits

3 Commits

2 changed files with 20 additions and 13 deletions

View File

@@ -8,11 +8,14 @@ cd $DIR
date
ebook="HyperlingsHealthProtocol.pdf"
book="HyperlingsHealthProtocol-book.pdf"
booklet="HyperlingsHealthProtocol-booklet-default.pdf"
rotated="HyperlingsHealthProtocol-booklet-rotated.pdf"
if [[ -e $ebook ]]; then
if [[ -e *.pdf ]]; then
echo -n "Old: "
du -h $ebook
rm -v $ebook
du -h *.pdf
rm -v *.pdf
fi
cp ebook.md /tmp/
@@ -22,13 +25,18 @@ pandoc /tmp/ebook.md \
-s -N --toc --toc-depth=3 \
-o $ebook
status=$?
echo "PDF created with status '$status'."
pdfbook2 $ebook
echo "*** Creating Bookets ***"
pdfbook2 -n $ebook
mv -v $book $booklet
echo "Completed with status '$status'."
pdfbook2 -ns $ebook
mv -v $book $rotated
echo "*** Completed Bookets ***"
echo -n "New: "
du -h $ebook
du -h *.pdf
date

View File

@@ -1,11 +1,15 @@
---
# Font sizes can only be 10pt-12pt (https://pandoc.org/MANUAL.html#fonts)
title-meta: "Hyperling's Health Protocol"
date-meta: "{REVISION_DATE}"
author-meta: 'Chad Michael "HyperVegan" Greenwood'
subject: Hyperling\'s Health Protocol by Chad Michael \"HyperVegan\" Greenwood
title: "Hyperling's Health Protocol"
subtitle: "*Health is a lifestyle, not a diet. Align yourself with Nature to receive its blessings.*"
author: "by `Chad Michael \"HyperVegan\" Greenwood`"
date: "Last Revised {REVISION_DATE}"
# Font sizes can only be 10pt-12pt (https://pandoc.org/MANUAL.html#fonts)
fontsize: "12pt"
geometry: "margin=0.5in"
@@ -50,11 +54,6 @@ keywords:
- veganarchism
- sovereign
- sovereignty
title: "Hyperling's Health Protocol"
subtitle: "*Health is a lifestyle, not a diet. Align yourself with Nature to receive its blessings.*"
author: "by `Chad Michael \"HyperVegan\" Greenwood`"
date: "Last Revised {REVISION_DATE}"
---
## Disclaimer