[pstricks] Problem with \psbezier inside \pscustom

Herbert Voss Herbert.Voss at FU-Berlin.DE
Mon Jun 9 09:10:30 CEST 2008


Michael Sharpe schrieb:
> There seems to be a glitch, where a line is drawn from the origin to  
> each bezier start-point. In this example, taken from LGC2, p290, you  
> see only one such line.
> 
> \documentclass[11pt]{article}
> \usepackage{pstricks}
> \pagestyle{empty}
> \begin{document}
> \begin{pspicture}(0,-.25)(6,3)
> \pscustom[fillstyle=none]{%
> \psbezier(0,0)(1,1)(1,-1)(2,0) \psbezier(2,0)(3,1)(1,1)(2,2)
> \closepath}
> \end{pspicture}
> \end{document}

when using \psbezier inside of \pscustom the last point of
the first bezier curve is taken as first point for the
second one. This was a bug in the old pstricks.tex and I do not
really know, when I fixed it. However it seems like a bug in
the book example, it should be:

\documentclass[11pt]{article}
\usepackage{pstricks}
\pagestyle{empty}
\begin{document}
\begin{pspicture}(0,-.25)(6,3)
\pscustom[fillstyle=none]{%
\psbezier(0,0)(1,1)(1,-1)(2,0) \psbezier(3,1)(1,1)(2,2)
\closepath}
\end{pspicture}
\end{document}

then (2,0) is the first point for the second bezier, the reason
why it has only three arguments.

Herbert




More information about the PSTricks mailing list