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.

\setMPlayer [test] [somepos-1] [location=c]<br />

{Does it work al right?}<br />

\setMPlayer [test] [somepos-2]<br />

{\framed<br />

[width=\MPlayerwidth,height=\MPlayerheight,<br />

background=color,backgroundcolor=white]<br />

{It Works!}}<br />

\setMPlayer [test] [somepos-3]<br />

{\externalfigure[cow.mps][width=2cm]}<br />

Combining the graphic and the text is handled by the macro \getMPlayer.<br />

\getMPlayer [test] {\useMPgraphic{oeps}}<br />

Does it work al right?<br />

It Works!<br />

The macro \getMPlayer is built on top of \framed. The settings passed in the (optional) second<br />

argument are the same as those to \framed.<br />

\getMPlayer<br />

[test]<br />

[frame=on,offset=5pt]<br />

{\useMPgraphic{oeps}}<br />

As you see, you need a bit of a twisted mind to handle graphics this way, but at least the functionality<br />

is there to create complex graphics in a declarative way.<br />

Complex text in graphics Positional graphics<br />

153

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

Saved successfully!

Ooh no, something went wrong!