I am building a big matrix within the which I have block matrices, which I want to indicate by boxes. My current state looks like this:
$$\begin{matrix} \framebox[3.\width]{J}& \begin{matrix} 0&0&\\0&0&\end{matrix}&\\
\begin{matrix} 0&0&\\0&0&\end{matrix}& \framebox[3.\width]{J}&\end{matrix}$$
but this makes the frameboxes aligned to the right. I want them centered in their matrix-cell.
How can I solve this?
\documentclass
and ending with\end{document}
J&0\\0&J
?J_{2\times 2}