Difference between revisions of "Command/startTEXpage"

From Wiki
Jump to navigation Jump to search
m (Link to related commands1)
m (remove dead mailing list link)
 
(10 intermediate revisions by 5 users not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>startTEXpage</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 43: 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]"
 
== Example ==
 
== Example ==
 
<context source=yes>
 
<context source=yes>
Line 68: Line 71:
  
 
== See also ==
 
== See also ==
* {{cmd|startTEXpage}}
+
* {{cmd|startTEXpage}} — a page just large enough to fit its contents: containing TeX
* {{cmd|startpagefigure}}
+
* {{cmd|startpagefigure}} — a page just large enough to fit its contents: containing a figure, possibly with some text underneath
* {{cmd|startMPpage}}
+
* {{cmd|startMPpage}} — a page just large enough to fit its contents: containing MetaPost
 
* {{src|page-app.mkiv}}, {{src|page-app.mkii}}
 
* {{src|page-app.mkiv}}, {{src|page-app.mkii}}
  
Line 77: Line 80:
 
{{Forum|startTEXpage}}
 
{{Forum|startTEXpage}}
  
[[Category:Commands|startTEXpage]]
+
 
 +
[[Category:Command/Layout|startTEXpage]]

Latest revision as of 07:36, 17 July 2023

\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]"

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: