diff --git a/CHANGES.rst b/CHANGES.rst index f0f94fda396..a269c087d04 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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 diff --git a/pyproject.toml b/pyproject.toml index e3418ab98a2..51a5ff4b396 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -132,7 +132,7 @@ translations = [ types = [ "mypy==1.18.2", "pyrefly", - "pyright==1.1.406", + "pyright==1.1.407", "ty", { include-group = "type-stubs" }, ] diff --git a/sphinx/texinputs/sphinxpackagefootnote.sty b/sphinx/texinputs/sphinxpackagefootnote.sty index 7f2e2913874..817c45e43c3 100644 --- a/sphinx/texinputs/sphinxpackagefootnote.sty +++ b/sphinx/texinputs/sphinxpackagefootnote.sty @@ -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 @@ -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 @@ -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@{%