[latex3-commits] [git/LaTeX3-latex3-pdfresources] backendtest: more experiments with overprint (b8ad8c3)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Jul 15 17:17:50 CEST 2019


Repository : https://github.com/latex3/pdfresources
On branch  : backendtest
Link       : https://github.com/latex3/pdfresources/commit/b8ad8c3416bc684be6bf6812d774b4babd448170

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

commit b8ad8c3416bc684be6bf6812d774b4babd448170
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Jul 15 17:17:50 2019 +0200

    more experiments with overprint


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

b8ad8c3416bc684be6bf6812d774b4babd448170
 experiments/overprint-xelatex.tex | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/experiments/overprint-xelatex.tex b/experiments/overprint-xelatex.tex
index 67f6aa0..428e1b6 100644
--- a/experiments/overprint-xelatex.tex
+++ b/experiments/overprint-xelatex.tex
@@ -20,13 +20,17 @@
 \makeatletter
 %\pgfutil at addpdfresource@extgs
 %{\pdf_object_ref:n{opextgs}}
+% this works on its own, but not together with the pgf method to add a resource!!
+% breaks e.g. if there is a colorbox in the document.
 \special{pdf:pageresources<</ExtGState<</opON \c_space_tl \pdf_object_ref:n{opON}
   /opOFF\c_space_tl \pdf_object_ref:n{opOFF} >>>>}
 }
 
 \usepackage{atbegshi}
+% works but is problematic for white text, see second color box....
 %\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,
@@ -46,4 +50,6 @@ titlerule=0pt,titlerule style={green,line width=0pt},frame hidden,
 
 \newpage
 \colorbox{mg}{bk test-2}
+
+\colorbox{mg}{\textcolor{white}{white text}}
 \end{document}
\ No newline at end of file





More information about the latex3-commits mailing list