summaryrefslogtreecommitdiff
path: root/info/examples/Einfuehrung2/15-02-68.mp2
diff options
context:
space:
mode:
Diffstat (limited to 'info/examples/Einfuehrung2/15-02-68.mp2')
-rw-r--r--info/examples/Einfuehrung2/15-02-68.mp246
1 files changed, 46 insertions, 0 deletions
diff --git a/info/examples/Einfuehrung2/15-02-68.mp2 b/info/examples/Einfuehrung2/15-02-68.mp2
new file mode 100644
index 0000000000..070054e460
--- /dev/null
+++ b/info/examples/Einfuehrung2/15-02-68.mp2
@@ -0,0 +1,46 @@
+%%
+%% Ein Beispiel der DANTE-Edition
+%%
+%% 2. Auflage
+%%
+%% Beispiel 15-02-68 auf Seite 749.
+%%
+%% Copyright (C) 2016 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}