https://wiki.contextgarden.net/api.php?action=feedcontributions&user=Lingochad&feedformat=atomWiki - User contributions [en]2024-03-28T16:51:01ZUser contributionsMediaWiki 1.34.1https://wiki.contextgarden.net/index.php?title=Command/setupheader&diff=22201Command/setupheader2013-11-22T19:10:14Z<p>Lingochad: </p>
<hr />
<div>{{Reference<br />
|name=setupheader<br />
|attributes=<br />
}}<br />
<br />
== [[Help:Reference|Syntax]] ==<br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr><br />
<td colspan="2" class="cmd">\setupheader<span class="first" style="color:red;">[...]</span><span class="second" >[...,...=...,...]</span></td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[...]</td><br />
<td><strong>text</strong> margin edge </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:state|state]]</td><br />
<td>[[Command/value:normal|normal]] [[Command/value:stop|stop]] [[Command/value:start|start]] [[Command/value:empty|empty]] [[Command/value:high|high]] [[Command/value:none|none]] [[Command/value:nomarking|nomarking]] [[Command/value:name|name]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:strut|strut]]</td><br />
<td>[[Command/value:yes|yes]] [[Command/value:no|no]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:style|style]]</td><br />
<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><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:leftstyle|leftstyle]]</td><br />
<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><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:rightstyle|rightstyle]]</td><br />
<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><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:leftwidth|leftwidth]]</td><br />
<td>[[Command/value:dimension|dimension]]<br /><!--<br />
-->Limit the text inside the header to a certain dimension. <!--<br />
-->Setting this value may interfere with any additional {{cmd|delimitatetext}} or {{cmd|doboundtext}} performed inside the headers<br />
</td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:rightwidth|rightwidth]]</td><br />
<td>[[Command/value:dimension|dimension]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:before|before]]</td><br />
<td>[[Command/value:command|command]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:after|after]]</td><br />
<td>[[Command/value:command|command]] </td><br />
</tr><br />
</table><br />
<br />
<br />
== Description == <br />
The first argument is assumed to be "text" when it is left out. Text sets the position of the header and/or footer directly over or under the pagebody. Margin places the content in the margin of the document.<br />
<br />
The different <tt>state</tt>s and their effects:<br />
{|<br />
|<tt>start</tt>, <tt>stop</tt><br />
|switch headings on and off<br />
|-<br />
|<tt>none</tt><br />
|switch off for whole chapter<br />
|-<br />
|<tt>empty</tt><br />
|no heading on the first chapter page<br />
|-<br />
|<tt>high</tt><br />
|no heading on the first chapter page + expand textarea about space occupied by heading.<br />
|-<br />
|<tt>text</tt><br />
|some 'text' defined by<br />
<texcode><br />
\definetext[text][footer][pagenumber]<br />
</texcode><br />
or<br />
<texcode><br />
\definetext[text][footer][left][right]<br />
</texcode><br />
which is valid on the first chapter page<br />
|}<br />
<br />
Note that when setting the state, before or after each applies to all parts of the page and it is therefore best to set these by themselves as the first example below shows. For this reason state=high also affects the footer in that it removes the footer leaving no whitespace.<br />
<br />
== Example ==<br />
<texcode>\setupheader[state=empty]</texcode><br />
<texcode>\setupheader[strut=yes,style=bold]</texcode><br />
<texcode>\setupheader[text][after=\vskip 4pt \hrule]</texcode><br />
<br />
== See also ==<br />
<!-- something like {{cmd|goto}} --><br />
<br />
{{cmd|setupheadertexts}}<br />
{{cmd|setupfooter}}<br />
{{cmd|setupfootertexts}}<br />
<br />
== Help from ConTeXt-Mailinglist/Forum ==<br />
All issues with:<br />
{{Forum|{{SUBPAGENAME}}}}<br />
<br />
[[Category:Commands|setupheader]]</div>Lingochadhttps://wiki.contextgarden.net/index.php?title=Command/setupheader&diff=22200Command/setupheader2013-11-22T18:27:34Z<p>Lingochad: </p>
<hr />
<div>{{Reference<br />
|name=setupheader<br />
|attributes=<br />
}}<br />
<br />
== [[Help:Reference|Syntax]] ==<br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr><br />
<td colspan="2" class="cmd">\setupheader<span class="first" style="color:red;">[...]</span><span class="second" >[...,...=...,...]</span></td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[...]</td><br />
<td><strong>text</strong> margin edge </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:state|state]]</td><br />
<td>[[Command/value:normal|normal]] [[Command/value:stop|stop]] [[Command/value:start|start]] [[Command/value:empty|empty]] [[Command/value:high|high]] [[Command/value:none|none]] [[Command/value:nomarking|nomarking]] [[Command/value:name|name]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:strut|strut]]</td><br />
<td>[[Command/value:yes|yes]] [[Command/value:no|no]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:style|style]]</td><br />
<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><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:leftstyle|leftstyle]]</td><br />
<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><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:rightstyle|rightstyle]]</td><br />
<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><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:leftwidth|leftwidth]]</td><br />
<td>[[Command/value:dimension|dimension]]<br /><!--<br />
-->Limit the text inside the header to a certain dimension. <!--<br />
-->Setting this value may interfere with any additional {{cmd|delimitatetext}} or {{cmd|doboundtext}} performed inside the headers<br />
</td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:rightwidth|rightwidth]]</td><br />
<td>[[Command/value:dimension|dimension]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:before|before]]</td><br />
<td>[[Command/value:command|command]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:after|after]]</td><br />
<td>[[Command/value:command|command]] </td><br />
</tr><br />
</table><br />
<br />
<br />
== Description == <br />
The first argument is assumed to be "text" when it is left out. Text sets the position of the header and/or footer directly over or under the pagebody.<br />
<br />
The different <tt>state</tt>s and their effects:<br />
{|<br />
|<tt>start</tt>, <tt>stop</tt><br />
|switch headings on and off<br />
|-<br />
|<tt>none</tt><br />
|switch off for whole chapter<br />
|-<br />
|<tt>empty</tt><br />
|no heading on the first chapter page<br />
|-<br />
|<tt>high</tt><br />
|no heading on the first chapter page + expand textarea about space occupied by heading.<br />
|-<br />
|<tt>text</tt><br />
|some 'text' defined by<br />
<texcode><br />
\definetext[text][footer][pagenumber]<br />
</texcode><br />
or<br />
<texcode><br />
\definetext[text][footer][left][right]<br />
</texcode><br />
which is valid on the first chapter page<br />
|}<br />
<br />
Note that when setting the state, before or after each applies to all parts of the page and it is therefore best to set these by themselves as the first example below shows. For this reason state=high also affects the footer in that it removes the footer leaving no whitespace.<br />
<br />
== Example ==<br />
<texcode>\setupheader[state=empty]</texcode><br />
<texcode>\setupheader[strut=yes,style=bold]</texcode><br />
<texcode>\setupheader[text][after=\vskip 4pt \hrule]</texcode><br />
<br />
== See also ==<br />
<!-- something like {{cmd|goto}} --><br />
<br />
{{cmd|setupheadertexts}}<br />
{{cmd|setupfooter}}<br />
{{cmd|setupfootertexts}}<br />
<br />
== Help from ConTeXt-Mailinglist/Forum ==<br />
All issues with:<br />
{{Forum|{{SUBPAGENAME}}}}<br />
<br />
[[Category:Commands|setupheader]]</div>Lingochadhttps://wiki.contextgarden.net/index.php?title=Command/setupheader&diff=22199Command/setupheader2013-11-22T18:25:45Z<p>Lingochad: </p>
<hr />
<div>{{Reference<br />
|name=setupheader<br />
|attributes=<br />
}}<br />
<br />
== [[Help:Reference|Syntax]] ==<br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr><br />
<td colspan="2" class="cmd">\setupheader<span class="first" style="color:red;">[...]</span><span class="second" >[...,...=...,...]</span></td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[...]</td><br />
<td><strong>text</strong> margin edge </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:state|state]]</td><br />
<td>[[Command/value:normal|normal]] [[Command/value:stop|stop]] [[Command/value:start|start]] [[Command/value:empty|empty]] [[Command/value:high|high]] [[Command/value:none|none]] [[Command/value:nomarking|nomarking]] [[Command/value:name|name]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:strut|strut]]</td><br />
<td>[[Command/value:yes|yes]] [[Command/value:no|no]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:style|style]]</td><br />
<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><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:leftstyle|leftstyle]]</td><br />
<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><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:rightstyle|rightstyle]]</td><br />
<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><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:leftwidth|leftwidth]]</td><br />
<td>[[Command/value:dimension|dimension]]<br /><!--<br />
-->Limit the text inside the header to a certain dimension. <!--<br />
-->Setting this value may interfere with any additional {{cmd|delimitatetext}} or {{cmd|doboundtext}} performed inside the headers<br />
</td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:rightwidth|rightwidth]]</td><br />
<td>[[Command/value:dimension|dimension]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:before|before]]</td><br />
<td>[[Command/value:command|command]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:after|after]]</td><br />
<td>[[Command/value:command|command]] </td><br />
</tr><br />
</table><br />
<br />
<br />
== Description == <br />
The first argument is assumed to be "text" when it is left out. Text sets the position of the header and/or footer directly over or under the pagebody.<br />
<br />
The different <tt>state</tt>s and their effects:<br />
{|<br />
|<tt>start</tt>, <tt>stop</tt><br />
|switch headings on and off<br />
|-<br />
|<tt>none</tt><br />
|switch off for whole chapter<br />
|-<br />
|<tt>empty</tt><br />
|no heading on the first chapter page<br />
|-<br />
|<tt>high</tt><br />
|no heading on the first chapter page + expand textarea about space occupied by heading.<br />
|-<br />
|<tt>text</tt><br />
|some 'text' defined by<br />
<texcode><br />
\definetext[text][footer][pagenumber]<br />
</texcode><br />
or<br />
<texcode><br />
\definetext[text][footer][left][right]<br />
</texcode><br />
which is valid on the first chapter page<br />
|}<br />
<br />
Note that when setting the state, before or after each applies to all parts of the page and it is therefore best set these by themselves as the first example below shows. For this reason state=high also affects the footer in that it allows the text to lap into the footer area as well.<br />
<br />
== Example ==<br />
<texcode>\setupheader[state=empty]</texcode><br />
<texcode>\setupheader[strut=yes,style=bold]</texcode><br />
<texcode>\setupheader[text][after=\vskip 4pt \hrule]</texcode><br />
<br />
== See also ==<br />
<!-- something like {{cmd|goto}} --><br />
<br />
{{cmd|setupheadertexts}}<br />
{{cmd|setupfooter}}<br />
{{cmd|setupfootertexts}}<br />
<br />
== Help from ConTeXt-Mailinglist/Forum ==<br />
All issues with:<br />
{{Forum|{{SUBPAGENAME}}}}<br />
<br />
[[Category:Commands|setupheader]]</div>Lingochadhttps://wiki.contextgarden.net/index.php?title=Command/setupheader&diff=22198Command/setupheader2013-11-22T18:24:23Z<p>Lingochad: </p>
<hr />
<div>{{Reference<br />
|name=setupheader<br />
|attributes=<br />
}}<br />
<br />
== [[Help:Reference|Syntax]] ==<br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr><br />
<td colspan="2" class="cmd">\setupheader<span class="first" style="color:red;">[...]</span><span class="second" >[...,...=...,...]</span></td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[...]</td><br />
<td><strong>text</strong> margin edge </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:state|state]]</td><br />
<td>[[Command/value:normal|normal]] [[Command/value:stop|stop]] [[Command/value:start|start]] [[Command/value:empty|empty]] [[Command/value:high|high]] [[Command/value:none|none]] [[Command/value:nomarking|nomarking]] [[Command/value:name|name]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:strut|strut]]</td><br />
<td>[[Command/value:yes|yes]] [[Command/value:no|no]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:style|style]]</td><br />
<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><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:leftstyle|leftstyle]]</td><br />
<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><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:rightstyle|rightstyle]]</td><br />
<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><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:leftwidth|leftwidth]]</td><br />
<td>[[Command/value:dimension|dimension]]<br /><!--<br />
-->Limit the text inside the header to a certain dimension. <!--<br />
-->Setting this value may interfere with any additional {{cmd|delimitatetext}} or {{cmd|doboundtext}} performed inside the headers<br />
</td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:rightwidth|rightwidth]]</td><br />
<td>[[Command/value:dimension|dimension]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:before|before]]</td><br />
<td>[[Command/value:command|command]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:after|after]]</td><br />
<td>[[Command/value:command|command]] </td><br />
</tr><br />
</table><br />
<br />
<br />
== Description == <br />
The first argument is assumed to be "text" when it is left out. Text sets the position of the header and/or footer directly over or under the pagebody.<br />
<br />
The different <tt>state</tt>s and their effects:<br />
{|<br />
|<tt>start</tt>, <tt>stop</tt><br />
|switch headings on and off<br />
|-<br />
|<tt>none</tt><br />
|switch off for whole chapter<br />
|-<br />
|<tt>empty</tt><br />
|no heading on the first chapter page<br />
|-<br />
|<tt>high</tt><br />
|no heading on the first chapter page + expand textarea about space occupied by heading.<br />
|-<br />
|<tt>text</tt><br />
|some 'text' defined by<br />
<texcode><br />
\definetext[text][footer][pagenumber]<br />
</texcode><br />
or<br />
<texcode><br />
\definetext[text][footer][left][right]<br />
</texcode><br />
which is valid on the first chapter page<br />
|}<br />
<br />
Note that when setting the state, before or after each applies to all parts of the page and it is therefore best set these by themselves as the first example below shows. For this reason state=high also affects the footer in that it allows the text to lap into the footer area as well.<br />
<br />
== Example ==<br />
<texcode>\setupheader[state=empty]</texcode><br />
<texcode>\setupheader[strut=yes,style=bold]</texcode><br />
<texcode>\setupheader[text][after=\vskip 4pt \hrule]</texcode><br />
<br />
== See also ==<br />
<!-- something like {{cmd|goto}} --><br />
<br />
{{cmd|setupheadertexts}}<br />
<br />
== Help from ConTeXt-Mailinglist/Forum ==<br />
All issues with:<br />
{{Forum|{{SUBPAGENAME}}}}<br />
<br />
[[Category:Commands|setupheader]]</div>Lingochadhttps://wiki.contextgarden.net/index.php?title=Command/setupheader&diff=22197Command/setupheader2013-11-22T15:20:36Z<p>Lingochad: </p>
<hr />
<div>{{Reference<br />
|name=setupheader<br />
|attributes=<br />
}}<br />
<br />
== [[Help:Reference|Syntax]] ==<br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr><br />
<td colspan="2" class="cmd">\setupheader<span class="first" style="color:red;">[...]</span><span class="second" >[...,...=...,...]</span></td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[...]</td><br />
<td><strong>text</strong> margin edge </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:state|state]]</td><br />
<td>[[Command/value:normal|normal]] [[Command/value:stop|stop]] [[Command/value:start|start]] [[Command/value:empty|empty]] [[Command/value:high|high]] [[Command/value:none|none]] [[Command/value:nomarking|nomarking]] [[Command/value:name|name]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:strut|strut]]</td><br />
<td>[[Command/value:yes|yes]] [[Command/value:no|no]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:style|style]]</td><br />
<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><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:leftstyle|leftstyle]]</td><br />
<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><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:rightstyle|rightstyle]]</td><br />
<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><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:leftwidth|leftwidth]]</td><br />
<td>[[Command/value:dimension|dimension]]<br /><!--<br />
-->Limit the text inside the header to a certain dimension. <!--<br />
-->Setting this value may interfere with any additional {{cmd|delimitatetext}} or {{cmd|doboundtext}} performed inside the headers<br />
</td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:rightwidth|rightwidth]]</td><br />
<td>[[Command/value:dimension|dimension]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:before|before]]</td><br />
<td>[[Command/value:command|command]] </td><br />
</tr><br />
<tr valign="top" class="second"><br />
<td class="cmd">[[Command/keyword:after|after]]</td><br />
<td>[[Command/value:command|command]] </td><br />
</tr><br />
</table><br />
<br />
<br />
== Description == <br />
The different <tt>state</tt>s and their effects:<br />
{|<br />
|<tt>start</tt>, <tt>stop</tt><br />
|switch headings on and off<br />
|-<br />
|<tt>none</tt><br />
|switch off for whole chapter<br />
|-<br />
|<tt>empty</tt><br />
|no heading on the first chapter page<br />
|-<br />
|<tt>high</tt><br />
|no heading on the first chapter page + expand textarea about space occupied by heading. Strangely this also affects the footer in that it allows the text to lap into the footer area as well. I don't quite understand why this happens.<br />
|-<br />
|<tt>text</tt><br />
|some 'text' defined by<br />
<texcode><br />
\definetext[text][footer][pagenumber]<br />
</texcode><br />
or<br />
<texcode><br />
\definetext[text][footer][left][right]<br />
</texcode><br />
which is valid on the first chapter page<br />
|}<br />
<br />
<br />
== Example ==<br />
<!-- Please fill in an example if you can --><br />
<br />
== See also ==<br />
<!-- something like {{cmd|goto}} --><br />
<br />
{{cmd|setupheadertexts}}<br />
<br />
== Help from ConTeXt-Mailinglist/Forum ==<br />
All issues with:<br />
{{Forum|{{SUBPAGENAME}}}}<br />
<br />
[[Category:Commands|setupheader]]</div>Lingochadhttps://wiki.contextgarden.net/index.php?title=FO_Page_Layout&diff=22190FO Page Layout2013-11-20T21:38:53Z<p>Lingochad: </p>
<hr />
<div>=Overview=<br />
<br />
In FO, one sets up paper size and dimensions at the start of a<br />
document and then later calls on these setups. The most<br />
straightforward way to accomplish the same thing in ConTeXt is to<br />
break the documents into parts, and define page dimensions and<br />
layout at each part.<br />
<br />
First, let's look at page setup in FO for comparisons' sake:<br />
<br />
<pre><br />
<fo:simple-page-master <br />
master-name="first"<br />
page-height="11in" <br />
page-width="8.5in"<br />
margin-top="0.5in" <br />
margin-bottom="0.5in"<br />
margin-left="1in" <br />
margin-right="1in"><br />
<br />
<!--set up room for a header--><br />
<fo:region-body margin-top="1.0in"/><br />
<br />
</fo:simple-page-master><br />
</pre><br />
<br />
Note how both page dimensions (the physical height of a page) and<br />
the layout (the margins) are contained in the simple-page-master<br />
element. In ConTeXt, these two qualities are separate.<br />
<br />
=Physical Page Dimensions=<br />
<br />
Let's build different layouts in a ConTeXt document, starting<br />
from top to bottom.<br />
<br />
First, let's start with the basic document:<br />
<br />
<texcode><br />
\enableregime[utf]<br />
\setuppagenumbering[state=stop, way=bytext]<br />
\starttext<br />
</texcode><br />
<br />
The <tt>\part tells</tt> ConTeXt to break a document into the<br />
largest division, forcing a page break.<br />
<br />
<texcode><br />
\part{}<br />
</texcode><br />
<br />
Now we'll define the page size for the first part of the<br />
document. (Note that part can refer to any generic division; use<br />
part for the main divisions, when you want to change page<br />
layout.)<br />
<br />
<texcode><br />
\definepapersize[firstPart][width=8.5in, height=11in]<br />
\setuppapersize [firstPart]<br />
</texcode><br />
<br />
We'll add some dummy text :<br />
<br />
<texcode><br />
Some text for our first part.<br />
</texcode><br />
<br />
Let's repeat what we already did, altering our page height from<br />
11 to 10 inches.<br />
<br />
<texcode><br />
\part{}<br />
\definepapersize[secondPart][width=8.5in, height=11in]<br />
\setuppapersize [secondPart]<br />
Text for second part.<br />
\stoptext<br />
</texcode><br />
<br />
=Page Layout=<br />
<br />
We still haven't set up other page qualities like margins. Let's<br />
do this now, all at once:<br />
<br />
<texcode><br />
\part{}<br />
<br />
\definepapersize[firstdPart][width=8.5in, height=11in]<br />
\setuppapersize [firstPart]<br />
<br />
% define layout for first part<br />
\definelayout[<br />
topspace=.5in, <br />
bottomspace=.5in,<br />
cutspace=1in,<br />
backspace=1in, <br />
header=2in, <br />
footer=2in, <br />
rightmargin=1in, <br />
leftmargin=1in,<br />
width=5in, <br />
height=10in, <br />
]<br />
<br />
Text for first part.<br />
</texcode><br />
<br />
The "topspace" value refers to the space at the very top of a<br />
page, and is roughly equivalent to the "margin-top" attribute in<br />
FO. The "bottompace" value refers to the space at the very bottom<br />
of a page, and is roughly equivalent to the "margin-bottom"<br />
attribute in FO. The "backspace" value indicates the space in the<br />
left of the page and is roughly equivalent to "margin-left"<br />
attribute in FO. The "cutspace" value indicates the space in the<br />
left of the page and is roughly equivalent to "margin-left"<br />
attribute in FO. No text will occur in either one of these<br />
regions.<br />
<br />
If you pages are not double sided (not part of a book), the<br />
"backspace" value will determine how much space occurs between<br />
the left edge of the paper and any text. It always touches the<br />
"leftmargin" region. If you have a double sided layout, the<br />
"backspace" value will flip from right to left side of your<br />
pages, but will always be in the gutter, or the spine of a book<br />
that is bound.<br />
<br />
The values ConTeXt "header", "footer" "leftmargin" and<br />
"rightmargin" are roughly equal to the FO <fo:region-body<br />
margin-top="2in"/>, <fo:region-body region-after="2in"/>,<br />
<fo:region-body region-start="1in"/>, and <fo:region-body<br />
region-end="1in"/> respectively. Like their FO counterparts, the<br />
ConTeXt values set up margins at the top, bottom, left, and right<br />
of the page for marginal notes.<br />
<br />
The values "leftmargin" and "rightmargin" have no affect on the<br />
actual width of the body text. You could set "leftmargin" to 5in,<br />
and your body text would not change its width. When you set<br />
width to 5 inches, the width of your body text will in fact be 5<br />
inches. (This contrasts with height, as I explain below.) If you<br />
the sum of your "backspace", margins, and width exceed the total<br />
page width, your layout will not work.<br />
<br />
In contrast, the "header" and "footer" do change the overall<br />
height of your body text. If you increased the header by one<br />
inch, your body text would be 1 inch smaller. The height actually<br />
refers to the total height of the toppace, header, body text,<br />
footer, and bottomspace. If you set the header to 2 inches, and<br />
set the footer to 2 inches, and set the height to 4 inches, then<br />
the actual body height would be:<br />
<br />
4 - 2 - 2 = 0 (!)<br />
<br />
You would have no room for your body text at all. If you meant to<br />
set your body height to 4 inches, you would set height to 8<br />
inches (2 + 2 + 4 = 8).<br />
<br />
<table style="border:1px solid #DDDDDD"><br />
<br />
<caption><br />
<br />
FO ConTeXt conversions for physical page layouts </caption><br />
<br />
<tr style="background-color:#DDDDDD"><br />
<th><br />
FO </th><br />
<th><br />
ConTeXt </th><br />
</tr><br />
<br />
<tr><br />
<td><br />
<pre><fo:simple-page-master margin-top="x"></pre> </td><br />
<td><br />
<texcode>\definelayout topspace=x</texcode> </td><br />
</tr><br />
<br />
<tr style="background-color:#EEEEEE"><br />
<td><br />
<pre><fo:simple-page-master margin-bottom="x"></pre> </td><br />
<td><br />
<texcode>\definelayout bottomspace=x</texcode> </td><br />
</tr><br />
<br />
<tr><br />
<td><br />
<pre><simple-page-master margin-left="x"></pre> </td><br />
<td><br />
<texcode>\definelayout backspace=x</texcode> </td><br />
</tr><br />
<br />
<tr style="background-color:#EEEEEE"><br />
<td><br />
<pre><simple-page-master margin-right="x"></pre> </td><br />
<td><br />
<texcode>\definelayout cutspace=x</texcode> </td><br />
</tr><br />
<br />
<tr><br />
<td><br />
<pre><fo:region-body margin-top="x"/></pre> </td><br />
<td><br />
<texcode>\definelayout headerdistance=x</texcode> </td><br />
</tr><br />
<br />
<tr style="background-color:#EEEEEE"><br />
<td><br />
<pre><fo:region-before extent="x"/></pre> </td><br />
<td><br />
<texcode>\definelayout header=x</texcode> </td><br />
</tr><br />
<br />
<tr><br />
<td><br />
<pre><fo:region-after extent="x"/></pre> </td><br />
<td><br />
<texcode>\definelayout footer=x</texcode> </td><br />
</tr><br />
<br />
<tr style="background-color:#EEEEEE"><br />
<td><br />
<pre><fo:region-start extent="x"/></pre> </td><br />
<td><br />
<texcode>\definelayout left-margin=x</texcode> </td><br />
</tr><br />
<br />
<tr><br />
<td><br />
<pre><fo:region-after extent="x"/></pre> </td><br />
<td><br />
<texcode>\definelayout right-margin=x</texcode> </td><br />
</tr><br />
<br />
</table><br />
<br />
=Changing Layouts for First, Odd and Even Pages=<br />
<br />
FO lets you create different pages sizes and layouts for the<br />
first page, and for odd and even pages. Here is how to do the<br />
same in ConTeXt<br />
<br />
==First Page==<br />
<br />
In order to define different physical dimensions for your first<br />
page, use "1" as your first option:<br />
<br />
<texcode><br />
\definelayout[1][<br />
topspace=.5in, % the space at the very top of the page<br />
backspace=2in, % the space in the gutter <br />
header=2in, % the space for headers<br />
footer=2in, % the space for footers<br />
leftmargin=1in, % the space for margin notes<br />
rightmargin=1.5in, % the space for right margin notes<br />
width=3in, % the width of the body text<br />
height=7in % the height of the body text<br />
]<br />
</texcode><br />
<br />
==Odd and Even Pages==<br />
<br />
If you simply want to mirror odd and even pages, put this command<br />
at the top of your document:<br />
<br />
<texcode><br />
\setuppagenumbering[alternative=doublesided, state=stop]<br />
</texcode><br />
<br />
For more flexibility, you can add a position argument to your<br />
<tt>\definelayout</tt> command.<br />
<br />
<texcode><br />
\definelayout[odd]<br />
[backspace=1in,<br />
cutspace=1.25in,<br />
width=middle,<br />
height=9in]<br />
\definelayout[even]<br />
[backspace=1in,<br />
cutspace=1.25in,<br />
width=middle,<br />
height=8in]<br />
\setuplayout % needed to add this or the first page wouldn't format<br />
\starttext<br />
\showframe<br />
\dorecurse{12}{\input dawkins \par}<br />
\stoptext<br />
</texcode><br />
<br />
=Creating Headers and Footers=<br />
<br />
==Simple Headers and Footers==<br />
<br />
In FO, you create headers and footers with the static-content<br />
element:<br />
<br />
<pre><br />
<fo:static-content<br />
flow-name="even-page"><br />
Title<br />
</fo:static-content><br />
</pre><br />
<br />
With ConTeXt, we place headers and footers in the body of the<br />
text wherever we want them with the commands<br />
<tt>\setupheadertexts</tt> and <tt>\setupfootertexts</tt>. These<br />
commands takes 4 arguments, the first for the left margin on odd<br />
pages, the second for the right margin on odd pages, the third<br />
for the left margin on even pages, and the fourth for the right<br />
margin on even pages. For simplicity's sake, let's leave the<br />
middle two options empty, so we get headers and footers on the<br />
even and odd pages, naturally alligned with the left margin,<br />
allowing us to think of the header and footer as one block of<br />
text.<br />
<br />
<texcode><br />
\setupheadertexts[left(even) header][] [][right(odd) header]<br />
\setupfootertexts[left(even) footer][] [][right(odd) footer]<br />
</texcode><br />
<br />
Since headers and footers will apper on whatever page you issue<br />
these commands, we must define header and footer text after we<br />
issue the <tt>\part</tt> command. If we don't, and ConTeXt needs<br />
to put blank pages at the end of a part, these blank pages will<br />
erronously contain the headings from the new part.<br />
<br />
===Controlling the Placement of Headers and Footers===<br />
<br />
The <tt>\setupheader</tt> and <tt>\setupfooter</tt> commands give<br />
us some control over header and footer placement. If we want a<br />
completely eliminate a header or footer for just one page, we use<br />
this command in conjunction with the <tt>state=high</tt> option,<br />
which not only eliminates the text of the header or footer, but<br />
the space it occupieds as well, pushing the body text into the<br />
header or footer region:<br />
<br />
<texcode><br />
\setupheader[state=high] <br />
\setupfooter[state=high]<br />
</texcode><br />
<br />
Other values for "state" are "stop", which stops the placement of<br />
headers and footers; "start", which starts them again if they<br />
have been stopped; "empty", which preserves the space for the<br />
header or footer but does not show the text; and none, which<br />
completely eliminates both the space and the text for a header or<br />
foooter.<br />
<br />
We'll not use the <tt>\setupheader</tt> command in this tutorial,<br />
instead relying on other methods.<br />
<br />
==Changing Headers and Footers for the Firstpage==<br />
<br />
We have already seen how we place a different header on odd and<br />
even pages. To start a different header or footer on the first<br />
page, we need the <tt>\setuphead</tt> command. The command<br />
determines the placement of text on the first page of a division<br />
in a document, such as part. We will use this command in<br />
conjunction with a <tt>\definetext</tt> command in this way:<br />
<br />
<texcode><br />
\definetext[partStart1][header][Part Header]<br />
\setuphead[part][header=partStart1]<br />
\part{}<br />
</texcode><br />
<br />
For our sake, the <tt>\definetext</tt> command takes three<br />
options. The first is a name you choose to give it. The second is<br />
the postion. The third is the text itself.<br />
<br />
Once we set up the defintion for the text, we recall it in the<br />
very next line in the <tt>header=partStart1</tt> option.<br />
<br />
Note how we pace the definition for the header before we issue<br />
the <tt>\part</tt> command. This contrast with all the other<br />
formatting commands we use for page layout, which come after the<br />
<tt>\part</tt> command.<br />
<br />
=Formatting Text in Headers and Footers=<br />
<br />
We'll need special commands to format our text in headers and<br />
footers. In order to make justify text left or right, we'll use<br />
the <tt>\hfill</tt> command. The <tt>\hfill</tt> command tells<br />
ConTeXt to fill in as much space horizontal space as possible.<br />
<br />
<texcode><br />
% force the odd header to the right and the even header to the left<br />
% (where it would appear, anyway).<br />
\setupheadertexts[\hfill left(odd) header][] [][right(even) header<br />
\hfill]<br />
<br />
% an hfill command on either side of the word middle <br />
% forces the word to be centered<br />
\setupheadertexts[left \hfill middle \hfill right][] [][right header]<br />
</texcode><br />
<br />
Since ConTeXt won't allow us to create paragraphs in headers and<br />
footers as we would in normal text, we need the <tt>\vbox</tt><br />
command if we want more than one line in a header or footer. The<br />
command <tt>\vbox</tt> stands for vertical box, the basic<br />
paragraph unit that ConTeXt uses behind the scenes. In order to<br />
break a line inside a <tt>\vbox</tt>, we use <tt>\vskip</tt>.<br />
<br />
=Example Documents=<br />
<br />
Here are two example documents, illustrating all the formatting.<br />
The first is a plain old ConTeXt document. The second is a TeXML<br />
document.<br />
<br />
[[page setup1]]<br />
<br />
[[page setup1 texml]]<br />
<br />
=Summary=<br />
<br />
* We use the <tt>\part</tt> command to change page formatting, or put another way, to start a new run of pages.<br />
* Unlike FO, which defines page formatting at the start of a document, ConTeXt formatting commands are placed in the vicinity of <tt>\part</tt>.<br />
* We use <tt>\definelayout</tt> to set both the physical properties of a page as well as its layout.<br />
* We place the <tt>\setuphead</tt> command before the <tt>\part</tt> command. We place all other commands after <tt>\part</tt>.<br />
* The <tt>\setuphead</tt> command allows us to control the headers and foooters for a new run of pages.<br />
* We use the <tt>\vbox</tt> and <tt>\hfill</tt> commands to format text within a header or footer.<br />
<br />
<br />
=To Do=<br />
<br />
* Find out if there is a corresponding value of footerdistnace in FO.<br />
<br />
[[Category:XML]]<br />
[[Category:Text elements]]</div>Lingochadhttps://wiki.contextgarden.net/index.php?title=Command/mixedcolumns&diff=22189Command/mixedcolumns2013-11-19T16:08:39Z<p>Lingochad: </p>
<hr />
<div>{{Reference<br />
|name=mixedcolumns<br />
|attributes=<br />
}}<br />
<br />
== [[Help:Reference|Syntax]] ==<br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr><br />
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[instance][settings]</span> ... \stopmixedcolumns</td><br />
</tr><br />
<tr><br />
<td> Or </td><br />
</tr><br />
<tr><br />
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[instance]</span></td><br />
</tr><br />
<tr><br />
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[settings]</span></td><br />
</tr><br />
<tr><br />
<td colspan="2" class="cmd">\stopmixedcolumns</td><br />
</tr><br />
</table><br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:distance|distance]]</td><br />
<td>[[Command/value:dimension|dimension]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:n|n]]</td><br />
<td>[[Command/value:number|number]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:rule|rule]]</td><br />
<td>[[Command/value:on|on]] [[Command/value:off|off]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:frame|frame]]</td><br />
<td> </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:strut|strut]]</td><br />
<td>default no </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:offset|offset]]</td><br />
<td>default overlay </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:direction|direction]]</td><br />
<td>[[Command/value:left|left]] [[Command/value:right|right]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:maxheight|maxheight]]</td><br />
<td>[[Command/value:dimension|dimension]] \textheight</td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:maxwidth|maxwidth]]</td><br />
<td>[[Command/value:dimension|dimension]] \makeupwidth</td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:grid|grid]]</td><br />
<td>[[Command/value:verystrict|verystrict]] [[Command/value:strict|strict]] [[Command/value:tolerant|tolerant]] [[Command/value:verytolerant|verytolerant]] [[Command/value:stretch|stretch]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:step|step]]</td><br />
<td>default: .25\lineheight Still needs experimenting </td><br />
</tr><br />
</table><br />
<br />
<br />
== Description == <br />
Hans comments in the source that it is possible to define columns using a start command, but it is best to define an instance by using {{cmd|definemixedcolumns}}. This does not seem to be implemented yet. I could only get it to work without defining an instance as the example shows below, so take the syntax above with that grain of salt.<br />
<br />
It is likely that all the options that work for the older columns command also work for mixedcolumns. It doesn't hurt to test and find out. Do report back here.<br />
<br />
{| class="wikitable"<br />
|-<br />
| distance<br />
| Distance between columns.<br />
|-<br />
| n <br />
| Number of columns. Default is n=2.<br />
|-<br />
| rule <br />
| Draw a line between the columns. Default is off.<br />
|-<br />
| frame<br />
|<br />
|-<br />
| strut<br />
| <br />
|-<br />
| grid<br />
| Grid snapping mode. Default is tolerant.<br />
|- <br />
| balance <br />
| Left and right columns balanced at bottom of columns<br />
|- <br />
| align <br />
| Left, right (raggedleft, raggedright).<br />
|- <br />
| direction <br />
| Default is right, i.e. the first column is on the left; 'left' means the first column is the rightmost.<br />
|- <br />
|}<br />
<br />
== Example ==<br />
<context source=yes><br />
\startcolumns[n=2, distance=5mm, rule=on, balance=yes]<br />
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br />
\stopcolumns<br />
<br />
</context><br />
<br />
This example works with ConTeXt ver: 2013.05.28 00:36 MKIV.<br />
<br />
== See also ==<br />
* {{cmd|column}}<br />
<br />
== Help from ConTeXt-Mailinglist/Forum ==<br />
All issues with:<br />
{{Forum|{{SUBPAGENAME}}}}<br />
<br />
{{Columns navbox}}<br />
<br />
[[Category:Command/Columns|mixedcolumns]]</div>Lingochadhttps://wiki.contextgarden.net/index.php?title=Command/mixedcolumns&diff=22188Command/mixedcolumns2013-11-18T20:11:32Z<p>Lingochad: </p>
<hr />
<div>{{Reference<br />
|name=mixedcolumns<br />
|attributes=<br />
}}<br />
<br />
== [[Help:Reference|Syntax]] ==<br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr><br />
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[instance][settings]</span> ... \stopmixedcolumns</td><br />
</tr><br />
<tr><br />
<td> Or </td><br />
</tr><br />
<tr><br />
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[instance]</span></td><br />
</tr><br />
<tr><br />
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[settings]</span></td><br />
</tr><br />
<tr><br />
<td colspan="2" class="cmd">\stopmixedcolumns</td><br />
</tr><br />
</table><br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:distance|distance]]</td><br />
<td>[[Command/value:dimension|dimension]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:n|n]]</td><br />
<td>[[Command/value:number|number]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:rule|rule]]</td><br />
<td>[[Command/value:on|on]] [[Command/value:off|off]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:frame|frame]]</td><br />
<td> </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:strut|strut]]</td><br />
<td>default no </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:offset|offset]]</td><br />
<td>default overlay </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:direction|direction]]</td><br />
<td>[[Command/value:left|left]] [[Command/value:right|right]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:maxheight|maxheight]]</td><br />
<td>[[Command/value:dimension|dimension]] \textheight</td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:maxwidth|maxwidth]]</td><br />
<td>[[Command/value:dimension|dimension]] \makeupwidth</td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:grid|grid]]</td><br />
<td>[[Command/value:verystrict|verystrict]] [[Command/value:strict|strict]] [[Command/value:tolerant|tolerant]] [[Command/value:verytolerant|verytolerant]] [[Command/value:stretch|stretch]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:step|step]]</td><br />
<td>default: .25\lineheight Still needs experimenting </td><br />
</tr><br />
</table><br />
<br />
<br />
== Description == <br />
Hans comments in the source that it is possible to define columns using a start command, but it is best to define an instance by using {{cmd|definemixedcolumns}}. This does not seem to be implemented yet. I could only get it to work without defining an instance as the example shows below, so take the syntax above with that grain of salt.<br />
<br />
{| class="wikitable"<br />
|-<br />
| distance<br />
| Distance between columns.<br />
|-<br />
| n <br />
| Number of columns. Default is n=2.<br />
|-<br />
| rule <br />
| Draw a line between the columns. Default is off.<br />
|-<br />
| frame<br />
|<br />
|-<br />
| strut<br />
| <br />
|-<br />
| grid<br />
| Grid snapping mode. Default is tolerant.<br />
|- <br />
| balance <br />
| Left and right columns balanced at bottom of columns<br />
|- <br />
| align <br />
| Left, right (raggedleft, raggedright).<br />
|- <br />
| direction <br />
| Default is right, i.e. the first column is on the left; 'left' means the first column is the rightmost.<br />
|- <br />
|}<br />
<br />
== Example ==<br />
<context source=yes><br />
\startcolumns[n=2, distance=5mm, rule=on, balance=yes]<br />
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br />
\stopcolumns<br />
<br />
</context><br />
<br />
This example works with ConTeXt ver: 2013.05.28 00:36 MKIV.<br />
<br />
== See also ==<br />
* {{cmd|column}}<br />
<br />
== Help from ConTeXt-Mailinglist/Forum ==<br />
All issues with:<br />
{{Forum|{{SUBPAGENAME}}}}<br />
<br />
{{Columns navbox}}<br />
<br />
[[Category:Command/Columns|mixedcolumns]]</div>Lingochadhttps://wiki.contextgarden.net/index.php?title=Command/mixedcolumns&diff=22187Command/mixedcolumns2013-11-18T20:10:30Z<p>Lingochad: </p>
<hr />
<div>{{Reference<br />
|name=mixedcolumns<br />
|attributes=<br />
}}<br />
<br />
== [[Help:Reference|Syntax]] ==<br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr><br />
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[instance][settings]</span> ... \stopmixedcolumns</td><br />
</tr><br />
<tr><br />
<td> Or </td><br />
</tr><br />
<tr><br />
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[instance]</span></td><br />
</tr><br />
<tr><br />
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[settings]</span></td><br />
</tr><br />
<tr><br />
<td colspan="2" class="cmd">\stopmixedcolumns</td><br />
</tr><br />
</table><br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:distance|distance]]</td><br />
<td>[[Command/value:dimension|dimension]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:n|n]]</td><br />
<td>[[Command/value:number|number]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:rule|rule]]</td><br />
<td>[[Command/value:on|on]] [[Command/value:off|off]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:frame|frame]]</td><br />
<td> </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:strut|strut]]</td><br />
<td>default no </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:offset|offset]]</td><br />
<td>default overlay </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:direction|direction]]</td><br />
<td>[[Command/value:left|left]] [[Command/value:right|right]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:maxheight|maxheight]]</td><br />
<td>[[Command/value:dimension|dimension]] \textheight</td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:maxwidth|maxwidth]]</td><br />
<td>[[Command/value:dimension|dimension]] \makeupwidth</td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:grid|grid]]</td><br />
<td>[[Command/value:verystrict|verystrict]] [[Command/value:strict|strict]] [[Command/value:tolerant|tolerant]] [[Command/value:verytolerant|verytolerant]] [[Command/value:stretch|stretch]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:step|step]]</td><br />
<td>default: .25\lineheight Still needs experimenting </td><br />
</tr><br />
</table><br />
<br />
<br />
== Description == <br />
<br />
<br />
{| class="wikitable"<br />
|-<br />
| distance<br />
| Distance between columns.<br />
|-<br />
| n <br />
| Number of columns. Default is n=2.<br />
|-<br />
| rule <br />
| Draw a line between the columns. Default is off.<br />
|-<br />
| frame<br />
|<br />
|-<br />
| strut<br />
| <br />
|-<br />
| grid<br />
| Grid snapping mode. Default is tolerant.<br />
|- <br />
| balance <br />
| Left and right columns balanced at bottom of columns<br />
|- <br />
| align <br />
| Left, right (raggedleft, raggedright).<br />
|- <br />
| direction <br />
| Default is right, i.e. the first column is on the left; 'left' means the first column is the rightmost.<br />
|- <br />
|}<br />
== Description == <br />
<br />
Hans comments in the source that it is possible to define columns using a start command, but it is best to define an instance by using {{cmd|definemixedcolumns}}. This does not seem to be implemented yet. I could only get it to work without defining an instance as the example shows below.<br />
<br />
== Example ==<br />
<context source=yes><br />
\startcolumns[n=2, distance=5mm, rule=on, balance=yes]<br />
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br />
\stopcolumns<br />
<br />
</context><br />
<br />
This example works with ConTeXt ver: 2013.05.28 00:36 MKIV.<br />
<br />
== See also ==<br />
* {{cmd|column}}<br />
<br />
== Help from ConTeXt-Mailinglist/Forum ==<br />
All issues with:<br />
{{Forum|{{SUBPAGENAME}}}}<br />
<br />
{{Columns navbox}}<br />
<br />
[[Category:Command/Columns|mixedcolumns]]</div>Lingochadhttps://wiki.contextgarden.net/index.php?title=Command/mixedcolumns&diff=22186Command/mixedcolumns2013-11-18T20:09:13Z<p>Lingochad: </p>
<hr />
<div>{{Reference<br />
|name=mixedcolumns<br />
|attributes=<br />
}}<br />
<br />
== [[Help:Reference|Syntax]] ==<br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr><br />
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[instance][settings]</span> ... \stopmixedcolumns</td><br />
</tr><br />
<tr><br />
<td> Or </td><br />
</tr><br />
<tr><br />
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[instance]</span></td><br />
</tr><br />
<tr><br />
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[settings]</span></td><br />
<tr><br />
<td colspan="2" class="cmd">\stopmixedcolumns</td><br />
</tr><br />
</table><br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:distance|distance]]</td><br />
<td>[[Command/value:dimension|dimension]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:n|n]]</td><br />
<td>[[Command/value:number|number]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:rule|rule]]</td><br />
<td>[[Command/value:on|on]] [[Command/value:off|off]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:frame|frame]]</td><br />
<td> </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:strut|strut]]</td><br />
<td>default no </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:offset|offset]]</td><br />
<td>default overlay </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:direction|direction]]</td><br />
<td>[[Command/value:left|left]] [[Command/value:right|right]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:maxheight|maxheight]]</td><br />
<td>[[Command/value:dimension|dimension]] \textheight</td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:maxwidth|maxwidth]]</td><br />
<td>[[Command/value:dimension|dimension]] \makeupwidth</td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:grid|grid]]</td><br />
<td>[[Command/value:verystrict|verystrict]] [[Command/value:strict|strict]] [[Command/value:tolerant|tolerant]] [[Command/value:verytolerant|verytolerant]] [[Command/value:stretch|stretch]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:step|step]]</td><br />
<td>default: .25\lineheight Still needs experimenting </td><br />
</tr><br />
</table><br />
<br />
<br />
== Description == <br />
<br />
<br />
{| class="wikitable"<br />
|-<br />
| distance<br />
| Distance between columns.<br />
|-<br />
| n <br />
| Number of columns. Default is n=2.<br />
|-<br />
| rule <br />
| Draw a line between the columns. Default is off.<br />
|-<br />
| frame<br />
|<br />
|-<br />
| strut<br />
| <br />
|-<br />
| grid<br />
| Grid snapping mode. Default is tolerant.<br />
|- <br />
| balance <br />
| Left and right columns balanced at bottom of columns<br />
|- <br />
| align <br />
| Left, right (raggedleft, raggedright).<br />
|- <br />
| direction <br />
| Default is right, i.e. the first column is on the left; 'left' means the first column is the rightmost.<br />
|- <br />
|}<br />
== Description == <br />
<br />
Hans comments in the source that it is possible to define columns using a start command, but it is best to define an instance by using {{cmd|definemixedcolumns}}. This does not seem to be implemented yet. I could only get it to work without defining an instance as the example shows below.<br />
<br />
== Example ==<br />
<context source=yes><br />
\startcolumns[n=2, distance=5mm, rule=on, balance=yes]<br />
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br />
\stopcolumns<br />
<br />
</context><br />
<br />
This example works with ConTeXt ver: 2013.05.28 00:36 MKIV.<br />
<br />
== See also ==<br />
* {{cmd|column}}<br />
<br />
== Help from ConTeXt-Mailinglist/Forum ==<br />
All issues with:<br />
{{Forum|{{SUBPAGENAME}}}}<br />
<br />
{{Columns navbox}}<br />
<br />
[[Category:Command/Columns|mixedcolumns]]</div>Lingochadhttps://wiki.contextgarden.net/index.php?title=Command/mixedcolumns&diff=22185Command/mixedcolumns2013-11-18T20:07:15Z<p>Lingochad: Created page with "{{Reference |name=mixedcolumns |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd">\startm..."</p>
<hr />
<div>{{Reference<br />
|name=mixedcolumns<br />
|attributes=<br />
}}<br />
<br />
== [[Help:Reference|Syntax]] ==<br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr><br />
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[instance][settings]</span> ... \stopmixedcolumns</td><br />
</tr><br />
<tr><br />
<td> Or </td><br />
</tr><br />
<tr><br />
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[instance]</span></td><br />
</tr><br />
<tr><br />
<td colspan="2" class="cmd">\startmixedcolumns<span class="first" style="color:red;">[settings]</span></td><br />
<tr><br />
<td colspan="2" class="cmd">\stopmixedcolumns</td><br />
</tr><br />
</table><br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr><br />
<td colspan="2" class="cmd">\mixedcolumns<span class="first" >[...,...=...,...]</span></td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:distance|distance]]</td><br />
<td>[[Command/value:dimension|dimension]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:n|n]]</td><br />
<td>[[Command/value:number|number]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:rule|rule]]</td><br />
<td>[[Command/value:on|on]] [[Command/value:off|off]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:frame|frame]]</td><br />
<td> </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:strut|strut]]</td><br />
<td>default no </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:offset|offset]]</td><br />
<td>default overlay </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:direction|direction]]</td><br />
<td>[[Command/value:left|left]] [[Command/value:right|right]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:maxheight|maxheight]]</td><br />
<td>[[Command/value:dimension|dimension]] \textheight</td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:maxwidth|maxwidth]]</td><br />
<td>[[Command/value:dimension|dimension]] \makeupwidth</td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:grid|grid]]</td><br />
<td>[[Command/value:verystrict|verystrict]] [[Command/value:strict|strict]] [[Command/value:tolerant|tolerant]] [[Command/value:verytolerant|verytolerant]] [[Command/value:stretch|stretch]] </td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[[Command/keyword:step|step]]</td><br />
<td>default: .25\lineheight Still needs experimenting </td><br />
</tr><br />
</table><br />
<br />
<br />
== Description == <br />
<br />
<br />
{| class="wikitable"<br />
|-<br />
| distance<br />
| Distance between columns.<br />
|-<br />
| n <br />
| Number of columns. Default is n=2.<br />
|-<br />
| rule <br />
| Draw a line between the columns. Default is off.<br />
|-<br />
| frame<br />
|<br />
|-<br />
| strut<br />
| <br />
|-<br />
| grid<br />
| Grid snapping mode. Default is tolerant.<br />
|- <br />
| balance <br />
| Left and right columns balanced at bottom of columns<br />
|- <br />
| align <br />
| Left, right (raggedleft, raggedright).<br />
|- <br />
| direction <br />
| Default is right, i.e. the first column is on the left; 'left' means the first column is the rightmost.<br />
|- <br />
|}<br />
== Description == <br />
<br />
Hans comments in the source that it is possible to define columns using a start command, but it is best to define an instance by using {{cmd|definemixedcolumns}}. This does not seem to be implemented yet. I could only get it to work without defining an instance as the example shows below.<br />
<br />
== Example ==<br />
<context source=yes><br />
\startcolumns[n=2, distance=5mm, rule=on, balance=yes]<br />
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.<br />
\stopcolumns<br />
<br />
</context><br />
<br />
This example works with ConTeXt ver: 2013.05.28 00:36 MKIV.<br />
<br />
== See also ==<br />
* {{cmd|column}}<br />
<br />
== Help from ConTeXt-Mailinglist/Forum ==<br />
All issues with:<br />
{{Forum|{{SUBPAGENAME}}}}<br />
<br />
{{Columns navbox}}<br />
<br />
[[Category:Command/Columns|mixedcolumns]]</div>Lingochadhttps://wiki.contextgarden.net/index.php?title=Command/setups&diff=22169Command/setups2013-11-07T19:34:48Z<p>Lingochad: </p>
<hr />
<div>{{Reference<br />
|name=setups<br />
|attributes=<br />
}}<br />
<br />
== [[Help:Reference|Syntax]] ==<br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr><br />
<td colspan="2" class="cmd">\setups<span class="first" style="color:red;">[ID]</span></td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[ID]</td><br />
<td>the name of the setup to invoke</td><br />
</tr><br />
</table><br />
<br />
== Description == <br />
<br />
{{cmd|setup|[mysetup]}} or {{cmd|setups|[mysetup]}} invokes a previously defined setup.<br />
See [[Setups]] for more information.<br />
<br />
== See also ==<br />
* [[Setups]]<br />
<br />
== Help from ConTeXt-Mailinglist/Forum ==<br />
All issues with:<br />
{{Forum|{{SUBPAGENAME}}}}<br />
<br />
[[Category:Commands|setups]]</div>Lingochadhttps://wiki.contextgarden.net/index.php?title=Command/setups&diff=22168Command/setups2013-11-07T19:33:29Z<p>Lingochad: </p>
<hr />
<div>{{Reference<br />
|name=setups<br />
|attributes=<br />
}}<br />
<br />
== [[Help:Reference|Syntax]] ==<br />
<table cellspacing="4" cellpadding="2" class="cmd"><br />
<tr><br />
<td colspan="2" class="cmd">\setups<span class="first" style="color:red;">[ID]</span></td><br />
</tr><br />
<tr valign="top" class="first"><br />
<td class="cmd">[ID]</td><br />
<td>the name of the setup to invoke</td><br />
</tr><br />
</table><br />
<br />
== Description == <br />
<br />
{{cmd|setup|[mysetup]}} or {{cmd|setups|[mysetup]}} invokes a previously defined setup.<br />
See [[Setups]] for more information.<br />
<br />
== See also ==<br />
* [[Setup]]<br />
<br />
== Help from ConTeXt-Mailinglist/Forum ==<br />
All issues with:<br />
{{Forum|{{SUBPAGENAME}}}}<br />
<br />
[[Category:Commands|setups]]</div>Lingochadhttps://wiki.contextgarden.net/index.php?title=Simple_Typescript_Example&diff=22093Simple Typescript Example2013-09-25T12:46:19Z<p>Lingochad: fixing minor typos</p>
<hr />
<div>[[Category:Fonts]]<br />
==Task==<br />
<br />
To map Nimbus Sans on rm-fonts and Nimbus Serif on ss-fonts.<br />
<br />
==Requirements==<br />
<br />
The Nimbus Sans and Nimbus Serif fonts are installed at your System and also recognized by ConTeXt. If <br />
<br />
mtxrun --script fonts --list --all --pattern=nimbus*<br />
<br />
does not show you minimum:<br />
<br />
nimbusromno9lmedi nimbusromno9lmedi utmb8a.afm<br />
nimbusromno9lmedibold nimbusromno9lmedi utmb8a.afm<br />
nimbusromno9lmediital nimbusromno9lmediital utmbi8a.afm<br />
nimbusromno9lregu nimbusromno9lregu utmr8a.afm<br />
nimbusromno9lreguital nimbusromno9lreguital utmri8a.afm<br />
nimbusromno9lregunormal nimbusromno9lregu utmr8a.afm<br />
nimbussanlbold nimbussanlbold uhvb8a.afm<br />
nimbussanlboldital nimbussanlboldital uhvbo8a.afm<br />
nimbussanlregu nimbussanlregu uhvr8a.afm<br />
nimbussanlreguital nimbussanlreguital uhvro8a.afm<br />
nimbussanlregunormal nimbussanlregu uhvr8a.afm<br />
<br />
please visit the instruction [[Fonts_in_LuaTeX#Building_the_font_database|how to install fonts to MkIV]].<br />
<br />
You do not have to use this Nimbus font. For this example you can use any Unicode font you like. If you use different fonts do not forget to exchange the font names in the example script below.<br />
<br />
==Script==<br />
<br />
<texcode><br />
\enableregime[utf]<br />
\setupencoding[default=uc]<br />
<br />
\setupcapitals[sc=yes]<br />
<br />
\starttypescript [serif] [nimbus] <br />
\definefontsynonym [Serif] [name:nimbussanlregu]<br />
\definefontsynonym [SerifBold] [name:nimbussanlbold]<br />
\definefontsynonym [SerifItalic] [name:nimbussanlreguital]<br />
\definefontsynonym [SerifSlanted] [name:nimbussanlreguital]<br />
\definefontsynonym [SerifBoldItalic] [name:nimbussanlboldital]<br />
\definefontsynonym [SerifBoldSlanted] [name:nimbussanlboldital]<br />
\definefontsynonym [SerifCaps] [name:nimbussanlregu]<br />
\stoptypescript<br />
<br />
\starttypescript [sans] [nimbus] <br />
\definefontsynonym [Sans] [name:nimbusromno9lregu]<br />
\definefontsynonym [SansBold] [name:nimbusromno9lbold]<br />
\definefontsynonym [SansItalic] [name:nimbusromno9lreguital]<br />
\definefontsynonym [SansSlanted] [name:nimbusromno9lreguital]<br />
\definefontsynonym [SansBoldItalic] [name:nimbusromno9lboldital]<br />
\definefontsynonym [SansBoldSlanted] [name:nimbusromno9lboldital]<br />
\definefontsynonym [SansCaps] [name:nimbusromno9lregu]<br />
\stoptypescript<br />
<br />
\definetypeface [nimbus] [rm] [serif] [nimbus]<br />
\definetypeface [nimbus] [ss] [sans] [nimbus]<br />
<br />
\setupbodyfont[nimbus,rm,10pt]<br />
<br />
\starttext<br />
<br />
Regular<br />
<br />
{\it Italic}<br />
<br />
{\bf Bold}<br />
<br />
{\bi Bold-Italic}<br />
<br />
{\sc KaPiTaLe}<br />
<br />
\showbodyfont<br />
<br />
\stoptext<br />
</texcode><br />
<br />
Annotations:<br />
* The first two lines say: <br />
** We only enter unicode <br />
** We only use unicode fonts<br />
* Thirds line (setupcapitals) say ConTeXt to use the Capital Letters defined in the fonts<br />
* Two scripts are defined:<br />
*# the scripts named ''[serif][nimbus]'' and<br />
*# the script named ''[sans][nimbus]''<br />
* Both scripts map the fonts names to the different (existing) font style.<br />
* Both definetypeface-lines define the typeface ''nimbus''. The first defines the rm-fonts and the second the ss-fonts. <br />
* setupbodyfont says to ConTeXt witch typeface to use with which parameters.<br />
<br />
The chain starts with setupbodyfont: it calls the ''typeface nimbus''. Then the ''typeface nimbus''<br />
# calls the ''typescript [serif][nimbus]'' for the rm-fonts<br />
# calls the ''typescript [sans][nimbus]'' for the ss-fonts.<br />
And inside these scripts the fonts are mapped to the different font styles.<br />
<br />
==Small extension==<br />
<br />
To show how to call a typescript directly we extend the script a little:<br />
<br />
<texcode><br />
...<br />
\definefontsynonym [SansCaps] [name:nimbusromno9lregu]<br />
\stoptypescript<br />
<br />
\starttypescript [nimbus]<br />
\definetypeface [nimbus] [rm] [serif] [nimbus]<br />
\definetypeface [nimbus] [ss] [sans] [nimbus]<br />
\stoptypescript<br />
<br />
\usetypescript[nimbus]<br />
\setupbodyfont[nimbus,rm,10pt]<br />
<br />
\starttext<br />
...<br />
</texcode><br />
<br />
Annotations:<br />
* A third typescript is defined named ''[nimbus]''<br />
* usetypescript calls the ''typescript [nimbus]'' in which the ''typeface [nimbus]'' is defined<br />
* ''typeface [nimbus]'' and ''typescript [nimbus]'' are two totally different things<br />
* if the ''typescript [nimbus]'' would not be called via usetypescript then the ''typeface [nimbus]'' would not be defined<br />
<br />
==References==<br />
<br />
* [[Command/setupbodyfont|setupbodyfont]]<br />
* [[Command/showbodyfont|showbodyfont]]<br />
* definetypeface (not found in the references)<br />
* starttypescript / stoptypescript (not found in the references)<br />
* definefontsynonym (not found in the references)</div>Lingochad