[latex3-commits] [git/LaTeX3-latex3-latex3] main: Extend graphics testing to dvips and dvisvgm (97d7b5a40)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Apr 6 16:47:41 CEST 2022


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/97d7b5a403b06b924ff0791a6725cd9f59e44a2c

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

commit 97d7b5a403b06b924ff0791a6725cd9f59e44a2c
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Apr 6 15:47:41 2022 +0100

    Extend graphics testing to dvips and dvisvgm


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

97d7b5a403b06b924ff0791a6725cd9f59e44a2c
 l3experimental/l3graphics/build.lua                    | 18 ++++++++++++++++++
 ...aphics001.ptex.tlg => m3graphics001.etex-dvips.tlg} |  0
 ...ics001.xetex.tlg => m3graphics001.etex-dvisvgm.tlg} | 10 +++++-----
 3 files changed, 23 insertions(+), 5 deletions(-)

diff --git a/l3experimental/l3graphics/build.lua b/l3experimental/l3graphics/build.lua
index b1f985a5f..acc5afdeb 100644
--- a/l3experimental/l3graphics/build.lua
+++ b/l3experimental/l3graphics/build.lua
@@ -10,6 +10,24 @@ module = "l3graphics"
 -- Location of main directory: use Unix-style path separators
 maindir = "../.."
 
+-- Set up to allow testing dvips, etc.
+specialformats = specialformats or {}
+specialformats.latex =
+  {
+    luatex = {binary = "luahbtex",format = "lualatex"},
+    ptex  = {binary = "eptex"},
+    uptex = {binary = "euptex"},
+    ["etex-dvips"] = {binary = "etex", format = "latex"},
+    ["etex-dvisvgm"] =
+      {
+        binary = "etex",
+        format = "latex",
+        tokens = "\\PassOptionsToPackage{backend=dvisvgm}{expl3}"
+      }
+  }
+checkengines =
+  {"pdftex", "luatex", "xetex", "etex-dvips", "etex-dvisvgm", "ptex", "uptex"}
+
 -- Load the common build code
 dofile(maindir .. "/build-config.lua")
 
diff --git a/l3experimental/l3graphics/testfiles/m3graphics001.ptex.tlg b/l3experimental/l3graphics/testfiles/m3graphics001.etex-dvips.tlg
similarity index 100%
copy from l3experimental/l3graphics/testfiles/m3graphics001.ptex.tlg
copy to l3experimental/l3graphics/testfiles/m3graphics001.etex-dvips.tlg
diff --git a/l3experimental/l3graphics/testfiles/m3graphics001.xetex.tlg b/l3experimental/l3graphics/testfiles/m3graphics001.etex-dvisvgm.tlg
similarity index 83%
copy from l3experimental/l3graphics/testfiles/m3graphics001.xetex.tlg
copy to l3experimental/l3graphics/testfiles/m3graphics001.etex-dvisvgm.tlg
index c02ccfa2c..b4cf44a31 100644
--- a/l3experimental/l3graphics/testfiles/m3graphics001.xetex.tlg
+++ b/l3experimental/l3graphics/testfiles/m3graphics001.etex-dvisvgm.tlg
@@ -3,12 +3,12 @@ Don't change this file in any respect.
 ============================================================
 TEST 1: Basic graphic inclusion
 ============================================================
-\c__graphics_miau.pdf:P1_urx_dim=\dimen...
-\c__graphics_miau.pdf:P1_ury_dim=\dimen...
+\c__graphics_miau.pdf:cropbox_urx_dim=\dimen...
+\c__graphics_miau.pdf:cropbox_ury_dim=\dimen...
 > \box...=
-\hbox(31.11626+0.0)x32.12
-.\hbox(31.11626+0.0)x32.12
-..\XeTeXpdffile "./miau.pdf"
+\hbox(31.11624+0.0)x32.12
+.\hbox(31.11624+0.0)x32.12
+..\special{pdffile=miau.pdf llx=0 lly=0 urx=32 ury=30.99998}
 ! OK.
 <argument> \l_tmpa_box 
 l. ...  }





More information about the latex3-commits mailing list.