Moving docs tree to docs-xml to make room for generated docs in the release tarball.
[ira/wip.git] / docs-xml / xslt / db2latex-xsl / xsl / slides / sample_foiltex / slides.tex
1 \documentclass[17pt,headrule,footrule,landscape]{foils}
2 \usepackage[latin1]{inputenc}
3 \usepackage{pstricks,pst-node,pst-text,pst-3d}
4 \usepackage{subfigure}
5 \usepackage{fancybox}
6 \usepackage{a4wide}
7 \usepackage{times}
8 \usepackage{fancyvrb}
9 \usepackage{amsmath,amsthm, amsfonts, amssymb, amsxtra,amsopn}
10 \usepackage{anysize}
11 \usepackage[pdftex,bookmarksnumbered,colorlinks,backref, bookmarks, breaklinks, linktocpage,hyperfigures,hyperindex,citecolor=blue,urlcolor=blue]{hyperref}
12 \usepackage[english]{babel}
13 \usepackage[pdftex]{graphicx}
14 \pdfcompresslevel=9
15 %------------------------------------------------------- Values and counters
16 \marginsize{1.5cm}{1.5cm}{0.5cm}{0.5cm}
17 \renewcommand\floatpagefraction{.9}
18 \renewcommand\topfraction{.9}
19 \renewcommand\bottomfraction{.9}
20 \renewcommand\textfraction{.1}
21
22 \usepackage[usenames,pdftex]{color}
23 %------------------------------------------------------- BfBlue Command
24 \newcommand{\bfblue}[1]{ \textcolor{blue}{\bf #1} }
25
26 %------------------------------------------------------- BfGreen Command
27 \newcommand{\bfgreen}[1]{ \textcolor{blue}{\bf #1} }
28
29 %------------------------------------------------------- BfRed Command
30 \newcommand{\bfred}[1]{ \textcolor{red}{\bf #1} }
31
32 %------------------------------------------------------- BfBlue Command
33 \newcommand{\emblue}[1]{ \textcolor{blue}{\emph{#1}} }
34
35 %------------------------------------------------------- BfGreen Command
36 \newcommand{\emgreen}[1]{ \textcolor{blue}{\emph{#1}} }
37
38 %------------------------------------------------------- BfRed Command
39 \newcommand{\emred}[1]{ \textcolor{red}{\emph{#1}} }
40
41 %------------------------------------------------------- Part Command
42 \newcommand{\part}[1]{
43 \foilhead{}
44 \vspace{2cm}
45 \begin{center}
46 \Huge{\textcolor{blue}{#1}}
47 \end{center}}
48  \newcommand{\dbz}{} 
49 %------------------------------------------------------- Slide Command
50 \newcommand{\slide}[1]{
51 \foilhead[-0.5in]{\large{\textcolor{blue}{#1}}}
52 }
53 \newcommand{\id}[1]{
54 \label{#1}
55 \hypertarget{#1}{}
56 }
57 % --------------------------------------------
58 \newenvironment{admminipage}{
59 \begin{Sbox}
60 \begin{minipage}
61 }{
62 \end{minipage}
63 \end{Sbox}
64 \fbox{\TheSbox}
65 }
66 \newlength{\admlength}
67 \newenvironment{admonition}[2] {
68 \hspace{0mm}\newline\hspace*\fill\newline
69 \noindent
70 \setlength{\fboxsep}{5pt}
71 \setlength{\admlength}{\linewidth}
72 \addtolength{\admlength}{-10\fboxsep}
73 \addtolength{\admlength}{-10\fboxrule}
74 \admminipage{\admlength}
75 \bfblue{\sc\large{#2}}\newline
76 \\[1mm]
77 %\sffamily
78 \includegraphics[width=1cm]{#1}
79 \addtolength{\admlength}{-1cm}
80 \addtolength{\admlength}{-20pt}
81 \begin{minipage}[lt]{\admlength}
82 \parskip=0.5\baselineskip \advance\parskip by 0pt plus 2pt
83 }{
84 \vspace{5mm}
85 \end{minipage}
86 \endadmminipage
87 \vspace{.5em}
88 \par
89 }
90 %--------------------------------------------------SLIDES INFORMATION
91 \title{{\black The Slides Document Type}}
92 \author{{\black }}
93  \begin{document}
94 \maketitle
95 %--------------------------------------------------SLIDES INFORMATION
96 \title{{\black The Slides Document Type}}
97 \author{{\black }}
98  
99 %---------------------------------------------------------------------- SLIDE 
100 \begin{slide}{Introduction}
101 \label{id2739608}
102
103 This is the introductory slide.
104
105 If you use foil groups (previously called sections), you can have introductory slides before the first group.
106
107 \begin{admonition}{figures/warning}{Warning! :)}% NOTICE: see the db2latex FAQ w.r.t db2latex variable $latex.admonition.path
108
109 This is a work in progress ("release early, release often")
110 \end{admonition}
111
112 \end{slide}
113                                                                         
114
115 %---------------------------------------------------------------------- PART 
116 \part{Purpose and History            }
117 %---------------------------------------------------------------------- PART 
118 \label{id2739637}
119
120
121 %---------------------------------------------------------------------- SLIDE 
122 \begin{slide}{What Are Slides?}
123 \label{id2739648}
124
125 \begin{itemize}
126 %--- Item
127 \item 
128 An XML presentation tool
129
130
131 %--- Item
132 \item 
133 Suitable for HTML or PDF presentations
134
135
136 %--- Item
137 \item 
138 Supported by Open Source software
139
140 \end{itemize}
141 \end{slide}
142
143 %---------------------------------------------------------------------- SLIDE 
144 \begin{slide}{Where Do They Come From?}
145 \label{id2739677}
146
147 \begin{itemize}
148 %--- Item
149 \item 
150 Maintained by the \href{http://docbook.sourceforge.net/}{DocBook Open Repository} Project at
151 \href{http://sourceforge.net/}{SourceForge}
152
153
154 %--- Item
155 \item 
156 Customization layer of \href{http://www.oasis-open.org/docbook/xml/simple/}{Simplified DocBook}
157
158 \end{itemize}
159 \end{slide}
160
161 %---------------------------------------------------------------------- SLIDE 
162 \begin{slide}{Why?}
163 \label{id2739724}
164
165 \begin{itemize}
166 %--- Item
167 \item 
168 So Norm could give presentations
169
170
171 %--- Item
172 \item 
173 So Norm could publish those presentations on the web
174
175
176 %--- Item
177 \item 
178 So Norm could have {\em accessible} presentations that didn't rely on the grotesque HTML output of some otherwise bloated, proprietary tool
179
180
181 %--- Item
182 \item 
183 So Norm could cut-and-paste from his DocBook articles and papers directly into his slides
184
185
186 %--- Item
187 \item 
188 Oh, let's face it: because it was there. Like the proverbial mountain.
189
190 \end{itemize}
191 \end{slide}
192                                                                         
193
194 %---------------------------------------------------------------------- PART 
195 \part{Authoring            }
196 %---------------------------------------------------------------------- PART 
197 \label{id2739773}
198
199
200 %---------------------------------------------------------------------- SLIDE 
201 \begin{slide}{Minimal Presentation}
202 \label{id2739783}
203
204 The smallest possible presentation looks like this:
205
206 \begin{Verbatim}[]
207 <?xml version='1.0'?>
208 <!DOCTYPE slides PUBLIC "-//Norman Walsh//DTD Slides XML V3.0b1//EN"
209                  "http://docbook.sourceforge.net/release/slides/3.0b1/slides.dtd">
210 <slides>
211 <slidesinfo>
212 <title>Presentation Title</title>
213 </slidesinfo>
214 <foil><title>Foil Title</title>
215 <para>Foil content</para>
216 </foil>
217 </slides>
218 \end{Verbatim}
219
220 Every presentation must contain at least one slide.
221 \end{slide}
222
223 %---------------------------------------------------------------------- SLIDE 
224 \begin{slide}{Presentation Metadata}
225 \label{id2739810}
226
227 Presentations usually have more metadata in the {\texttt{{slidesinfo}}} wrapper. Here's a typical example:
228
229 \begin{Verbatim}[]
230 <slidesinfo>
231   <title>Supporting Localized Generated Text</title>
232   <titleabbrev>Generated Text</titleabbrev>
233   <author><firstname>Norman</firstname><surname>Walsh</surname></author>
234   <pubdate>Sunday, 08 Apr 2001</pubdate>
235   <confgroup>
236     <conftitle>XSLTUK-01</conftitle>
237     <confdates>08 Apr - 09 Apr 2001</confdates>
238     <conftitle role="address">Keble College, Oxford, UK</conftitle>
239     <confnum>1</confnum>
240   </confgroup>
241   <releaseinfo role="version">Version TEST</releaseinfo>
242   <copyright><year>2001</year>
243              <holder>Sun Microsystems, Inc.</holder></copyright>
244 </slidesinfo>
245 \end{Verbatim}
246 \end{slide}
247
248 %---------------------------------------------------------------------- SLIDE 
249 \begin{slide}{Presentation Content}
250 \label{id2739830}
251
252 It's common for individual slides to consist of a single bulleted or numbered list. However, the full range of «block level» Simplified DocBook elements are avialable.
253 \end{slide}
254                                                                         
255
256 %---------------------------------------------------------------------- PART 
257 \part{Styling            }
258 %---------------------------------------------------------------------- PART 
259 \label{id2739862}
260
261
262 %---------------------------------------------------------------------- SLIDE 
263 \begin{slide}{HTML}
264 \label{id2739872}
265
266 There are a lot of HTML options. When you publish your presentation on the web, it's probably best to use one of the simpler, more accessible styles. For your actual live presentation, you may want to choose something fancier.
267 \end{slide}
268
269 %---------------------------------------------------------------------- SLIDE 
270 \begin{slide}{Plain HTML}
271 \label{id2739888}
272
273 \begin{itemize}
274 %--- Item
275 \item 
276 \href{../default/}{{\texttt{{default.\dbz{}xsl}}}}
277 and
278 \href{../plain/}{{\texttt{{plain.\dbz{}xsl}}}} produce fairly simple presentations
279
280
281 %--- Item
282 \item 
283 \href{../tables/}{{\texttt{{tables.\dbz{}xsl}}}}
284 uses a table to show the navigation context (somewhat like the tabular
285 \href{http://docbook.sourceforge.net/}{Website} style)
286
287
288 %--- Item
289 \item 
290 \href{../vslides/}{{\texttt{{vslides.\dbz{}xsl}}}} places navigation on the left side instead of the top and bottom
291
292
293 %--- Item
294 \item 
295 \href{../w3c/}{{\texttt{{w3c.\dbz{}xsl}}}} produces slides that resemble the format used by the W3C for presentations
296
297 \end{itemize}
298 \end{slide}
299
300 %---------------------------------------------------------------------- SLIDE 
301 \begin{slide}{Fancy HTML}
302 \label{id2739970}
303
304 \begin{itemize}
305 %--- Item
306 \item 
307 \href{../frames1/frames.html}{{\texttt{{frames.\dbz{}xsl}}}} uses frames. There are several options that you can apply:
308
309 \begin{itemize}
310 %--- Item
311 \item 
312 \href{../frames2/frames.html}{overlay} uses CSS absolute positioning to keep the navigation static on the pages (only works on recent browsers)
313
314
315 %--- Item
316 \item 
317 \href{../frames3/frames.html}{multiframe} uses additional frames to keep the navigation static on the pages
318
319
320 %--- Item
321 \item 
322 \href{../frames4/frames.html}{dynamic.toc} uses JavaScript to keep the table of contents and the current slide in sync (only works on recent browsers)
323
324
325 %--- Item
326 \item 
327 \href{../frames5/frames.html}{active.toc} uses JavaScript to make
328 the table of context «active» so that you can open and close the foil groups (only works on recent browsers)
329
330
331 %--- Item
332 \item 
333 These toc styles can be combined with \href{../frames6/frames.html}{overlay} or \href{../frames7/frames.html}{multiframe}
334
335 \end{itemize}
336
337 \end{itemize}
338 \end{slide}
339
340 %---------------------------------------------------------------------- SLIDE 
341 \begin{slide}{PDF}
342 \label{id2740078}
343
344 The {\texttt{{fo-\dbz{}plain.\dbz{}xsl}}} stylesheet produces XSL Formatting Objects that can subsequently be turned into PDF.
345 \end{slide}
346                                                                         
347
348 %---------------------------------------------------------------------- PART 
349 \part{Presentation            }
350 %---------------------------------------------------------------------- PART 
351 \label{id2740095}
352
353
354 %---------------------------------------------------------------------- SLIDE 
355 \begin{slide}{Look And Feel}
356 \label{id2740106}
357
358 For HTML display, most of the actual «look-and-feel» of the presentation is controlled by the CSS stylesheet(s) used.
359 \end{slide}
360
361 %---------------------------------------------------------------------- SLIDE 
362 \begin{slide}{Presentation Tips}
363 \label{id2740122}
364
365 \begin{itemize}
366 %--- Item
367 \item 
368 It's usually best if each slide is only one page (avoid scrolling).
369
370
371 %--- Item
372 \item 
373 If you'll be giving your presentation with a projector, make sure you know what resolution you'll have available and test your presentation at that resolution.
374
375
376 %--- Item
377 \item 
378 Make your fonts bigger so the folks in the back of the room can read your slides.
379
380
381 %--- Item
382 \item 
383 Test the equipment before your presentation begins. Really.
384
385
386 %--- Item
387 \item 
388 Speak more slowly. I always forget that one.
389
390 \end{itemize}
391 \end{slide}
392                                                                         
393
394 %---------------------------------------------------------------------- PART 
395 \part{Conclusions            }
396 %---------------------------------------------------------------------- PART 
397 \label{id2740169}
398
399
400 %---------------------------------------------------------------------- SLIDE 
401 \begin{slide}{Conclusions}
402 \label{id2740175}
403
404 It's customary to have a conclusions slide.
405 \end{slide}
406
407 %---------------------------------------------------------------------- SLIDE 
408 \begin{slide}{References}
409 \label{id2740187}
410
411 References are a good idea too.
412 \end{slide}
413
414 %---------------------------------------------------------------------- SLIDE 
415 \begin{slide}{Q\&A}
416 \label{id2740198}
417
418 Any questions?
419 \end{slide}
420 \end{document}