aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Elwert <frederik.elwert@web.de>2020-06-14 19:38:02 +0200
committerGitHub <noreply@github.com>2020-06-14 10:38:02 -0700
commit7716caaf2a967fa79acf835bf0d29a1abc966ab1 (patch)
treedbadf057f4b5b72f5ea311deec816a8285e3bc75
parentf699d64a1a75b672ce4ea1b57ce56889fe360df2 (diff)
downloadpandoc-7716caaf2a967fa79acf835bf0d29a1abc966ab1.tar.gz
Make polyglossia package options list-aware in the LaTeX template. (#6444)
-rw-r--r--data/templates/default.latex4
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 4ceca434c..92ab9fe13 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -328,9 +328,9 @@ $if(lang)$
\ifxetex
% Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
\usepackage{polyglossia}
- \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
+ \setmainlanguage[$for(polyglossia-lang.options)$$polyglossia-lang.options$$sep$,$endfor$]{$polyglossia-lang.name$}
$for(polyglossia-otherlangs)$
- \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
+ \setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$}
$endfor$
\else
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}