diff --git a/Makefile b/Makefile index 48a28bbdc896f5325574f6f44a54487a6face40e..8038861ab90f6fd4291b07f12fa5ddb9b6f06b74 100755 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ pdf: clean temp/date.txt parts/latex_impressum.md | temp @echo "replacing star characters ..." @sed -E 's/★/$$\\star$$/g' temp/leitfaden-opendata_05.md > temp/leitfaden-opendata_06.md @echo "creating pdf ..." - @pandoc --listings -H template/listings-setup.tex -V lang=de --template=template/default.latex --variable urlcolor=cyan temp/leitfaden-opendata_06.md template/metadata.yml --pdf-engine=pdflatex --toc --resource-path=static -o temp/ergebnis.pdf + @pandoc --listings -H `pwd`/template/listings-setup.tex -V lang=de --template=template/default.latex --variable urlcolor=cyan temp/leitfaden-opendata_06.md template/metadata.yml --pdf-engine=pdflatex --toc --resource-path=static -o temp/ergebnis.pdf @echo "adding title page" @pdfunite titelblatt.pdf temp/ergebnis.pdf public/leitfaden-opendata.pdf diff --git a/README.md b/README.md index 52ab6298ae14aaad7162b8efde1eabbb0cc7e28d..4ace40d2477afd79ff60578230bf3fa81861ca44 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ The following versions exist: - A PDF document generated directly from the source via [pandoc](https://pandoc.org) (and additional processing - see [Makefile](/Makefile) for details). - An HTML version generated directly from the source via the static website generator [Hugo](https://gohugo.io) - available online here: https://opendata.zitsh.de/leitfaden/ +**The main content file is [leitfaden-opendata.md](leitfaden-opendata.md).** + ## Building You need a few prerequisites to build the _Open-Data-Leitfaden Schleswig-Holstein_. @@ -18,12 +20,13 @@ On a *Ubuntu 20.04 LTS* system the following packages have to be installed: sudo apt install make librsvg2-bin poppler-utils pandoc pdflatex hugo ``` -On a *Alpine Linux edge* system the build environment can be prepared this way: +On a *Alpine Linux 3.18.4* system the build environment can be prepared this way: ```bash apk add ruby texlive make librsvg hugo texmf-dist-fontsextra poppler-utils -wget https://github.com/jgm/pandoc/releases/download/2.18/pandoc-2.18-linux-amd64.tar.gz -cp pandoc-2.18/bin/pandoc /usr/local/bin/ +wget https://github.com/jgm/pandoc/releases/download/3.1.9/pandoc-3.1.9-linux-amd64.tar.gz +tar xfz pandoc-3.1.9-linux-amd64.tar.gz +cp pandoc-3.1.9/bin/pandoc /usr/local/bin/ ``` You can create the PDF document: @@ -48,9 +51,16 @@ The resulting HTML files can be found in the `public/` directory. You can also run Hugo in _live mode_ and serve the content at http://localhost:1313/leitfaden/ by using the command `make serve-web`. +## Commons errors + +``` +File template/listings-setup.tex not found in resource path +``` + + ## License -The text, all markdown sources and PDF artifacts of the _Open-Data-Leitfaden Schleswig-Holstien_ are published under [Creative Commons Namensnennung 4.0 International Lizenz](https://creativecommons.org/licenses/by/4.0/deed.de) (CC BY 4.0). +The text, all markdown sources and PDF artifacts of the _Open-Data-Leitfaden Schleswig-Holstein_ are published under [Creative Commons Namensnennung 4.0 International Lizenz](https://creativecommons.org/licenses/by/4.0/deed.de) (CC BY 4.0). For the licenses to the images contained in the _Open-Data-Leitfaden Schleswig-Holstein_, please refer to the [Bildverzeichnis](https://berlinonline.github.io/open-data-handbuch/#bildverzeichnis).