From cc886096f2122d5b97fe7978d107eb4a25d82334 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 2 Mar 2025 17:30:38 +0100 Subject: [PATCH] Use language scopes Use language scopes so that the language settings of the document are not touched. --- dictionary.sty | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dictionary.sty b/dictionary.sty index 0d612d7..ccf41f0 100644 --- a/dictionary.sty +++ b/dictionary.sty @@ -25,6 +25,5 @@ \DTLsort{word}{dictionary}% \scriptsize% \DTLforeach*{dictionary}{\word=word,\translation=translation}{% - \selectlanguage{\@dictionary@primary}\textbf{\word:} \selectlanguage{\@dictionary@secondary}\translation\\}% - \selectlanguage{\@dictionary@primary}% + \foreignlanguage{\@dictionary@primary}{\textbf{\word:} }\foreignlanguage{\@dictionary@secondary}{\translation}\\}% }