Debian Codegraph @

texmf-dist/doc/generic/lecturer/LecturerDemo-SquaresOfAs.tex

raw
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 % There's no cutoff point for the reusable part here
8 % because code changes between slides. It is easily
9 % retrievable, though.
10 %
11 % Author: Paul Isambert.
12 % Date: July 2010.
13
14
15 % For the fonts with LuaTeX.
16 % Comment this first line out if you want to use pdfTeX,
17 % and don't forget to change the fonts!
18 \input luaotfload.sty
19 \input lecturer
20
21 \hfuzz=\maxdimen
22 \vfuzz=\maxdimen % We might have some bad boxes...
23 \lineskiplimit=-1000pt % So baseline distances are respected, no matter what.
24
25 % The measure. Could be anything.
26 \newdimen\squarewidth
27 \squarewidth=4cm
28 \newdimen\squaresep
29 \squaresep=\dimexpr\squarewidth/6
30
31 % Uncomment these to show the grid.
32 %\showgrid{.5\squaresep}
33 %\showgrid{\squaresep}[red]
34
35 \setparameter job:
36 background = white
37 mode = presentation
38 fullscreen = true
39
40 \newcolor{grey}{grey}{.7}
41 \setparameter slide:
42 width height = "3\squarewidth+4\squaresep"
43 bottom = 0cm
44 % This is just for the last slide.
45 % The negative left is to accomodate the a's spur.
46 left = "-.8\squaresep"
47 right = 0cm
48 hpos = "rr"
49 vpos = top
50 foreground = grey
51 background = white
52
53 \setarea{area1 area2 area3 area4 area5 area6 area7 area8 area9}
54 width height = \squarewidth
55 left right = ".3\squaresep"
56 hpos = rr
57 baselineskip = ".18\squarewidth"
58 topskip = ".1\squarewidth"
59 vpos = center
60 visible = step % This will be changed after slide 1
61 background = grey
62 foreground = white
63 font = \mainfont
64 frame = "width=-.5\squaresep, corner=round"
65
66 \setarea{area1 area2 area3}
67 vshift = \squaresep
68
69 \setarea{area4 area5 area6}
70 vshift = "\squarewidth+2\squaresep"
71
72 \setarea{area7 area8 area9}
73 vshift* = \squaresep
74
75 \setarea{area1 area4 area7}
76 hshift = \squaresep
77
78 \setarea{area2 area5 area8}
79 hshift = "\squarewidth+2\squaresep"
80
81 \setarea{area3 area6 area9}
82 hshift* = \squaresep
83
84 \setarea{area8} % The area for the big a's.
85 topskip = \squarewidth
86 vpos = bottom
87 left right = 0pt
88 font = \afont % This font will change at each slide
89
90
91
92 % Some shorthands.
93 \long\def\dosquare#1#2{%
94 \position{area#1}{#2}%
95 }
96 \long\def\Step#1#2{%
97 \step\dosquare{#1}{#2}%
98 }
99 % #2 is the font
100 \def\doasquare#1#2{\position{area#1}{#2a}}
101
102
103
104
105 \font\mainfont=cmssbx10 at .3\squarewidth
106 \font\afont=cmssbx10 at 1.93\squarewidth
107
108
109
110 \slide[Introduction]
111
112 \Step1{I}
113 \Step2{really}
114 \Step3{find}
115 \Step6{the}
116 \Step9{letter}
117 \step\position{area8}{a}
118 \Step7{fascinating}
119 \Step4{don't}
120 \Step5{you?}
121
122 \endslide
123
124
125
126
127
128
129 \setarea{area1 area2 area3 area4 area5 area6 area7 area8 area9}
130 visible = true
131
132 \font\mainfont=cmssbx10 at .2\squarewidth
133 \font\afont=cmr10 at 2.04\squarewidth
134
135 \slide[Computer Modern]
136
137 \position{area8}{a}
138 \dosquare1{For instance, here's one.}
139 \Step4{That's Computer Modern.}
140 \Step3{(Guy with the computer?)}
141 \Step9{See how it curls?}
142 \Step7{Like it has a cowlick.}
143 \Step2{Not very fond of it but...}
144 \Step6{... it has a charm of its own.}
145 \Step5{A study in \hbox{roundness}.}
146
147 \endslide
148
149
150
151
152
153
154
155 \font\afont=Electra.ttf at 2.09\squarewidth
156
157 \slide[Electra]
158
159 \position{area8}{a}
160 \dosquare7{And here's an Electra.}
161 \Step9{It stands proudly upright.}
162 \Step6{Square shoulder(s)...}
163 \Step4{... and an impatient spur.}
164 \Step5{A letter of purpose.}
165 \Step3{A hint of insolence.}
166 \Step1{Its bowl makes it friendly, though.}
167 \Step2{It jumps right out of the book.}
168
169 \endslide
170
171
172
173
174
175
176
177 \font\afont=Figural.ttf at 1.98\squarewidth
178
179 \slide[Figural]
180
181 \position{area8}{a}
182 \dosquare5{That's a Figural.}
183 \Step6{Built with strength too...}
184 \Step1{... out of pen and hand.}
185 \Step7{The bowl isn't larger than the arm.}
186 \Step9{Hence the squareness.}
187 \Step3{And itself is a rectangle.}
188 \Step2{(Meaning the bowl.)}
189 \Step4{The beauty of humanism.}
190
191 \endslide
192
193
194
195
196
197 % Now all areas except 3 and 5 take a big a.
198
199 \font\afont=Walbaum.ttf at 1.82\squarewidth
200 \font\chap=ChaparralPro-Regular.otf at 2.13\squarewidth
201 \font\cent=Centaur.ttf at 2.41\squarewidth
202 \font\sab =Sabon.ttf at 2\squarewidth
203 \font\four=FournierMTStd-Regular.ttf at 2.3\squarewidth
204 \font\espr=Esprit.ttf at 1.98\squarewidth
205 \font\mend=Mendoza.ttf at 1.83\squarewidth
206
207
208 \setarea{area1 area2 area4 area6 area7 area8 area9}
209 topskip = \squarewidth
210 vpos = bottom
211 left right = 0pt
212
213 % Freely positioned material is not meant
214 % to interact nicely with the area's vpos,
215 % since it doesn't really exist and can occur
216 % anywhere among real material. Hence this hack.
217 %
218 \long\def\Dosquare#1{%
219 \position{area3}[0cm,0cm]{\vbox to \squarewidth{\vfil#1\vfil}}%
220 }
221 \setarea{area3}
222 topskip = \squarewidth
223 vpos = top
224
225 %
226 % The designers in the central square.
227 %
228 \font\designers=cmssbx10 at .065\squarewidth
229 \def\Font#1: #2, #3.{#2 (#1, #3)}
230 \setarea{area5}
231 topskip baselineskip = ".065\squarewidth"
232 vpos = top
233 left right = ".01\squarewidth"
234 hpos = fr
235 font = \designers
236
237
238
239 \slide[Showcase]
240
241 \step[visible=true,off=chap]
242 \Dosquare{An intimidating Walbaum}
243 \step[visible=true]\position{area8}{a}
244
245 \step[chap,off=cent]
246 \Dosquare{A deceptively na\"\i ve Chaparral}
247 \step[on=chap]\doasquare4\chap
248
249 \step[cent,off=sab]
250 \Dosquare{A s(w)inging Centaur}
251 \step[on=cent]\doasquare6\cent
252
253 \step[sab,off=four]
254 \Dosquare{A no-nonsense Sabon}
255 \step[on=sab]\doasquare2\sab
256
257 \step[four,off=espr]
258 \Dosquare{A delicate Fournier}
259 \step[on=four]\doasquare9\four
260
261 \step[espr,off=mend]
262 \Dosquare{A whimsical Esprit}
263 \step[on=espr]\doasquare7\espr
264
265 \step[mend,off=des]
266 \Dosquare{An open Mendoza}
267 \step[on=mend]\doasquare1\mend
268
269 \step[des]
270 \Dosquare{And the designers of all these fonts}
271 \dosquare5{%
272 \Font Computer Modern: Donald Knuth, past 30 years.,
273 \Font Electra: W.A. Dwiggins, 1935.,
274 \Font Figural: Old\v rich Menhart, 1940.,
275 \Font Walbaum: Justus Erich Walbaum, 1800.,
276 \Font Chaparral: Carol Twombly, 1997.,
277 \Font Centaur: Bru\-ce Rogers, 1914 after Jenson, 1469.,
278 \Font Sabon: Jan Tschichold, 1964 after Sabon, 16th century.,
279 \Font Fournier: Pierre-Simon Fournier, 18th century.,
280 \Font Esprit: Jovica Veljovi\'c, 1985.,
281 \Font Mendoza: Jos\'e Mendoza y Al\-meida, 1991..
282 }
283
284 \endslide
285
286
287
288 % And one big final a. The title of the slide
289 % comes from my impression that this glyph
290 % is almost an abstract symbol without any relation to
291 % the letter (especially when compared to the others
292 % on the previous slide, actually). Ok, a glyph is
293 % an abstract anyway, but you see what I mean.
294
295
296 \setarea{area4}
297 background = white
298 foreground = grey
299
300 \font\chapp=ChaparralPro-Regular.otf at 2.275\pdfpageheight
301
302 \slide[Abstraction,areas=area4,font=\chapp]
303
304 a
305
306 \endslide
307
308
309 \bye