bachotex-2013-luatex.tex /size: 4788 b    last modification: 2020-07-01 14:35
1% \enablemode[print]
2
3\usemodule[pre-stepwise,present-tiles,abr-02]
4
5\definecolor[maincolor] [darkgray]
6\definecolor[othercolor][g=.3,b=.3]
7
8% \setupinteractionscreen
9%   [option=max]
10
11\setupbodyfont[opendyslexic,ss]
12
13\startdocument
14  [title={Lua\TeX\ for dummies\\\\(so you can still leave)},
15   subtitle={Hans Hagen\\EuroBacho\TeX\\May 2013}]
16
17\StartSteps
18
19\starttopic[title={The \TEX\ perspective}]
20
21    \startitemize
22        \startitem it started out as \PDFTEX \FlushStep \stopitem
23        \startitem then got merged with \ALEPH \FlushStep \stopitem
24        \startitem but we left out the ugly bits of both \FlushStep \stopitem
25        \startitem it's exclusively \UTF-8 \FlushStep \stopitem
26        \startitem it's math machinery got extended with \OPENTYPE\ like features \FlushStep \stopitem
27        \startitem there are no fundamental extensions as it's impossible to agree in them \FlushStep \stopitem
28    \stopitemize
29
30\stoptopic
31
32\StopSteps
33
34\StartSteps
35
36\starttopic[title={The \LUA\ perspective}]
37
38    \startitemize
39        \startitem it just a \LUA\ engine \FlushStep \stopitem
40        \startitem it has some extra libraries on board \FlushStep \stopitem
41        \startitem you don't even have to use \TEX \FlushStep \stopitem
42        \startitem but there are hooks into the \TEX\ machinery \FlushStep \stopitem
43        \startitem and we can go further by loading libraries \FlushStep \stopitem
44    \stopitemize
45
46\stoptopic
47
48\StopSteps
49
50\StartSteps
51
52\starttopic[title={The hybrid perspective}]
53
54    \startitemize
55        \startitem we can extend \TEX\ using \LUA \FlushStep \stopitem
56        \startitem eventually everything will be opened up \FlushStep \stopitem
57        \startitem users never have to see any of that \FlushStep \stopitem
58        \startitem they can simply use \LUA\ for scripting and print results to \TEX \FlushStep \stopitem
59        \startitem but developers can go deep into the \TEX\ internals and mess around \FlushStep \stopitem
60        \startitem the average user will just depend on what a macro package will provide \FlushStep \stopitem
61    \stopitemize
62
63\stoptopic
64
65\StopSteps
66
67\StartSteps
68
69\starttopic[title={The complications}]
70
71    \startitemize
72        \startitem normally one wants a bit of infrastructure (management) \FlushStep \stopitem
73        \startitem and maybe a special user space, hidden from core extensions \FlushStep \stopitem
74        \startitem but history has tought that users can't be controlled that way \FlushStep \stopitem
75        \startitem so we stick to just providing the mechanisms \FlushStep \stopitem
76    \stopitemize
77
78\stoptopic
79
80\StopSteps
81
82\StartSteps
83
84\starttopic[title={The future}]
85
86    \startitemize
87        \startitem there are a couple of generic modules (derived from \CONTEXT) \FlushStep \stopitem
88        \startitem in principle I can make more generic modules \FlushStep \stopitem
89        \startitem that's after all the idea behind the (to be) \METATEX\ variant \FlushStep \stopitem
90        \startitem but does it really make sense as one still needs substantial subsystems \FlushStep \stopitem
91    \stopitemize
92
93\stoptopic
94
95\StopSteps
96
97\StartSteps
98
99\starttopic[title={This workshop}]
100
101    \startitemize
102        \startitem just using \LUA: it's what most users will do \FlushStep \stopitem
103        \startitem showing the hooks: it's what developers want to use \FlushStep \stopitem
104        \startitem answering questions: it's probably the most I can do \FlushStep \stopitem
105    \stopitemize
106
107\stoptopic
108
109\StopSteps
110
111\StartSteps
112
113\starttopic[title={Just plain}]
114
115    We need to make a format, like:
116
117    \starttyping
118    luatex --ini plain \dump
119    \stoptyping
120
121    \FlushStep
122
123    and can then run files with:
124
125    \starttyping
126    luatex --fmt=plain somefile.tex
127    \stoptyping
128
129    \FlushStep
130
131    This is a another way:
132
133    \starttyping
134    mtxrun --script plain --make --texformat=plain
135    \stoptyping
136
137    \FlushStep
138
139    with:
140
141    \starttyping
142    mtxrun --script plain --texformat=plain somefile.tex
143    \stoptyping
144
145    \FlushStep
146
147\stoptopic
148
149\StopSteps
150
151\StartSteps
152
153\starttopic[title={A bit less plain}]
154
155    In order to profit from \OPENTYPE\ fonts:
156
157    \starttyping
158    mtxrun --script plain --make
159    \stoptyping
160
161    \FlushStep
162
163    with:
164
165    \starttyping
166    mtxrun --script plain somefile.tex
167    \stoptyping
168
169    \FlushStep
170
171    On windows you can copy \type {mtxrun.exe} to \type {plain.exe} and stick to:
172
173    \starttyping
174    plain --make
175    \stoptyping
176
177    \FlushStep
178
179    with:
180
181    \starttyping
182    plain somefile.tex
183    \stoptyping
184
185\stoptopic
186
187\StopSteps
188
189\StartSteps
190
191\starttopic[title={Hardly plain}]
192
193    If you can live with a bit less plain:
194
195    \starttyping
196    context yourfile.tex
197    \stoptyping
198
199    \FlushStep
200
201\stoptopic
202
203\StopSteps
204
205\stopdocument
206