Difference between revisions of "Command/definehead"

From Wiki
Jump to navigation Jump to search
m (Text replace - "Reference/en|" to "Commands|")
m (Text replace - "Reference/en/" to "Command/")
Line 11: Line 11:
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
 
     <td class="cmd">[...]</td>
 
     <td class="cmd">[...]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
 
     <td class="cmd">[...]</td>
 
     <td class="cmd">[...]</td>
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
+
     <td>[[Command/value:IDENTIFIER|IDENTIFIER]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="third">
 
   <tr valign="top" class="third">
 
     <td class="cmd">[...]</td>
 
     <td class="cmd">[...]</td>
     <td>inherits from [[Reference/en/setuphead|\setuphead]] </td>
+
     <td>inherits from [[Command/setuphead|\setuphead]] </td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>

Revision as of 02:03, 14 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