给出这样的文档
\starttext
\setupbodyfont[palatino,8pt] small
\setupbodyfont[palatino,12pt] normal
\setupbodyfont[palatino,16pt] big
\stoptext
我该如何使这些单词垂直居中?
答案1
这有点取决于你想实现什么。一种方法是使用\framed[location=lohi]
。例如
\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