diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 00:56:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 00:56:57 +0000 |
commit | f07bb53970ee2ecc53f81a206a3d3a67ef665e4a (patch) | |
tree | 6f57a1d62971db79e5ff023bdfd83b22cb971dc9 /Master/texmf-dist/doc/generic/pstricks/lgc/4-7-4.inl | |
parent | 007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (diff) |
doc 6
git-svn-id: svn://tug.org/texlive/trunk@85 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/generic/pstricks/lgc/4-7-4.inl')
-rw-r--r-- | Master/texmf-dist/doc/generic/pstricks/lgc/4-7-4.inl | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pstricks/lgc/4-7-4.inl b/Master/texmf-dist/doc/generic/pstricks/lgc/4-7-4.inl new file mode 100644 index 00000000000..c42ee5c12b7 --- /dev/null +++ b/Master/texmf-dist/doc/generic/pstricks/lgc/4-7-4.inl @@ -0,0 +1,41 @@ +\newcounter{lastval} +\newcounter{thishalf} +\newcounter{thisval} + +\newcommand\lang[4]{% name, value, percentage, color + \setcounter{thisval}{\value{lastval}} + \addtocounter{thisval}{#3} + \pswedge[fillcolor=#4]{1}{\thelastval}{\thethisval}% + \setcounter{thishalf}{((\value{thisval}-\value{lastval})/2)+\value{lastval}} + %\typeout{#1: \thethishalf}% + \ifnum#3>200\rput(1.3;\thethishalf){#1}\fi + \setcounter{lastval}{\value{thisval}} +} + +\bgroup +\psset{unit=3} +\centerline{% + \begin{pspicture}(-1.3,-1.3)(1.3,1.3) + \psset{fillstyle=solid} + \degrees[10000] + \SpecialCoor + \setcounter{lastval}{0} + \lang{Romanian}{1}{3}{green} + \lang{Czech}{2}{6}{blue} + \lang{Bulgarian}{4}{11}{green} + \lang{Japanese}{4}{11}{palegreen} + \lang{Dutch}{7}{20}{black} + \lang{Norwegian}{20}{56}{cyan} + \lang{Greek}{26}{73}{magenta} + \lang{Swedish}{34}{95}{lightgray} + \lang{Danish}{46}{129}{white} + \lang{French}{83}{232}{pink} + \lang{Latin}{146}{409}{wheat} + \lang{Russian}{243}{680}{white} + \lang{Italian}{391}{1093}{gray} + \lang{German}{508}{1421}{lightblue} + \lang{unknown}{599}{1676}{red} + \lang{English}{1462}{4085}{yellow} +\end{pspicture}} +\egroup + |