diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hyperref.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hyperref.sty | 56 |
1 files changed, 47 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty index bd83f370d31..1e51500f0bb 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} \ProvidesPackage{hyperref} - [2010/10/30 v6.81t + [2010/11/22 v6.81u % Hypertext links for LaTeX] \begingroup \@makeother\`% @@ -117,11 +117,29 @@ \let#1\LTXcmds@gtemp }% } +\RequirePackage{ifpdf}[2006/02/20] +\RequirePackage{pdftexcmds}[2009/04/10] +\@ifpackagelater{pdftexcmds}{2010/11/04}{}{% + \ltx@IfUndefined{pdfdraftmode}{% + \let\pdf@ifdraftmode\ltx@secondoftwo + }{% + \ifpdf + \def\pdf@ifdraftmode{% + \ifnum\pdf@draftmode=\ltx@one + \expandafter\ltx@firstoftwo + \else + \expandafter\ltx@secondoftwo + \fi + }% + \else + \let\pdf@ifdraftmode\ltx@secondoftwo + \fi + }% +} \RequirePackage{infwarerr}[2010/04/08] \RequirePackage{keyval}[1997/11/10] \RequirePackage{kvsetkeys}[2007/09/29] \RequirePackage{pdfescape}[2007/11/11] -\RequirePackage{ifpdf}[2006/02/20] \RequirePackage{ifvtex} \RequirePackage{ifxetex}[2006/08/21] \RequirePackage{hycolor} @@ -814,7 +832,6 @@ \let\HyOrg@languageshorthands\languageshorthands \let\languageshorthands\HyPsd@LanguageShorthands } -\RequirePackage{pdftexcmds}[2009/04/10] \begingroup\expandafter\expandafter\expandafter\endgroup \expandafter\ifx\csname pdf@strcmp\endcsname\relax \let\HyPsd@langshort@system\@empty @@ -4345,8 +4362,8 @@ \Hy@AtBeginDocument{% \ifHy@texht \else - \Hy@CatcodeWrapper{% - \ReadBookmarks + \pdf@ifdraftmode{}{% + \Hy@CatcodeWrapper\ReadBookmarks }% \fi } @@ -5320,6 +5337,30 @@ \def\Form@method{} \@namedef{Form@method@post}{0} \@namedef{Form@method@get}{1} +\newif\ifHyField@NeedAppearances +\def\HyField@NeedAppearancesfalse{% + \global\let\ifHyField@NeedAppearances\iffalse +} +\def\HyField@NeedAppearancestrue{% + \global\let\ifHyField@NeedAppearances\iftrue +} +\HyField@NeedAppearancestrue +\define@key{Form}{NeedAppearances}[true]{% + \edef\Hy@tempa{#1}% + \ifx\Hy@tempa\Hy@true + \HyField@NeedAppearancestrue + \else + \ifx\Hy@tempa\Hy@false + \HyField@NeedAppearancesfalse + \else + \Hy@Error{% + Unexpected value `\Hy@tempa'\MessageBreak + of option `NeedAppearances' instead of\MessageBreak + `true' or `false'% + }\@ehc + \fi + \fi +} \def\Field@boolkey#1#2{% \csname Fld@#2\ifx\relax#1\relax true\else#1\fi\endcsname } @@ -6627,13 +6668,10 @@ \the\LT@p@ftn \begingroup \noexpand\c@footnote=\the\c@footnote\relax - \noexpand\protected@xdef - \noexpand\@thefnmark{\noexpand\thempfn}% \noexpand\protected@xdef\noexpand\@thefnmark{% \noexpand\thempfn }% - \expandafter\noexpand\expandafter\Hy@LT@footnotetext - \expandafter{% + \noexpand\Hy@LT@footnotetext{% \Hy@footnote@currentHref }% }% |