Difference between revisions of "Command/setuphead"

From ConTeXt wiki
(Syntax)
(Modifying the page before a chapter: patched new example)
 
(31 intermediate revisions by 14 users not shown)
Line 11: Line 11:
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
 
     <td class="cmd">[...,...,...]</td>
 
     <td class="cmd">[...,...,...]</td>
     <td>section </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:default|default]]</td>
+
     <td class="cmd">[[Command/keyword:default|default]]</td>
     <td>[[Reference/en/value:SECTION|SECTION]] </td>
+
     <td>[[Command/value:SECTION|SECTION]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:section|section]]</td>
+
     <td class="cmd">[[Command/keyword:section|section]]</td>
     <td>[[Reference/en/value:SECTION|SECTION]] </td>
+
     <td>[[Command/value:SECTION|SECTION]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:coupling|coupling]]</td>
+
     <td class="cmd">[[Command/keyword:coupling|coupling]]</td>
     <td>[[Reference/en/value:SECTION|SECTION]] </td>
+
     <td>[[Command/value:SECTION|SECTION]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:sectionnumber|sectionnumber]]</td>
+
     <td class="cmd">[[Command/keyword:sectionnumber|sectionnumber]]</td>
     <td><u>[[Reference/en/value:yes|yes]]</u> [[Reference/en/value:no|no]] </td>
+
     <td><u>[[Command/value:yes|yes]]</u> [[Command/value:no|no]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:textstyle|textstyle]]</td>
+
     <td class="cmd">[[Command/keyword:textstyle|textstyle]]</td>
     <td>[[Reference/en/value:normal|normal]] [[Reference/en/value:bold|bold]] [[Reference/en/value:slanted|slanted]] [[Reference/en/value:boldslanted|boldslanted]] [[Reference/en/value:type|type]] [[Reference/en/value:cap|cap]] [[Reference/en/value:small...|small...]] [[Reference/en/value:COMMAND|COMMAND]] </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>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:textcolor|textcolor]]</td>
+
     <td class="cmd">[[Command/keyword:textcolor|textcolor]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:numberstyle|numberstyle]]</td>
+
     <td class="cmd">[[Command/keyword:numberstyle|numberstyle]]</td>
     <td>[[Reference/en/value:normal|normal]] [[Reference/en/value:bold|bold]] [[Reference/en/value:slanted|slanted]] [[Reference/en/value:boldslanted|boldslanted]] [[Reference/en/value:type|type]] [[Reference/en/value:cap|cap]] [[Reference/en/value:small...|small...]] [[Reference/en/value:COMMAND|COMMAND]] </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>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:numbercolor|numbercolor]]</td>
+
     <td class="cmd">[[Command/keyword:numbercolor|numbercolor]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:style|style]]</td>
+
     <td class="cmd">[[Command/keyword:style|style]]</td>
     <td>[[Reference/en/value:normal|normal]] [[Reference/en/value:bold|bold]] [[Reference/en/value:slanted|slanted]] [[Reference/en/value:boldslanted|boldslanted]] [[Reference/en/value:type|type]] [[Reference/en/value:cap|cap]] [[Reference/en/value:small...|small...]] [[Reference/en/value:COMMAND|COMMAND]] </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>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:color|color]]</td>
+
     <td class="cmd">[[Command/keyword:color|color]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:beforesection|beforesection]]</td>
+
     <td class="cmd">[[Command/keyword:beforesection|beforesection]]</td>
     <td>[[Reference/en/value:COMMAND|COMMAND]] </td>
+
     <td>[[Command/value:COMMAND|COMMAND]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:aftersection|aftersection]]</td>
+
     <td class="cmd">[[Command/keyword:aftersection|aftersection]]</td>
     <td>[[Reference/en/value:COMMAND|COMMAND]] </td>
+
     <td>[[Command/value:COMMAND|COMMAND]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:prefix|prefix]]</td>
+
     <td class="cmd">[[Command/keyword:prefix|prefix]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] [[Reference/en/value:+|+]] [[Reference/en/value:-|-]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] [[Command/value:+|+]] [[Command/value:-|-]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:incrementnumber|incrementnumber]]</td>
+
     <td class="cmd">[[Command/keyword:incrementnumber|incrementnumber]]</td>
     <td><u>[[Reference/en/value:yes|yes]]</u> [[Reference/en/value:no|no]] [[Reference/en/value:list|list]] [[Reference/en/value:file|file]] </td>
+
     <td><u>[[Command/value:yes|yes]]</u> [[Command/value:no|no]] [[Command/value:list|list]] [[Command/value:file|file]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:placehead|placehead]]</td>
