summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/pdfcolfoot.dtx
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/source/latex/oberdiek/pdfcolfoot.dtx
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/source/latex/oberdiek/pdfcolfoot.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/pdfcolfoot.dtx124
1 files changed, 67 insertions, 57 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/pdfcolfoot.dtx b/Master/texmf-dist/source/latex/oberdiek/pdfcolfoot.dtx
index d21afa50a89..2b30d204b11 100644
--- a/Master/texmf-dist/source/latex/oberdiek/pdfcolfoot.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/pdfcolfoot.dtx
@@ -16,7 +16,8 @@
%
% 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.
%
% Distribution:
% CTAN:macros/latex/contrib/oberdiek/pdfcolfoot.dtx
@@ -51,6 +52,7 @@
% Installation:
% TDS:tex/latex/oberdiek/pdfcolfoot.sty
% TDS:doc/latex/oberdiek/pdfcolfoot.pdf
+% TDS:doc/latex/oberdiek/pdfcolfoot-test1.tex
% TDS:source/latex/oberdiek/pdfcolfoot.dtx
%
%<*ignore>
@@ -66,7 +68,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: pdfcolfoot 2007/01/08 v1.0 pdfTeX's color stack for footnotes (HO)}
+\Msg{* Package: pdfcolfoot 2007/09/09 v1.1 pdfTeX's color stack for footnotes (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -92,7 +94,8 @@ This Current Maintainer of this work is Heiko Oberdiek.
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.
\endpreamble
@@ -101,6 +104,8 @@ and the derived files
\file{pdfcolfoot.drv}{\from{pdfcolfoot.dtx}{driver}}%
\usedir{tex/latex/oberdiek}%
\file{pdfcolfoot.sty}{\from{pdfcolfoot.dtx}{package}}%
+ \usedir{doc/latex/oberdiek}%
+ \file{pdfcolfoot-test1.tex}{\from{pdfcolfoot.dtx}{test1}}%
}
\obeyspaces
@@ -126,7 +131,7 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{pdfcolfoot.drv}%
- [2007/01/08 v1.0 pdfTeX's color stack for footnotes (HO)]%
+ [2007/09/09 v1.1 pdfTeX's color stack for footnotes (HO)]%
\documentclass{ltxdoc}
\usepackage{holtxdoc}
\begin{document}
@@ -135,7 +140,7 @@ and the derived files
%</driver>
% \fi
%
-% \CheckSum{249}
+% \CheckSum{238}
%
% \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
@@ -156,7 +161,7 @@ and the derived files
% \GetFileInfo{pdfcolfoot.drv}
%
% \title{The \xpackage{pdfcolfoot} package}
-% \date{2007/01/08 v1.0}
+% \date{2007/09/09 v1.1}
% \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}}
%
% \maketitle
@@ -255,46 +260,17 @@ and the derived files
%<*package>
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{pdfcolfoot}%
- [2007/01/08 v1.0 pdfTeX's color stack for footnotes (HO)]%
+ [2007/09/09 v1.1 pdfTeX's color stack for footnotes (HO)]%
% \end{macrocode}
%
-% \subsection{Initial checks}
+% \subsection{Load package \xpackage{pdfcol}}
%
-% \subsubsection{Check for \pdfTeX\ in PDF mode}
% \begin{macrocode}
-\RequirePackage{ifpdf}
-\ifpdf
+\RequirePackage{pdfcol}[2007/09/09]
+\ifpdfcolAvailable
\else
- \PackageWarningNoLine{pdfcolfoot}{%
- Loading aborted, because pdfTeX is not running in PDF mode%
- }%
- \expandafter\endinput
-\fi
-% \end{macrocode}
-%
-% \subsubsection{Check \pdfTeX\ version}
-% \begin{macrocode}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname pdfcolorstackinit\endcsname\relax
- \PackageWarningNoLine{pdfcolfoot}{%
- Your pdfTeX version does not support color stacks%
- }%
- \expandafter\endinput
-\fi
-% \end{macrocode}
-%
-% \subsubsection{Check \xfile{pdftex.def} version}
-% Force loading of package color with \xfile{pdftex.def}, if this
-% is not already done.
-% \begin{macrocode}
-\@ifpackageloaded{color}{}{\RequirePackage[pdftex]{color}}
-% \end{macrocode}
-% Now we can check the minimal version requirement of \xfile{pdftex.def}.
-% \begin{macrocode}
-\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
@@ -302,21 +278,11 @@ and the derived files
%
% \subsection{Color stack for footnotes}
%
-% I do not know, why pdftex.def (or other drivers do not define
-% \cs{default@color}. Instead they are defining \cs{current@color}.
-% Therefore it is assumed that in the preamble this color for black
-% is still valid.
+% Version 1.0 has used \cs{current@color} as initial color stack
+% value, since version 1.1 package \xpackage{pdfcol} with its
+% default setting is used.
% \begin{macrocode}
-\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}
% \end{macrocode}
%
% \subsection{Patch \cs{@makefntext}}
@@ -326,7 +292,7 @@ and the derived files
% color calls uses the color stack for footnotes.
% \begin{macrocode}
\newcommand*{\pdfcolfoot@switch}{%
- \let\@pdfcolorstack\pdfcolfoot@stack
+ \pdfcolSwitchStack{foot}%
}
% \end{macrocode}
% \end{macro}
@@ -355,7 +321,7 @@ and the derived files
% is available on the current top of the color stack.
% \begin{macrocode}
\newcommand*{\pdfcolfoot@current}{%
- \pdfcolorstack\pdfcolfoot@stack current\relax
+ \pdfcolSetCurrent{foot}%
}
% \end{macrocode}
% \end{macro}
@@ -505,6 +471,34 @@ and the derived files
% \begin{macrocode}
%</package>
% \end{macrocode}
+%
+% \section{Test}
+%
+% \begin{macrocode}
+%<*test1>
+\NeedsTeXFormat{LaTeX2e}
+\AtEndDocument{%
+ \typeout{}%
+ \typeout{**************************************}%
+ \typeout{*** \space Check the PDF file manually! \space ***}%
+ \typeout{**************************************}%
+ \typeout{}%
+}
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname pdfcompresslevel\endcsname\relax
+\else
+ \pdfcompresslevel=0 %
+\fi
+\documentclass[12pt,a5paper]{article}
+\usepackage{pdfcolfoot}[2007/09/09]
+\dimen\footins=\baselineskip % for testing
+\begin{document}
+ Black\footnote{Black \textcolor{blue}{Blue\\Blue} Black} %
+ \textcolor{red}{Red\newpage Red} Black%
+\end{document}
+%</test1>
+% \end{macrocode}
+%
% \section{Installation}
%
% \subsection{Download}
@@ -566,6 +560,7 @@ and the derived files
% \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}}
% pdfcolfoot.sty & tex/latex/oberdiek/pdfcolfoot.sty\\
% pdfcolfoot.pdf & doc/latex/oberdiek/pdfcolfoot.pdf\\
+% pdfcolfoot-test1.tex & doc/latex/oberdiek/pdfcolfoot-test1.tex\\
% pdfcolfoot.dtx & source/latex/oberdiek/pdfcolfoot.dtx\\
% \end{tabular}^^A
% }^^A
@@ -686,11 +681,26 @@ and the derived files
%\end{verbatim}
% \end{quote}
%
+% \begin{thebibliography}{9}
+%
+% \bibitem{pdfcol}
+% Heiko Oberdiek: \textit{The \xpackage{pdfcol} package};
+% 2007/09/09;\\
+% \CTAN{macros/latex/contrib/oberdiek/pdfcol.pdf}.
+%
+% \end{thebibliography}
+%
% \begin{History}
% \begin{Version}{2007/01/08 v1.0}
% \item
% First version.
% \end{Version}
+% \begin{Version}{2007/09/09 v1.1}
+% \item
+% Use of package \xpackage{pdfcol}.
+% \item
+% Test file added.
+% \end{Version}
% \end{History}
%
% \PrintIndex