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

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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