Difference between revisions of "Command/startTEXpage"

From Wiki
Jump to navigation Jump to search
(Created page with "{{Reference |name={{subst:SUBPAGENAME}} |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd...")
 
(add to Command/Layout category)
(2 intermediate revisions by the same user not shown)
Line 68: Line 68:
  
 
== See also ==
 
== See also ==
 +
* {{cmd|startTEXpage}} — a page just large enough to fit its contents: containing TeX
 +
* {{cmd|startpagefigure}} — a page just large enough to fit its contents: containing a figure, possibly with some text underneath
 +
* {{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 75: Line 78:
  
 
[[Category:Commands|startTEXpage]]
 
[[Category:Commands|startTEXpage]]
 +
[[Category:Command/Layout|startTEXpage]]

Revision as of 12:32, 14 September 2017

\startTEXpage

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.

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: