| 1 |
% This is a demonstration file distributed with the |
| 2 |
% Lecturer package (see lecturer-doc.pdf). |
| 3 |
% |
| 4 |
% You can recompile the file with a basic TeX implementation, |
| 5 |
% using pdfTeX or LuaTeX with the plain format. |
| 6 |
% |
| 7 |
% The reusable part ends somewhere around line 200. |
| 8 |
% |
| 9 |
% Author: Paul Isambert. |
| 10 |
% Date: July 2010. |
| 11 |
|
| 12 |
\input lecturer |
| 13 |
|
| 14 |
\font\ttit=cmitt10 |
| 15 |
|
| 16 |
\setparameter job: |
| 17 |
fullscreen = true |
| 18 |
normal = layers |
| 19 |
autofullscreen = true |
| 20 |
font = \tt |
| 21 |
|
| 22 |
\newcolor{greent}{rgb}[.8]{.8 1 .8} |
| 23 |
\setparameter slide: |
| 24 |
width = 18cm |
| 25 |
right = 5cm |
| 26 |
hpos = fr |
| 27 |
top = 2cm |
| 28 |
vsize = 6cm |
| 29 |
vpos = center |
| 30 |
image = universe |
| 31 |
foreground = greent |
| 32 |
bookmark = false |
| 33 |
|
| 34 |
% Courtesy of NASA/ESA/Hubble etc. |
| 35 |
% Jet in Carina, it's called. Plus WFC3 UVIS Full Field. No less. |
| 36 |
\newimage{universe}[18cm,]{universe.jpg} |
| 37 |
|
| 38 |
|
| 39 |
% |
| 40 |
% The screen behind the main text. |
| 41 |
% |
| 42 |
\newcolor{tgreen}{rgb}[.6]{0 .8 0} |
| 43 |
\setarea{main} |
| 44 |
vshift = 2cm |
| 45 |
vshift* = 4cm |
| 46 |
hshift* = 4cm |
| 47 |
background = tgreen |
| 48 |
frame = "width = .5cm, corner = round" |
| 49 |
|
| 50 |
|
| 51 |
% |
| 52 |
% The fantastic control board. |
| 53 |
% |
| 54 |
\newshade{metal} |
| 55 |
model = gray |
| 56 |
from = .8 |
| 57 |
to = 0 |
| 58 |
speed = 1.8 |
| 59 |
|
| 60 |
\setarea{control} |
| 61 |
vshift* = 0pt |
| 62 |
height = 2cm |
| 63 |
background = metal |
| 64 |
topskip = 0pt |
| 65 |
|
| 66 |
% The lights on the left. |
| 67 |
\newcolor{darkred}{rgb}{.8 0 0} |
| 68 |
\newsymbol\lightoff[padding=0pt]{% |
| 69 |
color gray .8, |
| 70 |
pen 1.5, 10 0, stroke, |
| 71 |
color darkred, move + -.5 .7, |
| 72 |
circle ul 4.5, circle ld 4.5, fill |
| 73 |
} |
| 74 |
\newsymbol\lighton[padding=0pt]{% |
| 75 |
color gray .8, |
| 76 |
pen 1.5, 10 0, stroke, |
| 77 |
color rgb .4 .8 .4, move + -.5 .7, |
| 78 |
circle ul 4.5, circle ld 4.5, fill |
| 79 |
} |
| 80 |
% The big circular button. |
| 81 |
\newcolor{twhite}{grey}[.5]{1} |
| 82 |
\newcolor{tblack}{cmyk}[.3]{0 0 0 1} |
| 83 |
\newsymbol\bigbutton{% |
| 84 |
color red, |
| 85 |
circle ur 20, circle rd 20, circle dl 20, circle lu 20,fill, |
| 86 |
color twhite, pen 2, move 20 16, circle rd 16,stroke, |
| 87 |
color tblack, move 20 -16, circle lu 16,stroke, |
| 88 |
} |
| 89 |
% The red button, for the circle. |
| 90 |
\newsymbol\showcircle[1em,padding=0pt]{% |
| 91 |
color grey .6, |
| 92 |
move -.2 1.3, -.2 -1.3, 1.2 -1.3, fill, |
| 93 |
color grey .1, |
| 94 |
move -.2 1.3, 1.2 1.3, 1.2 -1.3, fill, |
| 95 |
color rgb 1 .4 .4, |
| 96 |
move 0 .5, + 1 0, + 0 .5, + -1 0,fill, |
| 97 |
color rgb .3 0 0, |
| 98 |
move 0 0, + 1 0, + 0 .5, + -1 0,fill, |
| 99 |
color rgb .6 0 0, |
| 100 |
move 0 -1, + 1 0, + 0 1, + -1 0,fill, |
| 101 |
} |
| 102 |
\newsymbol\hidecircle[1em,padding=0pt]{% |
| 103 |
color grey .6, |
| 104 |
move -.2 1.3, -.2 -1.3, 1.2 -1.3, fill, |
| 105 |
color grey .1, |
| 106 |
move -.2 1.3, 1.2 1.3, 1.2 -1.3, fill, |
| 107 |
color rgb 1 .4 .4, |
| 108 |
move 0 0, 1 0, + 0 1, + -1 0,fill, |
| 109 |
color rgb .3 0 0, |
| 110 |
move 0 -.5, + 1 0, + 0 .5, + -1 0,fill, |
| 111 |
color rgb .6 0 0, |
| 112 |
move 0 -1, + 1 0, + 0 .5, + -1 0,fill, |
| 113 |
} |
| 114 |
\newsymbol\circle[2em]{% |
| 115 |
pen .05, color red, |
| 116 |
circle ur 1, circle rd 1, circle dl 1, circle lu 1 |
| 117 |
} |
| 118 |
% The green button, for the crosshair. |
| 119 |
\newsymbol\showcrosshair[1em,padding=0pt]{% |
| 120 |
color grey .6, |
| 121 |
move -.2 1.3, -.2 -1.3, 1.2 -1.3, fill, |
| 122 |
color grey .1, |
| 123 |
move -.2 1.3, 1.2 1.3, 1.2 -1.3, fill, |
| 124 |
color rgb .4 1 .4, |
| 125 |
move 0 .5, + 1 0, + 0 .5, + -1 0,fill, |
| 126 |
color rgb 0 .3 0, |
| 127 |
move 0 0, + 1 0, + 0 .5, + -1 0,fill, |
| 128 |
color rgb 0 .6 0, |
| 129 |
move 0 -1, + 1 0, + 0 1, + -1 0,fill, |
| 130 |
} |
| 131 |
\newsymbol\hidecrosshair[1em,padding=0pt]{% |
| 132 |
color grey .6, |
| 133 |
move -.2 1.3, -.2 -1.3, 1.2 -1.3, fill, |
| 134 |
color grey .1, |
| 135 |
move -.2 1.3, 1.2 1.3, 1.2 -1.3, fill, |
| 136 |
color rgb .4 1 .4, |
| 137 |
move 0 0, 1 0, + 0 1, + -1 0,fill, |
| 138 |
color rgb 0 .3 0, |
| 139 |
move 0 -.5, + 1 0, + 0 .5, + -1 0,fill, |
| 140 |
color rgb 0 .6 0, |
| 141 |
move 0 -1, + 1 0, + 0 .5, + -1 0,fill, |
| 142 |
} |
| 143 |
\newsymbol\crosshair[2em]{% |
| 144 |
pen .03, |
| 145 |
color rgb .4 1 .4, |
| 146 |
move .5 0, + 1 0, stroke, |
| 147 |
move 1 -.5, + 0 1, stroke, |
| 148 |
} |
| 149 |
% The blue button. |
| 150 |
\newsymbol\shoot[1em,padding=0pt]{% |
| 151 |
color grey .6, |
| 152 |
move -.2 1.3, -.2 -1.3, 1.2 -1.3, fill, |
| 153 |
color grey .1, |
| 154 |
move -.2 1.3, 1.2 1.3, 1.2 -1.3, fill, |
| 155 |
color rgb .4 .4 1, |
| 156 |
move 0 .5, + 1 0, + 0 .5, + -1 0,fill, |
| 157 |
color rgb 0 0 .3, |
| 158 |
move 0 0, + 1 0, + 0 .5, + -1 0,fill, |
| 159 |
color rgb 0 0 .6, |
| 160 |
move 0 -1, + 1 0, + 0 1, + -1 0,fill, |
| 161 |
} |
| 162 |
\newsymbol\shot[1em,padding=0pt]{% |
| 163 |
color grey .6, |
| 164 |
move -.2 1.3, -.2 -1.3, 1.2 -1.3, fill, |
| 165 |
color grey .1, |
| 166 |
move -.2 1.3, 1.2 1.3, 1.2 -1.3, fill, |
| 167 |
color rgb .4 .4 1, |
| 168 |
move 0 0, 1 0, + 0 1, + -1 0,fill, |
| 169 |
color rgb 0 0 .3, |
| 170 |
move 0 -.5, + 1 0, + 0 .5, + -1 0,fill, |
| 171 |
color rgb 0 0 .6, |
| 172 |
move 0 -1, + 1 0, + 0 .5, + -1 0,fill, |
| 173 |
} |
| 174 |
% The villain. Alive and dead. |
| 175 |
\newsymbol\alien[1.7em]{% |
| 176 |
pen .05, |
| 177 |
color cmyk .2 1 .4 0, |
| 178 |
1 0, circle ul .5, circle ld .5, fill, |
| 179 |
circle dl .2, circle lu .2, |
| 180 |
move 1 0, circle dr .2, circle ru .2, |
| 181 |
move .16 0, + 0 -.3, |
| 182 |
move .49 0, + 0 -.3, |
| 183 |
move .82 0, + 0 -.3,stroke, |
| 184 |
color cmyk 0 0 1 0, |
| 185 |
move .2 .25, + .2 0, move + .2 0, + .2 0 |
| 186 |
} |
| 187 |
\newsymbol\deadalien[1.4em]{% |
| 188 |
pen .05, |
| 189 |
color cmyk .2 1 .4 .7, |
| 190 |
1 0, circle ul .5, circle ld .5, fill, |
| 191 |
circle dl .2, circle lu .2, |
| 192 |
move 1 0, circle dr .2, circle ru .2, |
| 193 |
move .16 0, + 0 -.3, |
| 194 |
move .49 0, + 0 -.3, |
| 195 |
move .82 0, + 0 -.3,stroke, |
| 196 |
color cmyk 0 0 1 0, |
| 197 |
move .2 .25, + .2 .1, move + .2 0, + .2 -.1 |
| 198 |
} |
| 199 |
|
| 200 |
\setstep\hidden on = {}\par |
| 201 |
\newcount\tempcount |
| 202 |
% Lights are placed at every step. |
| 203 |
\setstep\textstep |
| 204 |
vskip = "0pt plus .5fil" |
| 205 |
everyvstep = {\position{control}[\dimexpr(1cm+\tempcount\dimexpr(10pt+.2cm)),0pt]{\quitvmode\lighton} |
| 206 |
\global\advance\tempcount1} |
| 207 |
|
| 208 |
|
| 209 |
% \endinput |
| 210 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 211 |
% % |
| 212 |
% UNCOMMENT THE PREVIOUS LINE TO USE THIS FILE AS A TEMPLATE, % |
| 213 |
% OR REMOVE EVERYTHING BELOW. % |
| 214 |
% Using it for a presentation isn't recommended, though. % |
| 215 |
% But you have the right to do what you want. % |
| 216 |
% I take no responsability. % |
| 217 |
% % |
| 218 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 219 |
|
| 220 |
|
| 221 |
|
| 222 |
|
| 223 |
|
| 224 |
\slide[The one and only slide, anchor=start] |
| 225 |
|
| 226 |
% Red lights. |
| 227 |
\position{control} |
| 228 |
[1cm,0pt] |
| 229 |
{\quitvmode\lightoff\kern.2cm \lightoff\kern.2cm \lightoff\kern.2cm \lightoff\kern.2cm \lightoff\kern.2cm} |
| 230 |
% The big button. |
| 231 |
\position{control} |
| 232 |
[\dimexpr(\pdfpagewidth/2-20pt),1cm] |
| 233 |
{\quitvmode\goto[push]{start}{\bigbutton}} |
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
\textstep[Say hi] Hello, Captain. Aliens have been spotted. |
| 238 |
|
| 239 |
\textstep[Order] Use your button to show where they should appear. |
| 240 |
|
| 241 |
\textstep[AlienAppear,transition=fade,font=\ttit] Here they are!\par |
| 242 |
Use your crosshair to shoot'em up. |
| 243 |
|
| 244 |
\textstep[Shoooooooooooooot,font=] Good. Now shoooooot! |
| 245 |
|
| 246 |
\textstep[Cool,on=] Congratulations!\par |
| 247 |
Click the red button to start again. |
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
% The following steps have no autonomy. They appear thanks to the previous |
| 252 |
% ones, or make each other appear. |
| 253 |
% |
| 254 |
% The circle. |
| 255 |
\step[on=Order,CircleOn] |
| 256 |
\position{control} |
| 257 |
[\dimexpr(\pdfpagewidth/2)+5em,1cm] |
| 258 |
{\showorhide{on=Circle CircleOff,off=CircleOn}\showcircle}% |
| 259 |
\hidden[CircleOff] |
| 260 |
\position{control} |
| 261 |
[\dimexpr(\pdfpagewidth/2)+5em,1cm] |
| 262 |
{\showorhide{on=CircleOn,off=Circle CircleOff}\hidecircle}% |
| 263 |
\hidden[Circle] |
| 264 |
\position{main} |
| 265 |
[12cm,2cm] |
| 266 |
\circle |
| 267 |
% |
| 268 |
% The alien. |
| 269 |
\step[Alien,on=AlienAppear] |
| 270 |
\position{main} |
| 271 |
[12.4cm,2cm] |
| 272 |
\alien |
| 273 |
% |
| 274 |
% The crosshair. |
| 275 |
\step[on=AlienAppear,CrosshairOn] |
| 276 |
\position{control} |
| 277 |
[\dimexpr(\pdfpagewidth/2)+6.5em,1cm] |
| 278 |
{\showorhide{on=Crosshair CrosshairOff,off=CrosshairOn}\showcrosshair}% |
| 279 |
\hidden[CrosshairOff] |
| 280 |
\position{control} |
| 281 |
[\dimexpr(\pdfpagewidth/2)+6.5em,1cm] |
| 282 |
{\showorhide{on=CrosshairOn,off=Crosshair CrosshairOff}\hidecrosshair}% |
| 283 |
\hidden[Crosshair,group=true] |
| 284 |
\position{main} |
| 285 |
[12cm,1.9cm] |
| 286 |
\crosshair |
| 287 |
% |
| 288 |
% The shooting device. |
| 289 |
\step[PrepareToShoot,on=Shoooooooooooooot] |
| 290 |
\position{control} |
| 291 |
[\dimexpr(\pdfpagewidth/2)+8em,1cm] |
| 292 |
{\showorhide{on=ShotDone Cool DeadAlien CircleOn CrosshairOn,off=Alien CircleOff Circle CrosshairOff Crosshair}\shoot}% |
| 293 |
\hidden[ShotDone] |
| 294 |
\position{control} |
| 295 |
[\dimexpr(\pdfpagewidth/2)+8em,1cm] |
| 296 |
{\shot} |
| 297 |
% |
| 298 |
% The dead alien. |
| 299 |
\hidden[DeadAlien] |
| 300 |
\position{main} |
| 301 |
[12.4cm,2cm] |
| 302 |
\deadalien |
| 303 |
\endslide |
| 304 |
|
| 305 |
|
| 306 |
\bye |