+
     <td class="cmd">[[Command/keyword:placehead|placehead]]</td>
     <td><u>[[Reference/en/value:yes|yes]]</u> [[Reference/en/value:no|no]] [[Reference/en/value:empty|empty]] [[Reference/en/value:hidden|hidden]] </td>
+
     <td><u>[[Command/value:yes|yes]]</u> [[Command/value:no|no]] [[Command/value:empty|empty]] [[Command/value:hidden|hidden]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:alternative|alternative]]</td>
+
     <td class="cmd">[[Command/keyword:alternative|alternative]]</td>
     <td><u>[[Reference/en/value:normal|normal]]</u> [[Reference/en/value:paragraph|paragraph]] [[Reference/en/value:inmargin|inmargin]] [[Reference/en/value:margin|margin]] [[Reference/en/value:middle|middle]] [[Reference/en/value:top|top]] [[Reference/en/value:bottom|bottom]] [[Reference/en/value:IDENTIFIER|IDENTIFIER]] [[Reference/en/value:TEXT|TEXT]] </td>
+
     <td><u>[[Command/value:normal|normal]]</u> [[Command/value:paragraph|paragraph]] [[Command/value:inmargin|inmargin]] [[Command/value:margin|margin]] [[Command/value:middle|middle]] [[Command/value:top|top]] [[Command/value:bottom|bottom]] [[Command/value:IDENTIFIER|IDENTIFIER]] [[Command/value:TEXT|TEXT]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:expansion|expansion]]</td>
+
     <td class="cmd">[[Command/keyword:expansion|expansion]]</td>
     <td>[[Reference/en/value:yes|yes]] [[Reference/en/value:no|no]] [[Reference/en/value:xml|xml]] [[Reference/en/value:COMMAND|COMMAND]] </td>
+
     <td>[[Command/value:yes|yes]] [[Command/value:no|no]] [[Command/value:xml|xml]] [[Command/value:COMMAND|COMMAND]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:xmlsetup|xmlsetup]]</td>
+
     <td class="cmd">[[Command/keyword:xmlsetup|xmlsetup]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:catcodes|catcodes]]</td>
+
     <td class="cmd">[[Command/keyword:catcodes|catcodes]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:sectionresetset|sectionresetset]]</td>
+
     <td class="cmd">[[Command/keyword:sectionresetset|sectionresetset]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:sectionseparatorset|sectionseparatorset]]</td>
+
     <td class="cmd">[[Command/keyword:sectionseparatorset|sectionseparatorset]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:sectionconversionset|sectionconversionset]]</td>
+
     <td class="cmd">[[Command/keyword:sectionconversionset|sectionconversionset]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:conversion|conversion]]</td>
+
     <td class="cmd">[[Command/keyword:conversion|conversion]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>A conversion; see {{cmd|convertnumber}}</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:sectionstarter|sectionstarter]]</td>
+
     <td class="cmd">[[Command/keyword:sectionstarter|sectionstarter]]</td>
     <td>[[Reference/en/value:TEXT|TEXT]] </td>
+
     <td>[[Command/value:TEXT|TEXT]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:sectionstopper|sectionstopper]]</td>
+
     <td class="cmd">[[Command/keyword:sectionstopper|sectionstopper]]</td>
     <td>[[Reference/en/value:TEXT|TEXT]] </td>
+
     <td>[[Command/value:TEXT|TEXT]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:sectionset|sectionset]]</td>
+
     <td class="cmd">[[Command/keyword:sectionset|sectionset]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:sectionsegments|sectionsegments]]</td>
+
     <td class="cmd">[[Command/keyword:sectionsegments|sectionsegments]]</td>
     <td>[[Reference/en/value:NUMBER|NUMBER]] [[Reference/en/value:NUMBER:NUMBER|NUMBER:NUMBER]] [[Reference/en/value:SECTION|SECTION]] [[Reference/en/value:SECTION:SECTION|SECTION:SECTION]] </td>
+
     <td>[[Command/value:NUMBER|NUMBER]] [[Command/value:NUMBER:NUMBER|NUMBER:NUMBER]] [[Command/value:SECTION|SECTION]] [[Command/value:SECTION:SECTION|SECTION:SECTION]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:distance|distance]]</td>
+
     <td class="cmd">[[Command/keyword:distance|distance]]</td>
     <td>[[Reference/en/value:DIMENSION|DIMENSION]] [[Reference/en/value:Space|Space]] [[Reference/en/value:after|after]] [[Reference/en/value:head|head]] </td>
+
     <td>[[Command/value:DIMENSION|DIMENSION]] Space between number and title text</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:before|before]]</td>
