summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/oberdiek/hypdoc.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/hypdoc.sty')
-rw-r--r--Master/texmf-dist/tex/latex/oberdiek/hypdoc.sty46
1 files changed, 3 insertions, 43 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/hypdoc.sty b/Master/texmf-dist/tex/latex/oberdiek/hypdoc.sty
index 63e25908eb0..bbd9ce68e6a 100644
--- a/Master/texmf-dist/tex/latex/oberdiek/hypdoc.sty
+++ b/Master/texmf-dist/tex/latex/oberdiek/hypdoc.sty
@@ -29,13 +29,11 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{hypdoc}%
- [2007/04/11 v1.5 Hyper extensions for doc.sty (HO)]%
+ [2007/11/12 v1.6 Hyper extensions for doc.sty (HO)]%
\newif\ifHD@numbered
\DeclareOption{numbered}{\HD@numberedtrue}
\ProcessOptions*\relax
-
\RequirePackage{doc}
-
\ifx\numexpr\@undefined
\RequirePackage{calc}%
\fi
@@ -55,12 +53,10 @@
}},%
}
\RequirePackage{thumbpdf}
-
\newcounter{HD@unique}
\renewcommand{\theHD@unique}{%
\number\value{HD@unique}%
}
-
\g@addto@macro\Hy@UseMaketitleInfos{%
\@ifundefined{fileinfo}{}{%
\ifx\@pdfsubject\@empty
@@ -68,7 +64,6 @@
\fi
}%
}
-
\pdfstringdefDisableCommands{%
\let\thanks\@gobble
\let\footnote\@gobble
@@ -77,9 +72,6 @@
\let\scshape\@empty
\def\and{and }%
}
-
-%%% Bookmarks
-
\def\HD@sectionpatch{%
\ifHD@numbered
\HD@@sectionpatch{section}%
@@ -96,7 +88,6 @@
}%
}
\def\HD@disable@writebookmark#1#2#3#4#5{}
-
\def\HD@guesstoclevel#1{%
\expandafter\HD@@guesstoclevel#1\section\HD@end
}
@@ -107,12 +98,8 @@
\@nameuse{toclevel@\expandafter\@gobble\string#1\@empty}%
}%
}
-
\let\HDorg@tableofcontents\tableofcontents
\def\tableofcontents{%
- % As first section the table of contents shouldn't
- % go into the toc itself. Also a number looks too funny then.
- % Just a bookmark is enough in this case.
\begingroup
\@ifundefined{c@section}{%
\def\c@section{0}%
@@ -136,21 +123,19 @@
\endgroup
\fi
}
-
\let\HDorg@listoffigures\listoffigures
\def\listoffigures{%
\ifHD@numbered
\else
\stepcounter{HD@unique}%
\pdfbookmark[\HD@guesstoclevel{\HDorg@listoffigures}]%
- {\contentsname}{toc\theHd@unique}%
+ {\contentsname}{toc\theHD@unique}%
\fi
\begingroup
\HD@sectionpatch
\HDorg@listoffigures
\endgroup
}
-
\let\HDorg@listoftables\listoftables
\def\listoftables{%
\ifHD@numbered
@@ -164,7 +149,6 @@
\HDorg@listoftables
\endgroup
}
-
\let\HDorg@thebibliography\thebibliography
\def\thebibliography{%
\ifHD@numbered
@@ -176,7 +160,6 @@
\HD@sectionpatch
\HDorg@thebibliography
}
-
\let\HDorg@theindex\theindex
\def\theindex{%
\let\HDorg@index@prologue\index@prologue
@@ -216,7 +199,7 @@
\ifx\HD@hfil\hfil
\expandafter\HD@@@bfseries
\fi
-}%
+}
\def\HD@@@bfseries\hfil#1\hfil{%
\ifx\\#1\\%
\else
@@ -229,7 +212,6 @@
\hfil#1\hfil
}%
\def\HD@margin{1mm}
-
\let\HDorg@theglossary\theglossary
\def\theglossary{%
\let\HDorg@glossary@prologue\glossary@prologue
@@ -250,9 +232,6 @@
\HDorg@theglossary
}
\providecommand*{\glossaryname}{Change History}
-
-%%% Index stuff
-
\newcounter{HD@hypercount}
\newlength{\HD@helplength}
\newif\ifHD@savedest
@@ -287,10 +266,8 @@
\def\HD@savedest@add#1{%
\immediate\write\HD@savedest@out{\string~#1}%
}
-
\newif\ifHD@targetraise
\HD@targetraisetrue
-
\def\HD@target{%
\ifHD@targetraise
\ifhmode
@@ -319,14 +296,12 @@
\fi
\HD@next
}
-
\g@addto@macro\CodelineIndex{%
\let\special@index\HD@codeline@wrindex
}
\g@addto@macro\PageIndex{%
\let\special@index\HD@page@wrindex
}
-
\def\HD@codeline@wrindex#1{%
\begingroup
\let\HDorg@encapchar\encapchar
@@ -349,7 +324,6 @@
\HDorg@index{#1\encapchar\encapchar\@nil}%
\endgroup
}
-
\def\hdclindex#1#2#3{%
\csname\ifx\\#2\\relax\else#2\fi\endcsname{%
\hyperlink{HD.#1}{#3}%
@@ -361,7 +335,6 @@
\hyperpage{#2}%
}%
}
-
\let\HDorg@PrintDescribeMacro\PrintDescribeMacro
\renewcommand\PrintDescribeMacro[1]{%
\begingroup
@@ -373,7 +346,6 @@
\HDorg@PrintDescribeMacro{#1}%
\endgroup
}
-
\let\HDorg@PrintMacroName\PrintMacroName
\renewcommand\PrintMacroName[1]{%
\begingroup
@@ -385,7 +357,6 @@
\HDorg@PrintMacroName{#1}%
\endgroup
}
-
\let\HDorg@theCodelineNo\theCodelineNo
\renewcommand*\theCodelineNo{%
\settowidth{\HD@helplength}{\HDorg@theCodelineNo\ }%
@@ -400,11 +371,9 @@
\fi
\HDorg@theCodelineNo
}
-
\AtBeginDocument{%
\let\HDorg@index\index
}
-
\let\HDorg@SpecialUsageIndex\SpecialUsageIndex
\renewcommand*\SpecialUsageIndex[1]{%
\@bsphack
@@ -419,7 +388,6 @@
\endgroup
\@esphack
}
-
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname autoindex\endcsname\relax
\else
@@ -438,7 +406,6 @@
\@esphack
}%
\fi
-
\let\HDorg@SpecialEnvIndex\SpecialEnvIndex
\renewcommand*\SpecialEnvIndex[1]{%
\@bsphack
@@ -452,7 +419,6 @@
\endgroup
\@esphack
}
-
\let\HDorg@SortIndex\SortIndex
\renewcommand*{\SortIndex}[2]{%
\@bsphack
@@ -462,9 +428,6 @@
\endgroup
\@esphack
}
-
-%%% glossary stuff
-
\let\HDorg@wrglossary\@wrglossary
\def\@wrglossary#1{%
\let\HDorg@encapchar\encapchar
@@ -474,9 +437,6 @@
}%
\HDorg@wrglossary{#1\encapchar\encapchar\@nil}%
}
-
-%%% \MacroIndent automatically calculated
-
\AtEndDocument{%
\if@filesw
\immediate\write\@auxout{%