summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/einfuehrung/15-02-68.mp2
blob: 0ac1c9aee7d2aa0714c959ad4c229e284bb091df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
%% 
%%  Ein Beispiel der DANTE-Edition
%%  
%%  1. Auflage
%% 
%%  Beispiel 15-02-68 auf Seite 772.
%% 
%%  Copyright (C) 2011 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
verbatimtex
%% 
\documentclass[]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\def\XeTeX{X\raisebox{-0.5ex}{E}\kern-0.125em\TeX}
%\DeclareRobustCommand\XeTeX{X\kern-0.5em\raisebox{-0.5ex}{\reflectbox{E}}\kern0.27em\TeX}
\begin{document}
etex
% --- start of displayed preamble in the book ---
input piechartmp;
% --- end of displayed preamble in the book ---
beginfig(1)
SetupColors((.7, .7),this, this);
SetupName("Das ", " Segment") ;
SetupPercent( this, " %") ;
Segment( 50, "1."); Segment( 30, "2."); Segment( 10, "2."); Segment( 20, "4.");
Segment( 20, "5.");
SegmentState(4, this, 0.3);
PieChart(4cm, 0.15, 60, 0, 0) ;
Label.auto(0)(name)(outwards,0); Label(3,4,5)(value)(inwards,0) withcolor white;
Label(1,2)(percent)(inwards,0) withcolor (1,1,0);
Label.lrt(4)("Ein Segment mit ",percent)((0.9,0.8), (2cm,-1cm)) withcolor 0.8red ;
pickup pencircle scaled 2pt ;
Label.auto(1)("Rotes Label")((0.9,0.1),(2cm,1.5cm)) withcolor 0.8red ;
endfig;
end;
\end{document}