I would like to customize the array environment in such a way that I can write arrays with dashed delimiters that are internal to the arrays as in the figure below.
Question. How do I place the vertical and horizontal delimiters on the inside of the arrays? Is it possible to have control over the customization of the delimiters? Like can I control the delimiters so that they are dashed or continuous or colored?
Thanks in advance.
My attempt. The best I got was using the code below.
\begin{center}
\left[\begin{array}{c|c|c}
\underline{\displaystyle{A}_{\vspace{5mm}}}
&
\underline{\displaystyle{B}_{\vspace{5mm}}}
&
\underline{\displaystyle{E}_{\vspace{5mm}}}
\\
\underline{\displaystyle{C}_{\vspace{5mm}}}
&
\underline{\displaystyle{D}_{\vspace{5mm}}}
&
\underline{\displaystyle{F}_{\vspace{5mm}}}
\\
\underline{\displaystyle{G}_{\vspace{5mm}}}
&
\underline{\displaystyle{H}_{\vspace{5mm}}}
&
\underline{\displaystyle{L}_{\vspace{5mm}}}
\end{array}\right]
\end{center}
And the result was somewhat unsatisfactory as can be seen in the figure below.
arydshln
package.nicematrix
you can do that with dotted lines. And you can use bothnicematrix
andarydshln
.