Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ Bugs fixed
* #14004: Fix :confval:`autodoc_type_aliases` when they appear in PEP 604
union syntax (``Alias | Type``).
Patch by Tamika Nomara.
* #14059: LaTeX: Footnotes cause pdflatex error with French language
(since August 2025 upstream change to LaTeX French support).
Patch by Jean-François B.


Testing
Expand Down
13 changes: 9 additions & 4 deletions sphinx/texinputs/sphinxpackagefootnote.sty
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{sphinxpackagefootnote}%
[2024/05/17 v7.3.x Sphinx custom footnotehyper package (Sphinx team)]
[2025/11/15 v8.3.0 Sphinx custom footnotehyper package (Sphinx team)]
%%
%% Package: sphinxpackagefootnote
%% Version: based on footnotehyper.sty 2021/02/04 v1.1d
Expand All @@ -19,11 +19,13 @@
% - \sphinxfootnotemark[N]
% where N is a number.
%
%% Some small differences from upstream footnotehyper.sty:
%% Some small differences from footnotehyper.sty 2021/02/04 v1.1d:
%% - a tabulary compatibility layer (partial but enough for Sphinx),
%% - usage of \spx@opt@BeforeFootnote
%% - usage of \sphinxunactivateextrasandspace from sphinx.sty,
%% - \sphinxlongtablepatch
%% - fix for a change of babel-french at its version 3.7e 2025-08-15
%% (\localleftbox undefined with pdflatex/xelatex, issue #14059)
%%
%% Starting with Sphinx v4.5.0, inherited footnotehyper macros for
%% footnote/footnotetext receive some Sphinx specific extras to
Expand Down Expand Up @@ -274,8 +276,11 @@
\fi
}%
\def\FNH@check{%
\ifx\@makefntextFB\@undefined\expandafter\FNH@check@
\else\expandafter\FNH@frenchb@
\ifx\@makefntextFB\@undefined
\expandafter\FNH@check@
\else
\providecommand\localleftbox[1]{}%
\expandafter\FNH@frenchb@
\fi
}%
\def\FNH@frenchb@{%
Expand Down
Loading