+
     <td class="cmd">[[Command/keyword:textdistance|textdistance]]</td>
     <td>[[Reference/en/value:COMMAND|COMMAND]] </td>
+
     <td>[[Command/value:DIMENSION|DIMENSION]] Space between title and the following text</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:inbetween|inbetween]]</td>
+
     <td class="cmd">[[Command/keyword:before|before]]</td>
     <td>[[Reference/en/value:COMMAND|COMMAND]] </td>
+
     <td>[[Command/value:COMMAND|COMMAND]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:after|after]]</td>
+
     <td class="cmd">[[Command/keyword:inbetween|inbetween]]</td>
     <td>[[Reference/en/value:COMMAND|COMMAND]] </td>
+
     <td>[[Command/value:COMMAND|COMMAND]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:page|page]]</td>
+
     <td class="cmd">[[Command/keyword:after|after]]</td>
     <td>inherits from [[Reference/en/page|\page]] </td>
+
     <td>[[Command/value:COMMAND|COMMAND]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:marking|marking]]</td>
+
     <td class="cmd">[[Command/keyword:page|page]]</td>
     <td>[[Reference/en/value:page|page]] [[Reference/en/value:reset|reset]] </td>
+
     <td>inherits from [[Command/page|\page]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:number|number]]</td>
+
     <td class="cmd">[[Command/keyword:marking|marking]]</td>
     <td><u>[[Reference/en/value:yes|yes]]</u> [[Reference/en/value:no|no]] </td>
+
     <td>[[Command/value:page|page]] [[Command/value:reset|reset]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:continue|continue]]</td>
+
     <td class="cmd">[[Command/keyword:number|number]]</td>
     <td><u>[[Reference/en/value:yes|yes]]</u> [[Reference/en/value:no|no]] </td>
+
     <td><u>[[Command/value:yes|yes]]</u> [[Command/value:no|no]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:aligntitle|aligntitle]]</td>
+
     <td class="cmd">[[Command/keyword:continue|continue]]</td>
     <td>[[Reference/en/value:yes|yes]] <u>[[Reference/en/value:no|no]]</u> [[Reference/en/value:float|float]] </td>
+
     <td><u>[[Command/value:yes|yes]]</u> [[Command/value:no|no]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:interlinespace|interlinespace]]</td>
+
     <td class="cmd">[[Command/keyword:aligntitle|aligntitle]]</td>
     <td>inherits from [[Reference/en/setupinterlinespace|\setupinterlinespace]] </td>
+
     <td>[[Command/value:yes|yes]] <u>[[Command/value:no|no]]</u> [[Command/value:float|float]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:ownnumber|ownnumber]]</td>
+
     <td class="cmd">[[Command/keyword:interlinespace|interlinespace]]</td>
     <td>[[Reference/en/value:yes|yes]] <u>[[Reference/en/value:no|no]]</u> </td>
+
     <td>inherits from [[Command/setupinterlinespace|\setupinterlinespace]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:commandbefore|commandbefore]]</td>
+
     <td class="cmd">[[Command/keyword:ownnumber|ownnumber]]</td>
     <td>[[Reference/en/value:COMMAND|COMMAND]] </td>
+
     <td>[[Command/value:yes|yes]] <u>[[Command/value:no|no]]</u> </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:commandafter|commandafter]]</td>
+
     <td class="cmd">[[Command/keyword:commandbefore|commandbefore]]</td>
     <td>[[Reference/en/value:COMMAND|COMMAND]] </td>
+
     <td>[[Command/value:COMMAND|COMMAND]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:deeptextcommand|deeptextcommand]]</td>
