blob: abebbdb36911e154374b817d98c42d78f715a51a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
% --- start of displayed preamble in the book ---
input expressg
verbatimtex
\def\stack#1{\vbox{\halign{\hfil##\hfil\cr#1\crcr}}}
etex
% --- end of displayed preamble in the book ---
defaultfont:="ptmr8r";
warningcheck:=0;
beginfig(1)
z0=origin;z1-z0=z2-z1=(3cm,0);z0-z3=z1-z4=z2-z5=(0,1.5cm);
drawovalbox(0, 2cm, 1cm)(btex \stack{This is\cr a number} etex);
drawcirclebox(3, 1.5cm)(btex circular etex);
drawdashcircle(4, 2cm);label(btex phantom? etex,z4);
drawroundedbox(2, 1.5cm, 1cm, 2mm)("rounded");
drawroundedbox(5, 1.5cm, 1cm, 0mm)(btex \stack{not\cr rounded} etex);
drawNUMBER(1);
endfig;
end;
|