diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/csquotes/csquotes.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/csquotes/csquotes.sty | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/csquotes/csquotes.sty b/Master/texmf-dist/tex/latex/csquotes/csquotes.sty index 82cf213566f..aef0dcba32e 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.1c 2011/03/25 20:24:11 lehman stable $ +% $Id: csquotes.sty,v 5.1d 2011/10/22 19:17:39 lehman stable $ % Copyright (c) 2003-2011 Philipp Lehman. % @@ -18,7 +18,7 @@ \NeedsTeXFormat{LaTeX2e}[2005/12/01] \ProvidesPackage{csquotes} -[\csq@rcsid $Id: csquotes.sty,v 5.1c 2011/03/25 20:24:11 lehman stable $ +[\csq@rcsid $Id: csquotes.sty,v 5.1d 2011/10/22 19:17:39 lehman stable $ context-sensitive quotations] \def\csq@version$#1: #2.#3 ${#2#3} @@ -488,7 +488,9 @@ \csq@thequote@iclose \let\csq@kernchar@i\csq@thequote@iclose \fi - \csq@setmarker@close + \ifnum\csq@qlevel>\@ne + \csq@setmarker@close + \fi \ifblank{#1}{}{\expandafter#1}% \expandafter\csq@eqgroup \expandafter\def @@ -567,7 +569,7 @@ \settowidth{\@tempdima}{% \csq@kernchar@i\csq@kernchar@ii}% \settowidth{\@tempdimb}{% - \csq@kernchar@i\relax\csq@kernchar@ii}% + \csq@kernchar@i\kern\z@\csq@kernchar@ii}% \ifdim\@tempdima=\@tempdimb \else \addtolength{\@tempdima}{-\@tempdimb}% @@ -983,6 +985,7 @@ \AfterEndPreamble{% babel \begingroup \makeatletter + \endlinechar\m@ne \edef\csq@tempa{% \noexpand\scantokens{% \gdef\noexpand\csq@autopunct{\csq@autopunct}% @@ -1959,18 +1962,28 @@ {\csq@setqstyle[]}}} \def\csq@setqstyle[#1]#2{% - \ifnum\csq@reset=\@ne + \ifnum\csq@reset>\z@ \csq@info{Disabling multilingual quotes}% \csq@reset\z@ \fi \ifblank{#1} - {\csq@setstyle{#2}} - {\csq@setstyle{#2/#1}}} + {\DeclareQuoteAlias{#2}{default}} + {\DeclareQuoteAlias{#2/#1}{default}}} \def\csq@resetqstyle{% \csq@info{Enabling multilingual quotes}% \csq@reset\@ne} +\AtEndPreamble{% + \def\csq@setqstyle[#1]#2{% + \ifnum\csq@reset=\@ne + \csq@info{Disabling multilingual quotes}% + \csq@reset\z@ + \fi + \ifblank{#1} + {\csq@setstyle{#2}} + {\csq@setstyle{#2/#1}}}} + %% Define quote styles \newrobustcmd*{\DeclareQuoteStyle}[2][]{% |