[latex3-commits] [git/LaTeX3-latex3-latex2e] gh126: fix for #126 (documentation to follow) (0e165eed)

Frank Mittelbach frank.mittelbach at latex-project.org
Thu Feb 20 00:34:23 CET 2020


Repository : https://github.com/latex3/latex2e
On branch  : gh126
Link       : https://github.com/latex3/latex2e/commit/0e165eed05797c0a60c334b3c3a18a2400b02953

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

commit 0e165eed05797c0a60c334b3c3a18a2400b02953
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Thu Feb 20 00:34:23 2020 +0100

    fix for #126 (documentation to follow)


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

0e165eed05797c0a60c334b3c3a18a2400b02953
 required/amsmath/amsmath.dtx                       | 12 +--
 required/amsmath/testfiles/github-0126.luatex.tlg  | 87 ++++++++++++++++++++++
 .../amsmath/testfiles/github-0126.lvt              |  9 +--
 required/amsmath/testfiles/github-0126.tlg         | 82 ++++++++++++++++++++
 .../amsmath/testfiles/github-amsrobust-0123.tlg    |  4 +-
 5 files changed, 181 insertions(+), 13 deletions(-)

diff --git a/required/amsmath/amsmath.dtx b/required/amsmath/amsmath.dtx
index 42f30888..fdd83a90 100644
--- a/required/amsmath/amsmath.dtx
+++ b/required/amsmath/amsmath.dtx
@@ -86,7 +86,7 @@ Bug reports can be opened (category \texttt{#1}) at\\%
 %    \end{macrocode}
 %
 %    \begin{macrocode}
-\ProvidesPackage{amsmath}[2020/01/20 v2.17e AMS math features]
+\ProvidesPackage{amsmath}[2020/02/20 v2.17f AMS math features]
 %    \end{macrocode}
 %
 % \section{Catcode defenses}
@@ -1633,13 +1633,15 @@ Foreign command \@backslashchar#1;\MessageBreak
 %    \begin{macro}{\dddot}
 %    \begin{macro}{\ddddot}
 %    Triple and quadruple dot accents.
+% \changes{v2.17f}{2020/02/20}{Add a kern so that a single char is not verticaly
+%      shifted and move the dots slightly to the right (gh/126)}
 %    \begin{macrocode}
 \ams at newcommand{\dddot}[1]{%
-  {\mathop{#1}\limits^{\vbox to-1.4\ex@{\kern-\tw@\ex@
-   \hbox{\normalfont ...}\vss}}}}
+  {\mathop{\kern\z@#1}\limits^{\vbox to-1.4\ex@{\kern-\tw@\ex@
+   \hbox{\,\normalfont...}\vss}}}}
 \ams at newcommand{\ddddot}[1]{%
-  {\mathop{#1}\limits^{\vbox to-1.4\ex@{\kern-\tw@\ex@
-   \hbox{\normalfont....}\vss}}}}
+  {\mathop{\kern\z@#1}\limits^{\vbox to-1.4\ex@{\kern-\tw@\ex@
+   \hbox{\,\normalfont....}\vss}}}}
 %    \end{macrocode}
 %    \end{macro}
 %    \end{macro}
