[Tex/LaTex] How to vertically center content in ConTeXt

contextcontext-mkivvertical alignment

I would like to vertically center my title page. I have tried code like this, but it does not work:

\vfill
\startalignment[center]
    Title
\stopalignment
\vfill
  • I am using ConTeXt, so the solutions at Vertically center text on a page did not work, however, solutions in plain TeX will be fine too.
  • The documentation on \setupalign at the ConTeXt wiki suggests there might be the option lohi, but it seems only to center content vertically when placed inside a frame.

How can I vertically center content on a page?

Best Answer

As Aditya already answered, the most common way is to use \startstandardmakeup, as in:

\starttext
\startstandardmakeup
\startalignment[center] % or \centerline{...}
    {\definedfont[Bold at 40pt] Title}
\stopalignment
\stopstandardmakeup
document text
\stoptext
Related Question