]>
gitweb.michael.orlitzky.com - mjotex.git/blob - mjo-algorithm.tex
2 % Good looking algorithm environments.
4 \ifx\havemjoalgorithm\undefined
5 \def\havemjoalgorithm{1}
8 % algorithmicx, for the, uh, algorithms.
9 \usepackage{algpseudocode
}
11 % Rename ``require'' and ``ensure'' to ``input'' and ``output''
13 \renewcommand{\algorithmicrequire}{\textbf{Input:
}}
14 \renewcommand{\algorithmicensure}{\textbf{Output:
}}
16 % This just gives us the floating ``algorithm'' environment.
17 \usepackage{algorithm
}
19 % Use "//" for comments instead of the default.
20 \algrenewcommand{\algorithmiccomment}[1]{/\!/
{#1}}