[latex3-commits] [git/LaTeX3-latex3-babel] main: New fixes for amstex (in progress). (d7510f2)

Javier email at dante.de
Wed Jan 5 18:40:27 CET 2022


Repository : https://github.com/latex3/babel
On branch  : main
Link       : https://github.com/latex3/babel/commit/d7510f23a44d58333a51e004f21fd2521945fcbe

>---------------------------------------------------------------

commit d7510f23a44d58333a51e004f21fd2521945fcbe
Author: Javier <email at localhost>
Date:   Wed Jan 5 18:40:27 2022 +0100

    New fixes for amstex (in progress).
    
    * Most environments (some still wrong).
    * Hack to fix \eqno and \leqno bugs.
    * Pending also bad vertical spacing in some cases.


>---------------------------------------------------------------

d7510f23a44d58333a51e004f21fd2521945fcbe
 README.md    |   5 ++++-
 babel.dtx    |  57 ++++++++++++++++++++++++++++++++++++++++++++-------------
 babel.ins    |   4 ++--
 babel.pdf    | Bin 861065 -> 861986 bytes
 bbcompat.dtx |   2 +-
 5 files changed, 51 insertions(+), 17 deletions(-)

diff --git a/README.md b/README.md
index 5702c71..f31f026 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.69
+## Babel 3.69.2608
 
 This package manages culturally-determined typographical (and other)
 rules, and hyphenation patterns for a wide range of languages. Many
