I have an Equation written with the following code:
\vec{B}(\vec{m},\vec{r}) \sim \left(\frac{3\left[\begin{pmatrix}
0\\
0\\
m
\end{pmatrix}\cdot \begin{pmatrix}
\sin\theta\cos\varphi\\
\sin\theta\sin\varphi\\
\cos\theta
\end{pmatrix}\right] \cdot
\begin{pmatrix}
\sin\theta\cos\varphi\\
\sin\theta\sin\varphi\\
\cos\theta
\end{pmatrix}
-
\begin{pmatrix}
0\\
0\\
m
\end{pmatrix}}{r^3}\right)
But it looks like this:
how can I make the brackets smaller?
Best Answer
The reason you are getting the extra space is the following: fractions are placed so that the fraction line lies on the "math axis", which is a little above the baseline, at about the height of a minus sign, and the stretchy delimiters produced by
\left...\right
are centered on the math axis as well, so they extend above and below the math axis by the same amount. That will be the maximum of the extent above the math axis and the extent below it of the enclosed material. In your case, the material above the axis is much larger, so the delimiters extend that far below as well.One way to get around this is to use
\vcenter
to recenter the equation vertically so that the fraction line is not on the math axis. You need to use\vcenter{\hbox{$\displaystyle...$}}
inside the\left...\right
. For exampleproduces
Note, however, that some will find this distasteful since the fraction is not properly centered, so the other answers may be preferable.