\begin{multline}
[H_{s,u}]=\sum_{n=1}^{N}\alpha_{n}\sqrt{g_{t}(\phi_{n},\theta_{n},\theta_{tilt})}\\
\times exp(ik\rho(4\lambda(M-1)/M)\cos(\phi_{n}-\varphi_{s})\sin\theta_{n})\\
\times \sqrt{g_{r}(\varphi_{n},\vartheta_{n})exp(ik\rho(4\lambda(n-1)/M)\cos(\phi_{n}-\varphi_{s})\sin\theta_{n})
\end{multline}
每当我输入这个公式时,它都会出现以下错误
Runaway argument?
[H_{s,u}]=\sum _{n=1}^{N}\alpha _{n}\sqrt {g_{t}(\phi _{n},\theta _{\ETC.
Paragraph ended before \multline was complete.
<to be read again>
\par
请帮助我
答案1
\begin{multline}
[H_{s,u}]=\sum_{n=1}^{N}\alpha_{n}\sqrt{g_{t}(\phi_{n},\theta_{n},\theta_{tilt})}\\
\times exp(ik\rho(4\lambda(M-1)/M)\cos(\phi_{n}-\varphi_{s})\sin\theta_{n})\\
\times \sqrt{g_{r}(\varphi_{n},\vartheta_{n})exp(ik\rho(4\lambda(n-1)/M)\cos(\phi_{n}-\varphi_{s})\sin\theta_{n})
\end{multline}
最后一行缺少一个}
表示平方根的,注意也exp
应该是\exp
。并且tilt
应该是\mathrm{tilt}
答案2
其他一些改进包括使用aligned
嵌套equation
、使用两行和右侧对齐:
\documentclass{article}
\usepackage[showframe]{geometry}
\usepackage{mathtools}
\begin{document}
\begin{equation}
\begin{aligned}
[H_{s,u}]= \sum_{n=1}^{N} \alpha_{n}\sqrt{g_{t}(\phi_{n},\theta_{n},\theta_\mathrm{tilt})}
\times \exp(ik\rho(4\lambda(M-1)/M)\cos(\phi_{n}-\varphi_{s})\sin\theta_{n})\\
\times \sqrt{g_{r}(\varphi_{n},\vartheta_{n})\exp(ik\rho(4\lambda(n-1)/M)\cos(\phi_{n}-\varphi_{s})\sin\theta_{n})}
\end{aligned}
\end{equation}
\end{document}