[latex3-commits] [git/LaTeX3-latex3-latex3] master: Ensure main color stack is always defined for (x)dvipdfmx (da42f0155)

Joseph Wright joseph.wright at morningstar2.co.uk
Tue Mar 2 11:03:05 CET 2021


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

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

commit da42f0155f9dc8c7584614cadb97ea89da58346b
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Mar 2 09:32:03 2021 +0000

    Ensure main color stack is always defined for (x)dvipdfmx


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

da42f0155f9dc8c7584614cadb97ea89da58346b
 l3backend/CHANGELOG.md        | 1 +
 l3backend/l3backend-color.dtx | 1 +
 2 files changed, 2 insertions(+)

diff --git a/l3backend/CHANGELOG.md b/l3backend/CHANGELOG.md
index bce23163b..c3993b30f 100644
--- a/l3backend/CHANGELOG.md
+++ b/l3backend/CHANGELOG.md
@@ -8,6 +8,7 @@ this project uses date-based 'snapshot' version identifiers.
 
 ### Changed
 - Drop 'correction' for link placement in `(x)dvidpfmx`: no longer required
+- Define `\main at pdfcolorstack` for `(x)dvipdfmx` if it does not exist
 
 ## [2021-02-18]
 
diff --git a/l3backend/l3backend-color.dtx b/l3backend/l3backend-color.dtx
index 22917e90c..85667caa0 100644
--- a/l3backend/l3backend-color.dtx
+++ b/l3backend/l3backend-color.dtx
@@ -235,6 +235,7 @@
           { page ~ direct } { 0 ~ g ~ 0 ~ G }
         \int_set_eq:NN \l_@@_backend_stack_int
           \c_@@_backend_main_stack_int
+        \int_const:cn { main at pdfcolorstack } { \c_@@_backend_main_stack_int }
       }
   }
 %    \end{macrocode}





More information about the latex3-commits mailing list.