[XeTeX] aligning characters at their centers
Heiko Oberdiek
heiko.oberdiek at googlemail.com
Wed Nov 16 05:18:38 CET 2011
On Wed, Nov 16, 2011 at 11:28:33AM +0800, Daniel Greenhoe wrote:
> Is there a way to align characters at their centers instead of at
> their baselines?
>
> Take for example
> {\scshape Ee}.
> This will produce one big uppercase "E" and one little uppercase "E";
> and their lower horizontal bars will be aligned. But is there any way
> I can make them aligned at their centers (center horizontal bars
> aligned) without using \raisebox?
\documentclass{article}
\begin{document}
\scshape
$\vcenter{\hbox{E}}\vcenter{\hbox{e}}$
or
\valign{&\vfill\hbox{#}\vfill\cr E\cr e\cr}
\end{document}
Yours sincerely
Heiko Oberdiek
More information about the XeTeX
mailing list