|
4 | 4 | % 1995-2001 Sebastian Rahtz, with portions written by David Carlisle and Heiko Oberdiek, |
5 | 5 | % 2001-2015 Heiko Oberdiek. |
6 | 6 | % 2016-2019 Oberdiek Package Support Group |
7 | | -% 2019-2024 LaTeX Project |
| 7 | +% 2019-2025 LaTeX Project |
8 | 8 | % https://github.com/latex3/hyperref/issues |
9 | 9 | % |
10 | 10 | % This file is part of the `Hyperref Bundle'. |
|
51 | 51 | %<puvnenc>\ProvidesFile{puvnenc.def} |
52 | 52 | %<puarenc>\ProvidesFile{puarenc.def} |
53 | 53 | %<psdextra>\ProvidesFile{psdextra.def} |
54 | | -%<!none&!packageEnd> [2024-11-05 v7.01l % |
| 54 | +%<!none&!packageEnd> [2025-05-20 v7.01m % |
55 | 55 | %<package> Hypertext links for LaTeX] |
56 | 56 | %<nohyperref> Dummy hyperref (SR)] |
57 | 57 | %<driver> Hyperref documentation driver file] |
|
9683 | 9683 | \let\Hy@EveryPageHook\@empty |
9684 | 9684 | \let\Hy@EveryPageBoxHook\@empty |
9685 | 9685 | \let\Hy@FirstPageHook\@empty |
9686 | | -\AtBeginShipout{% |
| 9686 | +\AddToHook{shipout/before}{% |
9687 | 9687 | \Hy@EveryPageHook |
9688 | 9688 | \ifx\Hy@EveryPageBoxHook\@empty |
9689 | 9689 | \else |
9690 | | - \setbox\AtBeginShipoutBox=\vbox{% |
| 9690 | + \setbox\ShipoutBox=\vbox{% |
9691 | 9691 | \offinterlineskip |
9692 | 9692 | \Hy@EveryPageBoxHook |
9693 | | - \box\AtBeginShipoutBox |
| 9693 | + \box\ShipoutBox |
9694 | 9694 | }% |
9695 | 9695 | \fi |
9696 | 9696 | } |
9697 | 9697 | \Hy@iffileloaded{hpdftex.def}{% |
9698 | | - \AtBeginShipout{% |
| 9698 | + \AddToHook{shipout/before}{% |
9699 | 9699 | \Hy@FirstPageHook |
9700 | 9700 | \global\let\Hy@FirstPageHook\@empty |
9701 | 9701 | }% |
@@ -10074,13 +10074,12 @@ |
10074 | 10074 | % \end{macrocode} |
10075 | 10075 | % \end{macro} |
10076 | 10076 | % |
10077 | | -% Package \textsf{atveryend} is used to get behind the |
| 10077 | +% The \texttt{enddocument/afteraux} hook is used to get behind the |
10078 | 10078 | % final \cs{clearpage} and to avoid a \cs{clearpage} |
10079 | 10079 | % in \cs{AtEndDocument}. |
10080 | 10080 | % Then the PDF catalog entry for |\PageLabels| is set. |
10081 | | -% \begin{macrocode} |
10082 | | - \RequirePackage{atveryend}[2009/12/07]% |
10083 | | - \AtVeryEndDocument{% |
| 10081 | +% \begin{macrocode} |
| 10082 | + \AddToHook{enddocument/afteraux}{% |
10084 | 10083 | \HyPL@SetPageLabels |
10085 | 10084 | }% |
10086 | 10085 | % \end{macrocode} |
|
14231 | 14230 | >>% |
14232 | 14231 | >>% |
14233 | 14232 | }% |
14234 | | - \AtBeginShipout{% |
14235 | | - \setbox\AtBeginShipoutBox=\hbox{% |
14236 | | - \copy\AtBeginShipoutBox |
| 14233 | + \AddToHook{shipout/before}{% |
| 14234 | + \setbox\ShipoutBox=\hbox{% |
| 14235 | + \copy\ShipoutBox |
14237 | 14236 | \@pdfm@mark{% |
14238 | 14237 | put @resources <<% |
14239 | 14238 | /Properties<<% |
|
14337 | 14336 | \def\hyper@link#1#2#3{% |
14338 | 14337 | \hyper@linkstart{#1}{#2}#3\Hy@xspace@end\hyper@linkend |
14339 | 14338 | } |
| 14339 | +% \end{macrocode} |
| 14340 | +% 2025-05-20 added a group for issue \#380 |
| 14341 | +% \begin{macrocode} |
14340 | 14342 | \def\hyper@linkfile#1#2#3{% |
14341 | 14343 | \leavevmode |
| 14344 | + \begingroup |
14342 | 14345 | \Hy@BeginAnnot{% |
14343 | 14346 | \def\Hy@pstringF{#2}% |
14344 | 14347 | \Hy@CleanupFile\Hy@pstringF |
|
14374 | 14377 | }% |
14375 | 14378 | #1\Hy@xspace@end |
14376 | 14379 | \Hy@EndAnnot |
| 14380 | + \endgroup |
14377 | 14381 | } |
14378 | 14382 | \def\@hyper@launch run:#1\\#2#3{% filename, anchor text linkname |
14379 | 14383 | \leavevmode |
|
18010 | 18014 | \pdfrefobj\OBJ@ZaDb |
18011 | 18015 | \pdfrefobj\OBJ@Helv |
18012 | 18016 | \fi |
18013 | | - \AtVeryEndDocument{% |
| 18017 | + \AddToHook{enddocument/afteraux}{% |
18014 | 18018 | \immediate\pdfobj{% |
18015 | 18019 | <<% |
18016 | 18020 | /Fields[\HyField@afields]% |
|
23358 | 23362 | % U+2207 NABLA; nabla, gradient; \nabla (LaTeX) |
23359 | 23363 | \DeclareTextCommand{\textnabla}{PU}{\9042\007}%* U+2207 |
23360 | 23364 | % U+2208 ELEMENT OF; element; \in (LaTeX) |
23361 | | -\DeclareTextCommand{\textin}{PU}{\9042\010}%* U+2208 |
| 23365 | +\DeclareTextCommand{\textinsymbol}{PU}{\9042\010}%* U+2208 |
23362 | 23366 | % U+2209 NOT AN ELEMENT OF; notelement, notelementof; \notin (LaTeX) |
23363 | 23367 | \DeclareTextCommand{\textnotin}{PU}{\9042\011}%* U+2209 |
23364 | 23368 | % U+220A SMALL ELEMENT OF; \smallin (mathdesign) |
|
25735 | 25739 | \let\emptyset\textemptyset |
25736 | 25740 | \let\triangle\texttriangle |
25737 | 25741 | \let\nabla\textnabla |
25738 | | - \let\in\textin |
| 25742 | + \let\in\textinsymbol |
25739 | 25743 | \let\notin\textnotin |
25740 | 25744 | \let\smallin\textsmallin |
25741 | 25745 | \let\ni\textni |
|
0 commit comments