Difference between revisions of "Command/setuphead"

From Wiki
Jump to navigation Jump to search
Line 28: Line 28:
 
     <cd:parameter name="expansion">
 
     <cd:parameter name="expansion">
 
       <cd:paramdoc></cd:paramdoc>
 
       <cd:paramdoc></cd:paramdoc>
       <cd:constant type="yes"></cd:constant>
+
       <cd:constant type="yes">expands the xml reference to actual content for title and bookmark (\xmlatt {xml:name::4}{title} → First section), see TUC file. To expand userdata also use \normalexpanded{\startsection[title=\xmlatt{#1}{title}]} instead of expansion=yes. \normalexpanded{} and are not in conflict, so you can use both.</cd:constant>
       <cd:constant default="yes" type="no"></cd:constant>
+
       <cd:constant default="yes" type="no">no expansion, xml reference is used</cd:constant>
       <cd:constant type="xml"></cd:constant>
+
       <cd:constant type="xml"> ?</cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="catcodes">
 
     <cd:parameter name="catcodes">
Line 215: Line 215:
 
     <cd:parameter name="aligntitle">
 
     <cd:parameter name="aligntitle">
 
       <cd:paramdoc></cd:paramdoc>
 
       <cd:paramdoc></cd:paramdoc>
       <cd:constant type="yes"></cd:constant>
+
       <cd:constant type="yes">use the current local hsize; flush side float first</cd:constant>
       <cd:constant default="yes" type="no"></cd:constant>
+
       <cd:constant default="yes" type="no">use the current global hsize</cd:constant>
       <cd:constant type="float"></cd:constant>
+
       <cd:constant type="float">use the current local hsize; do not flush side floats</cd:constant>
 
     </cd:parameter>
 
     </cd:parameter>
 
     <cd:parameter name="interlinespace">
 
     <cd:parameter name="interlinespace">

Revision as of 17:24, 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
expansion
yes expands the xml reference to actual content for title and bookmark (\xmlatt {xml:name::4}{title} → First section), see TUC file. To expand userdata also use \normalexpanded{\startsection[title=\xmlatt{#1}{title}]} instead of expansion=yes. \normalexpanded{} and are not in conflict, so you can use both.
no no expansion, xml reference is used
xml  ?
sectionsegments
which level(s) should be included, e. g. when head is numbered. Note, ":" specifies a range (e. g. "chapter:subsubsection")
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.
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

Description

Examples

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: