LaTeX如何插入算法
1、首先引入几个需要用到的包\usepackage{algorithm} %format of the algorithm\usepackage{algorithmic} %format of the algorithm\usepackage{multirow} %multirow for format of table\usepackage{amsmath}\usepackage{xcolor}

3、\renewcommand{\algorithmicrequire}{\textbf{Input:}}\renewcommand{\algorithmicensure}{\textbf{Output:}}

5、\ENSURE Something... %输出结果(此处的ENSURE默认关键字为Ensure在上面已自定义为Output)% if-th髫潋啜缅en-else\IF{some condition is true}\STATE do some processing\ELSIF{some other condition is true}\STATE do some different processing\ELSE\STATE do the default actions\ENDIF% for loop\FOR{$i=0$ to $10$}\STATE carry out some processing


声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:73
阅读量:44
阅读量:63
阅读量:60
阅读量:94