aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/templates/default.latex5
-rw-r--r--test/writers-lang-and-dir.latex5
2 files changed, 4 insertions, 6 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)$
diff --git a/test/writers-lang-and-dir.latex b/test/writers-lang-and-dir.latex
index c8a1c0338..1f7ce262b 100644
--- a/test/writers-lang-and-dir.latex
+++ b/test/writers-lang-and-dir.latex
@@ -44,11 +44,10 @@
\providecommand{\tightlist}{%
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
-\ifXeTeX
-\usepackage[bidi=default]{babel}
-\fi
\ifLuaTeX
\usepackage[bidi=basic]{babel}
+\else
+\usepackage[bidi=default]{babel}
\fi
\babelprovide[main,import]{english}
\babelprovide[import]{ngerman}