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.
This commit is contained in:
John MacFarlane 2021-10-16 23:34:53 -07:00
parent fcbfc8cd39
commit 3f489bcb58
2 changed files with 4 additions and 6 deletions

View file

@ -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)$

View file

@ -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}