[latex3-commits] [git/LaTeX3-latex3-latex3] luacolor: Improve compatibility with colorstack whatsits (4a93a96dc)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Feb 15 23:13:03 CET 2023


Repository : https://github.com/latex3/latex3
On branch  : luacolor
Link       : https://github.com/latex3/latex3/commit/4a93a96dc4f63d9703265692042c502bad349b95

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

commit 4a93a96dc4f63d9703265692042c502bad349b95
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Thu Jun 10 11:08:48 2021 +0200

    Improve compatibility with colorstack whatsits


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

4a93a96dc4f63d9703265692042c502bad349b95
 l3backend/l3backend-color.dtx | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/l3backend/l3backend-color.dtx b/l3backend/l3backend-color.dtx
index f4f8a0440..0029fe966 100644
--- a/l3backend/l3backend-color.dtx
+++ b/l3backend/l3backend-color.dtx
@@ -1464,12 +1464,11 @@ local node_types = {
     [id("glyph")]   = id_color     ,
     [id("disc")]    = id_list_disc ,
     [id("whatsit")] = {
-        [subtype("pdf_colorstack")] =
-          function(n) return n.stack == 0 and id_no_color or nil end ,
-        [subtype("special")]     = id_color ,
-        [subtype("pdf_literal")] = id_color ,
-        [subtype("pdf_save")]    = id_color ,
-        [subtype("pdf_restore")] = id_color ,
+        [subtype("special")]        = id_color ,
+        [subtype("pdf_colorstack")] = id_color ,
+        [subtype("pdf_literal")]    = id_color ,
+        [subtype("pdf_save")]       = id_color ,
+        [subtype("pdf_restore")]    = id_color ,
       } ,
     [id("glue")] =
       function(n)





More information about the latex3-commits mailing list.