aboutsummaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-10-16 23:34:53 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-10-16 23:34:53 -0700
commit3f489bcb5897898d453bef549d6eba5f5d2120bf (patch)
tree10d77c3677d074be27579ba09352b4bd3669eb8c /data/templates
parentfcbfc8cd390da64817190e2feb3412aeaf54e911 (diff)
downloadpandoc-3f489bcb5897898d453bef549d6eba5f5d2120bf.tar.gz
Ensure that babel is loaded also with pdflatex.
This fixes a regression in #7604, which modernized babel usage but omitted to load babel for pdflatex, with the result that even simple documents could no longer be produced. Closes #7627.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/default.latex5
1 files changed, 2 insertions, 3 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 10377f2cd..3874813c7 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -363,11 +363,10 @@ $if(csl-refs)$
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
$endif$
$if(lang)$
-\ifXeTeX
-\usepackage[bidi=default]{babel}
-\fi
\ifLuaTeX
\usepackage[bidi=basic]{babel}
+\else
+\usepackage[bidi=default]{babel}
\fi
\babelprovide[main,import]{$babel-lang$}
$for(babel-otherlangs)$