为什么我在以下环境中会出现“错误:额外的},或者忘记了\right。” align*
?
\begin{align*}
\int\left[\left(\der{E_z}{y}-\der{E_y}{z}-\mu\der{\alpha}{t}\right)\alpha&+\left(\der{E_x}{z}-\der{E_x}{x}-\mu\der{\beta}{t}\right)\beta\\
&+\left(\der{E_y}{x}-\der{E_x}{y}-\mu\der{\gamma}{t}\right)\gamma\left.\vphantom{\left(\der{E_y}{x}}\right]d\omega=0.
\end{align*}
谢谢
答案1
这是一个multline*
应该使用的情况;无论如何,你不能让\left
其中\right
一条线路不平衡。
\documentclass{article}
\usepackage{amsmath}
\newcommand{\der}[2]{\frac{\partial #1}{\partial #2}}
\begin{document}
\begin{multline*}
\int\biggl[
\left(\der{E_z}{y}-\der{E_y}{z}-\mu\der{\alpha}{t}\right)\alpha
+\left(\der{E_x}{z}-\der{E_x}{x}-\mu\der{\beta}{t}\right)\beta +{}\\
\left(\der{E_y}{x}-\der{E_x}{y}-\mu\der{\gamma}{t}\right)\gamma
\biggr]\,d\omega=0.
\end{multline*}
\end{document}
(我猜测了 的定义\der
。)
答案2
每一个都\left
需要匹配一个对应的\right
:
\begin{align*}
\int\left[\left(\der{E_z}{y}-\der{E_y}{z}-\mu\der{\alpha}{t}\right)\alpha\right.&+\left(\der{E_x}{z}-\der{E_x}{x}-\mu\der{\beta}{t}\right)\beta\\
&+\left(\der{E_y}{x}-\der{E_x}{y}-\mu\der{\gamma}{t}\right)\gamma\left.\vphantom{\left(\der{E_y}{x}\right)}\right]d\omega=0.
\end{align*}