This commit is contained in:
Jean-François B 2024-05-17 12:28:50 +02:00 committed by GitHub
parent 43276dcbac
commit a51331c4b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 3 deletions

View File

@ -39,6 +39,9 @@ Bugs fixed
Patch by Matthias Geier. Patch by Matthias Geier.
* #12224: Properly detect WebP files. * #12224: Properly detect WebP files.
Patch by Benjamin Cabé. Patch by Benjamin Cabé.
* #12380: LaTeX: Footnote mark sometimes indicates ``Page N`` where ``N`` is
the current page number and the footnote does appear on that same page.
Patch by Jean-François B.
Testing Testing
------- -------

View File

@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e} \NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{sphinxpackagefootnote}% \ProvidesPackage{sphinxpackagefootnote}%
[2022/08/15 v5.3.0 Sphinx custom footnotehyper package (Sphinx team)] [2024/05/17 v7.3.x Sphinx custom footnotehyper package (Sphinx team)]
%% %%
%% Package: sphinxpackagefootnote %% Package: sphinxpackagefootnote
%% Version: based on footnotehyper.sty 2021/02/04 v1.1d %% Version: based on footnotehyper.sty 2021/02/04 v1.1d
@ -409,9 +409,10 @@
{\gdef\@thefnmark{?}% on first LaTeX run {\gdef\@thefnmark{?}% on first LaTeX run
\refstepcounter{sphinxfootnotemark}\label{footnotemark.\thesphinxfootnotemark}% \refstepcounter{sphinxfootnotemark}\label{footnotemark.\thesphinxfootnotemark}%
}% }%
{\sphinx@xdef@thefnmark{#1}% also defines \spx@footrefHref {\def\@makefnmark{% will be used by \H@@footnotemark
\def\@makefnmark{% will be used by \H@@footnotemark
\refstepcounter{sphinxfootnotemark}\label{footnotemark.\thesphinxfootnotemark}% \refstepcounter{sphinxfootnotemark}\label{footnotemark.\thesphinxfootnotemark}%
\sphinx@xdef@thefnmark{#1}% also defines \spx@footrefHref
% must be executed after \refstepcounter
\hyper@linkstart{link}{\spx@footrefHref}% \hyper@linkstart{link}{\spx@footrefHref}%
\spx@saved@makefnmark \spx@saved@makefnmark
\hyper@linkend \hyper@linkend