]> gitweb.michael.orlitzky.com - mjotex.git/blobdiff - mjo-algorithm.tex
Rename mjo-algorithms to mjo-algorithm for consistency.
[mjotex.git] / mjo-algorithm.tex
diff --git a/mjo-algorithm.tex b/mjo-algorithm.tex
new file mode 100644 (file)
index 0000000..77dcdb6
--- /dev/null
@@ -0,0 +1,14 @@
+%
+% Good looking algorithm environments.
+%
+
+% algorithmicx, for the, uh, algorithms.
+\usepackage{algpseudocode}
+
+% Rename ``require'' and ``ensure'' to ``input'' and ``output''
+% respectively.
+\renewcommand{\algorithmicrequire}{\textbf{Input:}}
+\renewcommand{\algorithmicensure}{\textbf{Output:}}
+
+% This just gives us the floating ``algorithm'' environment.
+\usepackage{algorithm}