[pstricks] Problems with multido package

Rafael Castro me1catrr at uco.es
Sun Jun 19 17:30:07 CEST 2005


Thanks Herbert, finally I could use this package (I really don't not 
how). I have been using this weekend Pstricks in order to get some 
experience and it is really wonderful. I have tried this code from 
internet, but I have two questions:

1. There is some information about how to write matematical formulas 
with Postscript, becuase for me it is quite difficult.
2. I have trouble when I run this code to pdf.

Thanks for any help

\documentclass[12pt]{article}
\usepackage{pstricks}
\definecolor{light}{rgb}{0.3,0.4,0.6}
\usepackage{pst-3dplot}
\pagestyle{empty}
\def\drawCircles{%
%   \pstThreeDCoor[xMax=14,yMax=14,zMax=7.5,linewidth=0.1pt]
  \parametricplotThreeD[xPlotpoints=100](80,360)(0,360){%
    /k 2 def /k2 4 def
    t cos k mul 3 u sin k mul add mul
    t sin k mul 3 u sin k mul add mul
    u cos k2 mul
  }
  \parametricplotThreeD[yPlotpoints=75](0,360)(80,360){%
    /k 2 def /k2 4 def
    u cos k mul 3 t sin k mul add mul
    u sin k mul 3 t sin k mul add mul
    t cos k2 mul
  }
%   
\parametricplotThreeD[xPlotpoints=100,yPlotpoints=1,linecolor=red,linewidth=2pt](80,360)(0,360){%
%       /k 2 def /k2 4 def
%       t cos k mul 2 u sin k mul add mul
%       t sin k mul 2 u sin k mul add mul
%       u cos k2 mul
%   }
  
\parametricplotThreeD[yPlotpoints=1,linecolor=red,linewidth=2pt](0,360)(80,360){%
    /k 2 def /k2 4 def
    u cos k mul 3 t sin k mul add mul
    u sin k mul 3 t sin k mul add mul
    t cos k2 mul
  }
}

\begin{document}

\psset{unit=0.75}
\begin{pspicture}(-5,-5)(5,5)
    \psset{Beta=20,Alpha=50,linewidth=0.1pt,linecolor=light}
    \drawCircles
\end{pspicture}

\clearpage
%\psset{unit=0.75}
\begin{pspicture}(-5,-5)(5,5)
    \psset{Beta=90,Alpha=50,linewidth=0.1pt,linecolor=light}
    \drawCircles
\end{pspicture}

\clearpage
%\psset{unit=0.75}
\begin{pspicture}(-5,-5)(5,5)
    \psset{Beta=0,Alpha=50,linewidth=0.1pt,linecolor=light}
    \drawCircles
\end{pspicture}

\end{document}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: me1catrr.vcf
Type: text/x-vcard
Size: 414 bytes
Desc: not available
Url : http://tug.org/pipermail/pstricks/attachments/20050619/9c0eb492/attachment.vcf 


More information about the PSTricks mailing list