mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2024-12-18 22:07:51 +00:00
Fix broken travis build by modifying the --resource-path
When specifying the resource path via `--resource-path` the template will be searched there since pandoc 2.9.2.1. To fix the broken travis build (`Could not find data file templates/eisvogel.latex`) the current working directory `.` is included in the resource path for pandoc to find the template again.
This commit is contained in:
parent
a8728eb03f
commit
27fb7e4555
@ -8,7 +8,11 @@ echo "##"
|
||||
echo ""
|
||||
|
||||
echo "- header-and-footer"
|
||||
pandoc "header-and-footer/header-and-footer.md" -o "header-and-footer/header-and-footer.pdf" --from markdown --template "../eisvogel.latex" --listings --resource-path "./header-and-footer/"
|
||||
# Important: The template file will be searched in the '--resource-path' if it
|
||||
# is specified. So in order to find the template we have to include the cwd
|
||||
# into the resource path as well by specifying a '.' and separating the
|
||||
# two paths with a ':' (should be ';' on windows).
|
||||
pandoc "header-and-footer/header-and-footer.md" -o "header-and-footer/header-and-footer.pdf" --from markdown --template "../eisvogel.latex" --listings --resource-path ".:./header-and-footer/"
|
||||
pdftoppm -r 150 -png "header-and-footer/header-and-footer.pdf" > "header-and-footer/header-and-footer.png"
|
||||
|
||||
echo "- page-background"
|
||||
@ -83,7 +87,11 @@ pdftoppm -r 150 -png "boxes-with-pandoc-latex-environment-and-tcolorbox/boxes-tc
|
||||
#pdftoppm -r 150 -png "chinese/chinese.pdf" > "chinese/chinese.png"
|
||||
|
||||
echo "- images-and-tables"
|
||||
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/"
|
||||
# Important: The template file will be searched in the '--resource-path' if it
|
||||
# is specified. So in order to find the template we have to include the cwd
|
||||
# into the resource path as well by specifying a '.' and separating the
|
||||
# two paths with a ':' (should be ';' on windows).
|
||||
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/"
|
||||
pdftoppm -r 150 -png "images-and-tables/images-and-tables.pdf" > "images-and-tables/images-and-tables.png"
|
||||
|
||||
echo "- logo-titlepage"
|
||||
|
Loading…
Reference in New Issue
Block a user