diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/csquotes/csquotes.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/csquotes/csquotes.sty | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/csquotes/csquotes.sty b/Master/texmf-dist/tex/latex/csquotes/csquotes.sty index dea2ebf12b6..a29534c45f3 100644 --- a/Master/texmf-dist/tex/latex/csquotes/csquotes.sty +++ b/Master/texmf-dist/tex/latex/csquotes/csquotes.sty @@ -1,4 +1,4 @@ -% $Id: csquotes.sty,v 5.0a 2010/06/09 20:45:32 lehman stable $ +% $Id: csquotes.sty,v 5.0b 2010/08/06 18:16:03 lehman stable $ % Copyright (c) 2003-2010 Philipp Lehman. % @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{csquotes} -[\csq@rcsid $Id: csquotes.sty,v 5.0a 2010/06/09 20:45:32 lehman stable $ +[\csq@rcsid $Id: csquotes.sty,v 5.0b 2010/08/06 18:16:03 lehman stable $ context-sensitive quotations] \def\csq@version$#1: #2.#3 ${#2#3} @@ -98,6 +98,7 @@ \providecommand{\@gobblethree}[3]{} \providecommand{\@gobblefive}[5]{} +\providecommand{\@gobbletwo@optarg}[2][]{} % {<item>}{<list>}{<separator>} @@ -910,7 +911,7 @@ \ifx#1&% \expandafter\csq@getpunct@v \fi - \if\noexpand#1\noexpand\@let@token + \ifx#1\@let@token \expandafter\csq@getpunct@iii \fi \csq@getpunct@ii} @@ -922,7 +923,7 @@ \ifx#1&% \expandafter\csq@getpunct@vi \fi - \if\noexpand#1\noexpand\@let@token + \ifx#1\@let@token \expandafter\csq@getpunct@vii \fi \csq@getpunct@iv} @@ -936,11 +937,21 @@ \newrobustcmd*{\DeclareAutoPunct}[1]{% \ifblank{#1} {\def\csq@autopunct{}} - {\edef\csq@autopunct{\detokenize{#1}}}} + {\def\csq@autopunct{#1}}} \let\csq@autopunct\@empty \def\csq@allpunct{.,;:!?} +\AfterEndPreamble{% babel + \begingroup + \makeatletter + \edef\csq@tempa{% + \noexpand\scantokens{% + \gdef\noexpand\csq@autopunct{\csq@autopunct}% + \gdef\noexpand\csq@allpunct{\csq@allpunct}}}% + \csq@tempa + \endgroup} + % Plain quotes \newrobustcmd*{\enquote}{% @@ -1137,6 +1148,7 @@ \let\csq@error\@gobbletwo \let\csq@warning\@gobble \let\csq@info\@gobble + \let\marginpar\@gobbletwo@optarg \let\label\@gobble \let\index\@gobble \let\glossary\@gobble} |