如何在 widetext 环境中正确对齐方程式

如何在 widetext 环境中正确对齐方程式

如何对齐 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}

相关内容