I need to typeset the following matrix
but I'm having trouble understanding the nicematrix package. I am trying to write it like this
\begin{document}
\begin{align*}
\begin{pNiceArray}{cccc|ccc}
\Block{2-2}<\Large>{\mathbf{S}} & \Block{2-2}<\Large>{\mathbf{0}} \\
0 & A & -A & 0 \\
\hline
\Block{2-2}<\Large>{\mathbf{0}} && A & 0 & A
\end{pNiceArray}
\end{align*}
\end{document}
If you can give me any help I'll be grateful.



\documentclass{...}, the required\usepackage's,\begin{document}, and\end{document}. That may seem tedious to you, but think of the extra work it represents for the users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – samcarter_is_at_topanswers.xyz Jan 21 '24 at 12:51Sin a block in your code? Do you wantSto have an arbitrary number of columns? – Sandy G Jan 21 '24 at 14:11