TeX - LaTeX Asked by Bilal on December 10, 2020
I have the following equation:
begin{equation*}
t leq lfloor {(frac{R}{rho})}^2 rfloor
end{equation*}
the output looks like this:
While I want it to look like this:
where the floor signs look more nice.
can you please tell me what to do? thanks in advance.
Before someone suggests left
and right
... :-)
documentclass{article}
usepackage{amsmath}
begin{document}
begin{equation*}
t leq biggllfloor biggl(frac{R}{rho}biggr)^{!!2} biggrrfloor
end{equation*}
end{document}
Note the small negative space added in the exponent.
My personal preference goes to DeclarePairedDelimiter
from mathtools
, which allows you to choose the scaling if you really want to:
documentclass{article}
usepackage{mathtools} % loads amsmath
DeclarePairedDelimiter{floor}{lfloor}{rfloor}
begin{document}
begin{equation*}
floor[bigg]{biggl(frac{R}{rho}biggr)^{!!2}}
qquad floor*{biggl(frac{R}{rho}biggr)^{!!2}} % automatic scaling with left/right
end{equation*}
end{document}
I find the second version horrible but that is just my personal taste...
Correct answer by campa on December 10, 2020
These are two standard ways to go:
documentclass{memoir}
usepackage{amsmath}
begin{document}
begin{equation*}
t leq lfloor {(frac{R}{rho})}^2 rfloor
end{equation*}
begin{equation*}
t leq leftlfloor {left(frac{R}{rho}right)}^2 rightrfloor
end{equation*}
begin{equation*}
t leq biggllfloor {biggl(frac{R}{rho}biggr)}^2 biggrrfloor
end{equation*}
end{document}
There is also an alternative with https://ctan.org/pkg/mathtools.
Related:
Answered by CampanIgnis on December 10, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP