From dc30361cc7b17d023d5808b86cd735d319755728 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Wed, 13 Jan 2010 00:02:38 +0000
Subject: oberdiek update (12jan10)

git-svn-id: svn://tug.org/texlive/trunk@16689 c570f23f-e606-0410-a88d-b1316a301751
---
 .../tex/latex/oberdiek/pdfcolparallel.sty          | 38 ++++++++++++++++++++--
 1 file changed, 35 insertions(+), 3 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/oberdiek/pdfcolparallel.sty')

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'.
-- 
cgit v1.2.3

