X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=test.tex;h=88536a1946c86b414685634819839e6dcd9d24f1;hb=refs%2Ftags%2Fv2.0.1;hp=9d8ad856a0532ecf809404e77d6f3600d7358dfd;hpb=9bea663baa0c3e4bd22eccfb8756891f9c8ba2c8;p=ucwmac.git diff --git a/test.tex b/test.tex index 9d8ad85..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 @@ -57,8 +71,14 @@ misinterpreted\dots{} --- Douglas Addams: HHG \hd{Inline verbatim} +\inlineverbon Lo and behold: |a quick brown fox| {\showspacestrue |jumps over the lazy dog|} |!@#$%^&*()\_| +\inlineverboff +When turned off, vertical lines work as usually: $|a-b| \ge 0$. + +Delimited verbatim: \verb@abracadabra@ or \verb|brekeke|. + \hd{Block verbatim} \noindent Pre-verbatim @@ -89,6 +109,21 @@ abracadabra {!@#$%^&*()\_} {\csc Caps And Small Caps} -$x\in\fam\bbfam R$ +${\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