[latex3-commits] [git/LaTeX3-latex3-babel] main: Fixed vertical spacing in standard math and RTL. (19a0f1b)
Javier
email at dante.de
Wed Apr 20 18:54:21 CEST 2022
Repository : https://github.com/latex3/babel
On branch : main
Link : https://github.com/latex3/babel/commit/19a0f1bf56ce8de6abfbc0178376097b7ed76fe2
>---------------------------------------------------------------
commit 19a0f1bf56ce8de6abfbc0178376097b7ed76fe2
Author: Javier <email at localhost>
Date: Wed Apr 20 18:54:21 2022 +0200
Fixed vertical spacing in standard math and RTL.
>---------------------------------------------------------------
19a0f1bf56ce8de6abfbc0178376097b7ed76fe2
README.md | 4 ++--
babel.dtx | 46 +++++++++++++++++++++++++++++++++-------------
babel.ins | 2 +-
babel.pdf | Bin 856273 -> 856731 bytes
bbcompat.dtx | 2 +-
samples/lua-hebrew.pdf | Bin 107429 -> 107511 bytes
samples/lua-hebrew.tex | 2 +-
7 files changed, 38 insertions(+), 18 deletions(-)
diff --git a/README.md b/README.md
index bb8f459..a80a0a7 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-## Babel 3.73.2708
+## Babel 3.73.2713
*(Development)*
@@ -52,7 +52,7 @@ respective authors.
* Fixes:
- Error in transforms if | is active.
- Minor fixes in Khemer, Turkmen
- * RTL Math improved (with luatex).
+ * RTL math improved (with luatex).
3.73 2022-02-26
* Fixes a severe bug introduced in 3.72 when amsmath is
diff --git a/babel.dtx b/babel.dtx
index 7b4219a..559f573 100644
--- a/babel.dtx
+++ b/babel.dtx
@@ -32,7 +32,7 @@
%
% \iffalse
%<*filedriver>
-\ProvidesFile{babel.dtx}[2022/04/15 v3.73.2708 The Babel package]
+\ProvidesFile{babel.dtx}[2022/04/20 v3.73.2713 The Babel package]
\documentclass{ltxdoc}
\GetFileInfo{babel.dtx}
\usepackage{fontspec}
@@ -5116,8 +5116,8 @@ help from Bernd Raichle, for which I am grateful.
% \section{Tools}
%
% \begin{macrocode}
-%<<version=3.73.2708>>
-%<<date=2022/04/15>>
+%<<version=3.73.2713>>
+%<<date=2022/04/20>>
% \end{macrocode}
%
% \textbf{Do not use the following macros in \texttt{ldf} files. They
@@ -11587,7 +11587,6 @@ help from Bernd Raichle, for which I am grateful.
%
% \subsubsection{\pkg{hhline}}
%
-%
% \begin{macro}{\hhline}
%
% Delaying the activation of the shorthand characters has introduced
@@ -14554,23 +14553,41 @@ end
%
% \begin{macrocode}
\bbl at trace{Redefinitions for bidi layout}
+%
+%<<*More package options>>
+\chardef\bbl at eqnpos\z@
+\DeclareOption{leqno}{\chardef\bbl at eqnpos\@ne}
+\DeclareOption{fleqn}{\chardef\bbl at eqnpos\tw@}
+%<</More package options>>
+%
\def\BabelNoAMSMath{\let\bbl at noamsmath\relax}
\ifnum\bbl at bidimode>\z@
- \chardef\bbl at eqnpos\z@
- \bbl at xin@{,leqno,}{,\@classoptionslist,}
- \ifin@ \chardef\bbl at eqnpos\@ne \fi
- \bbl at xin@{,fleqn,}{,\@classoptionslist,}
- \ifin@ \chardef\bbl at eqnpos\tw@ \fi
- \let\bbl at eqnodir\relax
\ifx\matheqdirmode\@undefined\else
\matheqdirmode\@ne
\fi
+ \let\bbl at eqnodir\relax
\def\bbl at eqdel{()}
\def\bbl at eqnum{%
{\normalfont\normalcolor
\expandafter\@firstoftwo\bbl at eqdel
\theequation
\expandafter\@secondoftwo\bbl at eqdel}}
+ \def\bbl at puteqno#1{\eqno\hbox{#1}}
+ \def\bbl at putleqno#1{\leqno\hbox{#1}}
+ \def\bbl at eqno@flip#1{%
+ \ifdim\predisplaysize=-\maxdimen
+ \eqno
+ \hb at xt@.01pt{\hb at xt@\displaywidth{\hss{#1}}\hss}%
+ \else
+ \leqno\hbox{#1}%
+ \fi}
+ \def\bbl at leqno@flip#1{%
+ \ifdim\predisplaysize=-\maxdimen
+ \leqno
+ \hb at xt@.01pt{\hss\hb at xt@\displaywidth{{#1}\hss}}%
+ \else
+ \eqno\hbox{#1}%
+ \fi}
\AtBeginDocument{%
\ifx\maketag@@@\@undefined % Normal equation, eqnarray
\AddToHook{env/equation/begin}{%
@@ -14580,11 +14597,14 @@ end
\chardef\bbl at thetextdir\z@
\bbl at add\normalfont{\bbl at eqnodir}%
\ifcase\bbl at eqnpos
- \pardir TLT % eqno
- \or\or % leqno: do nothing
- \pardir TLT \textdir TLT % fleqn
+ \let\bbl at puteqno\bbl at eqno@flip
+ \or
+ \let\bbl at puteqno\bbl at leqno@flip
\fi
\fi}%
+ \ifnum\bbl at eqnpos=\tw@\else
+ \def\endequation{\bbl at puteqno{\@eqnnum}$$\@ignoretrue}%
+ \fi
\AddToHook{env/eqnarray/begin}{%
\ifnum\bbl at thetextdir>\z@
\edef\bbl at eqnodir{\noexpand\bbl at textdir{\the\bbl at thetextdir}}%
diff --git a/babel.ins b/babel.ins
index 11e24f8..ad9d03f 100644
--- a/babel.ins
+++ b/babel.ins
@@ -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{2022/04/15}
+\def\filedate{2022/04/20}
\def\batchfile{babel.ins}
\input docstrip.tex
diff --git a/babel.pdf b/babel.pdf
index 8544dbe..f35b8ff 100644
Binary files a/babel.pdf and b/babel.pdf differ
diff --git a/bbcompat.dtx b/bbcompat.dtx
index 879136f..285e63c 100644
--- a/bbcompat.dtx
+++ b/bbcompat.dtx
@@ -30,7 +30,7 @@
%
% \iffalse
%<*dtx>
-\ProvidesFile{bbcompat.dtx}[2022/04/15 v3.73.2708]
+\ProvidesFile{bbcompat.dtx}[2022/04/20 v3.73.2713]
%</dtx>
%
%% File 'bbcompat.dtx'
diff --git a/samples/lua-hebrew.pdf b/samples/lua-hebrew.pdf
index fdcb94b..cd14c05 100644
Binary files a/samples/lua-hebrew.pdf and b/samples/lua-hebrew.pdf differ
diff --git a/samples/lua-hebrew.tex b/samples/lua-hebrew.tex
index 43cde28..bdca990 100644
--- a/samples/lua-hebrew.tex
+++ b/samples/lua-hebrew.tex
@@ -1,6 +1,6 @@
\documentclass{article}
-\usepackage[unicode]{hyperref}
+\usepackage[linkcolor=blue,urlcolor=blue,colorlinks=true]{hyperref}
\ifx\directlua\undefined
% With XeTeX, which often works with isolated words, but note
More information about the latex3-commits
mailing list.