我希望下面第三列的等号对齐。
我不明白为什么它不起作用两列和多行对齐
\begin{align*}
[P_\mu,P_\nu] &= 0 & \xrightarrow{\hspace*{4cm}} &&
\begin{aligned}[t]
[\tilde{H},\tilde{H}] &= 0 \\
[\tilde{P_i},\tilde{H}] &= 0 \\
[\tilde{P_i},\tilde{P_j}] &= 0
\end{aligned} \\
[M_{\mu \nu },P_\rho] &= 2 \eta_{\rho[\nu}P_{\mu]} & \xrightarrow{\hspace*{4cm}} &&
\begin{aligned}[t]
[\tilde{K_i},\tilde{H}] &= \tilde{P_i} \\
[\tilde{K_i},\tilde{P_j}] &= \delta_{ij} \tilde{H} \\
[\tilde{J_{ij}},\tilde{P_k}] &= 2 \delta_{k[j}\tilde{P_{i]}} \\
[\tilde{J_{ij}},\tilde{H}] &= 0
\end{aligned} \\
[M_{\mu \nu},M_{\rho\sigma}] &= 4\eta_{[\mu[\rho}M_{\sigma]\nu ]} & \xrightarrow{\hspace*{4cm}} &&
\begin{aligned}[t]
[\tilde{K_i},\tilde{K_j}] &= 0 \\
[\tilde{J_{ij}},\tilde{K_k}] &= 0 \\
[\tilde{J_{ij}},\tilde{J_{kl}}] &= 4\delta_{[i[k}\tilde{J}_{l]j ]}
\end{aligned} \\
\end{align*}
答案1
使所有内容对齐的最简单方法可能是将所有线路放在同一align
环境中。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
[P_\mu,P_\nu] &= 0 & \xrightarrow{\hspace*{4cm}} &&
[\tilde{H},\tilde{H}] &= 0 \\
&&&& [\tilde{P_i},\tilde{H}] &= 0 \\
&&&& [\tilde{P_i},\tilde{P_j}] &= 0 \\
[M_{\mu \nu },P_\rho] &= 2 \eta_{\rho[\nu}P_{\mu]} & \xrightarrow{\hspace*{4cm}} &&
[\tilde{K_i},\tilde{H}] &= \tilde{P_i} \\
&&&& [\tilde{K_i},\tilde{P_j}] &= \delta_{ij} \tilde{H} \\
&&&& [\tilde{J_{ij}},\tilde{P_k}] &= 2 \delta_{k[j}\tilde{P_{i]}} \\
&&&& [\tilde{J_{ij}},\tilde{H}] &= 0 \\
[M_{\mu \nu},M_{\rho\sigma}] &= 4\eta_{[\mu[\rho}M_{\sigma]\nu ]} & \xrightarrow{\hspace*{4cm}} &&
[\tilde{K_i},\tilde{K_j}] &= 0 \\
&&&& [\tilde{J_{ij}},\tilde{K_k}] &= 0 \\
&&&& [\tilde{J_{ij}},\tilde{J_{kl}}] &= 4\delta_{[i[k}\tilde{J}_{l]j ]}
\end{align*}
\end{document}
答案2
您可以alignat*
控制列之间的间距。我在三组之间添加了一些垂直间距:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{alignat*}{3}
[P_\mu,P_\nu] &= 0 &&{} \xrightarrow{\hspace*{4cm}}{} & [\tilde{H},\tilde{H}] &= 0 \\
& & & & [\tilde{P_i},\tilde{H}] &= 0 \\
& & & & [\tilde{P_i},\tilde{P_j}]& = 0 \\[1.5ex]
[M_{\mu \nu },P_\rho] &= 2 \eta_{\rho[\nu}P_{\mu]} & & \xrightarrow{\hspace*{4cm}}{} &
[\tilde{K_i},\tilde{H}]&= \tilde{P_i} \\
& & & & [\tilde{K_i},\tilde{P_j}] &= \delta_{ij} \tilde{H} \\
& & & & [\tilde{J_{ij}},\tilde{P_k}] &= 2 \delta_{k[j}\tilde{P_{i]}} \\
& & & & [\tilde{J_{ij}},\tilde{H}] &= 0 \\[1.5ex]
[M_{\mu \nu},M_{\rho\sigma}] &= 4\eta_{[\mu[\rho}M_{\sigma]\nu ]} & & \xrightarrow{\hspace*{4cm}} & [\tilde{K_i},\tilde{K_j}] &= 0 \\
& & & & [\tilde{J_{ij}},\tilde{K_k}] &= 0 \\
& & & & [\tilde{J_{ij}},\tilde{J_{kl}}] &= 4\delta_{[i[k}\tilde{J}_{l]j ]}
\end{alignat*}
\end{document}