summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/pdfcolparallel.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/pdfcolparallel.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/pdfcolparallel.dtx87
1 files changed, 78 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/pdfcolparallel.dtx b/Master/texmf-dist/source/latex/oberdiek/pdfcolparallel.dtx
index 09cf6c71a42..79133a5816e 100644
--- a/Master/texmf-dist/source/latex/oberdiek/pdfcolparallel.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/pdfcolparallel.dtx
@@ -1,6 +1,7 @@
% \iffalse meta-comment
%
-% 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
@@ -68,7 +69,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: pdfcolparallel 2008/08/11 v1.2 Fixed parallel with color stacks support (HO)}
+\Msg{* Package: pdfcolparallel 2010/01/11 v1.3 Fixed parallel with color stacks support (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -79,7 +80,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
@@ -137,7 +139,7 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{pdfcolparallel.drv}%
- [2008/08/11 v1.2 Fixed parallel with color stacks support (HO)]%
+ [2010/01/11 v1.3 Fixed parallel with color stacks support (HO)]%
\documentclass{ltxdoc}
\usepackage{holtxdoc}[2008/08/11]
\begin{document}
@@ -146,7 +148,7 @@ and the derived files
%</driver>
% \fi
%
-% \CheckSum{714}
+% \CheckSum{763}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -167,7 +169,7 @@ and the derived files
% \GetFileInfo{pdfcolparallel.drv}
%
% \title{The \xpackage{pdfcolparallel} package}
-% \date{2008/08/11 v1.2}
+% \date{2010/01/11 v1.3}
% \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}}
%
% \maketitle
@@ -191,6 +193,24 @@ and the derived files
% If color stacks are available then package \xpackage{parallel}
% is further patched to support them.
%
+% \subsection{Option \xoption{rulebetweencolor}}
+%
+% Package \xpackage{pdfcolparallel} also fixes the color for the
+% rule between columns.
+% Default color is \cs{normalcolor}. But this can be changed by using
+% option \xoption{rulebetweencolor} for |\setkeys{parallel}|
+% (see package \xpackage{keyval}). The option takes a color specification
+% as value. If the value is empty, then the default (\cs{normalcolor})
+% is used.
+% Examples:
+% \begin{quote}
+% |\setkeys{parallel}{rulebetweencolor=blue}|,\\
+% |\setkeys{parallel}{rulebetweencolor={red}}|,\\
+% |\setkeys{parallel}{rulebetweencolor={}}|,
+% \textit{\% \cs{normalcolor} is used}\\
+% |\setkeys{parallel}{rulebetweencolor=[rgb]{1,0,.5}}|
+% \end{quote}
+%
% \subsection{Future}
%
% If there will be a new version of package \xpackage{parallel}
@@ -208,7 +228,7 @@ and the derived files
%<*package>
\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)]%
% \end{macrocode}
%
% \subsection{Load and fix package \xpackage{parallel}}
@@ -672,7 +692,10 @@ and the derived files
\strut
\ifnum\ParallelBoolMid=\@ne
\hskip\ParallelMainMidSkip
- \vrule
+ \begingroup
+ \pcp@RuleBetweenColor
+ \vrule
+ \endgroup
\else
\hss
\fi
@@ -706,6 +729,48 @@ and the derived files
}
% \end{macrocode}
% \end{macro}
+% \begin{macro}{\pcp@RuleBetweenColorDefault}
+% \begin{macrocode}
+\def\pcp@RuleBetweenColorDefault{%
+ \normalcolor
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\pcp@RuleBetweenColor}
+% \begin{macrocode}
+\let\pcp@RuleBetweenColor\pcp@RuleBetweenColorDefault
+% \end{macrocode}
+% \end{macro}
+% \begin{macrocode}
+\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
+}
+% \end{macrocode}
+% \begin{macro}{\pcp@GobbleNil}
+% \begin{macrocode}
+\long\def\pcp@GobbleNil#1\@nil{}
+% \end{macrocode}
+% \end{macro}
%
% \begin{macrocode}
%</package>
@@ -728,7 +793,7 @@ and the derived files
}
\documentclass{article}
\usepackage{xcolor}
-\usepackage{pdfcolparallel}[2008/08/11]
+\usepackage{pdfcolparallel}[2010/01/11]
\begin{document}
\color{green}%
@@ -1027,6 +1092,10 @@ and the derived files
% \item
% URLs updated.
% \end{Version}
+% \begin{Version}{2010/01/11 v1.3}
+% \item
+% Option `rulebetweencolor' added.
+% \end{Version}
% \end{History}
%
% \PrintIndex