2

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.

5

Before someone suggests \left and \right... :-)

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\begin{equation*}
t \leq \biggl\lfloor \biggl(\frac{R}{\rho}\biggr)^{\!\!2} \biggr\rfloor
\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...

3

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 \left\lfloor {\left(\frac{R}{\rho}\right)}^2 \right\rfloor
\end{equation*} 

\begin{equation*}
    t \leq \biggl\lfloor {\biggl(\frac{R}{\rho}\biggr)}^2 \biggr\rfloor
\end{equation*} 

\end{document}

There is also an alternative with https://ctan.org/pkg/mathtools.

enter image description here

Related:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.