[pstricks] linewidth

Luis Sequeira lfsequeira at gmail.com
Tue Mar 5 12:14:12 CET 2013


> Dear Herbert,
> 
> I was thinking to know pstricks but I become crazy with this simple code:
> 
> 
> \documentclass{report}
> \usepackage{pstricks}
> 
> \begin{document}
> 
> \begin{pspicture}(4,4)
> \psline[linewidth=0pt,linestyle=dashed](1,1)
> \end{pspicture}
> 
> \end{document}
> 
> When linestyle is 'dotted' and linewidth is 0pt nothing is displayed as I expect but when linestyle is 'dashed' or 'solid' with linewidth=0pt, a line is nevertheless drawn?
> Is the normal behavior?

It seems a bit strange, I agree (I actually get a line in every case)
Anyway, the right way  to have a line (say, in a path, like in a \pscustom) but not draw anything is NOT to set the width to zero; you should use linestyle=none. e.g.:

\psline[linestyle=none](1,1)


Luis Sequeira




More information about the PSTricks mailing list