I created this file :
\documentclass[10pt]{article}
\usepackage{pstricks-add}
\pagestyle{empty}
\begin{document}
\newrgbcolor{zzttqq}{0.6 0.2 0}
\psset{xunit=1.0cm,yunit=1.0cm,algebraic=true,dotstyle=o,dotsize=3pt
0,linewidth=0.8pt,arrowsize=3pt 2,arrowinset=0.25}
\begin{pspicture*}(-4.3,-2.6)(7.06,6.3)
\psaxes[labelFontSize=\scriptstyle,xAxis=true,yAxis=true,Dx=1,Dy=1,ticksize=-2pt 0,subticks=2]{->}(0,0)(-4.3,-2.6)(7.06,6.3)
\pspolygon[linecolor=zzttqq,fillcolor=zzttqq,fillstyle=solid,opacity=0.1](1,2)(3,2)(3,4)(1,4)
\psline[linecolor=zzttqq](1,2)(3,2)
\psline[linecolor=zzttqq](3,2)(3,4)
\psline[linecolor=zzttqq](3,4)(1,4)
\psline[linecolor=zzttqq](1,4)(1,2)
\begin{scriptsize}
\psdots[dotstyle=*,linecolor=blue](1,2)
\rput[bl](1.08,2.12){\blue{$A$}}
\psdots[dotstyle=*,linecolor=blue](3,2)
\rput[bl](3.08,2.12){\blue{$B$}}
\psdots[dotstyle=*,linecolor=blue](3,4)
\rput[bl](3.08,4.12){\blue{$C$}}
\psdots[dotstyle=*,linecolor=blue](1,4)
\rput[bl](1.08,4.12){\blue{$D$}}
\end{scriptsize}
\end{pspicture*}
\end{document}
He gives me 58 errors. I have not realla clue why these errors apperar.
Perhaps it has problems with the colors.
Do i need to include the tikz package or sth else?
Best Answer
You have two options:
Compile with
latex
instead ofpdflatex
. If you use a graphical editor such as TeXMaker, TeXShop, TeXWorks, TeXnicCenter etc., you have to find the button to change this. In the terminal you can simply enterlatex <yourfilenamehere>.tex
.latex
will output a.dvi
file, then you have to convert to.ps
then to.pdf
. (latex -> dvips -> ps2pdf
)Tell GeoGebra to export to TikZ. That will compile directly to PDF.