Difference between revisions of "Command/definehead"

From Wiki
Jump to navigation Jump to search
m (cleanup)
Line 7: Line 7:
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
   <tr>
 
   <tr>
     <td colspan="2" class="cmd">\definehead<span class="first" >[...]</span><span class="second" >[...]</span></td>
+
     <td colspan="2" class="cmd">\definehead<span class="first" >[...]</span><span class="second" >[...]</span><span class="third" >[...]</span></td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
 
     <td class="cmd">[...]</td>
 
     <td class="cmd">[...]</td>
     <td>name </td>
+
     <td>[[Reference/en/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>section </td>
+
     <td>[[Reference/en/value:IDENTIFIER|IDENTIFIER]] </td>
 +
  </tr>
 +
  <tr valign="top" class="third">
 +
    <td class="cmd">[...]</td>
 +
    <td>inherits from [[Reference/en/setuphead|\setuphead]] </td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 
  
 
== Description ==  
 
== Description ==  

Revision as of 18:14, 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.

Example:

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


Example

See also