+
     <td class="cmd">[[Command/keyword:commandafter|commandafter]]</td>
     <td>[[Reference/en/\...#1|\...#1]] </td>
+
     <td>[[Command/value:COMMAND|COMMAND]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:numbercommand|numbercommand]]</td>
+
     <td class="cmd">[[Command/keyword:deeptextcommand|deeptextcommand]]</td>
     <td>[[Reference/en/value:\...#1|\...#1]] </td>
+
     <td>[[Command/\...#1|\...#1]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:deepnumbercommand|deepnumbercommand]]</td>
+
     <td class="cmd">[[Command/keyword:numbercommand|numbercommand]]</td>
     <td>[[Reference/en/value:\...#1|\...#1]] </td>
+
     <td>[[Command/value:\...#1|\...#1]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:command|command]]</td>
+
     <td class="cmd">[[Command/keyword:deepnumbercommand|deepnumbercommand]]</td>
     <td>[[Reference/en/value:\...#1#2|\...#1#2]] </td>
+
     <td>[[Command/value:\...#1|\...#1]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:interaction|interaction]]</td>
+
     <td class="cmd">[[Command/keyword:command|command]]</td>
     <td>[[Reference/en/value:list|list]] [[Reference/en/value:reference|reference]] </td>
+
     <td>[[Command/value:\...#1#2|\...#1#2]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:internalgrid|internalgrid]]</td>
+
     <td class="cmd">[[Command/keyword:interaction|interaction]]</td>
     <td>[[Reference/en/value:normal|normal]] [[Reference/en/value:standard|standard]] [[Reference/en/value:yes|yes]] [[Reference/en/value:strict|strict]] [[Reference/en/value:tolerant|tolerant]] [[Reference/en/value:top|top]] [[Reference/en/value:bottom|bottom]] [[Reference/en/value:both|both]] [[Reference/en/value:broad|broad]] [[Reference/en/value:fit|fit]] [[Reference/en/value:first|first]] [[Reference/en/value:last|last]] [[Reference/en/value:high|high]] [[Reference/en/value:low|low]] [[Reference/en/value:line|line]] [[Reference/en/value:strut|strut]] [[Reference/en/value:max|max]] [[Reference/en/value:min|min]] [[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:list|list]] [[Command/value:reference|reference]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:align|align]]</td>
+
     <td class="cmd">[[Command/keyword:internalgrid|internalgrid]]</td>
     <td>inherits from [[Reference/en/setupalign|\setupalign]] [[Reference/en/value:left|left]] [[Reference/en/value:right|right]] [[Reference/en/value:middle|middle]] [[Reference/en/value:normal|normal]] </td>
+
     <td>[[Command/value:normal|normal]] [[Command/value:standard|standard]] [[Command/value:yes|yes]] [[Command/value:strict|strict]] [[Command/value:tolerant|tolerant]] [[Command/value:top|top]] [[Command/value:bottom|bottom]] [[Command/value:both|both]] [[Command/value:broad|broad]] [[Command/value:fit|fit]] [[Command/value:first|first]] [[Command/value:last|last]] [[Command/value:high|high]] [[Command/value:low|low]] [[Command/value:line|line]] [[Command/value:strut|strut]] [[Command/value:max|max]] [[Command/value:min|min]] [[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:tolerance|tolerance]]</td>
+
     <td class="cmd">[[Command/keyword:align|align]]</td>
     <td>inherits from [[Reference/en/setuptolerance|\setuptolerance]] </td>
+
     <td>inherits from [[Command/setupalign|\setupalign]] [[Command/value:left|left]] [[Command/value:right|right]] [[Command/value:middle|middle]] [[Command/value:normal|normal]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:strut|strut]]</td>
+
     <td class="cmd">[[Command/keyword:tolerance|tolerance]]</td>
     <td><u>[[Reference/en/value:yes|yes]]</u> [[Reference/en/value:no|no]] </td>
+
     <td>inherits from [[Command/setuptolerance|\setuptolerance]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:hang|hang]]</td>
+
     <td class="cmd">[[Command/keyword:strut|strut]]</td>
     <td><u>[[Reference/en/value:none|none]]</u> [[Reference/en/value:lines|lines]] [[Reference/en/value:broad|broad]] [[Reference/en/value:fit|fit]] [[Reference/en/value:NUMBER|NUMBER]] [[Reference/en/value:line|line]] </td>
+
     <td><u>[[Command/value:yes|yes]]</u> [[Command/value:no|no]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:grid|grid]]</td>
+
     <td class="cmd">[[Command/keyword:hang|hang]]</td>
     <td>[[Reference/en/value:normal|normal]] [[Reference/en/value:standard|standard]] [[Reference/en/value:yes|yes]] [[Reference/en/value:strict|strict]] [[Reference/en/value:tolerant|tolerant]] [[Reference/en/value:top|top]] [[Reference/en/value:bottom|bottom]] [[Reference/en/value:both|both]] [[Reference/en/value:broad|broad]] [[Reference/en/value:fit|fit]] [[Reference/en/value:first|first]] [[Reference/en/value:last|last]] [[Reference/en/value:high|high]] [[Reference/en/value:low|low]] [[Reference/en/value:line|line]] [[Reference/en/value:strut|strut]] [[Reference/en/value:max|max]] [[Reference/en/value:min|min]] [[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td><u>[[Command/value:none|none]]</u> [[Command/value:lines|lines]] [[Command/value:broad|broad]] [[Command/value:fit|fit]] [[Command/value:NUMBER|NUMBER]] [[Command/value:line|line]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:indentnext|indentnext]]</td>
+
     <td class="cmd">[[Command/keyword:grid|grid]]</td>
     <td>[[Reference/en/value:yes|yes]] [[Reference/en/value:no|no]] [[Reference/en/value:auto|auto]] </td>
+
     <td>[[Command/value:normal|normal]] [[Command/value:standard|standard]] [[Command/value:yes|yes]] [[Command/value:strict|strict]] [[Command/value:tolerant|tolerant]] [[Command/value:top|top]] [[Command/value:bottom|bottom]] [[Command/value:both|both]] [[Command/value:broad|broad]] [[Command/value:fit|fit]] [[Command/value:first|first]] [[Command/value:last|last]] [[Command/value:high|high]] [[Command/value:low|low]] [[Command/value:line|line]] [[Command/value:strut|strut]] [[Command/value:max|max]] [[Command/value:min|min]] [[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:width|width]]</td>
+
     <td class="cmd">[[Command/keyword:indentnext|indentnext]]</td>
     <td>[[Reference/en/value:DIMENSION|DIMENSION]] </td>
+
     <td>[[Command/value:yes|yes]] [[Command/value:no|no]] [[Command/value:auto|auto]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:numberwidth|numberwidth]]</td>
+
     <td class="cmd">[[Command/keyword:width|width]]</td>
     <td>[[Reference/en/value:DIMENSION|DIMENSION]] </td>
+
     <td>[[Command/value:DIMENSION|DIMENSION]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:textwidth|textwidth]]</td>
+
     <td class="cmd">[[Command/keyword:numberwidth|numberwidth]]</td>
     <td>[[Reference/en/value:DIMENSION|DIMENSION]] </td>
+
     <td>[[Command/value:DIMENSION|DIMENSION]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:margintext|margintext]]</td>
+
     <td class="cmd">[[Command/keyword:textwidth|textwidth]]</td>
     <td>[[Reference/en/value:yes|yes]] <u>[[Reference/en/value:no|no]]</u> </td>
+
     <td>[[Command/value:DIMENSION|DIMENSION]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:margin|margin]]</td>
+
     <td class="cmd">[[Command/keyword:margintext|margintext]]</td>
     <td>[[Reference/en/value:DIMENSION|DIMENSION]] </td>
+
     <td>[[Command/value:yes|yes]] <u>[[Command/value:no|no]]</u> </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:frontpartlabel|frontpartlabel]]</td>
+
     <td class="cmd">[[Command/keyword:margin|margin]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:DIMENSION|DIMENSION]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:bodypartlabel|bodypartlabel]]</td>
+
     <td class="cmd">[[Command/keyword:frontpartlabel|frontpartlabel]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:appendixlabel|appendixlabel]]</td>
+
     <td class="cmd">[[Command/keyword:bodypartlabel|bodypartlabel]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:backpartlabel|backpartlabel]]</td>
+
     <td class="cmd">[[Command/keyword:appendixlabel|appendixlabel]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:header|header]]</td>
+
     <td class="cmd">[[Command/keyword:backpartlabel|backpartlabel]]</td>
     <td>[[Reference/en/value:none|none]] [[Reference/en/value:empty|empty]] [[Reference/en/value:high|high]] [[Reference/en/value:nomarking|nomarking]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:text|text]]</td>
