Closed Stevenhork closed 3 years ago
抄代码要抄全,不要只抄一半
\usepackage{algorithm,algorithmic}
抄代码要抄全,不要只抄一半
\usepackage{algorithm,algorithmic}
作为一个资深面向Ctr+c编程的菜狗,怎么犯如此错误。不是这个原因
提供发行版版本、模板版本、编译方式信息。
\documentclass{fduthesis}
\usepackage{algorithm,algorithmic}
\begin{document}
\begin{algorithm}
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
\begin{algorithmic}[1]
\STATE Initialization:$\left\{ {s_{k,t}^1} \right\},\left\{ {\omega _{k,t}^1} \right\},\lambda _t^1,n \leftarrow 0$
\ENSURE decomposed modes $ \left\{ {{s_k}\left( t \right)} \right\}$, $\left\{ {{\omega _k}\left( t \right)} \right\}$
\end{algorithmic}
\end{algorithm}
\end{document}
在 Overleaf 上的测试也没有问题,版本为 texlive 2020。
fduthesis
没有对算法进行处理,大概率是你的问题。
\renewcommand{\algorithmicrequire}{ \textbf{Input:}} %Use Input in the format of Algorithm \renewcommand{\algorithmicensure}{ \textbf{Output:}} %Use Output in the format of Algorithm