diff options
author | Karl Berry <karl@freefriends.org> | 2022-09-23 20:44:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-09-23 20:44:10 +0000 |
commit | 588eb7dcbde9a8731ec174e8757671f7c1a506a1 (patch) | |
tree | 3fa21412256bb317d075c5412e4b7923c9bfca45 | |
parent | 2c506ca596e9c8598802c0f25e00dc264d770d83 (diff) |
hyperref (23sep22)
git-svn-id: svn://tug.org/texlive/trunk@64488 c570f23f-e606-0410-a88d-b1316a301751
37 files changed, 280 insertions, 204 deletions
diff --git a/Master/texmf-dist/doc/latex/hyperref/README.md b/Master/texmf-dist/doc/latex/hyperref/README.md index 7efd675aba1..71ecefab3e9 100644 --- a/Master/texmf-dist/doc/latex/hyperref/README.md +++ b/Master/texmf-dist/doc/latex/hyperref/README.md @@ -1,6 +1,6 @@ # README for hyperref bundle -Version 2022-06-20 v7.00s +Version 2022-09-22 v7.00t ## INTRODUCTION diff --git a/Master/texmf-dist/doc/latex/hyperref/backref.pdf b/Master/texmf-dist/doc/latex/hyperref/backref.pdf Binary files differindex f6d933dc983..0f2ad5cc10b 100644 --- a/Master/texmf-dist/doc/latex/hyperref/backref.pdf +++ b/Master/texmf-dist/doc/latex/hyperref/backref.pdf diff --git a/Master/texmf-dist/doc/latex/hyperref/hyperref-doc.html b/Master/texmf-dist/doc/latex/hyperref/hyperref-doc.html index fe11247a9f7..aee3f8ddd21 100644 --- a/Master/texmf-dist/doc/latex/hyperref/hyperref-doc.html +++ b/Master/texmf-dist/doc/latex/hyperref/hyperref-doc.html @@ -25,7 +25,7 @@ href="https://github.com/latex3/hyperref/issues" class="url" ><span class="ec-lmvtt-10x-x-120">https://github.com/latex3/hyperref/issues</span></a><span class="ec-lmr-12">)</span></div><br /> <div class="date" ><span -class="ec-lmr-12">2022-06-20 v7.00s</span></div> +class="ec-lmr-12">2022-09-22 v7.00t</span></div> </div> <h3 class="likesectionHead"><a id="x1-1000"></a>Contents</h3> @@ -4111,7 +4111,7 @@ class="ec-lmvtt-10">}</span></span></span> </td> <!--l. 1274--><p class="noindent" >The <span class="ec-lmri-10">text </span>is made a hyperlink to the <span class="ec-lmri-10">URL</span>; this must be a full URL (relative to the base URL, if that is -defined). The special characters # and ˜ do <span +defined). The special characters # and % do <span class="ec-lmri-10">not </span>need to be escaped in any way (unless the command is used in the argument of another command). <!--l. 1279--><p class="indent" > The optional argument <span diff --git a/Master/texmf-dist/doc/latex/hyperref/hyperref-doc.pdf b/Master/texmf-dist/doc/latex/hyperref/hyperref-doc.pdf Binary files differindex 73a527cfb7d..b9244c8f3f3 100644 --- a/Master/texmf-dist/doc/latex/hyperref/hyperref-doc.pdf +++ b/Master/texmf-dist/doc/latex/hyperref/hyperref-doc.pdf diff --git a/Master/texmf-dist/doc/latex/hyperref/hyperref-doc.tex b/Master/texmf-dist/doc/latex/hyperref/hyperref-doc.tex index f73be90ac43..1cc482538b2 100644 --- a/Master/texmf-dist/doc/latex/hyperref/hyperref-doc.tex +++ b/Master/texmf-dist/doc/latex/hyperref/hyperref-doc.tex @@ -166,7 +166,7 @@ } \makeatother \title{Hypertext marks in \hologo{LaTeX}: a manual for \xpackage{hyperref}} -\date{2022-06-20 v7.00s} +\date{2022-09-22 v7.00t} \begin{document} @@ -401,31 +401,31 @@ which are used in toc like lists and \cs{addcontentsline}. Typical values are \end{description} -\subsection{Values of package and \cs{hypersetup} options} +\subsection{Values of package and \cs{hypersetup} options} When\marginpar{\tiny New in version 7.00s} a key is set either in the package options or with -\cs{hypersetup} \xpackage{hyperref} typically +\cs{hypersetup} \xpackage{hyperref} typically stores the result in internal variables, or executes some -code or sets a internal boolean. +code or sets a internal boolean. Package and class authors should here \emph{not} rely on -the names or the details of the key processing. +the names or the details of the key processing. But as other packages sometimes need to know which value has been set, some values can be retrieved with the expandable -\cs{GetDocumentProperties}. The values are given back +\cs{GetDocumentProperties}. The values are given back surrounded by \cs{exp\_not:n}, so can be used safely in an \cs{edef}. -So for example to get the pdfauthor you can do. +So for example to get the pdfauthor you can do. \begin{verbatim} \edef\mypdfauthor{\GetDocumentProperties{hyperref/pdfauthor}} \end{verbatim} The values are given back as entered by the user! If they should be used in a PDF context -\cs{pdfstringdef} or something equivalent must still be applied. +\cs{pdfstringdef} or something equivalent must still be applied. -Currently this interface can be used for the keys \texttt{pdfauthor}, \texttt{pdftitle}, +Currently this interface can be used for the keys \texttt{pdfauthor}, \texttt{pdftitle}, \texttt{pdfproducer}, -\texttt{pdfcreator}, \texttt{pdfsubject} and \texttt{pdfkeywords}. +\texttt{pdfcreator}, \texttt{pdfsubject} and \texttt{pdfkeywords}. If used with a unknown key an empty value is returned. The interface works also if the new PDF management is loaded with \cs{DocumentMetadata}, in this case more keys gives back their value. @@ -1273,7 +1273,7 @@ following low-level user macros are provided: \noindent The \emph{text} is made a hyperlink to the \emph{URL}; this must be a full URL (relative to the base URL, if that is defined). The -special characters \# and \~{} do \emph{not} need to be escaped in any +special characters \# and \%{} do \emph{not} need to be escaped in any way (unless the command is used in the argument of another command). The optional argument \emph{options} recognizes the hyperref options diff --git a/Master/texmf-dist/doc/latex/hyperref/hyperref-linktarget.pdf b/Master/texmf-dist/doc/latex/hyperref/hyperref-linktarget.pdf Binary files differindex 1bef8d1a4e2..44cc9b0b06a 100644 --- a/Master/texmf-dist/doc/latex/hyperref/hyperref-linktarget.pdf +++ b/Master/texmf-dist/doc/latex/hyperref/hyperref-linktarget.pdf diff --git a/Master/texmf-dist/doc/latex/hyperref/hyperref.pdf b/Master/texmf-dist/doc/latex/hyperref/hyperref.pdf Binary files differindex 0662cf87b04..b52703cc402 100644 --- a/Master/texmf-dist/doc/latex/hyperref/hyperref.pdf +++ b/Master/texmf-dist/doc/latex/hyperref/hyperref.pdf diff --git a/Master/texmf-dist/doc/latex/hyperref/nameref.pdf b/Master/texmf-dist/doc/latex/hyperref/nameref.pdf Binary files differindex 6cf129cde94..420f41424e1 100644 --- a/Master/texmf-dist/doc/latex/hyperref/nameref.pdf +++ b/Master/texmf-dist/doc/latex/hyperref/nameref.pdf diff --git a/Master/texmf-dist/source/latex/hyperref/hluatex.dtx b/Master/texmf-dist/source/latex/hyperref/hluatex.dtx index 765a9c19a95..3675cd0cec2 100644 --- a/Master/texmf-dist/source/latex/hyperref/hluatex.dtx +++ b/Master/texmf-dist/source/latex/hyperref/hluatex.dtx @@ -1,6 +1,6 @@ % \iffalse % Source File: hluatex.dtx -% 2022-06-20 v7.00s +% 2022-09-22 v7.00t % % Copyright % 2016-2019 Oberdiek Package Support Group @@ -31,7 +31,7 @@ % % \begin{macrocode} %<*luatex> -%% 2022-06-20 v7.00s +%% 2022-09-22 v7.00t %% force unicode encoding, see issue #101 %% code mostly copied from hxetex.def \HyPsd@LoadUnicode @@ -751,10 +751,26 @@ \fi }{% \ifdim\stockwidth>\z@ - \setlength{\pagewidth}{\stockwidth}% - \fi - \ifdim\stockheight>\z@ - \setlength{\pageheight}{\stockheight}% + \ifdim\stockheight>\z@ + \setlength{\pagewidth}{\stockwidth}% + \setlength{\pageheight}{\stockheight}% + \else + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \setlength{\pagewidth}{\paperwidth}% + \setlength{\pageheight}{\paperheight}% + \fi + \fi + \fi + \else + \ifdim\stockwidth=\z@ + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \setlength{\pagewidth}{\paperwidth}% + \setlength{\pageheight}{\paperheight}% + \fi + \fi + \fi \fi }% }% diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref-linktarget.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref-linktarget.dtx index cd0557bcdb0..d31a2009e2e 100644 --- a/Master/texmf-dist/source/latex/hyperref/hyperref-linktarget.dtx +++ b/Master/texmf-dist/source/latex/hyperref/hyperref-linktarget.dtx @@ -53,7 +53,7 @@ % }^^A % } % -% \date{Version v7.00s, released 2022-06-20} +% \date{Version 2022-09-22 v7.00t} % % \maketitle % \begin{documentation} diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref-patches.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref-patches.dtx index 446493224c6..ebe25f7f623 100644 --- a/Master/texmf-dist/source/latex/hyperref/hyperref-patches.dtx +++ b/Master/texmf-dist/source/latex/hyperref/hyperref-patches.dtx @@ -55,7 +55,7 @@ % }^^A % } % -% \date{Version 0.9, released 2021-06-29} +% \date{Version 2022-09-22 v7.00t} % % \maketitle % \begin{documentation} diff --git a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx index 6baf1e54804..fb6aefd9b2e 100644 --- a/Master/texmf-dist/source/latex/hyperref/hyperref.dtx +++ b/Master/texmf-dist/source/latex/hyperref/hyperref.dtx @@ -52,7 +52,7 @@ %<puvnenc>\ProvidesFile{puvnenc.def} %<puarenc>\ProvidesFile{puarenc.def} %<psdextra>\ProvidesFile{psdextra.def} -%<!none&!packageEnd> [2022-06-20 v7.00s % +%<!none&!packageEnd> [2022-09-22 v7.00t % %<package> Hypertext links for LaTeX] %<nohyperref> Dummy hyperref (SR)] %<driver> Hyperref documentation driver file] @@ -6696,7 +6696,7 @@ \def\HyperDestNameFilter#1{#1} \Hy@AtBeginDocument{% \begingroup - \edef\x{\@ifundefined{stockheight}\paperheight\stockheight}% + \edef\x{\ifdim\stockheight>\z@ \stockheight\else\paperheight\fi}% \dimen@=\x\relax \ifdim\dimen@>\z@ \else @@ -6985,6 +6985,11 @@ % \end{macrocode} % % \subsubsection{Driver loading} +% Ensure that |\stockwidth| and |\stockheight| are defined +% \begin{macrocode} +\@ifundefined{stockwidth}{\newdimen\stockwidth}{} +\@ifundefined{stockheight}{\newdimen\stockheight}{} +% \end{macrocode} % % \begin{macrocode} \Hy@AtEndOfPackage{% @@ -8235,9 +8240,10 @@ % Provide a dummy default definition of \cs{hyper@newdestlabel} % inside the .aux files. % \begin{macrocode} -\AddLineBeginAux{% - \string\providecommand\string\hyper@newdestlabel[2]{}% -} +\AddToHook{include/before} + {\immediate\write\@partaux{\string\providecommand\string\hyper@newdestlabel[2]{}}} +\AddToHook{begindocument} + {\immediate\write\@mainaux{\string\providecommand\string\hyper@newdestlabel[2]{}}} % \end{macrocode} % % \section{Forms creation} @@ -12704,15 +12710,7 @@ \fi \fi } -\@ifpackageloaded{showkeys}{% - \HyRef@ShowKeysInit -}{% - \Hy@AtBeginDocument{% - \@ifpackageloaded{showkeys}{% - \HyRef@ShowKeysInit - }{}% - }% -} +\AddToHook{package/showkeys/after}{\HyRef@ShowKeysInit} % \end{macrocode} % \end{macro} % @@ -13529,21 +13527,28 @@ \fi \fi }{% - \ltx@IfUndefined{stockwidth}{% - \ifdim\paperwidth>\z@ - \setlength{\pdfpagewidth}{\paperwidth}% - \fi - \ifdim\paperheight>\z@ - \setlength{\pdfpageheight}{\paperheight}% - \fi - }{% - \ifdim\stockwidth>\z@ - \setlength{\pdfpagewidth}{\stockwidth}% - \fi + \ifdim\stockwidth>\z@ \ifdim\stockheight>\z@ - \setlength{\pdfpageheight}{\stockheight}% + \setlength{\pdfpagewidth}{\stockwidth}% + \setlength{\pdfpageheight}{\stockheight}% + \else + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \setlength{\pdfpagewidth}{\paperwidth}% + \setlength{\pdfpageheight}{\paperheight}% + \fi + \fi \fi - }% + \else + \ifdim\stockwidth=\z@ + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \setlength{\pdfpagewidth}{\paperwidth}% + \setlength{\pdfpageheight}{\paperheight}% + \fi + \fi + \fi + \fi }% }% \Hy@DisableOption{setpagesize}% @@ -14595,19 +14600,25 @@ \AtBeginShipoutFirst{% \ifHy@setpagesize \begingroup - \@ifundefined{stockwidth}{% - \ifdim\paperwidth>\z@ - \ifdim\paperheight>\z@ - \special{papersize=\the\paperwidth,\the\paperheight}% + \ifdim\stockwidth>\z@ + \ifdim\stockheight>\z@ + \special{papersize=\the\stockwidth,\the\stockheight}% + \else + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \special{papersize=\the\paperwidth,\the\paperheight}% + \fi \fi \fi - }{% - \ifdim\stockwidth>\z@ - \ifdim\stockheight>\z@ - \special{papersize=\the\stockwidth,\the\stockheight}% + \else + \ifdim\stockwidth=\z@ + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \special{papersize=\the\paperwidth,\the\paperheight}% + \fi \fi \fi - }% + \fi \endgroup \fi \Hy@DisableOption{setpagesize}% @@ -14743,32 +14754,35 @@ % it avoids the definition and the hash table entry of a % previous undefined macro. % \begin{macrocode} -\ifx\mediaheight\@undefined -\else - \ifx\mediaheight\relax - \else - \ifHy@setpagesize - \providecommand*{\VTeXInitMediaSize}{% - \ltx@IfUndefined{stockwidth}{% - \ifdim\paperheight>0pt % - \setlength\mediaheight\paperheight - \fi - \ifdim\paperheight>0pt % - \setlength\mediawidth\paperwidth - \fi - }{% - \ifdim\stockheight>0pt % - \setlength\mediaheight\stockheight - \fi - \ifdim\stockwidth>0pt % - \setlength\mediawidth\stockwidth - \fi - }% - }% - \Hy@AtBeginDocument{\VTeXInitMediaSize}% - \fi - \Hy@DisableOption{setpagesize}% +\ifcsname mediaheight\endcsname + \ifHy@setpagesize + \providecommand*{\VTeXInitMediaSize}{% + \ifdim\stockwidth>\z@ + \ifdim\stockheight>\z@ + \setlength\mediaheight\stockheight + \setlength\mediawidth\stockwidth + \else + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \setlength\mediaheight\paperheight + \setlength\mediawidth\paperwidth + \fi + \fi + \fi + \else + \ifdim\stockwidth=\z@ + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \setlength\mediaheight\paperheight + \setlength\mediawidth\paperwidth + \fi + \fi + \fi + \fi + }% + \Hy@AtBeginDocument{\VTeXInitMediaSize}% \fi + \Hy@DisableOption{setpagesize}% \fi % \end{macrocode} % Older versions of VTeX require |xyz| in lower case. @@ -16395,19 +16409,25 @@ \AtBeginShipoutFirst{% \ifHy@setpagesize \begingroup - \@ifundefined{stockwidth}{% - \ifdim\paperwidth>\z@ - \ifdim\paperheight>\z@ - \special{papersize=\the\paperwidth,\the\paperheight}% + \ifdim\stockwidth>\z@ + \ifdim\stockheight>\z@ + \special{papersize=\the\stockwidth,\the\stockheight}% + \else + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \special{papersize=\the\paperwidth,\the\paperheight}% + \fi \fi \fi - }{% - \ifdim\stockwidth>\z@ - \ifdim\stockheight>\z@ - \special{papersize=\the\stockwidth,\the\stockheight}% + \else + \ifdim\stockwidth=\z@ + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \special{papersize=\the\paperwidth,\the\paperheight}% + \fi \fi \fi - }% + \fi \endgroup \fi \Hy@DisableOption{setpagesize}% diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def b/Master/texmf-dist/tex/latex/hyperref/hdvipdfm.def index 9528eca92fb..945b05ab5a8 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % Hyperref driver for dvipdfm] \Hy@VersionCheck{hdvipdfm.def} \special{pdf:majorversion \Hy@pdf@majorversion} @@ -632,19 +632,25 @@ \AtBeginShipoutFirst{% \ifHy@setpagesize \begingroup - \@ifundefined{stockwidth}{% - \ifdim\paperwidth>\z@ - \ifdim\paperheight>\z@ - \special{papersize=\the\paperwidth,\the\paperheight}% + \ifdim\stockwidth>\z@ + \ifdim\stockheight>\z@ + \special{papersize=\the\stockwidth,\the\stockheight}% + \else + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \special{papersize=\the\paperwidth,\the\paperheight}% + \fi \fi \fi - }{% - \ifdim\stockwidth>\z@ - \ifdim\stockheight>\z@ - \special{papersize=\the\stockwidth,\the\stockheight}% + \else + \ifdim\stockwidth=\z@ + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \special{papersize=\the\paperwidth,\the\paperheight}% + \fi \fi \fi - }% + \fi \endgroup \fi \Hy@DisableOption{setpagesize}% diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvips.def b/Master/texmf-dist/tex/latex/hyperref/hdvips.def index 307e090166f..04e2d4e4050 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % Hyperref driver for dvips] \Hy@VersionCheck{hdvips.def} \providecommand*{\XR@ext}{pdf} @@ -103,19 +103,25 @@ \AtBeginShipoutFirst{% \ifHy@setpagesize \begingroup - \@ifundefined{stockwidth}{% - \ifdim\paperwidth>\z@ - \ifdim\paperheight>\z@ - \special{papersize=\the\paperwidth,\the\paperheight}% + \ifdim\stockwidth>\z@ + \ifdim\stockheight>\z@ + \special{papersize=\the\stockwidth,\the\stockheight}% + \else + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \special{papersize=\the\paperwidth,\the\paperheight}% + \fi \fi \fi - }{% - \ifdim\stockwidth>\z@ - \ifdim\stockheight>\z@ - \special{papersize=\the\stockwidth,\the\stockheight}% + \else + \ifdim\stockwidth=\z@ + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \special{papersize=\the\paperwidth,\the\paperheight}% + \fi \fi \fi - }% + \fi \endgroup \fi \Hy@DisableOption{setpagesize}% diff --git a/Master/texmf-dist/tex/latex/hyperref/hdvipson.def b/Master/texmf-dist/tex/latex/hyperref/hdvipson.def index 5f5c59239f1..c9d2c1c83c1 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 cb458c29697..8a7cfd455d7 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 b3260186835..b6fff08e7d0 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % Hyperref driver for luaTeX] \Hy@VersionCheck{hluatex.def} -%% 2022-06-20 v7.00s +%% 2022-09-22 v7.00t %% force unicode encoding, see issue #101 %% code mostly copied from hxetex.def \HyPsd@LoadUnicode @@ -754,10 +754,26 @@ \fi }{% \ifdim\stockwidth>\z@ - \setlength{\pagewidth}{\stockwidth}% - \fi - \ifdim\stockheight>\z@ - \setlength{\pageheight}{\stockheight}% + \ifdim\stockheight>\z@ + \setlength{\pagewidth}{\stockwidth}% + \setlength{\pageheight}{\stockheight}% + \else + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \setlength{\pagewidth}{\paperwidth}% + \setlength{\pageheight}{\paperheight}% + \fi + \fi + \fi + \else + \ifdim\stockwidth=\z@ + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \setlength{\pagewidth}{\paperwidth}% + \setlength{\pageheight}{\paperheight}% + \fi + \fi + \fi \fi }% }% diff --git a/Master/texmf-dist/tex/latex/hyperref/hpdftex.def b/Master/texmf-dist/tex/latex/hyperref/hpdftex.def index 9e8c360f55b..64ad0b5a26c 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % Hyperref driver for pdfTeX] \Hy@VersionCheck{hpdftex.def} \pdf@ifdraftmode{% @@ -701,21 +701,28 @@ \fi \fi }{% - \ltx@IfUndefined{stockwidth}{% - \ifdim\paperwidth>\z@ - \setlength{\pdfpagewidth}{\paperwidth}% - \fi - \ifdim\paperheight>\z@ - \setlength{\pdfpageheight}{\paperheight}% - \fi - }{% - \ifdim\stockwidth>\z@ - \setlength{\pdfpagewidth}{\stockwidth}% - \fi + \ifdim\stockwidth>\z@ \ifdim\stockheight>\z@ - \setlength{\pdfpageheight}{\stockheight}% + \setlength{\pdfpagewidth}{\stockwidth}% + \setlength{\pdfpageheight}{\stockheight}% + \else + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \setlength{\pdfpagewidth}{\paperwidth}% + \setlength{\pdfpageheight}{\paperheight}% + \fi + \fi \fi - }% + \else + \ifdim\stockwidth=\z@ + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \setlength{\pdfpagewidth}{\paperwidth}% + \setlength{\pdfpageheight}{\paperheight}% + \fi + \fi + \fi + \fi }% }% \Hy@DisableOption{setpagesize}% diff --git a/Master/texmf-dist/tex/latex/hyperref/htex4ht.cfg b/Master/texmf-dist/tex/latex/hyperref/htex4ht.cfg index 744af27ce7f..dfb22dd1eb1 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 884c54492b8..e3cedecd6a6 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 14474dea32e..aa7aca64d69 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 a2cfe00a656..28633fcc085 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % Hyperref driver for VTeX in PDF/PS mode] \Hy@VersionCheck{hvtex.def} \providecommand*{\XR@ext}{pdf} @@ -137,32 +137,35 @@ \let#1\Hy@gtemp }% \fi -\ifx\mediaheight\@undefined -\else - \ifx\mediaheight\relax - \else - \ifHy@setpagesize - \providecommand*{\VTeXInitMediaSize}{% - \ltx@IfUndefined{stockwidth}{% - \ifdim\paperheight>0pt % - \setlength\mediaheight\paperheight - \fi - \ifdim\paperheight>0pt % - \setlength\mediawidth\paperwidth - \fi - }{% - \ifdim\stockheight>0pt % - \setlength\mediaheight\stockheight - \fi - \ifdim\stockwidth>0pt % - \setlength\mediawidth\stockwidth - \fi - }% - }% - \Hy@AtBeginDocument{\VTeXInitMediaSize}% - \fi - \Hy@DisableOption{setpagesize}% +\ifcsname mediaheight\endcsname + \ifHy@setpagesize + \providecommand*{\VTeXInitMediaSize}{% + \ifdim\stockwidth>\z@ + \ifdim\stockheight>\z@ + \setlength\mediaheight\stockheight + \setlength\mediawidth\stockwidth + \else + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \setlength\mediaheight\paperheight + \setlength\mediawidth\paperwidth + \fi + \fi + \fi + \else + \ifdim\stockwidth=\z@ + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \setlength\mediaheight\paperheight + \setlength\mediawidth\paperwidth + \fi + \fi + \fi + \fi + }% + \Hy@AtBeginDocument{\VTeXInitMediaSize}% \fi + \Hy@DisableOption{setpagesize}% \fi \providecommand*\@pdfview{xyz} \providecommand*\@pdfborder{0 0 1} diff --git a/Master/texmf-dist/tex/latex/hyperref/hvtexhtm.def b/Master/texmf-dist/tex/latex/hyperref/hvtexhtm.def index 9df9fd2a69a..eb5f769ed40 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 2618d13df3f..847650b4a53 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 78c34f308b4..cf1271a3606 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % Hyperref driver for XeTeX] \Hy@VersionCheck{hxetex.def} \HyPsd@LoadUnicode @@ -195,21 +195,28 @@ \fi \fi }{% - \ltx@IfUndefined{stockwidth}{% - \ifdim\paperwidth>\z@ - \setlength{\pdfpagewidth}{\paperwidth}% - \fi - \ifdim\paperheight>\z@ - \setlength{\pdfpageheight}{\paperheight}% - \fi - }{% - \ifdim\stockwidth>\z@ - \setlength{\pdfpagewidth}{\stockwidth}% - \fi + \ifdim\stockwidth>\z@ \ifdim\stockheight>\z@ - \setlength{\pdfpageheight}{\stockheight}% + \setlength{\pdfpagewidth}{\stockwidth}% + \setlength{\pdfpageheight}{\stockheight}% + \else + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \setlength{\pdfpagewidth}{\paperwidth}% + \setlength{\pdfpageheight}{\paperheight}% + \fi + \fi \fi - }% + \else + \ifdim\stockwidth=\z@ + \ifdim\paperwidth>\z@ + \ifdim\paperheight>\z@ + \setlength{\pdfpagewidth}{\paperwidth}% + \setlength{\pdfpageheight}{\paperheight}% + \fi + \fi + \fi + \fi }% }% \Hy@DisableOption{setpagesize}% diff --git a/Master/texmf-dist/tex/latex/hyperref/hyperref.sty b/Master/texmf-dist/tex/latex/hyperref/hyperref.sty index d2633ce051c..f4259a97cae 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % Hypertext links for LaTeX] \begingroup \@makeother\`% @@ -3978,7 +3978,7 @@ \def\HyperDestNameFilter#1{#1} \Hy@AtBeginDocument{% \begingroup - \edef\x{\@ifundefined{stockheight}\paperheight\stockheight}% + \edef\x{\ifdim\stockheight>\z@ \stockheight\else\paperheight\fi}% \dimen@=\x\relax \ifdim\dimen@>\z@ \else @@ -4207,6 +4207,8 @@ }% \fi \Hy@DisableOption{implicit} +\@ifundefined{stockwidth}{\newdimen\stockwidth}{} +\@ifundefined{stockheight}{\newdimen\stockheight}{} \Hy@AtEndOfPackage{% \@ifpackageloaded{tex4ht}{% \def\Hy@driver{htex4ht}% @@ -5161,9 +5163,10 @@ \let\HyperDestRename\ltx@gobbletwo \fi \Hy@DisableOption{destlabel} -\AddLineBeginAux{% - \string\providecommand\string\hyper@newdestlabel[2]{}% -} +\AddToHook{include/before} + {\immediate\write\@partaux{\string\providecommand\string\hyper@newdestlabel[2]{}}} +\AddToHook{begindocument} + {\immediate\write\@mainaux{\string\providecommand\string\hyper@newdestlabel[2]{}}} \RequirePackage{bitset} \def\HyField@NewFlag#1#2{% \lowercase{\HyField@NewOption{#2}}% @@ -8286,15 +8289,7 @@ \fi \fi } -\@ifpackageloaded{showkeys}{% - \HyRef@ShowKeysInit -}{% - \Hy@AtBeginDocument{% - \@ifpackageloaded{showkeys}{% - \HyRef@ShowKeysInit - }{}% - }% -} +\AddToHook{package/showkeys/after}{\HyRef@ShowKeysInit} \providecommand*\AMSautorefname{\equationautorefname} \providecommand*\Hfootnoteautorefname{\footnoteautorefname} \providecommand*\Itemautorefname{\itemautorefname} diff --git a/Master/texmf-dist/tex/latex/hyperref/hypertex.def b/Master/texmf-dist/tex/latex/hyperref/hypertex.def index bb791947dbd..8bfbc5fc75a 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 04835ed19c6..e544b43458b 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 53d977f622e..1264f515f46 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 a6eac19ed29..dd7e9b4e4af 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 aabff197220..bec1f0ca9fc 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 6befa6ac22d..1ed51dddb28 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 1179af4c77a..96391c56329 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 a7e0e52e8af..d91aa9bd21c 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 535a16f3d18..46079137a1b 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 a2a68ff9dd3..2fc45dc0bc8 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} - [2022-06-20 v7.00s % + [2022-09-22 v7.00t % 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 fecbdeca12a..9472448b3a2 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} - [2022-06-20 v7.00s eXternal References (DPC)] + [2022-09-22 v7.00t eXternal References (DPC)] \def\externaldocument{\@testopt\XR@cite{}} \let\externalcitedocument\externaldocument |