1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18\usemodule [ present general ]
19
20\startmodule [ present original ]
21
22
23
24
25
26
27
28\mainlanguage
29 [ en ]
30
31
32
33
34
35
36
37\doifelsemode { asintended } {
38 \setupbodyfont [ ludicaot , 1 4 . 4 pt ]
39} {
40 \setupbodyfont [ pagella , 1 4 . 4 pt ]
41}
42
43\setuplayout
44 [ style = smallbodyfont ]
45
46\setupalign
47 [ tolerant , stretch ]
48
49
50
51
52
53
54
55
56
57
58
59
60\definecolor [ BackgroundColor ] [ r = . 7 , g = . 7 , b = . 3 ]
61\definecolor [ InteractionColor ] [ r = . 1 , g = . 5 , b = . 8 ]
62\definecolor [ ContrastColor ] [ r = . 9 , g = . 5 , b = . 2 ]
63
64
65
66
67
68
69
70
71\setuppapersize
72 [ S 6 ] [ S 6 ]
73
74\setuplayout
75 [ topspace = 1 2 pt ,
76 header = 0 pt ,
77 footer = 0 pt ,
78 height = 4 0 2 pt ,
79 bottomdistance = 1 5 pt ,
80 bottom = 1 2 pt ,
81 backspace = 1 2 pt ,
82 margin = 0 pt ,
83 width = fit ,
84 edgedistance = 1 2 pt ,
85 rightedge = 9 6 pt ]
86
87\setupinteractionscreen
88 [ option = max ]
89
90
91
92
93
94
95
96
97\setupbackgrounds
98 [ page ]
99 [ background = color ,
100 backgroundcolor = BackgroundColor ]
101
102\setupbackgrounds
103 [ text ] [ text ]
104 [ background = color ,
105 backgroundcolor = white ,
106 backgroundoffset = 3 pt ]
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124\setupinteraction
125 [ page = yes ,
126 color = InteractionColor ,
127 contrastcolor = ContrastColor ,
128 menu = on ,
129 state = start ]
130
131
132
133
134
135
136
137\setupinteractionmenu
138 [ bottom ]
139 [ leftoffset = 3 pt ,
140 rightoffset = 3 pt ]
141
142\startinteractionmenu [ bottom ]
143 \startcom \InteractionBar \stopcom
144 \hfill
145 \startcom \InteractionButtons \stopcom
146\stopinteractionmenu
147
148
149
150
151
152
153
154
155\unexpanded \def \InteractionBar
156 { \ifnum \nofsubpages > \plusone
157 \framed
158 [ framecolor = white ,
159 rulethickness = 1 pt ,
160 height = \bottomheight ,
161 strut = no ]
162 { \interactionbar [ alternative = f , width = . 5 \makeupwidth , height = 1 ex ] }
163 \fi }
164
165
166
167
168
169
170
171\setupinteractionbar
172 [ framecolor = white ,
173 rulethickness = 1 pt ,
174 height = \bottomheight ,
175 strut = no ]
176
177\unexpanded \def \InteractionButtons
178 { \interactionbuttons
179 [ width = 1 5 em ,
180 framecolor = white ,
181 rulethickness = 1 pt ,
182 height = \bottomheight ,
183 strut = no ,
184 distance = . 5 em ]
185 [ PreviousJump , NextJump ,
186 firstpage ,
187 firstsubpage , previouspage , nextpage , lastsubpage ,
188 lastpage ,
189 CloseDocument ] }
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210\unexpanded \def \StartTitlePage
211 { \startstandardmakeup
212 \bfd
213 \setupinterlinespace
214 \setupalign [ middle ]
215 \vfil
216 \enforced \let \\ \vfil }
217
218\unexpanded \def \StopTitlePage
219 { \vfil \vfil \vfil
220 \stopstandardmakeup }
221
222\unexpanded \def \TitlePage # 1
223 { \StartTitlePage # 1 \StopTitlePage }
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252\definehead [ Topic ] [ chapter ]
253\definehead [ Subject ] [ section ]
254
255\definehead [ Nopic ] [ title ]
256
257
258
259
260
261
262
263
264\setuphead
265 [ Topic , Nopic , Subject ]
266 [ command = \HeadLine ,
267 page = yes ,
268 style = \bfb ,
269 after = \blank ,
270 sectionnumber = no ]
271
272\setuphead
273 [ Topic ]
274 [ after = \PlaceSubjectList ]
275
276\setuphead
277 [ Subject ]
278 [ continue = no ]
279
280
281
282
283
284
285
286
287\unexpanded \def \HeadLine # 1 # 2
288 { \midaligned
289 { \framed
290 [ framecolor = BackgroundColor ,
291 rulethickness = 1 pt ,
292 width = . 8 \hsize ,
293 align = middle ,
294 strut = no ]
295 { # 2 } } }
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318\unexpanded \def \PlaceSubjectList
319 { \blank
320 \determinelistcharacteristics [ Subject ]
321 \doifmode { * list } { \placelist [ Subject ] } }
322
323\setuplist
324 [ Subject , Topic ]
325 [ alternative = g ,
326 interaction = all ,
327 before = ,
328 after = ]
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346\startinteractionmenu [ right ]
347 \placelist
348 [ Topic ]
349 [ alternative = f ,
350 maxwidth = \hsize ,
351 width = \hsize ,
352 offset = 0 pt ,
353 criterium = all ,
354 align = left ,
355 style = \smallbodyfont \bfx ]
356\stopinteractionmenu
357
358\unexpanded \def \Topics # 1
359 { \Nopic { # 1 }
360 \placelist [ Topic ] [ criterium = all ] }
361
362\unexpanded \def \Subjects
363 { }
364
365
366
367
368
369
370
371
372
373
374
375\defineoverlay [ nextpage ] [ \overlaybutton { nextpage } ]
376
377\setupbackgrounds
378 [ text ] [ text ]
379 [ background = { color , nextpage } ]
380
381
382
383
384
385
386
387\setupsubpagenumber
388 [ way = bytext ,
389 state = start ]
390
391\stopmodule
392
393\continueifinputfile { s present original . mkiv }
394
395\usemodule [ present common ]
396
397\inputpresentationfile { examples present original 0 0 1 . tex }
398 |