Difference between revisions of "Command/ startfittingpage"
< Command
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
</cd:description> | </cd:description> | ||
<cd:examples> | <cd:examples> | ||
+ | <cd:example> | ||
+ | <context source="yes"> | ||
+ | \showframe | ||
+ | \startTEXpage | ||
+ | asdf | ||
+ | \stopTEXpage | ||
+ | </context> | ||
+ | |||
+ | <context source="yes"> | ||
+ | \showframe | ||
+ | \startTEXpage[offset=10pt] | ||
+ | asdf | ||
+ | \stopTEXpage | ||
+ | </context> | ||
+ | |||
+ | <context source="yes"> | ||
+ | \setuppapersize[A10, landscape] | ||
+ | \showframe[] | ||
+ | \starttext | ||
+ | asdf | ||
+ | \stoptext | ||
+ | </context></cd:example> | ||
<cd:example title=""> | <cd:example title=""> | ||
This produces a PDF with two pages, one for each graphic: | This produces a PDF with two pages, one for each graphic: |
Latest revision as of 12:27, 21 August 2020
Contents
\startfittingpage ... \stopfittingpage
Summary
The instances of \startfittingpage ... \stopfittingpage are used for fitting the output medium to the content.
Instances
\startTEXpage ... \stopTEXpage | Start a page that fits its contents exactly. |
\startMPpage ... \stopMPpage | produces a page a containing MetaPost graphic. The page is just large enough to contain the graphic. |
Settings instance
Description
Examples
Example 1
\showframe \startTEXpage asdf \stopTEXpage
\showframe \startTEXpage[offset=10pt] asdf \stopTEXpage
\setuppapersize[A10, landscape] \showframe[] \starttext asdf \stoptext
Example 2
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
- \definefittingpage
- \setupfittingpage
- page-app.mkiv
- MetaFun - MetaPost in ConTeXt
- \startpagefigure — a page just large enough to fit a figure, possibly with some text underneath