]> mj.ucw.cz Git - ucwmac.git/blobdiff - test.tex
ucw-ref: Fixed bug in \pageid
[ucwmac.git] / test.tex
index 9d8ad856a0532ecf809404e77d6f3600d7358dfd..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
 
 
 \showfonts
 
 
 \noindent An~itemized list:
 
 
 \noindent An~itemized list:
 
+\list{(g)}
+\:primo
+\:secundo
+\:tertio
+\liststyle{(a)}
+\:quarto
+\liststyle{o}
+\:quinto
+\endlist
+
+\bigskip
+\noindent Backward-compatible lists:
+
 \itemize\ibull
 \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
 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
 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
 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}
 
 
 \hd{Inline verbatim}
 
+\inlineverbon
 Lo and behold: |a quick brown fox| {\showspacestrue |jumps over  the lazy dog|} |!@#$%^&*()\_|
 
 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
 \hd{Block verbatim}
 
 \noindent Pre-verbatim
@@ -89,6 +109,21 @@ abracadabra {!@#$%^&*()\_}
 
 {\csc Caps And Small Caps}
 
 
 {\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
 
 \bye