@@ -46,6 +46,9 @@ respective authors.
 
 ### Summary of Latest changes
 ```
+3.70   2022-01-?? (dev)
+       * Fixes for amsmath (in progress).
+
 3.69   2021-12-30
        * Fixes a severe bug with amsmath and mathtools introduced in
          3.68 (#162).
diff --git a/babel.dtx b/babel.dtx
index 47e8df7..010cb8e 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -1,7 +1,7 @@
 % \iffalse
 % This document requires lualatex
 %%
-%% Copyright (C) 2012-2021 Javier Bezos and Johannes L. Braams.
+%% Copyright (C) 2012-2022 Javier Bezos and Johannes L. Braams.
 %% Copyright (C) 1989-2012 Johannes L. Braams and
 %%           any individual authors listed elsewhere in this file.
 %% All rights reserved.
@@ -32,7 +32,7 @@
 %
 % \iffalse
 %<*filedriver>
-\ProvidesFile{babel.dtx}[2021/12/30 v3.69 The Babel package]
+\ProvidesFile{babel.dtx}[2022/01/05 v3.69.2608 The Babel package]
 \documentclass{ltxdoc}
 \GetFileInfo{babel.dtx}
 \usepackage{fontspec}
@@ -5119,8 +5119,8 @@ help from Bernd Raichle, for which I am grateful.
 % \section{Tools}
 %
 %    \begin{macrocode}
-%<<version=3.69>>
-%<<date=2021/12/30>>
+%<<version=3.69.2608>>
+%<<date=2022/01/05>>
 %    \end{macrocode}
 %
 % \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -14516,17 +14516,48 @@ end
 %    \begin{macrocode}
 \bbl at trace{Redefinitions for bidi layout}
 \ifnum\bbl at bidimode>\z@
-  \AtBeginDocument{% amsmath
-    \ifx\place at tag\@undefined\else
-      \bbl at sreplace\place at tag{\llap}{\bbl at truellap}%
-      \bbl at sreplace\place at tag@gather{\llap}{\bbl at truellap}%
-      \bbl at sreplace\place at tag{\rlap}{\bbl at truerlap}%
-      \bbl at sreplace\place at tag@gather{\rlap}{\bbl at truerlap}%
+  \AtBeginDocument{%
+    \ifx\maketag@@@\@undefined\else
+    \let\@eqnnum\bbl at savedeqnnum
+    \bbl at sreplace\intertext@{\normalbaselines}%
+      {\normalbaselines
+       \bbl at ifunset{bbl at outertextdir}{}{\bbl at pardir\@ne\bbl at textdir\@ne}}
+    \def\bbl at ams@tagbox#1#2{% #1=\hbox|\bbl at ams@lap
+      \bbl at ifunset{bbl at outertextdir}%
+        {#1{#2}}%
+        {#1{\bbl at textdir\bbl at outertextdir#2}}}
+    \def\bbl at ams@eqtagbox#1{%
+      \bbl at ifunset{bbl at outertextdir}%
+        {\hbox to 0.01pt{%
+          \ifx\bbl at ams@lap\hbox
+            \expandafter\rlap\else\expandafter\llap\fi{#1}}}%
+        {\hbox to 0.01pt{%
+          \hskip\ifx\bbl at ams@lap\hbox-\fi\displaywidth
+          \bbl at ams@tagbox\bbl at ams@lap{#1}}}}
+    \def\bbl at ams@preset#1{%
+      \ifnum\bbl at thetextdir>\z@
+        \let\bbl at outertextdir\@ne
+        \bbl at textdir\z@
+        \bbl at sreplace\textdef@{\hbox}{\bbl at ams@tagbox\hbox}%
+        \bbl at sreplace\maketag@@@{\hbox}{\bbl at ams@tagbox#1}%
+      \fi}
+    \@ifpackagewith{amsmath}{leqno}%
+      {\let\bbl at ams@lap\hbox}%
+      {\let\bbl at ams@lap\llap}%
+    % \AddToHook{env/aligned/begin}{\bbl at ams@preset\bbl at ams@lap}%
+    \AddToHook{env/multline/begin}{\bbl at ams@preset\hbox}%
+    \AddToHook{env/gather/begin}{\bbl at ams@preset\bbl at ams@lap}%
+    \AddToHook{env/align/begin}{\bbl at ams@preset\bbl at ams@lap}%
+    \AddToHook{env/align*/begin}{\bbl at ams@preset\bbl at ams@lap}%
+    \AddToHook{env/equation/begin}{%
+      \ifnum\bbl at thetextdir>\z@
+        \let\bbl at outertextdir\@ne
+        \bbl at textdir\z@
+        \bbl at sreplace\maketag@@@{\hbox}{\bbl at ams@eqtagbox}%
+      \fi}%
     \fi}
-  \ifx\AddToHook\@undefined\else
-    \AddToHook{env/equation/before}{\pardir TLT }{}
-  \fi
   \ifx\@eqnnum\@undefined\else
+    \let\bbl at savedeqnnum\@eqnnum
     \ifx\bbl at attr@dir\@undefined\else
       \bbl at xin@{,leqno,}{,\@classoptionslist,}%
       \ifin@
diff --git a/babel.ins b/babel.ins
index 16bde43..cce4d58 100644
--- a/babel.ins
+++ b/babel.ins
@@ -3,7 +3,7 @@
 %% driver files from the doc files in this package when run through
 %% LaTeX or TeX.
 %%
-%% Copyright 2012-2021 Javier Bezos and Johannes L. Braams.
+%% Copyright 2012-2022 Javier Bezos and Johannes L. Braams.
 %% Copyright 1989-2008 Johannes L. Braams and any individual authors
 %% listed elsewhere in this file.  All rights reserved.
 %% 
@@ -26,7 +26,7 @@
 %% and covered by LPPL is defined by the unpacking scripts (with
 %% extension .ins) which are part of the distribution.
 %%
-\def\filedate{2021/12/30}
+\def\filedate{2022/01/05}
 \def\batchfile{babel.ins}
 \input docstrip.tex
 
diff --git a/babel.pdf b/babel.pdf
index fe1d580..dd69bea 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index ed07287..6e9da72 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
 %
 % \iffalse
 %<*dtx>
-\ProvidesFile{bbcompat.dtx}[2021/12/30 v3.69]
+\ProvidesFile{bbcompat.dtx}[2022/01/05 v3.69.2608]
 %</dtx>
 %
 %% File 'bbcompat.dtx'





More information about the latex3-commits mailing list.