Graphics, Figures & TablesPolygons with PSTricks

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Polygons with PSTricks

Post by coachbennett1981 »

I am having difficulty plotting and isoc. triangle in PSTricks. I have found pst-poly, but when I try to graph \PstTriangle I keep getting errors.

Argument of \special@length has an extra }.
<inserted text>
\par
\end{pspicture}

is their an easy way to correct this? I need to draw an equilateral Triangle and some other quads (rhombus, etc).

As always, any input in most appreciated.

nick

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Polygons with PSTricks

Post by gmedina »

Hi,

apparently you are enclosing \PstTriangle inside a pspicture environment. If that's the case, then don't use the pspicture environment. Try something like this:

Code: Select all

\documentclass{article}
\usepackage{pst-poly}

\begin{document}

\PstTriangle

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Polygons with PSTricks

Post by CrazyHorse »

coachbennett1981 wrote:I am having difficulty plotting and isoc. triangle in PSTricks. I have found pst-poly, but when I try to graph \PstTriangle I keep getting errors.

Argument of \special@length has an extra }.
<inserted text>
\par
\end{pspicture}

is their an easy way to correct this? I need to draw an equilateral Triangle and some other quads (rhombus, etc).
you have an too old pstricks version. Update it

Herbert
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Re: Polygons with PSTricks

Post by coachbennett1981 »

Where can I update PStricks? I have gone to the website, but I am unable to figure it out..
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Polygons with PSTricks

Post by CrazyHorse »

coachbennett1981 wrote:Where can I update PStricks? I have gone to the website, but I am unable to figure it out..
which TeX distribution do you have?

Herbert
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Re: Polygons with PSTricks

Post by coachbennett1981 »

I use TeXShop version 2.33 for my Mac and I am currently updated with the software.
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Polygons with PSTricks

Post by CrazyHorse »

coachbennett1981 wrote:I use TeXShop version 2.33 for my Mac and I am currently updated with the software.
put \listfiles into the above test document and send the file
list. However, you can get the latest files from
http://archiv.dante.de/~herbert/PSTricks-TDS (for broasing)
http://archiv.dante.de/~herbert/PSTricks-TDS.tgz

Herbert
Post Reply