| 1 |
%% |
| 2 |
%% This is file `pdfcolparcolumns.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% pdfcolparcolumns.dtx (with options: `package') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% Project: pdfcolparcolumns |
| 12 |
%% Version: 2019/12/29 v1.5 |
| 13 |
%% |
| 14 |
%% Copyright (C) |
| 15 |
%% 2007, 2008, 2010 Heiko Oberdiek |
| 16 |
%% 2016-2019 Oberdiek Package Support Group |
| 17 |
%% |
| 18 |
%% This work may be distributed and/or modified under the |
| 19 |
%% conditions of the LaTeX Project Public License, either |
| 20 |
%% version 1.3c of this license or (at your option) any later |
| 21 |
%% version. This version of this license is in |
| 22 |
%% https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 23 |
%% and the latest version of this license is in |
| 24 |
%% https://www.latex-project.org/lppl.txt |
| 25 |
%% and version 1.3 or later is part of all distributions of |
| 26 |
%% LaTeX version 2005/12/01 or later. |
| 27 |
%% |
| 28 |
%% This work has the LPPL maintenance status "maintained". |
| 29 |
%% |
| 30 |
%% The Current Maintainers of this work are |
| 31 |
%% Heiko Oberdiek and the Oberdiek Package Support Group |
| 32 |
%% https://github.com/ho-tex/oberdiek/issues |
| 33 |
%% |
| 34 |
%% |
| 35 |
%% This work consists of the main source file pdfcolparcolumns.dtx |
| 36 |
%% and the derived files |
| 37 |
%% pdfcolparcolumns.sty, pdfcolparcolumns.pdf, pdfcolparcolumns.ins, |
| 38 |
%% pdfcolparcolumns.drv, pdfcolparcolumns-test1.tex. |
| 39 |
%% |
| 40 |
\NeedsTeXFormat{LaTeX2e} |
| 41 |
\ProvidesPackage{pdfcolparcolumns}% |
| 42 |
[2019/12/29 v1.5 Color stacks for parcolumns (HO)]% |
| 43 |
\DeclareOption*{% |
| 44 |
\PassOptionsToPackage{\CurrentOption}{parcolumns}% |
| 45 |
} |
| 46 |
\ProcessOptions\relax |
| 47 |
\RequirePackage{parcolumns}[2004/11/25] |
| 48 |
\RequirePackage{pdfcol}[2007/09/09] |
| 49 |
\ifpdfcolAvailable |
| 50 |
\else |
| 51 |
\PackageInfo{pdfcolparcolumns}{% |
| 52 |
Loading aborted, because color stacks are not available% |
| 53 |
}% |
| 54 |
\expandafter\endinput |
| 55 |
\fi |
| 56 |
\RequirePackage{infwarerr}[2007/09/09] |
| 57 |
\global\chardef\pcpc@MaxStack=\z@ |
| 58 |
\def\pcpc@InitStacks#1{% |
| 59 |
\ifnum#1>\pcpc@MaxStack |
| 60 |
\begingroup |
| 61 |
\count@\pcpc@MaxStack |
| 62 |
\loop |
| 63 |
\advance\count@\@ne |
| 64 |
\pdfcolInitStack{pcpc@\the\count@}% |
| 65 |
\ifnum#1>\count@ |
| 66 |
\repeat |
| 67 |
\global\chardef\pcpc@MaxStack=\count@ |
| 68 |
\endgroup |
| 69 |
\fi |
| 70 |
} |
| 71 |
\def\pcpc@SwitchStack#1{% |
| 72 |
\pdfcolSwitchStack{pcpc@\number#1}% |
| 73 |
} |
| 74 |
\def\pcpc@SetCurrent#1{% |
| 75 |
\pdfcolSetCurrent{pcpc@\number#1}% |
| 76 |
} |
| 77 |
\g@addto@macro\pc@alloccolumns{% |
| 78 |
\pcpc@InitStacks\pc@columncount |
| 79 |
} |
| 80 |
\g@addto@macro\pc@setcolumnwidth{% |
| 81 |
\pcpc@SwitchStack\pc@columnctr |
| 82 |
} |
| 83 |
\begingroup |
| 84 |
\def\x{% |
| 85 |
\global\let\@tempa\relax |
| 86 |
\count@\z@ |
| 87 |
\hb@xt@\linewidth{% |
| 88 |
\vfuzz30ex % |
| 89 |
\vbadness\@M |
| 90 |
\splittopskip\z@skip |
| 91 |
\loop |
| 92 |
\ifnum\count@<\pc@columncount |
| 93 |
\advance\count@\@ne |
| 94 |
\expandafter\ifvoid\csname pc@column@\number\count@\endcsname |
| 95 |
\hskip\csname pc@column@width@\number\count@\endcsname |
| 96 |
\else |
| 97 |
\expandafter\setbox\expandafter\@tempboxa\expandafter |
| 98 |
\vsplit\csname pc@column@\number\count@\endcsname |
| 99 |
to \dp\strutbox |
| 100 |
\vbox{% |
| 101 |
\unvbox\@tempboxa |
| 102 |
}% |
| 103 |
\fi |
| 104 |
\expandafter\ifvoid\csname pc@column@\number\count@\endcsname |
| 105 |
\else |
| 106 |
\global\let\@tempa\pc@placeboxes |
| 107 |
\fi |
| 108 |
\ifnum\count@<\pc@columncount |
| 109 |
\strut |
| 110 |
\hfill |
| 111 |
\ifpc@rulebetween |
| 112 |
\vrule |
| 113 |
\hfill |
| 114 |
\fi |
| 115 |
\fi |
| 116 |
\repeat |
| 117 |
}% |
| 118 |
\@tempa |
| 119 |
}% |
| 120 |
\ifx\x\pc@placeboxes |
| 121 |
\else |
| 122 |
\@PackageWarningNoLine{pdfcolparcolumns}{% |
| 123 |
Command \string\pc@placeboxes\space has changed.\MessageBreak |
| 124 |
Supported versions of package `parcolumns':\MessageBreak |
| 125 |
\space\space 2004/08/05.\MessageBreak |
| 126 |
The redefinition of \string\pc@placeboxes\space may not% |
| 127 |
\MessageBreak |
| 128 |
behave correctly depending on the changes% |
| 129 |
}% |
| 130 |
\fi |
| 131 |
\endgroup |
| 132 |
\renewcommand*{\pc@placeboxes}{% |
| 133 |
\global\let\@tempa\relax |
| 134 |
\count@\z@ |
| 135 |
\hb@xt@\linewidth{% |
| 136 |
\vfuzz30ex % |
| 137 |
\vbadness\@M |
| 138 |
\splittopskip\z@skip |
| 139 |
\loop |
| 140 |
\ifnum\count@<\pc@columncount |
| 141 |
\advance\count@\@ne |
| 142 |
\expandafter\ifvoid\csname pc@column@\number\count@\endcsname |
| 143 |
\hskip\csname pc@column@width@\number\count@\endcsname |
| 144 |
\else |
| 145 |
\expandafter\setbox\expandafter\@tempboxa\expandafter |
| 146 |
\vsplit\csname pc@column@\number\count@\endcsname |
| 147 |
to \dp\strutbox |
| 148 |
\vbox{% |
| 149 |
\pcpc@SetCurrent\count@ |
| 150 |
\unvbox\@tempboxa |
| 151 |
}% |
| 152 |
\fi |
| 153 |
\expandafter\ifvoid\csname pc@column@\number\count@\endcsname |
| 154 |
\else |
| 155 |
\global\let\@tempa\pc@placeboxes |
| 156 |
\fi |
| 157 |
\ifnum\count@<\pc@columncount |
| 158 |
\strut |
| 159 |
\hfill |
| 160 |
\ifpc@rulebetween |
| 161 |
\begingroup |
| 162 |
\pcpc@RuleBetweenColor |
| 163 |
\vrule |
| 164 |
\endgroup |
| 165 |
\hfill |
| 166 |
\fi |
| 167 |
\fi |
| 168 |
\repeat |
| 169 |
}% |
| 170 |
\@tempa |
| 171 |
} |
| 172 |
\def\pcpc@RuleBetweenColorDefault{% |
| 173 |
\normalcolor |
| 174 |
} |
| 175 |
\let\pcpc@RuleBetweenColor\pcpc@RuleBetweenColorDefault |
| 176 |
\define@key{parcolumns}{rulebetweencolor}{% |
| 177 |
\edef\pcpc@temp{#1}% |
| 178 |
\ifx\pcpc@temp\@empty |
| 179 |
\let\pcpc@RuleBetweenColor\pcpc@RuleBetweenColorDefault |
| 180 |
\else |
| 181 |
\edef\pcpc@temp{% |
| 182 |
\noexpand\@ifnextchar[{% |
| 183 |
\def\noexpand\pcpc@RuleBetweenColor{% |
| 184 |
\noexpand\color\pcpc@temp |
| 185 |
}% |
| 186 |
\noexpand\pcpc@GobbleNil |
| 187 |
}{% |
| 188 |
\def\noexpand\pcpc@RuleBetweenColor{% |
| 189 |
\noexpand\color{\pcpc@temp}% |
| 190 |
}% |
| 191 |
\noexpand\pcpc@GobbleNil |
| 192 |
}% |
| 193 |
\pcpc@temp\noexpand\@nil |
| 194 |
}% |
| 195 |
\pcpc@temp |
| 196 |
\fi |
| 197 |
} |
| 198 |
\long\def\pcpc@GobbleNil#1\@nil{} |
| 199 |
%% \section{Installation} |
| 200 |
\endinput |
| 201 |
%% |
| 202 |
%% End of file `pdfcolparcolumns.sty'. |