From 1034af11def997396d8fd825e90e67901498f70b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 20 Apr 2023 19:59:06 +0000 Subject: hyperref (20apr23) git-svn-id: svn://tug.org/texlive/trunk@66902 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/hyperref/backref.sty | 10 +- Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def | 2 +- Master/texmf-dist/tex/latex/hyperref/hdvips.def | 2 +- Master/texmf-dist/tex/latex/hyperref/hdvipson.def | 2 +- Master/texmf-dist/tex/latex/hyperref/hdviwind.def | 2 +- Master/texmf-dist/tex/latex/hyperref/hluatex.def | 4 +- Master/texmf-dist/tex/latex/hyperref/hpdftex.def | 2 +- Master/texmf-dist/tex/latex/hyperref/htex4ht.cfg | 2 +- Master/texmf-dist/tex/latex/hyperref/htex4ht.def | 2 +- Master/texmf-dist/tex/latex/hyperref/htexture.def | 2 +- Master/texmf-dist/tex/latex/hyperref/hvtex.def | 2 +- Master/texmf-dist/tex/latex/hyperref/hvtexhtm.def | 2 +- Master/texmf-dist/tex/latex/hyperref/hvtexmrk.def | 2 +- Master/texmf-dist/tex/latex/hyperref/hxetex.def | 2 +- Master/texmf-dist/tex/latex/hyperref/hyperref.sty | 318 ++++++++------------- Master/texmf-dist/tex/latex/hyperref/hypertex.def | 2 +- .../texmf-dist/tex/latex/hyperref/nohyperref.sty | 2 +- Master/texmf-dist/tex/latex/hyperref/pd1enc.def | 2 +- Master/texmf-dist/tex/latex/hyperref/pdfmark.def | 2 +- Master/texmf-dist/tex/latex/hyperref/psdextra.def | 2 +- Master/texmf-dist/tex/latex/hyperref/puarenc.def | 2 +- .../texmf-dist/tex/latex/hyperref/puenc-extra.def | 2 +- .../tex/latex/hyperref/puenc-greekbasic.def | 2 +- Master/texmf-dist/tex/latex/hyperref/puenc.def | 2 +- Master/texmf-dist/tex/latex/hyperref/puvnenc.def | 2 +- Master/texmf-dist/tex/latex/hyperref/xr-hyper.sty | 2 +- 26 files changed, 148 insertions(+), 230 deletions(-) (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/hyperref/backref.sty b/Master/texmf-dist/tex/latex/hyperref/backref.sty index 3d57fa1ac8b..2b2131a5679 100644 --- a/Master/texmf-dist/tex/latex/hyperref/backref.sty +++ b/Master/texmf-dist/tex/latex/hyperref/backref.sty @@ -57,7 +57,7 @@ %% given in the file `manifest.txt'. \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{backref} - [2021/02/04 v1.41 Bibliographical back referencing]% + [2023/04/20 v1.42 Bibliographical back referencing]% \RequirePackage{kvoptions}[2011/06/30] \RequirePackage{kvsetkeys}[2009/07/30] \RequirePackage{ltxcmds}[2009/12/12] @@ -134,6 +134,13 @@ \def\backrefsep{, }% \def\backreftwosep{ en~}% \def\backreflastsep{ en~}% +} +\def\backrefitalian{% + \def\backrefpagesname{pagine}% + \def\backrefsectionsname{sezioni}% + \def\backrefsep{, }% + \def\backreftwosep{ e~}% + \def\backreflastsep{ e~}% }% \def\BR@addto#1#2{% #2% @@ -184,6 +191,7 @@ \BR@DeclareLang{brazil}{brazil} \BR@DeclareLang{brazilian}{brazil} \BR@DeclareLang{afrikaans}{afrikaans} +\BR@DeclareLang{italian}{italian} \backrefenglish \backrefsetup{pageref} \ProcessKeyvalOptions* diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def index 038d312d78c..32d311e21f4 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def +++ b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{hdvipdfm.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref driver for dvipdfm] \Hy@VersionCheck{hdvipdfm.def} \special{pdf:majorversion \Hy@pdf@majorversion} diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvips.def b/Master/texmf-dist/tex/latex/hyperref/hdvips.def index ac32f72196d..0f47515bb1f 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hdvips.def +++ b/Master/texmf-dist/tex/latex/hyperref/hdvips.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{hdvips.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref driver for dvips] \Hy@VersionCheck{hdvips.def} \providecommand*{\XR@ext}{pdf} diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvipson.def b/Master/texmf-dist/tex/latex/hyperref/hdvipson.def index f9b0562afef..30a0d3a1cd7 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hdvipson.def +++ b/Master/texmf-dist/tex/latex/hyperref/hdvipson.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{hdvipson.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref driver for dvipsone] \Hy@VersionCheck{hdvipson.def} \providecommand*{\XR@ext}{pdf} diff --git a/Master/texmf-dist/tex/latex/hyperref/hdviwind.def b/Master/texmf-dist/tex/latex/hyperref/hdviwind.def index 2c9e044ae64..a737d8707ca 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hdviwind.def +++ b/Master/texmf-dist/tex/latex/hyperref/hdviwind.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{hdviwind.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref driver for dviwindo] \Hy@VersionCheck{hdviwind.def} \begingroup diff --git a/Master/texmf-dist/tex/latex/hyperref/hluatex.def b/Master/texmf-dist/tex/latex/hyperref/hluatex.def index af3db3f5ef8..4a499576f07 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hluatex.def +++ b/Master/texmf-dist/tex/latex/hyperref/hluatex.def @@ -34,10 +34,10 @@ %% %% File: hyperref.dtx \ProvidesFile{hluatex.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref driver for luaTeX] \Hy@VersionCheck{hluatex.def} -%% 2023-02-07 v7.00v +%% 2023-04-20 v7.00w %% force unicode encoding, see issue #101 %% code mostly copied from hxetex.def \HyPsd@LoadUnicode diff --git a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def index 74a153201e4..8b31df13752 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def +++ b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{hpdftex.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref driver for pdfTeX] \Hy@VersionCheck{hpdftex.def} \pdf@ifdraftmode{% diff --git a/Master/texmf-dist/tex/latex/hyperref/htex4ht.cfg b/Master/texmf-dist/tex/latex/hyperref/htex4ht.cfg index 156d2fdff3c..d9e488b4422 100644 --- a/Master/texmf-dist/tex/latex/hyperref/htex4ht.cfg +++ b/Master/texmf-dist/tex/latex/hyperref/htex4ht.cfg @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{htex4ht.cfg} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref configuration file for TeX4ht] \IfFileExists{\jobname.cfg}{\endinput}{} \Preamble{html} diff --git a/Master/texmf-dist/tex/latex/hyperref/htex4ht.def b/Master/texmf-dist/tex/latex/hyperref/htex4ht.def index 499bcee4048..ac02021593c 100644 --- a/Master/texmf-dist/tex/latex/hyperref/htex4ht.def +++ b/Master/texmf-dist/tex/latex/hyperref/htex4ht.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{htex4ht.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref driver for TeX4ht] \Hy@VersionCheck{htex4ht.def} \providecommand*{\XR@ext}{html} diff --git a/Master/texmf-dist/tex/latex/hyperref/htexture.def b/Master/texmf-dist/tex/latex/hyperref/htexture.def index eb89f7658d8..7e456ac72c8 100644 --- a/Master/texmf-dist/tex/latex/hyperref/htexture.def +++ b/Master/texmf-dist/tex/latex/hyperref/htexture.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{htexture.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref driver for Textures] \Hy@VersionCheck{htexture.def} \providecommand*{\XR@ext}{pdf} diff --git a/Master/texmf-dist/tex/latex/hyperref/hvtex.def b/Master/texmf-dist/tex/latex/hyperref/hvtex.def index e0219379d33..af8a7943ad5 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hvtex.def +++ b/Master/texmf-dist/tex/latex/hyperref/hvtex.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{hvtex.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref driver for VTeX in PDF/PS mode] \Hy@VersionCheck{hvtex.def} \providecommand*{\XR@ext}{pdf} diff --git a/Master/texmf-dist/tex/latex/hyperref/hvtexhtm.def b/Master/texmf-dist/tex/latex/hyperref/hvtexhtm.def index 01700d115b0..b91102415aa 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hvtexhtm.def +++ b/Master/texmf-dist/tex/latex/hyperref/hvtexhtm.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{hvtexhtml.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref driver for VTeX in HTML mode] \Hy@VersionCheck{hvtexhtm.def} \providecommand*{\XR@ext}{htm} diff --git a/Master/texmf-dist/tex/latex/hyperref/hvtexmrk.def b/Master/texmf-dist/tex/latex/hyperref/hvtexmrk.def index 7b7a0005f95..ee88f7e772c 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hvtexmrk.def +++ b/Master/texmf-dist/tex/latex/hyperref/hvtexmrk.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{hvtexmrk.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref driver for VTeX in PDF/PS mode (pdfmark specials)] \Hy@VersionCheck{hvtexmrk.def} \providecommand*{\XR@ext}{pdf} diff --git a/Master/texmf-dist/tex/latex/hyperref/hxetex.def b/Master/texmf-dist/tex/latex/hyperref/hxetex.def index 21b093c860c..982079694cf 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hxetex.def +++ b/Master/texmf-dist/tex/latex/hyperref/hxetex.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{hxetex.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref driver for XeTeX] \Hy@VersionCheck{hxetex.def} \HyPsd@LoadUnicode diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty index 253cee64cc0..de4746a2f90 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} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hypertext links for LaTeX] \begingroup \@makeother\`% @@ -118,6 +118,7 @@ \RequirePackage{letltxmacro}[2008/06/13] \RequirePackage{auxhook}[2009/12/14] \RequirePackage{nameref}[2012/07/28] +\RequirePackage{etoolbox} \def\Hy@Error{\@PackageError{hyperref}} \def\Hy@Warning{\@PackageWarning{hyperref}} \def\Hy@WarningNoLine{\@PackageWarningNoLine{hyperref}} @@ -345,26 +346,22 @@ \strip@pt\dimexpr 0.99626401\dimexpr(#1)\relax\relax }% \def\hypercalcbpdef{\def}% +\providecommand*\BCPdata[1]{} \ExplSyntaxOn \@ifundefined{text_uppercase:n}{} { - \def\MakeUppercaseUnsupportedInPdfStrings#1{\use:e {\text_uppercase:n {#1}}} - \def\MakeLowercaseUnsupportedInPdfStrings#1{\use:e {\text_lowercase:n {#1}}} - \AddToHook{package/babel/after} - { - \def\MakeUppercaseUnsupportedInPdfStrings#1 + \def\MakeUppercaseUnsupportedInPdfStrings#1 {\use:e {\exp_args:Ne - \text_uppercase:nn{\localeinfo*{tag.bcp47}}{#1} + \text_uppercase:nn{\BCPdata { casing }}{#1} } } - \def\MakeLowercaseUnsupportedInPdfStrings#1 + \def\MakeLowercaseUnsupportedInPdfStrings#1 {\use:e {\exp_args:Ne - \text_lowercase:nn{\localeinfo*{tag.bcp47}}{#1} + \text_lowercase:nn{\BCPdata { casing }}{#1} } } - } } \ExplSyntaxOff \def\pdfstringdef#1#2{% @@ -1323,55 +1320,27 @@ \Hy@Warning{#1}% \endgroup } -\RequirePackage{etexcmds}[2007/09/09] -\ifetex@unexpanded - \expandafter\@secondoftwo -\else - \expandafter\@firstoftwo -\fi -{% - \def\HyPsd@ProtectSpaces#1{% +\let\HyPsd@fi\fi +\def\HyPsd@ProtectSpaces#1{% + \xdef#1{% \iftrue \expandafter\HyPsd@@ProtectSpacesFi - \expandafter|\expandafter\@empty#1| \HyPsd@End#1% - \fi - }% - \def\HyPsd@@ProtectSpacesFi#1 #2\HyPsd@End#3\fi{% - \fi - \ifx\scrollmode#2\scrollmode - \HyPsd@RemoveMask#1\HyPsd@End#3% - \else - \gdef#3{#1\HyPsd@UnexpandableSpace#2}% - \expandafter\HyPsd@@ProtectSpacesFi#3\HyPsd@End#3% - \fi - }% - \def\HyPsd@RemoveMask|#1|\HyPsd@End#2{% - \toks@\expandafter{#1}% - \xdef#2{\the\toks@}% - }% -}{% - \let\HyPsd@fi\fi - \def\HyPsd@ProtectSpaces#1{% - \xdef#1{% - \iftrue - \expandafter\HyPsd@@ProtectSpacesFi - \expandafter|\expandafter\@empty#1| % - \HyPsd@fi - }% - \expandafter\HyPsd@RemoveMask#1\HyPsd@End#1% - }% - \def\HyPsd@@ProtectSpacesFi#1 #2\HyPsd@fi{% - \fi - \etex@unexpanded{#1}% - \ifx\scrollmode#2\scrollmode - \else - \HyPsd@@ProtectSpacesFi\HyPsd@UnexpandableSpace#2% + \expandafter|\expandafter\@empty#1| % \HyPsd@fi }% - \def\HyPsd@RemoveMask|#1|\HyPsd@End#2{% - \xdef#2{\etex@unexpanded\expandafter{#1}}% - }% -} + \expandafter\HyPsd@RemoveMask#1\HyPsd@End#1% +}% +\def\HyPsd@@ProtectSpacesFi#1 #2\HyPsd@fi{% + \fi + \unexpanded{#1}% + \ifx\scrollmode#2\scrollmode + \else + \HyPsd@@ProtectSpacesFi\HyPsd@UnexpandableSpace#2% + \HyPsd@fi +}% +\def\HyPsd@RemoveMask|#1|\HyPsd@End#2{% + \xdef#2{\unexpanded\expandafter{#1}}% +}% \def\HyPsd@RemoveBraces#1{% \ifx\scrollmode#1\scrollmode \else @@ -2740,6 +2709,21 @@ A current html.sty will do all necessary (re)definitions% }% } +\DeclareVoidOption{hitex}{% + \ifhint + \IfFileExists{hhitex.def} + {\def\Hy@driver{hhitex}}% + {\Hy@Warning{% + Missing driver file `hhitex.def',\MessageBreak + ignoring hitex driver% + }}% + \else + \Hy@Error{% + Wrong driver option `hitex',\MessageBreak + because HiTeX is not detected% + }\@ehc + \fi +} \DeclareVoidOption{ps2pdf}{% \HyOpt@CheckDvi{ps2pdf}{% \def\Hy@driver{hdvips}% @@ -3109,6 +3093,24 @@ \def\theoremautorefname{Teorem}% \def\pageautorefname{side}% } +\def\HyLang@swedish{% + \def\equationautorefname{Ekvation}% + \def\footnoteautorefname{fotnot}% + \def\itemautorefname{punkt}% + \def\figureautorefname{Figur}% + \def\tableautorefname{Tabell}% + \def\partautorefname{Del}% + \def\appendixautorefname{Bilaga}% + \def\chapterautorefname{kapitel}% + \def\sectionautorefname{avsnitt}% + \def\subsectionautorefname{underavsnitt}% + \def\subsubsectionautorefname{under-underavsnitt}% + \def\paragraphautorefname{paragraf}% + \def\subparagraphautorefname{underparagraf}% + \def\FancyVerbLineautorefname{linje}% + \def\theoremautorefname{Teorem}% + \def\pageautorefname{sida}% +} \def\HyLang@addto#1#2{% #2% \@temptokena{#2}% @@ -3161,6 +3163,8 @@ \HyLang@DeclareLang{austrian}{german}{} \HyLang@DeclareLang{ngerman}{german}{} \HyLang@DeclareLang{naustrian}{german}{} +\HyLang@DeclareLang{nswissgerman}{german}{} +\HyLang@DeclareLang{swissgerman}{german}{} \HyLang@DeclareLang{russian}{russian}{\noexpand\hypersetup{unicode}} \HyLang@DeclareLang{brazil}{portuges}{} \HyLang@DeclareLang{brazilian}{portuges}{} @@ -3181,6 +3185,7 @@ \HyLang@DeclareLang{norsk}{norsk}{} \HyLang@DeclareLang{norwegian}{norsk}{} \HyLang@DeclareLang{danish}{danish}{} +\HyLang@DeclareLang{swedish}{swedish}{} \DeclareVoidOption{vietnamese}{% \HyLang@addto\extrasvietnamese\HyLang@vietnamese \Hy@AtEndOfPackage{% @@ -3688,14 +3693,14 @@ \HyInfo@AddonList \HyInfo@do{\HyInfo@Key}% }% - \kv@parse@normalized{% + \expandafter\kv@parse@normalized\expandafter{% \HyInfo@Key={#2}% }{% \kv@processor@default{pdfinfo}% }% \fi \else - \kv@parse@normalized{% + \expandafter\kv@parse@normalized\expandafter{% \HyInfo@Key={#2}% }{% \kv@processor@default{pdfinfo}% @@ -4276,6 +4281,21 @@ \fi \fi \ifx\Hy@driver\@empty + \else + \def\Hy@temp{hhitex}% + \ifhint + \ifx\Hy@driver\Hy@temp + \else + \Hy@WarningNoLine{% + Wrong driver `\Hy@driver.def';\MessageBreak + hitex is running.\MessageBreak + Forcing driver `\Hy@temp.def'% + }% + \let\Hy@driver\Hy@temp + \fi + \fi + \fi + \ifx\Hy@driver\@empty \else \def\Hy@temp{hvtexhtm}% \ifnum\ifvtex\OpMode\else\m@ne\fi=10 % @@ -4325,27 +4345,31 @@ \endinput }% \else - \ifnum\ifvtex\OpMode\else\m@ne\fi=\@ne - \def\Hy@driver{hvtex}% + \ifhint + \def\Hy@driver{hhitex} \else - \ifnum\ifvtex\OpMode\else\m@ne\fi=\tw@ + \ifnum\ifvtex\OpMode\else\m@ne\fi=\@ne \def\Hy@driver{hvtex}% \else - \ifx\HyOpt@DriverFallback\ltx@empty - \let\Hy@driver\Hy@defaultdriver - \def\HyOpt@DriverType{ (default)}% + \ifnum\ifvtex\OpMode\else\m@ne\fi=\tw@ + \def\Hy@driver{hvtex}% \else - \begingroup - \toks@\expandafter{\HyOpt@DriverFallback}% - \edef\x{\endgroup - \noexpand\kvsetkeys{Hyp}{\the\toks@}% - }% - \x - \ifx\Hy@driver\ltx@empty + \ifx\HyOpt@DriverFallback\ltx@empty \let\Hy@driver\Hy@defaultdriver \def\HyOpt@DriverType{ (default)}% \else - \def\HyOpt@DriverType{ (fallback)}% + \begingroup + \toks@\expandafter{\HyOpt@DriverFallback}% + \edef\x{\endgroup + \noexpand\kvsetkeys{Hyp}{\the\toks@}% + }% + \x + \ifx\Hy@driver\ltx@empty + \let\Hy@driver\Hy@defaultdriver + \def\HyOpt@DriverType{ (default)}% + \else + \def\HyOpt@DriverType{ (fallback)}% + \fi \fi \fi \fi @@ -6864,6 +6888,7 @@ } } \@ifpackageloaded{longtable}{% +\@ifundefined{hyper@nopatch@longtable}{% \begingroup \def\y{\LT@array}% \@ifundefined{scr@LT@array}{% @@ -6893,6 +6918,7 @@ }% }% \expandafter\x\LT@start\@nil + }{} }{} \let\new@refstepcounter\refstepcounter \let\H@equation\equation @@ -7012,138 +7038,21 @@ \ignorespaces }% \fi -\Hy@AtBeginDocument{% -\@ifpackageloaded{cleveref}{% -\let\Hy@savedthm\@thm -\def\@thm{\ifhmode\unskip\fi\Hy@savedthm}% -}{% -\@ifpackageloaded{amsthm}{% - \def\Hy@temp#1#2#3{% - \ifhmode\unskip\unskip\par\fi - \normalfont - \trivlist - \let\thmheadnl\relax - \let\thm@swap\@gobble - \let\thm@indent\indent % indent - \thm@headfont{\scshape}% heading font small caps - \thm@notefont{\fontseries\mddefault\upshape}% - \thm@headpunct{.}% add period after heading - \thm@headsep 5\p@ plus\p@ minus\p@\relax - \thm@space@setup - #1% style overrides - \@topsep \thm@preskip % used by thm head - \@topsepadd \thm@postskip % used by \@endparenv - \def\@tempa{#2}\ifx\@empty\@tempa - \def\@tempa{\@oparg{\@begintheorem{#3}{}}[]}% - \else - \refstepcounter{#2}% - \def\@tempa{% - \@oparg{\@begintheorem{#3}{\csname the#2\endcsname}}[]% - }% - \fi - \@tempa - }% - \ifx\Hy@temp\@thm - \def\@thm#1#2#3{% - \ifhmode - \unskip\unskip\par - \fi - \normalfont - \trivlist - \let\thmheadnl\relax - \let\thm@swap\@gobble - \let\thm@indent\indent % indent - \thm@headfont{\scshape}% heading font small caps - \thm@notefont{\fontseries\mddefault\upshape}% - \thm@headpunct{.}% add period after heading - \thm@headsep 5\p@ plus\p@ minus\p@\relax - \thm@space@setup - #1% style overrides - \@topsep \thm@preskip % used by thm head - \@topsepadd \thm@postskip % used by \@endparenv - \def\dth@counter{#2}% - \ifx\@empty\dth@counter - \def\@tempa{% - \@oparg{\@begintheorem{#3}{}}[]% - }% - \else - \H@refstepcounter{#2}% - \hyper@makecurrent{#2}% - \let\Hy@dth@currentHref\@currentHref - \def\@tempa{% - \@oparg{\@begintheorem{#3}{\csname the#2\endcsname}}[]% - }% - \fi - \@tempa - }% - \else - \def\@thm#1#2#3{% - \ifhmode - \unskip\unskip\par - \fi - \normalfont - \trivlist - \let\thmheadnl\relax - \let\thm@swap\@gobble - \thm@notefont{\fontseries\mddefault\upshape}% - \thm@headpunct{.}% add period after heading - \thm@headsep 5\p@ plus\p@ minus\p@\relax - \thm@space@setup - #1% style overrides - \@topsep \thm@preskip % used by thm head - \@topsepadd \thm@postskip % used by \@endparenv - \def\dth@counter{#2}% - \ifx\@empty\dth@counter - \def\@tempa{% - \@oparg{\@begintheorem{#3}{}}[]% - }% - \else - \H@refstepcounter{#2}% - \hyper@makecurrent{#2}% - \let\Hy@dth@currentHref\@currentHref - \def\@tempa{% - \@oparg{\@begintheorem{#3}{\csname the#2\endcsname}}[]% - }% - \fi - \@tempa - }% - \fi - \dth@everypar={% - \@minipagefalse - \global\@newlistfalse - \@noparitemfalse - \if@inlabel - \global\@inlabelfalse - \begingroup - \setbox\z@\lastbox - \ifvoid\z@ - \kern-\itemindent - \fi - \endgroup - \ifx\@empty\dth@counter - \else - \Hy@raisedlink{% - \hyper@anchorstart{% - \ltx@ifundefined{Hy@dth@currentHref}% - \@currentHref\Hy@dth@currentHref - }\hyper@anchorend - }% - \fi - \unhbox\@labels - \fi - \if@nobreak - \@nobreakfalse \clubpenalty\@M - \else - \clubpenalty\@clubpenalty \everypar{}% - \fi - }% -}% -{% -\let\Hy@savedthm\@thm -\def\@thm{\ifhmode\unskip\fi\Hy@savedthm}% -}% -}% -} +\newcommand\Hy@theorem@refstepcounter[1] + {% + \H@refstepcounter{#1}% + \hyper@makecurrent{#1}% + \global\let\Hy@dth@currentHref\@currentHref + \AddToHookNext{para/begin} + {\let\Hy@tempa\@currentHref + \MakeLinkTarget*{\Hy@dth@currentHref}% + \global\let\@currentHref\Hy@tempa + }% + } +\AtBeginDocument{% +\ifpatchable\@thm{\refstepcounter} + {\patchcmd\@thm{\refstepcounter}{\Hy@theorem@refstepcounter}{}{}} + {}} \@ifundefined{hyper@nopatch@footnote}{% \ifHy@hyperfootnotes \newcounter{Hfootnote}% @@ -7355,6 +7264,7 @@ \fi }{} \Hy@DisableOption{hyperfootnotes} +\@ifundefined{hyper@nopatch@caption}{% \def\caption{% \ifx\@captype\@undefined \@latex@error{\noexpand\caption outside float}\@ehd @@ -7415,7 +7325,7 @@ \fi \par \endgroup -} +}}{}%end no patch \let\Hy@float@caption\@caption \newcommand{\HyNew@float@makebox}[1]{% \HyOrg@float@makebox{% diff --git a/Master/texmf-dist/tex/latex/hyperref/hypertex.def b/Master/texmf-dist/tex/latex/hyperref/hypertex.def index 5aaa52f6af7..3a1791a2fec 100644 --- a/Master/texmf-dist/tex/latex/hyperref/hypertex.def +++ b/Master/texmf-dist/tex/latex/hyperref/hypertex.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{hypertex.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref driver for HyperTeX specials] \Hy@VersionCheck{hypertex.def} \providecommand*{\XR@ext}{dvi} diff --git a/Master/texmf-dist/tex/latex/hyperref/nohyperref.sty b/Master/texmf-dist/tex/latex/hyperref/nohyperref.sty index 7c5eed054ba..faf74615a7a 100644 --- a/Master/texmf-dist/tex/latex/hyperref/nohyperref.sty +++ b/Master/texmf-dist/tex/latex/hyperref/nohyperref.sty @@ -34,7 +34,7 @@ %% File: hyperref.dtx \NeedsTeXFormat{LaTeX2e}[2020/10/01] \ProvidesPackage{nohyperref} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Dummy hyperref (SR)] \RequirePackage{letltxmacro}[2008/06/13] \let\hyper@@anchor\@gobble diff --git a/Master/texmf-dist/tex/latex/hyperref/pd1enc.def b/Master/texmf-dist/tex/latex/hyperref/pd1enc.def index c2598b2f6d3..a0e9532db41 100644 --- a/Master/texmf-dist/tex/latex/hyperref/pd1enc.def +++ b/Master/texmf-dist/tex/latex/hyperref/pd1enc.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{pd1enc.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref: PDFDocEncoding definition (HO)] \DeclareFontEncoding{PD1}{}{} \DeclareTextAccent{\`}{PD1}{\textasciigrave} diff --git a/Master/texmf-dist/tex/latex/hyperref/pdfmark.def b/Master/texmf-dist/tex/latex/hyperref/pdfmark.def index 194a1d67886..06a880b942f 100644 --- a/Master/texmf-dist/tex/latex/hyperref/pdfmark.def +++ b/Master/texmf-dist/tex/latex/hyperref/pdfmark.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{pdfmark.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref definitions for pdfmark specials] \Hy@VersionCheck{pdfmark.def} \begingroup diff --git a/Master/texmf-dist/tex/latex/hyperref/psdextra.def b/Master/texmf-dist/tex/latex/hyperref/psdextra.def index 06a4f949b3d..f55a81396c8 100644 --- a/Master/texmf-dist/tex/latex/hyperref/psdextra.def +++ b/Master/texmf-dist/tex/latex/hyperref/psdextra.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{psdextra.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref: Additions to PDF string support] \Hy@VersionCheck{psdextra.def} \newcommand*{\psdmapshortnames}{% diff --git a/Master/texmf-dist/tex/latex/hyperref/puarenc.def b/Master/texmf-dist/tex/latex/hyperref/puarenc.def index 62315e5477d..bd76bb52455 100644 --- a/Master/texmf-dist/tex/latex/hyperref/puarenc.def +++ b/Master/texmf-dist/tex/latex/hyperref/puarenc.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{puarenc.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref: Additions to puenc.def for Arabi] \DeclareTextCommand{\hamza}{PU}{\86\041}% U+0621 \DeclareTextCommand{\alefmadda}{PU}{\86\042}% U+0622 diff --git a/Master/texmf-dist/tex/latex/hyperref/puenc-extra.def b/Master/texmf-dist/tex/latex/hyperref/puenc-extra.def index f513ddc6b5f..ed7496997c7 100644 --- a/Master/texmf-dist/tex/latex/hyperref/puenc-extra.def +++ b/Master/texmf-dist/tex/latex/hyperref/puenc-extra.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{puenc-extra.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref: PDF Unicode extra definition (HO)] \DeclareTextCommand{\G}{PU}[1]{#1\83\017}% U+030F \DeclareTextCompositeCommand{\G}{PU}{\@empty}{\textdoublegrave}% diff --git a/Master/texmf-dist/tex/latex/hyperref/puenc-greekbasic.def b/Master/texmf-dist/tex/latex/hyperref/puenc-greekbasic.def index f08e6125e8d..89a03b8c1cd 100644 --- a/Master/texmf-dist/tex/latex/hyperref/puenc-greekbasic.def +++ b/Master/texmf-dist/tex/latex/hyperref/puenc-greekbasic.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{puenc-greekbasic.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref: PDF Unicode definition (greek block) (HO)] \DeclareTextCommand{\textnumeralsigngreek}{PU}{\83\164}% U+0374 \DeclareTextCommand{\textdexiakeraia}{PU}{\83\164}% U+0374 diff --git a/Master/texmf-dist/tex/latex/hyperref/puenc.def b/Master/texmf-dist/tex/latex/hyperref/puenc.def index 27ab0c5b4db..b3afaa0a960 100644 --- a/Master/texmf-dist/tex/latex/hyperref/puenc.def +++ b/Master/texmf-dist/tex/latex/hyperref/puenc.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{puenc.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref: PDF Unicode definition (HO)] \DeclareFontEncoding{PU}{}{} \DeclareTextCommand{\`}{PU}[1]{#1\83\000}% U+0300 diff --git a/Master/texmf-dist/tex/latex/hyperref/puvnenc.def b/Master/texmf-dist/tex/latex/hyperref/puvnenc.def index 3698915dadb..825cd9a325f 100644 --- a/Master/texmf-dist/tex/latex/hyperref/puvnenc.def +++ b/Master/texmf-dist/tex/latex/hyperref/puvnenc.def @@ -33,7 +33,7 @@ %% %% File: hyperref.dtx \ProvidesFile{puvnenc.def} - [2023-02-07 v7.00v % + [2023-04-20 v7.00w % Hyperref: Additions to puenc.def for VnTeX] \DeclareTextCommand{\abreve}{PU}{\81\003}% U+0103 \DeclareTextCommand{\acircumflex}{PU}{\80\342}% U+00E2 diff --git a/Master/texmf-dist/tex/latex/hyperref/xr-hyper.sty b/Master/texmf-dist/tex/latex/hyperref/xr-hyper.sty index af4dcd646a5..6534d0dd343 100644 --- a/Master/texmf-dist/tex/latex/hyperref/xr-hyper.sty +++ b/Master/texmf-dist/tex/latex/hyperref/xr-hyper.sty @@ -61,7 +61,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{xr-hyper} - [2023-02-07 v7.00v eXternal References (DPC)] + [2023-04-20 v7.00w eXternal References (DPC)] \def\externaldocument{\@testopt\XR@cite{}} \let\externalcitedocument\externaldocument -- cgit v1.2.3