diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-09-09 18:32:37 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-09-19 09:40:59 -0700 |
commit | dd7b83ac9111b63786c1042c4849d7cea79c668b (patch) | |
tree | 1d8f573b01394f765d68cb8939bf1800ec0c9c14 /data/templates/default.latex | |
parent | ca20d5c10bb81147eb2342908ca87b453c8e5d78 (diff) | |
download | pandoc-dd7b83ac9111b63786c1042c4849d7cea79c668b.tar.gz |
Use babel, not polyglossia, with xelatex.
Previously polyglossia worked better with xelatex, but
that is no longer the case, so we simplify the code so that
babel is used with all latex engines.
This involves a change to the default LaTeX template.
Diffstat (limited to 'data/templates/default.latex')
-rw-r--r-- | data/templates/default.latex | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex index d6a6208a9..27a3fc877 100644 --- a/data/templates/default.latex +++ b/data/templates/default.latex @@ -374,22 +374,10 @@ $for(header-includes)$ $header-includes$ $endfor$ $if(lang)$ -\ifXeTeX - % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic) - \usepackage{polyglossia} - \setmainlanguage[$for(polyglossia-lang.options)$$polyglossia-lang.options$$sep$,$endfor$]{$polyglossia-lang.name$} -$for(polyglossia-otherlangs)$ - \setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$} -$endfor$ -\else - \usepackage[$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel} +\usepackage[$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel} % get rid of language-specific shorthands (see #6817): \let\LanguageShortHands\languageshorthands \def\languageshorthands#1{} -$if(babel-newcommands)$ - $babel-newcommands$ -$endif$ -\fi $endif$ \ifLuaTeX \usepackage{selnolig} % disable illegal ligatures |