Difference between revisions of "Command/ startfittingpage"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \start<i>fittingpage</i> ... \stop<i>fittingpage</i>")
 
Line 4: Line 4:
 
<cd:shortdesc>
 
<cd:shortdesc>
 
<!-- a short command summary goes here -->
 
<!-- a short command summary goes here -->
The instances of  <tt>\start<i>fittingpage</i> ... \stop<i>fittingpage</i></tt> are used for ...
+
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:shortdesc>
 
<cd:sequence>
 
<cd:sequence>
Line 10: Line 10:
 
   </cd:sequence>
 
   </cd:sequence>
 
<cd:instances>
 
<cd:instances>
     <cd:constant value="TEXpage"></cd:constant>
+
     <cd:constant value="TEXpage">Start a page that fits its contents exactly.</cd:constant>
     <cd:constant value="MPpage"></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:instances>
 
<cd:variants>
 
<cd:variants>
Line 27: Line 27:
 
</cd:description>
 
</cd:description>
 
<cd:examples>
 
<cd:examples>
<!--  command example(s)
 
 
<cd:example title="">
 
<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:example>
-->
+
 
 
</cd:examples>
 
</cd:examples>
 
<cd:notes>
 
<cd:notes>
Line 50: Line 65:
 
<cd:source file="page-app.mkiv" originator="system"></cd:source>  
 
<cd:source file="page-app.mkiv" originator="system"></cd:source>  
 
<cd:wikipage originator="system" page="Category:Layout"></cd:wikipage>  
 
<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: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:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Revision as of 12:25, 21 August 2020


\startfittingpage ... \stopfittingpage

Summary

The instances of \startfittingpage ... \stopfittingpage are used for fitting the output medium to the content.

Instances

\startTEXpage ... \stopTEXpageStart a page that fits its contents exactly.
\startMPpage ... \stopMPpageproduces a page a containing MetaPost graphic. The page is just large enough to contain the graphic.

Settings instance

\startFITTINGPAGE[...=...,...] ... \stopFITTINGPAGE
...=...,...inherits from \setupfittingpage

Description

Examples

Example 1

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

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: