\input ucwmac.tex
\input ucw-ofs.tex
\input ucw-verb.tex
+\input ucw-algo.tex
\showfonts
{\tt Typewriter {\it italic} {\sl slanted.}}
+\hd{Algorithms}
+
+\algo{Factorial}\algalias{calculate a~factorial}
+\algin A~non-negative integer~$n$
+\:If $n\ge 1$:
+\::Return $n$
+\:Else:
+\::Return $n \cdot \alg{Factorial}(n-1)$
+\algout The factorial of~$n$
+\endalgo
+
\bye
\pdfpkresolution=600 % Provide a reasonable default
\fi\fi
+%%% Auxiliary macros %%%
+
+% Append #2 to the definition of #1
+\long\def\addto#1#2{\expandafter\def\expandafter#1\expandafter{#1#2}}
+
%%% Page size and margins %%%
% If you modify these registers, call \setuppage afterwards