Difference between revisions of "Command/setuphead"

From ConTeXt wiki
(Syntax)
(Syntax)
Line 104: Line 104:
 
     <td class="cmd">[[Reference/en/keyword:conversion|conversion]]</td>
 
     <td class="cmd">[[Reference/en/keyword:conversion|conversion]]</td>
 
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
 
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Reference/en/keyword:sectionstarter|sectionstarter]]</td>
 +
    <td>[[Reference/en/value:TEXT|TEXT]] </td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Reference/en/keyword:sectionstopper|sectionstopper]]</td>
 +
    <td>[[Reference/en/value:TEXT|TEXT]] </td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Reference/en/keyword:sectionset|sectionset]]</td>
 +
    <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Reference/en/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>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Reference/en/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>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Reference/en/keyword:before|before]]</td>
 +
    <td>[[Reference/en/value:COMMAND|COMMAND]] </td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Reference/en/keyword:inbetween|inbetween]]</td>
 +
    <td>[[Reference/en/value:COMMAND|COMMAND]] </td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Reference/en/keyword:after|after]]</td>
 +
    <td>[[Reference/en/value:COMMAND|COMMAND]] </td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Reference/en/keyword:page|page]]</td>
 +
    <td>inherits from [[Reference/en/page|\page]] [[Reference/en/value:left|left]] [[Reference/en/value:right|right]] [[Reference/en/value:yes|yes]] </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">[[Reference/en/keyword:number|number]]</td>
 
     <td>[[Reference/en/value:yes|yes]] [[Reference/en/value:no|no]] </td>
 
     <td>[[Reference/en/value:yes|yes]] [[Reference/en/value:no|no]] </td>
 +
  </tr>
 +
  <tr valign="top" class="second">
 +
    <td class="cmd">[[Reference/en/keyword:interlinespace|interlinespace]]</td>
 +
    <td>inherits from [[Reference/en/setupinterlinespace|\setupinterlinespace]] </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">[[Reference/en/keyword:ownnumber|ownnumber]]</td>
 
     <td>[[Reference/en/value:yes|yes]] [[Reference/en/value:no|no]] </td>
 
     <td>[[Reference/en/value:yes|yes]] [[Reference/en/value:no|no]] </td>
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[[Reference/en/keyword:page|page]]</td>
 
    <td>[[Reference/en/value:left|left]] [[Reference/en/value:right|right]] [[Reference/en/value:yes|yes]] </td>
 
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
Line 148: Line 184:
 
     <td class="cmd">[[Reference/en/keyword:backpartlabel|backpartlabel]]</td>
 
     <td class="cmd">[[Reference/en/keyword:backpartlabel|backpartlabel]]</td>
 
     <td>[[Reference/en/value:name|name]] </td>
 
     <td>[[Reference/en/value:name|name]] </td>
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[[Reference/en/keyword:before|before]]</td>
 
    <td>[[Reference/en/value:command|command]] </td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[[Reference/en/keyword:inbetween|inbetween]]</td>
 
    <td>[[Reference/en/value:command|command]] </td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[[Reference/en/keyword:after|after]]</td>
 
    <td>[[Reference/en/value:command|command]] </td>
 
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
Line 196: Line 220:
 
     <td class="cmd">[[Reference/en/keyword:margintext|margintext]]</td>
 
     <td class="cmd">[[Reference/en/keyword:margintext|margintext]]</td>
 
     <td>[[Reference/en/value:yes|yes]] [[Reference/en/value:no|no]] </td>
 
     <td>[[Reference/en/value:yes|yes]] [[Reference/en/value:no|no]] </td>
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[[Reference/en/keyword:distance|distance]]</td>
 
    <td>Space after head</td>
 
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">

Revision as of 16:27, 19 June 2011

\setuphead

Syntax

\setuphead[...,...,...][...,...=...,...]
[...,...,...] section
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 paragraph normal inmargin margin middle top bottom IDENTIFIER text
expansion yes no xml command
xmlsetup IDENTIFIER
catcodes IDENTIFIER
sectionresetset IDENTIFIER
sectionseparatorset IDENTIFIER
sectionconversionset IDENTIFIER
conversion IDENTIFIER
sectionstarter TEXT
sectionstopper TEXT
sectionset IDENTIFIER
sectionsegments NUMBER NUMBER:NUMBER SECTION SECTION:SECTION
distance DIMENSION Space after head
before COMMAND
inbetween COMMAND
after COMMAND
page inherits from \page left right yes
number yes no
interlinespace inherits from \setupinterlinespace
ownnumber yes no
continue yes no
header none empty high nomarking
text none empty high nomarking
footer none empty high nomarking
frontpartlabel name
bodypartlabel name
appendixlabel name
backpartlabel name
hang none broad fit line number
command twoarguments
numbercommand oneargument
textcommand oneargument
deepnumbercommand oneargument
deeptextcommand oneargument
resetnumber yes no
file name
margintext yes no
align left right middle normal
[...,...=...,...] see \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
  • continue
    • yes: If the section immeadiately 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.
  • header/footer: Set a particular header style, see \setupheader.


Example

See also