From 0183ee9a389287e035dedfdee74127ca0a2b7f61 Mon Sep 17 00:00:00 2001 From: Luca Toniolo <10792599+grandixximo@users.noreply.github.com> Date: Mon, 20 Jul 2026 18:45:41 +0800 Subject: [PATCH] docs: fix French PDF build with babel-french 4.x (TeX Live 2025) --- docs/src/emc2.sty | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/src/emc2.sty b/docs/src/emc2.sty index dc000d1152c..567fd62563c 100644 --- a/docs/src/emc2.sty +++ b/docs/src/emc2.sty @@ -8,6 +8,16 @@ %% Just use the original package and pass the options. \RequirePackageWithOptions{docbook} +%% babel-french 4.x (TeX Live 2025) removed the legacy \frenchbsetup keys +%% (e.g. CompactItemize) that dblatex's dbk_locale.sty still passes. +%% Use the modern \frenchsetup interface when available (babel-french >= 3.0). +\makeatletter +\@ifundefined{frenchsetup}{}{% + \let\frenchbsetup\@gobble + \frenchsetup{StandardItemizeEnv=true,StandardItemLabels=true}% +} +\makeatother + % Sidebar is a boxed minipage that can contain verbatim. % Changed shadow box to double box. \renewenvironment{sidebar}[1][0.95\textwidth]{