diff --git a/CHANGES b/CHANGES index 25f3cb0b4e0..e1eb530acde 100644 --- a/CHANGES +++ b/CHANGES @@ -35,10 +35,10 @@ Bugs fixed * #9924: LaTeX: multi-line :rst:dir:`cpp:function` directive has big vertical spacing in Latexpdf * #10158: LaTeX: excessive whitespace since v4.4.0 for undocumented - variables/structure members + variables/structure members * #10175: LaTeX: named footnote reference is linked to an incorrect footnote if the name is also used in the different document -* #10188: LaTeX: alternating multiply referred footnotes produce a ``?`` in +* #10188: LaTeX: alternating multiply referred footnotes produce a ``?`` in pdf output * #10181: napoleon: attributes are displayed like class attributes for google style docstrings when :confval:`napoleon_use_ivar` is enabled diff --git a/sphinx/texinputs/sphinxpackagefootnote.sty b/sphinx/texinputs/sphinxpackagefootnote.sty index 6a7884f83bd..c6ebf9abbcf 100644 --- a/sphinx/texinputs/sphinxpackagefootnote.sty +++ b/sphinx/texinputs/sphinxpackagefootnote.sty @@ -12,7 +12,7 @@ % - "savenotes" environment for wrapping environments, such as for tables % which have problems with LaTeX footnotes % - hyperlinks -% +% % Sphinx uses exclusively this mark-up for footnotes: % - \begin{footnote}[N] % - \begin{footnotetext}[N] @@ -192,7 +192,7 @@ \unrestored@protected@xdef\@thefnmark{\thempfn}% \endgroup % -- Sphinx specific: -% currently commented out due to +% currently commented out due to % https://github.com/sphinx-doc/sphinx/pull/10191#issuecomment-1038807448 % Memo: memoir class detection of successive footnote marks (to separate them % by commas) is broken by \refstepcounter and also by \label, and some @@ -200,7 +200,7 @@ % \global\let\spx@saved@thefnmark\@thefnmark % % this is done to access robustly the page number where footnote mark is % \refstepcounter{sphinxfootnotemark}\label{footnotemark.\thesphinxfootnotemark}% - % % if possible, compare page numbers of mark and footnote to define \@thefnmark + % % if possible, compare page numbers of mark and footnote to define \@thefnmark % \ltx@ifundefined{r@\thesphinxscope.footnote.#1}% % {}% one more latex run is needed % {\sphinx@xdef@thefnmark{#1}}% check of page numbers possible @@ -418,7 +418,7 @@ }% \H@@footnotemark \let\@makefnmark\spx@saved@makefnmark -}% +}% \AtBeginDocument{% % let hyperref less complain \pdfstringdefDisableCommands{\def\sphinxfootnotemark [#1]{}}%