[pstricks] Trouble with \pssin inside clipping path

Uwe Siart uwe.siart at tum.de
Sat May 9 11:54:54 CEST 2015


Dear all,

does anyone understand what is going wrong here? I tried to create a
clipping path using \pscustom. When the path includes \pssin then the
coordinates seem to be screwed up for subsequent objects.

Replacing \pssin by \psline would give expected results.

% --------------------------------
\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-coil}
\begin{document}
\begin{pspicture}[showgrid=true](0,-4)(8,4)
  \psclip{%
  \pscustom{%
    \psline(0, 2)(4,4)%
    \pssin(4,4)(8,4)% \psline instead of \pssin would work
    \psline(8,4)(8,-4)%
  \closepath}%
  }
  \psframe[fillstyle=solid](1,-3)(7,3)
  \endpsclip
\end{pspicture}
\end{document}
% --------------------------------

-- 
Uwe


More information about the PSTricks mailing list