]> gitweb.michael.orlitzky.com - mjotex.git/blob - mjo-algorithm.tex
Use C99-style left-aligned double front-slashes for algorithm comments.
[mjotex.git] / mjo-algorithm.tex
1 %
2 % Good looking algorithm environments.
3 %
4
5 % algorithmicx, for the, uh, algorithms.
6 \usepackage{algpseudocode}
7
8 % Rename ``require'' and ``ensure'' to ``input'' and ``output''
9 % respectively.
10 \renewcommand{\algorithmicrequire}{\textbf{Input:}}
11 \renewcommand{\algorithmicensure}{\textbf{Output:}}
12
13 % This just gives us the floating ``algorithm'' environment.
14 \usepackage{algorithm}
15
16 \algrenewcommand{\algorithmiccomment}[1]{/\!/ {#1}}