diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hyperref.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hyperref.sty | 65 |
1 files changed, 48 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty index ee45a5ee31d..29498f28f09 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/09/13 v6.81n + [2010/09/17 v6.81q Hypertext links for LaTeX] \begingroup \@makeother\`% @@ -109,10 +109,10 @@ \RequirePackage{ifxetex}[2006/08/21] \RequirePackage{hycolor} \RequirePackage{letltxmacro}[2008/06/13] -\def\Hy@Error#1{\@PackageError{hyperref}} -\def\Hy@Warning#1{\@PackageWarning{hyperref}{#1}} -\def\Hy@WarningNoLine#1{\@PackageWarningNoLine{hyperref}{#1}} -\def\Hy@Info#1{\@PackageInfo{hyperref}{#1}} +\def\Hy@Error{\@PackageError{hyperref}} +\def\Hy@Warning{\@PackageWarning{hyperref}} +\def\Hy@WarningNoLine{\@PackageWarningNoLine{hyperref}} +\def\Hy@Info{\@PackageInfo{hyperref}} \def\Hy@InfoNoLine{\@PackageInfoNoLine{hyperref}} \def\Hy@Message#1{% \GenericWarning{% @@ -139,12 +139,20 @@ \edef\{{\ltx@backslashchar\ltx@leftbracechar}% \edef\}{\ltx@rightbracechar}% \edef\\{\ltx@backslashchar\ltx@backslashchar}% - \ifnum\pdfmatch{#2}{#1}=\ltx@one + \ifcase\pdfmatch{#2}{#1} % + \endgroup + \expandafter\ltx@secondoftwo + \or \endgroup \expandafter\ltx@firstoftwo \else + \Hy@Warning{% + Internal error: Wrong pattern!\MessageBreak + --> #2 <--\MessageBreak + Pattern check ignored% + }% \endgroup - \expandafter\ltx@secondoftwo + \expandafter\ltx@firstoftwo \fi }% } @@ -3303,20 +3311,20 @@ \do{/P}{Push}% } \define@key{Hyp}{pdfborder}{% - \def\Hy@temp{#1}% - \Hy@Match\Hy@temp{% - ^(\HyPat@NonNegativeReal/ % - \HyPat@NonNegativeReal/ % - \HyPat@NonNegativeReal/% - ( ?[\HyPat@NonNegativeReal/( \HyPat@NonNegativeReal/)*])?)$% - }{% - \let\@pdfborder\Hy@temp - }{% + \let\Hy@temp\@pdfborder + \def\@pdfborder{#1}% + \Hy@Match\@pdfborder{% + ^\HyPat@NonNegativeReal/ % + \HyPat@NonNegativeReal/ % + \HyPat@NonNegativeReal/% + ( ?\[\HyPat@NonNegativeReal/( \HyPat@NonNegativeReal/)*])?$% + }{}{% \Hy@Warning{% - Invalid value `\Hy@temp'\MessageBreak + Invalid value `\@pdfborder'\MessageBreak for option `pdfborder'.\MessageBreak Option setting is ignored% }% + \let\@pdfborder\Hy@temp }% } \define@key{Hyp}{pdfborderstyle}{\def\@pdfborderstyle{#1}} @@ -3865,6 +3873,29 @@ \ifHy@next \let\texttilde\~% \fi +\def\Hy@wrapper@babel#1#2{% + \begingroup + \Hy@safe@activestrue + \set@display@protect + \edef\x{#2}% + \@onelevel@sanitize\x + \toks@{#1}% + \edef\x{\endgroup\the\toks@{\x}}% + \x +} +\def\Hy@WrapperDef#1{% + \begingroup + \escapechar=\m@ne + \xdef\Hy@gtemp{% + \expandafter\noexpand\csname HyWrap@\string#1\endcsname + }% + \endgroup + \edef#1{% + \noexpand\Hy@wrapper@babel + \expandafter\noexpand\Hy@gtemp + }% + \expandafter\def\Hy@gtemp +} \ifHy@figures \Hy@Info{Hyper figures ON}% \else |