summaryrefslogtreecommitdiff
path: root/macros/generic/lecturer/doc/LecturerDemo-KitschScienceFiction.tex
blob: d41f328085362e07c8e533f6cc81bc28a1ebe2d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
% This is a demonstration file distributed with the
% Lecturer package (see lecturer-doc.pdf).
%
% You can recompile the file with a basic TeX implementation,
% using pdfTeX or LuaTeX with the plain format.
% 
% The reusable part ends somewhere around line 200.
%
% Author: Paul Isambert.
% Date: July 2010.

\input lecturer

\font\ttit=cmitt10

\setparameter job:
  fullscreen     = true
  normal         = layers
  autofullscreen = true
  font           = \tt

\newcolor{greent}{rgb}[.8]{.8 1 .8}
\setparameter slide:
  width      = 18cm
  right      = 5cm
  hpos       = fr
  top        = 2cm
  vsize      = 6cm
  vpos       = center
  image      = universe
  foreground = greent
  bookmark   = false

% Courtesy of NASA/ESA/Hubble etc.
% Jet in Carina, it's called. Plus  WFC3 UVIS Full Field. No less.
\newimage{universe}[18cm,]{universe.jpg}

  
%
% The screen behind the main text.
%
\newcolor{tgreen}{rgb}[.6]{0 .8 0}
\setarea{main}
  vshift     = 2cm
  vshift*    = 4cm
  hshift*    = 4cm
  background = tgreen
  frame      = "width = .5cm, corner = round"


%
% The fantastic control board.
%
\newshade{metal}
  model = gray
  from  = .8
  to    = 0
  speed = 1.8

\setarea{control}
  vshift*    = 0pt
  height     = 2cm
  background = metal
  topskip    = 0pt

% The lights on the left.
\newcolor{darkred}{rgb}{.8 0 0}
\newsymbol\lightoff[padding=0pt]{%
  color gray .8,
  pen 1.5, 10 0, stroke,
  color darkred, move + -.5 .7,
  circle ul 4.5, circle ld 4.5, fill
  }
\newsymbol\lighton[padding=0pt]{%
  color gray .8,
  pen 1.5, 10 0, stroke,
  color rgb .4 .8 .4, move + -.5 .7,
  circle ul 4.5, circle ld 4.5, fill
  }
% The big circular button.
\newcolor{twhite}{grey}[.5]{1}
\newcolor{tblack}{cmyk}[.3]{0 0 0 1}
\newsymbol\bigbutton{%
  color red,
  circle ur 20, circle rd 20, circle dl 20, circle lu 20,fill,
  color twhite, pen 2, move 20 16, circle rd 16,stroke,
  color tblack, move 20 -16, circle lu 16,stroke,
  }
% The red button, for the circle.
\newsymbol\showcircle[1em,padding=0pt]{%
  color grey .6,
  move -.2 1.3,  -.2 -1.3, 1.2 -1.3,  fill,
  color grey .1,
  move -.2 1.3, 1.2 1.3, 1.2 -1.3,  fill,
  color rgb 1 .4 .4,
  move 0 .5, + 1 0, + 0 .5, + -1 0,fill,
  color rgb .3 0 0,
  move 0 0, + 1 0, + 0 .5, + -1 0,fill,
  color rgb .6 0 0,
  move 0 -1, + 1 0, + 0 1, + -1 0,fill,
  }
\newsymbol\hidecircle[1em,padding=0pt]{%
  color grey .6,
  move -.2 1.3,  -.2 -1.3, 1.2 -1.3,  fill,
  color grey .1,
  move -.2 1.3, 1.2 1.3, 1.2 -1.3,  fill,
  color rgb 1 .4 .4,
  move 0 0, 1 0, + 0 1, + -1 0,fill,
  color rgb .3 0 0,
  move 0 -.5, + 1 0, + 0 .5, + -1 0,fill,
  color rgb .6 0 0,
  move 0 -1, + 1 0, + 0 .5, + -1 0,fill,
  }
\newsymbol\circle[2em]{%
  pen .05, color red,
  circle ur 1, circle rd 1, circle dl 1, circle lu 1
  }
% The green button, for the crosshair.
\newsymbol\showcrosshair[1em,padding=0pt]{%
  color grey .6,
  move -.2 1.3,  -.2 -1.3, 1.2 -1.3,  fill,
  color grey .1,
  move -.2 1.3, 1.2 1.3, 1.2 -1.3,  fill,
  color rgb .4 1 .4,
  move 0 .5, + 1 0, + 0 .5, + -1 0,fill,
  color rgb 0 .3 0,
  move 0 0, + 1 0, + 0 .5, + -1 0,fill,
  color rgb 0 .6 0,
  move 0 -1, + 1 0, + 0 1, + -1 0,fill,
  }
\newsymbol\hidecrosshair[1em,padding=0pt]{%
  color grey .6,
  move -.2 1.3,  -.2 -1.3, 1.2 -1.3,  fill,
  color grey .1,
  move -.2 1.3, 1.2 1.3, 1.2 -1.3,  fill,
  color rgb .4 1 .4,
  move 0 0, 1 0, + 0 1, + -1 0,fill,
  color rgb 0 .3 0,
  move 0 -.5, + 1 0, + 0 .5, + -1 0,fill,
  color rgb 0 .6 0,
  move 0 -1, + 1 0, + 0 .5, + -1 0,fill,
  }
\newsymbol\crosshair[2em]{%
  pen .03,
  color rgb .4 1 .4,
  move .5 0, + 1 0, stroke,
  move 1 -.5, + 0 1, stroke,
  }
