1、第一种方法,使用arydshln 宏包来绘制横竖虚线。这里给一个示例。\[\left(\begin{arra烤恤鹇灭y}{ccc;{2pt/2pt}ccc}a& \cdots & a & b & \cdots & b \\& \ddots & \vdots & \vdots & \adots \\& & a & b \\ \hdashline[2pt/2pt]& & & c & \cdots & c \\& & & \vdots & & \vdots \\\multicolumn{3}{c;{2pt/2pt}}{\raisebox{2ex}[0pt]{\Huge0}}& c & \cdots & c\end{array}\right)\]
2、第二种方法,使用宏包pmat,首先百度搜索:“pmat宏包下载”
3、第二种方法实例:\[\pmatset{1}{0.72pt}\pmatset{0}{2\pmatget撑俯擂摔{1}}\pmatset{5}{0pt}\pmatset{6}{0pt}\begin{pmat}[{||}]A_{11} & A_{12} & A_{13} \cr\-A_{21} & A_{22} & A_{23} \cr\-A_{31} & A_{32} & A_{33} \cr\end{pmat}\]其执行结果为\[\pmatset{1}{0.72pt}\pmatset{0}{2\pmatget{1}}\pmatset{5}{0pt}\pmatset{6}{0pt}\begin{pmat}[{||}]A_{11} & A_{12} & A_{13} \cr\-A_{21} & A_{22} & A_{23} \cr\-A_{31} & A_{32} & A_{33} \cr\end{pmat}\]