Command/startMPdrawing

From Wiki
< Command
Revision as of 12:59, 8 May 2024 by Garulfoo (talk | contribs) (Created page with "Documentation for \startMPdrawing ... \stopMPdrawing")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


\startMPdrawing ... \stopMPdrawing

Summary

The environment \startMPdrawing ... \stopMPdrawing is used for Metapost inline graphics.

Settings

\startMPdrawing[...] ... \stopMPdrawing
[...]-

Description

Similar to the command \MPdrawing.

Examples

Example 1

\startMPdrawing
fill fullcircle scaled 2cm withcolor darkyellow;
\stopMPdrawing

text before
\MPdrawingdonetrue  % you don't the drawing without
\getMPdrawing
text after

with lua

\startluacode
  context.startMPdrawing()
  context("fill fullcircle scaled 2cm withcolor darkyellow;")
  context.stopMPdrawing()
  context("text before")
  context.MPdrawingdonetrue()
  context.getMPdrawing()
  context("text after")
\stopluacode

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: