babel-french update breaks previous documents

Lars Madsen daleif at math.au.dk
Thu Oct 8 08:18:38 CEST 2020


The problem seems to be the following

minimal is minimal so nothing is defined.


french.ldf contains


\AtBeginDocument{%
  \ifx\FBfigtabshape\relax
  \else
    \ifdefined\fnum at figure
      \let\fnum at figureORI\fnum at figure
      \let\fnum at tableORI\fnum at table
      \renewcommand{\fnum at figure}{{\ifFBfrench\FBfigtabshape\fi
                                   \fnum at figureORI}}%
      \renewcommand{\fnum at table}{{\ifFBfrench\FBfigtabshape\fi
                                  \fnum at tableORI}}%
    \fi
  \fi
}

note that it only tests for \fnum at figure

But \newfloat{figure}{ht}{lof} defines \fnum at figure and thus the french test is true, but there is no \fnum at table

In the article class both \fnum at figure and \fnum at table is defined by default.

Running  this code right before \begin{document}

\makeatletter
\typeout{\meaning\fnum at figure}
\typeout{\meaning\fnum at table}
\makeatother

shows whether the macros are defined before the french test sees them

Probably that french test ought to be split into two handling figure and table separately




/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/daleif@math<http://au.dk/daleif@imf> / More information: http://au.dk/en/daleif@math<http://au.dk/en/daleif@imf>

________________________________
From: tex-live <tex-live-bounces+daleif=imf.au.dk at tug.org> on behalf of Lars Madsen <daleif at math.au.dk>
Sent: 08 October 2020 08:06
To: Norbert Preining <norbert at preining.info>; tex-live at tug.org <tex-live at tug.org>
Subject: Re: babel-french update breaks previous documents

well, it does compile using the article class and not minimal


/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/daleif@math<http://au.dk/daleif@imf> / More information: http://au.dk/en/daleif@math<http://au.dk/en/daleif@imf>

________________________________
From: tex-live <tex-live-bounces+daleif=imf.au.dk at tug.org> on behalf of Norbert Preining <norbert at preining.info>
Sent: 08 October 2020 07:24
To: tex-live at tug.org <tex-live at tug.org>
Subject: babel-french update breaks previous documents

Hi all,

the following minimal document stopped compiling with the update of
babel-french

\documentclass{minimal}
\usepackage{float}
\usepackage[french]{babel}
\newfloat{figure}{ht}{lof}
\begin{document}
Hello World
\end{document}

With version 3.5j (TeX Live package revision 55742) it compiles, with
the current version 3.5k (TL package revision 56333) it fails with

! LaTeX Error: Command \fnum at table undefined.

Mind that the line
        \newfloat{figure}{ht}{lof}
is essential, commenting it makes the document work again.

I am not really sure where the issue is, anyone having an idea?

Thanks

Norbert

--
PREINING Norbert                              https://www.preining.info
Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20201008/0bbce911/attachment-0001.html>


More information about the tex-live mailing list.