Difference between revisions of "Command/definehead"

From Wiki
Jump to navigation Jump to search
(Create reference page)
 
m (cleanup)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
 
{{Reference
 
{{Reference
 
|name=definehead
 
|name=definehead
Line 23: Line 21:
  
 
== Description ==  
 
== Description ==  
Used to define a new head (such as title, subject etc.). The idea is you can create a <cmd>MySubject</cmd> that derives it's defaults from <cmd>subject</cmd> and then customize MySubject without being concerned with overriding subject. Use with [[cmd: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.

Revision as of 17:27, 11 April 2010

\definehead

Syntax

\definehead[...][...]
[...] name
[...] section


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.

Example:

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


Example

See also