Tips on LaTeX

Hopefully you will find them useful! Check back later. More will be added on over time.

Useful packages

Algorithm Two packages provide many necessary functionalities to write a nice-looking pseudocode. There is a known problem in the Algorithm package. You can not use \COMMENT as the first statement of any closed structure, such as \IF..\ENDIF, \FOR..\ENDFOR, \FORALL..\ENDFORALL, \WHILE..\ENDWHILE, and \begin{algorithmic}..\end{algorithmic}. An error "LaTeX Error: Something's wrong--perhaps a missing \item" will be reported (It does not make much sense). There are two workaounds:
  1. Use \STATE \COMMENT{<text>}.
  2. Use the optional arguments in those closed structures. For example, \WHILE[<comment-text>]{<condition>}

Other packages can be found on this: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=algorithms.

Related presentation classes

Comments and suggestions are welcome! Email me at .