![如何在 widetext 环境中正确对齐方程式](https://linux22.com/image/466012/%E5%A6%82%E4%BD%95%E5%9C%A8%20widetext%20%E7%8E%AF%E5%A2%83%E4%B8%AD%E6%AD%A3%E7%A1%AE%E5%AF%B9%E9%BD%90%E6%96%B9%E7%A8%8B%E5%BC%8F.png)
如何对齐 widetext 环境内的方程式,如下面的代码所示?
\documentclass[twocolumn,float fix, prb, aps, showpacs]{revtex4-2}
\usepackage{graphicx,amsmath,amssymb,color}
\usepackage{nicefrac}
\usepackage{multirow,array,booktabs}
\usepackage{mathtools}
\usepackage{bbm}
\usepackage{mathrsfs}
\begin{document}
Random textRandom textRandom textRandom textRandom textRandom
Random textRandom textRandom textRandom textRandom text
Random textRandom textRandom textRandom textRandom textRandom text
\begin{widetext}
\begin{align*}
&\left.
\begin{aligned}
\Big\langle\Phi_{\mathbf{K}}\Big|&=\Big(|0,X\rangle,0\Big), \quad\\
\Big\langle\Phi_{\mathbf{K}}\Big|&=\Big(|0,X\rangle,0\Big), \quad\\
\vdots \\
\Big\langle\Phi_{\mathbf{K}}\Big|&=\Big(|0,X\rangle,0\Big), \quad
\end{aligned}
\right\}
\begin{aligned}
&\text{text text text text}\\
&E_{\mathcal{N}=0}=E_{\mathcal{N}=0}= \dots=E_{\mathcal{N}=0}=0
\end{aligned}
\\
\begin{aligned}
\langle\Phi|= \frac{1}{\sqrt{2}}\big({-}|\mathcal{N},X\rangle,~|\mathcal{N}{-}J,X\rangle\big)\\
\langle\Phi|= \frac{1}{\sqrt{2}}\big({-}|\mathcal{N},X\rangle,~|\mathcal{N}{-}J,X\rangle\big)
\end{aligned}
\end{align*}
\end{widetext}
Random textRandom textRandom textRandom textRandom textRandom
Random textRandom textRandom textRandom textRandom text
Random textRandom textRandom textRandom textRandom textRandom text
\end{document}
答案1
&
您忘记在第二个 之前放置对齐锚点aligned
。我还做了一些其他小更新。
\documentclass[twocolumn]{revtex4-2}
\usepackage{mathtools}
\begin{document}
Random textRandom textRandom textRandom textRandom textRandom
Random textRandom textRandom textRandom textRandom text
Random textRandom textRandom textRandom textRandom textRandom text
\begin{widetext}
\vspace{-\baselineskip}
\begin{align*}
& \left.\begin{aligned}
\bigl\langle \Phi_{\mathbf{K}} \bigm| &= \bigl( | 0, X \rangle, 0 \bigr), \quad \\
\bigl\langle \Phi_{\mathbf{K}} \bigm| &= \bigl( | 0, X \rangle, 0 \bigr), \\
&\vdotswithin{=} \\
\bigl\langle \Phi_{\mathbf{K}} \bigm| &= \bigl( | 0, X \rangle, 0 \bigr),
\end{aligned}
\right\}
\begin{aligned}
& \text{text text text text} \\
& E_{\mathcal{N} = 0} = E_{\mathcal{N} = 0} = \dots = E_{\mathcal{N} = 0} = 0
\end{aligned} \\
& \kern\nulldelimiterspace\, \begin{aligned}
\bigl\langle \Phi \bigm| = \frac{1}{\sqrt{2}} \bigl( {-}| \mathcal{N}, X \rangle, |\mathcal{N}{-}J, X \rangle \bigr) \\
\bigl\langle \Phi \bigm| = \frac{1}{\sqrt{2}} \bigl( {-}| \mathcal{N}, X \rangle, |\mathcal{N}{-}J, X \rangle \bigr)
\end{aligned}
\end{align*}
\end{widetext}
Random textRandom textRandom textRandom textRandom textRandom
Random textRandom textRandom textRandom textRandom text
Random textRandom textRandom textRandom textRandom textRandom text
\end{document}