[pstricks] problem with \psRotation

Hamed hhaalsalmi at kau.edu.sa
Sun Oct 7 20:32:59 CEST 2007


Hi all,

 When I try to compile the following 

 

\documentclass[12pt]{article}

\usepackage{pst-plot}

\usepackage{pst-3dplot}

\usepackage{bm}% boldmath

\usepackage{pst-grad}

\usepackage{pst-node}

 

\usepackage{pstricks-add} % psellipsearc

\usepackage{pstricks}

\makeatletter

\def\psRotation#1(#2,#3)#4{%

  \rput{#1}(#2,#3){%

    \psellipticarc[linewidth=.8pt]{->}(0,-0.1)(0.4,0.15){120}{70}

    \ifdim#1pt>\z@\rput[l]{*0}(0.4,0){#4}\else\rput[l](0.4,0){#4}\fi

  }%

} \makeatother

 \pagestyle{empty}

\parindent=0pt

\begin{document}

\psset{xunit=.75,yunit=.75}

\begin{pspicture}(1,1)(2,2)

\psaxes [ticks=none]{->}(0,0)(-1,-4)(9,4)

\psRotation{90}(9,0){}

\pscustom{%

\pscurve[liftpen=1,linecolor=blue](2,3)(3,3.2)(4,2.9)(5,2.5)(6,2)(7,2.3)(8,2
)

 \gsave

\pscurve[liftpen=1](8,-2)(7,-2.3)(6,-2)(5,-2.5)(4,-2.9)(3,-3.2)(2,-3)

\fill[fillstyle=solid,fillcolor=olive!20]

 \grestore

 }

 
\pscurve[liftpen=2,linecolor=red](8,-2)(7,-2.3)(6,-2)(5,-2.5)(4,-2.9)(3,-3.2
)(2,-3)

 \psellipse[fillstyle=solid,fillcolor=lightgray,linestyle=dashed](8,0)(.5,2)

 \psellipse[fillstyle=solid,fillcolor=lightgray,linestyle=dashed](2,0)(.5,3)

 
\psellipse[fillstyle=solid,fillcolor=lightgray!20,linestyle=dashed](5,0)(.5,
2.5)

 \psline[linecolor=black](1,0)(9,0)

 \psline[linewidth=.2cm,linecolor=red](5,0)(5,2.5)

 \psline[linecolor=blue](2,0)(2,3)

 \psline[linecolor=blue](8,0)(8,2)

 \psRotation{90}(9,0){}

 \rput(2,-.5){ $a$}  \rput(8,-.5) { $b$}

\rput(6,3) { $y=f(x)$}  \rput(5,-.5) { $x$}

\rput(3,3) { $\mathcal{S}$}

\rput(-.5,2.7){ $y$}

\rput(8.7,-.5){ $x$}

 

\end{pspicture}

\end{document}

 

I can not get the DVI file but, when I comet  \psRotation I have no problem
. Thanks

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20071007/96e3da70/attachment.html 


More information about the PSTricks mailing list