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.

236<br />

We now follow som<br />

e arbitrar y path ...<br />

We now follow som<br />

\startuseMPgraphic{followtokens}<br />

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

\stopuseMPgraphic<br />

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

e arbitrar y path ...<br />

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

\startuseMPgraphic{followtokens}<br />

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

\stopuseMPgraphic<br />

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

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

\startuseMPgraphic{followtokens}<br />

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

\stopuseMPgraphic<br />

W e n o w f o l l o w s o m e a r b i t r a r y p a t h . . .<br />

W e n o w f o l l o w s o m e a r b i t r a r y p a t h . . .<br />

When turned on, tracing will produce bounding boxes as well as draw the path. Tracing can be<br />

turned on by saying:<br />

\startMPinclusions<br />

boolean TraceRot ; TraceRot := true ;<br />

\stopMPinclusions<br />

The next example is dedicated to Giuseppe Bilotta who wants to handle multiple strings and uses<br />

a patched version of \followtokens. To avoid a complicated explanation, we will present an<br />

alternative here that uses overlays. This method also avoids complicated path definitions.<br />

Typesetting in METAPOST TEX text

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

Saved successfully!

Ooh no, something went wrong!