[pstricks] almost closed c with pstricks

Herbert Voss Herbert.Voss at FU-Berlin.DE
Sat Jul 17 06:15:50 CEST 2010

Am 16.07.2010 20:49, schrieb Herbert Voss:
> Am 16.07.2010 20:00, schrieb mathias legrand:
>> is there a specific known manner to create example 53 (beginfig(53))
>> of the following webpage :
>> http://zoonek.free.fr/LaTeX/Metapost/metapost.html
>> with pstricks. I know how to draw it with some personal tricks but I feel
>> there is much better.

or a more general one. .5 and 2 for the radii can also be set
as \def\r{0.5 } and \def\R{2 }


\def\Rr{4 }
\def\Alpha{357 }

  \psarc(0,0){2}{!360 \Alpha sub}{\Alpha}
  \psarcn(0,0){0.5}{!\Alpha sin \Rr mul ASIN RadtoDeg}
                   {!360 \Alpha sub sin \Rr mul ASIN RadtoDeg}
  \psline(!0.5 360 \Alpha sub sin \Rr mul ASIN RadtoDeg PtoC)
         (!2 360 \Alpha sub PtoC)


More information about the PSTricks mailing list