[pstricks] polygon edges

Patrick Drechsler patrick.drechsler at gmx.net
Tue May 27 00:52:43 CEST 2003


Hi,

I'm trying to draw a polygon with connecting lines:

\documentclass{article}
 \usepackage{pst-optic}
\begin{document}
\begin{pspicture}(-5,-5)(5,5)
  \pnode(-3.75,-2){O1}
  \pnode(3.75,-2){O2}
  \pnode(-4.75,-2.75){O3}
  \pnode(4.75,-2.75){O4}
  \pnode(-4.75,-5){O5}
  \pnode(4.75,-5){O6}
  \pspolygon[linewidth=3pt](O1)(O2)(O4)(O3)
  \psline[linewidth=3pt](O4)(O6)\psline[linewidth=3pt](O3)(O5)
\end{pspicture}
\end{document}

There's an edge in the drawing at the coordinates O3 and O5. 

Is there an error in my code (or a better way of accomplishing this)?

TIA,

Patrick

,----[ *File List* ]
| pstricks_polygon.tex
|  article.cls    2001/04/21 v1.4e Standard LaTeX document class
|   size10.clo    2001/04/21 v1.4e Standard LaTeX file (size option)
| pst-optic.sty    2001/06/20 v1.1 PSTricks color colompatibility (DPC)
| pstricks.sty    1997/03/25 package wrapper for PSTricks pstricks.tex
|    color.sty    1999/02/16 v1.0i Standard LaTeX Color (DPC)
|    color.cfg    2003/03/08 v1.0 MiKTeX 'color' configuration
|    dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
| dvipsnam.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
`----

-- 
Psychiatrists say that 1 of 4 people are mentally ill. 
Check 3 friends. If they're OK, you're it. 





More information about the PSTricks mailing list