![矩阵对齐问题](https://linux22.com/image/375702/%E7%9F%A9%E9%98%B5%E5%AF%B9%E9%BD%90%E9%97%AE%E9%A2%98.png)
我无法对齐右侧矩阵。
\documentclass[a4paper,12pt,reqno]{amsart}
\usepackage{amssymb,amsthm}
\usepackage{ifthen}
\usepackage{graphicx}
\usepackage{float}
\usepackage{arydshln}
\begin{document}
\[
\left[
\begin{array}{c@{}c@{}c@{}c@{}c}
& \vdots & \\
\begin{array}{c}
\mbox{\LARGE {Q}}
\end{array} & 0 & \begin{array}{c}
\mbox{\LARGE {O}}
\end{array} \\
\begin{matrix} \cdots & 0& u_0 \end{matrix} & \begin{array}{c}
u_{-1}\\
d_0\\
l_1
\end{array} & \begin{matrix} c_0 & 0 & \cdots \end{matrix}\\
\mbox{\LARGE {O}} & 0 & \begin{array}{c}
\mbox{\LARGE {S}}
\end{array} \\
& \vdots & \\
\end{array}\right]
\left[\begin{array}{c}
x_-\\
x_0\\
x_+
\end{array}\right] = \left[\begin{array}{c}
y_-\\
y_0\\
y_+
\end{array}\right]
\]
\end{document}
答案1
这更多的是评论而不是答案......
清理代码后:
\documentclass[a4paper,12pt,reqno]{amsart}
\begin{document}
\[
\begin{bmatrix}
& & & \vdots & & & \\
& \mbox{\LARGE {Q}} & & 0 & & \mbox{\LARGE {O}} & \\
& & & u_1 & & & \\
\cdots & 0 & u_0 & d_0 & c_0 & 0 & \cdots \\
& & & l_1 & & & \\
& \mbox{\LARGE {O}} & & 0 & & \mbox{\LARGE {Q}} & \\
& & & \vdots & & & \\
\end{bmatrix}
\begin{bmatrix}
x_-\\
x_0\\
x_+
\end{bmatrix} = \begin{bmatrix}
y_-\\
y_0\\
y_+
\end{bmatrix}
\]
\end{document}
我得到
正如我所见,这是完全对齐的。
注意:我使用\begin{bmatrix}
您的构造\lef[\begin{array}
并删除所有内部矩阵。代码给出相同的结果,但是它更短更清晰。