X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=test.tex;h=5d2ba496422fb9c801fcfbee24d36dafffe80c31;hb=2ca3097c0531c5927dab0303d39e49991c2be047;hp=ad70a84a51962d6906617f73d4596a5f334190c7;hpb=0da2337ea4aed464ff7f7b2a9ec1b811cc057a4d;p=ucwmac.git diff --git a/test.tex b/test.tex index ad70a84..5d2ba49 100644 --- 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 @@ -63,6 +64,8 @@ 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 @@ -93,8 +96,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$: +\::Return $n$ +\:Else: +\::Return $n \cdot \alg{Factorial}(n-1)$ +\algout The factorial of~$n$ +\endalgo + \bye