[NTG-context] vertically centered aligment of different sized texts

Taco Hoekwater taco at elvenkind.com
Thu May 18 12:08:08 CEST 2006


frantisek holop wrote:
> i've tried the old style numeral but i didn't like it.
> by "keeping the same vertical alignment ratio" do you
> mean something like \raise?

Take the 'normal' 7 in the 'normal' tf size, but place it
as if it was an old-style numeral (using something like
\lower2pt\hbox{7}). Measure the height of the result box.
Now you have a  box that is say 4.5pt above (and 2pt below
the baseline). Create a new box with the 7 in the increased
font size, and use \lower to make sure that 4.5/6 of it is
above the baseline.  You asked for 'complicated', right?

Taco