1

Given a document like this

\starttext
\setupbodyfont[palatino,8pt] small
\setupbodyfont[palatino,12pt] normal
\setupbodyfont[palatino,16pt] big
\stoptext

how would I center those words vertically?

1
  • If you intend to present these elements on a separate page, then a makeup would be the obvious approach. Commented Apr 21, 2015 at 22:31

1 Answer 1

1

It depends a bit on what you want to achieve. One way is to use \framed[location=lohi]. For example

\defineframed
  [vcentered]
  [
    location=lohi,
    frame=off,
  ]

\starttext
\dontleavehmode
\vcentered[foregroundstyle={\switchtobodyfont[palatino,8pt]}]{small}
\vcentered[foregroundstyle={\switchtobodyfont[palatino,12pt]}]{normal}
\vcentered[foregroundstyle={\switchtobodyfont[palatino,16pt]}]{big}
\stoptext

enter image description here

You must log in to answer this question.

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