I want to display a mock-up of a matrix while making it a clear distinction between the structure in the two parts of a matrix. I made an almost successful attempt, but it resulted in unmatching parenthesis sizes, in addition to other alignment problems.
The minimal working examples show tiny matrices where the problem is quite evident.
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\begin{array}{r |c|c|}
& \mathbf{H^{\;(1)}_{m \times k}} & \mathbf{H^{\;(2)}_{m \times k}} \\
{\bf H}_\textrm{IRA}= &
\left(\overbrace{
\begin{array}{ccc}
\text{{\scriptsize{1}}} & &\text{{\scriptsize{1}}}\\
\text{{\scriptsize{1}}} & \text{{\footnotesize{1}}} &\\
\text{{\scriptsize{1}}}& & \\
\end{array} }
\right.
&
\left.\overbrace{
\begin{array}{ccc}
\text{{\scriptsize{1}}} & &\text{\Huge{0}}\\
\text{{\scriptsize{1}}} & \text{{\scriptsize{1}}} &\\
\text{\Huge{0}}& \text{{\scriptsize{1}}} &\text{{\scriptsize{1}}}
\end{array} }
\right)
\end{array}
\]
\end{document}
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\begin{array}{r |c|}
&
\begin{array}{|c|c|}
\hfill\mathbf{H^{\;(1)}_{m \times k}}\hfill & \hfill\mathbf{H^{\;(2)}_{m \times k}}\hfill
\end{array}\\
{\bf H}_\textrm{IRA} = &
\left(\begin{array}{c|c}
\overbrace{\begin{array}{ccc}
\text{{\scriptsize{1}}} & &\text{{\scriptsize{1}}}\\
\text{{\scriptsize{1}}} & \text{{\footnotesize{1}}} &\\
\text{{\scriptsize{1}}}& & \\
\end{array} }
&
\overbrace{\begin{array}{ccc}
\text{{\scriptsize{1}}} & &\text{\Huge{0}}\\
\text{{\scriptsize{1}}} & \text{{\scriptsize{1}}} &\\
\text{\Huge{0}}& \text{{\scriptsize{1}}} &\text{{\scriptsize{1}}}
\end{array} }
\end{array}\right)\\
\end{array}
\]
\end{document}