\documentclass[12pt]{report}
\usepackage{amsfonts,amsmath,mathtools}
\begin{document}
\begin{align*}
0\longrightarrow S
\xrightarrow{
\begin{array}{c}
xyz\\
\end{array}
\left[\begin{array}{rrr}
1 \\-1 \\1 \\
\end{array}
\right]
\begin{matrix}
\\yz\\xz\\xy
\end{matrix}
}S^3
\xrightarrow{
\begin{array}{rrr}
yz&xz&xy\\
\left[\begin{array}{rrr}
0&1&1\\
1&0&-1\\
-1&-1&0\\
\end{array}
\right]
\end{array}
}S^3
\end{align*}
\end{document}
我想将行 yz xz xy 与代码中给出的 3 x 3 矩阵的顶行对齐
答案1
也许你想要这样的东西?
\documentclass[12pt]{report}
\usepackage{amsfonts, mathtools}
\begin{document}
\begin{align*}
0 ―――→ S
\xrightarrow{
xyz
\begin{bsmallmatrix*}[r]
1 \\-1 \\1
\end{bsmallmatrix*}
\begin{smallmatrix}
yz\\xz\\xy
\end{smallmatrix}%
}S³
\xrightarrow{
\begin{matrix}
\begin{smallmatrix*}
& yz & & zx & & xy \end{smallmatrix*} \\
\begin{bsmallmatrix*}[r]
0&1&1\\
1&0&-1\\
-1&-1&0\\
\end{bsmallmatrix*}
\end{matrix}
}S³
\end{align*}
\end{document}