Difference between revisions of "Command/adaptlayout"

From Wiki
Jump to navigation Jump to search
m (Text replace - "== Help from ConTeXt-Forum ==" to "== Help from ConTeXt-Forum == All issues with:")
 
(7 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>adaptlayout</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 11: Line 14:
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
 
     <td class="cmd">[...,...,...]</td>
 
     <td class="cmd">[...,...,...]</td>
     <td>number </td>
+
     <td>page number(s) </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
 
     <td class="cmd">[[Command/keyword:height|height]]</td>
 
     <td class="cmd">[[Command/keyword:height|height]]</td>
     <td>[[Command/value:dimension|dimension]] [[Command/value:max|max]] </td>
+
     <td>[[Command/value:max|max]] +/-[[Command/value:dimension|dimension]]</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
 
     <td class="cmd">[[Command/keyword:lines|lines]]</td>
 
     <td class="cmd">[[Command/keyword:lines|lines]]</td>
     <td>[[Command/value:number|number]] </td>
+
     <td>[[Command/value:number|number]]: +1, -1, etc </td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 
  
 
== Description ==  
 
== Description ==  
 +
Adapt the layout of one page to fit more or less lines in it.
 +
Use this only in the last phase of corrections.
  
 +
To affect the current page (often more useful than defining absolute page numbers), just omit the first argument:
  
 +
<texcode>
 +
\adaptlayout[lines=-1]
 +
</texcode>
  
 
== Example ==
 
== Example ==
<!-- Please fill in an example if you can -->
+
 
 +
<context source=yes>
 +
\setuppapersize[A10, landscape][A8, landscape]
 +
\setuppaper[nx=2, ny=2]
 +
\setuparranging[XY]
 +
 
 +
\showgrid
 +
\showframe[cut,text]
 +
\setuppagenumbering[location={header,inright}]
 +
 
 +
\adaptlayout[1][lines=-1]
 +
\adaptlayout[3][height=+10mm]
 +
 
 +
\startlines
 +
\input reich
 +
\input reich
 +
\stoplines
 +
</context>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
* {{cmd|setuplayout}}
 +
* {{cmd|adaptpapersize}}
  
== Help from ConTeXt-Forum ==
+
== Help from ConTeXt-Mailinglist/Forum ==
 
All issues with:
 
All issues with:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|adaptlayout]]
+
[[Category:Command/Layout|adaptlayout]]

Latest revision as of 16:05, 12 November 2019

\adaptlayout

Syntax (autogenerated)

\adaptlayout[...,...][...=...,...]
[...,...]number
heightmax dimension
linesnumber


Syntax

\adaptlayout[...,...,...][...,...=...,...]
[...,...,...] page number(s)
height max +/-dimension
lines number: +1, -1, etc

Description

Adapt the layout of one page to fit more or less lines in it. Use this only in the last phase of corrections.

To affect the current page (often more useful than defining absolute page numbers), just omit the first argument:

\adaptlayout[lines=-1]

Example

\setuppapersize[A10, landscape][A8, landscape]
\setuppaper[nx=2, ny=2]
\setuparranging[XY]

\showgrid
\showframe[cut,text]
\setuppagenumbering[location={header,inright}]

\adaptlayout[1][lines=-1]
\adaptlayout[3][height=+10mm]

\startlines
\input reich
\input reich
\stoplines

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: