
Angesichts eines Dokuments wie diesem
\starttext
\setupbodyfont[palatino,8pt] small
\setupbodyfont[palatino,12pt] normal
\setupbodyfont[palatino,16pt] big
\stoptext
wie kann ich diese Wörter vertikal zentrieren?
Antwort1
Es hängt ein wenig davon ab, was Sie erreichen möchten. Eine Möglichkeit besteht darin, zu verwenden \framed[location=lohi]
. Zum Beispiel
\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