Difference between revisions of "Command/definehead"

From ConTeXt wiki
Jump to navigationJump to search
m (Text replace - "== Help from ConTeXt-Forum ==" to "== Help from ConTeXt-Mailinglist/Forum ==")
m (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
 
(One intermediate revision by one other user not shown)
Line 24: Line 24:
  
 
== Description ==  
 
== Description ==  
Used to define a new head (such as title, subject etc.). The idea is you can create a <tt>MySubject</tt> that derives it's defaults from <tt>subject</tt> and then customize MySubject without being concerned with overriding subject. Use with [[cmd:setuphead|\setuphead]].
+
Used to define a new head (such as title, subject etc.). The idea is you can create a <tt>MySubject</tt> that derives it's defaults from <tt>subject</tt> and then customize MySubject without being concerned with overriding subject. Use with {{cmd|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.
 
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.
Line 41: Line 41:
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
<!-- something like {{cmd|goto}} -->
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==
Line 47: Line 47:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|definehead]]
+
[[Category:Command/Sections|definehead]]

Latest revision as of 04:39, 23 March 2012

\definehead

Syntax

\definehead[...][...][...]
[...] IDENTIFIER
[...] IDENTIFIER
[...] 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.

Example:

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

Example

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: