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.

Z13<br />

Z24<br />

Z14<br />

Z1<br />

Z12<br />

Z2<br />

Z21<br />

Z23<br />

Z11<br />

Z42<br />

Z0<br />

Z22<br />

Z31<br />

Linear equations Welcome to MetaPost<br />

Z43<br />

Figure 1.2 The problem.<br />

This graphic was generated with the following command:<br />

\placefigure<br />

[here][fig:problem]<br />

{The problem.}<br />

{\scale<br />

[width=\textwidth]<br />

{\useMPgraphic{solvers::one}{i=0.6,j=1.0,s=1}}}<br />

We will use this example to introduce a few new concepts, one being instances. In a large document<br />

there can be many METAPOST graphics and they might fall in different categories. In this manual we<br />

have graphics that are generated as part of the style as wel as examples that show what METAFUN<br />

can do. As definitions and variables in METAPOST are global by default, there is a possibility that<br />

we end up with clashes. This can be avoided by grouping graphics in instances. Here we create<br />

an instance for the example that we're about to show.<br />

Z4<br />

Z32<br />

Z41<br />

Z3<br />

Z44<br />

Z34<br />

Z33<br />

43

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

Saved successfully!

Ooh no, something went wrong!