diff options
| author | John MacFarlane <[email protected]> | 2024-06-10 19:33:43 -0700 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2024-06-10 19:33:43 -0700 |
| commit | cd9753d4af6286dfdd8e587314d1204f8e76801b (patch) | |
| tree | f3d5e92b542b45913934339dccb918a3a11fa064 /data | |
| parent | c9a3f5466e42ec984b5f105bb9b2023407b44997 (diff) | |
LaTeX writer/template: specify language option for `selnolig`...
...and only include it if `english` or `german` is used.
Since 3d8f011, the babel language is not specified as a
class option any more; so now we need to explicitly specify
the language option when we load `selnolig`. Only `german`
and `english` are valid, so we construct the variable
`selnolig-langs` in the writer and include `selnolig` if it
is nonempty.
This should restore proper ligature suppression when
lualatex is used.
Closes #9863. Supersedes #9864.
Thanks to @fkohrt for the initial fix.
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/default.latex | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex index 3bca1402f..24d078a39 100644 --- a/data/templates/default.latex +++ b/data/templates/default.latex @@ -443,13 +443,15 @@ $endfor$ % get rid of language-specific shorthands (see #6817): \let\LanguageShortHands\languageshorthands \def\languageshorthands#1{} +$if(selnolig-langs)$ +\ifLuaTeX + \usepackage[$for(selnolig-langs)$$it$$sep$,$endfor$]{selnolig} % disable illegal ligatures +\fi +$endif$ $endif$ $for(header-includes)$ $header-includes$ $endfor$ -\ifLuaTeX - \usepackage{selnolig} % disable illegal ligatures -\fi $if(dir)$ \ifPDFTeX \TeXXeTstate=1 |
