diff options
Diffstat (limited to 'macros/latex/contrib/xsim/code/xsim.translations.code.tex')
-rw-r--r-- | macros/latex/contrib/xsim/code/xsim.translations.code.tex | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/macros/latex/contrib/xsim/code/xsim.translations.code.tex b/macros/latex/contrib/xsim/code/xsim.translations.code.tex index 978413f6e6..f818c8d5ff 100644 --- a/macros/latex/contrib/xsim/code/xsim.translations.code.tex +++ b/macros/latex/contrib/xsim/code/xsim.translations.code.tex @@ -65,18 +65,19 @@ } } -\AtBeginDocument{ - \bool_if:NTF \l__xsim_language_auto_bool - { - \tl_set:Nx \l_xsim_language_tl - { \@trnslt@language{\@trnslt@current@language} } - } - { - \tl_set_eq:NN - \l_xsim_language_tl - \l__xsim_current_language_tl - } -} +\xsim_at_begin_document:n + { + \bool_if:NTF \l__xsim_language_auto_bool + { + \tl_set:Nx \l_xsim_language_tl + { \@trnslt@language{\@trnslt@current@language} } + } + { + \tl_set_eq:NN + \l_xsim_language_tl + \l__xsim_current_language_tl + } + } % ---------------------------------------------------------------------------- % #1: keyword |