Difference between revisions of "Command/definehead"

From Wiki
Jump to navigation Jump to search
Line 26: Line 26:
 
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|\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 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:  
 
Example:  
Line 36: Line 36:
 
   align=middle]
 
   align=middle]
 
</texcode>
 
</texcode>
 
  
 
== Example ==
 
== Example ==

Revision as of 18:16, 19 June 2011

\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