+
     <td class="cmd">[[Command/keyword:header|header]]</td>
     <td>[[Reference/en/value:none|none]] [[Reference/en/value:empty|empty]] [[Reference/en/value:high|high]] [[Reference/en/value:nomarking|nomarking]] </td>
+
     <td>[[Command/value:none|none]] [[Command/value:empty|empty]] [[Command/value:high|high]] [[Command/value:nomarking|nomarking]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:footer|footer]]</td>
+
     <td class="cmd">[[Command/keyword:text|text]]</td>
     <td>[[Reference/en/value:none|none]] [[Reference/en/value:empty|empty]] [[Reference/en/value:high|high]] [[Reference/en/value:nomarking|nomarking]] </td>
+
     <td>[[Command/value:none|none]] [[Command/value:empty|empty]] [[Command/value:high|high]] [[Command/value:nomarking|nomarking]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:textcommand|textcommand]]</td>
+
     <td class="cmd">[[Command/keyword:footer|footer]]</td>
     <td>[[Reference/en/value:\...#1|\...#1]] </td>
+
     <td>[[Command/value:none|none]] [[Command/value:empty|empty]] [[Command/value:high|high]] [[Command/value:nomarking|nomarking]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:resetnumber|resetnumber]]</td>
+
     <td class="cmd">[[Command/keyword:textcommand|textcommand]]</td>
     <td>[[Reference/en/value:yes|yes]] [[Reference/en/value:no|no]] </td>
+
     <td>[[Command/value:\...#1|\...#1]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
     <td class="cmd">[[Reference/en/keyword:file|file]]</td>
+
     <td class="cmd">[[Command/keyword:resetnumber|resetnumber]]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
    <td>[[Command/value:yes|yes]] [[Command/value:no|no]] </td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Command/keyword:file|file]]</td>
 +
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
 
     <td class="cmd">[...,...=...,...]</td>
 
     <td class="cmd">[...,...=...,...]</td>
     <td>see [[Reference/en/setupheads|\setupheads]] </td>
+
     <td>inherits from [[Command/setupheads|\setupheads]] </td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>
Line 293: Line 297:
 
**left: The section header must be on the top of an even page
 
**left: The section header must be on the top of an even page
 
**right: The section header must be on the top of an odd page
 
**right: The section header must be on the top of an odd page
 +
*number
 +
**yes: Include number before chapter/section title
 +
**no: Do not include number before chapter/section title
 
*continue
 
*continue
**yes: If the section immeadiately follows a chapter it will be on the same page even though page=yes.
+
**yes: If the section immediately follows a chapter it will be on the same page even though page=yes.
**no: If the section immeadiately follows a chapter it will start on a new page.
+
**no: If the section immediately follows a chapter it will start on a new page.
*header/footer: Set a particular header style, see [[cmd:setupheader|\setupheader]].
+
*header/footer: Set a particular header style, see {{cmd|setupheader}}.
 +
*sectionsegments: which level(s) should be included, e. g. when head is numbered. Note, ":" specifies a range (e. g. "chapter:subsubsection")
 +
*aligntitle
 +
**yes: use the current local hsize; flush side float first
 +
**no: use the current global hsize
 +
**float: use the current local hsize; do not flush side floats
 +
 
 +
== Example ==
 +
 
 +
<context source="yes" text="produces">
 +
\setuppapersize[A5]
 +
\setuplabeltext[chapter=CHAPTER~]
 +
 
 +
\setuphead[chapter][
 +
header=empty,
 +
alternative=middle,
 +
style=bold,
 +
numbercommand=\groupedcommand{}{\blank[2cm]},
 +
after={\blank[3cm]},
 +
]
 +
 
 +
\starttext
 +
 
 +
\chapter{Title of chapter}
 +
 
 +
The first paragraph begins 3 cm below the title. In this chapter, we will discuss...
 +
 
 +
\stoptext
 +
</context>
 +
 
 +
== More examples ==
 +
A big space before a smaller space behind the heading:
 +
 
 +
<context source="yes" text="produces">
 +
 
 +
\setuphead
 +
  [subject]
 +
  [before={\blank[2*big]},
 +
  after={\blank[big]},
 +
  style=bold]
 +
 
 +
\starttext
 +
 
 +
\subject{Headline 1}
 +
text text text text text text text text text text text text text text text vtext text text text text text text text text text text text text\par
 +
\subject{Headline 2}
 +
text text text text text text text text text text text text text text text vtext text text text text text text text text text text text text\par
 +
 
 +
\stoptext
 +
</context>
 +
 
 +
== Setting label of a new section head ==
 +
 
 +
<context mode="mkiv" source="yes" text="produces">
 +
\definehead[mychapter][chapter][bodypartlabel=mychapter]
 +
 
 +
\setuplabeltext[en][mychapter=My Chapter~]
 +
 
 +
\starttext
 +
\mychapter{Animals}
 +
\stoptext
 +
</context>
 +
 
 +
 
 +
== Setting label of a part ==
 +
 
 +
In MkIV, if you want parts to be labeled as "Part 1" etc., the following isn't sufficient (but works in MkII):
 +
 
 +
<context mode="mkiv" source="yes" text="because it produces">
 +
\setuphead[part][placehead=yes]
 +
 
 +
\starttext
 +
\part{A part}
 +
 
 +
\stoptext
 +
</context>
 +
 
 +
For MkIV, add <code>bodypartlabel=part</code> to the <code>setuphead</code>:
 +
 
 +
<context mode="mkiv" source="yes">
 +
\setuphead[part][placehead=yes, bodypartlabel=part]
 +
 
 +
\starttext
 +
\part{A part}
 +
 
 +
\stoptext
 +
</context>
 +
 
 +
(Thanks to Wolfgang Schuster on the mailing list for this information.)
 +
 
 +
== Example of hidden sections ==
 +
 
 +
<context mode=mkiv source="yes" text="produces">
 +
\setupheadnumber[section]      [8]
 +
\setupheadnumber[subsection]  [3]
 +
\setupheadnumber[subsubsection][5]
 +
 
 +
\setuphead[section,subsection][placehead=hidden]
 +
\setuphead[subsubsection]     [placehead=yes]
 +
 
 +
\starttext
 +
 
 +
\section{} % hidden 8th section
 +
 
 +
\subsection{} % hidden 3rd section
 +
 
 +
\subsubsection{This is complete numbering of subsubsection} % view 9.4.6 subsubsection
 +
 
 +
\stoptext
 +
</context>
 +
 
 +
=== Modifying the page before a chapter ===
 +
 
 +
Here is an example which shows how you can change the background color
 +
of an empty page before the chapter title.
 +
 
 +
<context mode=mkiv source="yes" text="produces">
 +
% next five lines just to show the effect on this wiki
 +
\setuppapersize[A8][A5,landscape]
 +
\setuppaper[nx=4, ny=2]
 +
\setuplayout[page][location=middle, marking=on]
 +
\setuparranging [XY]
 +
\setupbodyfont[6pt]
  
 +
% actual example starts here
 +
\setuppagenumbering
 +
  [alternative=doublesided]
  
== Example ==
+
\startsetups [chapter:before]
<!-- Please fill in an example if you can -->
+
  \doifoddpageelse
 +
    {}
 +
    {\pushbackground[page]
 +
    \setupbackgrounds[page][background=color,backgroundcolor=gray]
 +
    \page[right]
 +
    \popbackground}
 +
\stopsetups
 +
 
 +
\setuphead
 +
  [chapter]
 +
  [page=yes,
 +
  before=\directsetup{chapter:before}]
 +
 
 +
\starttext
 +
 
 +
\startchapter[title={Knuth}]
 +
\dorecurse{2}{\samplefile{knuth}}
 +
\stopchapter
 +
 
 +
\startchapter[title={Ward}]
 +
\dorecurse{1}{\samplefile{ward}}
 +
\stopchapter
 +
 
 +
\startchapter[title={Zapf}]
 +
\dorecurse{2}{\samplefile{zapf}}
 +
\stopchapter
 +
 
 +
 
 +
\stoptext
 +
</context>
 +
 
 +
The command \pushbackground stores the values of the background which is modified. After the execution of \page[right] the old values of background are restored by \popbackground.
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
* {{cmd|setupheads}}
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Reference/en|setuphead]]
+
[[Category:Command/Sections|setuphead]]

