summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/context/luatex/luatex-plain.tex
blob: 0a806c76ff13cdab5618f83ba852d07907e95718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
%D \module
%D   [       file=luatex-plain,
%D        version=2009.12.01,
%D          title=\LUATEX\ Macros,
%D       subtitle=Plain Format,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]

\input plain

\directlua {tex.enableprimitives('', tex.extraprimitives())}

% We assume that pdf is used.

\ifdefined\pdfextension
    \input luatex-pdf \relax
\fi

\outputmode 1

% \outputmode 0 \magnification\magstep5

% We set the page dimensions because otherwise the backend does weird things
% when we have for instance this on a line of its own:
%
%   \hbox to 100cm {\hss wide indeed\hss}
%
% The page dimension calculation is a fuzzy one as there are some compensations
% for the \hoffset and \voffset and such. I remember long discussions and much
% trial and error in figuring this out during pdftex development times. Where
% a dvi driver will project on a papersize (and thereby clip) the pdf backend
% has to deal with the lack of a page concept on tex by some guessing. Normally
% a macro package will set the dimensions to something reasonable anyway.

\pagewidth   8.5truein
\pageheight 11.0truein

% We load some code at runtime:

\everyjob \expandafter {%
    \the\everyjob
    \input {luatex-basics}%
    \input {luatex-fonts}%
    \input {luatex-math}%
    \input {luatex-languages}%
    \input {luatex-mplib}%
    \input {luatex-gadgets}%
}

% We also patch the version number:

\edef\fmtversion{\fmtversion+luatex}

\dump