From 8929862c36da8493ae2e1976db4fe7a9a9d7a809 Mon Sep 17 00:00:00 2001 From: Pascal Wagler Date: Mon, 13 Mar 2023 17:34:37 +0100 Subject: [PATCH] Merge changes from the pandoc default latex template (#330) - Merge changes from the pandoc default LaTeX template. - Change pandoc version to 3.1.1 in the GitHub workflow. - Prepare for release of version 2.3.0. --- .github/workflows/build-examples.yml | 2 +- CHANGELOG.md | 14 ++++++++++++++ eisvogel.tex | 12 ++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-examples.yml b/.github/workflows/build-examples.yml index bf470f2..4d3c49d 100644 --- a/.github/workflows/build-examples.yml +++ b/.github/workflows/build-examples.yml @@ -11,7 +11,7 @@ jobs: fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. - name: Setup pandoc env: - PANDOC_VERSION: "3.0" + PANDOC_VERSION: "3.1.1" run: | wget -qO- https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz | sudo tar xzf - --strip-components 1 -C /usr/local/ - name: Setup TexLive diff --git a/CHANGELOG.md b/CHANGELOG.md index 14c68c6..46b9e19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,19 @@ All notable changes to this project are documented in this file. On the [releases page](https://github.com/Wandmalfarbe/pandoc-latex-template/releases/) you can see all released versions of the Eisvogel template and download the [latest version](https://github.com/Wandmalfarbe/pandoc-latex-template/releases/latest). +## [2.3.0] - 2023-03-13 + +The Eisvogel template is now available in the Docker image [pandoc/extra](https://hub.docker.com/r/pandoc/extra)! +For more Information refer to the [documentation in the Readme](https://github.com/Wandmalfarbe/pandoc-latex-template#docker-image) or +the [documentation on docker hub](https://hub.docker.com/r/pandoc/extra). + +- Merge changes from the pandoc default LaTeX template (as of 2023-03-10, [9b04036](https://github.com/jgm/pandoc/blob/9b04036f6b0745c6ce0cb027683e94b648da3a9c/data/templates/default.latex)). + - Add `CJKsansfont` and `CJKmonofont` for XeLaTeX. `CJKsansfont` and `CJKmonofont` will be set + for XeLaTeX only if `CJKmainfont` is also provided (#328, Yudong Jin). +- Add documentation in the README on how to use the `pandoc/extra` docker image (#319, damien clochard). +- Fix wrong literate of characters `è` and `È` in listings. The chracter `è` was wrongly + converted to `é` and `È` to `É` (#324, damien clochard). + ## [2.2.0] - 2023-01-22 - Merge changes from the pandoc default LaTeX template (as of 2023-01-13, [909ced5](https://github.com/jgm/pandoc/blob/909ced5153e2c7cefd5018c39f83231824940fb8/data/templates/default.latex)). @@ -143,6 +156,7 @@ All notable changes to this project are documented in this file. On the [release - First release of the template as a ZIP file with the examples. +[2.3.0]: https://github.com/Wandmalfarbe/pandoc-latex-template/compare/v2.2.0...v2.3.0 [2.2.0]: https://github.com/Wandmalfarbe/pandoc-latex-template/compare/v2.1.0...v2.2.0 [2.1.0]: https://github.com/Wandmalfarbe/pandoc-latex-template/compare/v2.0.0...v2.1.0 [2.0.0]: https://github.com/Wandmalfarbe/pandoc-latex-template/compare/v1.6.1...v2.0.0 diff --git a/eisvogel.tex b/eisvogel.tex index 020160a..928363e 100644 --- a/eisvogel.tex +++ b/eisvogel.tex @@ -76,6 +76,9 @@ $if(background-image)$ \usebackgroundtemplate{% \includegraphics[width=\paperwidth]{$background-image$}% } +% In beamer background-image does not work well when other images are used, so this is the workaround +\pgfdeclareimage[width=\paperwidth,height=\paperheight]{background}{$background-image$} +\usebackgroundtemplate{\pgfuseimage{background}} $endif$ \usepackage{pgfpages} \setbeamertemplate{caption}[numbered] @@ -210,6 +213,12 @@ $if(CJKmainfont)$ \ifXeTeX \usepackage{xeCJK} \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$} + $if(CJKsansfont)$ + \setCJKsansfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKsansfont$} + $endif$ + $if(CJKmonofont)$ + \setCJKmonofont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmonofont$} + $endif$ \fi $endif$ $if(luatexjapresetoptions)$ @@ -446,6 +455,9 @@ $endif$ $for(babel-otherlangs)$ \babelprovide[import]{$babel-otherlangs$} $endfor$ +$for(babelfonts)$ +\babelfont[$babelfonts.language$]{rm}{$babelfonts.font$} +$endfor$ % get rid of language-specific shorthands (see #6817): \let\LanguageShortHands\languageshorthands \def\languageshorthands#1{}