[latex3-commits] [git/LaTeX3-latex3-latex3] master: Delay opacity stack set up to AtBeginDvi (392e4548e)

Joseph Wright joseph.wright at morningstar2.co.uk
Sun Jan 17 23:24:29 CET 2021


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

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

commit 392e4548efe82564bf9aef9ff5f07334d91dadd0
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Jan 17 22:24:29 2021 +0000

    Delay opacity stack set up to AtBeginDvi


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

392e4548efe82564bf9aef9ff5f07334d91dadd0
 l3backend/l3backend-color.dtx | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/l3backend/l3backend-color.dtx b/l3backend/l3backend-color.dtx
index 792237ba3..d80e34a94 100644
--- a/l3backend/l3backend-color.dtx
+++ b/l3backend/l3backend-color.dtx
@@ -1189,10 +1189,15 @@
 %    \begin{macrocode}
 \cs_if_exist:NT \pdfmanagement_add:nnn
   {
-    \@@_backend_stack_init:Nnn \c_@@_backend_opacity_stack_int
-      { page ~ direct } { /color.opa 1 ~ gs }
-    \pdfmanagement_add:nnn { Page / Resources / ExtGState }
-      { color.opa 1 } { << /ca ~ 1 /CA ~ 1 >> }
+    \cs_if_exist:NTF \AtBeginDvi
+      { \AtBeginDvi }
+      { \use:n }
+        {
+          \@@_backend_stack_init:Nnn \c_@@_backend_opacity_stack_int
+            { page ~ direct } { /color.opa 1 ~ gs }
+          \pdfmanagement_add:nnn { Page / Resources / ExtGState }
+            { color.opa 1 } { << /ca ~ 1 /CA ~ 1 >> }
+        }
   }
 %    \end{macrocode}
 % \end{variable}





More information about the latex3-commits mailing list.