Debian Codegraph @

texmf-dist/doc/metapost/featpost/example/naoestacionar.mp

raw
1 % naoestacionar.mp
2 % L. Nobre G.
3 % 2008
4
5 prologues := 3;
6
7 verbatimtex
8 \documentclass{article}
9 \usepackage{palatino}
10 \begin{document}
11 etex
12
13 beginfig(1);
14 numeric stampnum, initang, i, stepang, stampoffset, amplfactor;
15 picture stamp;
16 bboxmargin := 9mm;
17 stampnum = 36;
18 stampoffset = 0.92mm;
19 amplfactor = 20;
20 label.urt( btex \begin{tabular}{c}
21 N\~{A}O \\
22 estacionar
23 \end{tabular} etex scaled amplfactor, origin );
24 stamp = currentpicture;
25 unfill bbox stamp;
26 initang = 180/stampnum;
27 stepang = 2*initang;
28 drawoptions();
29 for i=0 upto (stampnum-1):
30 draw stamp shifted (stampoffset*dir(initang+i*stepang));
31 endfor;
32 undraw stamp;
33 endfig;
34
35 verbatimtex
36 \end{document}
37 etex
38
39 end.