[latex3-commits] [git/LaTeX3-latex3-pdfresources] backendtest: starting extgstate (737f72f)
Ulrike Fischer
fischer at troubleshooting-tex.de
Wed Jun 26 19:29:24 CEST 2019
Repository : https://github.com/latex3/pdfresources
On branch : backendtest
Link : https://github.com/latex3/pdfresources/commit/737f72f43ee826f43675286e9c6e17bc665e8529
>---------------------------------------------------------------
commit 737f72f43ee826f43675286e9c6e17bc665e8529
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Wed Jun 26 19:29:24 2019 +0200
starting extgstate
>---------------------------------------------------------------
737f72f43ee826f43675286e9c6e17bc665e8529
experiments/dvips-colorspace.tex | 26 +++++++++++++++++++
experiments/dvips-transparency.tex | 53 ++++++++++++++++++++++++++++++++++++++
2 files changed, 79 insertions(+)
diff --git a/experiments/dvips-colorspace.tex b/experiments/dvips-colorspace.tex
new file mode 100644
index 0000000..df39574
--- /dev/null
+++ b/experiments/dvips-colorspace.tex
@@ -0,0 +1,26 @@
+\documentclass{article}
+%The same seems to be the case for patterns, as there exists a PostScript command makepattern
+%https://chat.stackexchange.com/transcript/message/50669431#50669431
+\begin{document}
+
+\special{"
+/DeviceRGB setcolorspace
+10 setlinewidth
+0 0 moveto
+100 0 lineto
+100 100 lineto
+0 100 lineto
+closepath
+gsave
+0 0 1 setcolor
+% 0.5 .setopacityalpha
+fill
+grestore
+gsave
+% 0.8 .setopacityalpha
+stroke
+grestore
+}%
+\makebox[100bp]{\rule{0pt}{100bp}}
+
+\end{document}
\ No newline at end of file
diff --git a/experiments/dvips-transparency.tex b/experiments/dvips-transparency.tex
new file mode 100644
index 0000000..685d73a
--- /dev/null
+++ b/experiments/dvips-transparency.tex
@@ -0,0 +1,53 @@
+% don't forget -dNOSAFER!!!
+% ps2pdf -dCompressStreams=false -dCompressPages=false -dNOSAFER dvips-transparency.ps
+
+\documentclass{article}
+%https://chat.stackexchange.com/transcript/message/50669099#50669099
+\begin{document}
+Hello
+%works
+%\special{ps:
+% systemdict /.setopacityalpha known
+% {0.5 .setopacityalpha}{mark /CA 0.5 /ca 0.5 /SetTransparency pdfmark}
+% ifelse
+%}
+World!
+
+%seems to do nothing ...
+%\special{ps:
+% mark /CA 0.5 /ca 0.5 /SetTransparency pdfmark
+% }
+
+World!
+
+% works too
+%\special{ps: 0.5 .setopacityalpha}
+World!
+
+% overprint? transparency fill/stroke?
+\end{document}
+
+
+\special{"
+ 10 setlinewidth
+ 0 0 moveto
+ 100 0 lineto
+ 100 100 lineto
+ 0 100 lineto
+ closepath
+ gsave
+ 0 0 1 setrgbcolor
+ 0.5 .setopacityalpha
+ fill
+ grestore
+ gsave
+ 0.8 .setopacityalpha
+ stroke
+ grestore
+}%
+\makebox[100bp]{\rule{0pt}{100bp}}
+
+\end{document}
+
+\bf
+\bye
\ No newline at end of file
More information about the latex3-commits
mailing list