% The blue button.
\newsymbol\shoot[1em,padding=0pt]{%
  color grey .6,
  move -.2 1.3,  -.2 -1.3, 1.2 -1.3,  fill,
  color grey .1,
  move -.2 1.3, 1.2 1.3, 1.2 -1.3,  fill,
  color rgb .4 .4 1,
  move 0 .5, + 1 0, + 0 .5, + -1 0,fill,
  color rgb 0 0 .3,
  move 0 0, + 1 0, + 0 .5, + -1 0,fill,
  color rgb 0 0 .6,
  move 0 -1, + 1 0, + 0 1, + -1 0,fill,
  }
\newsymbol\shot[1em,padding=0pt]{%
  color grey .6,
  move -.2 1.3,  -.2 -1.3, 1.2 -1.3,  fill,
  color grey .1,
  move -.2 1.3, 1.2 1.3, 1.2 -1.3,  fill,
  color rgb .4 .4 1,
  move 0 0, 1 0, + 0 1, + -1 0,fill,
  color rgb 0 0 .3,
  move 0 -.5, + 1 0, + 0 .5, + -1 0,fill,
  color rgb 0 0 .6,
  move 0 -1, + 1 0, + 0 .5, + -1 0,fill,
  }
% The villain. Alive and dead.
\newsymbol\alien[1.7em]{%
  pen .05,
  color cmyk .2 1 .4 0,
  1 0, circle ul .5, circle ld .5, fill,
  circle dl .2, circle lu .2,
  move 1 0, circle dr .2, circle ru .2,
  move .16 0, + 0 -.3,
  move .49 0, + 0 -.3,
  move .82 0, + 0 -.3,stroke,
  color cmyk 0 0 1 0,
  move .2 .25, + .2 0, move + .2 0, + .2 0
  }
\newsymbol\deadalien[1.4em]{%
  pen .05,
  color cmyk .2 1 .4 .7,
  1 0, circle ul .5, circle ld .5, fill,
  circle dl .2, circle lu .2,
  move 1 0, circle dr .2, circle ru .2,
  move .16 0, + 0 -.3,
  move .49 0, + 0 -.3,
  move .82 0, + 0 -.3,stroke,
  color cmyk 0 0 1 0,
  move .2 .25, + .2 .1, move + .2 0, + .2 -.1
  }

\setstep\hidden on = {}\par
\newcount\tempcount
% Lights are placed at every step.
\setstep\textstep
  vskip      = "0pt plus .5fil"
  everyvstep = {\position{control}[\dimexpr(1cm+\tempcount\dimexpr(10pt+.2cm)),0pt]{\quitvmode\lighton}
                \global\advance\tempcount1}


% \endinput
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                             %
% UNCOMMENT THE PREVIOUS LINE TO USE THIS FILE AS A TEMPLATE, %
% OR REMOVE EVERYTHING BELOW.                                 %
% Using it for a presentation isn't recommended, though.      %
% But you have the right to do what you want.                 %
% I take no responsability.                                   % 
%                                                             %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%





\slide[The one and only slide, anchor=start]

% Red lights.
\position{control}
         [1cm,0pt]
         {\quitvmode\lightoff\kern.2cm \lightoff\kern.2cm \lightoff\kern.2cm \lightoff\kern.2cm \lightoff\kern.2cm}
% The big button.
\position{control}
         [\dimexpr(\pdfpagewidth/2-20pt),1cm]
         {\quitvmode\goto[push]{start}{\bigbutton}}



\textstep[Say hi] Hello, Captain. Aliens have been spotted.

\textstep[Order] Use your button to show where they should appear.

\textstep[AlienAppear,transition=fade,font=\ttit] Here they are!\par
Use your crosshair to shoot'em up.

\textstep[Shoooooooooooooot,font=] Good. Now shoooooot!

\textstep[Cool,on=] Congratulations!\par
Click the red button to start again.



% The following steps have no autonomy. They appear thanks to the previous
% ones, or make each other appear.
%
% The circle.
\step[on=Order,CircleOn]
  \position{control}
           [\dimexpr(\pdfpagewidth/2)+5em,1cm]
           {\showorhide{on=Circle CircleOff,off=CircleOn}\showcircle}%
\hidden[CircleOff]
  \position{control}
           [\dimexpr(\pdfpagewidth/2)+5em,1cm]
           {\showorhide{on=CircleOn,off=Circle CircleOff}\hidecircle}%
\hidden[Circle]
  \position{main}
           [12cm,2cm]
           \circle
%
% The alien.
\step[Alien,on=AlienAppear]
  \position{main}
           [12.4cm,2cm]
           \alien
%
% The crosshair.
\step[on=AlienAppear,CrosshairOn]
  \position{control}
           [\dimexpr(\pdfpagewidth/2)+6.5em,1cm]
           {\showorhide{on=Crosshair CrosshairOff,off=CrosshairOn}\showcrosshair}%
\hidden[CrosshairOff]
  \position{control}
           [\dimexpr(\pdfpagewidth/2)+6.5em,1cm]
           {\showorhide{on=CrosshairOn,off=Crosshair CrosshairOff}\hidecrosshair}%
\hidden[Crosshair,group=true]
  \position{main}
           [12cm,1.9cm]
           \crosshair
%
% The shooting device.
\step[PrepareToShoot,on=Shoooooooooooooot]
  \position{control}
           [\dimexpr(\pdfpagewidth/2)+8em,1cm]
           {\showorhide{on=ShotDone Cool DeadAlien CircleOn CrosshairOn,off=Alien CircleOff Circle CrosshairOff Crosshair}\shoot}%
\hidden[ShotDone]
  \position{control}
           [\dimexpr(\pdfpagewidth/2)+8em,1cm]
           {\shot}
%
% The dead alien.
\hidden[DeadAlien]
  \position{main}
           [12.4cm,2cm]
           \deadalien
\endslide


\bye