[pstricks] color and pst-optexp
Christoph Bersch
christoph at bersch.net
Sat Nov 29 21:44:34 CET 2014
Dear Patrice,
Am 29.11.2014 um 07:29 schrieb Patrice MÉGRET:
>
> I have still a small trouble that I think is coming from pst-optexp:
> in the code sample below, I use \color{blue} to type the text in
> blue. The text before the picture is indeed in blue but after the
> picture, it is switched to black if the optical components in the
> picture are on. If I comment out the optical components, the text
> after the picture is in blue as it should.
thank you for the minimal example. I could track this down to the
\psrotate macro from pstricks-add. This is used to rotate the optical
components (also used if the angle is zero).
The following example shows the same effect, the text after the
pspicture is black instead of blue:
\listfiles
\documentclass{report}
\usepackage{pstricks-add}
\begin{document}
\color{blue}
Some text before the picture.
\begin{pspicture}(-1,-1)(6.5,3)
\psrotate(0,0){30}{\psframe(0,0)(2,1)}
\end{pspicture}
Some text after the picture.
\end{document}
I tested using
pstricks-add.tex 2014/07/22 v3.75 `PSTricks-add' (hv)
However, I cannot see, where the problem might be.
Best regards,
Christoph
More information about the PSTricks
mailing list