diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/hypcap.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/hypcap.dtx | 79 |
1 files changed, 62 insertions, 17 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/hypcap.dtx b/Master/texmf-dist/source/latex/oberdiek/hypcap.dtx index 2b6305a0d42..e733da91603 100644 --- a/Master/texmf-dist/source/latex/oberdiek/hypcap.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/hypcap.dtx @@ -67,7 +67,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: hypcap 2008/08/11 v1.9 Adjusting anchors of captions (HO)} +\Msg{* Package: hypcap 2008/09/08 v1.10 Adjusting anchors of captions (HO)} \Msg{************************************************************************} \keepsilent @@ -134,7 +134,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{hypcap.drv}% - [2008/08/11 v1.9 Adjusting anchors of captions (HO)]% + [2008/09/08 v1.10 Adjusting anchors of captions (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc}[2008/08/11] \begin{document} @@ -143,7 +143,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{164} +% \CheckSum{169} % % \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 @@ -164,7 +164,7 @@ and the derived files % \GetFileInfo{hypcap.drv} % % \title{The \xpackage{hypcap} package} -% \date{2008/08/11 v1.9} +% \date{2008/09/08 v1.10} % \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}} % % \maketitle @@ -181,6 +181,7 @@ and the derived files % % \tableofcontents % +% \newpage % \section{Usage} % The package \Package{hypcap} requires that \Package{hyperref} % is loaded first: @@ -247,6 +248,37 @@ and the derived files % \end{quote} % Only environments with one optional parameter are % supported. +% \item[\cs{capstartfalse}, \cs{capstarttrue}:]^^A +% \DescribeMacro{\capstartfalse}^^A +% \DescribeMacro{\capstarttrue}^^A +% Since 2008/09/08 v1.10.\\ +% They disable and enable \cs{capstart}. They can be used to +% cancel the effect of a redefined float environment. +% Example: +%\begin{quote} +%\catcode`Y=\active +%\def Y#1Z{\textit{\cs{#1}}} +%\begin{verbatim} +%\documentclass{article} +%\usepackage{hyperref} +%\usepackage[figure]{hypcap}[2008/09/08] +% +%\begin{document} +% \section{Hello World} +% \begin{figure} +% \caption{Figure with caption A} +% \end{figure} +% YcapstartfalseZ +% \begin{figure} +% Figure without caption +% \end{figure} +% YcapstarttrueZ +% \begin{figure} +% \caption{Figure with caption B} +% \end{figure} +%\end{document} +%\end{verbatim} +%\end{quote} % \end{description} % % \subsection{Limitations} @@ -266,7 +298,7 @@ and the derived files % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{hypcap}% - [2008/08/11 v1.9 Adjusting anchors of captions (HO)] + [2008/09/08 v1.10 Adjusting anchors of captions (HO)] % \end{macrocode} % % For unique command names this package uses |hc@| as prefix @@ -308,24 +340,33 @@ and the derived files % \end{macrocode} % \end{macro} % +% \begin{macro}{\ifcapstart} +% \begin{macrocode} +\newif\ifcapstart +\capstarttrue +% \end{macrocode} +% \end{macro} +% % \begin{macro}{\capstart} % The macro \cmd{\capstart} contains the first part of % the \cmd{\caption} command: Incrementing the counter % and setting the anchor. % \begin{macrocode} \newcommand*\capstart{% - \H@refstepcounter\@captype % first part of caption - \hyper@makecurrent\@captype - \global\let\hc@currentHref\@currentHref - \vspace*{-\hypcapspace}% - \begingroup - \let\leavevmode\relax - \hyper@@anchor\@currentHref\relax - \endgroup - \vspace*{\hypcapspace}% - \hc@hyperref{\let\caption\hc@caption}% - \global\@capstarttrue - \global\advance\csname c@\@captype\endcsname\m@ne + \ifcapstart + \H@refstepcounter\@captype % first part of caption + \hyper@makecurrent\@captype + \global\let\hc@currentHref\@currentHref + \vspace*{-\hypcapspace}% + \begingroup + \let\leavevmode\relax + \hyper@@anchor\@currentHref\relax + \endgroup + \vspace*{\hypcapspace}% + \hc@hyperref{\let\caption\hc@caption}% + \global\@capstarttrue + \global\advance\csname c@\@captype\endcsname\m@ne + \fi } % \end{macrocode} % \end{macro} @@ -680,6 +721,10 @@ and the derived files % \item % URLs updated. % \end{Version} +% \begin{Version}{2008/09/08 v1.10} +% \item +% \cs{capstartfalse} and \cs{capstarttrue} added. +% \end{Version} % \end{History} % % \PrintIndex |