From f6c9e91ff79d33ba23b553fa7dd246e16e5e87c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20B=2E?= <2589111+jfbu@users.noreply.github.com> Date: Sat, 15 Nov 2025 09:35:26 +0100 Subject: [PATCH 1/2] Fix #14059 (PDF build crash with French since August 2025 LaTeX) --- CHANGES.rst | 3 +++ sphinx/texinputs/sphinxpackagefootnote.sty | 13 +++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) 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/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@{% From 106da61d423d3866781030c2a2e2f86ad691f5c9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 15 Nov 2025 08:39:00 +0000 Subject: [PATCH 2/2] Bump ruff from 0.12.8 to 0.14.2 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.12.8 to 0.14.2. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.12.8...0.14.2) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.14.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e3418ab98a2..f4d5c0e6428 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -108,7 +108,7 @@ docs = [ "sphinxcontrib-websupport", ] lint = [ - "ruff==0.14.0", + "ruff==0.14.5", "sphinx-lint>=0.9", ] package = [