在我的.tex
档案中,
\begin{align}
\ket{\psi_t}
&= exp(-\frac{i}{\hbar}\int _{t_1}^{t_2} \mathbb{H}(t')dt')\ket{\psi_0}= \{ \mathbb{I} -\frac{i}{\hbar}\int _{0}^{t} \mathbb{H}(t')dt' + \frac{1}{2!}(\frac{i}{\hbar})^2 \int _{0}^{t}dt' \int_{0}^{t} dt_1 \mathbb{H}(t_1)\mathbb{H}(t')- \nonumber \\
& \frac{1}{3!}(\frac{i}{\hbar})^3\int _{0}^{t}dt' \int_{0}^{t} dt_1 \int_{0}^{t} dt_2 \mathbb{H}(t_2) \mathbb{H}(t_1)\mathbb{H}(t') + . . . \ \} \ket{\psi_0} \nonumber \\
& \ket{\psi_t} - \ket{\psi_0} = \{-\frac{i}{\hbar}\int _{0}^{t} \mathbb{H}(t')dt' + (\frac{i}{\hbar})^2 \int _{0}^{t}dt' \int_{0}^{t'} dt_1 \mathbb{H}(t_1)\mathbb{H}(t')- (\frac{i}{\hbar})^3\int _{0}^{t}dt' \int_{0}^{t'} dt_1 \int_{0}^{t_1} dt_2 \mathbb{H}(t_2) \mathbb{H}(t_1)\mathbb{H}(t') \nonumber \\
& + . . . \ \} \ket{\psi_0}
\end{align}
给予必要的结盟,但其他部分:
\begin{align}
\frac{d}{dt}\ket{\psi_t}= -\frac{i}{\hbar}\mathbb{H}(t)
\{ \mathbb{I} -\frac{i}{\hbar}\int _{0}^{t} \mathbb{H}(t')dt' + \frac{1}{2!}(\frac{i}{\hbar})^2 \int _{0}^{t}dt' \int_{0}^{t} dt_1 \mathbb{H}(t_1)\mathbb{H}(t')- ... \ \} \ket{\psi_0} \nonumber \\
&= -\frac{i}{\hbar}\mathbb{H}(t) \mathcal{O}_{\mathbb{H}}\ket{\psi_0}
\end{align}
还
\begin{align}
h(\textbf{R}_t) \ket{\psi_n (\textbf{R}_t)}= E_n(\textbf{R}_t) \ket{\psi_n (\textbf{R}_t)} \nonumber \\
&\implies \braket{\psi_n (\textbf{R}_t)| \psi_m (\textbf{R}_t)}
\end{align}
不对齐文本,而是向最右边移动。
我对 Latex 还很陌生,觉得这有点麻烦,有人能告诉我我到底遗漏了什么吗?谢谢!
编辑:
使用时只需&
:
Even take this example, it shifts the `abcd` to the right side
\begin{align}
h(\textbf{R}_t) \ket{\psi_n (\textbf{R}_t)}= E_n(\textbf{R}_t) \ket{\psi_n (\textbf{R}_t)} \nonumber \\
& abcd
\end{align}
我该如何解决这个问题?
答案1
这个怎么样?
\documentclass{book}
\usepackage{amsmath}
\usepackage{physics}
\begin{document}
\begin{align}
h(\mathbf{R}_t) \ket{\psi_n (\mathbf{R}_t)}
&= E_n(\mathbf{R}_t) \ket{\psi_n (\mathbf{R}_t)} \nonumber\\
&= abcd
\end{align}
\begin{align}
& h(\mathbf{R}_t) \ket{\psi_n (\mathbf{R}_t)}
= E_n(\mathbf{R}_t) \ket{\psi_n (\mathbf{R}_t)} \nonumber\\
& abcd
\end{align}
\end{document}
答案2
我使用了braket
package 而不是physics
package。这里我添加了一个替代方案,但略有不同。
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{braket}
\begin{document}
\[
\begin{aligned}
h(\mathbf{R}_t) \ket{\psi_n (\mathbf{R}_t)}
&= E_n(\mathbf{R}_t) \ket{\psi_n (\mathbf{R}_t)}\\
&= abcd\\[1cm]
h(\mathbf{R}_t) \ket{\psi_n (\mathbf{R}_t)}
& = E_n(\mathbf{R}_t) \ket{\psi_n (\mathbf{R}_t)}\\
abcd &
\end{aligned}
\]
\end{document}
快照为: