aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-01-11 09:40:31 -0800
committerJohn MacFarlane <[email protected]>2023-01-11 09:40:31 -0800
commit8a2418cc29fba8c4ee4c9dc232450ccbe494dea9 (patch)
tree5f58f2f6b387009d7348875e4f699a19a89bf800 /data
parente5fed51529120067672b840ba80084281761649e (diff)
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.
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.latex6
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index bb752a680..68a006971 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -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$}