[latex3-commits] [git/LaTeX3-latex3-latex3] master: Actually initialise main color stack for dvipdfmx (e0e2751f3)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Jan 12 12:34:30 CET 2021


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/e0e2751f3d14254775c606f23dbaa4b701d71bce

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

commit e0e2751f3d14254775c606f23dbaa4b701d71bce
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Jan 12 11:34:30 2021 +0000

    Actually initialise main color stack for dvipdfmx


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

e0e2751f3d14254775c606f23dbaa4b701d71bce
 l3backend/l3backend-color.dtx | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/l3backend/l3backend-color.dtx b/l3backend/l3backend-color.dtx
index 6f578a37e..74a27d225 100644
--- a/l3backend/l3backend-color.dtx
+++ b/l3backend/l3backend-color.dtx
@@ -180,7 +180,7 @@
 %    \end{macrocode}
 %
 % \begin{macro}{\__kernel_color_stack_init:Nnn}
-% \begin{variable}{\g__color_stack_int}
+% \begin{variable}{\g_@@_stack_int, \c_@@_main_stack_int}
 %   In \texttt{(x)dvipdfmx}, the base color stack is not set up, so we have to
 %   force that, as well as providing a mechanism more generally.
 %    \begin{macrocode}
@@ -205,6 +205,18 @@
               }
           }
       }
+    \cs_if_exist:cTF { main at pdfcolorstack }
+      {
+        \int_set:Nn \l__kernel_color_stack_int
+          { \int_use:c { main at pdfcolorstack } }
+      }
+      {
+        \__kernel_color_stack_init:Nnn \c_@@_main_stack_int
+          { page ~ direct } { 0 ~ g ~ 0 ~ G }
+        \int_set_eq:NN \l__kernel_color_stack_int
+          \c_@@_main_stack_int
+      }
+    
   }
 %    \end{macrocode}
 % \end{variable}





More information about the latex3-commits mailing list.