LaTex排版技巧:[28]怎样绘制分块矩阵的竖虚线
1、第一种方法,使用arydshln 宏包来绘制横竖虚线。这里给一个示例。
\[
\left(\begin{array}{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)
\]
![LaTex排版技巧:[28]怎样绘制分块矩阵的竖虚线](https://exp-picture.cdn.bcebos.com/dd58d02c5b1b1edefb2dd88d981fceecd2d90f45.jpg)
2、第二种方法,使用宏包pmat,首先百度搜索:“pmat宏包下载”
![LaTex排版技巧:[28]怎样绘制分块矩阵的竖虚线](https://exp-picture.cdn.bcebos.com/125ed0ecd3d96975e735942dd243040149fe0945.jpg)
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}
\]
![LaTex排版技巧:[28]怎样绘制分块矩阵的竖虚线](https://exp-picture.cdn.bcebos.com/edd84743040148fe04b325df8fd149299b880245.jpg)