]> mj.ucw.cz Git - ucwmac.git/blob - test.tex
ucw-luacsplain: do not forget to allocate math families
[ucwmac.git] / test.tex
1 \input ucwmac.tex
2 \input ucw-ofs.tex
3 \input ucw-verb.tex
4 \input ucw-algo.tex
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 \itemize\ibull
33 \:It is an {\I important and popular fact} that things are not always what
34 they seem.  For instance, on the planet Earth, man had always assumed
35 that he was more intelligent than dolphins because he had achieved so
36 much -- the wheel, New York, wars and so on -- whilst all the dolphins
37 had ever done was muck about in the water having a good time.  But
38 conversely, the dolphins had always believed that they were far more
39 intelligent than man -- for precisely the same reasons.
40 \:Curiously enough, the dolphins had long known of the impending
41 destruction of the of the planet Earth and had made many attempts to
42 alert mankind to the danger; but most of their communications were
43 misinterpreted\dots{} --- Douglas Addams: HHG
44 \:Third:
45         \itemize\istar
46         \:Primus
47         \: Secundus     %% are spaces eaten correctly?
48         \:Tertius
49         \:Graecus:
50                 \numlist\ngreek
51                 \:alpha
52                 \:beta
53                 \: gamma
54                 \endlist
55         \endlist
56 \:Fourth
57 \endlist
58
59 \hd{Inline verbatim}
60
61 \inlineverbon
62 Lo and behold: |a quick brown fox| {\showspacestrue |jumps over  the lazy dog|} |!@#$%^&*()\_|
63
64 \inlineverboff
65 When turned off, vertical lines work as usually: $|a-b| \ge 0$.
66
67 Delimited verbatim: \verb@abracadabra@ or \verb|brekeke|.
68
69 \hd{Block verbatim}
70
71 \noindent Pre-verbatim
72 \showspacestrue
73 \verbatim{
74 abracadabra {!@#$%^&*()\_}
75 1       tab
76 12      tab
77 123     tab
78 1234    tab
79 12345   tab
80 123456  tab
81 1234567 tab
82 12345678        tab     tab
83 123456789       tab45678        tab
84 123456789       tab45678         tab&space
85 123456789               tabtab
86
87 123456789               tabtab
88 }
89 \noindent Post-verbatim
90
91 %\verbinput{ucwmac.tex}
92
93 \hd{Font selection}
94
95 {\bo non-extended bold}
96
97 {\csc Caps And Small Caps}
98
99 ${\tt x}\in\fam\bbfam R$
100
101 The set{\settextsize{11}text}size macro does not strew spaces.
102
103 {\tt Typewriter {\it italic} {\sl slanted.}}
104
105 \hd{Algorithms}
106
107 \algo{Factorial}\algalias{calculate a~factorial}
108 \algin A~non-negative integer~$n$
109 \:If $n\ge 1$:
110 \::Return $n$
111 \:Else:
112 \::Return $n \cdot \alg{Factorial}(n-1)$
113 \algout The factorial of~$n$
114 \endalgo
115
116 \bye