Recently I started to play with LaTeX again just to train for when I have to use it again. I like to write mathematical formulas and I am trying to nail down floor and ceil symbols with fractions. However the results I get are kind of weird, in my opinion. Example code below:
$\left\lfloor\dfrac{2}{3}\right\rfloor$
$\left\lfloor\dfrac{a}{n}\right\rfloor$
$\left\lfloor\dfrac{A}{n}\right\rfloor$
$\left\lfloor\dfrac{a}{N}\right\rfloor$
This code generates this output (compiling with PDFLaTeX):
The height of the floor symbol is inconsistent, it is smaller when the fraction contains a lowercase letter in the numerator and larger when the fraction contains numbers or uppercase letters in the numerator. Why is that the case? How can I produce floor symbols that are always the larger size shown in the picture?
\bigl
and\bigr
rather than\left
to get consistent size, or use\strut
in all cases eg\dfrac{\strut a}{\strut n}
so your fractions are the same size.\bigl
and\bigr
did not work here...\strut
kind of worked but it made the floor signs a little bit too high\bigl
I meant choose a suitable size (\biggl
or whatever you need) note the accepted answer is a primitive tex construct that should never be used in latex (and will generate warnings if used with amsmath)