summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/3-5-76.mp
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/examples/lgc2/3-5-76.mp
Initial commit
Diffstat (limited to 'info/examples/lgc2/3-5-76.mp')
-rw-r--r--info/examples/lgc2/3-5-76.mp30
1 files changed, 30 insertions, 0 deletions
diff --git a/info/examples/lgc2/3-5-76.mp b/info/examples/lgc2/3-5-76.mp
new file mode 100644
index 0000000000..81b0e40359
--- /dev/null
+++ b/info/examples/lgc2/3-5-76.mp
@@ -0,0 +1,30 @@
+% --- start of displayed preamble in the book ---
+input metaobj
+% Polygons etc. as previously defined
+% --- end of displayed preamble in the book ---
+
+newPolygon.a(btex apples\strut etex,5);
+newPolygon.b(btex oranges\strut etex,6);
+newPolygon.c(btex bananas\strut etex,7);
+newPolygon.f(btex fruits\strut etex,8);
+newEllipse.d(btex potatoes\strut etex);
+newDEllipse.e(btex peas\strut etex);
+newDBox.v(btex vegetables\strut etex);
+newPolygon.fo(btex food\strut etex,12);
+
+defaultfont:="ptmr8r";
+warningcheck:=0;
+beginfig(1)
+newTree.fruits(f)(a,b,c)
+ "Lalign(left)", "hideleaves(true)",
+ "treemode(L)", "vsep(3mm)";
+newTree.vegetables(v)(d,e)
+ "Ralign(center)", "hideleaves(true)",
+ "treemode(R)";
+newTree.food(fo)(fruits,vegetables)
+ "hsep(1cm)";
+scaleObj(food,.7);food.c=origin;
+newDEllipse.ff(food);
+ff.c=origin;drawObj(ff);
+endfig;
+end;