Changes

Jump to navigation Jump to search
7,311 bytes removed ,  11:57, 30 July 2023
remove manual syntax table, add pseudo columns
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>setuplayout</syntax>
 
== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\setuplayout<span class="first" >[...,...=...,...]</span></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:width|width]]</td>
<td>[[Command/value:dimension|dimension]] [[Command/value:fit|fit]] [[Command/value:middle|middle]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:height|height]]</td>
<td>[[Command/value:dimension|dimension]] [[Command/value:fit|fit]] [[Command/value:middle|middle]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:backspace|backspace]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:topspace|topspace]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:margin|margin]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:leftmargin|leftmargin]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:rightmargin|rightmargin]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:header|header]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:footer|footer]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:top|top]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:bottom|bottom]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:leftedge|leftedge]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:rightedge|rightedge]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:headerdistance|headerdistance]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:footerdistance|footerdistance]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:topdistance|topdistance]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:bottomdistance|bottomdistance]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:leftmargindistance|leftmargindistance]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:rightmargindistance|rightmargindistance]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:leftedgedistance|leftedgedistance]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:rightedgedistance|rightedgedistance]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:horoffset|horoffset]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:veroffset|veroffset]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:style|style]]</td>
<td>[[Command/value:normal|normal]] [[Command/value:bold|bold]] [[Command/value:slanted|slanted]] [[Command/value:boldslanted|boldslanted]] [[Command/value:type|type]] [[Command/value:cap|cap]] [[Command/value:small...|small...]] [[Command/value:command|command]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:color|color]]</td>
<td>[[Command/value:name|name]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:marking|marking]]</td>
<td>[[Command/value:on|on]] [[Command/value:off|off]] [[Command/value:color|color]] [[Command/value:screen|screen]] [[Command/value:text|text]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:location|location]]</td>
<td>[[Command/value:left|left]] [[Command/value:middle|middle]] [[Command/value:right|right]] [[Command/value:bottom|bottom]] [[Command/value:top|top]] [[Command/value:singlesided|singlesided]] [[Command/value:doublesided|doublesided]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:scale|scale]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:nx|nx]]</td>
<td>[[Command/value:number|number]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:ny|ny]]</td>
<td>[[Command/value:number|number]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:dx|dx]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:dy|dy]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:lines|lines]]</td>
<td>[[Command/value:number|number]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:columns|columns]]</td>
<td>[[Command/value:number|number]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:columndistance|columndistance]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:grid|grid]]</td>
<td>[[Command/value:yes|yes]] [[Command/value:no|no]] more see below</td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:bottomspace|bottomspace]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:cutspace|cutspace]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:textdistance|textdistance]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:textwidth|textwidth]]</td>
<td>[[Command/value:number|number]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:textmargin|textmargin]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:clipoffset|clipoffset]]</td>
<td>[[Command/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:page|page]]</td>
<td>[[Command/value:name|name]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Command/keyword:paper|paper]]</td>
<td>[[Command/value:name|name]] </td>
</tr>
</table>
 
== Description ==
* <code>width=middle</code> solves the following equation to set the makeupwidth:
paperwidth = \backspace + \makeupwidth+ \cutspace
** <code>backspace</code> is the distance from the inside edge of the paper to the edge of the text area.
** <code>cutspace</code> is the width from the outside edge of the text area to the edge of the paper. If cutspace is set to 0, it is taken to be equal to the backspace.
== Comment ==
What is needed is a A picture of a page with each of these layout parameters indicated. (see is shown in [[Layout]]).
You can use the {{cmd|showframe}} macro to see the results of your layout. Just put the command before the \starttext and lines will be drawn on your document showing the different areas.
|-
|}
 
== Pseudo columns ==
 
With the <code>columns</code> and <code>columndistance</code> parameters you can set up a design grid that is usually not visible and not related to real columns, but you can use it for placements on [[Layers]]. See the [[manual:details.pdf|Details]] manual.
 
== Example ==
== See also ==
* [[Layout]]
* {{cmd|adaptlayout}} to locally adapt the page layout
* {{cmd|setuppapersize}} to set the paper size
* [[PaperSetup#Predefined_Paper_Sizes|Paper sizessetup section]] for a list of the predefined paper sizesand [[Paper sizes]] for theirs actuals dimensions in mm.
== Help from ConTeXt-Mailinglist/Forum ==
[[Category:Command/Layout|setuplayout]]
[[Category:Layout]]

Navigation menu