[latex3-commits] [git/LaTeX3-latex3-latex3] main: Correct opacity creation with (x)dvipdfmx (fixes #1106) (37eea226d)
Joseph Wright
joseph.wright at morningstar2.co.uk
Fri Jul 1 21:09:53 CEST 2022
Repository : https://github.com/latex3/latex3
On branch : main
Link : https://github.com/latex3/latex3/commit/37eea226d4761c6ec87710df3f8ba76591cb831d
>---------------------------------------------------------------
commit 37eea226d4761c6ec87710df3f8ba76591cb831d
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Jul 1 20:09:53 2022 +0100
Correct opacity creation with (x)dvipdfmx (fixes #1106)
>---------------------------------------------------------------
37eea226d4761c6ec87710df3f8ba76591cb831d
l3backend/CHANGELOG.md | 1 +
l3backend/l3backend-opacity.dtx | 4 ++--
l3experimental/l3opacity/testfiles/m3opacity001.xetex.tlg | 8 ++++----
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/l3backend/CHANGELOG.md b/l3backend/CHANGELOG.md
index bf9ec9f51..e9bf8a140 100644
--- a/l3backend/CHANGELOG.md
+++ b/l3backend/CHANGELOG.md
@@ -8,6 +8,7 @@ this project uses date-based 'snapshot' version identifiers.
#### Fixed
- Do not include PDF file to count pages on pdfTeX
+- Opacity creation with `dvipdfmx`/XeTeX (issue [\#1106](https://github.com/latex3/latex3/issues/1106))
## [2022-04-20]
diff --git a/l3backend/l3backend-opacity.dtx b/l3backend/l3backend-opacity.dtx
index 4c5de69fb..dc5f5d5d3 100644
--- a/l3backend/l3backend-opacity.dtx
+++ b/l3backend/l3backend-opacity.dtx
@@ -181,7 +181,7 @@
{ opacity #1 }
{ << /ca ~ #1 /CA ~ #1 >> }
%<*dvipdfmx|xetex>
- \__kernel_backend_literal:n
+ \__kernel_backend_literal_pdf:n
%</dvipdfmx|xetex>
%<*luatex|pdftex>
\__kernel_color_backend_stack_push:nn \c_@@_backend_stack_int
@@ -236,7 +236,7 @@
{ opacity.stroke #1 }
{ << /CA ~ #2 >> }
%<*dvipdfmx|xetex>
- \__kernel_backend_literal:n
+ \__kernel_backend_literal_pdf:n
%</dvipdfmx|xetex>
%<*luatex|pdftex>
\__kernel_color_backend_stack_push:nn \c_@@_backend_stack_int
diff --git a/l3experimental/l3opacity/testfiles/m3opacity001.xetex.tlg b/l3experimental/l3opacity/testfiles/m3opacity001.xetex.tlg
index 564478ae8..fa25dfbb7 100644
--- a/l3experimental/l3opacity/testfiles/m3opacity001.xetex.tlg
+++ b/l3experimental/l3opacity/testfiles/m3opacity001.xetex.tlg
@@ -133,7 +133,7 @@ and I'll forget about whatever was undefined.
.\glue 3.33333 plus 1.66498 minus 1.11221
.\OT1/cmr/m/n/10 >
.\OT1/cmr/m/n/10 >
-.\special{/opacity.fill1 gs/opacity.stroke gs}
+.\special{pdf:literal /opacity.fill1 gs/opacity.stroke gs}
.\OT1/cmr/m/n/10 H
.\OT1/cmr/m/n/10 e
.\OT1/cmr/m/n/10 l
@@ -259,7 +259,7 @@ and I'll forget about whatever was undefined.
.\OT1/cmr/m/n/10 1
.\OT1/cmr/m/n/10 >
.\OT1/cmr/m/n/10 >
-.\special{/opacity.fill gs/opacity.stroke1 gs}
+.\special{pdf:literal /opacity.fill gs/opacity.stroke1 gs}
.\OT1/cmr/m/n/10 H
.\OT1/cmr/m/n/10 e
.\OT1/cmr/m/n/10 l
@@ -403,7 +403,7 @@ and I'll forget about whatever was undefined.
.\glue 3.33333 plus 1.66498 minus 1.11221
.\OT1/cmr/m/n/10 >
.\OT1/cmr/m/n/10 >
-.\special{/opacity.fill0.5 gs/opacity.stroke gs}
+.\special{pdf:literal /opacity.fill0.5 gs/opacity.stroke gs}
.\OT1/cmr/m/n/10 H
.\OT1/cmr/m/n/10 e
.\OT1/cmr/m/n/10 l
@@ -531,7 +531,7 @@ and I'll forget about whatever was undefined.
.\OT1/cmr/m/n/10 5
.\OT1/cmr/m/n/10 >
.\OT1/cmr/m/n/10 >
-.\special{/opacity.fill gs/opacity.stroke0.5 gs}
+.\special{pdf:literal /opacity.fill gs/opacity.stroke0.5 gs}
.\OT1/cmr/m/n/10 H
.\OT1/cmr/m/n/10 e
.\OT1/cmr/m/n/10 l
More information about the latex3-commits
mailing list.