2017-05-18 20:41:05 +00:00
|
|
|
#!/bin/bash
|
2017-05-31 18:57:36 +00:00
|
|
|
set -e
|
2017-10-02 16:20:27 +00:00
|
|
|
cp "../eisvogel.tex" "../eisvogel.latex"
|
2017-05-18 20:41:05 +00:00
|
|
|
|
2019-02-17 19:29:28 +00:00
|
|
|
echo "##"
|
|
|
|
echo "# Building examples"
|
|
|
|
echo "##"
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
echo "- basic-example"
|
2019-06-16 11:52:34 +00:00
|
|
|
pandoc "basic-example/basic-example.md" -o "basic-example/basic-example.pdf" --from markdown --template "../eisvogel.latex" --listings
|
2017-05-18 20:41:05 +00:00
|
|
|
pdftoppm -r 150 -png "basic-example/basic-example.pdf" > "basic-example/basic-example.png"
|
|
|
|
|
2019-06-16 11:41:29 +00:00
|
|
|
echo "- beamer"
|
|
|
|
pandoc "beamer/beamer.md" -o "beamer/beamer.pdf" --from markdown --to beamer --template "../eisvogel.latex" --listings
|
|
|
|
pdftoppm -r 150 -png "beamer/beamer.pdf" > "beamer/beamer.png"
|
|
|
|
|
2019-02-17 19:29:28 +00:00
|
|
|
echo "- custom-titlepage"
|
2019-06-16 11:52:34 +00:00
|
|
|
pandoc "custom-titlepage/custom-titlepage.md" -o "custom-titlepage/custom-titlepage.pdf" --from markdown --template "../eisvogel.latex" -V "logo=custom-titlepage/logo-inverted.pdf" --listings
|
2017-05-18 20:41:05 +00:00
|
|
|
pdftoppm -r 150 -png "custom-titlepage/custom-titlepage.pdf" > "custom-titlepage/custom-titlepage.png"
|
|
|
|
|
2019-02-17 19:29:28 +00:00
|
|
|
echo "- default-titlepage"
|
2017-05-18 20:41:05 +00:00
|
|
|
pandoc "default-titlepage/default-titlepage.md" -o "default-titlepage/default-titlepage.pdf" --from markdown --template "../eisvogel.latex" --listings
|
2017-05-24 14:23:05 +00:00
|
|
|
pdftoppm -r 150 -png "default-titlepage/default-titlepage.pdf" > "default-titlepage/default-titlepage.png"
|
|
|
|
|
2019-02-17 19:29:28 +00:00
|
|
|
echo "- german"
|
2017-05-31 15:24:05 +00:00
|
|
|
# No lang option (-V lang=de) here because the language
|
|
|
|
# is set in the markdown file via the YAML metadata block.
|
|
|
|
pandoc "german/german.md" -o "german/german.pdf" --from markdown --template "../eisvogel.latex" --highlight-style kate
|
|
|
|
pdftoppm -r 150 -png "german/german.pdf" > "german/german.png"
|
|
|
|
|
|
|
|
# No lang option (-V lang=jp) here because it's
|
2019-03-10 14:37:54 +00:00
|
|
|
# unspported in XeLaTeX (in polyglossia).
|
2017-05-31 18:57:36 +00:00
|
|
|
# These commands are disabled because the CJK font isn't available on travis.
|
2017-11-09 19:44:27 +00:00
|
|
|
#pandoc "japanese/japanese.md" -o "japanese/japanese.pdf" --from markdown --template "../eisvogel.latex" --listings --pdf-engine=xelatex -V lang=en-us -V CJKmainfont="HiraginoSans-W4"
|
2017-05-31 18:57:36 +00:00
|
|
|
#pdftoppm -r 150 -png "japanese/japanese.pdf" > "japanese/japanese.png"
|
2017-05-31 15:24:05 +00:00
|
|
|
|
2019-02-17 19:29:28 +00:00
|
|
|
echo "- listings"
|
2017-05-24 14:23:05 +00:00
|
|
|
pandoc "listings/listings.md" -o "listings/listings.pdf" --from markdown --template "../eisvogel.latex" --listings
|
|
|
|
pdftoppm -r 150 -png "listings/listings.pdf" > "listings/listings.png"
|
|
|
|
|
2019-02-17 19:29:28 +00:00
|
|
|
echo "- without-listings"
|
2017-05-24 14:23:05 +00:00
|
|
|
pandoc "without-listings/without-listings.md" -o "without-listings/without-listings.pdf" --from markdown --template "../eisvogel.latex" --highlight-style kate
|
2017-10-28 16:42:21 +00:00
|
|
|
pdftoppm -r 150 -png "without-listings/without-listings.pdf" > "without-listings/without-listings.png"
|
|
|
|
|
2019-02-17 19:29:28 +00:00
|
|
|
echo "- green-titlepage"
|
2019-06-16 11:52:34 +00:00
|
|
|
pandoc "green-titlepage/green-titlepage.md" -o "green-titlepage/green-titlepage.pdf" --from markdown --template "../eisvogel.latex" --listings
|
2017-10-31 16:04:55 +00:00
|
|
|
pdftoppm -r 150 -png "green-titlepage/green-titlepage.pdf" > "green-titlepage/green-titlepage.png"
|
|
|
|
|
2019-02-17 19:29:28 +00:00
|
|
|
echo "- book"
|
2019-03-10 14:37:54 +00:00
|
|
|
# Additional options like `book: true` and `classoption: [oneside]` are set in the markdown file via the YAML metadata block.
|
2019-06-16 11:52:34 +00:00
|
|
|
pandoc "book/book.md" -o "book/book.pdf" --from markdown --template "../eisvogel.latex" --listings --top-level-division="chapter"
|
2017-12-12 20:54:06 +00:00
|
|
|
pdftoppm -r 150 -png "book/book.pdf" > "book/book.png"
|
|
|
|
|
2019-02-17 19:29:28 +00:00
|
|
|
echo "- images-and-tables"
|
2017-12-12 20:54:06 +00:00
|
|
|
pandoc "images-and-tables/images-and-tables.md" -o "images-and-tables/images-and-tables.pdf" --from markdown --template "../eisvogel.latex" --listings --resource-path "./images-and-tables/"
|
2018-09-09 14:55:12 +00:00
|
|
|
pdftoppm -r 150 -png "images-and-tables/images-and-tables.pdf" > "images-and-tables/images-and-tables.png"
|
2018-09-25 18:37:47 +00:00
|
|
|
|
2019-02-17 19:29:28 +00:00
|
|
|
echo "- logo-titlepage"
|
2018-09-25 18:37:47 +00:00
|
|
|
# Important: Since the logo is a manually included image, the option "--resource-path" can't be used for specifying its location.
|
|
|
|
# The location of the logo has to be relative to where pandoc is executed, so we cd into the directory with the logo.
|
|
|
|
cd "logo-titlepage"
|
|
|
|
pandoc "logo-titlepage.md" -o "logo-titlepage.pdf" --from markdown --template "../../eisvogel.latex" --listings
|
|
|
|
pdftoppm -r 150 -png "logo-titlepage.pdf" > "logo-titlepage.png"
|
|
|
|
cd ".."
|
|
|
|
|
|
|
|
rm "../eisvogel.latex"
|