Difference between revisions of "Command/startMPpage"

From ConTeXt wiki
m
m (Link to related commands)
Line 35: Line 35:
 
== See also ==
 
== See also ==
 
{{MetaPost see also}}
 
{{MetaPost see also}}
 +
* {{cmd|startTEXpage}} — a page just large enough to fit its TeX contents
 +
* {{cmd|startpagefigure}} — a page just large enough to fit a figure, possibly with some text underneath
 +
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 11:43, 14 September 2017

\startMPpage

Syntax

\startMPpage

Description

\startMPpage produces a page a containing MetaPost graphic. The page is just large enough to contain the graphic.

Example

This produces a PDF with two pages, one for each graphic:

\starttext
\startMPpage
    draw fullcircle scaled 2cm ;
    dotlabel.bot(textext("(0,0)"),origin) ;
\stopMPpage

\startMPpage
    draw fullcircle scaled 2cm ;
    drawarrow (0,0)--(1cm,0) ;
    label.bot(textext("$r$"),(5mm,0)) ;
\stopMPpage
\stoptext

See also


Help from ConTeXt-Mailinglist/Forum

All issues with: