summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/hyperref
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-02-12 00:15:33 +0000
committerKarl Berry <karl@freefriends.org>2012-02-12 00:15:33 +0000
commita6a9cd0d92695b1c4578e0cc79b7ca773257932d (patch)
tree65f5ab372ceeb3917157b1e6e6b04050e9f5f8bd /Master/texmf-dist/source/latex/hyperref
parent958806f1c5bba0a1d89932b239a4953853b1abc7 (diff)
hyperref (8feb12)
git-svn-id: svn://tug.org/texlive/trunk@25371 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/hyperref')
-rw-r--r--Master/texmf-dist/source/latex/hyperref/hyperref.dtx48
1 files changed, 39 insertions, 9 deletions
diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
index bce4d7e62b5..d037b5521d6 100644
--- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
+++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx
@@ -1,7 +1,7 @@
% \iffalse
%% File: hyperref.dtx Copyright 1995-2001 Sebastian Rahtz,
%% with portions written by David Carlisle and Heiko Oberdiek,
-%% 2001-2011 Heiko Oberdiek.
+%% 2001-2012 Heiko Oberdiek.
%%
%% This file is part of the `Hyperref Bundle'.
%% -------------------------------------------
@@ -44,7 +44,7 @@
%<puenc>\ProvidesFile{puenc.def}
%<puvnenc>\ProvidesFile{puvnenc.def}
%<puarenc>\ProvidesFile{puarenc.def}
-%<!none> [2011/12/04 v6.82m %
+%<!none> [2012/02/06 v6.82o %
%<package> Hypertext links for LaTeX]
%<nohyperref> Dummy hyperref (SR)]
%<driver> Hyperref documentation driver file]
@@ -145,7 +145,7 @@
\end{document}
%</driver>
% \fi
-% \CheckSum{28686}
+% \CheckSum{28711}
%
% \MakeShortVerb{|}
% \StopEventually{}
@@ -9948,10 +9948,23 @@
\ltx@IfUndefined{appendix}{%
}{%
\let\HyOrg@appendix\appendix
+ \def\Hy@AlphNoErr#1{%
+ \ifnum\value{#1}>26 %
+ Alph\number\value{#1}%
+ \else
+ \ifnum\value{#1}<1 %
+ Alph\number\value{#1}%
+ \else
+ \Alph{#1}%
+ \fi
+ \fi
+ }%
\def\appendix{%
- \ltx@IfUndefined{chapter}%
- {\gdef\theHsection{\Alph{section}}}%
- {\gdef\theHchapter{\Alph{chapter}}}%
+ \ltx@IfUndefined{chapter}{%
+ \gdef\theHsection{\Hy@AlphNoErr{section}}%
+ }{%
+ \gdef\theHchapter{\Hy@AlphNoErr{chapter}}%
+ }%
\xdef\Hy@chapapp{\Hy@appendixstring}%
\HyOrg@appendix
}%
@@ -10343,10 +10356,23 @@
\let\theHequation\newname
}{}%
\hyper@makecurrent{equation}%
- \Hy@raisedlink{\hyper@anchorstart{\@currentHref}}%
+% \end{macrocode}
+% \cs{mathopen} is needed in case the equation starts with
+% an unary minus, for example.
+% \begin{macrocode}
+ \mathopen{%
+ \Hy@raisedlink{\hyper@anchorstart{\@currentHref}}%
+ }%
\let\refstepcounter\new@refstepcounter
}%
- \def\endequation{\Hy@raisedlink{\hyper@anchorend}\H@endequation}%
+ \def\endequation{%
+ \ifx\Hy@raisedlink\ltx@empty
+ \hyper@anchorend
+ \else
+ \mathclose{\Hy@raisedlink{\hyper@anchorend}}%
+ \fi
+ \H@endequation
+ }%
}
% \end{macrocode}
% My goodness, why can't \LaTeX{} be consistent? Why is |\eqnarray|
@@ -10374,7 +10400,11 @@
\let\theHequation\newname
}{}%
\hyper@makecurrent{equation}%
- \hyper@anchorstart{\@currentHref}{}\hyper@anchorend
+ \mathopen{%
+ \Hy@raisedlink{%
+ \hyper@anchorstart{\@currentHref}\hyper@anchorend
+ }%
+ }%
\fi
\fi
}