Open main menu

Changes

no edit summary
<cd:shortdesc>
<!-- a short command summary goes here -->
The instances of <tt>\start<i>fittingpage</i> ... \stop<i>fittingpage</i></tt> are used for ..fitting the output medium to the content.
</cd:shortdesc>
<cd:sequence>
</cd:sequence>
<cd:instances>
<cd:constant value="TEXpage">Start a page that fits its contents exactly.</cd:constant> <cd:constant value="MPpage">produces a page a containing MetaPost graphic. The page is just large enough to contain the graphic.</cd:constant>
</cd:instances>
<cd:variants>
</cd:description>
<cd:examples>
<!-- command cd:example(s)><context source="yes">\showframe\startTEXpageasdf\stopTEXpage</context> <context source="yes">\showframe\startTEXpage[offset=10pt]asdf\stopTEXpage</context> <context source="yes">\setuppapersize[A10, landscape]\showframe[]\starttextasdf\stoptext</context></cd:example>
<cd:example title="">
This produces a PDF with two pages, one for each graphic:
 
<texcode>
\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
</texcode>
</cd:example>
-->
</cd:examples>
<cd:notes>
<cd:source file="page-app.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Layout"></cd:wikipage>
<cd:wikipage page="Category:MetaPost"></cd:wikipage>
<cd:wikipage page="MetaFun - MetaPost in ConTeXt"></cd:wikipage>
<cd:wikipage originator="system" page="Keywords:Background"></cd:wikipage>
<cd:commandref name="startpagefigure"> — a page just large enough to fit a figure, possibly with some text underneath</cd:commandref>
</cd:seealso>
</cd:commandgroup>