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