# [EXT] Re: rendering brackets

Henri Menke henrimenke at gmail.com
Tue Jun 23 06:54:55 CEST 2020

On 17/06/20, 16:29, Michael J. Baars wrote:
> Hi Philip,
>
> Well, you can do whatever you like with the .tex example, trow it away
> for all I care.
>
> I'm just trying to tell you, as a friend, that that
> "\left(\frac{1}{a}\right)" and "\left(\frac{a}{1}\right)" are rendered
> with brackets of different size, while the brackets of
> "\left(\frac{1}{2}\right" and "\left(\frac{2}{1}\right)" are rendered
> with brackets of the same size.

It has already been pointed out that this is due to the fact that the
number 1' is taller than the letter a'.  Here is the relevant bit of
the make_fraction routine:

https://github.com/TeX-Live/texlive-source/blob/35f189ca2c2866a9ed817da1db5d0bd165a3ec61/texk/web2c/tex.web#L14624-L14627

The height of the resulting vlist is the height of the numerator plus
the shift to compensate for numerator's depth and the fraction bar.

Cheers, Henri

>
> That's all :)
>
> Best regards,
> Mischa.
>
> On Tue, 2020-06-16 at 13:01 +0100, Philip Taylor wrote:
> > Mischa, I am not sure where the misunderstanding lies, but as far as
> > I
> > can tell this has nothing to do with TeX Live.  You stated "as you
> > can
> > see from the attachment, both '1' and 'a' are first placed in boxes
> > of
> > the same height" and I asked "at which point in your code are both
> > '1'
> > and 'a' first placed in boxes of the same height  ?".  This question
> > is
> > purely about your coding — TeX Live is not involved in any way.
> >
> > Philip Taylor
> > --------
> > > Hi Philip,
> > >
> > > Have you been looking in my code? I think you should be looking in
> > > the
> > > tex-live code.
> > >
> > > Also, perhaps you should be looking not for code that places the
> > > characters in a box of equal height, but for code that places the
> > > characters in a box of unequal height? As I pointed out right from
> > > the
> > > start, I have quite some experience with .tex files but little
> > > experience with the tex-live code.
> > >
> > > Best regards,
> > > Mischa.
>