diff options
author | Karl Berry <karl@freefriends.org> | 2007-09-16 00:07:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-09-16 00:07:34 +0000 |
commit | d85f248e3b38ea0ecda38c5340e3cadd08d65346 (patch) | |
tree | 52e17f32b395006895b3917bc7729c7ac1514ae3 /Master/texmf-dist/tex/latex/oberdiek/pdfcolparcolumns.sty | |
parent | 2389552f283181e0d8c610037712ade989112da3 (diff) |
oberdiek update (14sep07)
git-svn-id: svn://tug.org/texlive/trunk@4947 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/pdfcolparcolumns.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/pdfcolparcolumns.sty | 161 |
1 files changed, 161 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/pdfcolparcolumns.sty b/Master/texmf-dist/tex/latex/oberdiek/pdfcolparcolumns.sty new file mode 100644 index 00000000000..1dcbfa1f5a4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/oberdiek/pdfcolparcolumns.sty @@ -0,0 +1,161 @@ +%% +%% This is file `pdfcolparcolumns.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% pdfcolparcolumns.dtx (with options: `package') +%% +%% This is a generated file. +%% +%% Copyright (C) 2007 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 +%% version 1.3 of this license or (at your option) any later +%% version. The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% This work consists of the main source file pdfcolparcolumns.dtx +%% and the derived files +%% pdfcolparcolumns.sty, pdfcolparcolumns.pdf, pdfcolparcolumns.ins, pdfcolparcolumns.drv, +%% pdfcolparcolumns-test1.tex. +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{pdfcolparcolumns}% + [2007/09/09 v1.1 Color stacks support for parcolumns (HO)]% +\DeclareOption*{% + \PassoptionsToPackage{\CurrentOption}{parcolumns}% +} +\ProcessOptions\relax +\RequirePackage{parcolumns}[2004/11/25] +\RequirePackage{pdfcol}[2007/09/09] +\ifpdfcolAvailable +\else + \PackageInfo{pdfcolparcolumns}{% + Loading aborted, because color stacks are not available% + }% + \expandafter\endinput +\fi +\RequirePackage{infwarerr}[2007/09/09] +\global\chardef\pcpc@MaxStack=\z@ +\def\pcpc@InitStacks#1{% + \ifnum#1>\pcpc@MaxStack + \begingroup + \count@\pcpc@MaxStack + \loop + \advance\count@\@ne + \pdfcolInitStack{pcpc@\the\count@}% + \ifnum#1>\count@ + \repeat + \global\chardef\pcpc@MaxStack=\count@ + \endgroup + \fi +} +\def\pcpc@SwitchStack#1{% + \pdfcolSwitchStack{pcpc@\number#1}% +} +\def\pcpc@SetCurrent#1{% + \pdfcolSetCurrent{pcpc@\number#1}% +} +\g@addto@macro\pc@alloccolumns{% + \pcpc@InitStacks\pc@columncount +} +\g@addto@macro\pc@setcolumnwidth{% + \pcpc@SwitchStack\pc@columnctr +} +\begingroup + \def\x{% + \global\let\@tempa\relax + \count@\z@ + \hb@xt@\linewidth{% + \vfuzz30ex % + \vbadness\@M + \splittopskip\z@skip + \loop + \ifnum\count@<\pc@columncount + \advance\count@\@ne + \expandafter\ifvoid\csname pc@column@\number\count@\endcsname + \hskip\csname pc@column@width@\number\count@\endcsname + \else + \expandafter\setbox\expandafter\@tempboxa\expandafter + \vsplit\csname pc@column@\number\count@\endcsname + to \dp\strutbox + \vbox{% + \unvbox\@tempboxa + }% + \fi + \expandafter\ifvoid\csname pc@column@\number\count@\endcsname + \else + \global\let\@tempa\pc@placeboxes + \fi + \ifnum\count@<\pc@columncount + \strut + \hfill + \ifpc@rulebetween + \vrule + \hfill + \fi + \fi + \repeat + }% + \@tempa + }% + \ifx\x\pc@placeboxes + \else + \@PackageWarningNoLine{pdfcolparcolumns}{% + Command \string\pc@placeboxes\space has changed.\MessageBreak + Supported versions of package `parcolumns':\MessageBreak + \space\space 2004/08/05.\MessageBreak + The redefinition of \string\pc@placeboxes\space may not% + \MessageBreak + behave correctly depending on the changes% + }% + \fi +\endgroup +\renewcommand*{\pc@placeboxes}{% + \global\let\@tempa\relax + \count@\z@ + \hb@xt@\linewidth{% + \vfuzz30ex % + \vbadness\@M + \splittopskip\z@skip + \loop + \ifnum\count@<\pc@columncount + \advance\count@\@ne + \expandafter\ifvoid\csname pc@column@\number\count@\endcsname + \hskip\csname pc@column@width@\number\count@\endcsname + \else + \expandafter\setbox\expandafter\@tempboxa\expandafter + \vsplit\csname pc@column@\number\count@\endcsname + to \dp\strutbox + \vbox{% + \pcpc@SetCurrent\count@ + \unvbox\@tempboxa + }% + \fi + \expandafter\ifvoid\csname pc@column@\number\count@\endcsname + \else + \global\let\@tempa\pc@placeboxes + \fi + \ifnum\count@<\pc@columncount + \strut + \hfill + \ifpc@rulebetween + \vrule + \hfill + \fi + \fi + \repeat + }% + \@tempa +} +\endinput +%% +%% End of file `pdfcolparcolumns.sty'. |