Skip to content

Commit

Permalink
Only include ldf languages in global options.
Browse files Browse the repository at this point in the history
It appears that the others are loaded automatically, and
`\babelprovide` isn't needed, but I'm not positive.
  • Loading branch information
jgm committed Feb 6, 2025
1 parent 44bbfb7 commit 289e566
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Text/Pandoc/Writers/LaTeX.hs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ pandocToLaTeX options (Pandoc meta blocks) = do
_ -> id)
$ defField "babel-otherlangs"
(map literal
(nubOrd . catMaybes . filter (/= babelLang)
(filter (`elem` ldfLanguages) .
nubOrd . catMaybes .
filter (/= babelLang)
$ map toBabel docLangs))
$ defField "selnolig-langs"
(literal . T.intercalate "," $
Expand Down

0 comments on commit 289e566

Please sign in to comment.