diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-10-03 19:27:37 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-10-03 19:27:37 -0700 |
commit | 0088e79cf57fb9586e1596e2b97bdebb12667f6d (patch) | |
tree | 6864e7c6b1abf48a8f01d77819a696379aae0736 /test | |
parent | da8bcb783b1f5fc99be86617762eca42ab2db6ad (diff) | |
download | pandoc-0088e79cf57fb9586e1596e2b97bdebb12667f6d.tar.gz |
Update tests for babel-related changes in latex template.
Diffstat (limited to 'test')
-rw-r--r-- | test/writers-lang-and-dir.latex | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/test/writers-lang-and-dir.latex b/test/writers-lang-and-dir.latex index e7e5aa876..c8a1c0338 100644 --- a/test/writers-lang-and-dir.latex +++ b/test/writers-lang-and-dir.latex @@ -3,7 +3,6 @@ \PassOptionsToPackage{hyphens}{url} % \documentclass[ - english, ]{article} \usepackage{amsmath,amssymb} \usepackage{lmodern} @@ -45,17 +44,24 @@ \providecommand{\tightlist}{% \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} \setcounter{secnumdepth}{-\maxdimen} % remove section numbering -\usepackage[ngerman,british,nswissgerman,spanish,french,main=english]{babel} +\ifXeTeX +\usepackage[bidi=default]{babel} +\fi +\ifLuaTeX +\usepackage[bidi=basic]{babel} +\fi +\babelprovide[main,import]{english} +\babelprovide[import]{ngerman} +\babelprovide[import]{british} +\babelprovide[import]{nswissgerman} +\babelprovide[import]{spanish} +\babelprovide[import]{french} % get rid of language-specific shorthands (see #6817): \let\LanguageShortHands\languageshorthands \def\languageshorthands#1{} \ifLuaTeX \usepackage{selnolig} % disable illegal ligatures \fi -\ifXeTeX - % Load bidi as late as possible as it modifies e.g. graphicx - \usepackage{bidi} -\fi \ifPDFTeX \TeXXeTstate=1 \newcommand{\RL}[1]{\beginR #1\endR} |