% --- start of displayed preamble in the book ---
input latexmp;
% --- end of displayed preamble in the book ---
% initlatex
defaultfont:="ptmr8r";
warningcheck:=0;
beginfig(1)
for i=1 upto 5:
  label(textext("$i=" & (decimal i) & "$"),(0,10*i));
endfor
endfig;
end;