]> mj.ucw.cz Git - ucwmac.git/blob - ucw-luacsplain.ini
ucw-ref: Fixed bug in \pageid
[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 %% WARNING: This is experimental. We currently depend on internals of csplain
7 %% and also on various packages related to LuaTeX, which tend to be rapidly
8 %% changing.
9 %%
10 %% Written by Martin Mareš <mj@ucw.cz> in 2017 and placed into public domain
11
12 \catcode`\{=1 \catcode`\}=2  \catcode`\#=6  \catcode9=10
13
14 \input luatexiniconfig.tex              % Enable LuaTeX primitives
15
16 % We will skip font section of plain.tex, which sets up CM fonts.
17 % Later, we will load Unicode LM fonts instead.
18 % This hack is inspired by luaplain.ini.
19 \let\orifont=\font
20 \long\def\font#1\ttfam=\tentt{}
21 \let\rm=\relax \let\tenex=\relax
22 \def\mit{\fam1 } \def\cal{\fam2 }
23 \def\it{\fam\itfam\tenit} \def\sl{\fam\slfam\tensl}
24 \def\bf{\fam\bffam\tenbf} \def\tt{\fam\ttfam\tentt}
25 \def\oldstyle{\fam1 \the\textfont1 }
26
27 % Disarm \outer
28 \let\outer=\relax
29
30 \input etex.src                         % ε-TeX macros (includes plain.tex)
31
32 % Bring \font back and allocate font families
33 \let\font=\orifont
34 \let\orifont=\undefined
35 \newfam\itfam
36 \newfam\slfam
37 \newfam\bffam
38 \newfam\ttfam
39
40 \input luatex-unicode-letters.tex       % Set properties of Unicode characters
41 % \input ltluatex.tex                   % LuaTeX support for plain TeX
42 \input luatex85.sty                     % Backward compatibility with pdfTeX
43 \input pdftexconfig.tex                 % Initialize PDF output parameters
44 \input pdftexmagfix.tex                 % Fix \magnification
45 \input plaina4.tex                      % Set paper size to A4
46 \input ucode.tex                        % \uv and similar macros for Czech typesetting
47 % \input luaotfload.sty                 % OTF loader
48
49 % Ask csplain to load LM fonts
50 % (currently disabled, because it is broken in some versions; use ucw-luaofs.tex instead)
51 % \def\fontfeatures{mode=base;script=latn;+tlig}
52 % \let\luafonts=\relax                  % Avoid inclusion of csplain's luafonts.tex
53 % \input lmfonts.tex
54 % \let\fontfeatures=\undefined
55
56 \everyjob={%
57    \message{Loaded ucw-luacsplain 2018-06}%
58    % These packages do not survive dumping, defer loading to \everyjob
59    \input ltluatex.tex
60    \input ucwmac2.tex
61    \input ucw-luaofs.tex
62 }
63
64 \dump