Latest revision as of 12:43, 17 January 2019

\setuphead

Syntax

\setuphead[...,...,...][...,...=...,...]
[...,...,...] IDENTIFIER
default SECTION
section SECTION
coupling SECTION
sectionnumber yes no
textstyle normal bold slanted boldslanted type cap small... COMMAND
textcolor IDENTIFIER
numberstyle normal bold slanted boldslanted type cap small... COMMAND
numbercolor IDENTIFIER
style normal bold slanted boldslanted type cap small... COMMAND
color IDENTIFIER
beforesection COMMAND
aftersection COMMAND
prefix IDENTIFIER + -
incrementnumber yes no list file
placehead yes no empty hidden
alternative normal paragraph inmargin margin middle top bottom IDENTIFIER TEXT
expansion yes no xml COMMAND
xmlsetup IDENTIFIER
catcodes IDENTIFIER
sectionresetset IDENTIFIER
sectionseparatorset IDENTIFIER
sectionconversionset IDENTIFIER
conversion A conversion; see \convertnumber
sectionstarter TEXT
sectionstopper TEXT
sectionset IDENTIFIER
sectionsegments NUMBER NUMBER:NUMBER SECTION SECTION:SECTION
distance DIMENSION Space between number and title text
textdistance DIMENSION Space between title and the following text
before COMMAND
inbetween COMMAND
after COMMAND
page inherits from \page
marking page reset
number yes no
continue yes no
aligntitle yes no float
interlinespace inherits from \setupinterlinespace
ownnumber yes no
commandbefore COMMAND
commandafter COMMAND
deeptextcommand \...#1
numbercommand \...#1
deepnumbercommand \...#1
command \...#1#2
interaction list reference
internalgrid normal standard yes strict tolerant top bottom both broad fit first last high low line strut max min IDENTIFIER
align inherits from \setupalign left right middle normal
tolerance inherits from \setuptolerance
strut yes no
hang none lines broad fit NUMBER line
grid normal standard yes strict tolerant top bottom both broad fit first last high low line strut max min IDENTIFIER
indentnext yes no auto
width DIMENSION
numberwidth DIMENSION
textwidth DIMENSION
margintext yes no
margin DIMENSION
frontpartlabel IDENTIFIER
bodypartlabel IDENTIFIER
appendixlabel IDENTIFIER
backpartlabel IDENTIFIER
header none empty high nomarking
text none empty high nomarking
footer none empty high nomarking
textcommand \...#1
resetnumber yes no
file IDENTIFIER
[...,...=...,...] inherits from \setupheads

