X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjotex.git;a=blobdiff_plain;f=mjo-algorithm.tex;h=55d4831de9571d7cf413badcd175b7e728dfb883;hp=77dcdb6e76961a938f465d70183522722ed16b96;hb=HEAD;hpb=42aee3fbd2813eee5233b97d7c92c25bdf83ba0b diff --git a/mjo-algorithm.tex b/mjo-algorithm.tex index 77dcdb6..55d4831 100644 --- a/mjo-algorithm.tex +++ b/mjo-algorithm.tex @@ -1,6 +1,9 @@ % % Good looking algorithm environments. % +\ifx\havemjoalgorithm\undefined +\def\havemjoalgorithm{1} + % algorithmicx, for the, uh, algorithms. \usepackage{algpseudocode} @@ -12,3 +15,9 @@ % This just gives us the floating ``algorithm'' environment. \usepackage{algorithm} + +% Use "//" for comments instead of the default. +\algrenewcommand{\algorithmiccomment}[1]{/\!/ {#1}} + + +\fi