diff options
Diffstat (limited to 'macros/latex/contrib/csquotes/csquotes.sty')
-rw-r--r-- | macros/latex/contrib/csquotes/csquotes.sty | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/macros/latex/contrib/csquotes/csquotes.sty b/macros/latex/contrib/csquotes/csquotes.sty index 7c68115a9b..9cc48633a2 100644 --- a/macros/latex/contrib/csquotes/csquotes.sty +++ b/macros/latex/contrib/csquotes/csquotes.sty @@ -12,7 +12,7 @@ \NeedsTeXFormat{LaTeX2e}[2005/12/01] \ProvidesPackage{csquotes} - [2019-11-11 v2.5f context-sensitive quotations (JAW)] + [2019-11-14 v5.2g context-sensitive quotations (JAW)] %% Compatibility and requirements @@ -781,25 +781,21 @@ \endgroup}} \def\csq@resetstyle{% - \ifundef\babelname - {\csq@resetstyle@i{\languagename}}% - {\csq@resetstyle@i{\babelname}}} + \ifnum\csq@reset=\@ne + \ifundef\babelname + {\ifundef\languagename + {\csq@warn@multilang{Cannot detect current language}} + {\csq@resetstyle@i{\languagename}}}% + {\csq@resetstyle@i{\babelname}}% + \fi} \def\csq@resetstyle@i#1{% - \begingroup - \edef\csq@tempa{\endgroup - \noexpand\csq@resetstyle@ii{#1}}% - \csq@tempa} - -\def\csq@resetstyle@ii#1{% - \ifnum\csq@reset=\@ne - \ifx\csq@currentstyle#1 - \else - \ifcsundef{csq@qstyle@#1} - {\csq@warn@style#1 - \csq@setstyle{fallback}} - {\csq@setstyle{#1}}% - \fi + \ifx\csq@currentstyle#1\relax + \else + \ifcsundef{csq@qstyle@#1} + {\csq@warn@style#1 + \csq@setstyle{fallback}} + {\csq@setstyle{#1}}% \fi} \def\csq@savelang{% |