使用 overleaf 时,我的 latex 代码中有 3-4 个部分出现“未定义的控制序列”错误。我在序言中加载了 amsmath。我无法理解原因是什么或如何修复它。我分享了错误指向的代码段:
第一次出现:
\begin{equation*} \small
n(\ell)= \frac{k\log(\ell)}{\max\limit_{(\gamma,q_{sp})}
h\Big(E\Big[e^{-\frac{\gamma}{V \sigma^{2}P+\sigma_{w}^{2}}}\Big]\Big)-
E\Big[h\Big(e^{-\frac{\gamma}{V \sigma^{2}P+\sigma_{w}^{2}}}\Big)\Big]}
\end{equation*} \normalsize where $E(.)$ denotes the expectation for $V \sim
\operatorname{Bin}(k, q_{sp})$, $q_{sp}$ is the probability $\gamma$ denotes threshold.
第二次出现:
\begin{equation}
n(\ell) \geq \frac{k\log(\ell)}{\max\limit_{(\gamma,q_{sp})}h\Big(E\Big[e^{-
\frac{\gamma}{V \sigma^{2}P+\sigma_{w}^{2}}}\Big]\Big)-E\Big[h\Big(e^{-
\frac{\gamma}{V \sigma^{2}P+\sigma_{w}^{2}}}\Big)\Big]}.\label{equ}
\end{equation}
第三次出现:
\begin{equation}
C=\max\limit_{(\gamma,\textbf{q})} I(\Tilde{\textbf{X}};Z) \label{sumcap}
\end{equation} where $\textbf{q} =\{q_{a_1} \ldots q_{a_k}\}$ are sampling
probabilities of $\{a_1 \ldots a_k\}$, i.e., $X^{a_i} \sim Bern(q_{a_i})$
such that $X^{a_i}\ind X^{a_j} $ $\forall i,j \in \{1,\ldots k\}; i\neq j$.
我觉得一切都正常。但不知何故,情况却并非如此。有人能帮我解决这个问题吗?
答案1
第一个错误的完整错误消息是:
<argument> \max \limit
_{(\gamma ,q_{sp})} h\Big (E\Big [e^{-\frac {\gamma }...
l.7 ...{V \sigma^{2}P+\sigma_{w}^{2}}}\Big)\Big]}
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
注意:“顶行末尾的控制序列...”所以它指向了\limit
,可能应该是\lim
。