![对齐制表符 & 放错了位置,已更改为 cr](https://linux22.com/image/373887/%E5%AF%B9%E9%BD%90%E5%88%B6%E8%A1%A8%E7%AC%A6%20%26%20%E6%94%BE%E9%94%99%E4%BA%86%E4%BD%8D%E7%BD%AE%EF%BC%8C%E5%B7%B2%E6%9B%B4%E6%94%B9%E4%B8%BA%20cr.png)
我尝试用 LaTeX 编译此代码,但它显示如下错误
alignment tab character $ has been changed to cr.
这是我的某些代码中出现错误的地方。
有人能帮我弄清楚如何解决这个问题吗?
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb}
\usepackage{amsfonts}
\usepackage{physics}
\usepackage[skins]{tcolorbox}
\usepackage{slashed}
\newcommand{\ms}{\medspace}
\newcommand{\I}{\mathbb{I}}%for identity matrix
\renewcommand{\l}{\left(}
\renewcommand{\r}{\right)}
\renewcommand{\a}{\alpha}
\newcommand{\p}{\hat{\slashed{P}}}
\newcommand{\s}{\sigma}
\renewcommand{\P}{\hat{P}}
\newcommand{\A}{\hat{A}}
\begin{document}
\begin{multline}
(p_0+\hat{p}_x)\qty[u_1(z)e^{\frac{i}{\hbar}xp_x}\qty(Ae^{\frac{i}{\hbar}yp_y}+A'e^{-\frac{i}{\hbar}yp_y})] & + i\hat{p}_y\qty[u_1(z) e^{\frac{i}{\hbar}xp_x}\qty(Ae^{\frac{i}{\hbar}yp_y}+A'e^{-\frac{i}{\hbar}yp_y} )]& =\ms\xi\qty[\ms u_2(z)e^{\frac{i}{\hbar}xp_x}\qty(Ae^{\frac{i}{\hbar}yp_y} + A'e^{-\frac{i}{\hbar}yp_y})]&\quad-i\hbar\partial_z\qty[u_2(z)e^{\frac{i}{\hbar}xp_x}\qty(Ae^{\frac{i}{\hbar}yp_y}+A'e^{-\frac{i}{\hbar}yp_y})]
\end{multline}
\end{document}