1
2
3
4
5
6
7
8
9
10
11
12
13
14\startmodule [ present dark ]
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
41
42
43\setuppapersize
44 [ S 6 ][ S 6 ]
45
46\setuplayout
47 [ backspace = 3 8 0 pt ,
48 topspace = 2 0 pt ,
49 leftedge = 1 0 0 pt ,
50 leftedgedistance = 1 0 pt ,
51 leftmargin = 2 3 0 pt ,
52 leftmargindistance = 2 0 pt ,
53 header = 0 pt ,
54 footer = 0 pt ,
55 width = 2 0 0 pt ,
56 backspace = 3 6 0 pt ,
57 width = 2 2 0 pt ,
58 leftmargin = 2 1 0 pt ,
59 height = middle ]
60
61
62
63
64
65\definefontfeature
66 [ default ]
67 [ default ]
68 [ expansion = pure ,
69 protrusion = pure ]
70
71\setupalign
72 [ verytolerant , stretch , hanging ]
73
74\setupbodyfont
75 [ modernvariable , 1 1 pt ]
76
77
78
79
80\setupinmargin
81 [ style = ,
82 color =]
83
84
85
86
87
88\useJSscripts [ fld ]
89\useJSscripts [ nav ]
90
91
92
93
94\newcounter \bofremarks
95\newcounter \nofremarks
96
97\setupfield
98 [ remark ]
99 [ offset = overlay ,
100 option = { readonly , hidden } ,
101 color = ,
102 style = ,
103 frame = off ]
104
105\defineframed
106 [ remarkable ]
107 [ frame = off ,
108 backgroundcolor = white ,
109 background = RollBackground ]
110
111\starttexdefinition unexpanded remark # 1 # 2
112
113 \doglobal \increment \nofremarks
114
115 \definesymbol
116 [ remark : x : \nofremarks ]
117 [ \remarkable { # 1 } ]
118
119 \definesymbol
120 [ remark : y : \nofremarks ]
121 [ \remarkable { # 2 } ]
122
123 \definefield
124 [ remark : x : \nofremarks ][ check ][ remark ]
125 [ remark : x : \nofremarks ]
126 [ remark : x : \nofremarks ]
127
128 \definefield
129 [ remark : y : \nofremarks ][ check ][ remark ]
130 [ remark : y : \nofremarks ]
131 [ remark : y : \nofremarks ]
132
133 \inleft
134 [ scope = local ]
135 {
136 \hpack to \hsize {
137 \hss
138 \linebox {
139 \fitfield [ remark : y : \nofremarks ]
140 }
141 }
142 }
143
144 \bgroup
145
146 \setbox \scratchbox \hbox {
147 # 1
148 }
149
150 \hpack to \wd \scratchbox {
151 \wd \scratchbox \zeropoint
152 \box \scratchbox
153 \hss
154 \linebox {
155 \fitfield [ remark : x : \nofremarks ]
156 }
157 \hss
158 }
159
160 \egroup
161
162\stoptexdefinition
163
164
165
166
167\setupbackgrounds
168 [ text ]
169 [ background = StepFields ]
170
171\defineoverlay
172 [ StepFields ]
173 [ \directsetup { syncrefs } \overlaybutton { ShowRemark } ]
174
175\setupbackgrounds
176 [ page ]
177 [ background = PageBackground ]
178
179
180
181
182\setupinteraction
183 [ state = start ,
184 click = no ,
185 menu = on ,
186 style = ,
187 color = ,
188 frame = off ,
189 contrastcolor =]
190
191\setupinteractionscreen
192 [ option = max ]
193
194\setupbackgrounds
195 [ paper ]
196 [ background = color ,
197 backgroundcolor = black ]
198
199\defineoverlay
200 [ PageBackground ]
201 [ \useMPgraphic { PageBackground } ]
202
203\startuseMPgraphic { PageBackground }
204 StartPage ;
205 numeric w ; w : = 1.25 PaperWidth ;
206 numeric n ; n : = 2.50 PageNumber ;
207 numeric d ; d : = ( 1 ( PageNumber -1 ) 5 ) 5 pt ;
208 fill Page
209 withcolor black ;
210 for i = 1 upto 500 :
211 draw
212 center Page
213 randomized w
214 rotatedaround ( center Page , n )
215 withpen pencircle
216 scaled ( uniformdeviate d )
217 withcolor
218 ( yellow randomized ( .3 , .8 ) )
219 ;
220 endfor ;
221 StopPage ;
222\stopuseMPgraphic
223
224\defineoverlay
225 [ TextBackground ]
226 [ \uniqueMPgraphic { TextBackground } ]
227
228\startuniqueMPgraphic { TextBackground }
229 fill
230 OverlayBox
231 withcolor black ;
232 draw
233 OverlayBox
234 withpen pencircle scaled 1 pt
235 withcolor OverlayColor ;
236\stopuniqueMPgraphic
237
238\defineoverlay
239 [ RollBackground ]
240 [ \uniqueMPgraphic { RollBackground } ]
241
242\startuniqueMPgraphic { RollBackground }
243 fill
244 OverlayBox
245 withcolor black ;
246 draw
247 OverlayBox
248 withpen pencircle scaled 1 pt
249 withcolor OverlayColor ;
250\stopuniqueMPgraphic
251
252\setupinteractionmenu
253 [ left ]
254 [ state = start ,
255 width = \leftedgewidth ,
256 frame = on ,
257 framecolor = white ,
258 rulethickness = 1 pt ,
259 foregroundcolor = white ,
260 background = RollBackground ]
261
262\startsetups syncrefs
263 \normalexpanded {
264 \definereference
265 [ ShowRemark ]
266 [ StepFields { remark : x , \bofremarks , \nofremarks } ,
267 StepFields { remark : y , \bofremarks , \nofremarks } ]
268 }
269\stopsetups
270
271
272
273
274\defineviewerlayer
275 [ buttons ]
276
277\startinteractionmenu [ left ]
278 \vfill
279 \directsetup { syncrefs }
280 \startviewerlayer [ buttons ]
281 \startbut [ previouspage , HideFields ] Previous \stopbut
282 \startbut [ nextpage , HideFields ] Next \stopbut
283 \startbut [ ShowRemark ] Remark \stopbut
284 \startbut [ HideFields ] Reset \stopbut
285 \startbut [ CloseDocument , HideFields ] Quit \stopbut
286 \stopviewerlayer
287\stopinteractionmenu
288
289\setupinteraction
290 [ closeaction = ForgetChanges ,
291 openpageaction = { HideFields , HideLayer { buttons }} ,
292 closepageaction = { HideFields , HideLayer { buttons }} ]
293
294\defineoverlay
295 [ ShowMenu ]
296 [ \overlayrollbutton { VideLayer { buttons }}{} ]
297
298\setupbackgrounds
299 [ text ][ leftedge ]
300 [ backgroundoffset = 1 0 pt ,
301 background = ShowMenu ]
302
303
304
305
306
307\defineframedtext
308 [ MainText ]
309 [ frame = off ,
310 offset = 1 0 pt ,
311 width = \textwidth ,
312 before = ,
313 after = ,
314 color = ,
315 foregroundcolor = white ,
316 background = TextBackground ,
317 backgroundcolor = white ]
318
319\starttexdefinition unexpanded StartIdea
320 \dosingleempty { \texdefinition { StartIdeaIndeed }}
321\stoptexdefinition
322
323\starttexdefinition StartIdeaIndeed [# 1 ]
324 \let \bofremarks \nofremarks
325 \increment \bofremarks
326 \startstandardmakeup
327 \setvariables [ Idea ][# 1 ]
328 \startMainText
329 \setupalign [ verytolerant , stretch , hanging ]
330\stoptexdefinition
331
332\starttexdefinition unexpanded StopIdea
333 \doifvariable { Idea } { text } {
334 \blank
335 \rightaligned {
336 \doifelsevariable { Idea } { remark } {
337 \tooltip
338 [ left ]
339 { \getvariable { Idea }{ title }}
340 { \getvariable { Idea }{ remark }}
341 } {
342 \getvariable { Idea }{ title }
343 }
344 }
345 }
346 \stopMainText
347 \vfill
348 \stopstandardmakeup
349\stoptexdefinition
350
351\stopmodule
352
353\continueifinputfile { s present dark . mkiv }
354
355\usemodule [ present common ]
356
357\inputpresentationfile { tug 2 0 0 1 tug 2 0 0 1 ideas . tex }
358 |