# Determinants inside matrix

I am typing in .tex a solution using Cramer method but I can't find a way to write those matrixes inside the main matrix. Is there an easy way to do that?

enter code here
$adj(\mathbb{K})= \left[ \def\arraystretch{1.8} \begin{array}{ccc} +\begin{vmatrix} \frac{-2r\cos\theta}{R_E\sin^3\theta} & 0 \\ 0 & 1 \end{vmatrix} & -\begin{vmatrix} \frac{1}{R_E\sin^2\theta} & 0 \\ 0 & 1 \end{vmatrix} & +\begin{vmatrix} \frac{1}{R_E\sin^2\theta} & -\frac{-2r\cos\theta}{R_E\sin^3\theta} \\ 0 & 0 \end{vmatrix} \\ &&\\ -\begin{vmatrix} \frac{-R^2_E\sin^2\theta}{r^2} & 0 \\ 0 & 1 \end{vmatrix} & +\begin{vmatrix} \frac{-2R^2_E\cos\theta}{r^3} & 0 \\ 0 & 1 \end{vmatrix} & -\begin{vmatrix} \frac{-2R^2_E\cos\theta}{r^3} & -\frac{-R_E\sin\theta}{r^2} \\ 0 & 0 \end{vmatrix} \\ &&\\ +\begin{vmatrix} \frac{-R^2_E\sin\theta}{r^2} & 0 \\ \frac{-2r\cos\theta}{R_E\sin^3\theta} & 0 \end{vmatrix} & -\begin{vmatrix} \frac{-2R^2_E\cos\theta}{r^3} & 0 \\ \frac{1}{R_E\sin^2\theta} & 0 \end{vmatrix} & +\begin{vmatrix} \frac{-2R^2_E\cos\theta}{r^3} &\frac{-R^2_E\sin\theta}{r^2} \\ \frac{1}{R_E\sin^2\theta} & \frac{-2r\cos\theta}{R_E\sin^3\theta}\end{vmatrix} \end{array} \right]^T,$ • A quick hint: if you indent lines by 4 spaces, then they are marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it). – Mico Nov 11 '13 at 15:31