29.11.2012 Views

MetaFun - Pragma ADE

MetaFun - Pragma ADE

MetaFun - Pragma ADE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

252<br />

We will surround this text with a circular line, that we define as follows. By using a buffer we keep<br />

things organized.<br />

\startbuffer[circle]<br />

\startuseMPgraphic{followtokens}<br />

path RotPath ; RotPath := reverse fullcircle<br />

rotatedaround(origin,90)<br />

xscaled \overlaywidth yscaled \overlayheight ;<br />

drawoptions (withcolor .625red) ;<br />

\stopuseMPgraphic<br />

\followtokens<br />

{This is just a dummy text, kerned by T{\kern<br />

-.1667em\lower .5ex\hbox {E}}{\kern -.125emX} and typeset<br />

in a circle using {\setMFPfont M}{\setMFPfont<br />

E}{\setMFPfont T}{\setMFPfont A}{\setMFPfont<br />

P}{\setMFPfont O}{\setMFPfont S}{\setMFPfont T}.\quad}<br />

\stopbuffer<br />

\defineoverlay[edge][{\getbuffer[circle]}]<br />

The text and graphics come together in a framed text:<br />

\startbuffer[quote]<br />

\framed<br />

[offset=6pt,background=edge,frame=off]<br />

{\getshapetext}<br />

\stopbuffer<br />

\placefigure<br />

{One more time Hofstadter's quotation.}<br />

{\getbuffer[quote]}<br />

Here also, I will rewrite things a bit so that we can avoid \startMPdrawing outside the macro, and thereby<br />

avoid problems. I can also add the maps cdrom cover as example.<br />

Typesetting in METAPOST Libraries

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!