Command/definehead

Unofficial ConTeXt Wiki mirror

Last modified: 2026-04-03

Summary

The command \definehead is used to define a new section variant.

Settings

\definehead[...][...][...=...,...]
[...] name
[...] section
...=...,... inherits from \setuphead

Description

Used to define a new head (such as title, subject etc.). The idea is you can create a MySubject that derives it’s defaults from subject and then customize MySubject without being concerned with overriding subject . Use with \setuphead .

The first argument is the name of your new head. The second argument is the name of the head from which yours ought to be derived. The third (optional) argument is for options.

You can’t introduce a new level this way, like “between chapter and section”, a defined head is always on the level of an existing one.

Examples

Example 1

\definehead [Title] [title]
\setuphead [Title]
   [textstyle=bfb,
   align=middle]

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: