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

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Feb 15 22:19:38 CET 2023


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

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

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

    Improve compatibility with colorstack whatsits


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

da204edb4871ab69cc3e00d156e0d7ed791cd177
 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.