From bcaa45f39d8f7664b95028fdefeaece6237bcb3a Mon Sep 17 00:00:00 2001 From: moewew Date: Thu, 5 Dec 2024 20:20:24 +0100 Subject: [PATCH] Fix definition of \blx@endlang again (#1350, #1377) See also 533b1ee6ab1d7b1b61d830125ebad6375204cf81 --- tex/latex/biblatex/biblatex.sty | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/tex/latex/biblatex/biblatex.sty b/tex/latex/biblatex/biblatex.sty index ca0aea13b..54f1f4b1d 100644 --- a/tex/latex/biblatex/biblatex.sty +++ b/tex/latex/biblatex/biblatex.sty @@ -6866,6 +6866,13 @@ {\def\blx@beglang{% \blx@clearlang \begingroup + \def\blx@endlang{\endgroup}% + \iftoggle{blx@autolangbib} + {\let\blx@endlangbib\blx@endlang} + {}% + \iftoggle{blx@autolangcite} + {\let\blx@endlangcite\blx@endlang} + {}% % track outer language (i.e. language not selected by biblatex) \ifundef\blx@outer@language@set {\let\blx@outer@language\blx@languagename @@ -6899,13 +6906,7 @@ \expandafter\expandafter\expandafter{% \expandafter\blx@thelangenv\expandafter}% \expandafter{\abx@field@langid}}} - {\def\blx@endlang{\endgroup}% - \iftoggle{blx@autolangbib} - {\let\blx@endlangbib\blx@endlang} - {}% - \iftoggle{blx@autolangcite} - {\let\blx@endlangcite\blx@endlang} - {}}}} + {}}} {}% \def\blx@imc@mainlang{% \ifundef\blx@warn@mainlang @@ -6949,6 +6950,13 @@ {\def\blx@beglang{% \blx@clearlang \begingroup + \def\blx@endlang{\endgroup}% + \iftoggle{blx@autolangbib} + {\let\blx@endlangbib\blx@endlang} + {}% + \iftoggle{blx@autolangcite} + {\let\blx@endlangcite\blx@endlang} + {}% % track outer language (i.e. language not selected by biblatex) \ifundef\blx@outer@language@set {\let\blx@outer@language\blx@languagename @@ -6993,13 +7001,7 @@ \expandafter\blx@thelangenv\expandafter}% \expandafter{\abx@field@langid}}% \blx@beglang@spacefactors}} - {\def\blx@endlang{\endgroup}% - \iftoggle{blx@autolangbib} - {\let\blx@endlangbib\blx@endlang} - {}% - \iftoggle{blx@autolangcite} - {\let\blx@endlangcite\blx@endlang} - {}}}} + {}}} {}% \def\blx@imc@mainlang{% \ifundef\blx@warn@mainlang