diff --git a/required/amsmath/testfiles/github-0126.luatex.tlg b/required/amsmath/testfiles/github-0126.luatex.tlg
new file mode 100644
index 00000000..b4fee86d
--- /dev/null
+++ b/required/amsmath/testfiles/github-0126.luatex.tlg
@@ -0,0 +1,87 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+Completed box being shipped out [1]
+\vbox(633.0+0.0)x407.0, direction TLT
+.\glue 16.0
+.\vbox(617.0+0.0)x345.0, shifted 62.0, direction TLT
+..\vbox(12.0+0.0)x345.0, glue set 12.0fil, direction TLT
+...\glue 0.0 plus 1.0fil
+...\hbox(0.0+0.0)x345.0, direction TLT
+..\glue 25.0
+..\glue(\lineskip) 0.0
+..\vbox(550.0+0.0)x345.0, glue set 539.94232fil, direction TLT
+...\write-{}
+...\glue(\topskip) 0.79364
+...\hbox(9.20636+1.94444)x345.0, glue set 262.70404fil, direction TLT
+....\localpar
+.....\localinterlinepenalty=0
+.....\localbrokenpenalty=0
+.....\localleftbox=null
+.....\localrightbox=null
+....\hbox(0.0+0.0)x15.0, direction TLT
+....\mathon
+....\vbox(9.20636+0.0)x6.70831, direction TLT
+.....\hbox(6.67859+0.0)x0.0, shifted 2.79863, direction TLT
+......\OT1/cmr/m/n/10 _
+.....\kern-4.30554 (font)
+.....\hbox(6.83331+0.0)x6.70831, direction TLT
+......\OML/cmm/m/it/10 S
+....\glue 10.00002
+....\vbox(9.20636+0.0)x7.80904, direction TLT
+.....\hbox(6.67859+0.0)x0.0, shifted 2.23787, direction TLT
+......\OT1/cmr/m/n/10 ^^?
+.....\kern-4.30554 (font)
+.....\hbox(6.83331+0.0)x7.80904, direction TLT
+......\OML/cmm/m/it/10 P
+....\glue 10.00002
+....\hbox(8.4333+1.94444)x10.00038, direction TLT
+.....\vbox(8.4333+1.94444)x10.00038, direction TLT
+......\kern1.0 (font)
+......\vbox(-1.4+0.0)x10.00038, glue set - 0.45554fil, direction TLT
+.......\kern-2.0
+.......\hbox(1.05554+0.0)x10.00038, direction TLT
+........\kern1.66702
+........\OT1/cmr/m/n/10 .
+........\OT1/cmr/m/n/10 .
+........\OT1/cmr/m/n/10 .
+.......\glue 0.0 plus 1.0fil minus 1.0fil
+......\kern1.99998 (font)
+......\hbox(6.83331+1.94444)x10.00038, glue set 1.04742fil, direction TLT
+.......\glue 0.0 plus 1.0fil minus 1.0fil
+.......\kern0.0
+.......\OML/cmm/m/it/10 Q
+.......\glue 0.0 plus 1.0fil minus 1.0fil
+....\glue 10.00002
+....\hbox(8.4333+0.0)x12.77817, direction TLT
+.....\vbox(8.4333+0.0)x12.77817, direction TLT
+......\kern1.0 (font)
+......\vbox(-1.4+0.0)x12.77817, glue set - 0.45554fil, direction TLT
+.......\kern-2.0
+.......\hbox(1.05554+0.0)x12.77817, direction TLT
+........\kern1.66702
+........\OT1/cmr/m/n/10 .
+........\OT1/cmr/m/n/10 .
+........\OT1/cmr/m/n/10 .
+........\OT1/cmr/m/n/10 .
+.......\glue 0.0 plus 1.0fil minus 1.0fil
+......\kern1.99998 (font)
+......\hbox(6.83331+0.0)x12.77817, glue set 2.55402fil, direction TLT
+.......\glue 0.0 plus 1.0fil minus 1.0fil
+.......\kern0.0
+.......\OML/cmm/m/it/10 R
+.......\kern0.07726 (italic)
+.......\glue 0.0 plus 1.0fil minus 1.0fil
+....\mathoff
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue -1.94444
+...\glue 0.0 plus 1.0fil
+...\glue 0.0
+...\glue 0.0 plus 0.0001fil
+..\glue(\baselineskip) 23.55556
+..\hbox(6.44444+0.0)x345.0, glue set 170.0fil, direction TLT
+...\glue 0.0 plus 1.0fil
+...\OT1/cmr/m/n/10 1
+...\glue 0.0 plus 1.0fil
+(github-0126.aux)
diff --git a/base/testfiles-TU/tu-github-0069.lvt b/required/amsmath/testfiles/github-0126.lvt
similarity index 54%
copy from base/testfiles-TU/tu-github-0069.lvt
copy to required/amsmath/testfiles/github-0126.lvt
index caca260c..23257705 100644
--- a/base/testfiles-TU/tu-github-0069.lvt
+++ b/required/amsmath/testfiles/github-0126.lvt
@@ -1,6 +1,6 @@
 \documentclass{article}
 
-%\usepackage{trace}
+\usepackage{amsmath}
 
 \input{test2e}
 
@@ -10,11 +10,8 @@
 
 \START
 
-\verb*|x x|
+$ \dot{S} \quad \ddot{P} \quad \dddot{Q} \quad \ddddot{R} $
 
-%\traceon
-\begin{verbatim*}
- A B C
-\end{verbatim*}
 
 \end{document}
