summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/csquotes/csquotes.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/csquotes/csquotes.sty')
-rw-r--r--macros/latex/contrib/csquotes/csquotes.sty15
1 files changed, 9 insertions, 6 deletions
diff --git a/macros/latex/contrib/csquotes/csquotes.sty b/macros/latex/contrib/csquotes/csquotes.sty
index 0d61ab8b23..9fa4802124 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-15 v5.2h context-sensitive quotations (JAW)]
+ [2019-12-02 v5.2i context-sensitive quotations (JAW)]
%% Compatibility and requirements
@@ -807,18 +807,21 @@
{\edef\csq@mainlang{\languagename}}
{\csq@warn@multilang{Cannot detect main document language}}}}}
+\newcommand*{\csq@otherlang@star}{\csuse{otherlanguage*}}
+\newcommand*{\csq@otherlang@star@end}{\csuse{endotherlanguage*}}
+
\def\csq@resetlang{%
\ifdef\csq@mainlang
- {\csuse{otherlanguage*}{\csq@mainlang}%
+ {\expandafter\csq@otherlang@star\expandafter{\csq@mainlang}%
\let\csq@resetlang\relax}
{}}
\protected\long\def\csq@switchlang#1{%
\ifdef\csq@mainlang
{\begingroup
- \csuse{otherlanguage*}{\csq@mainlang}%
+ \expandafter\csq@otherlang@star\expandafter{\csq@mainlang}%
#1%
- \csuse{endotherlanguage*}%
+ \csq@otherlang@star@end
\endgroup}
{#1}}
@@ -826,9 +829,9 @@
\def\csq@lang#1{%
\csq@savelang
- \lowercase{\csuse{otherlanguage*}{#1}}}
+ \lowercase{\csq@otherlang@star{#1}}}
\def\csq@endlang{%
- \csuse{endotherlanguage*}}
+ \csq@otherlang@star@end}
\def\csq@nolang#1{%
\begingroup