summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
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/tex/latex/hyperref/hyperref.sty
parent958806f1c5bba0a1d89932b239a4953853b1abc7 (diff)
hyperref (8feb12)
git-svn-id: svn://tug.org/texlive/trunk@25371 c570f23f-e606-0410-a88d-b1316a301751
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
}