Changes

Jump to navigation Jump to search
8,874 bytes added ,  18:33, 18 July 2021
m
}}
jAyINf <a href="http://oekraiqtcxmr.com/">oekraiqtcxmr</a>, [url=http://uykxwthbikfc.com/]uykxwthbikfc[/url], [link=http://ajiirmieqtun.com/]ajiirmieqtun[/link], http://bkfgkowvmoel.com/__TOC__
== Description == <pre>Horizontal[[Help: Reference|Syntax]] (if singleside then outside is at right and inside is at leftautogenerated)===========width =<syntax>setuplayout</syntax> width of text area middle: automatic calculation consider A) params fit: automatic calculation consider A)+B) params dimension: cutspace should be 0 and is calculated according to backspace
A) params== [[Help: (Reference|Syntax]] ==<table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd">\paperwidthsetuplayout<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+\makeupwidth+\cutspace)]]</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">backspace <td class="cmd"> width of inner [[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> width of outer margin (if 0 then <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= backspace!)"cmd">[[Command/keyword:paper|paper]]</td> <td>[[Command/value:name|name]] </td> </tr></table>
B) params:
leftmargin/rightmargin => width of leftmargin/rightmargin area
margin => width of outer margin
leftedge/rightedge => width of leftedge/rightedge area
*distance (like leftmargindistance) => space separates * area from the inner
horoffset => shift material towards outside (not tought width calculation)= Description ==
Vertical:======Horizontal ===
Others:=======If the document is singlesided, then the 'outside' is the right side and the 'inside' is the left side.
The <code>width</code> parameter sets <code>\makeupwidth</precode>== comment ==, the width of the text area.
What * <code>width=middle</code> solves the following equation to set the makeupwidth: paperwidth = \backspace + \makeupwidth + \cutspace** <code>backspace</code> is needed the distance from the inside edge of the paper to the edge of the text area.** <code>cutspace</code> is a picture the width from the outside edge of a page with each the text area to the edge of these layout parameters indicatedthe paper. If cutspace is set to 0, it is taken to be equal to the backspace. (see [[Layout]])
* if <code>width=fit</code>, then the calculation is like for <code>width=middle</code>, but with the following additions:
** <code>leftmargin/rightmargin</code> => width of leftmargin/rightmargin area
** <code>margin</code> => width of outer margin
** <code>leftedge/rightedge</code> => width of leftedge/rightedge area
** <code>*distance</code> (like leftmargindistance) => space separates * area from the inner
** <code>horoffset</code> is applied after the various width calculations to shift everything bodily to the outside.
You can use the [[cmd:showframe|\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.== Comment ==
=== Grid Setups ===What is needed is a picture of a page with each of these layout parameters indicated. (see [[Layout]])
At least in MkIV "grid" takes some presets as parameter: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.
<pre>% none don't enlarge% halfline enlarge by halfline/halfline% line enlarge by line/line% strut enlarge by ht/dp (default)% first align to top line% last align to bottom line% mindepth round depth down% maxdepth round depth up% minheight round height down% maxheight round height up% local use local interline space% shift:-3tp vertical shift within box== Grid Setups ==
\definegridsnapping[normal] [maxheightIn MkIV,maxdepthat least,strut]\a number of presets for the <code>grid</code> parameter were defined using {{cmd|definegridsnapping[standard] [maxheight,maxdepth,strut]}}; they can be invoked by e.g. <code>\definegridsnappingsetuplayout[yes] [maxheight,maxdepth,strutgrid=normal]</code>. The presets are all combinations of the following options:
\definegridsnapping[strict] [\v!maxdepth:0.8,maxheight:0.8,{| class=wikitable|-| <code>none</code> || don't enlarge|-| <code>halfline</code> || enlarge by halfline/halfline|-| <code>line</code> || enlarge by line/line|-| <code>strut]</code> || enlarge by ht/dp (default)|-| <code>first</code> || align to top line|-\definegridsnapping[tolerant] [\v!| <code>last</code> || align to bottom line|-| <code>mindepth</code> || round depth down|-| <code>maxdepth:1.2,</code> || round depth up|-| <code>minheight</code> || round height down|-| <code>maxheight</code> || round height up|-| <code>local</code> || use local interline space|-| <code>shift:1.2,strut]-3tp</code> || vertical shift within box|-|}
\definegridsnapping[top] [minheight,maxdepth,strut]\definegridsnapping[bottom] [maxheight,mindepth,strut]\definegridsnapping[both] [minheight,mindepth,strut]These are the presets and their definitions.
{| class=wikitable|-| \definegridsnapping[normal] || [maxheight,maxdepth,strut]|-| \definegridsnapping[standard] || [maxheight,maxdepth,strut]|-| \definegridsnapping[yes] || [maxheight,maxdepth,strut]|-| |- | \definegridsnapping[strict] || [\v!maxdepth:0.8,maxheight:0.8,strut]|-| \definegridsnapping[tolerant] || [\v!maxdepth:1.2,maxheight:1.2,strut]|-| |- | \definegridsnapping[top] || [minheight,maxdepth,strut]|-| \definegridsnapping[bottom] || [maxheight,mindepth,strut]|-| \definegridsnapping[both] || [minheight,mindepth,strut]|-| |- | \definegridsnapping[broad] || [maxheight,maxdepth,strut,0.8]|-| \definegridsnapping[fit] || [maxheight,maxdepth,strut,1.2]|-| |- | \definegridsnapping[first] || [first]|-| \definegridsnapping[last] || [last]|-| \definegridsnapping[high] || [minheight,maxdepth,none]|-| \definegridsnapping[low] || [maxheight,mindepth,none]|-| \definegridsnapping[line] || [line]|-| \definegridsnapping[strut] || [strut]|-| |- | \definegridsnapping[max] || [maxdepth,maxheight,strut]|-| \definegridsnapping[min] || [mindepth,minheight,strut]|-|}== Example ==
\definegridsnapping[first] [first]\definegridsnapping[last] [last]\definegridsnapping[high] [minheight,maxdepth,none]\definegridsnapping[low] [maxheight,mindepth,none]<context source=yes>\definegridsnapping[line] [line]\definegridsnapping[strut] setuppapersize[strutA10]
\definegridsnapping[max] [maxdepth,maxheight,strut]
\definegridsnapping[min] [mindepth,minheight,strut]
 
</pre>
 
 
== Example ==
 
<texcode>
%% This is an example for showing the effect of the vertical parameters
%% top, topdistance, bottom, bottomdistance and topspace.
%% Just play around with these parameters.
 
\showframe
%% Show the top and the bottom with blue color:
\setupcolors[state=start]\setupbackgrounds[topheader,bottomfooter][background=color,backgroundcolor=blue]
\def\MyLength{50pt10pt}
\setuplayout[
header=0pt,footer=0pt,headerdistance=0pt,footerdistance=0pt, top=\MyLength, topdistance=\MyLength, bottom=\MyLength, bottomdistance=\MyLength,
topspace=\dimexpr(\topheight + \topdistance),
height=fit]
\starttext
\dorecurse{7}{ \input tufte}\showsetupsthuan
\stoptext
 </texcodecontext
== See also ==
* [[Layout]]* {{cmd|adaptlayout}} to locally adapt the page layout* {{cmd|setuppapersize}} to set the paper size* [[PaperSetup#Predefined_Paper_Sizes|Paper setup section]] for the predefined paper sizes and [[Paper sizes]] for theirs actuals dimensions in mm.
<!== Help from ConTeXt-- something like [[cmdMailinglist/Forum ==All issues with:goto{{Forum|\goto]] -->{{SUBPAGENAME}}}}
[[Category:ReferenceCommand/enLayout|setuplayout]][[Category:Layout]]
57

edits

Navigation menu