Description

  • style: See manual "Context: an excursion" section 31.3 Style and size switch in commands, e.g. for large, bold, sans serif section headers use 'style=\tfa\bf\ss'.
  • page
    • yes: The section header must be on the top of a new page
    • left: The section header must be on the top of an even page
    • right: The section header must be on the top of an odd page
  • number
    • yes: Include number before chapter/section title
    • no: Do not include number before chapter/section title
  • continue
    • yes: If the section immediately follows a chapter it will be on the same page even though page=yes.
    • no: If the section immediately follows a chapter it will start on a new page.
  • header/footer: Set a particular header style, see \setupheader.
  • sectionsegments: which level(s) should be included, e. g. when head is numbered. Note, ":" specifies a range (e. g. "chapter:subsubsection")
  • aligntitle
    • yes: use the current local hsize; flush side float first
    • no: use the current global hsize
    • float: use the current local hsize; do not flush side floats

Example

\setuppapersize[A5]
\setuplabeltext[chapter=CHAPTER~]

\setuphead[chapter][
	header=empty,
	alternative=middle,
	style=bold,
	numbercommand=\groupedcommand{}{\blank[2cm]},
	after={\blank[3cm]},
	]

\starttext

\chapter{Title of chapter}

The first paragraph begins 3 cm below the title. In this chapter, we will discuss...

