posts - 195,  comments - 30,  trackbacks - 0

http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode 
Typesetting using the algorithm2e package

The algorithm2e package (first released 1995, latest updated December 2009 according to the v4.01 manual) allows typesetting algorithms with a lot of customization. The package is loaded like

\usepackage[options]{algorithm2e} 

and a simple example, taken from the v4.01 manual, is

\begin{algorithm}[H]
 \SetAlgoLined
 \KwData{this text}
 \KwResult{how to write algorithm with \LaTeX2e }
 initialization\;
 \While{not at end of this document}{
  read current\;
  \eIf{understand}{
   go to next section\;
   current section becomes this one\;
   }{
   go back to the beginning of current section\;
  }
 }
 \caption{How to write algorithms}
\end{algorithm}

which produces Latex-algorithm2e-if-else.png

posted on 2012-10-31 21:30 luis 阅读(1989) 评论(0)  编辑 收藏 引用 所属分类: Latex

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


<2012年10月>
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910

常用链接

留言簿(3)

随笔分类

随笔档案

文章分类

文章档案

友情链接

搜索

  •  

最新评论

阅读排行榜

评论排行榜