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