summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/pdfcolparcolumns.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/pdfcolparcolumns.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/pdfcolparcolumns.dtx104
1 files changed, 96 insertions, 8 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/pdfcolparcolumns.dtx b/Master/texmf-dist/source/latex/oberdiek/pdfcolparcolumns.dtx
index 2e1931aee42..1ab2cadfa30 100644
--- a/Master/texmf-dist/source/latex/oberdiek/pdfcolparcolumns.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/pdfcolparcolumns.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: pdfcolparcolumns 2008/08/11 v1.2 Color stacks support for parcolumns (HO)}
+\Msg{* Package: pdfcolparcolumns 2010/01/11 v1.3 Color stacks support for parcolumns (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{pdfcolparcolumns.drv}%
- [2008/08/11 v1.2 Color stacks support for parcolumns (HO)]%
+ [2010/01/11 v1.3 Color stacks support for parcolumns (HO)]%
\documentclass{ltxdoc}
\usepackage{holtxdoc}[2008/08/11]
\begin{document}
@@ -146,7 +148,7 @@ and the derived files
%</driver>
% \fi
%
-% \CheckSum{263}
+% \CheckSum{311}
%
% \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{pdfcolparcolumns.drv}
%
% \title{The \xpackage{pdfcolparcolumns} package}
-% \date{2008/08/11 v1.2}
+% \date{2010/01/11 v1.3}
% \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}}
%
% \maketitle
@@ -190,6 +192,42 @@ and the derived files
% macros of \xpackage{parcolumns} are patched to add support
% for color stacks.
%
+% \subsection{Option \xoption{rulebetweencolor}}
+%
+% Package \xpackage{pdfcolparcolumns} also fixes the color for the
+% rule between columns (if \xoption{rulebetween} is set).
+% Default color is \cs{normalcolor}. But this can be changed by using
+% option \xoption{rulebetweencolor}. It takes a color specification
+% as value. If the value is empty, then the default (\cs{normalcolor})
+% is used.
+% Examples:
+% \begin{quote}
+% |rulebetweencolor=blue|,\\
+% |rulebetweencolor={red}|,\\
+% |rulebetweencolor={}|, \textit{\% \cs{normalcolor} is used}\\
+% |rulebetweencolor=[rgb]{1,0,.5}| \textit{\% see below}
+% \end{quote}
+% If used inside the optional argument of environment \textsf{parcolumns}
+% and the value contains an optional argument, then whole value
+% must be put in curly braces:
+%\begin{quote}
+%\begin{verbatim}
+%\begin{parcolumns}[
+% rulebetween,
+% rulebetweencolor={[rgb]{1,0,.5}},
+%]{2}
+% ...
+%\end{parcolumns}
+%\end{verbatim}
+%\end{quote}
+% This option \xoption{rulebetweencolor} can also be set using
+% \cs{setkeys}:
+%\begin{quote}
+%\begin{verbatim}
+%\setkeys{parcolumns}{rulebetweencolor=green}
+%\end{verbatim}
+%\end{quote}
+%
% \subsection{Future}
%
% Currently package \xpackage{parcolumns} does not seem to be
@@ -208,7 +246,7 @@ and the derived files
%<*package>
\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)]%
% \end{macrocode}
%
% \subsection{Load packages}
@@ -407,7 +445,10 @@ and the derived files
\strut
\hfill
\ifpc@rulebetween
- \vrule
+ \begingroup
+ \pcpc@RuleBetweenColor
+ \vrule
+ \endgroup
\hfill
\fi
\fi
@@ -417,6 +458,47 @@ and the derived files
}
% \end{macrocode}
% \end{macro}
+% \begin{macro}{\pcpc@RuleBetweenColorDefault}
+% \begin{macrocode}
+\def\pcpc@RuleBetweenColorDefault{%
+ \normalcolor
+}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\pcpc@RuleBetweenColor}
+% \begin{macrocode}
+\let\pcpc@RuleBetweenColor\pcpc@RuleBetweenColorDefault
+% \end{macrocode}
+% \end{macro}
+% \begin{macrocode}
+\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
+}
+% \end{macrocode}
+% \begin{macro}{\pcpc@GobbleNil}
+% \begin{macrocode}
+\long\def\pcpc@GobbleNil#1\@nil{}
+% \end{macrocode}
+% \end{macro}
%
% \begin{macrocode}
%</package>
@@ -694,6 +776,12 @@ and the derived files
% \item
% URLs updated.
% \end{Version}
+% \begin{Version}{2010/01/11 v1.3}
+% \item
+% Fix for rule color.
+% \item
+% New option \xoption{rulebetweencolor} for environment |parcolumns|.
+% \end{Version}
% \end{History}
%
% \PrintIndex