Merge changes from the pandoc default latex template (#337)

- Merge changes from the pandoc default LaTeX template (as of 2023-03-29, a5159c2).
This commit is contained in:
Pascal Wagler 2023-04-17 15:03:53 +02:00 committed by GitHub
parent fee142b4fd
commit 2a55eb75a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -385,7 +385,12 @@ $if(svg)$
$endif$ $endif$
$if(strikeout)$ $if(strikeout)$
$-- also used for underline $-- also used for underline
\ifLuaTeX
\usepackage{luacolor}
\usepackage[soul]{lua-ul}
\else
\usepackage{soul} \usepackage{soul}
\fi
$endif$ $endif$
\setlength{\emergencystretch}{3em} % prevent overfull lines \setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{% \providecommand{\tightlist}{%
@ -451,15 +456,15 @@ $if(babel-lang)$
$if(mainfont)$ $if(mainfont)$
\ifPDFTeX \ifPDFTeX
\else \else
\babelfont[$babel-lang$]{rm}{$mainfont$} \babelfont{rm}[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
\fi \fi
$endif$ $endif$
$endif$ $endif$
$for(babel-otherlangs)$ $for(babel-otherlangs)$
\babelprovide[import]{$babel-otherlangs$} \babelprovide[import]{$babel-otherlangs$}
$endfor$ $endfor$
$for(babelfonts)$ $for(babelfonts/pairs)$
\babelfont[$babelfonts.language$]{rm}{$babelfonts.font$} \babelfont[$babelfonts.key$]{rm}{$babelfonts.value$}
$endfor$ $endfor$
% get rid of language-specific shorthands (see #6817): % get rid of language-specific shorthands (see #6817):
\let\LanguageShortHands\languageshorthands \let\LanguageShortHands\languageshorthands