# How does one vertically center the heading for a 'part' in ConTeXt?

My best effort thus far has been to simply add a big blank as a before perameter:

Obviously, this might work for a given paper size, but seems inelegant as a solution.

Have I missed an easier method for doing this?

-

You can use a makeup to set up a custom page layout. Here I used the pre-defined standard makeup, which centres vertically.

[part]
alternative=middle,
before=\startstandardmakeup,
after=\stopstandardmakeup,

\starttext
\startpart [title=Part One]
\stoppart
\stoptext

You can also create your own makeup and use the align key for the vertical alignment. This approach is more flexible. By default makeups do not increment the page counter (thanks to Aditya for pointing that out). This can be fixed with the pagestate key.

\definemakeup
[part]
[align=middle,
pagestate=start]

[part]
alternative=middle,
before=\startpartmakeup,
after=\stoppartmakeup,

\starttext
\startpart [title=Part One]
\stoppart
\stoptext
-
Note that, by default, a makeup does not increment page number. –  Aditya Aug 30 '12 at 18:33
Good catch, thanks. I corrected my example. –  Marco Aug 30 '12 at 18:51
Now that is exactly the kind of elegance I was looking for. I knew about makeups but I hadn't thought to use them in that way. Thanks very much! –  Philip Adler Aug 30 '12 at 20:48