Changes

Jump to navigation Jump to search
1,252 bytes added ,  12:37, 11 April 2010
Create reference page
<!-- please remove this and the following line if you have checked this page -->
{{Reference_Cleanup}}
{{Reference
|name=definehead
|attributes=
}}

== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\definehead<span class="first" >[...]</span><span class="second" >[...]</span></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[...]</td>
<td>name </td>
</tr>
<tr valign="top" class="second">
<td class="cmd">[...]</td>
<td>section </td>
</tr>
</table>


== 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]].

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:

<texcode>
\definehead [Title] [title]
\setuphead [Title]
[textstyle=bfb,
align=middle]
</texcode>


== Example ==
<!-- Please fill in an example if you can -->

== See also ==
<!-- something like [[cmd:goto|\goto]] -->

[[Category:Reference/en|definehead]]
Anonymous user

Navigation menu