summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/oberdiek/hypcap.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/hypcap.dtx')
-rw-r--r--Master/texmf-dist/source/latex/oberdiek/hypcap.dtx77
1 files changed, 65 insertions, 12 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/hypcap.dtx b/Master/texmf-dist/source/latex/oberdiek/hypcap.dtx
index 0155d0457e2..169fa8f7045 100644
--- a/Master/texmf-dist/source/latex/oberdiek/hypcap.dtx
+++ b/Master/texmf-dist/source/latex/oberdiek/hypcap.dtx
@@ -56,7 +56,7 @@
%
%<*ignore>
\begingroup
- \def\x{LaTeX2e}
+ \def\x{LaTeX2e}%
\expandafter\endgroup
\ifcase 0\ifx\install y1\fi\expandafter
\ifx\csname processbatchFile\endcsname\relax\else1\fi
@@ -67,7 +67,7 @@
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
-\Msg{* Package: hypcap 2007/02/19 v1.6 Adjusting anchors of captions (HO)}
+\Msg{* Package: hypcap 2007/04/09 v1.7 Adjusting anchors of captions (HO)}
\Msg{************************************************************************}
\keepsilent
@@ -128,16 +128,16 @@ and the derived files
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{hypcap.drv}%
- [2007/02/19 v1.6 Adjusting anchors of captions (HO)]
+ [2007/04/09 v1.7 Adjusting anchors of captions (HO)]%
\documentclass{ltxdoc}
\usepackage{holtxdoc}
\begin{document}
- \DocInput{hypcap.dtx}
+ \DocInput{hypcap.dtx}%
\end{document}
%</driver>
% \fi
%
-% \CheckSum{144}
+% \CheckSum{164}
%
% \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
@@ -158,7 +158,7 @@ and the derived files
% \GetFileInfo{hypcap.drv}
%
% \title{The \xpackage{hypcap} package}
-% \date{2007/02/19 v1.6}
+% \date{2007/04/09 v1.7}
% \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}}
%
% \maketitle
@@ -245,7 +245,6 @@ and the derived files
%
% \subsection{Limitations}
% \begin{itemize}
-% \item Package \Package{subfigure} does not work.
% \item Packages that redefine \cmd{\caption} or
% \cmd{\@caption}.
% \end{itemize}
@@ -261,7 +260,7 @@ and the derived files
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{hypcap}%
- [2007/02/19 v1.6 Adjusting anchors of captions (HO)]
+ [2007/04/09 v1.7 Adjusting anchors of captions (HO)]
% \end{macrocode}
%
% For unique command names this package uses |hc@| as prefix
@@ -318,17 +317,27 @@ and the derived files
\hyper@@anchor\@currentHref\relax
\endgroup
\vspace*{\hypcapspace}%
- \let\caption\hc@caption
+ \hc@hyperref{\let\caption\hc@caption}%
\global\@capstarttrue
+ \global\advance\csname c@\@captype\endcsname\m@ne
}
% \end{macrocode}
% \end{macro}
%
+% \begin{macrocode}
+\@ifpackagelater{hyperref}{2007/04/09}{%
+ \let\hc@hyperref\@gobble
+}{%
+ \let\hc@hyperref\@firstofone
+}
+% \end{macrocode}
+%
% \begin{macro}{\hc@caption}
% The new \cmd{\caption} command without the first part
% is defined in the macro \cmd{\hc@caption}.
% \begin{macrocode}
\def\hc@caption{%
+ \global\advance\csname c@\@captype\endcsname\@ne
\@dblarg{\hc@@caption\@captype}%
}
% \end{macrocode}
@@ -428,13 +437,47 @@ and the derived files
% \end{macrocode}
% \section{Installation}
%
-% \paragraph{CTAN.} This package is available on
+% \subsection{Download}
+%
+% \paragraph{Package.} This package is available on
% CTAN\footnote{\url{ftp://ftp.ctan.org/tex-archive/}}:
% \begin{description}
% \item[\CTAN{macros/latex/contrib/oberdiek/hypcap.dtx}] The source file.
% \item[\CTAN{macros/latex/contrib/oberdiek/hypcap.pdf}] Documentation.
% \end{description}
%
+%
+% \paragraph{Bundle.} All the packages of the bundle `oberdiek'
+% are also available in a TDS compliant ZIP archive. There
+% the packages are already unpacked and the documentation files
+% are generated. The files and directories obey the TDS standard.
+% \begin{description}
+% \item[\CTAN{macros/latex/contrib/oberdiek/oberdiek-tds.zip}]
+% \end{description}
+%
+% \subsection{Bundle installation}
+%
+% \paragraph{Unpacking.} Unpack the \xfile{oberdiek-tds.zip} in the
+% TDS tree (also known as \xfile{texmf} tree) of your choice.
+% Example (linux):
+% \begin{quote}
+% |unzip oberdiek-tds.zip -d ~/texmf|
+% \end{quote}
+%
+% \paragraph{Script installation.}
+% Check the directory \xfile{TDS:scripts/oberdiek/} for
+% scripts that need further installation steps.
+% Package \xpackage{attachfile2} comes with the Perl script
+% \xfile{pdfatfi.pl} that should be installed in such a way
+% that it can be called as \texttt{pdfatfi}.
+% Example (linux):
+% \begin{quote}
+% |chmod +x scripts/oberdiek/pdfatfi.pl|\\
+% |cp scripts/oberdiek/pdfatfi.pl /usr/local/bin/|
+% \end{quote}
+%
+% \subsection{Package installation}
+%
% \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting
% \docstrip\ archive. The files are extracted by running the
% \xfile{.dtx} through \plainTeX:
@@ -465,8 +508,10 @@ and the derived files
% TDS installing feature, then some files can already be in the right
% place, see the documentation of \docstrip.
%
-% \paragraph{Refresh file databases.} If your \TeX~distribution
-% (\teTeX, \mikTeX, \dots) rely on file databases, you must refresh
+% \subsection{Refresh file name databases}
+%
+% If your \TeX~distribution
+% (\teTeX, \mikTeX, \dots) relies on file name databases, you must refresh
% these. For example, \teTeX\ users run \verb|texhash| or
% \verb|mktexlsr|.
%
@@ -553,6 +598,14 @@ and the derived files
% \item
% Fix for hypertexnames=false.
% \end{Version}
+% \begin{Version}{2007/04/09 v1.7}
+% \item
+% Stuff in \cs{caption} moved to \xpackage{hyperref}.
+% This avoids redefinitions of \cs{caption} and \cs{@caption}
+% (idea of Axel Sommerfeldt).
+% \item
+% Fix for subfigure (Marco Kuhlmann, Amilcar do Carmo Lucas).
+% \end{Version}
% \end{History}
%
% \PrintIndex