summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/csquotes/csquotes.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-10-26 00:53:32 +0000
committerKarl Berry <karl@freefriends.org>2011-10-26 00:53:32 +0000
commit49e79c18935c4e7609e277303f6f017d074317b3 (patch)
tree83a63669cdecc4a093c0cba4f140f5ac5c2cde6f /Master/texmf-dist/tex/latex/csquotes/csquotes.sty
parentc7b57c423e5eecf01152fc178a367a30aa7605bf (diff)
csquotes (24oct11)
git-svn-id: svn://tug.org/texlive/trunk@24393 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/csquotes/csquotes.sty')
-rw-r--r--Master/texmf-dist/tex/latex/csquotes/csquotes.sty27
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][]{%