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.sty102
1 files changed, 70 insertions, 32 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
index f383ba177bf..d91b065855b 100644
--- a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
+++ b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty
@@ -30,7 +30,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{hyperref}
- [2011/10/01 v6.82j %
+ [2011/11/21 v6.82l %
Hypertext links for LaTeX]
\begingroup
\@makeother\`%
@@ -5492,11 +5492,45 @@
\def\Fld@height{#1}%
}
\define@key{Field}{charsize}{%
- \Fld@charsize#1%
+ \setlength{\Fld@charsize}{#1}%
}
\define@key{Field}{borderwidth}{%
- \def\Fld@borderwidth{#1}%
+ \Hy@defaultbp\Fld@borderwidth{#1}%
}
+\def\Hy@defaultbp#1#2{%
+ \begingroup
+ \afterassignment\Hy@defaultbpAux
+ \dimen@=#2bp\relax{#1}{#2}%
+}
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname dimexpr\endcsname\relax
+ \def\Hy@defaultbpAux#1\relax#2#3{%
+ \ifx!#1!%
+ \endgroup
+ \def#2{#3}%
+ \else
+ \dimen@=.99626\dimen@
+ \edef\x{\endgroup
+ \def\noexpand#2{%
+ \strip@pt\dimen@
+ }%
+ }\x
+ \fi
+ }%
+\else
+ \def\Hy@defaultbpAux#1\relax#2#3{%
+ \ifx!#1!%
+ \endgroup
+ \def#2{#3}%
+ \else
+ \edef\x{\endgroup
+ \def\noexpand#2{%
+ \strip@pt\dimexpr\dimen@*800/803\relax
+ }%
+ }\x
+ \fi
+ }%
+\fi
\define@key{Field}{borderstyle}{%
\let\Hy@temp\Fld@borderstyle
\def\Fld@borderstyle{#1}%
@@ -6020,8 +6054,8 @@
\global\let\HyPL@thisLabel\relax
\fi
\let\HyPL@Type\relax
- \ifnum\the\c@page>0 %
- \ifx\HyPLSlidesSetPage\ltx@empty
+ \ifnum\c@page>0 %
+ \ifx\HyPL@SlidesSetPage\ltx@empty
\expandafter\HyPL@CheckThePage\HyPL@page\@nil
\fi
\fi
@@ -6157,27 +6191,27 @@
\fi
}
\Hy@CounterExists{section}{%
- \newcommand\theHequation{\theHsection.\arabic{equation}}%
+ \providecommand\theHequation{\theHsection.\arabic{equation}}%
}
\Hy@CounterExists{part}{%
- \newcommand\theHpart{\arabic{part}}%
+ \providecommand\theHpart{\arabic{part}}%
}
\ltx@IfUndefined{thechapter}{%
- \newcommand\theHsection {\arabic{section}}%
- \newcommand\theHfigure {\arabic{figure}}%
- \newcommand\theHtable {\arabic{table}}%
+ \providecommand\theHsection {\arabic{section}}%
+ \providecommand\theHfigure {\arabic{figure}}%
+ \providecommand\theHtable {\arabic{table}}%
}{%
- \newcommand\theHchapter {\arabic{chapter}}%
- \newcommand\theHfigure {\theHchapter.\arabic{figure}}%
- \newcommand\theHtable {\theHchapter.\arabic{table}}%
- \newcommand\theHsection {\theHchapter.\arabic{section}}%
-}
-\newcommand\theHsubsection {\theHsection.\arabic{subsection}}
-\newcommand\theHsubsubsection{\theHsubsection.\arabic{subsubsection}}
-\newcommand\theHparagraph {\theHsubsubsection.\arabic{paragraph}}
-\newcommand\theHsubparagraph {\theHparagraph.\arabic{subparagraph}}
-\newcommand\theHtheorem {\theHsection.\arabic{theorem}}
-\newcommand\theHthm {\theHsection.\arabic{thm}}
+ \providecommand\theHchapter {\arabic{chapter}}%
+ \providecommand\theHfigure {\theHchapter.\arabic{figure}}%
+ \providecommand\theHtable {\theHchapter.\arabic{table}}%
+ \providecommand\theHsection {\theHchapter.\arabic{section}}%
+}
+\providecommand\theHsubsection {\theHsection.\arabic{subsection}}
+\providecommand\theHsubsubsection{\theHsubsection.\arabic{subsubsection}}
+\providecommand\theHparagraph {\theHsubsubsection.\arabic{paragraph}}
+\providecommand\theHsubparagraph {\theHparagraph.\arabic{subparagraph}}
+\providecommand\theHtheorem {\theHsection.\arabic{theorem}}
+\providecommand\theHthm {\theHsection.\arabic{thm}}
\let\H@item\item
\newcounter{Item}
\def\theHItem{\arabic{Item}}
@@ -6186,13 +6220,15 @@
\if@nmbrlist\@hyper@itemtrue\fi
\H@item
}
-\newcommand\theHenumi {\theHItem}
-\newcommand\theHenumii {\theHItem}
-\newcommand\theHenumiii {\theHItem}
-\newcommand\theHenumiv {\theHItem}
-\newcommand\theHHfootnote {\arabic{Hfootnote}}
-\newcommand\theHmpfootnote{\arabic{mpfootnote}}
-\let\theHHmpfootnote\theHHfootnote
+\providecommand\theHenumi {\theHItem}
+\providecommand\theHenumii {\theHItem}
+\providecommand\theHenumiii {\theHItem}
+\providecommand\theHenumiv {\theHItem}
+\providecommand\theHHfootnote {\arabic{Hfootnote}}
+\providecommand\theHmpfootnote{\arabic{mpfootnote}}
+\@ifundefined{theHHmpfootnote}{%
+ \let\theHHmpfootnote\theHHfootnote
+}{}
\let\H@refstepcounter\refstepcounter
\edef\name@of@eq{equation}%
\edef\name@of@slide{slide}%
@@ -6572,7 +6608,7 @@
\def\endsubeqnarray{%
\H@endsubeqnarray
}%
- \newcommand\theHsubequation{\theHequation\alph{subequation}}%
+ \providecommand\theHsubequation{\theHequation\alph{subequation}}%
}
\def\make@stripped@name#1{%
\begingroup
@@ -7660,13 +7696,14 @@
\providecommand*\ext@figure{lof}%
}{}
\@ifclassloaded{seminar}{%
- \Hy@seminarslidestrue\newcommand\theHslide{\arabic{slide}}%
+ \Hy@seminarslidestrue
+ \providecommand\theHslide{\arabic{slide}}%
}{%
\Hy@seminarslidesfalse
}
\@ifpackageloaded{slidesec}{%
- \newcommand\theHslidesection {\arabic{slidesection}}%
- \newcommand\theHslidesubsection{%
+ \providecommand\theHslidesection {\arabic{slidesection}}%
+ \providecommand\theHslidesubsection{%
\theHslidesection.\arabic{slidesubsection}%
}%
\def\slide@heading[#1]#2{%
@@ -7966,6 +8003,7 @@
}%
}
\DeclareRobustCommand*{\autoref}{%
+ \leavevmode
\@ifstar{\HyRef@autoref\@gobbletwo}{\HyRef@autoref\hyper@@link}%
}
\def\HyRef@autoref#1#2{%