]> mj.ucw.cz Git - ucwmac.git/blobdiff - test.tex
Released as v2.0.1
[ucwmac.git] / test.tex
index a542a16b4d151171fda473bc2362b4e2cd812b42..88536a1946c86b414685634819839e6dcd9d24f1 100644 (file)
--- a/test.tex
+++ b/test.tex
@@ -1,6 +1,7 @@
-\input ucwmac.tex
-\input ucw-ofs.tex
-\input ucw-verb.tex
+\input ucwmac2.tex
+\ucwmodule{ofs}
+\ucwmodule{verb}
+\ucwmodule{algo}
 
 \showfonts
 
 
 \noindent An~itemized list:
 
+\list{(g)}
+\:primo
+\:secundo
+\:tertio
+\liststyle{(a)}
+\:quarto
+\liststyle{o}
+\:quinto
+\endlist
+
+\bigskip
+\noindent Backward-compatible lists:
+
 \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
+much -- the wheel, {\colorlocal\rgb{1 0 0}New York}, wars and so on -- whilst all the dolphins
 had ever done was muck about in the water having a good time.  But
-conversely, the dolphins had always believed that they were far more
+conversely, the \colorpush\rgb{0 0 1}dolphins\colorpop{} had always believed that they were far more
 intelligent than man -- for precisely the same reasons.
 \:Curiously enough, the dolphins had long known of the impending
 destruction of the of the planet Earth and had made many attempts to
@@ -95,9 +109,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