| 1 |
%% |
| 2 |
%% A quick presentation about the macros |
| 3 |
%% |
| 4 |
|
| 5 |
input pathalong; |
| 6 |
input slideshow; |
| 7 |
|
| 8 |
author("Patrick TJ McPhee"); |
| 9 |
title("Introducing slide-show macros"); |
| 10 |
keywords("presentations metapost"); |
| 11 |
copyright("Copyright 2001 Patrick TJ McPhee. You may redistribute and modify for any purpose, but must acknowledge significant quotation."); |
| 12 |
|
| 13 |
continue; |
| 14 |
|
| 15 |
nextfig; |
| 16 |
defaultscale := 2; |
| 17 |
draw textunder((0,.5in){up}..{right}(2in,1in), "Introducing") shifted (1in,3in) withcolor textcolour; |
| 18 |
endfig; |
| 19 |
|
| 20 |
nextfig; |
| 21 |
blabel.rt("Slide Show Macros", (2in,2in)); |
| 22 |
endfig; |
| 23 |
|
| 24 |
defaultscale := 1; |
| 25 |
|
| 26 |
nextfig; |
| 27 |
draw pathalong((0,.5in){up}..{right}(2in,1in), "by Patrick TJ McPhee") shifted (1in,3in) withcolor textcolour; |
| 28 |
hyperdest("Start"); |
| 29 |
endfig; |
| 30 |
|
| 31 |
discontinue; |
| 32 |
|
| 33 |
header("Rationale"); |
| 34 |
|
| 35 |
bpoint("Primarily an intellectual exercise"); |
| 36 |
bpoint("But may be useful for graphics-intensive presentations which don't use much text"); |
| 37 |
bpoint("Slideshow provides support for this irritating style of bullet presentation"); |
| 38 |
bpoint("And writes out some pdfmarks, which you would otherwise have to look up yourself"); |
| 39 |
|
| 40 |
picture dimtieb; |
| 41 |
dimtieb := image(draw pathalong((0,.5in){up}..(.5in,1in){right}..(.5in, 0in){-1,-1}..{.1,-1}(.5in,-.5in), |
| 42 |
"Did I mention the intellectual exercise bit?") withcolor textcolour;); |
| 43 |
dimtieb := dimtieb rotatedaround(center dimtieb, 90); |
| 44 |
dimtieb := dimtieb shifted - llcorner dimtieb; |
| 45 |
|
| 46 |
bpoint(dimtieb); |
| 47 |
|
| 48 |
discontinue; |
| 49 |
|
| 50 |
header("Current practice"); |
| 51 |
|
| 52 |
bpoint("A presentation might have several components:"); |
| 53 |
|
| 54 |
vardef procbox(expr s) = |
| 55 |
save p; |
| 56 |
picture p; |
| 57 |
|
| 58 |
p := s infont defaultfont scaled defaultscale; |
| 59 |
pickup thin nib; |
| 60 |
addto p doublepath bbox p withpen currentpen; |
| 61 |
p |
| 62 |
enddef; |
| 63 |
|
| 64 |
vardef resultbox(expr s) = |
| 65 |
save p; |
| 66 |
picture p; |
| 67 |
|
| 68 |
p := s infont defaultfont scaled defaultscale; |
| 69 |
pickup thin nib; |
| 70 |
addto p doublepath (ulcorner p)..tension 2..(urcorner p)..(lrcorner p).. |
| 71 |
tension 2..(llcorner p)..cycle |
| 72 |
withpen currentpen; |
| 73 |
p |
| 74 |
enddef; |
| 75 |
|
| 76 |
picture lt, mp, dvi, gs, postp, vres, pres, fpres; |
| 77 |
|
| 78 |
lt := procbox("laTeX") shifted (.05 lawidth, .2laheight); |
| 79 |
mp := procbox("metapost") shifted (.05 lawidth, .1laheight); |
| 80 |
dvi := procbox("DVI processor") shifted (.2 lawidth, .15laheight); |
| 81 |
vres := resultbox("viewable result") shifted (.4 lawidth, .15 laheight); |
| 82 |
gs := procbox("distiller") shifted (.65 lawidth, .15laheight); |
| 83 |
pres := resultbox("presentation") shifted (.8 lawidth, .15laheight); |
| 84 |
postp := procbox("post-processor") shifted (.7 lawidth, .3laheight); |
| 85 |
fpres := resultbox("final presentation") shifted (.45 lawidth, .3laheight); |
| 86 |
|
| 87 |
nextfig; |
| 88 |
bullet.in("text prepared with laTeX"); |
| 89 |
draw lt withcolor white; |
| 90 |
endfig; |
| 91 |
|
| 92 |
nextfig; |
| 93 |
bullet.in("graphics prepared with metapost (okay, 2 components)"); |
| 94 |
draw mp withcolor red; |
| 95 |
endfig; |
| 96 |
|
| 97 |
nextfig; |
| 98 |
bullet.in("which are combined with dvi processing software"); |
| 99 |
pickup thin nib; |
| 100 |
drawarrow (.5[lrcorner mp,urcorner mp]){right}..{right}(.5[llcorner dvi,ulcorner dvi]) |
| 101 |
withcolor .25[red,white]; |
| 102 |
drawarrow (.5[lrcorner lt,urcorner lt]){right}..{right}(.5[llcorner dvi,ulcorner dvi]) |
| 103 |
withcolor .25[white,red]; |
| 104 |
|
| 105 |
draw dvi withcolor .5[white,red]; |
| 106 |
endfig; |
| 107 |
|
| 108 |
nextfig; |
| 109 |
bullet.in("the resulting postscript is viewable, but must be distilled into the presentation"); |
| 110 |
pickup thin nib; |
| 111 |
drawarrow (.5[lrcorner dvi,urcorner dvi])..(.5[llcorner vres,ulcorner vres]) |
| 112 |
withcolor .1[.5[red,white],green]; |
| 113 |
draw vres withcolor .5[.5[white,red],green]; |
| 114 |
endfig; |
| 115 |
|
| 116 |
nextfig; |
| 117 |
pickup thin nib; |
| 118 |
drawarrow (.5[lrcorner vres,urcorner vres])..(.5[llcorner gs,ulcorner gs]) |
| 119 |
withcolor .6[.5[red,white],green]; |
| 120 |
draw gs withcolor .75[.5[white,red],green]; |
| 121 |
endfig; |
| 122 |
|
| 123 |
nextfig; |
| 124 |
pickup thin nib; |
| 125 |
drawarrow (.5[lrcorner gs,urcorner gs])..(.5[llcorner pres,ulcorner pres]) |
| 126 |
withcolor .75[.5[white,red],green]; |
| 127 |
draw pres withcolor green; |
| 128 |
endfig; |
| 129 |
|
| 130 |
nextfig; |
| 131 |
pickup thin nib; |
| 132 |
bullet.in("and it's often post-processed to make it slick and professional-looking like this one"); |
| 133 |
pickup thin nib; |
| 134 |
drawarrow (.5[lrcorner pres,urcorner pres]){right}..{left}(.5[lrcorner postp,urcorner postp]) |
| 135 |
withcolor .5[green,white]; |
| 136 |
draw postp withcolor .75[green,white]; |
| 137 |
endfig; |
| 138 |
|
| 139 |
nextfig; |
| 140 |
pickup thin nib; |
| 141 |
drawarrow (.5[llcorner postp,ulcorner postp])..(.5[lrcorner fpres,urcorner fpres]) |
| 142 |
withcolor .95[green,white]; |
| 143 |
draw fpres withcolor white; |
| 144 |
endfig; |
| 145 |
|
| 146 |
discontinue; |
| 147 |
|
| 148 |
header("The slideshow advantage"); |
| 149 |
bpoint("With the slideshow macros:"); |
| 150 |
|
| 151 |
nextfig; |
| 152 |
bullet.in("Only one input format is possible"); |
| 153 |
draw mp withcolor red; |
| 154 |
endfig; |
| 155 |
|
| 156 |
nextfig; |
| 157 |
bullet.in("Which converts rapidly into viewable output"); |
| 158 |
pickup thick nib; |
| 159 |
drawarrow (.5[lrcorner mp,urcorner mp]){right}..{right}(.5[llcorner vres,ulcorner vres]) |
| 160 |
withcolor .5[red,.5[.5[white,red],green]]; |
| 161 |
% I hope it's clear by this point that I'm playing this for laughs |
| 162 |
draw vres withcolor .5[.5[white,red],green]; |
| 163 |
endfig; |
| 164 |
|
| 165 |
nextfig; |
| 166 |
bullet.in("And then distills into the presentation"); |
| 167 |
pickup thick nib; |
| 168 |
drawarrow (.5[lrcorner vres,urcorner vres]){right} |
| 169 |
..{right}(.5[llcorner fpres,ulcorner fpres]) |
| 170 |
withcolor .5[.5[.5[white,red],green],white]; |
| 171 |
draw fpres withcolor white; |
| 172 |
endfig; |
| 173 |
|
| 174 |
nextfig; |
| 175 |
bullet.in("From which no post-processing is needed, since there are no post-processors supporting these macros"); |
| 176 |
endfig; |
| 177 |
|
| 178 |
discontinue; |
| 179 |
header("Limitations"); |
| 180 |
|
| 181 |
bpoint("Metapost doesn't handle text very well"); |
| 182 |
bpoint("It's difficult to include non-metapost graphics (e.g., bit-maps)"); |
| 183 |
bpoint("There's no provision for producing print-only versions of the information"); |
| 184 |
bpoint("There's no concept of presentation styles"); |
| 185 |
bpoint("It generally requires some configuration of ghostscript and metapost, especially if you use math"); |
| 186 |
bpoint("The other methods for producing presentations using TeX-family tools aren't as complicated as I suggested"); |
| 187 |
bpoint.in("I personally use my own plain-TeX style with just TeX, metapost, and dvipdfm"); |
| 188 |
|
| 189 |
discontinue; |
| 190 |
header("Strengths"); |
| 191 |
|
| 192 |
bpoint("Measurably less complex than metaobj"); |
| 193 |
bpoint("Small and simple, so shouldn't conflict with too many truly useful metapost packages"); |
| 194 |
bpoint("The ability to build up drawings can be helpful"); |
| 195 |
bpoint("And so are the pdfmarks"); |
| 196 |
bpoint("It's useful for cases where laTeX is used as a framework for a bunch of metapost slides"); |
| 197 |
bpoint("So it was worth uploading to CTAN, but it's not going to change the world"); |
| 198 |
|
| 199 |
discontinue; |
| 200 |
header(nullpicture); |
| 201 |
|
| 202 |
nextfig; |
| 203 |
hyperlabel(breaktowidth("Thanks for sticking to the end. Click on this text to start over.", .5lawidth)(ignore), (.5lawidth, .5laheight), "Start"); |
| 204 |
endfig; |
| 205 |
|
| 206 |
end |