
Dado un documento como este
\starttext
\setupbodyfont[palatino,8pt] small
\setupbodyfont[palatino,12pt] normal
\setupbodyfont[palatino,16pt] big
\stoptext
¿Cómo centraría esas palabras verticalmente?
Respuesta1
Depende un poco de lo que quieras lograr. Una forma es utilizar \framed[location=lohi]
. Por ejemplo
\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