summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/pdfcolfoot.sty
diff options
context:
space:
mode:
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