b"\n_START_ARTICLE_\nMetaPost\n_START_SECTION_\nEsempi\n_START_PARAGRAPH_\nIl seguente file example.mp produce una volta interpretato con MetaPost (tramite il comando mpost sotto Linux) produce tre file eps example.1, example.2, example.3.  I grafici sono riportati a destra._NEWLINE_transform pagecoords;_NEWLINE_pagecoords:=identity scaled 10mm shifted (100mm,150mm);_NEWLINE_beginfig (1)_NEWLINE_    fill ((0,0)--(2,0)--(2,1)--(1,1)--(1,2)--(0,2)--cycle)_NEWLINE_        transformed pagecoords withcolor green;_NEWLINE_    draw ((2,0)..(2,1)..(1,1)..(1,2)..(0,2))_NEWLINE_        transformed pagecoords;_NEWLINE_    drawarrow ((0,0)--(2,2)) transformed pagecoords;_NEWLINE_endfig;_NEWLINE_beginfig (2)_NEWLINE_    draw (for i=0 up to 7: dir (135i)-- endfor cycle)_NEWLINE_        transformed pagecoords;_NEWLINE_endfig;_NEWLINE_pagecoords:=identity scaled 15mm shifted (100mm,150mm);_NEWLINE_beginfig (3);_NEWLINE_    % declare paths to be used_NEWLINE_    path p[],p[]t;_NEWLINE_    % set up points by defining relationships_NEWLINE_    z1=(0,0);   z2=z1+2up;_NEWLINE_    z3=z1+whatever*dir (60)=z2+whatever*dir (-50);_NEWLINE_    z4=z3+(-1.5,-.5);_NEWLINE_    z5=z1+dir (135);_NEWLINE_    z0=whatever[z1,z2]=whatever[z3,z4];_NEWLINE_    % set up paths_NEWLINE_    p0=fullcircle yscaled .5 rotated 45 shifted z0\xc2\xa0;_NEWLINE_    p1=z2---z4..z0..z3---z1;_NEWLINE_    p2=p1 cutbefore p0 cutafter p0;_NEWLINE_    p3=p0 cutbefore p1 cutafter p1;_NEWLINE_    p4=p2---p3---cycle;_NEWLINE_    % define transformed versions of paths and points_NEWLINE_    for i=0 up to 4: p[i]t=p[i] transformed pagecoords; endfor_NEWLINE_    for i=0 up to 5: z[i]t=z[i] transformed pagecoords; endfor_NEWLINE_    % do some drawing_NEWLINE_    fill p4t withcolor (1,1,0.2);_NEWLINE_    draw z1t---z2t withcolor .5white;_NEWLINE_    draw z3t---z4t withcolor .5white;_NEWLINE_    pickup pencircle;_NEWLINE_    draw p0t dashed withdots scaled .3;_NEWLINE_    draw p1t dashed evenly;_NEWLINE_    draw p2t withcolor blue;_NEWLINE_    draw p3t withcolor red;_NEWLINE_    label.lrt (btex $z_0$ etex, z0t);_NEWLINE_    label.llft (btex $z_1$ etex, z1t);_NEWLINE_    label.top (btex $z_2$ etex, z2t);_NEWLINE_    label.rt (btex $z_3$ etex, z3t);_NEWLINE_    label.llft (btex $z_4$ etex, z4t);_NEWLINE_    for i=0 up to 4:_NEWLINE_        drawdot z[i]t withpen pencircle scaled 2;_NEWLINE_    endfor_NEWLINE_endfig;_NEWLINE_bye_NEWLINE_I file cos\xc3\xac generati possono essere utilizzati in TeX attraverso i comandi LaTeX \\includegraphics , ConTeXt \\externalfigure, Plain TeX \\epsfbox, o (in Plain pdftex) tramite il comando \\convertMPtoPDF da supp-pdf.tex.  Per vedere o stampare il terzo grafico l'inclusione \xc3\xa8 necessaria, dal momento che i font di Metafont non son inclusi nei file eps generati da MetaPost."