latex使用algorithmic包

algorithmic下载地址:http://www.ctan.org/pkg/algorithms

下载后cd进入到algorithms文件夹,终端执行

latex algorithms.ins

将生成algorithmic.sty文件,将此文件复制到要使用algorithmic包的.tex文件目录即可。

usepackage{algorithmic}

egin{document}

egin{algorithmic}
  STATE $S leftarrow 0$
end{algorithmic}

end{document}

原文地址:https://www.cnblogs.com/sparkzxw/p/6672860.html