summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/csquotes/csquotes.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/csquotes/csquotes.sty')
-rw-r--r--Master/texmf-dist/tex/latex/csquotes/csquotes.sty19
1 files changed, 14 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/csquotes/csquotes.sty b/Master/texmf-dist/tex/latex/csquotes/csquotes.sty
index 2e58fd40b26..82cf213566f 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.1b 2011/01/20 20:31:49 lehman stable $
+% $Id: csquotes.sty,v 5.1c 2011/03/25 20:24:11 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.1b 2011/01/20 20:31:49 lehman stable $
+[\csq@rcsid $Id: csquotes.sty,v 5.1c 2011/03/25 20:24:11 lehman stable $
context-sensitive quotations]
\def\csq@version$#1: #2.#3 ${#2#3}
@@ -528,12 +528,20 @@
\fi
\csq@tempa}
-\appto\@parboxrestore{%
+\def\blx@hook@parboxrestore{%
\let\csq@theeverypar\@empty
\csq@qlevel\z@
\toggletrue{csq@parbox}%
\togglefalse{csq@block}}
+\protected\def\blx@parboxrestore{%
+ \ifx\protect\noexpand % \@outputpage
+ \else
+ \blx@hook@parboxrestore
+ \fi}
+
+\appto\@parboxrestore{\blx@parboxrestore}
+
%% Restore kerning
\def\csq@fixkern{%
@@ -795,7 +803,8 @@
\def\csq@resetlang{%
\ifdef\csq@mainlang
- {\csuse{otherlanguage*}{\csq@mainlang}}% FIXME
+ {\csuse{otherlanguage*}{\csq@mainlang}%
+ \let\csq@resetlang\relax}
{}}
\protected\long\def\csq@switchlang#1{%
@@ -844,7 +853,7 @@
\righthyphenmin#2\relax}
\appto\csq@hook@multilang{%
- \appto\@parboxrestore{\csq@resetlang}%
+ \appto\blx@hook@parboxrestore{\csq@resetlang}%
\ifundef\l@usenglish
{\ifundef\l@USenglish
{}