[latex3-commits] [git/LaTeX3-latex3-latex2e] gh652-2: add a comment that the code is temporary (3ba68999)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu Sep 2 16:01:51 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh652-2
Link       : https://github.com/latex3/latex2e/commit/3ba68999d991f862de6499bd5021c2cf2547262e

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

commit 3ba68999d991f862de6499bd5021c2cf2547262e
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Sep 2 16:01:51 2021 +0200

    add a comment that the code is temporary


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

3ba68999d991f862de6499bd5021c2cf2547262e
 required/amsmath/amsmath.dtx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/required/amsmath/amsmath.dtx b/required/amsmath/amsmath.dtx
index 3263893e..eec51f50 100644
--- a/required/amsmath/amsmath.dtx
+++ b/required/amsmath/amsmath.dtx
@@ -6504,7 +6504,13 @@ Cannot use `split' here;\MessageBreak trying to recover with `aligned'}%
 %    \end{macrocode}
 %\changes{v2.17k}{2021/08/24}{Move the counter inside the equation and guard
 % with a mathopen for better compability with hyperref, issue gh/652}
+% As with hyperref incrementing the counter creates a box to raise the anchor
+% it should be in a place where is doesn't affect spacing.
+% Currently the code from hyperref is used to avoid this problem:
+% If fleqn isn't active the counter is set inside the equation and the potential
+% box guarded by a mathopen to avoid side effects on following unary symbols.
 % If fleqn is activated it has to be outside to avoid problems with labels.
+% This solution is temporary and not necessarly the best.
 %    \begin{macrocode}
 \if at fleqn
 \renewenvironment{equation}{%





More information about the latex3-commits mailing list.