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

2025-10-14 00:28:34

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

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