【发布时间】:2022-11-08 18:14:14
【问题描述】:
我在乳胶中编写了一个算法,如下所示。
\usepackage{algorithm}
\usepackage{algpseudocode}
\begin{algorithm}
\caption{My algorithm}\label{euclid}
...
\State $\vec{cle} \gets $\text{Mean($o1,o2$)}
\If{$\vec{clh[t]}$ is empty}
\State $\vec{clh[t]} \gets $\vec{cle}$
\Else
\State $\vec{$clh[t]} \gets \text{MeanCalc}($\vec{$cle}*0.1,clh[t]*0.5)$
\EndIf
\EndIf
我的问题是,在 If 语句之后的行中,$\vec{cle}$ 没有出现在箭头之后。在 else 之后, \State $\vec{$clh[t]} 也不会出现在箭头之前。如果有人可以帮助我,我将不胜感激
【问题讨论】:
-
请提供您的编译输出...我想验证一些东西。