+
diff --git a/required/amsmath/testfiles/github-0126.tlg b/required/amsmath/testfiles/github-0126.tlg
new file mode 100644
index 00000000..298407b2
--- /dev/null
+++ b/required/amsmath/testfiles/github-0126.tlg
@@ -0,0 +1,82 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+Completed box being shipped out [1]
+\vbox(633.0+0.0)x407.0
+.\glue 16.0
+.\vbox(617.0+0.0)x345.0, shifted 62.0
+..\vbox(12.0+0.0)x345.0, glue set 12.0fil
+...\glue 0.0 plus 1.0fil
+...\hbox(0.0+0.0)x345.0
+..\glue 25.0
+..\glue(\lineskip) 0.0
+..\vbox(550.0+0.0)x345.0, glue set 539.94232fil
+...\write-{}
+...\glue(\topskip) 0.79364
+...\hbox(9.20636+1.94444)x345.0, glue set 262.70406fil
+....\hbox(0.0+0.0)x15.0
+....\mathon
+....\vbox(9.20636+0.0)x6.70831
+.....\hbox(6.67859+0.0)x0.0, shifted 2.79863
+......\OT1/cmr/m/n/10 _
+.....\kern-4.30554
+.....\hbox(6.83331+0.0)x6.70831
+......\OML/cmm/m/it/10 S
+....\glue 10.00002
+....\vbox(9.20636+0.0)x7.80904
+.....\hbox(6.67859+0.0)x0.0, shifted 2.23787
+......\OT1/cmr/m/n/10 ^^?
+.....\kern-4.30554
+.....\hbox(6.83331+0.0)x7.80904
+......\OML/cmm/m/it/10 P
+....\glue 10.00002
+....\hbox(8.4333+1.94444)x10.00038
+.....\vbox(8.4333+1.94444)x10.00038
+......\kern1.0
+......\vbox(-1.4+0.0)x10.00038, glue set - 0.45554fil
+.......\kern -2.0
+.......\hbox(1.05554+0.0)x10.00038
+........\kern 1.66702
+........\OT1/cmr/m/n/10 .
+........\OT1/cmr/m/n/10 .
+........\OT1/cmr/m/n/10 .
+.......\glue 0.0 plus 1.0fil minus 1.0fil
+......\kern1.99998
+......\hbox(6.83331+1.94444)x10.00038, glue set 1.04742fil
+.......\glue 0.0 plus 1.0fil minus 1.0fil
+.......\kern 0.0
+.......\OML/cmm/m/it/10 Q
+.......\glue 0.0 plus 1.0fil minus 1.0fil
+....\glue 10.00002
+....\hbox(8.4333+0.0)x12.77817
+.....\vbox(8.4333+0.0)x12.77817
+......\kern1.0
+......\vbox(-1.4+0.0)x12.77817, glue set - 0.45554fil
+.......\kern -2.0
+.......\hbox(1.05554+0.0)x12.77817
+........\kern 1.66702
+........\OT1/cmr/m/n/10 .
+........\OT1/cmr/m/n/10 .
+........\OT1/cmr/m/n/10 .
+........\OT1/cmr/m/n/10 .
+.......\glue 0.0 plus 1.0fil minus 1.0fil
+......\kern1.99998
+......\hbox(6.83331+0.0)x12.77817, glue set 2.55402fil
+.......\glue 0.0 plus 1.0fil minus 1.0fil
+.......\kern 0.0
+.......\OML/cmm/m/it/10 R
+.......\kern0.07726
+.......\glue 0.0 plus 1.0fil minus 1.0fil
+....\mathoff
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue -1.94444
+...\glue 0.0 plus 1.0fil
+...\glue 0.0
+...\glue 0.0 plus 0.0001fil
+..\glue(\baselineskip) 23.55556
+..\hbox(6.44444+0.0)x345.0, glue set 170.0fil
+...\glue 0.0 plus 1.0fil
+...\OT1/cmr/m/n/10 1
+...\glue 0.0 plus 1.0fil
+(github-0126.aux)
diff --git a/required/amsmath/testfiles/github-amsrobust-0123.tlg b/required/amsmath/testfiles/github-amsrobust-0123.tlg
index 8040eef9..5d199f94 100644
--- a/required/amsmath/testfiles/github-amsrobust-0123.tlg
+++ b/required/amsmath/testfiles/github-amsrobust-0123.tlg
@@ -228,9 +228,9 @@ Don't change this file in any respect.
 ---------------------------------------
 \dbinom -> \genfrac (){0pt}0{foo}{bar}{baz}
 ---------------------------------------
-\ddddot -> {\mathop {foo}\limits ^{\vbox to-1.4\ex@ {\kern -\tw@ \ex@ \hbox {\normalfont ....}\vss }}}{bar}{baz}
+\ddddot -> {\mathop {\kern \z@ foo}\limits ^{\vbox to-1.4\ex@ {\kern -\tw@ \ex@ \hbox {\tmspace +\thinmuskip {.1667em}\normalfont ....}\vss }}}{bar}{baz}
 ---------------------------------------
-\dddot -> {\mathop {foo}\limits ^{\vbox to-1.4\ex@ {\kern -\tw@ \ex@ \hbox {\normalfont ...}\vss }}}{bar}{baz}
+\dddot -> {\mathop {\kern \z@ foo}\limits ^{\vbox to-1.4\ex@ {\kern -\tw@ \ex@ \hbox {\tmspace +\thinmuskip {.1667em}\normalfont ...}\vss }}}{bar}{baz}
 ---------------------------------------
 \ddot -> \ddot {foo}{bar}{baz}
 ---------------------------------------





More information about the latex3-commits mailing list.