[dvipdfmx] "color" stack for transparency
Ulrike Fischer
news3 at nililand.de
Wed Aug 7 15:49:23 CEST 2019
Hello
pdflatex has more than one color stack. With it it is possible to
transport both color and transparency to the next page:
\documentclass{article}
\usepackage{lipsum,xcolor,transparent}
\begin{document}
\color{red}
some text in red
\transparent{0.3}
more text
\lipsum
\end{document}
With xdvipdfmx it seems not be possible currently. The transparency is
reset at the page break and I didn't find anything that looked as if
it could be used as stack.
\documentclass{article}
\usepackage{lipsum}
\begin{document}
\special{pdf:bc [ 1 0 0 ]}
some text in red
\special {pdf:put @resources << /ExtGState <</duckopacity <</ca 0.2/CA 0.2>>>> >>}
\special {pdf:code /duckopacity gs}
more text
\lipsum
\special{pdf:ec}
\end{document}
Is there some trick to get it working. If not, would it be possible to
extend xdvipdfmx here?
(with dvips it is at least possible to add the transparency to the
color command and it is then passed to the next page with it. But an
*independant* stack is imho more useful as it doesn't require changes
in the existing color packages).
--
Mit freundlichen Grüßen
Ulrike Fischer
More information about the dvipdfmx
mailing list