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.

208<br />

withdrawcolor .625red<br />

withpen pencircle scaled 1.5pt<br />

This is not really a problem because we can also fill the shapes. It is the reason why the fill is<br />

applied after the draw and in such case the effective line width is half the size specified.<br />

graphictext<br />

"$$\left({{\sqrt{1+x}}\over{\sqrt{2+x^2}}}\right)$$"<br />

scaled 4<br />

dashed evenly<br />

withdrawcolor .625red<br />

withfillcolor .850white<br />

withpen pencircle scaled 1.5pt<br />

In this example we also use a dashed line. Instead of normal colors, we could have used shades or<br />

transparent colors.<br />

Instead of supplying the text directly, you can use the indirect method. This permits you to process<br />

rather complex data without messing up your METAPOST code.<br />

\setMPtext {some math}%<br />

{\usemodule[mathml]<br />

\xmlprocessdata<br />

{main}<br />

{<br />

<br />

2 <br />

<br />

x <br />

1 <br />

Special effects Outline fonts

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

Saved successfully!

Ooh no, something went wrong!