29.11.2012 Views

MetaFun - Pragma ADE

MetaFun - Pragma ADE

MetaFun - Pragma ADE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ap := point at of RotPath ;<br />

ad := direction at of RotPath ;<br />

draw pic[i]<br />

shifted (-wid/2,0) rotated (angle(ad)) shifted ap ;<br />

endfor ;<br />

\stopMPdrawing<br />

\MPdrawingdonetrue<br />

\getMPdrawing<br />

\resetMPdrawing<br />

\egroup}<br />

So, how does this compare to earlier results? The original, full text as typeset by TEX, looks like:<br />

We now follow some arbitrary path ...<br />

In the examples, the text is typeset along the path with:<br />

\followtokens{We now follow some arbitrary path ...}<br />

We now follow some arbitrary path ...<br />

Since we did not set a path, a dummy path is used. We can provide a path by (re)defining the<br />

graphic followtokens.<br />

\startuseMPgraphic{followtokens}<br />

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

\stopuseMPgraphic<br />

We now follow some arbitrary path ...<br />

We now follow some arbitrary path ...<br />

\startuseMPgraphic{followtokens}<br />

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

\stopuseMPgraphic<br />

We now follow some arbitrary path ...<br />

\startuseMPgraphic{followtokens}<br />

path RotPath ; RotPath := (-3cm,-1cm)--(0,1cm)--(3cm,-1cm) ;<br />

\stopuseMPgraphic<br />

We now follow some arbitrary path ...<br />

TEX text Typesetting in METAPOST<br />

235

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

Saved successfully!

Ooh no, something went wrong!