luatex-plain.tex /size: 1534 b    last modification: 2020-07-01 14:35
1%D \module
2%D   [       file=luatex-plain,
3%D        version=2009.12.01,
4%D          title=\LUATEX\ Macros,
5%D       subtitle=Plain Format,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9
10\input plain
11
12\directlua {tex.enableprimitives('', tex.extraprimitives())}
13
14% We assume that pdf is used.
15
16\ifdefined\pdfextension
17    \input luatex-pdf \relax
18\fi
19
20\outputmode 1
21
22% \outputmode 0 \magnification\magstep5
23
24% We set the page dimensions because otherwise the backend does weird things
25% when we have for instance this on a line of its own:
26%
27%   \hbox to 100cm {\hss wide indeed\hss}
28%
29% The page dimension calculation is a fuzzy one as there are some compensations
30% for the \hoffset and \voffset and such. I remember long discussions and much
31% trial and error in figuring this out during pdftex development times. Where
32% a dvi driver will project on a papersize (and thereby clip) the pdf backend
33% has to deal with the lack of a page concept on tex by some guessing. Normally
34% a macro package will set the dimensions to something reasonable anyway.
35
36\pagewidth   8.5truein
37\pageheight 11.0truein
38
39% We load some code at runtime:
40
41\everyjob \expandafter {%
42    \the\everyjob
43    \input {luatex-basics}%
44    \input {luatex-fonts}%
45    \input {luatex-math}%
46    \input {luatex-languages}%
47    \input {luatex-mplib}%
48    \input {luatex-gadgets}%
49}
50
51% We also patch the version number:
52
53\edef\fmtversion{\fmtversion+luatex}
54
55\automatichyphenmode=1
56
57\dump
58