diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hyperref.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hyperref.sty | 109 |
1 files changed, 106 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty index 794ec51eec3..94c125909cb 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-2010 Heiko Oberdiek. +%% 2001-2011 Heiko Oberdiek. %% %% This file is part of the `Hyperref Bundle'. %% ------------------------------------------- @@ -30,7 +30,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{hyperref} - [2010/12/16 v6.81z % + [2011/02/05 v6.82a % Hypertext links for LaTeX] \begingroup \@makeother\`% @@ -494,9 +494,12 @@ \let\phantom\@gobble \let\vphantom\@gobble \let\hphantom\@gobble + \def\begin#1{\csname#1\endcsname}% + \def\end#1{\csname end#1\endcsname}% \def\textcolor##1##{\@secondoftwo}% \def\MakeUppercase{\MakeUppercaseUnsupportedInPdfStrings}% \def\MakeLowercase{\MakeLowercaseUnsupportedInPdfStrings}% + \let\foreignlanguage\@secondoftwo \let\textlatin\@firstofone \ltx@IfUndefined{language@group}{}{% \csname HyPsd@babel@\language@group\endcsname @@ -3212,6 +3215,15 @@ \define@key{Hyp}{colorlinks}[true]{% \Hy@boolkey{colorlinks}{#1}% } +\DeclareVoidOption{hidelinks}{% + \Hy@colorlinksfalse + \Hy@ocgcolorlinksfalse + \Hy@frenchlinksfalse + \def\Hy@colorlink##1{\begingroup}% + \def\Hy@endcolorlink{\endgroup}% + \def\@pdfborder{0 0 0}% + \let\@pdfborderstyle\ltx@empty +} \define@key{Hyp}{ocgcolorlinks}[true]{% \Hy@boolkey{ocgcolorlinks}{#1}% } @@ -3324,6 +3336,15 @@ \Hy@WarningNoLine{Option `pagecolor' is not available anymore}% \global\let\Hy@WarningPageColor\relax } +\define@key{Hyp}{allcolors}{% + \HyColor@HyperrefColor{#1}\@linkcolor + \HyColor@HyperrefColor{#1}\@anchorcolor + \HyColor@HyperrefColor{#1}\@citecolor + \HyColor@HyperrefColor{#1}\@filecolor + \HyColor@HyperrefColor{#1}\@urlcolor + \HyColor@HyperrefColor{#1}\@menucolor + \HyColor@HyperrefColor{#1}\@runcolor +} \def\hyperbaseurl#1{\def\@baseurl{#1}} \define@key{Hyp}{baseurl}{\hyperbaseurl{#1}} \let\@baseurl\@empty @@ -3376,6 +3397,17 @@ \Hy@WarningNoLine{Option `pagebordercolor' is not available anymore}% \global\let\Hy@WarningPageBorderColor\relax } +\define@key{Hyp}{allbordercolors}{% + \def\Hy@temp##1##2{% + \HyColor@HyperrefBorderColor{#1}##1{hyperref}{##2bordercolor}% + }% + \Hy@temp\@citebordercolor{cite}% + \Hy@temp\@filebordercolor{file}% + \Hy@temp\@linkbordercolor{link}% + \Hy@temp\@menubordercolor{menu}% + \Hy@temp\@runbordercolor{run}% + \Hy@temp\@urlbordercolor{url}% +} \define@key{Hyp}{pdfhighlight}{\def\@pdfhighlight{#1}} \Hy@DefNameKey{pdfhighlight}{% \do{/I}{Invert}% @@ -5939,17 +5971,38 @@ \def\HyPL@roman{r}% \def\HyPL@Alph{A}% \def\HyPL@alph{a}% + \def\HyPL@SlidesSetPage{}% + \ltx@ifclassloaded{slides}{% + \def\HyPL@SlidesSetPage{% + \advance\c@page\ltx@one + \ifnum\value{page}>\ltx@one + \protected@edef\HyPL@SlidesOptionalPage{% + \Hy@SlidesFormatOptionalPage{\thepage}% + }% + \else + \def\HyPL@SlidesOptionalPage{}% + \fi + \advance\c@page-\ltx@one + \def\HyPL@page{% + \csname the\Hy@SlidesPage\endcsname + \HyPL@SlidesOptionalPage + }% + }% + }{}% \def\HyPL@EveryPage{% \begingroup \ifx\HyPL@thisLabel\relax \let\HyPL@page\thepage + \HyPL@SlidesSetPage \else \let\HyPL@page\HyPL@thisLabel \global\let\HyPL@thisLabel\relax \fi \let\HyPL@Type\relax \ifnum\the\c@page>0 % - \expandafter\HyPL@CheckThePage\HyPL@page\@nil + \ifx\HyPLSlidesSetPage\ltx@empty + \expandafter\HyPL@CheckThePage\HyPL@page\@nil + \fi \fi \let\Hy@temp Y% \ifx\HyPL@Type\HyPL@LastType @@ -7152,18 +7205,68 @@ \@citedatax[{#1}]% }% }{} +\ltx@ifclassloaded{slides}{% + \def\Hy@SlidesFormatOptionalPage#1{(#1)}% + \def\Hy@PageAnchorSlidesPlain{% + \hyper@@anchor{% + page.\the\c@slide.\the\c@overlay.\the\c@note.\the\c@page + }% + }% + \def\Hy@PageAnchorSlide{% + \advance\c@page\ltx@one + \ifnum\c@page>\ltx@one + \ltx@IfUndefined{theHpage}{% + \protected@edef\Hy@TheSlideOptionalPage{% + \Hy@SlidesFormatOptionalPage{\thepage}% + }% + }{% + \protected@edef\Hy@TheSlideOptionalPage{% + \Hy@SlidesFormatOptionalPage{\theHpage}% + }% + }% + \else + \def\Hy@TheSlideOptionalPage{}% + \fi + \advance\c@page-\ltx@one + \pdfstringdef\@the@H@page{% + \csname + the% + \ltx@ifundefined{theH\Hy@SlidesPage}{}{H}% + \Hy@SlidesPage + \endcsname + \Hy@TheSlideOptionalPage + }% + \ltx@gobblethree + }% + \def\Hy@SlidesPage{slide}% + \g@addto@macro\slide{% + \def\Hy@SlidesPage{slide}% + }% + \g@addto@macro\overlay{% + \def\Hy@SlidesPage{overlay}% + }% + \g@addto@macro\note{% + \def\Hy@SlidesPage{note}% + }% +}{% + \def\Hy@PageAnchorSlidesPlain{}% + \def\Hy@PageAnchorSlide{}% +} \def\Hy@EveryPageAnchor{% \Hy@DistillerDestFix \ifHy@pageanchor \ifHy@hypertexnames \ifHy@plainpages \def\Hy@TempPageAnchor{\hyper@@anchor{page.\the\c@page}}% + \Hy@PageAnchorSlidesPlain \else \begingroup \let\@number\@firstofone \Hy@unicodefalse + \Hy@PageAnchorSlide \pdfstringdef\@the@H@page{\thepage}% \endgroup + \EdefUnescapeString\@the@H@page{\@the@H@page}% \def\Hy@TempPageAnchor{\hyper@@anchor{page.\@the@H@page}}% \fi \else |