From Wiki
< Command
Revision as of 14:37, 15 November 2019 by Usonianhorizon (talk | contribs)
Jump to navigation Jump to search


Syntax (autogenerated)

\startuniqueMPgraphic{...}{...,...} ... \stopuniqueMPgraphic


{...} name under which the graphic will be known


Define code for a MetaPost graphic. The graphic can be placed in the document with \uniqueMPgraphic. Every time any of the following variables changes, the graphic is recompiled:



  fill fullcircle scaled 20pt withcolor \mycolor;

red: \uniqueMPgraphic{name}

blue: \uniqueMPgraphic{name}

This illustrates the fact that graphic is reused if the dimensions don't change.

	fill unitsquare
		xyscaled (\overlaywidth, \overlayheight)
                % `uniformdeviate 1` produces a random number between 0 and 1
		withcolor (uniformdeviate 1, uniformdeviate 1, uniformdeviate 1);


\framed[background=beta]{rather wide}

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: