我需要排版以下矩阵
但我不太理解 nicematrix 包。我试着这样写
\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.
答案1
这是一个array
基于的解决方案。
\documentclass{article}
\usepackage{array} % for '\extrarowheight' macro
\usepackage{multirow} % for '\multirow' macro
\begin{document}
\begingroup % localize scope of the next instruction
\Large % '\Large' is a textmode command
\[
\setlength\extrarowheight{2pt}
\left( \begin{array}{ l | c | c | c }
S & -A & \multicolumn{2}{c}{0} \\
\hline
\multirow{2.1}{*}{0} & A & -A & 0 \\
\cline{2-4}
& A & 0 & -A
\end{array} \right)
\]
\endgroup
\end{document}