]> mj.ucw.cz Git - ucwmac.git/blobdiff - test.tex
Makefile: Compile tests twice to get references right
[ucwmac.git] / test.tex
index 6859be8c8c7ae48c347a16631eda28282b18fa9a..42ffd775b416c83b312e2a8396c718047949eaba 100644 (file)
--- a/test.tex
+++ b/test.tex
@@ -1,6 +1,7 @@
 \input ucwmac.tex
 \input ucw-ofs.tex
 \input ucw-verb.tex
+\input ucw-algo.tex
 
 \showfonts
 
@@ -29,7 +30,7 @@
 \noindent An~itemized list:
 
 \itemize\ibull
-\:It is an important and popular fact that things are not always what
+\:It is an {\I important and popular fact} that things are not always what
 they seem.  For instance, on the planet Earth, man had always assumed
 that he was more intelligent than dolphins because he had achieved so
 much -- the wheel, New York, wars and so on -- whilst all the dolphins
@@ -95,11 +96,21 @@ abracadabra {!@#$%^&*()\_}
 
 {\csc Caps And Small Caps}
 
-\loadmathfam \ttfam [/cmtt\fotenc]%
 ${\tt x}\in\fam\bbfam R$
 
 The set{\settextsize{11}text}size macro does not strew spaces.
 
 {\tt Typewriter {\it italic} {\sl slanted.}}
 
+\hd{Algorithms}
+
+\algo{Factorial}\algalias{calculate a~factorial}
+\algin A~non-negative integer~$n$
+\:If $n\ge 1$:  \cmt{Test if something}
+\::Return $n$
+\:Else:
+\::Return $n \cdot \alg{Factorial}(n-1)$
+\algout The factorial of~$n$
+\endalgo
+
 \bye