mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2024-12-23 16:12:23 +00:00
39 lines
2.6 KiB
Bash
39 lines
2.6 KiB
Bash
#!/bin/bash
|
|
set -e
|
|
cp "../eisvogel.tex" "../eisvogel.latex"
|
|
|
|
pandoc "basic-example/basic-example.md" -o "basic-example/basic-example.pdf" --from markdown --template "../eisvogel.latex" --listings
|
|
pdftoppm -r 150 -png "basic-example/basic-example.pdf" > "basic-example/basic-example.png"
|
|
|
|
pandoc "custom-titlepage/custom-titlepage.md" -o "custom-titlepage/custom-titlepage.pdf" --from markdown --template "../eisvogel.latex" --listings
|
|
pdftoppm -r 150 -png "custom-titlepage/custom-titlepage.pdf" > "custom-titlepage/custom-titlepage.png"
|
|
|
|
pandoc "default-titlepage/default-titlepage.md" -o "default-titlepage/default-titlepage.pdf" --from markdown --template "../eisvogel.latex" --listings
|
|
pdftoppm -r 150 -png "default-titlepage/default-titlepage.pdf" > "default-titlepage/default-titlepage.png"
|
|
|
|
# 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
|
|
# unspported in XeLaTex (in polyglossia).
|
|
# These commands are disabled because the CJK font isn't available on travis.
|
|
#pandoc "japanese/japanese.md" -o "japanese/japanese.pdf" --from markdown --template "../eisvogel.latex" --listings --latex-engine=xelatex -V lang=en-us -V CJKmainfont="HiraginoSans-W4"
|
|
#pdftoppm -r 150 -png "japanese/japanese.pdf" > "japanese/japanese.png"
|
|
|
|
pandoc "listings/listings.md" -o "listings/listings.pdf" --from markdown --template "../eisvogel.latex" --listings
|
|
pdftoppm -r 150 -png "listings/listings.pdf" > "listings/listings.png"
|
|
|
|
pandoc "without-listings/without-listings.md" -o "without-listings/without-listings.pdf" --from markdown --template "../eisvogel.latex" --highlight-style kate
|
|
pdftoppm -r 150 -png "without-listings/without-listings.pdf" > "without-listings/without-listings.png"
|
|
|
|
pandoc "green-titlepage/green-titlepage.md" -o "green-titlepage/green-titlepage.pdf" --from markdown --template "../eisvogel.latex" --listings
|
|
pdftoppm -r 150 -png "green-titlepage/green-titlepage.pdf" > "green-titlepage/green-titlepage.png"
|
|
|
|
# replace the document class `scrartcl` with `scrbook
|
|
sed -i '' 's/scrartcl/scrbook/g' "../eisvogel-book.latex"
|
|
sed 's/scrartcl/scrbook/g' <"../eisvogel.latex" >"../eisvogel-book.latex"
|
|
|
|
pandoc "book/book.md" -o "book/book.pdf" --from markdown --template "../eisvogel-book.latex" --listings -V classoption=oneside --top-level-division=chapter
|
|
pdftoppm -r 150 -png "book/book.pdf" > "book/book.png" |