[latex3-commits] [latex3/latex3] main: Remove an unrequired scaling (fixes #1386) (76104b03a)
github at latex-project.org
github at latex-project.org
Thu Dec 14 17:45:25 CET 2023
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/76104b03a42246726556384f2ca34083bc6955aa
>---------------------------------------------------------------
commit 76104b03a42246726556384f2ca34083bc6955aa
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Dec 14 16:44:24 2023 +0000
Remove an unrequired scaling (fixes #1386)
>---------------------------------------------------------------
76104b03a42246726556384f2ca34083bc6955aa
l3experimental/CHANGELOG.md | 3 +++
l3experimental/l3draw/l3draw-paths.dtx | 2 +-
l3experimental/l3draw/testfiles/m3draw003.etex-dvips.tlg | 12 ++++++------
l3experimental/l3draw/testfiles/m3draw003.etex-dvisvgm.tlg | 4 ++--
l3experimental/l3draw/testfiles/m3draw003.tlg | 12 ++++++------
l3experimental/l3draw/testfiles/m3draw003.uptex.tlg | 12 ++++++------
l3experimental/l3draw/testfiles/m3draw003.xetex.tlg | 12 ++++++------
7 files changed, 30 insertions(+), 27 deletions(-)
diff --git a/l3experimental/CHANGELOG.md b/l3experimental/CHANGELOG.md
index d6e3645c5..309472d33 100644
--- a/l3experimental/CHANGELOG.md
+++ b/l3experimental/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
## [Unreleased]
+### Fixed
+- Remove a stray scaling in `\draw_path_rectangle:nn` (issue \#1386)
+
## [2023-12-08]
### Added
diff --git a/l3experimental/l3draw/l3draw-paths.dtx b/l3experimental/l3draw/l3draw-paths.dtx
index 53032f4d6..91a7b63ef 100644
--- a/l3experimental/l3draw/l3draw-paths.dtx
+++ b/l3experimental/l3draw/l3draw-paths.dtx
@@ -708,7 +708,7 @@
{ \@@_path_rectangle_rounded:nnnn }
{ \@@_path_rectangle:nnnn }
}
- { \draw_point_transform:n {#1} }
+ {#1}
{#2}
}
\cs_new_protected:Npn \@@_path_rectangle:nnnn #1#2#3#4
diff --git a/l3experimental/l3draw/testfiles/m3draw003.etex-dvips.tlg b/l3experimental/l3draw/testfiles/m3draw003.etex-dvips.tlg
index 0ca514ea1..731f50bd1 100644
--- a/l3experimental/l3draw/testfiles/m3draw003.etex-dvips.tlg
+++ b/l3experimental/l3draw/testfiles/m3draw003.etex-dvips.tlg
@@ -627,7 +627,7 @@ l. ... }
> \box...=
\hbox(28.85275+0.0)x57.30551
.\hbox(28.85275+0.0)x57.30551
-..\glue -170.51656
+..\glue -113.61104
..\hbox(0.0+0.0)x0.0, shifted 56.70552
...\special{ps::[begin]}
...\special{ps::@beginspecial}
@@ -639,12 +639,12 @@ l. ... }
...\special{ps::10 setmiterlimit}
...\special{ps::[] 0 setdash}
...\hbox(0.0+0.0)x0.0
-....\special{ps::226.77168 85.03938 moveto}
-....\special{ps::198.42523 85.03938 lineto}
-....\special{ps::170.07877 56.69293 lineto}
-....\special{ps::198.42523 56.69293 lineto}
+....\special{ps::170.07877 85.03938 moveto}
+....\special{ps::141.7323 85.03938 lineto}
+....\special{ps::113.38585 56.69293 lineto}
+....\special{ps::141.7323 56.69293 lineto}
....\special{ps::closepath}
-....\special{ps::170.07877 56.69293 moveto}
+....\special{ps::113.38585 56.69293 moveto}
....\special{ps::gsave}
....\special{ps::color.sc}
....\special{ps::stroke}
diff --git a/l3experimental/l3draw/testfiles/m3draw003.etex-dvisvgm.tlg b/l3experimental/l3draw/testfiles/m3draw003.etex-dvisvgm.tlg
index c8191b3e8..92dd1049d 100644
--- a/l3experimental/l3draw/testfiles/m3draw003.etex-dvisvgm.tlg
+++ b/l3experimental/l3draw/testfiles/m3draw003.etex-dvisvgm.tlg
@@ -602,7 +602,7 @@ l. ... }
> \box...=
\hbox(28.85275+0.0)x57.30551
.\hbox(28.85275+0.0)x57.30551
-..\glue -170.51656
+..\glue -113.61104
..\hbox(0.0+0.0)x0.0, shifted 56.70552
...\special{dvisvgm:raw <g>{?nl}}
...\special{dvisvgm:raw <g transform="translate({?x},{?y}) scale(1,-1)">{?nl}}
@@ -614,7 +614,7 @@ l. ... }
...\special{dvisvgm:raw <g stroke-miterlimit="10">{?nl}}
...\special{dvisvgm:raw <g stroke-dasharray="none" stroke-offset="0">{?nl}}
...\hbox(0.0+0.0)x0.0
-....\special{dvisvgm:raw <path d="M 227.62207 85.35828 L 199.16931 85.35828 L 170.71655 56.90552 L 199.16931 56.90552 Z M 170.71655 56.90552" style="fill:none"/>{?nl}}
+....\special{dvisvgm:raw <path d="M 170.71655 85.35828 L 142.2638 85.35828 L 113.81104 56.90552 L 142.2638 56.90552 Z M 113.81104 56.90552" style="fill:none"/>{?nl}}
...\special{dvisvgm:raw </g>{?nl}}
...\special{dvisvgm:raw </g>{?nl}}
...\special{dvisvgm:raw </g>{?nl}}
diff --git a/l3experimental/l3draw/testfiles/m3draw003.tlg b/l3experimental/l3draw/testfiles/m3draw003.tlg
index 0cea06f14..847544616 100644
--- a/l3experimental/l3draw/testfiles/m3draw003.tlg
+++ b/l3experimental/l3draw/testfiles/m3draw003.tlg
@@ -487,7 +487,7 @@ l. ... }
> \box...=
\hbox(28.85275+0.0)x57.30551
.\hbox(28.85275+0.0)x57.30551
-..\glue -170.51656
+..\glue -113.61104
..\hbox(0.0+0.0)x0.0, shifted 56.70552
...\pdfsave
...\pdfliteral{0.39851 w}
@@ -497,12 +497,12 @@ l. ... }
...\pdfliteral{10 M}
...\pdfliteral{[] 0 d}
...\hbox(0.0+0.0)x0.0
-....\pdfliteral{226.77168 85.03938 m}
-....\pdfliteral{198.42523 85.03938 l}
-....\pdfliteral{170.07877 56.69293 l}
-....\pdfliteral{198.42523 56.69293 l}
+....\pdfliteral{170.07877 85.03938 m}
+....\pdfliteral{141.7323 85.03938 l}
+....\pdfliteral{113.38585 56.69293 l}
+....\pdfliteral{141.7323 56.69293 l}
....\pdfliteral{h}
-....\pdfliteral{170.07877 56.69293 m}
+....\pdfliteral{113.38585 56.69293 m}
....\pdfliteral{S}
...\pdfrestore
...\pdfcolorstack 0 pop
diff --git a/l3experimental/l3draw/testfiles/m3draw003.uptex.tlg b/l3experimental/l3draw/testfiles/m3draw003.uptex.tlg
index 0ca514ea1..731f50bd1 100644
--- a/l3experimental/l3draw/testfiles/m3draw003.uptex.tlg
+++ b/l3experimental/l3draw/testfiles/m3draw003.uptex.tlg
@@ -627,7 +627,7 @@ l. ... }
> \box...=
\hbox(28.85275+0.0)x57.30551
.\hbox(28.85275+0.0)x57.30551
-..\glue -170.51656
+..\glue -113.61104
..\hbox(0.0+0.0)x0.0, shifted 56.70552
...\special{ps::[begin]}
...\special{ps::@beginspecial}
@@ -639,12 +639,12 @@ l. ... }
...\special{ps::10 setmiterlimit}
...\special{ps::[] 0 setdash}
...\hbox(0.0+0.0)x0.0
-....\special{ps::226.77168 85.03938 moveto}
-....\special{ps::198.42523 85.03938 lineto}
-....\special{ps::170.07877 56.69293 lineto}
-....\special{ps::198.42523 56.69293 lineto}
+....\special{ps::170.07877 85.03938 moveto}
+....\special{ps::141.7323 85.03938 lineto}
+....\special{ps::113.38585 56.69293 lineto}
+....\special{ps::141.7323 56.69293 lineto}
....\special{ps::closepath}
-....\special{ps::170.07877 56.69293 moveto}
+....\special{ps::113.38585 56.69293 moveto}
....\special{ps::gsave}
....\special{ps::color.sc}
....\special{ps::stroke}
diff --git a/l3experimental/l3draw/testfiles/m3draw003.xetex.tlg b/l3experimental/l3draw/testfiles/m3draw003.xetex.tlg
index 323b009bb..ceceef06d 100644
--- a/l3experimental/l3draw/testfiles/m3draw003.xetex.tlg
+++ b/l3experimental/l3draw/testfiles/m3draw003.xetex.tlg
@@ -487,7 +487,7 @@ l. ... }
> \box...=
\hbox(28.85275+0.0)x57.30551
.\hbox(28.85275+0.0)x57.30551
-..\glue -170.51656
+..\glue -113.61104
..\hbox(0.0+0.0)x0.0, shifted 56.70552
...\special{x:gsave}
...\special{pdf:literal 0.39851 w}
@@ -497,12 +497,12 @@ l. ... }
...\special{pdf:literal 10 M}
...\special{pdf:literal [] 0 d}
...\hbox(0.0+0.0)x0.0
-....\special{pdf:literal 226.77168 85.03938 m}
-....\special{pdf:literal 198.42523 85.03938 l}
-....\special{pdf:literal 170.07877 56.69293 l}
-....\special{pdf:literal 198.42523 56.69293 l}
+....\special{pdf:literal 170.07877 85.03938 m}
+....\special{pdf:literal 141.7323 85.03938 l}
+....\special{pdf:literal 113.38585 56.69293 l}
+....\special{pdf:literal 141.7323 56.69293 l}
....\special{pdf:literal h}
-....\special{pdf:literal 170.07877 56.69293 m}
+....\special{pdf:literal 113.38585 56.69293 m}
....\special{pdf:literal S}
...\special{x:grestore}
...\special{pdf:ec}
More information about the latex3-commits
mailing list.