summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/pdfcolfoot.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-09-16 00:07:34 +0000
committerKarl Berry <karl@freefriends.org>2007-09-16 00:07:34 +0000
commitd85f248e3b38ea0ecda38c5340e3cadd08d65346 (patch)
tree52e17f32b395006895b3917bc7729c7ac1514ae3 /Master/texmf-dist/tex/latex/oberdiek/pdfcolfoot.sty
parent2389552f283181e0d8c610037712ade989112da3 (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/pdfcolfoot.sty')
-rw-r--r--Master/texmf-dist/tex/latex/oberdiek/pdfcolfoot.sty43
1 files changed, 10 insertions, 33 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/pdfcolfoot.sty b/Master/texmf-dist/tex/latex/oberdiek/pdfcolfoot.sty
index 777ee1cefd1..be223fd79fb 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/pdfcolfoot.sty
+++ b/Master/texmf-dist/tex/latex/oberdiek/pdfcolfoot.sty
@@ -24,46 +24,23 @@
%%
%% This work consists of the main source file pdfcolfoot.dtx
%% and the derived files
-%% pdfcolfoot.sty, pdfcolfoot.pdf, pdfcolfoot.ins, pdfcolfoot.drv.
+%% pdfcolfoot.sty, pdfcolfoot.pdf, pdfcolfoot.ins, pdfcolfoot.drv,
+%% pdfcolfoot-test1.tex.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{pdfcolfoot}%
- [2007/01/08 v1.0 pdfTeX's color stack for footnotes (HO)]%
-\RequirePackage{ifpdf}
-\ifpdf
+ [2007/09/09 v1.1 pdfTeX's color stack for footnotes (HO)]%
+\RequirePackage{pdfcol}[2007/09/09]
+\ifpdfcolAvailable
\else
- \PackageWarningNoLine{pdfcolfoot}{%
- Loading aborted, because pdfTeX is not running in PDF mode%
- }%
- \expandafter\endinput
-\fi
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname pdfcolorstackinit\endcsname\relax
- \PackageWarningNoLine{pdfcolfoot}{%
- Your pdfTeX version does not support color stacks%
- }%
- \expandafter\endinput
-\fi
-\@ifpackageloaded{color}{}{\RequirePackage[pdftex]{color}}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname @pdfcolorstack\endcsname\relax
- \PackageWarningNoLine{pdfcolfoot}{%
- Your pdftex.def is too old, you need at least 2007/01/02 v0.04b%
+ \PackageInfo{pdfcolfoot}{%
+ Loading aborted, because color stacks are not available%
}%
\expandafter\endinput
\fi
-\newcommand{\pdfcolfoot@stack}{}
-\edef\pdfcolfoot@stack{%
- \pdfcolorstackinit direct{\current@color}%
-}
-\begingroup
- \let\on@line\@empty
- \PackageInfo{pdfcolfoot}{%
- Color stack number: \pdfcolfoot@stack
- }%
-\endgroup
+\pdfcolInitStack{foot}
\newcommand*{\pdfcolfoot@switch}{%
- \let\@pdfcolorstack\pdfcolfoot@stack
+ \pdfcolSwitchStack{foot}%
}
\AtBeginDocument{%
\newcommand*{\pdfcolfoot@makefntext}{}%
@@ -79,7 +56,7 @@
}%
}
\newcommand*{\pdfcolfoot@current}{%
- \pdfcolorstack\pdfcolfoot@stack current\relax
+ \pdfcolSetCurrent{foot}%
}
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname detokenize\endcsname\relax