我一直试图按照以下方式拆分方程式,但似乎不起作用。我收到“!缺少}插入”错误。有人可以帮忙吗?谢谢
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
P_{out} &=P\big[\mathcal{I} < R \big]\nonumber\\
\begin{split}
P_{out} &=P\bigg[\frac{1}{2}\log_2{{\bigg[}1+ \\
&\quad \gamma p_s g_{sd}+\max_r\frac{{\gamma}^2(p_s p_r g_{sr} g_{rd}) }{{\gamma}(p_s g_{sr} + p_r g_{rd})+1}{\bigg]}}<R\bigg] \nonumber \\
\end{split}\\
&=P\bigg[ p_s g_{sd} +\max_r\frac{{\gamma}^2(p_s p_r g_{sr} g_{rd})}{{\gamma}(p_s g_{sr} + p_r g_{rd})+1} < \frac{2^{2R}-1}{\gamma} \bigg] \nonumber\\
P_{out} &=P\bigg[ \max_r\frac{{\gamma}^2(p_s p_r g_{sr} g_{rd})}{{\gamma}(p_s g_{sr} + p_r g_{rd})+1} < \rho - p_s g_{sd} \bigg}
\end{align}
\end{document}
答案1
我对源代码进行了一些重新格式化,并将不正确的部分替换\bigg}
为\biggr]
。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
P_{\text{out}} &= P\bigr[\mathcal{I} < R \bigr]\nonumber\\
P_{\text{out}} &= P \biggl[
\frac{1}{2} \log_2 \biggl( 1+ \gamma p_s g_{sd} + \max_r\frac{\gamma^2(p_s p_r g_{sr} g_{rd}) }{\gamma(p_s g_{sr} + p_r g_{rd})+1} \biggr)
< R
\biggr] \nonumber \\
&= P \biggl[
p_s g_{sd} + \max_r \frac{\gamma^2(p_s p_r g_{sr} g_{rd})}{\gamma(p_s g_{sr} + p_r g_{rd})+1}
< \frac{2^{2R}-1}{\gamma}
\biggr] \nonumber\\
P_{\text{out}} &= P \biggl[
\max_r\frac{\gamma^2(p_s p_r g_{sr} g_{rd})}{\gamma(p_s g_{sr} + p_r g_{rd})+1}
< \rho - p_s g_{sd}
\biggr]
\end{align}
\end{document}
要拆分第二行,请使用aligned
(split
不起作用)。要找出原因,\!
请\begin{aligned}
咨询为什么在“aligned”环境的开头有一个 \, 空格?。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
P_{\text{out}} &= P\bigr[\mathcal{I} < R \bigr]\nonumber\\
P_{\text{out}} &= \!\begin{aligned}[t]
P \biggl[
&\frac{1}{2} \log_2 \biggl( 1+ \gamma p_s g_{sd} \\
&\quad + \max_r\frac{\gamma^2(p_s p_r g_{sr} g_{rd}) }{\gamma(p_s g_{sr} + p_r g_{rd})+1} \biggr)
< R
\biggr]
\end{aligned} \nonumber \\
&= P \biggl[
p_s g_{sd} + \max_r \frac{\gamma^2(p_s p_r g_{sr} g_{rd})}{\gamma(p_s g_{sr} + p_r g_{rd})+1}
< \frac{2^{2R}-1}{\gamma}
\biggr] \nonumber\\
P_{\text{out}} &= P \biggl[
\max_r\frac{\gamma^2(p_s p_r g_{sr} g_{rd})}{\gamma(p_s g_{sr} + p_r g_{rd})+1}
< \rho - p_s g_{sd}
\biggr]
\end{align}
\end{document}