Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

\setuphead[part][placehead=yes, alternative=middle,before={\blank[12*big,force]},
    header=empty]

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

Have I missed an easier method for doing this?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

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

\setuphead
  [part]
  [placehead=yes,
   alternative=middle,
   before=\startstandardmakeup,
   after=\stopstandardmakeup,
   header=empty]

\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]

\setuphead
  [part]
  [placehead=yes,
   alternative=middle,
   before=\startpartmakeup,
   after=\stoppartmakeup,
   header=empty]

\starttext
  \startpart [title=Part One]
  \stoppart
\stoptext
share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.