X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=test.tex;h=88536a1946c86b414685634819839e6dcd9d24f1;hb=refs%2Ftags%2Fv2.0.1;hp=a542a16b4d151171fda473bc2362b4e2cd812b42;hpb=7666f16bb911fcaebcf6c3ead79da739c97fe532;p=ucwmac.git diff --git a/test.tex b/test.tex index a542a16..88536a1 100644 --- 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 @@ -28,13 +29,26 @@ \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