]> git.lyx.org Git - lyx.git/blob - lib/examples/Foils.lyx
Implement return codes consistently.
[lyx.git] / lib / examples / Foils.lyx
1 #LyX 1.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 221
3 \textclass foils
4 \begin_preamble
5 \raggedright
6 \MyLogo{-\LyX{} and \FoilTeX{}: What a team!-}
7 \end_preamble
8 \options dvips
9 \language english
10 \inputencoding default
11 \fontscheme default
12 \graphics dvips
13 \paperfontsize default
14 \spacing single
15 \papersize Default
16 \paperpackage a4
17 \use_geometry 0
18 \use_amsmath 0
19 \use_natbib 0
20 \use_numerical_citations 0
21 \paperorientation portrait
22 \paperwidth 0cm
23 \paperheight 0cm
24 \leftmargin 0cm
25 \topmargin 0cm
26 \rightmargin 0cm
27 \bottommargin 0cm
28 \headheight 0cm
29 \headsep 0cm
30 \footskip 0cm
31 \secnumdepth 0
32 \tocdepth 3
33 \paragraph_separation indent
34 \defskip medskip
35 \quotes_language english
36 \quotes_times 2
37 \papercolumns 1
38 \papersides 1
39 \paperpagestyle default
40 \bullet 0
41 5
42 2
43 -1
44 \end_bullet
45 \bullet 1
46 5
47 4
48 -1
49 \end_bullet
50 \bullet 2
51 4
52 8
53 -1
54 \end_bullet
55 \bullet 3
56 1
57 3
58 -1
59 \end_bullet
60
61 \layout Title
62 \added_space_bottom 7pt 
63 Foils Class 
64 \layout Standard
65
66
67 \begin_inset ERT
68 status Collapsed
69
70 \layout Standard
71
72 \backslash 
73 hrule height 7pt
74 \end_inset 
75
76
77 \layout Author
78
79
80 \noun on 
81 Allan Rae 
82 \noun default 
83 \layout Date
84
85 November 19 1997
86 \layout Abstract
87
88 LyX and FoilTeX combine to provide a powerful presentation package for creating
89  
90 \begin_inset Quotes eld
91 \end_inset 
92
93 foils
94 \begin_inset Quotes erd
95 \end_inset 
96
97  also known as slides and overhead transparencies.
98 \layout Foilhead
99
100 This is a Foilhead
101 \layout Standard
102
103
104 \begin_inset ERT
105 status Collapsed
106
107 \layout Standard
108
109 \backslash 
110 hrule height 3pt
111 \end_inset 
112
113  
114 \layout Standard
115
116 A Foilhead starts a new foil.
117  A 
118 \emph on 
119 short
120 \emph default 
121  version is also provided that reduces the separation between the Foilhead
122  and the body of the foil.
123  Almost all the environments found in other classes are also supported.
124 \layout Itemize
125
126
127 \begin_inset ERT
128 status Collapsed
129
130 \layout Standard
131
132 \backslash 
133 zerolistvertdimens{}
134 \end_inset 
135
136 The new Itemize Bullet Selection popup
137 \begin_deeper 
138 \layout Itemize
139
140 is tailor-made for use with the foils class
141 \begin_deeper 
142 \layout Itemize
143
144 allowing you to select the bullet used
145 \begin_deeper 
146 \layout Itemize
147
148 at each of the four levels of the Itemize environment
149 \end_deeper 
150 \end_deeper 
151 \end_deeper 
152 \layout Itemize
153
154 NOTE: to get the full capabilities of the Itemize Bullet Selection popup
155  read the Special Tools manual and the ItemizeBullets.lyx file included with
156  the examples.
157 \layout Itemize
158
159 NOTE 2: To get your list spacing small like this use the FoilTeX command:
160  
161 \family typewriter 
162
163 \backslash 
164 zerolistvertdimens{}
165 \family default 
166  set as TeX at the start of the first item.
167 \layout ShortFoilhead
168
169 This is a ShortFoilhead
170 \layout Standard
171
172
173 \begin_inset ERT
174 status Collapsed
175
176 \layout Standard
177
178 \backslash 
179 hrule height 3pt
180 \end_inset 
181
182
183 \layout Standard
184
185 The foils class has been extended to provide two additional bullet-lists.
186  These lists are namely:
187 \layout TickList
188
189 TickList
190 \layout Standard
191
192 and
193 \layout CrossList
194
195 CrossList
196 \layout Standard
197
198 These two lists were added because the listing of do's and don'ts or good
199  and bad are relatively common in foils.
200  Providing a dedicated paragraph style for these occasions should allow
201  faster entry and simplify interaction with LyX.
202 \layout Rotatefoilhead
203
204 Rotatefoilhead
205 \layout Standard
206
207
208 \backslash 
209 hrule height 3pt
210 \layout Itemize
211
212 Create landscape foils by using Rotatefoilhead
213 \layout Itemize
214
215 Note that if you are viewing this with xdvi the page will appear to overrun
216  the page dimensions because it xdvi doesn't rotate the text
217 \layout Itemize
218
219 If you view this document using ghostview or something similar then the
220  page should appear rotated.
221  If not then you probably don't have the necessary dvips driver.
222 \layout Definition*
223
224 There are also several environments specially designed for presenting Theorems,
225  Lemmas, Corollaries, Propositions, Proofs and Definitions.
226  These are available as numbered or unnumbered environments.
227 \layout ShortRotatefoilhead
228
229 ShortRotateFoilhead
230 \layout Standard
231
232
233 \begin_inset ERT
234 status Collapsed
235
236 \layout Standard
237
238 \backslash 
239 hrule height 3pt
240 \end_inset 
241
242
243 \layout Itemize
244
245 Again the short version reduces the space below the heading
246 \layout Itemize
247
248 Another way to control the amount of separation is to adjust the length
249  in the preamble.
250  This will affect both the normal and short versions of foilhead and rotatefoilh
251 ead.
252  For example,
253 \newline 
254
255 \family typewriter 
256  
257 \backslash 
258 setlength{
259 \backslash 
260 foilheadskip}{-0.5in} 
261 \family default 
262
263 \newline 
264 will reduce the spacing by 0.5 inches.
265  Other units include mm (millimeters) and pt (points).
266 \layout Itemize
267
268 The 
269 \emph on 
270 short
271 \emph default 
272  versions of the foilheads reduce the separation by 0.5 inches (approximately
273  12.5mm).
274 \layout ShortFoilhead
275
276 Tricky Proofs
277 \layout Standard
278
279
280 \begin_inset ERT
281 status Collapsed
282
283 \layout Standard
284
285 \backslash 
286 hrule height 3pt 
287 \end_inset 
288
289
290 \layout Lemma*
291
292 Several consecutive paragraphs of type
293 \emph on 
294  Theorem
295 \emph default 
296
297 \emph on 
298 Lemma
299 \emph default 
300
301 \emph on 
302 Corollary
303 \emph default 
304
305 \emph on 
306 Proposition
307 \emph default 
308
309 \emph on 
310 Definition
311 \emph default 
312
313 \emph on 
314 Proof
315 \emph default 
316  or the starred versions of these are part of the same environment.
317 \layout Lemma*
318
319 As you can see, we are still in the same lemma.
320 \layout Standard
321
322
323 \begin_inset ERT
324 status Collapsed
325
326 \layout Standard
327 %
328 \end_inset 
329
330
331 \layout Lemma*
332
333 To force this second Lemma straight after the first it's necessary to add
334  some dividing text or as I've done in this case separate the two by inserting
335  a 
336 \emph on 
337 TeX
338 \emph default 
339  inset that simply contains a 
340 \begin_inset Quotes eld
341 \end_inset 
342
343 %
344 \begin_inset Quotes erd
345 \end_inset 
346
347 .
348  This is simply a comment character in LaTeX but the insertion of the LaTeX
349  paragraph is sufficient to fool LyX into correctly handling the multiple
350  environments.
351 \layout Lemma*
352
353 NOTE: You only have this problem with multiple paragraphs of the same type
354  
355 \emph on 
356 not
357 \emph default 
358  with different types such as a Proof followed by a Theorem.
359 \layout ShortFoilhead
360
361 Tables and Figures
362 \layout Standard
363
364
365 \begin_inset ERT
366 status Collapsed
367
368 \layout Standard
369
370 \backslash 
371 hrule height 3pt 
372 \end_inset 
373
374
375 \layout Standard
376 \added_space_top 0.3cm \added_space_bottom 0.3cm \align center 
377
378 \begin_inset  Tabular
379 <lyxtabular version="3" rows="3" columns="3">
380 <features>
381 <column alignment="center" valignment="top" leftline="true" width="0pt">
382 <column alignment="center" valignment="top" leftline="true" width="0pt">
383 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
384 <row topline="true" bottomline="true">
385 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
386 \begin_inset Text
387
388 \layout Standard
389
390 Column1
391 \end_inset 
392 </cell>
393 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
394 \begin_inset Text
395
396 \layout Standard
397
398 Column2
399 \end_inset 
400 </cell>
401 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
402 \begin_inset Text
403
404 \layout Standard
405
406 Column3
407 \end_inset 
408 </cell>
409 </row>
410 <row topline="true">
411 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
412 \begin_inset Text
413
414 \layout Standard
415
416 A
417 \end_inset 
418 </cell>
419 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
420 \begin_inset Text
421
422 \layout Standard
423
424
425 \emph on 
426 simple
427 \end_inset 
428 </cell>
429 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
430 \begin_inset Text
431
432 \layout Standard
433
434 table
435 \end_inset 
436 </cell>
437 </row>
438 <row topline="true" bottomline="true">
439 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
440 \begin_inset Text
441
442 \layout Standard
443
444
445 \bar under 
446 example
447 \end_inset 
448 </cell>
449 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
450 \begin_inset Text
451
452 \layout Standard
453
454 with
455 \end_inset 
456 </cell>
457 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
458 \begin_inset Text
459
460 \layout Standard
461
462
463 \series bold 
464 foils
465 \end_inset 
466 </cell>
467 </row>
468 </lyxtabular>
469
470 \end_inset 
471
472
473 \layout Standard
474
475 Both tables and figures are supported in Foils however floats don't float
476  instead they appear exactly where they appear in the text.
477  Any placement parameters you set will be ignored.
478 \begin_inset Float table
479 placement htbp
480 wide false
481 collapsed false
482
483 \layout Standard
484 \align center 
485
486 \begin_inset  Tabular
487 <lyxtabular version="3" rows="3" columns="3">
488 <features>
489 <column alignment="center" valignment="top" leftline="true" width="0pt">
490 <column alignment="center" valignment="top" leftline="true" width="0pt">
491 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
492 <row topline="true" bottomline="true">
493 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
494 \begin_inset Text
495
496 \layout Standard
497
498 Row1
499 \end_inset 
500 </cell>
501 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
502 \begin_inset Text
503
504 \layout Standard
505
506
507 \emph on 
508 Another
509 \end_inset 
510 </cell>
511 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
512 \begin_inset Text
513
514 \layout Standard
515
516 simple
517 \end_inset 
518 </cell>
519 </row>
520 <row topline="true">
521 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
522 \begin_inset Text
523
524 \layout Standard
525
526 Row2
527 \end_inset 
528 </cell>
529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
530 \begin_inset Text
531
532 \layout Standard
533
534
535 \bar under 
536 table
537 \end_inset 
538 </cell>
539 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
540 \begin_inset Text
541
542 \layout Standard
543
544 example
545 \end_inset 
546 </cell>
547 </row>
548 <row topline="true" bottomline="true">
549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
550 \begin_inset Text
551
552 \layout Standard
553
554 Row3
555 \end_inset 
556 </cell>
557 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
558 \begin_inset Text
559
560 \layout Standard
561
562
563 \series bold 
564 with
565 \end_inset 
566 </cell>
567 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
568 \begin_inset Text
569
570 \layout Standard
571
572 foils
573 \end_inset 
574 </cell>
575 </row>
576 </lyxtabular>
577
578 \end_inset 
579
580
581 \layout Caption
582
583 This is a non-floating 
584 \begin_inset Quotes eld
585 \end_inset 
586
587 float
588 \begin_inset Quotes erd
589 \end_inset 
590
591  table
592 \end_inset 
593
594
595 \layout ShortFoilhead
596
597 Headers and Footers
598 \layout Standard
599
600
601 \begin_inset ERT
602 status Collapsed
603
604 \layout Standard
605
606 \backslash 
607 hrule height 3pt
608 \end_inset 
609
610
611 \layout Standard
612
613 FoilTeX provides some powerful header and footer capabilities
614 \begin_inset Foot
615 collapsed true
616
617 \layout Standard
618
619 You can also use the standard footnotes like this one.
620 \end_inset 
621
622  that are best set in the preamble although they may be set at any point
623  in a document.
624  If you want to change these settings in the document the best place to
625  do so is at the very top of a foil ie.
626  straight after the foilhead.
627 \layout Standard
628
629 The left-footer is controlled by two commands: 
630 \family typewriter 
631
632 \backslash 
633 MyLogo{}
634 \family default 
635  and 
636 \family typewriter 
637
638 \backslash 
639 Restriction{}
640 \family default 
641 .
642  The first is meant to allow you to include a graphic logo on your foils
643  and defaults to 
644 \begin_inset Quotes eld
645 \end_inset 
646
647 -Typeset by FoilTeX-
648 \begin_inset Quotes erd
649 \end_inset 
650
651 .
652  While the second is meant to provide a classification for the audience
653  eg.
654  Confidential.
655 \layout Standard
656
657 The remaining corners are controlled by:
658 \layout Standard
659
660
661 \family typewriter 
662
663 \backslash 
664 rightfooter{}
665 \family default 
666  -- which defaults to page numbers
667 \layout Standard
668
669
670 \family typewriter 
671
672 \backslash 
673 rightheader{}
674 \layout Standard
675
676
677 \family typewriter 
678
679 \backslash 
680 leftheader{}
681 \layout Foilhead
682
683 Further Reading
684 \layout Standard
685
686
687 \begin_inset ERT
688 status Collapsed
689
690 \layout Standard
691
692 \backslash 
693 hrule height 3pt
694 \end_inset 
695
696
697 \layout Standard
698
699 Your LaTeX distribution should include some documentation on FoilTeX.
700  There are many more features in FoilTeX than those described here.
701  For example, FoilTeX can automatically place a horizontal rule between
702  the headers and all foilheads, and between the body and the footers.
703 \layout Bibliography
704 \bibitem {2}
705
706 Jim Hafner, 
707 \begin_inset Quotes eld
708 \end_inset 
709
710 The FoilTeX Class Package
711 \begin_inset Quotes erd
712 \end_inset 
713
714
715 \family typewriter 
716 .../texmf/texmf/doc/latex/foiltex/foiltex.dvi
717 \layout Bibliography
718 \bibitem {2}
719
720 LyX Documentation Team, 
721 \begin_inset Quotes eld
722 \end_inset 
723
724 Advanced Editing Tools
725 \begin_inset Quotes erd
726 \end_inset 
727
728 .
729 \the_end