summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/pdfcolparcolumns.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/pdfcolparcolumns.sty')
-rw-r--r--Master/texmf-dist/tex/latex/oberdiek/pdfcolparcolumns.sty37
1 files changed, 34 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/pdfcolparcolumns.sty b/Master/texmf-dist/tex/latex/oberdiek/pdfcolparcolumns.sty
index 90a0a6a9619..9e220223854 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/pdfcolparcolumns.sty
+++ b/Master/texmf-dist/tex/latex/oberdiek/pdfcolparcolumns.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{pdfcolparcolumns}%
- [2008/08/11 v1.2 Color stacks support for parcolumns (HO)]%
+ [2010/01/11 v1.3 Color stacks support for parcolumns (HO)]%
\DeclareOption*{%
\PassoptionsToPackage{\CurrentOption}{parcolumns}%
}
@@ -148,7 +149,10 @@
\strut
\hfill
\ifpc@rulebetween
- \vrule
+ \begingroup
+ \pcpc@RuleBetweenColor
+ \vrule
+ \endgroup
\hfill
\fi
\fi
@@ -156,6 +160,33 @@
}%
\@tempa
}
+\def\pcpc@RuleBetweenColorDefault{%
+ \normalcolor
+}
+\let\pcpc@RuleBetweenColor\pcpc@RuleBetweenColorDefault
+\define@key{parcolumns}{rulebetweencolor}{%
+ \edef\pcpc@temp{#1}%
+ \ifx\pcpc@temp\@empty
+ \let\pcpc@RuleBetweenColor\pcpc@RuleBetweenColorDefault
+ \else
+ \edef\pcpc@temp{%
+ \noexpand\@ifnextchar[{%
+ \def\noexpand\pcpc@RuleBetweenColor{%
+ \noexpand\color\pcpc@temp
+ }%
+ \noexpand\pcpc@GobbleNil
+ }{%
+ \def\noexpand\pcpc@RuleBetweenColor{%
+ \noexpand\color{\pcpc@temp}%
+ }%
+ \noexpand\pcpc@GobbleNil
+ }%
+ \pcpc@temp\noexpand\@nil
+ }%
+ \pcpc@temp
+ \fi
+}
+\long\def\pcpc@GobbleNil#1\@nil{}
\endinput
%%
%% End of file `pdfcolparcolumns.sty'.