LaTex排版技巧:[28]怎样绘制分块矩阵的竖虚线

时间:2026-02-15 10:55:05

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]怎样绘制分块矩阵的竖虚线

2、第二种方法,使用宏包pmat,首先百度搜索:“pmat宏包下载”

LaTex排版技巧:[28]怎样绘制分块矩阵的竖虚线

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]怎样绘制分块矩阵的竖虚线

© 2026 五度知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com