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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________