I'd like to use a mathematical notation that looks like a fraction \frac{A}{B}, with an additional vertical line that extends from the right end of the horizontal line down towards the base line of the denominator. Is there an easy way to achieve this in such a way that it scales correctly in different settings?
[Tex/LaTex] Adding a vertical line at the right end of the horizontal line in \frac
fractions
Best Answer
I measure the fraction in the current style, via
\mathpalette
. Then I add a\vrule
that's as high as the math axis (\fontdimen22
of the current font in family 2) plus half of the default rule thickness (\fontdime8
of the current font in family 3), as deep as the fraction and with width the default rule thickness.Some negative space is needed, which is
-\nulldelimiterspace
, that I add back after the construction.In order to leave some room, I added thin spaces on either side in the denominator.