多语言展示
当前在线:1069今日阅读:152今日分享:13

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

LaTeX作为一个功能强大国际通用的排版软件,它特别适合于数理科学中科技论文、专业书籍排版, LaTeX尤其适合于各种符号公式的编排,其公式排版效果是目前常用的mathtype所不能比拟的。这里将latex的排版技巧按照系列经验的方式与大家分享下,希望对大家有所帮助。本小节主要关于怎样绘制分块矩阵的竖虚线?
工具/原料
1

电脑

2

latex排版软件

方法/步骤
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)\]

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}\]

注意事项

本文是作者根据自己的经验总结

推荐信息