Changes

Jump to navigation Jump to search
Add remaining commands
Inside {{cmd|startMPinclusions}} one can specify MetaPost files to ''input'', and also define MetaPost functions.
 
== \startuseMPgraphic and \useMPgraphic ==
 
{{cmd|startuseMPgraphic}}defines a piece of graphics code that is processed anew every time the graphic is placed with {{cmd|useMPgraphic}}.
 
== \startreusableMPgraphic and \reuseMPgraphic ==
For graphics that are the same every time, it is better to use {{cmd|startreusableMPgraphic}}: the graphic is compiled only once, and the one resulting picture can be placed at various points with {{cmd|reuseMPgraphic}}.
 
== \startMPcode ==
 
When reusing a graphic is not important, you can simply use {{cmd|startMPcode}}.
 
<context source=yes>
\startMPcode
fill fullcircle scaled 20pt withcolor .625green;
\stopMPcode
</context>
== \startMPpage ==

Navigation menu