]> mj.ucw.cz Git - ucwmac.git/blob - ucw-luacsplain.ini
Do not redefine LuaTeX's primitive \pagewidth and \pageheight
[ucwmac.git] / ucw-luacsplain.ini
1 %% Czech format for LuaTeX + ucwmac
2 %%
3 %% This is a cousin of Petr Olšák's csplain/luaplain living in LuaTeX land.
4 %% It is based on ε-TeX
5 %%
6 %% Written by Martin Mareš <mj@ucw.cz> in 2017 and placed into public domain
7
8 \catcode`\{=1 \catcode`\}=2  \catcode`\#=6  \catcode9=10
9
10 \input luatexiniconfig.tex              % Enable LuaTeX primitives
11
12 % We will skip font section of plain.tex, which sets up CM fonts.
13 % Later, we will load Unicode LM fonts instead.
14 % This hack is inspired by luaplain.ini.
15 \let\orifont=\font
16 \long\def\font#1\ttfam=\tentt{}
17 \let\rm=\relax \let\tenex=\relax
18 \def\mit{\fam1 } \def\cal{\fam2 }
19 \def\it{\fam\itfam\tenit} \def\sl{\fam\slfam\tensl}
20 \def\bf{\fam\bffam\tenbf} \def\tt{\fam\ttfam\tentt}
21 \def\oldstyle{\fam1 \the\textfont1 }
22
23 % Disarm \outer
24 \let\outer=\relax
25
26 \input etex.src                         % ε-TeX macros (includes plain.tex)
27
28 % Bring \font back
29 \let\font=\orifont
30 \let\orifont=\undefined
31
32 \input luatex-unicode-letters.tex       % Set properties of Unicode characters
33 \input ltluatex.tex                     % LuaTeX support for plain TeX
34 \input luatex85.sty                     % Backward compatibility with pdfTeX
35 \input pdftexconfig.tex                 % Initialize PDF output parameters
36 \input pdftexmagfix.tex                 % Fix \magnification
37 \input plaina4.tex                      % Set paper size to A4
38 \input ucode.tex                        % \uv and similar macros for Czech typesetting
39 \input luaotfload.sty                   % OTF loader
40
41 % Ask csplain to load LM fonts
42 \def\fontfeatures{mode=base;script=latn;+tlig}
43 \let\luafonts=\relax                    % Avoid inclusion of csplain's luafonts.tex
44 \input lmfonts.tex
45 \let\fontfeatures=\undefined
46
47 \everyjob={%
48    \message{Loaded ucw-luacsplain 2017-10}%
49    % Set resolution of bitmap fonts
50    \directlua{kpse.init_prog("luatex", 600, "ljfour")}%
51    % We need to reload the OTF loader
52    \input luaotfload.sty
53 }
54
55 \dump