1
\documentclass[border=15pt,pstricks,12pt]{standalone}
\begin{document}
\begin{pspicture}[unit=1.5cm](-2,-2)(2,2)
%%%
\psclip{\pscircle(0,0){1.2}}
\psframe[dimen=m,fillstyle=vlines,linestyle=none](-.8,-1.2)(.8,1.2)%%
\endpsclip%%
\psellipse[fillstyle=solid,fillcolor=white](0,0)(1,.8)
%%%
\psclip{\pscircle[linestyle=none](0,0){1.2}}
\psframe[dimen=m,linestyle=dashed,dash=.1 .05](-.8,-1.2)(.8,1.2)%%
\endpsclip%%
\end{pspicture}
\end{document}

enter image description here

2

Didn't work with XeLaTeX which has a problem with the command `eoclip':

\documentclass[border=15pt,pstricks,12pt]{standalone}
\begin{document}

\begin{pspicture}[unit=1.5cm](-2,-2)(2,2)
\psclip[clipcommand=eoclip]{
  \pscustom{%        
    \pscircle(0,0){1.2}
    \psellipse(0,0)(1,.8)}%
  }
\psframe[dimen=middle,fillstyle=hlines,linestyle=dashed,dash=0.1 
0.05](-.8,-1.25)(.8,1.25)
\endpsclip
\psline[linestyle=dashed,dash=0.1 0.05](-0.8,-0.55)(-0.8,0.55)
\psline[linestyle=dashed,dash=0.1 0.05](0.8,-0.55)(0.8,0.55)
\end{pspicture}

\end{document}

enter image description here

  • :-), Your code is missing. See my code and my picture! :-) – user173875 May 13 at 13:23
  • Could have been done by yourself ... – user187802 May 13 at 13:42
  • :-), I am a curious person so I usually learn new things. And can you see a other question by myself ... – user173875 May 13 at 13:52
  • What is the " dimen=middle "? Why do we need it? – user173875 May 13 at 14:14
  • dimen=middle is the default for psline, but not for psframe – user187802 May 13 at 14:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.