[XeTeX] aligning characters at their centers

Daniel Greenhoe dgreenhoe at gmail.com
Wed Nov 16 15:23:04 CET 2011


On Wed, Nov 16, 2011 at 12:18 PM, Heiko Oberdiek
<heiko.oberdiek at googlemail.com> wrote:
> $\vcenter{\hbox{E}}\vcenter{\hbox{e}}$

That works great. Thanks so much for your help!

Dan

On Wed, Nov 16, 2011 at 12:18 PM, Heiko Oberdiek
<heiko.oberdiek at googlemail.com> wrote:
> 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
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>  http://tug.org/mailman/listinfo/xetex
>



More information about the XeTeX mailing list