Difference between revisions of "Command/setuphead"

From Wiki
Jump to navigation Jump to search
Line 149: Line 149:
 
     <cd:parameter name="number">
 
     <cd:parameter name="number">
 
       <cd:paramdoc></cd:paramdoc>
 
       <cd:paramdoc></cd:paramdoc>
       <cd:constant default="yes" type="yes"></cd:constant>
+
       <cd:constant default="yes" type="yes">Include number before chapter/section title</cd:constant>
       <cd:constant type="no"></cd:constant>
+
       <cd:constant type="no">Do not include number before chapter/section title</cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="page">
 
     <cd:parameter name="page">
Line 164: Line 164:
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="header">
 
     <cd:parameter name="header">
       <cd:paramdoc></cd:paramdoc>
+
       <cd:paramdoc>Set a particular header style, see {{cmd|setupheader}}.</cd:paramdoc>
 
       <cd:constant type="start"></cd:constant>
 
       <cd:constant type="start"></cd:constant>
 
       <cd:constant type="stop"></cd:constant>
 
       <cd:constant type="stop"></cd:constant>
Line 210: Line 210:
 
     <cd:parameter name="continue">
 
     <cd:parameter name="continue">
 
       <cd:paramdoc></cd:paramdoc>
 
       <cd:paramdoc></cd:paramdoc>
       <cd:constant default="yes" type="yes"></cd:constant>
+
       <cd:constant default="yes" type="yes">If the section immediately follows a chapter it will be on the same page even though page=yes.</cd:constant>
       <cd:constant type="no"></cd:constant>
+
       <cd:constant type="no">If the section immediately follows a chapter it will start on a new page.</cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="aligntitle">
 
     <cd:parameter name="aligntitle">

Revision as of 17:22, 30 January 2021


\setuphead

Summary

Former wiki page Command_old/setuphead is under migration to ConTeXtXML extension Command#Pre-existing_pages

Settings

\setuphead[...,...][...=...,...]
[...,...]section
frontpartlabelname
bodypartlabelname
appendixlabelname
backpartlabelname
expansionyes no xml
catcodesname
sectionresetsetname
sectionseparatorsetname
sectionconversionsetname
conversionname
sectionstartercommand processor->command
sectionstoppercommand processor->command
sectionsetname
sectionsegmentsnumber number:number number:* number:all section section:section section:* section:all current
referenceprefix+ - text
stylestyle command
colorcolor
textstylestyle command
textcolorcolor
numberstylestyle command
numbercolorcolor
couplingsection
ownnumberyes no
beforesectioncommand
aftersectioncommand
insidesectioncommand
incrementnumberyes no list empty
placeheadyes no hidden empty section
numberyes no
pagesee \page
markingpage reset
headerstart stop high none normal empty nomarking name
textstart stop high none normal empty nomarking name
footerstart stop high none normal empty nomarking name
beforecommand
aftercommand
inbetweencommand
continueyes no
aligntitleyes no float
interlinespacename
interactionlist reference
internalgridname
gridnormal standard yes strict tolerant top bottom both broad fit first last high one low none line strut box min max middle math math:line math:halfline math:-line math:-halfline name
alignsee \setupalign
tolerancesee \setuptolerance
strutyes no
hangline broad fit none number
margindimension
indentnextyes no auto
alternativetext paragraph normal margin inmargin top middle bottom reverse margintext name
widthdimension
numberwidthdimension
textwidthdimension
distancedimension
textdistancedimension
commandbeforecommand
commandaftercommand
commandtwoarguments
textcommandoneargument
deeptextcommandoneargument
numbercommandoneargument
deepnumbercommandoneargument
locationname
criteriumstrict positive all
hidenumberyes no

OptionExplanation
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'.
number
yes Include number before chapter/section title
no Do not include number before chapter/section title
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
header
Set a particular header style, see \setupheader.
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.

Description

Examples

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: