Difference between revisions of "Titles"

From Wiki
Jump to navigation Jump to search
(new - partly copied from ms-cb-en)
 
(added own chapter command)
Line 27: Line 27:
 
Of course you can switch off numbering even for a "numbered" title, see <cmd>setuphead</cmd>.
 
Of course you can switch off numbering even for a "numbered" title, see <cmd>setuphead</cmd>.
  
==Do it yourself==
+
 
 +
==Your own title styles==
 +
 
 +
Sometimes the possibilities of <cmd>setuphead</cmd> aren't enough.
 +
Just define your own styling command like this:
 +
 
 +
<texcode>
 +
\def\MyChapterCommand#1#2{#1\blank#2}
 +
% #1 is number, #2 is text
 +
 
 +
\setuphead[chapter][command=\MyChapterCommand]
 +
</texcode>
 +
 
 +
(Hm, something's wrong with that...)
 +
 
 +
==Your own titling levels==
  
 
Of course you can define your own titling commands and probably must adapt the default settings.
 
Of course you can define your own titling commands and probably must adapt the default settings.
Line 45: Line 60:
 
A new header <tt>\myheader</tt> is defined and it inherits the properties of <tt>section</tt> (title, subject, whatever).
 
A new header <tt>\myheader</tt> is defined and it inherits the properties of <tt>section</tt> (title, subject, whatever).
 
You can "define" several headers at once!
 
You can "define" several headers at once!
 +
  
 
==Table(s) of Content==
 
==Table(s) of Content==

Revision as of 21:27, 29 December 2004

< Structurals | Visuals >

Default

numberedunnumbered
\part--
\chapter\title
\section\subject
\subsection\subsubject
\subsubsection\subsubsubject
......

Every heading command can take an optional parameter as reference:

\title[hasselt-by-night]{Hasselt by night}

The bracket pair is optional and used for internal References. If you want to refer to this header you type for example

\at{page}[hasselt-by-night].

(see \at)

Of course you can switch off numbering even for a "numbered" title, see \setuphead.


Your own title styles

Sometimes the possibilities of \setuphead aren't enough. Just define your own styling command like this:

\def\MyChapterCommand#1#2{#1\blank#2}
% #1 is number, #2 is text

\setuphead[chapter][command=\MyChapterCommand]

(Hm, something's wrong with that...)

Your own titling levels

Of course you can define your own titling commands and probably must adapt the default settings.

\definehead[myheader][section]

\setuphead[myheader]
[numberstyle=bold,
textstyle=cap,
before=\hairline\blank,
after=\nowhitespace\hairline]

\myheader[hasselt-ref]{Hasselt makes headlines}

A new header \myheader is defined and it inherits the properties of section (title, subject, whatever). You can "define" several headers at once!


Table(s) of Content

Default:

\completecontent % with title
\placecontent % without title

Define your own tables of somewhat with \definelist and \setuplist!