Debian Codegraph @

texmf-dist/tex/plain/zztex/zzplain.tex

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %
3 %
4 % Module: ZzTeX Plain TeX Compatibility
5 %
6 % Synopsis: This module contains definitions necessary for
7 % compatibility with Plain TeX. The only goal is to
8 % allow ZzTeX to run on top of Plain TeX.
9 %
10 % Author: Paul C. Anagnostopoulos
11 % Created: 24 July 1991
12 %
13 % Copyright 1989--2020 by Paul C. Anagnostopoulos
14 % under The MIT License (opensource.org/licenses/MIT)
15 %
16 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
17
18 \if \definedp{\dospecials}
19 \let \znext = \relax
20 \else
21 \let \znext = \endinput
22 \fi
23 \znext
24
25 \def \zplainerror {%
26 \error{plaintex}{Cannot use this Plain TeX feature in ZzTeX}}
27
28 % Definitions
29 % -----------
30
31
32 \catcode`\@ = \catletter
33 \zremovePlaindef \p@
34 \definedimen{\p@}{1pt}
35 \zremovePlaindef \z@
36 \definedimen{\z@}{0pt}
37 \zremovePlaindef \z@skip
38 \defineskip{\z@skip}{0pt plus 0pt minus 0pt}
39 \catcode`\@ = \catactive
40
41 \let \beginsection = \zplainerror
42
43 \let \bye = \zplainerror
44
45 \let \eject = \zplainerror
46
47 \let \leavevmode = \ensurepar
48
49 \let \normalbottom = \zplainerror
50
51 \let \raggedright = \zplainerror
52
53 \let \supereject = \zplainerror
54
55 \let \ttraggedright = \zplainerror
56
57 % Eliminate Fonts
58 % --------- -----
59
60 \tcounta = 0
61 \loop
62 \zclearfam{\tcounta}%
63 \increment \tcounta
64 \if \lssp{\tcounta}{16}\repeat
65
66 \let \rm = \relax
67 \let \mit = \relax
68 \let \it = \relax
69 \let \sl = \undefined \let \slfam = \undefined
70 \let \bf = \relax
71 \let \tt = \relax