aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-03-28 16:23:51 -0700
committerJohn MacFarlane <[email protected]>2023-03-28 16:23:51 -0700
commita5159c2c505cd9a87856877b3287aa0b88e4e0ba (patch)
treeb940008b04de1abed518367e97360b56ac18f560 /data
parent8db71cecb51a9854d3ee1d60f51b24e657bfb8f6 (diff)
Fix `\babelfont` in default latex template.
The first invocation should not specify a language, because it's the default. If we specify a language, we get an error in some cases. Closes #8728.
Diffstat (limited to 'data')
-rw-r--r--data/templates/default.latex2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index 341bf2589..bc5f54e81 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -363,7 +363,7 @@ $if(babel-lang)$
$if(mainfont)$
\ifPDFTeX
\else
-\babelfont[$babel-lang$]{rm}[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
+\babelfont{rm}[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
\fi
$endif$
$endif$