Difference between revisions of "Command/startTEXpage"

From Wiki
Jump to navigation Jump to search
m (Taco moved page Environment/TEXpage to Command/startTEXpage over a redirect without leaving a redirect)
(Mention problem with too large contents.)
Line 46: Line 46:
 
== Description ==  
 
== Description ==  
 
Start a page that fits its contents exactly. Or has some extra space around the edges, if you specify {{code|offset}}.
 
Start a page that fits its contents exactly. Or has some extra space around the edges, if you specify {{code|offset}}.
 +
It only works, if the contents is small enough. If it's too big, then you should use something like "\startTEXpage[align=normal,width=100cm,autowidth=force]" as explained here: https://mailman.ntg.nl/pipermail/ntg-context/2021/101149.html
  
 
== Example ==
 
== Example ==

Revision as of 17:33, 12 February 2021

\startTEXpage

Syntax (autogenerated)

\startTEXpage[...=...,...] ... \stopTEXpage
...=...,...inherits from \setupfittingpage
instance of startfittingpage, generated by \definefittingpage


Syntax

\startTEXpage
\startTEXpage[...=...]
strut no yes global local
align normal flushleft flushright middle normal high low lohi
offset none overlay dimension
width fit dimension
height fit dimension
frame on off

Description

Start a page that fits its contents exactly. Or has some extra space around the edges, if you specify offset. It only works, if the contents is small enough. If it's too big, then you should use something like "\startTEXpage[align=normal,width=100cm,autowidth=force]" as explained here: https://mailman.ntg.nl/pipermail/ntg-context/2021/101149.html

Example

\showframe
\startTEXpage
asdf
\stopTEXpage

\showframe
\startTEXpage[offset=10pt]
asdf
\stopTEXpage

\setuppapersize[A10, landscape]
\showframe[]
\starttext
asdf
\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: