diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/holtxdoc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/holtxdoc.sty | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/holtxdoc.sty b/Master/texmf-dist/tex/latex/oberdiek/holtxdoc.sty index 3cbb95ace81..40015ce7d79 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/holtxdoc.sty +++ b/Master/texmf-dist/tex/latex/oberdiek/holtxdoc.sty @@ -28,7 +28,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{holtxdoc}% - [2009/08/07 v0.12 Private additional ltxdoc support (HO)] + [2009/12/02 v0.13 Private additional ltxdoc support (HO)] \RequirePackage[numbered]{hypdoc} \RequirePackage{array} \def\hld@info#1{% @@ -40,18 +40,30 @@ \newcommand*{\StartHistory}{% \section{History}% } -\newcommand*{\HistVersion}[1]{% - \subsection*{% - \phantomsection +\@ifpackagelater{hyperref}{2009/11/27}{% + \newcommand*{\HistVersion}[1]{% + \subsection*{[#1]}% hash-ok \addcontentsline{toc}{subsection}{[#1]}% hash-ok - [#1]% hash-ok + \def\HistLabel##1{% + \begingroup + \edef\@currentlabel{[#1]}% hash-ok + \label{##1}% + \endgroup + }% }% - \def\HistLabel##1{% - \begingroup - \edef\x{[#1]}% hash-ok - \let\@currentlabel\x - \label{##1}% - \endgroup +}{% + \newcommand*{\HistVersion}[1]{% + \subsection*{% + \phantomsection + \addcontentsline{toc}{subsection}{[#1]}% hash-ok + [#1]% hash-ok + }% + \def\HistLabel##1{% + \begingroup + \edef\@currentlabel{[#1]}% hash-ok + \label{##1}% + \endgroup + }% }% } \newenvironment{History}{% |