A fraction like this
\frac{1}{\begin{vmatrix}
1 & 2 & 3\\
4 & 5 & 6\\
7 & 8 & 9
\end{vmatrix}}
is nicely rendered as
but when we enclose it in any kind of delimiters, LaTeX goes stupid and add a lot of space so the numerator and denominator have the same size:
\left(
\frac{1}{\begin{vmatrix}
1 & 2 & 3\\
4 & 5 & 6\\
7 & 8 & 9
\end{vmatrix}}
\right)
renders as
How can I change this behavior?
Here's the same question, but the "answers" change the semantics of the content, which is, in my opinion, a very bad answer. I don't want to know how can I rewrite my formula to accommodate LaTeX limitations, I want LaTeX to render in a non-stupid manner.
In that post there is an answer that actually try to do this, suggesting the use of the macro \stretchleftright from the package scalerel. The problem with that approach is that the delimiters grows proportionally and will look extremely thick when the fraction is big.
Is there a better way to do that?




Let $D$ be the determinant; that is, \[ D=\begin{vmatrix} 1 & 2 & 3\\ 4 & 5 & 6\\ 7 & 8 & 9 \end{vmatrix}. \] Then \[ ... = \frac{1}{D} ... \], rather than sticking a huge expression in the denominator. – Ruixi Zhang Sep 02 '21 at 04:08\centerfraction{...}from my answer and see if that works for you. – Ruixi Zhang Sep 02 '21 at 04:39^{-1}rather than\frac– David Carlisle Sep 02 '21 at 14:47