-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathluametaplain.ini
40 lines (38 loc) · 1.08 KB
/
luametaplain.ini
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
% tex-ini-files 2016-04-15: luatex.ini
% Karl Berry, originally written 2008. Public domain.
% PDF output by default.
% Must be done first (as needs to 'tidy up')
\input luametatexconfig.tex
% Activate primitives
\input luatexiniconfig.tex
\begingroup
% load-unicode-data needs \eTeXversion
\catcode`\{=1
\catcode`\}=2
\global\chardef\eTeXversion=2
\global\def\eTeXrevision{.2}
\directlua{unhook_expl()}
\global\let\Ulmtxmathaccent\mathaccent
\global\expandafter\let\expandafter\mathaccent\directlua{
token.put_next(token.new(0, token.command_id'math_accent'))
}
\endgroup
\input load-unicode-data.tex
\input etex.src
\directlua{initialize_pdf_toks()}%
%
\expanded {\def \noexpand \newlanguage #1\expandafter}\expandafter {%
\newlanguage{#1}%
\directlua{language.new(tex.count.allocationnumber)}%
}%
%
\expanded {\def \noexpand \uselanguage #1\expandafter}\expandafter {%
\expanded {%
\noexpand \ifcsname lang@#1\endcsname
\noexpand \directlua {lang.new(\noexpand\number\noexpand\lastnamedcs)}%
\noexpand \fi
\expandafter
}%
\uselanguage{#1}%
}%
\dump