diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/pdfcolparallel.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/pdfcolparallel.sty | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/pdfcolparallel.sty b/Master/texmf-dist/tex/latex/oberdiek/pdfcolparallel.sty index 4bd44d59dac..48b73a00729 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/pdfcolparallel.sty +++ b/Master/texmf-dist/tex/latex/oberdiek/pdfcolparallel.sty @@ -8,7 +8,8 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2008 by Heiko Oberdiek <oberdiek@uni-freiburg.de> +%% Copyright (C) 2007, 2008, 2010 by +%% Heiko Oberdiek <oberdiek@uni-freiburg.de> %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -29,7 +30,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{pdfcolparallel}% - [2008/08/11 v1.2 Fixed parallel with color stacks support (HO)]% + [2010/01/11 v1.3 Fixed parallel with color stacks support (HO)]% \DeclareOption*{% \PassoptionsToPackage{\CurrentOption}{parallel}% } @@ -412,7 +413,10 @@ \strut \ifnum\ParallelBoolMid=\@ne \hskip\ParallelMainMidSkip - \vrule + \begingroup + \pcp@RuleBetweenColor + \vrule + \endgroup \else \hss \fi @@ -444,6 +448,34 @@ \pcp@SetCurrent{}% \fi } +\def\pcp@RuleBetweenColorDefault{% + \normalcolor +} +\let\pcp@RuleBetweenColor\pcp@RuleBetweenColorDefault +\RequirePackage{keyval} +\define@key{parallel}{rulebetweencolor}{% + \edef\pcp@temp{#1}% + \ifx\pcp@temp\@empty + \let\pcp@RuleBetweenColor\pcp@RuleBetweenColorDefault + \else + \edef\pcp@temp{% + \noexpand\@ifnextchar[{% + \def\noexpand\pcp@RuleBetweenColor{% + \noexpand\color\pcp@temp + }% + \noexpand\pcp@GobbleNil + }{% + \def\noexpand\pcp@RuleBetweenColor{% + \noexpand\color{\pcp@temp}% + }% + \noexpand\pcp@GobbleNil + }% + \pcp@temp\noexpand\@nil + }% + \pcp@temp + \fi +} +\long\def\pcp@GobbleNil#1\@nil{} \endinput %% %% End of file `pdfcolparallel.sty'. |