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