\stoptext

produces

More examples

A big space before a smaller space behind the heading:


\setuphead
  [subject]
  [before={\blank[2*big]},
   after={\blank[big]},
   style=bold]

\starttext

\subject{Headline 1}
text text text text text text text text text text text text text text text vtext text text text text text text text text text text text text\par
\subject{Headline 2}
text text text text text text text text text text text text text text text vtext text text text text text text text text text text text text\par

\stoptext

produces

Setting label of a new section head

\definehead[mychapter][chapter][bodypartlabel=mychapter]

\setuplabeltext[en][mychapter=My Chapter~]

\starttext
\mychapter{Animals}
\stoptext

produces


Setting label of a part

In MkIV, if you want parts to be labeled as "Part 1" etc., the following isn't sufficient (but works in MkII):

\setuphead[part][placehead=yes]

\starttext
\part{A part}

\stoptext

because it produces

For MkIV, add bodypartlabel=part to the setuphead:

\setuphead[part][placehead=yes, bodypartlabel=part]

\starttext
\part{A part}

\stoptext

(Thanks to Wolfgang Schuster on the mailing list for this information.)

Example of hidden sections

\setupheadnumber[section]      [8]
\setupheadnumber[subsection]   [3]
\setupheadnumber[subsubsection][5]

\setuphead[section,subsection][placehead=hidden]
\setuphead[subsubsection]     [placehead=yes]

\starttext

\section{} % hidden 8th section

\subsection{} % hidden 3rd section

\subsubsection{This is complete numbering of subsubsection} % view 9.4.6 subsubsection

\stoptext

produces

Modifying the page before a chapter

Here is an example which shows how you can change the background color of an empty page before the chapter title.

% next five lines just to show the effect on this wiki
\setuppapersize[A8][A5,landscape]
\setuppaper[nx=4, ny=2]
\setuplayout[page][location=middle, marking=on]
\setuparranging [XY]
\setupbodyfont[6pt]

% actual example starts here
\setuppagenumbering
  [alternative=doublesided]

\startsetups [chapter:before]
  \doifoddpageelse
    {}
    {\pushbackground[page]
     \setupbackgrounds[page][background=color,backgroundcolor=gray]
     \page[right]
     \popbackground}
\stopsetups

\setuphead
  [chapter]
  [page=yes,
   before=\directsetup{chapter:before}]

\starttext

\startchapter[title={Knuth}]
\dorecurse{2}{\samplefile{knuth}}
\stopchapter

\startchapter[title={Ward}]
\dorecurse{1}{\samplefile{ward}}
\stopchapter

\startchapter[title={Zapf}]
\dorecurse{2}{\samplefile{zapf}}
\stopchapter


\stoptext

produces

The command \pushbackground stores the values of the background which is modified. After the execution of \page[right] the old values of background are restored by \popbackground.

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: