diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/hyperref.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/hyperref/hyperref.sty | 74 |
1 files changed, 27 insertions, 47 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty index 5cbe90f90a0..960b63f31c0 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty +++ b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty @@ -36,7 +36,7 @@ %% File: hyperref.dtx \NeedsTeXFormat{LaTeX2e}[2020/10/01] \ProvidesPackage{hyperref} - [2024-01-20 v7.01h % + [2024-05-23 v7.01i % Hypertext links for LaTeX] \begingroup \@makeother\`% @@ -111,9 +111,9 @@ \RequirePackage{kvdefinekeys}[2011/04/07] \RequirePackage{pdfescape}[2007/11/11] \RequirePackage{hycolor} -\RequirePackage{auxhook}[2009/12/14] \RequirePackage{nameref}[2012/07/28] \RequirePackage{etoolbox} +\RequirePackage{stringenc}[2009/12/15]% \def\Hy@Error{\PackageError{hyperref}} \def\Hy@Warning{\PackageWarning{hyperref}} \def\Hy@WarningNoLine{\PackageWarningNoLine{hyperref}} @@ -628,30 +628,27 @@ \ifHy@unicode \HyPsd@ConvertToUnicode#1% \ifx\HyPsd@pdfencoding\HyPsd@pdfencoding@auto - \@ifundefined{StringEncodingConvertTest}{% - }{% - \EdefUnescapeString\HyPsd@temp#1% - \iftutex - \let\HyPsd@UnescapedString\HyPsd@temp - \StringEncodingConvertTest\HyPsd@temp\HyPsd@temp - {utf16be}{ascii-print}{% - \EdefEscapeString\HyPsd@temp\HyPsd@temp - \global\let#1\HyPsd@temp - \HyPsd@EscapeTeX#1% - \Hy@unicodefalse - }{% - \HyPsd@EscapeTeX#1% - }% - \else - \StringEncodingConvertTest\HyPsd@temp\HyPsd@temp - {utf16be}{pdfdoc}{% - \EdefEscapeString\HyPsd@temp\HyPsd@temp - \global\let#1\HyPsd@temp - \HyPsd@EscapeTeX#1% - \Hy@unicodefalse - }{}% - \fi - }% + \EdefUnescapeString\HyPsd@temp#1% + \iftutex + \let\HyPsd@UnescapedString\HyPsd@temp + \StringEncodingConvertTest\HyPsd@temp\HyPsd@temp + {utf16be}{ascii-print}{% + \EdefEscapeString\HyPsd@temp\HyPsd@temp + \global\let#1\HyPsd@temp + \HyPsd@EscapeTeX#1% + \Hy@unicodefalse + }{% + \HyPsd@EscapeTeX#1% + }% + \else + \StringEncodingConvertTest\HyPsd@temp\HyPsd@temp + {utf16be}{pdfdoc}{% + \EdefEscapeString\HyPsd@temp\HyPsd@temp + \global\let#1\HyPsd@temp + \HyPsd@EscapeTeX#1% + \Hy@unicodefalse + }{}% + \fi \fi \fi \pdfstringdefPostHook#1% @@ -2439,9 +2436,6 @@ \hypersetup{unicode}% \ifHy@unicode \def\HyPsd@pdfencoding{#1}% - \ifx\HyPsd@pdfencoding\HyPsd@pdfencoding@auto - \HyPsd@LoadStringEnc - \fi \else \Hy@Warning{Cannot switch to unicode bookmarks}% \let\HyPsd@pdfencoding\HyPsd@pdfencoding@pdfdoc @@ -2461,22 +2455,6 @@ \def\HyPsd@pdfencoding@unicode{unicode} \let\HyPsd@pdfencoding\HyPsd@pdfencoding@unicode \HyPsd@LoadUnicode -\def\HyPsd@LoadStringEnc{% - \RequirePackage{stringenc}[2009/12/15]% - \let\HyPsd@LoadStringEnc\relax -} -\Hy@AtBeginDocument{% - \@ifpackageloaded{stringenc}{% - \let\HyPsd@LoadStringEnc\relax - }{% - \def\HyPsd@LoadStringEnc{% - \Hy@WarningNoLine{% - Missing package `stringenc'. Use `pdfencoding=auto'\MessageBreak - in the preamble or load the package there% - }% - }% - }% -} \define@key{Hyp}{psdextra}[true]{% \Hy@boolkey{psdextra}{#1}% \HyPsd@LoadExtra @@ -4587,6 +4565,7 @@ \catcode`\&\active \gdef\hyper@normalise{^^A \begingroup + \@makeother{:}^^A \catcode`\^^M\active \def^^M{ }^^A \catcode`\%\active @@ -7738,8 +7717,9 @@ \let\H@definecounter\@definecounter \def\@definecounter#1{% \H@definecounter{#1}% - \expandafter\gdef\csname theH#1\endcsname{\arabic{#1}}% - } + \expandafter + \gdef\csname theH#1\expandafter\endcsname\expandafter + {\expandafter\@arabic\csname c@#1\endcsname}}% }{} \@ifundefined{hyper@nopatch@counter} { |