]> mj.ucw.cz Git - ucwmac.git/blob - test.tex
2a12dfbaa86f50c9202c83b9e399c7a86bda91b5
[ucwmac.git] / test.tex
1 \input ucwmac2.tex
2 \ucwmodule{ofs}
3 \ucwmodule{verb}
4 \ucwmodule{algo}
5
6 \showfonts
7
8 \twelvepoint
9
10 \pageunderlay{\placeat{0pt}{0pt}{\crosshair{10pt}}}
11
12 \def\hd#1{\bigskip\leftline{\bf #1}\medskip}
13
14 \hd{Box placement: ordinary word, vbox, vtop, vhang, vhanglines}
15
16 \def\brum{\hbox{Brum}}
17 \def\brums{\brum\brum\brum}
18
19 \noindent
20 \placeat{0pt}{0pt}{\vlap{\hbox to 0.5\hsize{\hrulefill}}}%
21 \placeat{0pt}{0pt}{\crosshair{10pt}}%
22 \brum{}
23 \vbox{\brums}
24 \vtop{\brums}
25 \vhang{\brums}
26 \vhanglines{\brums}
27
28 \hd{Itemization}
29
30 \noindent An~itemized list:
31
32 \list{(g)}
33 \:primo
34 \:secundo
35 \:tertio
36 \endlist
37
38 \itemize\ibull
39 \:It is an {\I important and popular fact} that things are not always what
40 they seem.  For instance, on the planet Earth, man had always assumed
41 that he was more intelligent than dolphins because he had achieved so
42 much -- the wheel, {\colorlocal\rgb{1 0 0}New York}, wars and so on -- whilst all the dolphins
43 had ever done was muck about in the water having a good time.  But
44 conversely, the \colorpush\rgb{0 0 1}dolphins\colorpop{} had always believed that they were far more
45 intelligent than man -- for precisely the same reasons.
46 \:Curiously enough, the dolphins had long known of the impending
47 destruction of the of the planet Earth and had made many attempts to
48 alert mankind to the danger; but most of their communications were
49 misinterpreted\dots{} --- Douglas Addams: HHG
50 \:Third:
51         \itemize\istar
52         \:Primus
53         \: Secundus     %% are spaces eaten correctly?
54         \:Tertius
55         \:Graecus:
56                 \numlist\ngreek
57                 \:alpha
58                 \:beta
59                 \: gamma
60                 \endlist
61         \endlist
62 \:Fourth
63 \endlist
64
65 \hd{Inline verbatim}
66
67 \inlineverbon
68 Lo and behold: |a quick brown fox| {\showspacestrue |jumps over  the lazy dog|} |!@#$%^&*()\_|
69
70 \inlineverboff
71 When turned off, vertical lines work as usually: $|a-b| \ge 0$.
72
73 Delimited verbatim: \verb@abracadabra@ or \verb|brekeke|.
74
75 \hd{Block verbatim}
76
77 \noindent Pre-verbatim
78 \showspacestrue
79 \verbatim{
80 abracadabra {!@#$%^&*()\_}
81 1       tab
82 12      tab
83 123     tab
84 1234    tab
85 12345   tab
86 123456  tab
87 1234567 tab
88 12345678        tab     tab
89 123456789       tab45678        tab
90 123456789       tab45678         tab&space
91 123456789               tabtab
92
93 123456789               tabtab
94 }
95 \noindent Post-verbatim
96
97 %\verbinput{ucwmac.tex}
98
99 \hd{Font selection}
100
101 {\bo non-extended bold}
102
103 {\csc Caps And Small Caps}
104
105 ${\tt x}\in\fam\bbfam R$
106
107 The set{\settextsize{11}text}size macro does not strew spaces.
108
109 {\tt Typewriter {\it italic} {\sl slanted.}}
110
111 \hd{Algorithms}
112
113 \algo{Factorial}\algalias{calculate a~factorial}
114 \algin A~non-negative integer~$n$
115 \:If $n\ge 1$:  \cmt{Test if something}
116 \::Return $n$
117 \:Else:
118 \::Return $n \cdot \alg{Factorial}(n-1)$
119 \algout The factorial of~$n$
120 \endalgo
121
122 \bye