Difference between revisions of "Command/setupheads"
(Missing close parenthesis) |
(autosyntax) |
||
Line 5: | Line 5: | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
+ | |||
+ | <syntax>setupheads</syntax> | ||
+ | |||
+ | <syntax>setuphead</syntax> | ||
+ | |||
+ | <!-- | ||
<table cellspacing="4" cellpadding="2" class="cmd"> | <table cellspacing="4" cellpadding="2" class="cmd"> | ||
<tr> | <tr> | ||
Line 53: | Line 59: | ||
<td>[[Command/value:COMMAND|COMMAND]] </td> | <td>[[Command/value:COMMAND|COMMAND]] </td> | ||
</tr> | </tr> | ||
− | |||
</table> | </table> | ||
+ | --> | ||
== Description == | == Description == | ||
− | Note that this command has been reported non-working for some people. | + | Note that this command has been reported non-working for some people. (Long ago. It ''should'' work.) |
− | This command sets up the default options for all headings (e.g., the stuff generated by {{cmd|section}}, {{cmd|subsection}}, etc.). The {{cmd|setuphead}} command can be used to override these settings on a per-level basis (e.g., only for {{cmd|section}}) | + | This command sets up the default options for all headings (e.g., the stuff generated by {{cmd|section}}, {{cmd|subsection}}, etc.). The {{cmd|setuphead}} command can be used to override these settings on a per-level basis (e.g., only for {{cmd|section}}). |
{{code|1=aligntitle=float}} causes the title to appear next to floats. By default, a title will be moved down to appear below a float, it will not be "wrapped" around a float like normal text. Setting this option causes it to wrap like normal text. | {{code|1=aligntitle=float}} causes the title to appear next to floats. By default, a title will be moved down to appear below a float, it will not be "wrapped" around a float like normal text. Setting this option causes it to wrap like normal text. |
Revision as of 14:26, 9 January 2020
\setupheads
Syntax
\setupheads[...,...][...=...,...] | |
[...,...] | section |
...=...,... | inherits from \setuphead |
\setuphead[...,...][...=...,...] | |
[...,...] | section |
frontpartlabel | name |
bodypartlabel | name |
appendixlabel | name |
backpartlabel | name |
expansion | yes no xml |
catcodes | name |
sectionresetset | name |
sectionseparatorset | name |
sectionconversionset | name |
conversion | name |
sectionstarter | command processor->command |
sectionstopper | command processor->command |
sectionset | name |
sectionsegments | number number:number number:* number:all section section:section section:* section:all current |
referenceprefix | + - text |
style | style command |
color | color |
textstyle | style command |
textcolor | color |
numberstyle | style command |
numbercolor | color |
coupling | section |
ownnumber | yes no |
beforesection | command |
aftersection | command |
insidesection | command |
incrementnumber | yes no list empty |
placehead | yes no hidden empty section |
number | yes no |
page | see \page |
marking | page reset |
header | start stop high none normal empty nomarking name |
text | start stop high none normal empty nomarking name |
footer | start stop high none normal empty nomarking name |
before | command |
after | command |
inbetween | command |
continue | yes no |
aligntitle | yes no float |
interlinespace | name |
interaction | list reference |
internalgrid | name |
grid | normal 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 |
align | see \setupalign |
tolerance | see \setuptolerance |
strut | yes no |
hang | line broad fit none number |
margin | dimension |
indentnext | yes no auto |
alternative | text paragraph normal margin inmargin top middle bottom reverse margintext name |
width | dimension |
numberwidth | dimension |
textwidth | dimension |
distance | dimension |
textdistance | dimension |
commandbefore | command |
commandafter | command |
command | twoarguments |
textcommand | oneargument |
deeptextcommand | oneargument |
numbercommand | oneargument |
deepnumbercommand | oneargument |
location | name |
criterium | strict positive all |
hidenumber | yes no |
Description
Note that this command has been reported non-working for some people. (Long ago. It should work.)
This command sets up the default options for all headings (e.g., the stuff generated by \section, \subsection, etc.). The \setuphead command can be used to override these settings on a per-level basis (e.g., only for \section).
aligntitle=float
causes the title to appear next to floats. By default, a title will be moved down to appear below a float, it will not be "wrapped" around a float like normal text. Setting this option causes it to wrap like normal text.
The insidesection
command is injected right after the after
command of \setuphead
. It can be used for example to insert a table of contents local to a chapter. insidesection
only works with \startchapter
, \startsection
and company, not with \chapter, \section, and co.
Example
Table of contents local to a chapter. (Result not shown here because the wiki's installation of ConTeXt is out-of-date.)
\setuphead [chapter] [after={\blank[1cm]}, insidesection=\placecontent] \starttext \startchapter [title=Foo] \startsection [title=Zapf] \input zapf \stopsection \startsection [title=Knuth] \input knuth \stopsection \stopchapter \stoptext
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: