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