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.
|
||||
- name: Setup pandoc
|
||||
env:
|
||||
PANDOC_VERSION: "3.1.1"
|
||||
PANDOC_VERSION: "3.1.7"
|
||||
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
|
||||
@ -37,7 +37,7 @@ jobs:
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.9'
|
||||
python-version: '3.11'
|
||||
- name: Install python filters
|
||||
run: |
|
||||
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).
|
||||
|
||||
## [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
|
||||
|
||||
- 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}
|
||||
\else
|
||||
\usepackage{soul}
|
||||
$if(CJKmainfont)$
|
||||
\ifXeTeX
|
||||
% soul's \st doesn't work for CJK:
|
||||
\usepackage{xeCJKfntef}
|
||||
\renewcommand{\st}[1]{\sout{#1}}
|
||||
\fi
|
||||
$endif$
|
||||
\fi
|
||||
$endif$
|
||||
\setlength{\emergencystretch}{3em} % prevent overfull lines
|
||||
@ -421,24 +428,28 @@ $if(pagestyle)$
|
||||
\pagestyle{$pagestyle$}
|
||||
$endif$
|
||||
$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}
|
||||
\setlength{\cslhangindent}{1.5em}
|
||||
\newlength{\csllabelwidth}
|
||||
\setlength{\csllabelwidth}{3em}
|
||||
\newlength{\cslentryspacingunit} % times entry-spacing
|
||||
\setlength{\cslentryspacingunit}{\parskip}
|
||||
\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
|
||||
{% don't indent paragraphs
|
||||
\setlength{\parindent}{0pt}
|
||||
% turn on hanging indent if param 1 is 1
|
||||
\ifodd #1
|
||||
\let\oldpar\par
|
||||
\def\par{\hangindent=\cslhangindent\oldpar}
|
||||
\fi
|
||||
% set entry spacing
|
||||
\setlength{\parskip}{#2\cslentryspacingunit}
|
||||
}%
|
||||
{}
|
||||
\newlength{\cslentryspacing}
|
||||
\setlength{\cslentryspacing}{0em}
|
||||
\usepackage{enumitem}
|
||||
\newlist{CSLReferences}{itemize}{1}
|
||||
\setlist[CSLReferences]{label={},
|
||||
leftmargin=\cslhangindent,
|
||||
itemindent=-1\cslhangindent,
|
||||
parsep=\parskip,
|
||||
itemsep=\cslentryspacing}
|
||||
\usepackage{calc}
|
||||
\newcommand{\CSLBlock}[1]{#1\hfill\break}
|
||||
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
|
||||
|
Loading…
Reference in New Issue
Block a user