TransWikia.com

How can I increase the size of the Floor signs in an Equation

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:

Output

While I want it to look like this:

tareget

where the floor signs look more nice.

can you please tell me what to do? thanks in advance.

2 Answers

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}

enter image description here

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}

enter image description here

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.

enter image description here

Related:

Answered by CampanIgnis on December 10, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP