LaTeX template: set \babelfont...

when `mainlang` and a lang are specified and pdflatex is not being used.
This is needed for good results in Arabic and doesn't seem to hurt
for other languages we've tried.

Closes #8538.
This commit is contained in:
John MacFarlane
2023-01-11 09:40:31 -08:00
parent e5fed51529
commit 8a2418cc29
+6
View File
@@ -343,6 +343,12 @@ $if(lang)$
\fi
$if(babel-lang)$
\babelprovide[main,import]{$babel-lang$}
$if(mainfont)$
\ifPDFTeX
\else
\babelfont[$babel-lang$]{rm}{$mainfont$}
\fi
$endif$
$endif$
$for(babel-otherlangs)$
\babelprovide[import]{$babel-otherlangs$}