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