I am using the mathtools
package in order to right-align entries in small matrices. My code is below. The issue is that the delimiters in the first matrix are not the appropriate size; they should be the same size as the delimiters in the second matrix. I'm sure the issue is because of right-aligning.
How can I fix the delimiters in the first matrix without resorting to using \bigl(
and \bigr)
?
\documentclass[11pt]{article}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{mathtools}
\begin{document}
Here is a sentence.
\begin{enumerate}
%
\item $A = \left(
\begin{smallmatrix*}[r]
1 & 2 \\
5 & 7
\end{smallmatrix*} \right)$
%
\item $A = \left(
\begin{smallmatrix*}[r]
1 & -1\\
2 & 3
\end{smallmatrix*} \right)$
\end{enumerate}
\end{document}
Best Answer
The operator
-
has greater depth than the surrounding numerals. As such, the secondsmallmatrix
is "taller" than the first, causing the delimiters to stretch further. The following highlights this somewhat:\boxit
puts a bounding box around the element. Note how the elements in the first row of the secondsmallmatrix
are not vertically aligned.The marginal increase in height is enough to increase the delimiters. This behaviour can be adjusted via setting elements like
\delimitershortfall
and/or\delimiterfactor
. In the following example, I've set\delimitershortfall
to0pt
:Read some more about these settings in Automatic size adjustment for nested parentheses.