latex3 / babel

The babel system for LaTeX, LuaLaTeX and XeLaTeX
LaTeX Project Public License v1.3c
126 stars 34 forks source link

Language environment don't change anymore the language string #150

Closed maieul closed 2 years ago

maieul commented 2 years ago

MWE

\listfiles \documentclass{article}

\usepackage[pdfusetitle,hidelinks]{hyperref} \usepackage[english, main=latin]{babel}

\babeltags{english = english} \begin{document} \begin{english} \begin{abstract} s \end{abstract} \end{english} \selectlanguage{english} \begin{abstract} s \end{abstract}

\end{document}

The problem

As you can see, the first asbtract title is in latin, and not in english, even if it is in a english environment.

Older version of babel than those in texlive 2021 didn't have this problem.

Outpout of listfile


 article.cls    2021/02/12 v1.4n Standard LaTeX document class
  size10.clo    2021/02/12 v1.4n Standard LaTeX file (size option)
hyperref.sty    2021-06-07 v7.00m Hypertext links for LaTeX
 ltxcmds.sty    2020-05-10 v1.25 LaTeX kernel commands for general use (HO)
   iftex.sty    2020/03/06 v1.0d TeX engine tests
pdftexcmds.sty    2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO)
infwarerr.sty    2019/12/03 v1.5 Providing info/warning/error messages (HO)
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
kvsetkeys.sty    2019/12/15 v1.18 Key value parser (HO)
kvdefinekeys.sty    2019-12-19 v1.6 Define keys (HO)
pdfescape.sty    2019/12/09 v1.15 Implements pdfTeX's escape features (HO)
 hycolor.sty    2020-01-27 v1.10 Color options for hyperref/bookmark (HO)
letltxmacro.sty    2019/12/03 v1.6 Let assignment for LaTeX macros (HO)
 auxhook.sty    2019-12-17 v1.6 Hooks for auxiliary files (HO)
kvoptions.sty    2020-10-07 v3.14 Key value format for package options (HO)
  pd1enc.def    2021-06-07 v7.00m Hyperref: PDFDocEncoding definition (HO)
hyperref-langpatches.def    2021-06-07 v7.00m Hyperref: patches for babel langu
ages
 intcalc.sty    2019/12/15 v1.3 Expandable calculations with integers (HO)
etexcmds.sty    2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO)
   puenc.def    2021-06-07 v7.00m Hyperref: PDF Unicode definition (HO)
     url.sty    2013/09/16  ver 3.4  Verb mode for urls, etc.
  bitset.sty    2019/12/09 v1.3 Handle bit-vector datatype (HO)
bigintcalc.sty    2019/12/15 v1.5 Expandable calculations on big integers (HO)
atbegshi-ltx.sty    2021/01/10 v1.0c Emulation of the original atbegshi
package with kernel methods
  hxetex.def    2021-06-07 v7.00m Hyperref driver for XeTeX
stringenc.sty    2019/11/29 v1.12 Convert strings between diff. encodings (HO)
rerunfilecheck.sty    2019/12/05 v1.9 Rerun checks for auxiliary files (HO)
atveryend-ltx.sty    2020/08/19 v1.0a Emulation of the original atvery package
with kernel methods
uniquecounter.sty    2019/12/15 v1.4 Provide unlimited unique counter (HO)
   babel.sty    2021/07/22 3.63 The Babel package
 english.ldf    2017/06/06 v3.3r English support from the babel system
   latin.ldf    2021-06-27 v4.0 Latin support from the babel system
l3backend-xetex.def    2021-07-12 L3 backend support: XeTeX
  ts1cmr.fd    2019/12/16 v2.5j Standard LaTeX font definitions
 nameref.sty    2021-04-02 v2.47 Cross-referencing by name of section
refcount.sty    2019/12/15 v3.6 Data extraction from label references (HO)
gettitlestring.sty    2019/12/15 v1.6 Cleanup title references (HO)
u-fischer commented 2 years ago

I don't see a change here. I get a latin title also with texlive 2019. And from the documentation that is what I expect: the english environment is basically the same as \foreignlanguage and otherlanguage, and they don't change names.

maieul commented 2 years ago

Oups, sorry, I did a mistake. I think it is because in the past I used polyglossia, which didn't have this behavior.