1

Can you see as the content is not aligned with square brackets?

\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\[
  \left[ \dfrac{1}{\dfrac{\mathrm{L}^3}{\mathrm{t}}} \right]
\]
\end{document}

enter image description here

Content should be displayed higher. Maybe a \dfrac bug? Or maybe I should fine an alternatice to \left[ and \right]?

3
  • 3
    That's expected: the brackets are centered around the formula axis, which in this case is the line of the outer fraction, and have the same size above and below this axis. It would be much clearer to type \left[\frac{1}{\mathrm{L}^3\mathrm{t}^{-1}}\right] anyway. Or, directly, [\mathrm{L}^{-3}\mathrm{t}]
    – egreg
    Commented Jul 28, 2022 at 14:56
  • 2
    This is expected behaviour, as the brackets are aligned around the math axis. I'd just use \left[ \frac{1}{\mathrm{L}^3/\mathrm{t}} \right]. Much more readable.
    – campa
    Commented Jul 28, 2022 at 14:56
  • @campa You used a slash. Added value, so I think your comment could stand.
    – mickep
    Commented Jul 28, 2022 at 15:05

2 Answers 2

1

That's the expected behavior: the brackets are symmetric with respect to the formula axis, which is the imaginary line where the main fraction line sits on.

I guess that this is some step during dimensional analysis; suppose you follow the advice by Bernard, but put it in context:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\[
\begin{bmatrix}
\dfrac{1}{\dfrac{\mathrm{L}^3}{\mathrm{t}}}
\end{bmatrix}
=
\left[\frac{\mathrm{t}}{\mathrm{L}^3}\right]
\]

\end{document}

enter image description here

Your readers will have a very hard time in interpreting the meaning of such a formula. Which one is the main fraction line? The top one is just slightly longer than the (secondary) bottom one and L3 lies almost exactly at the same level as the fraction line in the right-hand side.

Take into account that mistaking the main fraction line would lead to very wrong interpretation.

Making the main fraction line longer doesn't really solve the problem:

\[
\begin{bmatrix}
\dfrac{\;\;1\;\;}{\dfrac{\mathrm{L}^3}{\mathrm{t}}}
\end{bmatrix}
=
\left[\frac{\mathrm{t}}{\mathrm{L}^3}\right]
\]

would produce

enter image description here

which is as unreadable.

Solution: use exponents, as is commonly done in dimensional analysis:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\[
\left[\frac{1}{\mathrm{L}^3\mathrm{t}^{-1}}\right]
=
[\mathrm{L}^{-3}\mathrm{t}]
\]

\end{document}

enter image description here

0

You obtain a better looking formula with bmatrix:

\documentclass[12pt]{article}
\usepackage{amsmath}

\begin{document}

\[
  \begin{bmatrix}\dfrac{1}{\dfrac{\mathrm{L}^3}{\mathrm{t}}} \end{bmatrix}
\]

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .