1 .\" -*- mode: text; coding: utf-8; -*-
3 .\"----------------------------------------------------------------
4 .\" Make first slide black. Remove if printing to save ink.
7 .DBX SOLID 0 \n[.l]u \n[.p]u
8 .\"----------------------------------------------------------------
10 .\"----------------------------------------------------------------
11 .\" Macro for code blocks
24 .\"----------------------------------------------------------------
26 .TITLE "Creating slide presentations with gropdf/mom"
27 .PDF_TITLE "\*[$TITLE]"
31 HEADER "Header left" "\*[$TITLE]" "Header right" \
32 FOOTER "" "" "\*S[+2]\*[SLIDE#]\*S[-2]" \
33 TRANSITION "Box 1 . O" \
40 .NEWCOLOR darkred #aa0000
41 .NEWCOLOR darkred1 #900000
42 .NEWCOLOR blue1 #00007b
43 .NEWCOLOR blue2 #00006f
44 .NEWCOLOR code-grey GRAY 0.3
48 .HEADER_COLOR darkred1
49 .HEADER_RULE_COLOR blue1
65 .PDF_IMAGE_FRAME "" 1 blue1
68 "Creating slide presentations" \
75 .STRING hand \*[darkred]\[rh]\*[black]
82 .HEADING 1 "PDF slides"
86 PDF slides are a subset of mom's document processing macros
87 formatted for presentation mode when viewed in a PDF reader. In
88 most respects, they behave identically to the default document type
89 described in mom's html documentation\*[HANG .]
91 Differences in the formatting include\*[HANG :]
97 the choice between two aspect ratios, 4:3 or 16:9
100 both fit on A4 or US letter paper sizes when printed
105 type is set centered by default
108 this may be changed to left, right, or justified
113 headers and/or footers must be explicitly instantiated
116 the left, centre, and right parts must be supplied
122 slide numbering (pagination) is disabled
125 if slide numbering is desired, it must be put in the left,
126 centre, or right part of a header or footer definition
136 .HEADING 1 "Pauses and transitions"
140 Slides made with mom take advantage of the pause and slide
141 transition features provided in presentation mode by most
142 contemporary PDF readers.
145 Pauses and transitions are dynamic and engaging, holding the
146 viewer's attention while increasing the impact of the content.
149 With pauses, material on a slide can be revealed progressively
152 a mouse click or by hitting
165 The manner in which new material is revealed and new slides
166 are displayed can be tailored separately for effects like Fade,
167 Dissolve, Wipe and others, and can be changed on the fly.
172 Mom slides begin with the macro DOCTYPE SLIDES, where you choose
173 the aspect ratio and transition effects, and set up headers and
177 You may find it convenient to provide a title for the slide
178 presentation, as the top of the .mom file for these slides
179 demonstrates\*[HANG :]
183 \*[COND]\&.TITLE "Creating slide presentations with gropdf/mom"
184 \&.PDF_TITLE "\\*[$TITLE]"
188 HEADER "Header left" "\\*[$TITLE]" "Header right" \\
189 FOOTER "" "" "\\*S[+2]\\*[SLIDE#]\\*S[-2]" \\
190 TRANSITION "Box 1 . O" \\
191 PAUSE "Wipe 1"\*[CONDX]
197 Afterwards, you may make any changes you like to the layout and
198 style, then enter START. Unlike other mom documents, PRINTSTYLE is
199 not required\*[HANG .]
207 "The \s[-2]PAUSE\s[0] and \s[-2]NEWSLIDE\s[0] macros"
211 Whenever you want a pause before revealing the next material on a
212 slide, enter the macro PAUSE on a line by itself. If you want a
213 reveal effect that's different from the current one, you may pass
214 PAUSE the parameters of the new effect\*[HANG :]
220 \&.PAUSE "Dissolve .4"
224 Notice that this material dissolves in, whereas before, new material
225 appeared from left to right. \*[BU6]The new effect stays in force
226 until you change it again\*[HANG .]
229 New slides are introduced with NEWSLIDE. \*[bu6]Transition effects
230 and parameters may be given to NEWSLIDE\*[HANG :]
234 \&.NEWSLIDE "Blinds .5"
238 The next slide in this presentation will appear with the Blinds
242 \*[FU2]\*[UP 1p](\*[DOWN 1p]\*[BU2]1\*[UP 1p]\*[BU1])\*[DOWN 1p]
243 for all the pause/transition effects and their
244 parameters.\*[BU6]\*[UP 2p]\s[-2]*\s[0]
248 *Note that not all PDF \*[BU6]viewers support every effect\*[HANG .]
252 .NEWSLIDE "Blinds .5"
256 .HEADING 1 "Macros and preprocessors"
260 Slides can make full use of all mom's document processing and
261 typesetting macros, including preprocessors and image insertion\*[HANG .]
267 \*[FWD 4P+6p]\*[ST1]#\*[ST1X]\
268 \*[FWD 1P]\*[ST2]#\*[ST2X]\
269 \*[FWD 3P+6p]\*[ST3]#\*[ST3X]\
270 \*[FWD 3P]\*[ST4]#\*[ST4X]\*[FWD 2P]"
281 \*[BD]\*[blue2]\*[DOWN 6p]tbl
289 \*[darkred]\s[-.5]\*[DOWN .5p]Year^Mean Temp.\s[0]\*[blue2]
292 \*[cyan4]\fB2015^28.3\*[blue2]
293 \*[cyan4]1998^28.3\*[blue2]
294 \*[cyan4]1997^28.3\*[blue2]
295 \*[cyan4]2010^28.1\*[blue2]
296 \*[cyan4]2002^28.1\*[blue2]
297 \*[cyan4]2005^28.0\*[blue2]
298 \*[cyan4]2014^27.9\*[blue2]
299 \*[cyan4]2009^27.9\*[blue2]
307 \*[FWD 10p]\*[DOWN 6p]pic
311 A: ellipse wid 0.5 ht 0.5
312 arrow color "green4" up 0.2 from A.n
313 arrow color "green4" up 0.2 right 0.2 from A.ne
314 arrow color "green4" right 0.2 from A.e
315 arrow color "green4" down 0.2 right 0.2 from A.se
316 arrow color "green4" down 0.2 from A.s
317 arrow color "green4" down 0.2 left 0.2 from A.sw
318 arrow color "green4" left 0.2 from A.w
319 arrow color "green4" up 0.2 left 0.2 from A.nw
327 \*[FWD 1p]\*[DOWN 6p]eqn
334 f sub X (x) ^=^ left {
335 rpile { 0 above 2x above 0 }
336 ~~lpile { x < 0 above 0 <= x <= 1 above x > 1 }
346 \*[DOWN 6p]pdf image\*[black]\*[PREV]
348 .PDF_IMAGE -L penguin.pdf 81p 96p FRAME
351 .NEWSLIDE "Box 1 . O"
356 .HEADING 1 "Printing handouts"
363 Because slides contain pauses, they need a little help on their
364 way to the printer or they stop printing at the first pause\*[HANG .]
367 Setting GROPDF_NOSLIDE=1 before invoking
368 \[oq]\*[FU4]\*[CODE]\*[COND]pdfmom\*[CONDX]\*[CODE off]\*[FU4]\[cq]
370 \[oq]\*[FU2]\*[CODE]\*[COND]groff\~-Tpdf\*[CONDX]\*[CODE off]\*[FU6]\[cq]
371 disables the pauses\*[HANG :]
379 \*[COND]GROPDF_NOSLIDE=1 pdfmom <options> slide-file.mom\*[CONDX]
383 The output may be piped directly to a printer or saved to a file\*[HANG .]
386 See mom's html documentation and the gropdf\c
387 \*[FU2]\*[UP 1p](\*[DOWN 1p]\*[BU2]1\*[UP 1p]\*[BU1])\*[DOWN 1p]
388 manpage for complete information concerning slide usage\*[HANG .]
393 .while \n[dcl-ind]<4 \{\
394 . DCL SOLID \n+[dcl-ind]P 9p 9p blue2