1

I want to vertically center the content of all pages. I followed the approach in https://tex.stackexchange.com/a/155734/91605, but alignment becomes increasingly skewed from actual center when as the body font size grows. This happens no matter whether there is a single line of text or many. How can I fix this?

MWE:

\setuppagenumbering[location=]
\setupbodyfont[100pt]
\showframe

\starttext

\dontleavehmode\vfill
text
\vfill

\stoptext

Example output

1 Answer 1

1

One option is to use align=lohi option of \framed:

\setuppagenumbering[location=]
\setupbodyfont[100pt]
\showframe
\showboxes

\starttext

\dontleavehmode
\framed[height=\textheight, width=\textwidth, align={lohi}]
{text}

\stoptext

which gives

enter image description here

1
  • Thanks, I'll give it a try. Any idea why this is necessary? Commented Feb 19, 2018 at 13:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .