[latex3-commits] [git/LaTeX3-latex3-pdfresources] backendtest: overprint/xelatex experiment (350612d)
Ulrike Fischer
fischer at troubleshooting-tex.de
Mon Jul 15 16:08:21 CEST 2019
Repository : https://github.com/latex3/pdfresources
On branch : backendtest
Link : https://github.com/latex3/pdfresources/commit/350612d7fd97af1788500962720e29a2b6d37224
>---------------------------------------------------------------
commit 350612d7fd97af1788500962720e29a2b6d37224
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Jul 15 16:08:21 2019 +0200
overprint/xelatex experiment
>---------------------------------------------------------------
350612d7fd97af1788500962720e29a2b6d37224
experiments/overprint-xelatex.tex | 49 +++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/experiments/overprint-xelatex.tex b/experiments/overprint-xelatex.tex
new file mode 100644
index 0000000..67f6aa0
--- /dev/null
+++ b/experiments/overprint-xelatex.tex
@@ -0,0 +1,49 @@
+% see also https://tex.stackexchange.com/questions/500025/tikz-tcolorbox-overprint-issue
+\documentclass{book}
+\usepackage[cmyk]{xcolor}
+%\usepackage[overprint]{colorspace}
+\usepackage[most]{tcolorbox}
+\usepackage{l3pdf}
+\ExplSyntaxOn
+\pdf_uncompress:
+\pdf_object_new:nn {opOFF}{dict}
+\pdf_object_new:nn {opON}{dict}
+\pdf_object_new:nn {opextgs}{dict}
+\AtBeginDocument{
+\pdf_object_write:nx {opextgs}
+ {
+ /opON \c_space_tl \pdf_object_ref:n{opON}
+ /opOFF\c_space_tl \pdf_object_ref:n{opOFF}
+ }
+\pdf_object_write:nn {opOFF}{/Type /ExtGState /op~false /OP~false /OPM~0}
+\pdf_object_write:nn {opON}{/Type /ExtGState /op~true /OP~true /OPM~1}
+\makeatletter
+%\pgfutil at addpdfresource@extgs
+%{\pdf_object_ref:n{opextgs}}
+\special{pdf:pageresources<</ExtGState<</opON \c_space_tl \pdf_object_ref:n{opON}
+ /opOFF\c_space_tl \pdf_object_ref:n{opOFF} >>>>}
+}
+
+\usepackage{atbegshi}
+%\AtBeginShipout{\AtBeginShipoutAddToBox{\special{pdf:code~/opON~gs}}}%
+\AtBeginShipout{\AtBeginShipoutAddToBox{\special{pdf:code /SPCop gs}}}%
+
+\ExplSyntaxOff
+\newtcolorbox{casestudy}{enhanced,boxrule=0pt,boxsep=0pt,colframe=red,colback=yellow,
+sharp corners, arc=5pt, rounded corners=southwest,left=9pt,right=0pt,top=5.5pt,bottom=3.8pt,
+toptitle=0pt,bottomtitle=0pt,lefttitle={0pt},toprule=0pt,bottomrule=0pt,leftrule=0pt,rightrule=0pt,
+width=420.56pt,after skip=0pt,before skip=0pt,
+titlerule=0pt,titlerule style={green,line width=0pt},frame hidden,
+}
+
+
+\definecolor{mg}{cmyk}{0,1,0,0}
+\definecolor{cn}{cmyk}{1,0,0,0}
+\definecolor{bk}{cmyk}{0,0,0,1}
+
+\begin{document}
+\colorbox{mg}{bk test-2}
+
+\newpage
+\colorbox{mg}{bk test-2}
+\end{document}
\ No newline at end of file
More information about the latex3-commits
mailing list