summaryrefslogtreecommitdiff
path: root/macros/generic/lecturer/doc/LecturerDemo-SquaresOfAs.tex
blob: ad2a78145f662ef43daf1605ba3a99e833783b6a (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
307
308
309
% 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.
% 
% There's no cutoff point for the reusable part here
% because code changes between slides. It is easily
% retrievable, though.
%
% Author: Paul Isambert.
% Date: July 2010.


% For the fonts with LuaTeX.
% Comment this first line out if you want to use pdfTeX,
% and don't forget to change the fonts!
\input luaotfload.sty
\input lecturer

\hfuzz=\maxdimen
\vfuzz=\maxdimen % We might have some bad boxes...
\lineskiplimit=-1000pt % So baseline distances are respected, no matter what.

% The measure. Could be anything.
\newdimen\squarewidth
\squarewidth=4cm
\newdimen\squaresep
\squaresep=\dimexpr\squarewidth/6

% Uncomment these to show the grid.
%\showgrid{.5\squaresep}
%\showgrid{\squaresep}[red]

\setparameter job:
  background = white
  mode       = presentation
  fullscreen = true

\newcolor{grey}{grey}{.7}
\setparameter slide:
  width height = "3\squarewidth+4\squaresep"
  bottom       = 0cm
% This is just for the last slide.
% The negative left is to accomodate the a's spur.
  left         = "-.8\squaresep"
  right        = 0cm
  hpos         = "rr"
  vpos         = top
  foreground   = grey
  background   = white

\setarea{area1 area2 area3 area4 area5 area6 area7 area8 area9}
  width height = \squarewidth
  left right   = ".3\squaresep"
  hpos         = rr
  baselineskip = ".18\squarewidth"
  topskip      = ".1\squarewidth"
  vpos         = center
  visible      = step % This will be changed after slide 1
  background   = grey
  foreground   = white
  font         = \mainfont
  frame        = "width=-.5\squaresep, corner=round"

\setarea{area1 area2 area3}
  vshift = \squaresep

\setarea{area4 area5 area6}
  vshift = "\squarewidth+2\squaresep"

\setarea{area7 area8 area9}
  vshift* = \squaresep

\setarea{area1 area4 area7}
  hshift = \squaresep

\setarea{area2 area5 area8}
  hshift = "\squarewidth+2\squaresep"

\setarea{area3 area6 area9}
  hshift* = \squaresep

\setarea{area8} % The area for the big a's.
  topskip           = \squarewidth
  vpos              = bottom
  left right        = 0pt
  font              = \afont % This font will change at each slide



% Some shorthands.
\long\def\dosquare#1#2{%
  \position{area#1}{#2}%
  }
\long\def\Step#1#2{%
  \step\dosquare{#1}{#2}%
  }
% #2 is the font
\def\doasquare#1#2{\position{area#1}{#2a}}




\font\mainfont=cmssbx10 at .3\squarewidth
\font\afont=cmssbx10 at 1.93\squarewidth



\slide[Introduction]

\Step1{I}
\Step2{really}
\Step3{find}
\Step6{the}
\Step9{letter}
\step\position{area8}{a}
\Step7{fascinating}
\Step4{don't}
\Step5{you?}

\endslide






\setarea{area1 area2 area3 area4 area5 area6 area7 area8 area9}
  visible = true

\font\mainfont=cmssbx10 at .2\squarewidth
\font\afont=cmr10 at 2.04\squarewidth

\slide[Computer Modern]

\position{area8}{a}
\dosquare1{For instance, here's one.}
\Step4{That's Computer Modern.}
\Step3{(Guy with the computer?)}
\Step9{See how it curls?}
\Step7{Like it has a cowlick.}
\Step2{Not very fond of it but...}
\Step6{... it has a charm of its own.}
\Step5{A study in \hbox{roundness}.}

\endslide







\font\afont=Electra.ttf at 2.09\squarewidth

\slide[Electra]

\position{area8}{a}
\dosquare7{And here's an Electra.}
\Step9{It stands proudly upright.}
\Step6{Square shoulder(s)...}
\Step4{... and an impatient spur.}
\Step5{A letter of purpose.}
\Step3{A hint of insolence.}
\Step1{Its bowl makes it friendly, though.}
\Step2{It jumps right out of the book.}

\endslide







\font\afont=Figural.ttf at 1.98\squarewidth

\slide[Figural]

\position{area8}{a}
\dosquare5{That's a Figural.}
\Step6{Built with strength too...}
\Step1{... out of pen and hand.}
\Step7{The bowl isn't larger than the arm.}
\Step9{Hence the squareness.}
\Step3{And itself is a rectangle.}
\Step2{(Meaning the bowl.)}
\Step4{The beauty of humanism.}

\endslide





% Now all areas except 3 and 5 take a big a.

\font\afont=Walbaum.ttf at 1.82\squarewidth
\font\chap=ChaparralPro-Regular.otf at 2.13\squarewidth
\font\cent=Centaur.ttf at 2.41\squarewidth
\font\sab =Sabon.ttf at 2\squarewidth
\font\four=FournierMTStd-Regular.ttf at 2.3\squarewidth
\font\espr=Esprit.ttf at 1.98\squarewidth
\font\mend=Mendoza.ttf at 1.83\squarewidth


\setarea{area1 area2 area4 area6 area7 area8 area9}
  topskip           = \squarewidth
  vpos              = bottom
  left right        = 0pt

% Freely positioned material is not meant
% to interact nicely with the area's vpos,
% since it doesn't really exist and can occur
% anywhere among real material. Hence this hack.
% 
\long\def\Dosquare#1{%
  \position{area3}[0cm,0cm]{\vbox to \squarewidth{\vfil#1\vfil}}%
  }
\setarea{area3}
  topskip = \squarewidth
  vpos    = top

%
% The designers in the central square.
%
\font\designers=cmssbx10 at .065\squarewidth
\def\Font#1: #2, #3.{#2 (#1, #3)}
\setarea{area5}
  topskip baselineskip = ".065\squarewidth"
  vpos                 = top
  left right           = ".01\squarewidth"
  hpos                 = fr
  font                 = \designers



\slide[Showcase]

\step[visible=true,off=chap]
\Dosquare{An intimidating Walbaum}
\step[visible=true]\position{area8}{a}

\step[chap,off=cent]
\Dosquare{A deceptively na\"\i ve Chaparral}
\step[on=chap]\doasquare4\chap

\step[cent,off=sab]
\Dosquare{A s(w)inging Centaur}
\step[on=cent]\doasquare6\cent

\step[sab,off=four]
\Dosquare{A no-nonsense Sabon}
\step[on=sab]\doasquare2\sab

\step[four,off=espr]
\Dosquare{A delicate Fournier}
\step[on=four]\doasquare9\four

\step[espr,off=mend]
\Dosquare{A whimsical Esprit}
\step[on=espr]\doasquare7\espr

\step[mend,off=des]
\Dosquare{An open Mendoza}
\step[on=mend]\doasquare1\mend

\step[des]
\Dosquare{And the designers of all these fonts}
\dosquare5{%
  \Font Computer Modern: Donald Knuth, past 30 years.,
  \Font Electra: W.A. Dwiggins, 1935.,
  \Font Figural: Old\v rich Menhart, 1940.,
  \Font Walbaum: Justus Erich Walbaum, 1800.,
  \Font Chaparral: Carol Twombly, 1997.,
  \Font Centaur: Bru\-ce Rogers, 1914 after Jenson, 1469.,
  \Font Sabon: Jan Tschichold, 1964 after Sabon, 16th century.,
  \Font Fournier: Pierre-Simon Fournier, 18th century.,
  \Font Esprit: Jovica Veljovi\'c, 1985.,
  \Font Mendoza: Jos\'e Mendoza y Al\-meida, 1991..
  }

\endslide



% And one big final a. The title of the slide
% comes from my impression that this glyph
% is almost an abstract symbol without any relation to
% the letter (especially when compared to the others
% on the previous slide, actually). Ok, a glyph is
% an abstract anyway, but you see what I mean.


\setarea{area4}
  background = white
  foreground = grey

\font\chapp=ChaparralPro-Regular.otf at 2.275\pdfpageheight

\slide[Abstraction,areas=area4,font=\chapp]

a

\endslide


\bye