[pstricks] InsideArrow
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Fri Dec 5 16:46:58 CET 2008
Zbigniew Nitecki schrieb:
> Can the InsideArrow option be used for either \psarc or \psellipticarc?
> I tried to use it in the code below; there were no error messages, but
> the arrows didn't show up:
not yet possible for \psarc
However, cretae an own macro:
\documentclass[11pt,twoside]{article}
\usepackage{pstricks}
\usepackage{pstricks-add}
\def\psarcArrow[#1](#2)#3#4#5#6{%
\psarc[#1,arrows=-](#2){#3}{#4}{#5}
\multido{\iA=1+1}{#6}{%
\psarc[#1](#2){#3}%
{!#5 #4 sub #6 1 add div \iA\space 1 sub mul #4 add}%
{!#5 #4 sub #6 1 add div \iA\space mul #4 add}}}
\begin{document}
\defineTColor{tGray40}{gray!40}
\defineTColor{tBlack40}{black!40}
\defineTColor{tBlack80}{black!80}
\begin{pspicture}(-3,-0.5)(3,3)
\multido{\rt=0+18}{11}{%
\pscircle[style=tBlack40, linestyle=none]%
(!\rt\space cos 2 mul \rt\space sin 2 mul){0.75}}
\psline{<->}(-2.5,0)(2.5,0)
\psline{->}(0,0)(0,2.5)
\psarcArrow[linewidth=1.2pt,arrows=->,
arrowscale=1.5](0,0){2}{0}{180}{3}
\end{pspicture}
\end{document}
Herbert
>
> \begin{pspicture}(-3,-0.5)(3,3)
> \defineTColor{tGray40}{gray!40}
> \defineTColor{tBlack40}{black!40}
> \defineTColor{tBlack80}{black!80}
> \multido{\rt=0+18}{11}{%
> \pscircle[style=tBlack40, linestyle=none](!\rt\space cos 2
> mul \rt\space sin 2 mul){0.75}
> }
> \psline{<->}(-2.5,0)(2.5,0)
> \psline{->}(0,0)(0,2.5)
> \psarc[linewidth=1.2pt,ArrowInside=->,
> ArrowInsideNo=3](0,0){2}{0}{180}
> \multido{\rt=0+5}{4}{%
> \psellipticarc[ArrowInside=->, ArrowInsideNo=3](!0 \rt\space
> tan 2 mul neg)%
> (!2 \rt\space cos div dup){!\rt\space}{!180 \rt\space sub}
> }
> \end{pspicture}
>
>
> Zbigniew Nitecki
> Department of Mathematics
> Tufts University
> Medford, MA 02155
>
> telephones:
> Office (617)627-3843
> Dept. (617)627-3234
> Dept. fax (617)627-3966
> http://www.tufts.edu/~znitecki/
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> PSTricks mailing list
> PSTricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
More information about the PSTricks
mailing list