Command/setuphead

From ConTeXt wiki
< Command
Revision as of 15:44, 19 June 2011 by Mathieudupont (talk | contribs) (Syntax)

\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
number yes no
ownnumber yes no
page left right yes
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
before command
inbetween command
after command
hang none broad fit line number
command twoarguments
numbercommand oneargument
textcommand oneargument
deepnumbercommand oneargument
deeptextcommand oneargument
resetnumber yes no
file name
margintext yes no
distance Space after head
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