mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2024-12-18 22:07:51 +00:00
fix: Merge changes from pandoc 3.4 LaTeX template (#395)
fix: Merge changes from pandoc 3.4 LaTeX template * Merge changes from the pandoc default LaTeX template from version 3.4 (7e8aafa). * prepare for release of version 2.5.0 * update copyright year * fix: Update `actions/upload-artifact` to version `v4` * run ci with pandoc 3.4 * run ci with python 3.12
This commit is contained in:
parent
1ad0d6d787
commit
b3f3066f3b
6
.github/workflows/build-examples.yml
vendored
6
.github/workflows/build-examples.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
|||||||
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
|
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
|
||||||
- name: Setup pandoc
|
- name: Setup pandoc
|
||||||
env:
|
env:
|
||||||
PANDOC_VERSION: "3.1.7"
|
PANDOC_VERSION: "3.4"
|
||||||
run: |
|
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/
|
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
|
- name: Setup TexLive
|
||||||
@ -37,7 +37,7 @@ jobs:
|
|||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.12'
|
||||||
- name: Install python filters
|
- name: Install python filters
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
@ -56,7 +56,7 @@ jobs:
|
|||||||
- name: Build examples
|
- name: Build examples
|
||||||
run: cd examples && bash build-examples.sh && cd ..
|
run: cd examples && bash build-examples.sh && cd ..
|
||||||
- name: Add generated example files
|
- name: Add generated example files
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build-files
|
name: build-files
|
||||||
path: |
|
path: |
|
||||||
|
@ -2,6 +2,10 @@
|
|||||||
|
|
||||||
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).
|
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.5.0] - 2024-10-03
|
||||||
|
|
||||||
|
- Merge changes from the pandoc default LaTeX template from version 3.4 ([7e8aafa](https://github.com/jgm/pandoc-templates/commit/7e8aafa049700a849b41c53cf1afeb17324040c7)).
|
||||||
|
|
||||||
## [2.4.2] - 2023-11-25
|
## [2.4.2] - 2023-11-25
|
||||||
|
|
||||||
- Merge changes from the pandoc default LaTeX template from version 3.1.9 ([f7d8b62](https://github.com/jgm/pandoc-templates/commit/f7d8b629330074a4400d1f2795b101d14491c968)).
|
- Merge changes from the pandoc default LaTeX template from version 3.1.9 ([f7d8b62](https://github.com/jgm/pandoc-templates/commit/f7d8b629330074a4400d1f2795b101d14491c968)).
|
||||||
@ -175,6 +179,7 @@ the [documentation on docker hub](https://hub.docker.com/r/pandoc/extra).
|
|||||||
|
|
||||||
- First release of the template as a ZIP file with the examples.
|
- First release of the template as a ZIP file with the examples.
|
||||||
|
|
||||||
|
[2.5.0]: https://github.com/Wandmalfarbe/pandoc-latex-template/compare/v2.4.2...v2.5.0
|
||||||
[2.4.2]: https://github.com/Wandmalfarbe/pandoc-latex-template/compare/v2.4.1...v2.4.2
|
[2.4.2]: https://github.com/Wandmalfarbe/pandoc-latex-template/compare/v2.4.1...v2.4.2
|
||||||
[2.4.1]: https://github.com/Wandmalfarbe/pandoc-latex-template/compare/v2.4.0...v2.4.1
|
[2.4.1]: https://github.com/Wandmalfarbe/pandoc-latex-template/compare/v2.4.0...v2.4.1
|
||||||
[2.4.0]: https://github.com/Wandmalfarbe/pandoc-latex-template/compare/v2.3.0...v2.4.0
|
[2.4.0]: https://github.com/Wandmalfarbe/pandoc-latex-template/compare/v2.3.0...v2.4.0
|
||||||
|
88
eisvogel.tex
88
eisvogel.tex
@ -1,6 +1,6 @@
|
|||||||
%%
|
%%
|
||||||
% Copyright (c) 2017 - 2023, Pascal Wagler;
|
% Copyright (c) 2017 - 2024, Pascal Wagler;
|
||||||
% Copyright (c) 2014 - 2023, John MacFarlane
|
% Copyright (c) 2014 - 2024, John MacFarlane
|
||||||
%
|
%
|
||||||
% All rights reserved.
|
% All rights reserved.
|
||||||
%
|
%
|
||||||
@ -65,6 +65,9 @@ $endif$
|
|||||||
$if(aspectratio)$
|
$if(aspectratio)$
|
||||||
aspectratio=$aspectratio$,
|
aspectratio=$aspectratio$,
|
||||||
$endif$
|
$endif$
|
||||||
|
$if(babel-lang)$
|
||||||
|
$babel-lang$,
|
||||||
|
$endif$
|
||||||
$endif$
|
$endif$
|
||||||
$for(classoption)$
|
$for(classoption)$
|
||||||
$classoption$$sep$,
|
$classoption$$sep$,
|
||||||
@ -100,13 +103,13 @@ $if(section-titles)$
|
|||||||
}
|
}
|
||||||
\setbeamertemplate{section page}{
|
\setbeamertemplate{section page}{
|
||||||
\centering
|
\centering
|
||||||
\begin{beamercolorbox}[sep=12pt,center]{part title}
|
\begin{beamercolorbox}[sep=12pt,center]{section title}
|
||||||
\usebeamerfont{section title}\insertsection\par
|
\usebeamerfont{section title}\insertsection\par
|
||||||
\end{beamercolorbox}
|
\end{beamercolorbox}
|
||||||
}
|
}
|
||||||
\setbeamertemplate{subsection page}{
|
\setbeamertemplate{subsection page}{
|
||||||
\centering
|
\centering
|
||||||
\begin{beamercolorbox}[sep=8pt,center]{part title}
|
\begin{beamercolorbox}[sep=8pt,center]{subsection title}
|
||||||
\usebeamerfont{subsection title}\insertsubsection\par
|
\usebeamerfont{subsection title}\insertsubsection\par
|
||||||
\end{beamercolorbox}
|
\end{beamercolorbox}
|
||||||
}
|
}
|
||||||
@ -187,13 +190,37 @@ $endif$
|
|||||||
\ifPDFTeX\else
|
\ifPDFTeX\else
|
||||||
% xetex/luatex font selection
|
% xetex/luatex font selection
|
||||||
$if(mainfont)$
|
$if(mainfont)$
|
||||||
\setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
|
$if(mainfontfallback)$
|
||||||
|
\ifLuaTeX
|
||||||
|
\usepackage{luaotfload}
|
||||||
|
\directlua{luaotfload.add_fallback("mainfontfallback",{
|
||||||
|
$for(mainfontfallback)$"$mainfontfallback$"$sep$,$endfor$
|
||||||
|
})}
|
||||||
|
\fi
|
||||||
|
$endif$
|
||||||
|
\setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$$if(mainfontfallback)$,RawFeature={fallback=mainfontfallback}$endif$]{$mainfont$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(sansfont)$
|
$if(sansfont)$
|
||||||
\setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
|
$if(sansfontfallback)$
|
||||||
|
\ifLuaTeX
|
||||||
|
\usepackage{luaotfload}
|
||||||
|
\directlua{luaotfload.add_fallback("sansfontfallback",{
|
||||||
|
$for(sansfontfallback)$"$sansfontfallback$"$sep$,$endfor$
|
||||||
|
})}
|
||||||
|
\fi
|
||||||
|
$endif$
|
||||||
|
\setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$$if(sansfontfallback)$,RawFeature={fallback=sansfontfallback}$endif$]{$sansfont$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(monofont)$
|
$if(monofont)$
|
||||||
\setmonofont[$for(monofontoptions)$$monofontoptions$$sep$,$endfor$]{$monofont$}
|
$if(monofontfallback)$
|
||||||
|
\ifLuaTeX
|
||||||
|
\usepackage{luaotfload}
|
||||||
|
\directlua{luaotfload.add_fallback("monofontfallback",{
|
||||||
|
$for(monofontfallback)$"$monofontfallback$"$sep$,$endfor$
|
||||||
|
})}
|
||||||
|
\fi
|
||||||
|
$endif$
|
||||||
|
\setmonofont[$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$if(monofontfallback)$,RawFeature={fallback=monofontfallback}$endif$]{$monofont$}
|
||||||
$endif$
|
$endif$
|
||||||
$for(fontfamilies)$
|
$for(fontfamilies)$
|
||||||
\newfontfamily{$fontfamilies.name$}[$for(fontfamilies.options)$$fontfamilies.options$$sep$,$endfor$]{$fontfamilies.font$}
|
\newfontfamily{$fontfamilies.name$}[$for(fontfamilies.options)$$fontfamilies.options$$sep$,$endfor$]{$fontfamilies.font$}
|
||||||
@ -392,6 +419,15 @@ $-- also used for underline
|
|||||||
\usepackage[soul]{lua-ul}
|
\usepackage[soul]{lua-ul}
|
||||||
\else
|
\else
|
||||||
\usepackage{soul}
|
\usepackage{soul}
|
||||||
|
$if(beamer)$
|
||||||
|
\makeatletter
|
||||||
|
\let\HL\hl
|
||||||
|
\renewcommand\hl{% fix for beamer highlighting
|
||||||
|
\let\set@color\beamerorig@set@color
|
||||||
|
\let\reset@color\beamerorig@reset@color
|
||||||
|
\HL}
|
||||||
|
\makeatother
|
||||||
|
$endif$
|
||||||
$if(CJKmainfont)$
|
$if(CJKmainfont)$
|
||||||
\ifXeTeX
|
\ifXeTeX
|
||||||
% soul's \st doesn't work for CJK:
|
% soul's \st doesn't work for CJK:
|
||||||
@ -416,14 +452,28 @@ $if(beamer)$
|
|||||||
$else$
|
$else$
|
||||||
$if(block-headings)$
|
$if(block-headings)$
|
||||||
% Make \paragraph and \subparagraph free-standing
|
% Make \paragraph and \subparagraph free-standing
|
||||||
|
\makeatletter
|
||||||
\ifx\paragraph\undefined\else
|
\ifx\paragraph\undefined\else
|
||||||
\let\oldparagraph\paragraph
|
\let\oldparagraph\paragraph
|
||||||
\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
|
\renewcommand{\paragraph}{
|
||||||
|
\@ifstar
|
||||||
|
\xxxParagraphStar
|
||||||
|
\xxxParagraphNoStar
|
||||||
|
}
|
||||||
|
\newcommand{\xxxParagraphStar}[1]{\oldparagraph*{#1}\mbox{}}
|
||||||
|
\newcommand{\xxxParagraphNoStar}[1]{\oldparagraph{#1}\mbox{}}
|
||||||
\fi
|
\fi
|
||||||
\ifx\subparagraph\undefined\else
|
\ifx\subparagraph\undefined\else
|
||||||
\let\oldsubparagraph\subparagraph
|
\let\oldsubparagraph\subparagraph
|
||||||
\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
|
\renewcommand{\subparagraph}{
|
||||||
|
\@ifstar
|
||||||
|
\xxxSubParagraphStar
|
||||||
|
\xxxSubParagraphNoStar
|
||||||
|
}
|
||||||
|
\newcommand{\xxxSubParagraphStar}[1]{\oldsubparagraph*{#1}\mbox{}}
|
||||||
|
\newcommand{\xxxSubParagraphNoStar}[1]{\oldsubparagraph{#1}\mbox{}}
|
||||||
\fi
|
\fi
|
||||||
|
\makeatother
|
||||||
$endif$
|
$endif$
|
||||||
$endif$
|
$endif$
|
||||||
$if(pagestyle)$
|
$if(pagestyle)$
|
||||||
@ -475,7 +525,7 @@ $if(babel-lang)$
|
|||||||
$if(mainfont)$
|
$if(mainfont)$
|
||||||
\ifPDFTeX
|
\ifPDFTeX
|
||||||
\else
|
\else
|
||||||
\babelfont{rm}[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
|
\babelfont{rm}[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$$if(mainfontfallback)$,RawFeature={fallback=mainfontfallback}$endif$]{$mainfont$}
|
||||||
\fi
|
\fi
|
||||||
$endif$
|
$endif$
|
||||||
$endif$
|
$endif$
|
||||||
@ -488,13 +538,15 @@ $endfor$
|
|||||||
% get rid of language-specific shorthands (see #6817):
|
% get rid of language-specific shorthands (see #6817):
|
||||||
\let\LanguageShortHands\languageshorthands
|
\let\LanguageShortHands\languageshorthands
|
||||||
\def\languageshorthands#1{}
|
\def\languageshorthands#1{}
|
||||||
|
$if(selnolig-langs)$
|
||||||
|
\ifLuaTeX
|
||||||
|
\usepackage[$for(selnolig-langs)$$it$$sep$,$endfor$]{selnolig} % disable illegal ligatures
|
||||||
|
\fi
|
||||||
|
$endif$
|
||||||
$endif$
|
$endif$
|
||||||
$for(header-includes)$
|
$for(header-includes)$
|
||||||
$header-includes$
|
$header-includes$
|
||||||
$endfor$
|
$endfor$
|
||||||
\ifLuaTeX
|
|
||||||
\usepackage{selnolig} % disable illegal ligatures
|
|
||||||
\fi
|
|
||||||
$if(dir)$
|
$if(dir)$
|
||||||
\ifPDFTeX
|
\ifPDFTeX
|
||||||
\TeXXeTstate=1
|
\TeXXeTstate=1
|
||||||
@ -520,7 +572,7 @@ $endif$
|
|||||||
$if(csquotes)$
|
$if(csquotes)$
|
||||||
\usepackage{csquotes}
|
\usepackage{csquotes}
|
||||||
$endif$
|
$endif$
|
||||||
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
|
\usepackage{bookmark}
|
||||||
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
|
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
|
||||||
\urlstyle{$if(urlstyle)$$urlstyle$$else$same$endif$}
|
\urlstyle{$if(urlstyle)$$urlstyle$$else$same$endif$}
|
||||||
$if(links-as-notes)$
|
$if(links-as-notes)$
|
||||||
@ -552,8 +604,11 @@ $if(colorlinks)$
|
|||||||
filecolor={$if(filecolor)$$filecolor$$else$default-filecolor$endif$},
|
filecolor={$if(filecolor)$$filecolor$$else$default-filecolor$endif$},
|
||||||
citecolor={$if(citecolor)$$citecolor$$else$default-citecolor$endif$},
|
citecolor={$if(citecolor)$$citecolor$$else$default-citecolor$endif$},
|
||||||
urlcolor={$if(urlcolor)$$urlcolor$$else$default-urlcolor$endif$},
|
urlcolor={$if(urlcolor)$$urlcolor$$else$default-urlcolor$endif$},
|
||||||
|
$else$
|
||||||
|
$if(boxlinks)$
|
||||||
$else$
|
$else$
|
||||||
hidelinks,
|
hidelinks,
|
||||||
|
$endif$
|
||||||
$endif$
|
$endif$
|
||||||
breaklinks=true,
|
breaklinks=true,
|
||||||
pdfcreator={LaTeX via pandoc with the Eisvogel template}}
|
pdfcreator={LaTeX via pandoc with the Eisvogel template}}
|
||||||
@ -579,7 +634,7 @@ $if(institute)$
|
|||||||
\institute{$for(institute)$$institute$$sep$ \and $endfor$}
|
\institute{$for(institute)$$institute$$sep$ \and $endfor$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(titlegraphic)$
|
$if(titlegraphic)$
|
||||||
\titlegraphic{\includegraphics{$titlegraphic$}}
|
\titlegraphic{\includegraphics$if(titlegraphicoptions)$[$for(titlegraphicoptions)$$titlegraphicoptions$$sep$, $endfor$]$endif${$titlegraphic$}}
|
||||||
$endif$
|
$endif$
|
||||||
$if(logo)$
|
$if(logo)$
|
||||||
\logo{\includegraphics{$logo$}}
|
\logo{\includegraphics{$logo$}}
|
||||||
@ -1027,7 +1082,8 @@ $if(beamer)$
|
|||||||
$if(toc-title)$
|
$if(toc-title)$
|
||||||
\frametitle{$toc-title$}
|
\frametitle{$toc-title$}
|
||||||
$endif$
|
$endif$
|
||||||
\tableofcontents[hideallsubsections]
|
\setcounter{tocdepth}{$toc-depth$}
|
||||||
|
\tableofcontents
|
||||||
\end{frame}
|
\end{frame}
|
||||||
$if(toc-own-page)$
|
$if(toc-own-page)$
|
||||||
\newpage
|
\newpage
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 555 KiB After Width: | Height: | Size: 555 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user