summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref/hyperref.dtx')
-rw-r--r--Master/texmf-dist/source/latex/hyperref/hyperref.dtx77
1 files changed, 38 insertions, 39 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
index 9b27b632bef..64f3022d432 100644
--- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
+++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
@@ -38,7 +38,7 @@
%<puenc>\ProvidesFile{puenc.def}
%<puvnenc>\ProvidesFile{puvnenc.def}
%<puarenc>\ProvidesFile{puarenc.def}
-%<!none> [2009/11/27 v6.79k
+%<!none> [2009/12/09 v6.79m
%<package> Hypertext links for LaTeX]
%<nohyperref> Dummy hyperref (SR)]
%<driver> Hyperref documentation driver file]
@@ -115,7 +115,7 @@
\end{document}
%</driver>
% \fi
-% \CheckSum{24997}
+% \CheckSum{24988}
%
% \MakeShortVerb{|}
% \StopEventually{}
@@ -1177,6 +1177,9 @@
% \begin{macrocode}
\let\ignorespaces\HyPsd@ignorespaces
% \end{macrocode}
+% \begin{macrocode}
+\let\Hy@SectionAnchor\@empty
+% \end{macrocode}
%
% \paragraph{Patch for cjk bookmarks.}
% \begin{macrocode}
@@ -5306,7 +5309,7 @@
% |\ProcessKeyvalOptions|, formerly known as
% |\ProcessOptionsWithKV|.
% \begin{macrocode}
-\RequirePackage{kvoptions}[2006/08/17]
+\RequirePackage{kvoptions}[2009/04/10]
% \end{macrocode}
%
% Add option |tex4ht| if package |tex4ht| is loaded.
@@ -8012,14 +8015,14 @@
% \end{macrocode}
% \end{macro}
%
-% At the end of the document, \cmd{\clearpage} tries
-% to make sure, that no further pages will follow.
+% Package \textsf{atveryend} is used to get behind the
+% final \cs{clearpage} and to avoid a \cs{clearpage}
+% in \cs{AtEndDocument}.
% Then the PDF catalog entry for |\PageLabels| is set.
% \begin{macrocode}
- \@ifclassloaded{revtex4}{%
- \g@addto@macro\clear@document{\HyPL@SetPageLabels}%
- }{%
- \AtEndDocument{\clearpage\HyPL@SetPageLabels}%
+ \RequirePackage{atveryend}[2009/12/07]%
+ \AtVeryEndDocument{%
+ \HyPL@SetPageLabels
}%
% \end{macrocode}
%
@@ -9054,7 +9057,11 @@
\else
\hyper@makecurrent{\@captype}%
\fi
- \def\@currentlabelname{#2}%
+ \@ifundefined{NR@gettitle}{%
+ \def\@currentlabelname{#2}%
+ }{%
+ \NR@gettitle{#2}%
+ }%
\par\addcontentsline{\csname ext@#1\endcsname}{#1}{%
\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}%
}%
@@ -16476,6 +16483,7 @@
%
% \begin{macro}{\Hy@OutlineRerunCheck}
% \begin{macrocode}
+\RequirePackage{atveryend}[2009/12/07]
\def\Hy@OutlineRerunCheck{%
\begingroup
\xdef\Hy@OutlineCheckSumBefore{%
@@ -16488,37 +16496,28 @@
}%
}%
\endgroup
- \AtEndDocument{%
- \clearpage
- \if@filesw
- \immediate\write\@mainaux{%
- \string\csname\space Hy@OutlineCheckEnd\string\endcsname
- }%
- \fi
- }%
+ \AtVeryEndDocument{\Hy@OutlineCheckEnd}%
}
-\AtBeginDocument{%
- \def\Hy@OutlineCheckEnd{%
- \begingroup
- \immediate\closeout\@outlinefile
- \edef\Hy@OutlineCheckSumAfter{%
- \@ifundefined{pdf@filemdfivesum}{}{%
- \pdf@filemdfivesum{\jobname.out}%
- }%
- :%
- \@ifundefined{pdf@filesize}{}{%
- \pdf@filesize{\jobname.out}%
- }%
+\def\Hy@OutlineCheckEnd{%
+ \begingroup
+ \immediate\closeout\@outlinefile
+ \edef\Hy@OutlineCheckSumAfter{%
+ \@ifundefined{pdf@filemdfivesum}{}{%
+ \pdf@filemdfivesum{\jobname.out}%
}%
- \ifx\Hy@OutlineCheckSumBefore\Hy@OutlineCheckSumAfter
- \else
- \Hy@WarningNoLine{%
- Rerun to get outlines right\MessageBreak
- or use package `bookmark'%
- }%
- \fi
- \endgroup
- }%
+ :%
+ \@ifundefined{pdf@filesize}{}{%
+ \pdf@filesize{\jobname.out}%
+ }%
+ }%
+ \ifx\Hy@OutlineCheckSumBefore\Hy@OutlineCheckSumAfter
+ \else
+ \Hy@WarningNoLine{%
+ Rerun to get outlines right\MessageBreak
+ or use package `bookmark'%
+ }%
+ \fi
+ \endgroup
}
% \end{macrocode}
% \end{macro}