summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hyperref.sty')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/hyperref.sty42
1 files changed, 34 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
index 61686a6a703..28e62a5c8b6 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
+++ b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
@@ -8,7 +8,7 @@
%%
%% 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'.
%% -------------------------------------------
@@ -30,7 +30,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{hyperref}
- [2011/12/04 v6.82m %
+ [2012/02/06 v6.82o %
Hypertext links for LaTeX]
\begingroup
\@makeother\`%
@@ -6288,10 +6288,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
}%
@@ -6557,10 +6570,19 @@
\let\theHequation\newname
}{}%
\hyper@makecurrent{equation}%
- \Hy@raisedlink{\hyper@anchorstart{\@currentHref}}%
+ \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
+ }%
}
\newif\if@eqnstar
\@eqnstarfalse
@@ -6579,7 +6601,11 @@
\let\theHequation\newname
}{}%
\hyper@makecurrent{equation}%
- \hyper@anchorstart{\@currentHref}{}\hyper@anchorend
+ \mathopen{%
+ \Hy@raisedlink{%
+ \hyper@anchorstart{\@currentHref}\hyper@anchorend
+ }%
+ }%
\fi
\fi
}