使用这我能够创建一个大零,但如何使它居中?我对水平空间有点迷茫。我如何才能使它0_{3 \times 3}
在这个矩阵中居中。我的代码:
\documentclass{article}
\usepackage{scalerel,amsmath,arydshln}
\author{someone}
\title{something}
\begin{document}
\maketitle
\begin{equation}
\begin{aligned}
A=\left[\begin{array}{ccc;{1pt/2pt}ccc}
0&1&0&&&\\
0&0&1&&&\\
2&1&-1&\multicolumn{3}{c}{\raisebox{\dimexpr\normalbaselineskip+.3\ht\strutbox+0\height}[0pt][0pt]{\scalebox{2}{$0_{\scaleto{3\times 3}{3pt}}$}}}
\end{array}\right]
\end{aligned}
\end{equation}
\end{document}
有没有更简单的方法用一些包来创建这样的矩阵?
答案1
\documentclass{article}
\usepackage{scalerel,amsmath,arydshln}
\author{someone}
\title{something}
\begin{document}
\maketitle
\begin{equation}
\begin{aligned}
A=\left[\begin{array}{c;{1pt/2pt}c}
\begin{array}{@{}ccc@{}}
0&1&0\\
0&0&1\\
2&1&-1
\end{array}&
\begin{array}{@{}c@{}}
\scalebox{2}{$0_{\scaleto{3\times 3}{3pt}}$}
\end{array}
\end{array}\right]
\end{aligned}
\end{equation}
\end{document}