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