mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2024-12-19 22:37:51 +00:00
fix: Merge changes from the pandoc default LaTeX template (Version 3.1.7) (#358)
This commit is contained in:
parent
e31e8b2d69
commit
54434193bd
4
.github/workflows/build-examples.yml
vendored
4
.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.1"
|
PANDOC_VERSION: "3.1.7"
|
||||||
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.9'
|
python-version: '3.11'
|
||||||
- name: Install python filters
|
- name: Install python filters
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
|
@ -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.4.1] - 2023-09-06
|
||||||
|
|
||||||
|
- Merge changes from the pandoc default LaTeX template from Version 3.1.7 (as of 2023-08-31, [8a5b381](https://github.com/jgm/pandoc-templates/blob/8a5b381c156c974b485197208c6dc86fce94b5c3/default.latex)).
|
||||||
|
|
||||||
## [2.4.0] - 2023-04-17
|
## [2.4.0] - 2023-04-17
|
||||||
|
|
||||||
- Merge changes from the pandoc default LaTeX template (as of 2023-03-29, [a5159c2](https://github.com/jgm/pandoc/blob/a5159c2c505cd9a87856877b3287aa0b88e4e0ba/data/templates/default.latex)).
|
- Merge changes from the pandoc default LaTeX template (as of 2023-03-29, [a5159c2](https://github.com/jgm/pandoc/blob/a5159c2c505cd9a87856877b3287aa0b88e4e0ba/data/templates/default.latex)).
|
||||||
|
39
eisvogel.tex
39
eisvogel.tex
@ -390,6 +390,13 @@ $-- also used for underline
|
|||||||
\usepackage[soul]{lua-ul}
|
\usepackage[soul]{lua-ul}
|
||||||
\else
|
\else
|
||||||
\usepackage{soul}
|
\usepackage{soul}
|
||||||
|
$if(CJKmainfont)$
|
||||||
|
\ifXeTeX
|
||||||
|
% soul's \st doesn't work for CJK:
|
||||||
|
\usepackage{xeCJKfntef}
|
||||||
|
\renewcommand{\st}[1]{\sout{#1}}
|
||||||
|
\fi
|
||||||
|
$endif$
|
||||||
\fi
|
\fi
|
||||||
$endif$
|
$endif$
|
||||||
\setlength{\emergencystretch}{3em} % prevent overfull lines
|
\setlength{\emergencystretch}{3em} % prevent overfull lines
|
||||||
@ -421,24 +428,28 @@ $if(pagestyle)$
|
|||||||
\pagestyle{$pagestyle$}
|
\pagestyle{$pagestyle$}
|
||||||
$endif$
|
$endif$
|
||||||
$if(csl-refs)$
|
$if(csl-refs)$
|
||||||
|
% definitions for citeproc citations
|
||||||
|
\NewDocumentCommand\citeproctext{}{}
|
||||||
|
\NewDocumentCommand\citeproc{mm}{%
|
||||||
|
\begingroup\def\citeproctext{#2}\cite{#1}\endgroup}
|
||||||
|
% avoid brackets around text for \cite:
|
||||||
|
\makeatletter
|
||||||
|
\def\@biblabel#1{}
|
||||||
|
\def\@cite#1#2{{#1\if@tempswa , #2\fi}}
|
||||||
|
\makeatother
|
||||||
\newlength{\cslhangindent}
|
\newlength{\cslhangindent}
|
||||||
\setlength{\cslhangindent}{1.5em}
|
\setlength{\cslhangindent}{1.5em}
|
||||||
\newlength{\csllabelwidth}
|
\newlength{\csllabelwidth}
|
||||||
\setlength{\csllabelwidth}{3em}
|
\setlength{\csllabelwidth}{3em}
|
||||||
\newlength{\cslentryspacingunit} % times entry-spacing
|
\newlength{\cslentryspacing}
|
||||||
\setlength{\cslentryspacingunit}{\parskip}
|
\setlength{\cslentryspacing}{0em}
|
||||||
\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
|
\usepackage{enumitem}
|
||||||
{% don't indent paragraphs
|
\newlist{CSLReferences}{itemize}{1}
|
||||||
\setlength{\parindent}{0pt}
|
\setlist[CSLReferences]{label={},
|
||||||
% turn on hanging indent if param 1 is 1
|
leftmargin=\cslhangindent,
|
||||||
\ifodd #1
|
itemindent=-1\cslhangindent,
|
||||||
\let\oldpar\par
|
parsep=\parskip,
|
||||||
\def\par{\hangindent=\cslhangindent\oldpar}
|
itemsep=\cslentryspacing}
|
||||||
\fi
|
|
||||||
% set entry spacing
|
|
||||||
\setlength{\parskip}{#2\cslentryspacingunit}
|
|
||||||
}%
|
|
||||||
{}
|
|
||||||
\usepackage{calc}
|
\usepackage{calc}
|
||||||
\newcommand{\CSLBlock}[1]{#1\hfill\break}
|
\newcommand{\CSLBlock}[1]{#1\hfill\break}
|
||||||
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
|
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
|
||||||
|
Loading…
Reference in New Issue
Block a user