Am 23.06.2011 um 11:03 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
Its goal is to define \(start/stop)TitlePage command in which heads will be centred (although they are not mid-aligned by default).
(I don't know if my approach is the best - I'm using \chapterMiddle instead of \chapter for this, which is defined as mid-aligned).
A \chapterMiddle is derrived from \chapter and has middle alignment.
I would need to do a similar thing with \sectionMiddle.
The problem is that when I derive a next style - "\definehead[sectionMiddle][section]" (try to comment the proper line), look of the TOC changes (?!) - some extra space before "Cha2" appears; see both test21.pdf and test22.pdf.
So how to keep the same look of the TOC?
And - would you recommend any better solution how to define \(start/stop)command which would force heads to be mid-aligned?
Don’t misuse headings for your titlepage. As a titlepage is something special you can use \midaligned, \definedfont etc. to format it, e.g. \starttext \starttextmakeup[align=middle] \definedfont[SansBold sa 2]My Document \stoptextmakeup … \stoptext Wolfgang