]> git.lyx.org Git - lyx.git/blob - lib/doc/Extended.lyx
Extended manual: fix description of tex2lyx
[lyx.git] / lib / doc / Extended.lyx
1 #LyX 1.5.2svn created this file. For more info see http://www.lyx.org/
2 \lyxformat 276
3 \begin_document
4 \begin_header
5 \textclass book
6 \begin_preamble
7 \usepackage{multicol}
8 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
9 \end_preamble
10 \language english
11 \inputencoding latin1
12 \font_roman default
13 \font_sans default
14 \font_typewriter default
15 \font_default_family default
16 \font_sc false
17 \font_osf false
18 \font_sf_scale 100
19 \font_tt_scale 100
20 \graphics default
21 \paperfontsize default
22 \spacing single
23 \papersize default
24 \use_geometry false
25 \use_amsmath 0
26 \use_esint 0
27 \cite_engine basic
28 \use_bibtopic false
29 \paperorientation portrait
30 \secnumdepth 3
31 \tocdepth 3
32 \paragraph_separation indent
33 \defskip medskip
34 \quotes_language english
35 \papercolumns 1
36 \papersides 2
37 \paperpagestyle headings
38 \tracking_changes false
39 \output_changes false
40 \author "" 
41 \author "" 
42 \end_header
43
44 \begin_body
45
46 \begin_layout Title
47 Extended LyX Features
48 \end_layout
49
50 \begin_layout Author
51 by the LyX Team
52 \begin_inset Foot
53 status collapsed
54
55 \begin_layout Standard
56 \noindent
57 Principal maintainer of this file is
58 \noun on
59  Mike Ressler
60 \noun default
61 .
62  If you have comments or error corrections, please send them to the LyX
63  Documentation mailing list, <lyx-docs@lists.lyx.org>.
64 \end_layout
65
66 \end_inset
67
68  
69 \end_layout
70
71 \begin_layout Standard
72 \begin_inset LatexCommand tableofcontents
73
74 \end_inset
75
76
77 \end_layout
78
79 \begin_layout Chapter
80 Introduction
81 \end_layout
82
83 \begin_layout Standard
84 The 
85 \emph on
86 Extended LyX Features
87 \emph default
88  manual, which you are now reading, is essentially Part II of the 
89 \emph on
90 User's Guide\SpecialChar \@.
91
92 \emph default
93  The reason for splitting this document is simple: the 
94 \emph on
95 User's Guide
96 \emph default
97  is already huge, and it contains all of the basic features one needs to
98  know in order to prepare most documents.
99  However, the LyX Team has a long-term goal of making LyX extensible through
100  various configuration files and external packages.
101  That means that if you want to support the Fizzwizzle LaTeX package, you
102  can create a layout file for it without having to alter LyX itself.
103  We've already had contributions of several new features this way.
104  This is the place where all of that gets documented.
105 \end_layout
106
107 \begin_layout Standard
108 This manual also documents some special features, like fax support, version
109  control, and SGML support, which require additional software to work properly.
110  Lastly, there's a chapter of LaTeX tools and tips, things you can use to
111  spruce up your documents by directly using the powerful features of LaTeX.
112  After all, LyX 
113 \emph on
114 is
115 \emph default
116  only WYSIWYM, and will only ever interface to certain LaTeX features.
117 \end_layout
118
119 \begin_layout Standard
120 Of course, with all of this extra documentation, 
121 \emph on
122 Extended LyX Features
123 \emph default
124  may itself grow too big for its britches.
125  In that case, you can just call it the 
126 \begin_inset Quotes eld
127 \end_inset
128
129 Overextended Manual
130 \begin_inset Quotes erd
131 \end_inset
132
133  for fun!
134 \end_layout
135
136 \begin_layout Standard
137 If you haven't read the 
138 \emph on
139 Introduction
140 \emph default
141  yet, you are definitely in the wrong manual.
142  The 
143 \emph on
144 Introduction
145 \emph default
146  is the first place to go, since it will direct you to the correct manual,
147  and it also describes the notation and format of all of the manuals.
148  You should also be thoroughly familiar with the 
149 \emph on
150 User's Guide
151 \emph default
152  and all of the basic features of LyX.
153  
154 \end_layout
155
156 \begin_layout Standard
157 In this document, many sections are independent articles contributed by
158  an individual and are noted as such.
159  This person is generally whoever wrote the layout file for the new document
160  class or LaTeX package, or implemented the feature.
161  If there is no mention of an author to a chapter [or chapter sections],
162  that means it was written by the LyX Documentation Team.
163 \end_layout
164
165 \begin_layout Standard
166 Since all the topics in this manual depend heavily on LyX's interaction
167  with LaTeX, this first chapter covers the inner workings of LyX and how
168  to direct LyX to generate exactly the LaTeX code you want.
169  It is obviously for more seasoned LyX users.
170 \end_layout
171
172 \begin_layout Chapter
173 LyX and LaTeX
174 \end_layout
175
176 \begin_layout Section
177 How LyX Uses LaTeX
178 \end_layout
179
180 \begin_layout Standard
181 \begin_inset LatexCommand label
182 name "sec:lyxandlatex"
183
184 \end_inset
185
186 This chapter is for both TeX-nicians and the LaTeX-curious.
187  In it, we'll explain how LyX and LaTeX work together to produce printable
188  output.
189  This is the only place in any of the manuals where we assume you know something
190  about LaTeX.
191 \end_layout
192
193 \begin_layout Standard
194 At one time, we called LyX a 
195 \begin_inset Quotes eld
196 \end_inset
197
198 WYSIWYM frontend to LaTeX,
199 \begin_inset Quotes erd
200 \end_inset
201
202  but that's no longer true.
203  There are frontends to LaTeX out there.
204  They are basically editors with the ability to run LaTeX and mark any errors
205  in the file you're editing.
206  Although LyX 
207 \emph on
208 is
209 \emph default
210  an editor, and it 
211 \emph on
212 does
213 \emph default
214  run LaTeX, and it also marks errors in the file, it also does much, much
215  more.
216  Thanks to the WYSIWYM concept, you don't need LaTeX to use LyX effectively.
217  LyX has also added a few extensions to LaTeX.
218  Try the following sometime: select 
219 \family sans
220 Export\SpecialChar \menuseparator
221 LaTeX
222 \family default
223  from the 
224 \family sans
225 \bar under
226 F
227 \bar default
228 ile
229 \family default
230  menu, then look at the preamble of the resulting 
231 \family typewriter
232 .tex
233 \family default
234  file.
235  You'll notice a variety of new macros defined specifically by LyX.
236  These macros are defined automatically, according to the features you use
237  in the document.
238 \end_layout
239
240 \begin_layout Standard
241 There are several commands that automatically invoke LaTeX.
242  They are:
243 \end_layout
244
245 \begin_layout Itemize
246
247 \family sans
248 \bar under
249 V
250 \bar default
251 iew\SpecialChar \menuseparator
252 View\InsetSpace ~
253
254 \emph on
255 Format
256 \end_layout
257
258 \begin_layout Itemize
259
260 \family sans
261 \bar under
262 V
263 \bar default
264 iew\SpecialChar \menuseparator
265
266 \bar under
267 U
268 \bar default
269 pdate\SpecialChar \menuseparator
270
271 \emph on
272 Format
273 \end_layout
274
275 \begin_layout Itemize
276
277 \family sans
278 \bar under
279 F
280 \bar default
281 ile
282 \bar under
283 \SpecialChar \menuseparator
284 P
285 \bar default
286 rint
287 \end_layout
288
289 \begin_layout Itemize
290
291 \family sans
292 \bar under
293 F
294 \bar default
295 ile
296 \bar under
297 \SpecialChar \menuseparator
298 F
299 \bar default
300 ax
301 \end_layout
302
303 \begin_layout Standard
304 They will only invoke LaTeX if the file has changed since the last time
305  LaTeX was run.
306  
307 \end_layout
308
309 \begin_layout Standard
310 When you run LaTeX on the file you're editing, LyX performs these steps:
311 \end_layout
312
313 \begin_layout Enumerate
314 Convert the document to LaTeX and save to a file with the extension 
315 \family typewriter
316 .tex
317 \family default
318  in place of 
319 \family typewriter
320 .lyx
321 \family default
322 .
323 \end_layout
324
325 \begin_layout Enumerate
326 Run LaTeX on the 
327 \family typewriter
328 .tex
329 \family default
330  file (maybe several times).
331 \end_layout
332
333 \begin_layout Enumerate
334 If there are any errors, insert error boxes in the document to mark where
335  they are.
336  These boxes are transient and are not saved along with the document.
337 \end_layout
338
339 \begin_layout Standard
340 If you've run LaTeX using 
341 \family sans
342 View\InsetSpace ~
343 DVI
344 \family default
345 , LyX then executes 
346 \family typewriter
347 xdvi
348 \family default
349  on the DVI-file.
350  If you've used 
351 \family sans
352 View\InsetSpace ~
353 PostScript
354 \family default
355  or 
356 \family sans
357 \bar under
358 P
359 \bar default
360 rint
361 \family default
362 , LyX performs two more steps:
363 \end_layout
364
365 \begin_layout Itemize
366 Run 
367 \family typewriter
368 dvips
369 \family default
370  to convert the DVI file to PostScript:
371 \end_layout
372
373 \begin_deeper
374 \begin_layout Itemize
375 For 
376 \family sans
377 View\InsetSpace ~
378 PostScript
379 \family default
380 , the output file has the extension 
381 \family typewriter
382 .ps_tmp
383 \end_layout
384
385 \begin_layout Itemize
386 For 
387 \family sans
388 \bar under
389 P
390 \bar default
391 rint
392 \family default
393 \InsetSpace ~
394 , the output file has the extension 
395 \family typewriter
396 .ps
397 \family default
398 , as expected.
399 \end_layout
400
401 \end_deeper
402 \begin_layout Itemize
403 Execute 
404 \family typewriter
405 ghostview
406 \family default
407  or send the PostScript file to the printer.
408 \end_layout
409
410 \begin_layout Section
411 \begin_inset Quotes eld
412 \end_inset
413
414 Help! LyX generated an unreadable 
415 \family typewriter
416 .tex
417 \family default
418  file!
419 \begin_inset Quotes erd
420 \end_inset
421
422
423 \end_layout
424
425 \begin_layout Standard
426 Die-hard LaTeX users will scream and howl this into the night, then declare
427  LyX useless, simply because they didn't RTFM.
428 \end_layout
429
430 \begin_layout Standard
431 We're going to set the record straight.
432  LyX produces two kinds of LaTeX files.
433  One is human readable.
434  The other is LyX readable.
435  Every time LyX executes LaTeX, it produces a LaTeX file that it can easily
436  scan for errors.
437  The resulting 
438 \family typewriter
439 .tex
440 \family default
441  file is not human readable.
442  Don't even try to read it.
443  If you want a 
444 \family typewriter
445 .tex
446 \family default
447  file that you can send to a colleague, select 
448 \family sans
449 \bar under
450 E
451 \bar default
452 xport\SpecialChar \menuseparator
453
454 \bar under
455 L
456 \bar default
457 aTeX
458 \family default
459  from the 
460 \family sans
461 \bar under
462 F
463 \bar default
464 ile
465 \family default
466  menu.
467 \end_layout
468
469 \begin_layout Section
470 Translating LaTeX files into LyX
471 \begin_inset LatexCommand label
472 name "sec:Translating-LaTeX-files"
473
474 \end_inset
475
476
477 \end_layout
478
479 \begin_layout Standard
480 You can import a LaTeX file into LyX by using the 
481 \family sans
482 \bar under
483 F
484 \bar default
485 ile\SpecialChar \menuseparator
486
487 \bar under
488 I
489 \bar default
490 mport\SpecialChar \menuseparator
491
492 \bar under
493 L
494 \bar default
495 aTeX
496 \family default
497  command in LyX.
498  This will call a program named 
499 \family typewriter
500 tex2lyx
501 \family default
502 ---which will create a file 
503 \family typewriter
504 foo.lyx
505 \family default
506  from the file 
507 \family typewriter
508 foo.tex
509 \family default
510 ---and then open that file.
511 \end_layout
512
513 \begin_layout Standard
514
515 \family typewriter
516 tex2lyx
517 \family default
518  will translate most legal LaTeX, but not everything.
519  It will leave things it doesn't understand in TeX mode, so after translating
520  a file with 
521 \family typewriter
522 tex2lyx
523 \family default
524 , you can look for red text and hand-edit it to look right.
525 \end_layout
526
527 \begin_layout Standard
528 If you just want to put a piece of LaTeX code into a LyX file, see Section\InsetSpace ~
529
530 \begin_inset LatexCommand ref
531 reference "sec:latexcodes"
532
533 \end_inset
534
535 .
536 \end_layout
537
538 \begin_layout Section
539 Inserting LaTeX Code into LyX Documents 
540 \begin_inset LatexCommand label
541 name "sec:Inserting-LaTeX-Code"
542
543 \end_inset
544
545
546 \end_layout
547
548 \begin_layout Standard
549 \begin_inset LatexCommand label
550 name "sec:latexcodes"
551
552 \end_inset
553
554  This is a rather important point: You can always insert LaTeX code into
555  any LyX document.
556  LyX simply cannot, and will probably never be able to, display every possible
557  LaTeX construct.
558  If ever you need to insert LaTeX commands into your LyX document, you can
559  use the ERT box, which you can insert into your document with 
560 \family sans
561 \bar under
562 I
563 \bar default
564 nsert\SpecialChar \menuseparator
565
566 \bar under
567 T
568 \bar default
569 eX
570 \family default
571 .
572  The ERT box comes in three forms: collapsed, open, and inlined.
573  The first two are used just like any other collapsible (foldable) box (such
574  as footnotes), and are useful for significant amounts of LaTeX commands.
575  An 
576 \begin_inset Quotes eld
577 \end_inset
578
579 inlined
580 \begin_inset Quotes erd
581 \end_inset
582
583  ERT box displays its content as part of the button, and is useful for very
584  short sections of LaTeX commands.
585  
586 \begin_inset ERT
587 status inlined
588
589 \begin_layout Standard
590
591 % like this
592 \end_layout
593
594 \end_inset
595
596
597 \end_layout
598
599 \begin_layout Standard
600 You can switch between all three by right-clicking on the ERT.
601  Note that if you want more than one line of LaTeX commands, you cannot
602  use the inlined mode.
603 \end_layout
604
605 \begin_layout Standard
606 Here's an example of inserting LaTeX commands in a LyX document.
607  The code looks like this:
608 \end_layout
609
610 \begin_layout LyX-Code
611
612 \backslash
613 begin{tabular}{ll}
614 \newline
615
616 \backslash
617 begin{minipage}{5cm}
618 \newline
619 This is an example for a minipage environment.
620  You 
621 \newline
622 can put nearly everything in it, even (non-floating) 
623 \newline
624 figures and tables.
625  
626 \newline
627
628 \backslash
629 end{minipage}
630 \newline
631 &
632 \newline
633
634 \backslash
635 begin{minipage}{5cm}
636 \newline
637
638 \backslash
639 begin{verbatim}
640 \newline
641
642 \backslash
643 begin{minipage}{5cm}
644 \newline
645 This ...
646  
647 \newline
648
649 \backslash
650 end{minipage}
651 \newline
652
653 \backslash
654 end{verbatim}
655 \newline
656
657 \backslash
658 end{minipage}
659 \newline
660
661 \backslash
662 end{tabular}
663 \end_layout
664
665 \begin_layout LyX-Code
666
667 \end_layout
668
669 \begin_layout Standard
670 The ERT box containing this text is directly after this paragraph.
671  Those of you reading the manual online will only see a bunch of funky text
672  in red.
673  Those reading a printed version of the manuals will see the actual results:
674 \end_layout
675
676 \begin_layout Standard
677 \begin_inset ERT
678 status collapsed
679
680 \begin_layout Standard
681
682
683 \backslash
684 begin{tabular}{ll}
685 \end_layout
686
687 \begin_layout Standard
688
689
690 \backslash
691 begin{minipage}{5cm}
692 \end_layout
693
694 \begin_layout Standard
695
696 This is an example for a minipage environment.
697  You can put nearly everything in it, even (non-floating) figures and tables.
698  
699 \end_layout
700
701 \begin_layout Standard
702
703
704 \backslash
705 end{minipage}
706 \end_layout
707
708 \begin_layout Standard
709
710 &
711 \end_layout
712
713 \begin_layout Standard
714
715
716 \backslash
717 begin{minipage}{5cm}
718 \end_layout
719
720 \begin_layout Standard
721
722
723 \backslash
724 begin{verbatim}
725 \end_layout
726
727 \begin_layout Standard
728
729
730 \backslash
731 begin{minipage}{5cm}
732 \end_layout
733
734 \begin_layout Standard
735
736 This ...
737  
738 \end_layout
739
740 \begin_layout Standard
741
742
743 \backslash
744 end{minipage}
745 \end_layout
746
747 \begin_layout Standard
748
749
750 \backslash
751 end{verbatim}
752 \end_layout
753
754 \begin_layout Standard
755
756
757 \backslash
758 end{minipage}
759 \end_layout
760
761 \begin_layout Standard
762
763
764 \backslash
765 end{tabular}
766 \end_layout
767
768 \end_inset
769
770
771 \end_layout
772
773 \begin_layout Standard
774 In addition to these two methods, you can also create a separate file containing
775  some complex LaTeX structure.
776  You can then use 
777 \family sans
778 \bar under
779 I
780 \bar default
781 nsert\SpecialChar \menuseparator
782 Chil
783 \bar under
784 d
785 \bar default
786 \InsetSpace ~
787 Document
788 \family default
789  to include your file (you should select the type 
790 \family sans
791 Input
792 \family default
793 ).
794  We recommend that you only do this if you have a 
795 \family typewriter
796 .tex
797 \family default
798  file which you 
799 \emph on
800 know
801 \emph default
802  works already.
803  Otherwise, you'll have a big job tracking down LaTeX errors\SpecialChar \ldots{}
804
805 \end_layout
806
807 \begin_layout Standard
808 There are a few last notes to emphasize:
809 \end_layout
810
811 \begin_layout Itemize
812 Inside of LyX, LaTeX code appears 
813 \emph on
814 in red
815 \end_layout
816
817 \begin_layout Itemize
818 LyX 
819 \emph on
820 does not
821 \emph default
822  check if your LaTeX code is correct.
823 \end_layout
824
825 \begin_layout Itemize
826 Beware reinventing the wheel.
827 \end_layout
828
829 \begin_layout Standard
830 That last note refers to two things.
831  First, LyX does have quite a few features tucked into it, and more are
832  coming.
833  Be sure to check the manuals to make sure that LyX doesn't have such-and-such
834  feature before you go off merrily coding LaTeX.
835  Second, there are numerous LaTeX packages out there to do all sorts of
836  things, from labels to envelopes to fancy multipage tables.
837  Check out a CTAN site for details (see Section 
838 \begin_inset Quotes eld
839 \end_inset
840
841 Requirements
842 \begin_inset Quotes erd
843 \end_inset
844
845  of the 
846 \emph on
847 User's Guide
848 \emph default
849 ).
850 \begin_inset Foot
851 status open
852
853 \begin_layout Standard
854 Note from 
855 \noun on
856 John Weiss
857 \noun default
858 : I seem to do this an awful lot.
859  Sat down and merrily began coding something to print out labels, only to
860  learn that there were already 2 different LaTeX packages to do this.
861  Worse yet --- I had them already!
862 \end_layout
863
864 \end_inset
865
866
867 \end_layout
868
869 \begin_layout Standard
870 If you do need to do some wild and fancy things within your document, be
871  sure to check out a good LaTeX book for assistance.
872  There are a number of them listed in the bibliography of the 
873 \emph on
874 User's Guide
875 \emph default
876 .
877 \end_layout
878
879 \begin_layout Standard
880 There are a number of LaTeX commands which have to be placed before the
881  beginning of the actual text.
882  They go into the preamble, and this is explained in the next section.
883 \end_layout
884
885 \begin_layout Section
886 LyX and the LaTeX Preamble
887 \end_layout
888
889 \begin_layout Subsection
890 About the LaTeX Preamble
891 \end_layout
892
893 \begin_layout Standard
894 \begin_inset LatexCommand label
895 name "sec:preamble"
896
897 \end_inset
898
899 If you already know LaTeX, there is no need to explain here what the preamble
900  is good for.
901  If you don't, the following will give you some ideas --- we recommend again
902  that you consult a LaTeX book for further information.
903  In any case, you should read the points below, because they explain what
904  you can do and what you don't need to do in the LaTeX preamble of a LyX
905  document.
906 \end_layout
907
908 \begin_layout Standard
909 The LaTeX preamble comes at the very beginning of a document, 
910 \emph on
911 before
912 \emph default
913  the text.
914  It serves to:
915 \end_layout
916
917 \begin_layout Itemize
918 declare the document class.
919  LyX already does this for you.
920 \end_layout
921
922 \begin_deeper
923 \begin_layout Standard
924 If you're a seasoned LaTeX-nician, and you have some custom document class
925  you want to use, check out the 
926 \emph on
927 Customization Manual
928 \emph default
929  for information on how to make LyX interface to it.
930  Be sure to submit your efforts to the LyX Team for inclusion in future
931  versions!
932 \end_layout
933
934 \end_deeper
935 \begin_layout Itemize
936 declare the usage of packages.
937  LaTeX packages provide special commands, which are only available within
938  a document when the package has been declared in the preamble.
939  For example, the package 
940 \family typewriter
941 indentfirst
942 \family default
943  forces all paragraphs to be indented.
944  There are other packages for labels, envelopes, margins, etc.
945  
946 \end_layout
947
948 \begin_layout Itemize
949 set counters, variables, lengths and widths.
950  There are several LaTeX counters and variables which 
951 \emph on
952 must
953 \emph default
954  be set globally from within the preamble in order to have the desired effect.
955  [There are other variables which you can set and reset inside the document,
956  too.] Margins are a good example of something which must be set in the preamble.
957  Another example is the label format for lists.
958  You can actually set these just about anywhere, but it's best to do it
959  just once, inside the preamble.
960 \end_layout
961
962 \begin_layout Itemize
963 declare user defined commands [with 
964 \family typewriter
965
966 \backslash
967 newcommand
968 \family default
969  or 
970 \family typewriter
971
972 \backslash
973 renewcommand
974 \family default
975 ], mostly abbreviations for LaTeX commands which appear very often inside
976  a document.
977  Although the preamble is a good place to declare such commands, they 
978 \emph on
979 can
980 \emph default
981  be declared anywhere else [but 
982 \emph on
983 before
984 \emph default
985  they are used for the first time, of course\SpecialChar \ldots{}
986 ].
987  This can be useful if there is a lot of raw LaTeX code in your document,
988  which normally should not be the case.
989 \end_layout
990
991 \begin_layout Standard
992 LyX adds its own set of definitions to the preamble of the 
993 \family typewriter
994 .tex
995 \family default
996  file it produces.
997  This makes LaTeX files generated by LyX portable.
998 \end_layout
999
1000 \begin_layout Subsection
1001 Changing the Preamble
1002 \end_layout
1003
1004 \begin_layout Standard
1005 The commands which LyX adds to the preamble of a LaTeX file are fixed; you
1006  can't change them without patching LyX itself.
1007  You can, however, add your own stuff to the preamble.
1008  There are two ways to do this:
1009 \end_layout
1010
1011 \begin_layout Enumerate
1012 Select 
1013 \family sans
1014 \bar under
1015 L
1016 \bar default
1017 aTeX\InsetSpace ~
1018
1019 \bar under
1020 P
1021 \bar default
1022 reamble
1023 \family default
1024  from the 
1025 \family sans
1026 \bar under
1027 D
1028 \bar default
1029 ocument
1030 \family default
1031  menu, or via the 
1032 \family sans
1033 \bar under
1034 D
1035 \bar default
1036 ocument
1037 \family default
1038 \SpecialChar \menuseparator
1039
1040 \family sans
1041 \bar under
1042 S
1043 \bar default
1044 ettings
1045 \family default
1046  dialog, depending on your frontend.
1047  Note that the LyX keybindings will not work in this dialog, alas.
1048 \end_layout
1049
1050 \begin_layout Enumerate
1051 Use the preamble contents you've added as your default template (see 
1052 \begin_inset Quotes eld
1053 \end_inset
1054
1055 Basic LyX Setup
1056 \begin_inset Quotes erd
1057 \end_inset
1058
1059  in the 
1060 \emph on
1061 User's Guide
1062 \emph default
1063 ), so that it will be the default preamble for any file you create.
1064 \end_layout
1065
1066 \begin_layout Standard
1067 LyX adds anything in the 
1068 \family sans
1069 \bar under
1070 P
1071 \bar default
1072 reamble
1073 \family default
1074  dialog to its own built-in preamble.
1075  Before adding your own declarations in the preamble, you should make sure
1076  that LyX doesn't already support what you want to do (remember what we
1077  said about reinventing the wheel?).
1078  Also, 
1079 \emph on
1080 make sure your preamble code is correct
1081 \emph default
1082 .
1083  LyX doesn't check it.
1084 \end_layout
1085
1086 \begin_layout Subsection
1087 Examples
1088 \end_layout
1089
1090 \begin_layout Standard
1091 Here are some examples of what you can add to a preamble, and what they
1092  do:
1093 \end_layout
1094
1095 \begin_layout Subsubsection
1096 Example #1: Offsets
1097 \end_layout
1098
1099 \begin_layout Standard
1100 There are two variables under LaTeX that control page position: 
1101 \family typewriter
1102
1103 \backslash
1104 hoffset
1105 \family default
1106  and 
1107 \family typewriter
1108
1109 \backslash
1110 voffset
1111 \family default
1112 .
1113  Their names should be self-explanatory.
1114  These variables are useful if you think for a moment about computer labels.
1115  Sometimes, the size of a print medium and the area of the medium that you
1116  can actually print on aren't the same.
1117  This is where 
1118 \family typewriter
1119
1120 \backslash
1121 hoffset
1122 \family default
1123  and 
1124 \family typewriter
1125
1126 \backslash
1127 voffset
1128 \family default
1129  come in.
1130 \end_layout
1131
1132 \begin_layout Standard
1133 The default values for 
1134 \family typewriter
1135
1136 \backslash
1137 hoffset
1138 \family default
1139  and 
1140 \family typewriter
1141
1142 \backslash
1143 voffset
1144 \family default
1145  are both 0 pt.,\InsetSpace ~
1146 i.\InsetSpace ~
1147 e.\InsetSpace ~
1148 the page isn't shifted.
1149 \end_layout
1150
1151 \begin_layout Standard
1152 Unfortunately, some DVI drivers always seem to shift the page.
1153  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1154  If you're using LyX on a system that you don't personally maintain, and
1155  your sysadmin is a doofus, 
1156 \family typewriter
1157
1158 \backslash
1159 hoffset
1160 \family default
1161  and 
1162 \family typewriter
1163
1164 \backslash
1165 voffset
1166 \family default
1167  can save the day.
1168  Suppose you're left and top margins are always 0.5 inches too big.
1169  You can add this to the preamble:
1170 \end_layout
1171
1172 \begin_layout LyX-Code
1173
1174 \backslash
1175 setlength{
1176 \backslash
1177 hoffset}{-0.5 in}
1178 \end_layout
1179
1180 \begin_layout LyX-Code
1181
1182 \backslash
1183 setlength{
1184 \backslash
1185 voffset}{-0.5 in}
1186 \end_layout
1187
1188 \begin_layout Standard
1189 \SpecialChar \ldots{}
1190 and your margins should now be correct.
1191 \end_layout
1192
1193 \begin_layout Subsubsection
1194 Example #2: Labels
1195 \end_layout
1196
1197 \begin_layout Standard
1198 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1199  There's a rather nice package, available at your nearest CTAN archive,
1200  for printing sheets of labels, called 
1201 \family typewriter
1202 labels.sty
1203 \family default
1204 .
1205  Now, your system may not have this package installed by default.
1206  We leave that up to you to check.
1207  You'll also want to read the documentation for it; we're not going to do
1208  that for you.
1209  Since this is an example, however, we'll give you an example of how you
1210  use this package.
1211 \end_layout
1212
1213 \begin_layout Standard
1214 First, make sure you're using the 
1215 \family sans
1216 article
1217 \family default
1218  document class.
1219  Next, you need to put the following in your preamble:
1220 \end_layout
1221
1222 \begin_layout LyX-Code
1223
1224 \backslash
1225 usepackage{labels}
1226 \end_layout
1227
1228 \begin_layout LyX-Code
1229
1230 \backslash
1231 LabelCols=3
1232 \end_layout
1233
1234 \begin_layout LyX-Code
1235
1236 \backslash
1237 LabelRows=7
1238 \end_layout
1239
1240 \begin_layout LyX-Code
1241
1242 \backslash
1243 LeftBorder=8mm
1244 \end_layout
1245
1246 \begin_layout LyX-Code
1247
1248 \backslash
1249 RightBorder=8mm
1250 \end_layout
1251
1252 \begin_layout LyX-Code
1253
1254 \backslash
1255 TopBorder=9mm
1256 \end_layout
1257
1258 \begin_layout LyX-Code
1259
1260 \backslash
1261 BottomBorder=2mm
1262 \end_layout
1263
1264 \begin_layout Standard
1265 This sets things up for Avery® label sheets, stock #5360.
1266  You're now ready to print labels, but you'll need to insert LaTeX code,
1267  placing the commands 
1268 \family typewriter
1269
1270 \backslash
1271 begin{labels}
1272 \family default
1273  and 
1274 \family typewriter
1275
1276 \backslash
1277 end{labels}
1278 \family default
1279  around each label text.
1280  This and other special features of 
1281 \family typewriter
1282 labels.sty
1283 \family default
1284  are explained in its documentation.
1285 \end_layout
1286
1287 \begin_layout Standard
1288 Someday, someone may write a LyX layout file to support this package directly.
1289  Maybe that someone is you.
1290 \end_layout
1291
1292 \begin_layout Subsubsection
1293 Example #3: Paragraph Indentation
1294 \end_layout
1295
1296 \begin_layout Standard
1297 Americans are trained to indent the first line of 
1298 \emph on
1299 every
1300 \emph default
1301  paragraph.
1302  As with all of their other weird quirks, most Americans will whine and
1303  moan until they can have their way and indent the first line of all paragraphs.
1304 \begin_inset Foot
1305 status collapsed
1306
1307 \begin_layout Standard
1308 Note from 
1309 \noun on
1310 John Weiss
1311 \noun default
1312 : This was written by an American --- 
1313 \emph on
1314 me
1315 \emph default
1316 ! It's my perception of my fellow countrymen.
1317  Tough if you don't like it.
1318  Thpbpbpbpbpbpbpbp!
1319 \end_layout
1320
1321 \end_inset
1322
1323
1324 \end_layout
1325
1326 \begin_layout Standard
1327 Of course, this behavior isn't standard typography.
1328  In books, you typically only indent the first line of a paragraph 
1329 \emph on
1330 if
1331 \emph default
1332  it follows another one.
1333  The idea behind indenting the first line of a paragraph is to distinguish
1334  neighboring paragraphs from one another.
1335  If there is no previous paragraph, for example, it follows a figure, or
1336  is the first paragraph in a section, then there is no special indentation.
1337  
1338 \end_layout
1339
1340 \begin_layout Standard
1341 If you're a typical American, though, you don't care about such esoteric
1342  things; you want your indentation! Add this to the preamble:
1343 \end_layout
1344
1345 \begin_layout LyX-Code
1346
1347 \backslash
1348 usepackage{indentfirst}
1349 \end_layout
1350
1351 \begin_layout Standard
1352 If your TeX distribution isn't a braindead one, you'll have this package,
1353  and all of your paragraphs will get the indentation you think they deserve.
1354 \end_layout
1355
1356 \begin_layout Subsubsection
1357 Example #4: This Document
1358 \end_layout
1359
1360 \begin_layout Standard
1361 You can also check out the preamble of this document to get an idea of some
1362  of the advanced things you can do.
1363  You'll probably need to make the 
1364 \family sans
1365 \bar under
1366 P
1367 \bar default
1368 reamble\SpecialChar \ldots{}
1369
1370 \family default
1371  dialog full-screen to see most of it.
1372  Also, there are more examples and an assortment of LaTeX 
1373 \begin_inset Quotes eld
1374 \end_inset
1375
1376 dirty tricks
1377 \begin_inset Quotes erd
1378 \end_inset
1379
1380  given in Chapter\InsetSpace ~
1381
1382 \begin_inset LatexCommand ref
1383 reference "cha:secrets"
1384
1385 \end_inset
1386
1387 .
1388  
1389 \end_layout
1390
1391 \begin_layout Section
1392 LyX and LaTeX Errors
1393 \end_layout
1394
1395 \begin_layout Standard
1396 When LyX calls LaTeX, it tells LaTeX to blithely ignore any errors and keep
1397  going.
1398  It then uses the log-file from the LaTeX run to do a post-mortem.
1399  As we stated earlier in the chapter, LyX generates two kinds of 
1400 \family typewriter
1401 .tex
1402 \family default
1403  files, one of which it uses to locate errors in the document.
1404  If there was an error someplace, LyX will put a box with the word 
1405 \begin_inset Quotes eld
1406 \end_inset
1407
1408 Error
1409 \begin_inset Quotes erd
1410 \end_inset
1411
1412  at the appropriate place in the document.
1413 \begin_inset Foot
1414 status collapsed
1415
1416 \begin_layout Standard
1417 LyX will occasionally misguess where the error was.
1418  This will typically happen with tables, figures, math, and the preamble.
1419 \end_layout
1420
1421 \end_inset
1422
1423  It will also display a message alerting you to the fact that there were
1424  errors.
1425 \end_layout
1426
1427 \begin_layout Standard
1428 You can navigate through the errors by using 
1429 \family sans
1430 \bar under
1431 E
1432 \bar default
1433 rror
1434 \family default
1435  in the 
1436 \family sans
1437 \bar under
1438 N
1439 \bar default
1440 avigate
1441 \family default
1442  menu.
1443  You can 
1444 \begin_inset Quotes eld
1445 \end_inset
1446
1447 open
1448 \begin_inset Quotes erd
1449 \end_inset
1450
1451  the error-boxes and view the error message LaTeX produced by clicking on
1452  it.
1453 \end_layout
1454
1455 \begin_layout Standard
1456 Some folks also like to look at the log file directly, accessible from 
1457 \family sans
1458 \bar under
1459 D
1460 \bar default
1461 ocument\SpecialChar \menuseparator
1462
1463 \bar under
1464 L
1465 \bar default
1466 aTeX\InsetSpace ~
1467 Log\InsetSpace ~
1468 File
1469 \family default
1470 .
1471  There are some fairly common error messages and warnings.
1472  We'll cover those here.
1473  You should look at a good LaTeX book for a complete listing.
1474 \end_layout
1475
1476 \begin_layout Itemize
1477 \begin_inset Quotes eld
1478 \end_inset
1479
1480
1481 \family typewriter
1482 LaTeX Warning:
1483 \family default
1484
1485 \begin_inset Quotes eld
1486 \end_inset
1487
1488
1489 \end_layout
1490
1491 \begin_deeper
1492 \begin_layout Standard
1493 Anything beginning with these word is a warning message for the purpose
1494  of 
1495 \begin_inset Quotes eld
1496 \end_inset
1497
1498 debugging
1499 \begin_inset Quotes erd
1500 \end_inset
1501
1502  the LaTeX code itself.
1503  You'll get messages like this if you added or changed cross-references
1504  or bibliography entries, in which case, LaTeX is trying to tell you that
1505  you need to make another run.
1506 \end_layout
1507
1508 \begin_layout Standard
1509 You can by-and-large ignore these.
1510 \end_layout
1511
1512 \end_deeper
1513 \begin_layout Itemize
1514 \begin_inset Quotes eld
1515 \end_inset
1516
1517
1518 \family typewriter
1519 LaTeX Font Warning:
1520 \family default
1521
1522 \begin_inset Quotes erd
1523 \end_inset
1524
1525
1526 \end_layout
1527
1528 \begin_deeper
1529 \begin_layout Standard
1530 Another warning message, this time about fonts which LaTeX couldn't find.
1531  The rest of the message will often say something about a replacement font
1532  that LaTeX used.
1533 \end_layout
1534
1535 \begin_layout Standard
1536 You can safely ignore these.
1537 \end_layout
1538
1539 \end_deeper
1540 \begin_layout Itemize
1541 \begin_inset Quotes eld
1542 \end_inset
1543
1544
1545 \family typewriter
1546 Overfull 
1547 \backslash
1548 hbox
1549 \family default
1550
1551 \begin_inset Quotes erd
1552 \end_inset
1553
1554
1555 \end_layout
1556
1557 \begin_deeper
1558 \begin_layout Standard
1559 LaTeX absolutely 
1560 \emph on
1561 loves
1562 \emph default
1563  to spew these out.
1564  They are warning you about lines that were too long and run past the right
1565  margin.
1566  Almost always, this is unnoticeable in the final output.
1567  Or, only one or two characters extend past the margin.
1568  LaTeX seems to generate at least one of these messages for just about any
1569  document you write.
1570 \end_layout
1571
1572 \begin_layout Standard
1573 You can ignore these stupid messages.
1574  Your eyes will tell you if there's a problem with something that's too
1575  wide; just look at the output.
1576 \end_layout
1577
1578 \end_deeper
1579 \begin_layout Itemize
1580 \begin_inset Quotes eld
1581 \end_inset
1582
1583
1584 \family typewriter
1585 Underfull 
1586 \backslash
1587 hbox
1588 \family default
1589
1590 \begin_inset Quotes erd
1591 \end_inset
1592
1593
1594 \end_layout
1595
1596 \begin_deeper
1597 \begin_layout Standard
1598 Not quite as common as its cousin.
1599  LaTeX seems to like to print lines that are a bit too wide as opposed to
1600  ones that are a bit too narrow.
1601  We have no idea why.
1602 \end_layout
1603
1604 \begin_layout Standard
1605 You can ignore these, too.
1606 \end_layout
1607
1608 \end_deeper
1609 \begin_layout Itemize
1610 \begin_inset Quotes eld
1611 \end_inset
1612
1613
1614 \family typewriter
1615 Overfull 
1616 \backslash
1617 vbox
1618 \family default
1619
1620 \begin_inset Quotes erd
1621 \end_inset
1622
1623  and 
1624 \begin_inset Quotes eld
1625 \end_inset
1626
1627
1628 \family typewriter
1629 Underfull 
1630 \backslash
1631 vbox
1632 \family default
1633
1634 \begin_inset Quotes erd
1635 \end_inset
1636
1637
1638 \end_layout
1639
1640 \begin_deeper
1641 \begin_layout Standard
1642 Warnings about troubles breaking the page.
1643  Once again, just look at the output.
1644  Your eyes will tell you where something has gone wrong.
1645 \end_layout
1646
1647 \end_deeper
1648 \begin_layout Itemize
1649 \begin_inset Quotes eld
1650 \end_inset
1651
1652  
1653 \family typewriter
1654 LaTeX Error: File 
1655 \begin_inset Quotes els
1656 \end_inset
1657
1658 Xxxx
1659 \begin_inset Quotes ers
1660 \end_inset
1661
1662  not found
1663 \family default
1664
1665 \begin_inset Quotes erd
1666 \end_inset
1667
1668  
1669 \end_layout
1670
1671 \begin_deeper
1672 \begin_layout Standard
1673 The file 
1674 \begin_inset Quotes eld
1675 \end_inset
1676
1677 Xxxx
1678 \begin_inset Quotes erd
1679 \end_inset
1680
1681  isn't installed on this system.
1682  This usually appears because some package your document needs isn't installed.
1683  If you didn't touch the preamble or didn't use the 
1684 \family typewriter
1685
1686 \backslash
1687 usepackage{}
1688 \family default
1689  command, then one of the packages LyX tried to load is missing.
1690  Use 
1691 \family sans
1692 \bar under
1693 H
1694 \bar default
1695 elp\SpecialChar \menuseparator
1696 L
1697 \bar under
1698 a
1699 \bar default
1700 TeX Configuration
1701 \family default
1702 , to get a list of packages that LyX knows about.
1703  This file is updated whenever you reconfigure LyX (using 
1704 \family sans
1705 \bar under
1706 T
1707 \bar default
1708 ools
1709 \bar under
1710 \SpecialChar \menuseparator
1711 R
1712 \bar default
1713 econfigure
1714 \family default
1715 ) and tells you which packages have been detected and what they do.
1716 \end_layout
1717
1718 \begin_layout Standard
1719 If you 
1720 \emph on
1721 did
1722 \emph default
1723  use the 
1724 \family typewriter
1725
1726 \backslash
1727 usepackage{}
1728 \family default
1729  command, and the package in question isn't installed, you'll need to install
1730  it yourself.
1731 \end_layout
1732
1733 \end_deeper
1734 \begin_layout Itemize
1735 \begin_inset Quotes eld
1736 \end_inset
1737
1738
1739 \family typewriter
1740 LaTeX Error: Unknown option
1741 \family default
1742
1743 \begin_inset Quotes erd
1744 \end_inset
1745
1746
1747 \end_layout
1748
1749 \begin_deeper
1750 \begin_layout Standard
1751 Error messages beginning with this are trying to tell you that you specified
1752  a bad or undefined option to a package.
1753  Check the package's documentation.
1754 \end_layout
1755
1756 \end_deeper
1757 \begin_layout Itemize
1758 \begin_inset Quotes eld
1759 \end_inset
1760
1761
1762 \family typewriter
1763 Undefined control sequence
1764 \family default
1765
1766 \begin_inset Quotes erd
1767 \end_inset
1768
1769
1770 \end_layout
1771
1772 \begin_deeper
1773 \begin_layout Standard
1774 If you've inserted LaTeX code into your document, but made a typo, you'll
1775  get one of these.
1776  You may have forgotten to load a package.
1777  In any case, this error message usually means that you used an undefined
1778  command.
1779 \end_layout
1780
1781 \end_deeper
1782 \begin_layout Standard
1783 There are other error and warning messages.
1784  Some are self-explanatory.
1785  These are usually LaTeX messages.
1786  Others are downright cryptic.
1787  These are actually TeX error messages, and we really have 
1788 \emph on
1789 no clue
1790 \emph default
1791  what they mean or how to decipher them.
1792 \end_layout
1793
1794 \begin_layout Standard
1795 There's a general sequence you should follow if you get error messages:
1796 \end_layout
1797
1798 \begin_layout Enumerate
1799 Look at the LaTeX code you inserted for typos.
1800 \end_layout
1801
1802 \begin_layout Enumerate
1803 If there are no typos, check and see that you used the command(s) correctly.
1804 \end_layout
1805
1806 \begin_layout Enumerate
1807 If you get a bunch of error boxes piled up at the very top of the document,
1808  it means that there are errors in the preamble.
1809  Start debugging your preamble.
1810 \end_layout
1811
1812 \begin_layout Enumerate
1813 If you didn't add anything to the preamble and didn't add any LaTeX code
1814  to the document, the first suspect is your LaTeX distribution itself.
1815  Check for missing packages and install them.
1816 \end_layout
1817
1818 \begin_layout Enumerate
1819 Okay, so there are no missing packages.
1820  Did you use any of the fine-tuning options in LyX? Specifically, did you
1821  
1822 \emph on
1823 misuse
1824 \emph default
1825  any of them, like trying to manually insert lots of 
1826 \family sans
1827 Protected\InsetSpace ~
1828 Blank
1829 \family default
1830 s, 
1831 \family sans
1832 Linebreak
1833 \family default
1834 s, or 
1835 \family sans
1836 Pagebreak
1837 \family default
1838 s? Did you try to kludge something together with these instead of using
1839  the appropriate paragraph environment?
1840 \end_layout
1841
1842 \begin_layout Enumerate
1843 All right, you didn't use any of the fine-tuning options, you played by
1844  the rules.
1845  Did you try to pull a fancy maneuver? Did you do something funky inside
1846  a table or an equation, like inserting a graphic into a table cell?
1847 \end_layout
1848
1849 \begin_layout Enumerate
1850 Do you have long sections of text where LaTeX cannot find a place to break
1851  a line? By default, LaTeX is rather strict about how much extra inter-word
1852  spacing it will add in order to break a line.
1853  Preferably, you should rework the paragraph to avoid the problem.
1854  If this isn't an option, you can wrap your text in 
1855 \family typewriter
1856
1857 \backslash
1858 sloppypar
1859 \family default
1860  to make LaTeX's line breaking more, well, sloppy.
1861 \end_layout
1862
1863 \begin_layout Enumerate
1864 Did you go overboard with the nesting? LyX (currently) doesn't check to
1865  make sure you're in the limits for nesting environments.
1866  If you nested a bunch of environments to the 
1867 \begin_inset Formula $17^{\mathrm{th}}$
1868 \end_inset
1869
1870  level, that's the problem.
1871 \end_layout
1872
1873 \begin_layout Enumerate
1874 Okay, you didn't get any error messages, but your output looks whacked.
1875  If you have a table or figure that's too wide or long for the page, you
1876  need to:
1877 \end_layout
1878
1879 \begin_deeper
1880 \begin_layout Enumerate
1881 rescale the figure so it fits.
1882 \end_layout
1883
1884 \begin_layout Enumerate
1885 trim down the table so it fits.
1886 \end_layout
1887
1888 \begin_layout Standard
1889 If something else is wrong with the output, and you didn't try to pull anything
1890  fancy or kludge the fine-tuning options, we're not sure what's wrong.
1891 \end_layout
1892
1893 \end_deeper
1894 \begin_layout Standard
1895 If all this doesn't help --- well, then 
1896 \emph on
1897 perhaps
1898 \emph default
1899  you might have found a bug in LyX\SpecialChar \ldots{}
1900
1901 \end_layout
1902
1903 \begin_layout Chapter
1904 Supplemental Tools
1905 \end_layout
1906
1907 \begin_layout Section
1908 Preparing a Bibliography with BibTeX
1909 \begin_inset LatexCommand label
1910 name "sec:Preparing-a-Bibliography"
1911
1912 \end_inset
1913
1914
1915 \end_layout
1916
1917 \begin_layout Standard
1918 by 
1919 \noun on
1920 Mike Ressler
1921 \noun default
1922  and 
1923 \noun on
1924 Jürgen Spitzmüller
1925 \end_layout
1926
1927 \begin_layout Standard
1928 \begin_inset VSpace bigskip
1929 \end_inset
1930
1931
1932 \end_layout
1933
1934 \begin_layout Standard
1935 \noindent
1936 STOP! If you don't know what BibTeX is, or have a reasonably good idea of
1937  how to use it (
1938 \emph on
1939 e.\InsetSpace \thinspace{}
1940 g.
1941 \emph default
1942 \InsetSpace ~
1943 setting up your own bibliographic databases), 
1944 \emph on
1945 run
1946 \emph default
1947 , do not walk, to your nearest copy of the 2nd edition of Lamport's 
1948 \emph on
1949 LaTeX: A Document Preparation System
1950 \emph default
1951 , particularly Appendix B.
1952  The rest of this discussion assumes you have created a correct bibliography
1953  file, that you have all relevant environment variables set correctly (esp.
1954  
1955 \family typewriter
1956 BIBINPUTS
1957 \family default
1958
1959 \family typewriter
1960 BSTINPUTS
1961 \family default
1962 , and 
1963 \family typewriter
1964 TEXINPUTS
1965 \family default
1966 ), and that if sufficiently desperate, you could create and 
1967 \begin_inset Quotes eld
1968 \end_inset
1969
1970 TeX
1971 \begin_inset Quotes erd
1972 \end_inset
1973
1974  a LaTeX file with a BibTeX database.
1975  
1976 \end_layout
1977
1978 \begin_layout Standard
1979 For those who don't know what BibTeX is, it is a system for creating a large
1980  database of your most used journal references.
1981  For all future articles you write, you only need to include this standard
1982  database and reference the appropriate key to each reference.
1983  Even if you write only a few papers with handful of references each, it
1984  is well worth your time to examine BibTeX and decide whether it will be
1985  useful to you.
1986 \end_layout
1987
1988 \begin_layout Standard
1989 To use BibTeX with LyX, first read the 
1990 \emph on
1991 User Guide
1992 \emph default
1993  where it describes how to insert citations.
1994  The basic mechanism for inserting BibTeX references is the same.
1995  Then, at the very end of your document, select 
1996 \family sans
1997 Insert\SpecialChar \menuseparator
1998 List
1999 \family default
2000  / 
2001 \family sans
2002 TOC\SpecialChar \menuseparator
2003 BibTeX Reference
2004 \family default
2005 .
2006  In the resulting dialog, fill out the dialog boxes as follows: 
2007 \end_layout
2008
2009 \begin_layout Description
2010 Database: enter the name of your 
2011 \family typewriter
2012 .bib
2013 \family default
2014  file 
2015 \emph on
2016 without
2017 \emph default
2018  the 
2019 \family typewriter
2020 .bib
2021 \family default
2022  extension.
2023  For searching multiple 
2024 \family typewriter
2025 .bib
2026 \family default
2027  files, just enter them in the desired order, separated by commas.
2028  
2029 \end_layout
2030
2031 \begin_layout Description
2032 Style: enter the name of your BibTeX style file *without* the 
2033 \family typewriter
2034 .bst
2035 \family default
2036  extension.
2037  The default style is 
2038 \family typewriter
2039 plain
2040 \family default
2041  (which should be included in your LaTeX distribution, so you don't have
2042  to worry about creating it).
2043 \end_layout
2044
2045 \begin_layout Standard
2046 For each citation, assuming that the source is in the 
2047 \family typewriter
2048 .bib
2049 \family default
2050  file, just call 
2051 \family sans
2052 \bar under
2053 I
2054 \bar default
2055 nsert\SpecialChar \menuseparator
2056
2057 \bar under
2058 C
2059 \bar default
2060 itation Reference
2061 \family default
2062  at the correct location in the text, and enter the appropriate reference
2063  key.
2064  Nothing else is required; when invoking 
2065 \family sans
2066 \bar under
2067 V
2068 \bar default
2069 iew\SpecialChar \menuseparator
2070
2071 \bar under
2072 D
2073 \bar default
2074 VI
2075 \family default
2076 , for example, you should see that BibTeX and LaTeX are invoked as needed,
2077  including multiple invocations of LaTeX.
2078  
2079 \end_layout
2080
2081 \begin_layout Subsection
2082 Alternative Citation Styles
2083 \end_layout
2084
2085 \begin_layout Standard
2086 Standard BibTeX uses numbers (e.\InsetSpace \thinspace{}
2087 g.\InsetSpace \space{}
2088
2089 \begin_inset Quotes eld
2090 \end_inset
2091
2092 [12]
2093 \begin_inset Quotes erd
2094 \end_inset
2095
2096 ) to refer to a cited work.
2097  However, in many scientific disciplines, other citation styles are in use.
2098  The most common one is the author-year style (e.\InsetSpace \thinspace{}
2099 g.\InsetSpace \space{}
2100
2101 \begin_inset Quotes eld
2102 \end_inset
2103
2104 Knuth 1984a
2105 \begin_inset Quotes erd
2106 \end_inset
2107
2108 ).
2109  LyX supports two packages that provide this style, 
2110 \family typewriter
2111 natbib
2112 \family default
2113  and 
2114 \family typewriter
2115 jurabib
2116 \family default
2117 .
2118  Both packages have their own pros and cons, which cannot be listed in detail.
2119  If you only want to have simple author-year (or author-numerical) style
2120  or if you want to use one of the countless style files for natbib, than
2121  the established 
2122 \family typewriter
2123 natbib
2124 \family default
2125  package is probably your choice.
2126  If you need special features like short title references, ibidem etc., you
2127  might consider the fairly new 
2128 \family typewriter
2129 jurabib
2130 \family default
2131  package.
2132 \end_layout
2133
2134 \begin_layout Standard
2135 The handling of both packages in LyX is basically the same.
2136  Go to 
2137 \family sans
2138 \bar under
2139 D
2140 \bar default
2141 ocument\SpecialChar \menuseparator
2142
2143 \bar under
2144 S
2145 \bar default
2146 ettings
2147 \family default
2148  and select the 
2149 \family sans
2150 Bibliography
2151 \family default
2152  pane (with the xforms frontend: the 
2153 \family sans
2154 Extras
2155 \family default
2156  tab).
2157  Then select 
2158 \family sans
2159 Natbib
2160 \family default
2161  or 
2162 \family sans
2163 Jurabib
2164 \family default
2165 .
2166  With both packages, you will get some extra features in the citation dialog
2167  and you can select the style of the reference (
2168 \begin_inset Quotes eld
2169 \end_inset
2170
2171 Knuth 1984
2172 \begin_inset Quotes erd
2173 \end_inset
2174
2175
2176 \begin_inset Quotes eld
2177 \end_inset
2178
2179 Knuth (1984)
2180 \begin_inset Quotes erd
2181 \end_inset
2182
2183
2184 \begin_inset Quotes eld
2185 \end_inset
2186
2187 Knuth, 1984
2188 \begin_inset Quotes erd
2189 \end_inset
2190
2191
2192 \begin_inset Quotes eld
2193 \end_inset
2194
2195 1984
2196 \begin_inset Quotes erd
2197 \end_inset
2198
2199  etc.).
2200  Note that both packages need specifically designed style files (they both
2201  ship their own, while there are lots of additional style files and even
2202  an interactive style file builder
2203 \begin_inset Foot
2204 status collapsed
2205
2206 \begin_layout Standard
2207 See 
2208 \begin_inset LatexCommand url
2209 target "ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/"
2210
2211 \end_inset
2212
2213
2214 \end_layout
2215
2216 \end_inset
2217
2218  for 
2219 \family typewriter
2220 natbib
2221 \family default
2222  available).
2223 \end_layout
2224
2225 \begin_layout Subsection
2226 Sectionated Bibliographies
2227 \begin_inset LatexCommand label
2228 name "sub:Sectionated-Bibliographies"
2229
2230 \end_inset
2231
2232
2233 \end_layout
2234
2235 \begin_layout Standard
2236 Sometimes you might need to divide your bibliography into several sections.
2237  If you are, for instance, a historian, the possibility to separate sources
2238  and scientific works is most likely a 
2239 \begin_inset Quotes eld
2240 \end_inset
2241
2242 must have
2243 \begin_inset Quotes erd
2244 \end_inset
2245
2246 .
2247  Unfortunately, BibTeX itself does not allow you to do this.
2248  The good news is, though: With the help of some LaTeX packages, BibTeX
2249  can be extended to fit your historical needs.
2250 \end_layout
2251
2252 \begin_layout Standard
2253 As of version 1.4, LyX provides native support for one of these packages,
2254  Stefan Ulrich's 
2255 \family typewriter
2256 bibtopic
2257 \family default
2258 .
2259 \begin_inset Foot
2260 status collapsed
2261
2262 \begin_layout Standard
2263 Available from 
2264 \begin_inset LatexCommand url
2265 target "ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/"
2266
2267 \end_inset
2268
2269
2270 \end_layout
2271
2272 \end_inset
2273
2274  The advantage of this package (compared to other packages like 
2275 \family typewriter
2276 multibib
2277 \family default
2278 ) is that you don't need to define new citation commands.
2279  Instead, you need to prepare different bibliographic databases which include
2280  the entries for the different sections of the bibliography.
2281  For example: If you want to divide your bibliography into the sections
2282  
2283 \begin_inset Quotes eld
2284 \end_inset
2285
2286 Sources
2287 \begin_inset Quotes erd
2288 \end_inset
2289
2290  and 
2291 \begin_inset Quotes eld
2292 \end_inset
2293
2294 Scientific works
2295 \begin_inset Quotes erd
2296 \end_inset
2297
2298 , you first need to create two bibliographic databases, e.\InsetSpace \thinspace{}
2299 g.\InsetSpace \space{}
2300
2301 \family typewriter
2302 sources.bib
2303 \family default
2304  and 
2305 \family typewriter
2306 scientific.bib
2307 \family default
2308 .
2309  
2310 \end_layout
2311
2312 \begin_layout Standard
2313 In LyX, go to 
2314 \family sans
2315 \bar under
2316 D
2317 \bar default
2318 ocument\SpecialChar \menuseparator
2319
2320 \bar under
2321 S
2322 \bar default
2323 ettings
2324 \family default
2325  and select the 
2326 \family sans
2327 Bibliography
2328 \family default
2329  pane (with the xforms frontend: the 
2330 \family sans
2331 Extras
2332 \family default
2333  tab).
2334  Check 
2335 \family sans
2336 Sectionated\InsetSpace ~
2337 bibliography
2338 \family default
2339 .
2340  Now you can insert multiple BibTeX references (as described in section\InsetSpace ~
2341
2342 \begin_inset LatexCommand ref
2343 reference "sec:Preparing-a-Bibliography"
2344
2345 \end_inset
2346
2347 ), one for each section of your bibliography.
2348  Returning to our example: Insert a BibTeX reference for the database 
2349 \family typewriter
2350 sources.bib
2351 \family default
2352  and a second one for the database 
2353 \family typewriter
2354 scientific.bib
2355 \family default
2356 .
2357  You are free to use the same or different styles for each section.
2358  Additionally, you can chose if the bibliography section should contain
2359  
2360 \begin_inset Quotes eld
2361 \end_inset
2362
2363 all cited references
2364 \begin_inset Quotes erd
2365 \end_inset
2366
2367  of the specified database(s) (which is the default), 
2368 \begin_inset Quotes eld
2369 \end_inset
2370
2371 all uncited references
2372 \begin_inset Quotes erd
2373 \end_inset
2374
2375  or even 
2376 \begin_inset Quotes eld
2377 \end_inset
2378
2379 all references
2380 \begin_inset Quotes erd
2381 \end_inset
2382
2383 .
2384  This might be useful if you would like to separate your bibliography into
2385  three sections: 
2386 \begin_inset Quotes eld
2387 \end_inset
2388
2389 Cited sources
2390 \begin_inset Quotes erd
2391 \end_inset
2392
2393
2394 \begin_inset Quotes eld
2395 \end_inset
2396
2397 Uncited sources
2398 \begin_inset Quotes erd
2399 \end_inset
2400
2401 , and 
2402 \begin_inset Quotes eld
2403 \end_inset
2404
2405 Scientific works
2406 \begin_inset Quotes erd
2407 \end_inset
2408
2409 .
2410  The titles for the sections can be added as ordinary sections or subsections.
2411  Since 
2412 \family typewriter
2413 bibtopic
2414 \family default
2415  removes the bibliography title, you have manually re-add that, too (as
2416  a chapter* or section*, for instance).
2417 \end_layout
2418
2419 \begin_layout Subsection
2420 Multiple Bibliographies
2421 \end_layout
2422
2423 \begin_layout Standard
2424 Multiple bibliographies, e.\InsetSpace \thinspace{}
2425 g.\InsetSpace \space{}
2426 a bibliography for each section or chapter of
2427  the document, are not supported by BibTeX itself.
2428  But the 
2429 \family typewriter
2430 bibtopic
2431 \family default
2432  package, which is used for the creation of sectionated bibliographies in
2433  LyX (cf.\InsetSpace ~
2434 section\InsetSpace ~
2435
2436 \begin_inset LatexCommand ref
2437 reference "sub:Sectionated-Bibliographies"
2438
2439 \end_inset
2440
2441 ), provides an easy way to solve this task, if you are willing to use some
2442  LaTeX-Code (ERT, cf.\InsetSpace ~
2443 section\InsetSpace ~
2444
2445 \begin_inset LatexCommand ref
2446 reference "sec:Inserting-LaTeX-Code"
2447
2448 \end_inset
2449
2450 ).
2451 \begin_inset Foot
2452 status collapsed
2453
2454 \begin_layout Standard
2455 An alternative approach is to use the 
2456 \family typewriter
2457 chapterbib
2458 \family default
2459  or 
2460 \family typewriter
2461 bibunits
2462 \family default
2463  package, respectively.
2464 \end_layout
2465
2466 \end_inset
2467
2468
2469 \end_layout
2470
2471 \begin_layout Standard
2472 First, go to 
2473 \family sans
2474 \bar under
2475 D
2476 \bar default
2477 ocument\SpecialChar \menuseparator
2478
2479 \bar under
2480 S
2481 \bar default
2482 ettings
2483 \family default
2484  and select the 
2485 \family sans
2486 Bibliography
2487 \family default
2488  pane (with the xforms frontend: the 
2489 \family sans
2490 Extras
2491 \family default
2492  tab).
2493  Check 
2494 \family sans
2495 Sectionated\InsetSpace ~
2496 bibliography
2497 \family default
2498 .
2499  In the document, you have to enclose the sections, which shall contain
2500  their own bibliography (including the BibTeX reference itself), between
2501  
2502 \family typewriter
2503
2504 \backslash
2505 begin{btUnit}
2506 \family default
2507  and 
2508 \family typewriter
2509
2510 \backslash
2511 end{btUnit}
2512 \family default
2513  (those commands have to be inserted as ERT).
2514  The bibliography will contain all references which have been cited in the
2515  current btUnit.
2516  N.\InsetSpace \thinspace{}
2517 B.: If you are using this approach, then 
2518 \emph on
2519 every
2520 \emph default
2521  citation reference has to be inside some btUnit.
2522  Also, the btUnits cannot be nested.
2523 \end_layout
2524
2525 \begin_layout Section
2526 Making an Index
2527 \end_layout
2528
2529 \begin_layout Standard
2530 A good index is one of the hardest things to make in a lengthy document,
2531  but LyX helps make things a bit simpler by interfacing to the 
2532 \family typewriter
2533 makeindex
2534 \family default
2535  program which is found in most recent LaTeX distributions.
2536 \begin_inset Foot
2537 status collapsed
2538
2539 \begin_layout Standard
2540
2541 \family roman
2542 \series medium
2543 \shape up
2544 \size normal
2545 \emph off
2546 \bar no
2547 \noun off
2548 \color none
2549 In the
2550 \family default
2551 \series default
2552 \shape default
2553 \emph default
2554 \bar default
2555  
2556 \family sans
2557 \size default
2558 \noun default
2559 Outputs\SpecialChar \menuseparator
2560 LaT\SpecialChar \textcompwordmark{}
2561 eX
2562 \family roman
2563 \series medium
2564 \shape up
2565 \size normal
2566 \emph off
2567 \bar no
2568 \noun off
2569  section of the preferences dialog, however, you can customize the index
2570  command, if you prefer an alternative program like
2571 \family default
2572 \series default
2573 \shape default
2574 \emph default
2575 \bar default
2576  
2577 \family typewriter
2578 \size default
2579 \noun default
2580 xindy
2581 \family roman
2582 \series medium
2583 \shape up
2584 \size normal
2585 \emph off
2586 \bar no
2587 \noun off
2588 .
2589 \end_layout
2590
2591 \end_inset
2592
2593  Inserting an index and marking words to include in it works much the same
2594  way as preparing a bibliography as mentioned in the last section.
2595 \end_layout
2596
2597 \begin_layout Standard
2598 First, go to the end of your file and select 
2599 \family sans
2600 \bar under
2601 I
2602 \bar default
2603 nsert\SpecialChar \menuseparator
2604 List
2605 \family default
2606 \InsetSpace ~
2607 /\InsetSpace ~
2608
2609 \family sans
2610 T
2611 \bar under
2612 O
2613 \bar default
2614 C\SpecialChar \menuseparator
2615
2616 \bar under
2617 I
2618 \bar default
2619 ndex
2620 \family default
2621 \InsetSpace ~
2622
2623 \family sans
2624 List
2625 \family default
2626 .
2627  Then, for each word you would like to include in the index, go to the end
2628  of that word and click on 
2629 \family sans
2630 \bar under
2631 I
2632 \bar default
2633 nsert\SpecialChar \menuseparator
2634
2635 \bar under
2636 I
2637 \bar default
2638 ndex
2639 \family default
2640 \InsetSpace ~
2641
2642 \family sans
2643 Entry
2644 \family default
2645 .
2646  This will insert a tag showing the word as it will appear in the index.
2647  That's all there is to it; LyX will automatically call 
2648 \family typewriter
2649 makeindex
2650 \family default
2651  for you and create the index itself.
2652  The text in the dialog available from right-clicking on the index button
2653  accepts LaTeX, so you'll need to be careful to avoid using any special
2654  characters.
2655  On the positive side, you can use the advanced options - have a look at
2656  the documentation which comes with your LaTeX distribution to find out
2657  how to do things like 
2658 \begin_inset Quotes eld
2659 \end_inset
2660
2661 nested entries
2662 \begin_inset Quotes erd
2663 \end_inset
2664
2665 , etc.
2666 \end_layout
2667
2668 \begin_layout Standard
2669 Be careful not to put spaces between the word in the text and the index
2670  marker; apparently the wrong page number can be produced if this happens.
2671 \end_layout
2672
2673 \begin_layout Section
2674 Multipart Documents
2675 \end_layout
2676
2677 \begin_layout Subsection
2678 General Operation
2679 \end_layout
2680
2681 \begin_layout Standard
2682 When you are working on a large file with many sections, it is often convenient
2683  to break up the document into several files, or perhaps you have something
2684  where a table may change from time to time, but the preceding text does
2685  not.
2686  In these cases, you should seriously consider using multipart documents.
2687  For example, scientific papers often have five major sections: the introduction
2688 , observations, results, discussion, and conclusion.
2689  Each of these could be its own separate LyX file, with one 
2690 \begin_inset Quotes eld
2691 \end_inset
2692
2693 master
2694 \begin_inset Quotes erd
2695 \end_inset
2696
2697  file which contains the title, authors, abstract, references, etc., plus
2698  the five included files.
2699  It is important to note that each of these files is a full LyX file which
2700  can be formatted and printed on its own, as well as included in a master
2701  file.
2702  Each of these files must have the same document class, however--- don't
2703  attempt to mix book classes with article classes.
2704  You may also include LaTeX files; however, these files must not have their
2705  own preamble 
2706 \emph on
2707 (i.e.
2708
2709 \emph default
2710  everything up to and including the 
2711 \family typewriter
2712
2713 \backslash
2714 begin{document}
2715 \family default
2716  line as well as the 
2717 \family typewriter
2718
2719 \backslash
2720 end{document}
2721 \family default
2722  line must be deleted) or else errors will be generated when you try to
2723  make a DVI file.
2724 \end_layout
2725
2726 \begin_layout Standard
2727 LyX allows you to include files quite easily with 
2728 \family sans
2729 \bar under
2730 I
2731 \bar default
2732 nsert\SpecialChar \menuseparator
2733 ChiI
2734 \bar under
2735 d
2736 \bar default
2737 \InsetSpace ~
2738 Document
2739 \family default
2740 .
2741  When you click on this selection a small box is inserted into the file
2742  at the current cursor location.
2743  Clicking on the box raises a dialog which allows you to select the file
2744  to be included, and the method of its inclusion.
2745  
2746 \end_layout
2747
2748 \begin_layout Standard
2749 The file selection box should by now be obvious.
2750  The three inclusion methods are 
2751 \begin_inset Quotes eld
2752 \end_inset
2753
2754 include
2755 \begin_inset Quotes erd
2756 \end_inset
2757
2758
2759 \begin_inset Quotes eld
2760 \end_inset
2761
2762 input
2763 \begin_inset Quotes erd
2764 \end_inset
2765
2766 , and 
2767 \begin_inset Quotes eld
2768 \end_inset
2769
2770 verbatim
2771 \begin_inset Quotes erd
2772 \end_inset
2773
2774 .
2775  The difference between 
2776 \begin_inset Quotes eld
2777 \end_inset
2778
2779 include
2780 \begin_inset Quotes erd
2781 \end_inset
2782
2783  and 
2784 \begin_inset Quotes eld
2785 \end_inset
2786
2787 input
2788 \begin_inset Quotes erd
2789 \end_inset
2790
2791  is really only meaningful to LaTeXperts, but the practical difference is
2792  that files which are 
2793 \begin_inset Quotes eld
2794 \end_inset
2795
2796 included
2797 \begin_inset Quotes erd
2798 \end_inset
2799
2800  are typeset beginning on a new page, while files which are 
2801 \begin_inset Quotes eld
2802 \end_inset
2803
2804 inputted
2805 \begin_inset Quotes erd
2806 \end_inset
2807
2808  are typeset starting on the current page.
2809  Perhaps the labeling in LyX will be changed someday to reflect this.
2810 \end_layout
2811
2812 \begin_layout Standard
2813 Generally, the master file is converted into a full LaTeX file before typesettin
2814 g, while the included files are converted to LaTeX files which do not have
2815  all the preamble information.
2816  Checking the 
2817 \family sans
2818 Don't
2819 \family default
2820 \InsetSpace ~
2821
2822 \family sans
2823 typeset
2824 \family default
2825  button prevents this conversion.
2826 \end_layout
2827
2828 \begin_layout Standard
2829
2830 \begin_inset Quotes eld
2831 \end_inset
2832
2833 verbatim
2834 \begin_inset Quotes erd
2835 \end_inset
2836
2837  included file allows you to include a file typeset exactly as it appears
2838  in the file, i.e.\InsetSpace ~
2839 verbatim mode, with the characters set in a fixed-width
2840  typewriter font.
2841  Normally, spaces in this file are invisible, though two consecutive spaces
2842  are conserved, unlike LyX's normal treatment of spaces.
2843  However, setting the 
2844 \family sans
2845 \bar under
2846 M
2847 \bar default
2848 ark\InsetSpace ~
2849 spaces\InsetSpace ~
2850 in\InsetSpace ~
2851 output
2852 \family default
2853  checkbox typesets a mark to unambiguously define the presence of a space.
2854  
2855 \end_layout
2856
2857 \begin_layout Subsection
2858 Cross-References Between Files
2859 \end_layout
2860
2861 \begin_layout Standard
2862 It is possible to set up cross-references between the different files.
2863  First, open all the files in question: let's call them A and B in a two
2864  file example, where B is included in A.
2865  Let's say you insert a label in A, then want to reference it in B.
2866  Open the cross-reference dialog in whilst in document B, and you can select
2867  the 
2868 \begin_inset Quotes eld
2869 \end_inset
2870
2871 buffer
2872 \begin_inset Quotes erd
2873 \end_inset
2874
2875  to use.
2876 \end_layout
2877
2878 \begin_layout Section
2879 Fancy Headers and Footers
2880 \end_layout
2881
2882 \begin_layout Standard
2883 The default page layout is rather plain; for an article document class,
2884  all you get is a centered page number at the bottom of the page.
2885  This document is the book class, so it appears to be a bit fancier, but
2886  to really put on a show, you need to set the document page style to 
2887 \begin_inset Quotes eld
2888 \end_inset
2889
2890 fancy
2891 \begin_inset Quotes erd
2892 \end_inset
2893
2894 , as mentioned in the 
2895 \family sans
2896 User\InsetSpace ~
2897 Guide
2898 \family default
2899 .
2900  This section describes the LaTeX codes you need to insert in your LaTeX
2901  preamble or the text in order to get the desired effects.
2902 \end_layout
2903
2904 \begin_layout Standard
2905 The page header is divided into three fields, not surprisingly labeled 
2906 \begin_inset Quotes eld
2907 \end_inset
2908
2909 left
2910 \begin_inset Quotes erd
2911 \end_inset
2912
2913
2914 \begin_inset Quotes eld
2915 \end_inset
2916
2917 center
2918 \begin_inset Quotes erd
2919 \end_inset
2920
2921 , and 
2922 \begin_inset Quotes eld
2923 \end_inset
2924
2925 right
2926 \begin_inset Quotes erd
2927 \end_inset
2928
2929 .
2930  The footer is also divided into these three fields.
2931  The LaTeX commands to set these fields in the simplest manner are 
2932 \family typewriter
2933
2934 \backslash
2935 lhead
2936 \family default
2937
2938 \family typewriter
2939
2940 \backslash
2941 chead
2942 \family default
2943
2944 \family typewriter
2945
2946 \backslash
2947 rhead
2948 \family default
2949
2950 \family typewriter
2951
2952 \backslash
2953 lfoot
2954 \family default
2955 , etc.
2956  Suppose you wish to put your name in the upper left hand corner of each
2957  page.
2958  Simply insert the following command in the preamble: 
2959 \end_layout
2960
2961 \begin_layout Standard
2962
2963 \family typewriter
2964
2965 \backslash
2966 lhead{John Q.
2967  DocWriter}
2968 \end_layout
2969
2970 \begin_layout Standard
2971 You will now see your name in the upper left.
2972  If a field has a default entry that you would like to get rid of (often
2973  the page number appears in the central footer, simply include a command
2974  with a blank argument, e.\InsetSpace \thinspace{}
2975 g.
2976 \end_layout
2977
2978 \begin_layout Standard
2979
2980 \family typewriter
2981
2982 \backslash
2983 cfoot{}
2984 \end_layout
2985
2986 \begin_layout Standard
2987 Let's get really fancy: lets put the section number with the word 
2988 \begin_inset Quotes eld
2989 \end_inset
2990
2991 Section
2992 \begin_inset Quotes erd
2993 \end_inset
2994
2995  (e.\InsetSpace \thinspace{}
2996 g.\InsetSpace ~
2997 Section 3) in the upper left, the page number (e.\InsetSpace \thinspace{}
2998 g.\InsetSpace ~
2999 Page 4) in the upper
3000  right, your name in the lower left, and the date in the lower right.
3001  The following commands should now appear in the preamble:
3002 \end_layout
3003
3004 \begin_layout Standard
3005
3006 \family typewriter
3007
3008 \backslash
3009 lhead{Section 
3010 \backslash
3011 thesection}
3012 \end_layout
3013
3014 \begin_layout Standard
3015
3016 \family typewriter
3017
3018 \backslash
3019 chead{}
3020 \end_layout
3021
3022 \begin_layout Standard
3023
3024 \family typewriter
3025
3026 \backslash
3027 rhead{Page 
3028 \backslash
3029 thepage}
3030 \end_layout
3031
3032 \begin_layout Standard
3033
3034 \family typewriter
3035
3036 \backslash
3037 lfoot{John Q.
3038  DocWriter}
3039 \end_layout
3040
3041 \begin_layout Standard
3042
3043 \family typewriter
3044
3045 \backslash
3046 cfoot{}
3047 \end_layout
3048
3049 \begin_layout Standard
3050
3051 \family typewriter
3052
3053 \backslash
3054 rfoot{
3055 \backslash
3056 today}
3057 \end_layout
3058
3059 \begin_layout Standard
3060 The codes 
3061 \family typewriter
3062
3063 \backslash
3064 thesection
3065 \family default
3066  and 
3067 \family typewriter
3068
3069 \backslash
3070 thepage
3071 \family default
3072  access LaTeX's section and page counters, and so print out the current
3073  section and page numbers.
3074  
3075 \family typewriter
3076
3077 \backslash
3078 today
3079 \family default
3080  simply prints out today's date.
3081 \end_layout
3082
3083 \begin_layout Standard
3084 The thicknesses of the horizontal rules drawn beneath the header and above
3085  the footer can also be modified.
3086  If you don't want one of the headers, set its thickness to 0.
3087  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3088  Use the commands, e.\InsetSpace \thinspace{}
3089 g.
3090  
3091 \family typewriter
3092
3093 \backslash
3094 renewcommand{
3095 \backslash
3096 headrulewidth}{0.4pt}
3097 \family default
3098  and 
3099 \family typewriter
3100
3101 \backslash
3102 renewcommand{
3103 \backslash
3104 footrulewidth}{0.4pt}
3105 \family default
3106  to set the thicknesses.
3107 \end_layout
3108
3109 \begin_layout Standard
3110 You can switch the header/footer settings on and off for individual pages
3111  using commands like 
3112 \family typewriter
3113
3114 \backslash
3115 thispagestyle{empty}
3116 \family default
3117
3118 \family typewriter
3119
3120 \backslash
3121 thispagestyle{plain}
3122 \family default
3123 , and 
3124 \family typewriter
3125
3126 \backslash
3127 thispagestyle{fancy}
3128 \family default
3129 .
3130  Simply insert them in the text on the page you want changed and mark them
3131  as TeX code.
3132  In fact, title pages are marked as plain by default, while following pages
3133  are marked fancy when using the global fancy setting.
3134 \end_layout
3135
3136 \begin_layout Standard
3137 There are more complex commands which will let you insert things in the
3138  upper left on odd numbered pages, etc., but I will refer you to the 
3139 \family typewriter
3140 fancyhdr
3141 \family default
3142  package documentation for more descriptions.
3143  For example, if you have a teTeX installation, look for 
3144 \family typewriter
3145 /usr/share/texmf/doc/latex/fancyhdr/\SpecialChar \-
3146 fancyhdr.dvi
3147 \family default
3148 .
3149 \end_layout
3150
3151 \begin_layout Standard
3152 As a final example, it is possible to include an Encapsulated PostScript
3153  file in the header or footer.
3154  Suppose you want to put a company logo in the upper lefthand corner.
3155  You might try something like
3156 \end_layout
3157
3158 \begin_layout Standard
3159
3160 \family typewriter
3161
3162 \backslash
3163 lhead{
3164 \backslash
3165 resizebox{1in}{!}{
3166 \backslash
3167 includegraphics{logo.eps}}}
3168 \end_layout
3169
3170 \begin_layout Standard
3171 \noindent
3172 (you may need to preface this with 
3173 \family typewriter
3174
3175 \backslash
3176 usepackage{graphics}
3177 \family default
3178  if you don't include EPS files elsewhere in your document).
3179 \end_layout
3180
3181 \begin_layout Section
3182 Itemize Bullet Selection
3183 \begin_inset LatexCommand label
3184 name "sec:bullet"
3185
3186 \end_inset
3187
3188
3189 \end_layout
3190
3191 \begin_layout Standard
3192 by
3193 \noun on
3194  Allan Rae
3195 \end_layout
3196
3197 \begin_layout Subsection
3198 Introduction
3199 \end_layout
3200
3201 \begin_layout Standard
3202 LyX provides 216 bullet shapes that can be accessed from a simple dialog.
3203  Using this dialog you can easily specify what bullet shape to use at each
3204  level of an itemized list.
3205  These settings are document-wide so you won't be able to specify different
3206  sets of bullets for different paragraphs
3207 \begin_inset Foot
3208 status collapsed
3209
3210 \begin_layout Standard
3211 Well, actually you can but you'll have to do it by hand.
3212 \end_layout
3213
3214 \end_inset
3215
3216 .
3217 \end_layout
3218
3219 \begin_layout Subsection
3220 How it looks
3221 \end_layout
3222
3223 \begin_layout Standard
3224 Open the dialog by selecting the 
3225 \family sans
3226 \bar under
3227 D
3228 \bar default
3229 ocument\SpecialChar \menuseparator
3230
3231 \bar under
3232 S
3233 \bar default
3234 ettings
3235 \family default
3236  menu item and then select the 
3237 \family sans
3238 \bar under
3239 B
3240 \bar default
3241 ullets
3242 \family default
3243  tab.
3244 \end_layout
3245
3246 \begin_layout Standard
3247 The dialog provides you with a table of bullet shapes.
3248  A column of buttons on the left of the table provides access to the six
3249  different panels of bullet shapes.
3250  The row of buttons across the top is used to select which bullet depth
3251  you are changing.
3252  A text entry under the table shows the currently selected bullet shape's
3253  LaTeX equivalent and this can be edited if desired.
3254  If you do modify the text you will also need to specify any needed packages
3255  in the LaTeX preamble.
3256 \end_layout
3257
3258 \begin_layout Standard
3259 The six panels are divided up by the packages they require.
3260  The following table shows the mappings from button name to LaTeX packages.
3261 \end_layout
3262
3263 \begin_layout Standard
3264 \align center
3265 \begin_inset Tabular
3266 <lyxtabular version="3" rows="7" columns="2">
3267 <features>
3268 <column alignment="center" valignment="top" leftline="true" width="0pt">
3269 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
3270 <row topline="true" bottomline="true">
3271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3272 \begin_inset Text
3273
3274 \begin_layout Standard
3275
3276 \family roman
3277 \series medium
3278 \shape up
3279 \size normal
3280 \emph off
3281 \bar no
3282 \noun off
3283 \color none
3284 Button
3285 \end_layout
3286
3287 \end_inset
3288 </cell>
3289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3290 \begin_inset Text
3291
3292 \begin_layout Standard
3293
3294 \family roman
3295 \series medium
3296 \shape up
3297 \size normal
3298 \emph off
3299 \bar no
3300 \noun off
3301 \color none
3302 Packages Required
3303 \end_layout
3304
3305 \end_inset
3306 </cell>
3307 </row>
3308 <row topline="true">
3309 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3310 \begin_inset Text
3311
3312 \begin_layout Standard
3313
3314 \family sans
3315 \series medium
3316 \shape up
3317 \size normal
3318 \emph off
3319 \bar no
3320 \noun off
3321 \color none
3322 Standard
3323 \end_layout
3324
3325 \end_inset
3326 </cell>
3327 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3328 \begin_inset Text
3329
3330 \begin_layout Standard
3331
3332 \series medium
3333 \shape up
3334 \size normal
3335 \emph off
3336 \bar no
3337 \noun off
3338 \color none
3339 base LaTeX
3340 \end_layout
3341
3342 \end_inset
3343 </cell>
3344 </row>
3345 <row topline="true">
3346 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3347 \begin_inset Text
3348
3349 \begin_layout Standard
3350
3351 \family sans
3352 \series medium
3353 \shape up
3354 \size normal
3355 \emph off
3356 \bar no
3357 \noun off
3358 \color none
3359 Maths
3360 \end_layout
3361
3362 \end_inset
3363 </cell>
3364 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3365 \begin_inset Text
3366
3367 \begin_layout Standard
3368
3369 \family typewriter
3370 \series medium
3371 \shape up
3372 \size normal
3373 \emph off
3374 \bar no
3375 \noun off
3376 \color none
3377 amssymb.sty
3378 \end_layout
3379
3380 \end_inset
3381 </cell>
3382 </row>
3383 <row topline="true">
3384 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3385 \begin_inset Text
3386
3387 \begin_layout Standard
3388
3389 \family sans
3390 \series medium
3391 \shape up
3392 \size normal
3393 \emph off
3394 \bar no
3395 \noun off
3396 \color none
3397 Ding1
3398 \end_layout
3399
3400 \end_inset
3401 </cell>
3402 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3403 \begin_inset Text
3404
3405 \begin_layout Standard
3406
3407 \family typewriter
3408 \series medium
3409 \shape up
3410 \size normal
3411 \emph off
3412 \bar no
3413 \noun off
3414 \color none
3415 pifont.sty
3416 \end_layout
3417
3418 \end_inset
3419 </cell>
3420 </row>
3421 <row topline="true">
3422 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3423 \begin_inset Text
3424
3425 \begin_layout Standard
3426
3427 \family sans
3428 \series medium
3429 \shape up
3430 \size normal
3431 \emph off
3432 \bar no
3433 \noun off
3434 \color none
3435 Ding2
3436 \end_layout
3437
3438 \end_inset
3439 </cell>
3440 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3441 \begin_inset Text
3442
3443 \begin_layout Standard
3444
3445 \family typewriter
3446 \series medium
3447 \shape up
3448 \size normal
3449 \emph off
3450 \bar no
3451 \noun off
3452 \color none
3453 pifont.sty
3454 \end_layout
3455
3456 \end_inset
3457 </cell>
3458 </row>
3459 <row topline="true">
3460 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3461 \begin_inset Text
3462
3463 \begin_layout Standard
3464
3465 \family sans
3466 \series medium
3467 \shape up
3468 \size normal
3469 \emph off
3470 \bar no
3471 \noun off
3472 \color none
3473 Ding3
3474 \end_layout
3475
3476 \end_inset
3477 </cell>
3478 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3479 \begin_inset Text
3480
3481 \begin_layout Standard
3482
3483 \family typewriter
3484 \series medium
3485 \shape up
3486 \size normal
3487 \emph off
3488 \bar no
3489 \noun off
3490 \color none
3491 pifont.sty
3492 \end_layout
3493
3494 \end_inset
3495 </cell>
3496 </row>
3497 <row topline="true" bottomline="true">
3498 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3499 \begin_inset Text
3500
3501 \begin_layout Standard
3502
3503 \family sans
3504 \series medium
3505 \shape up
3506 \size normal
3507 \emph off
3508 \bar no
3509 \noun off
3510 \color none
3511 Ding4
3512 \end_layout
3513
3514 \end_inset
3515 </cell>
3516 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3517 \begin_inset Text
3518
3519 \begin_layout Standard
3520
3521 \family typewriter
3522 \series medium
3523 \shape up
3524 \size normal
3525 \emph off
3526 \bar no
3527 \noun off
3528 \color none
3529 pifont.sty
3530 \end_layout
3531
3532 \end_inset
3533 </cell>
3534 </row>
3535 </lyxtabular>
3536
3537 \end_inset
3538
3539
3540 \end_layout
3541
3542 \begin_layout Standard
3543 LyX doesn't stop you using bullets from packages you don't have.
3544  If you get errors from LaTeX when you try to view or print the file then
3545  its likely you are missing a package.
3546  LyX doesn't restrict your use since you may be editing locally and exporting
3547  elsewhere.
3548 \end_layout
3549
3550 \begin_layout Subsection
3551 How to use it
3552 \end_layout
3553
3554 \begin_layout Standard
3555 Select which bullet depth you want to change then select the bullet shape
3556  and size.
3557  Any changes will not be visible in LyX, but are visible when viewing the
3558  document using xdvi or ghostview.
3559 \end_layout
3560
3561 \begin_layout Standard
3562 You can reset a bullet shape to the default simply by clicking your right
3563  mouse button on the appropriate bullet depth button.
3564 \end_layout
3565
3566 \begin_layout Standard
3567 If you 
3568 \emph on
3569 really
3570 \emph default
3571  want to have multiple sets of paragraphs with different sets of bullets
3572  in each then you're going to have to get your hands dirty.
3573  The itemize bullet selection dialog can help though because it provides
3574  you with the LaTeX code for a wide range of bullet shapes.
3575  To make your own custom paragraphs you have the following options:
3576 \end_layout
3577
3578 \begin_layout Standard
3579 \begin_inset ERT
3580 status inlined
3581
3582 \begin_layout Standard
3583
3584
3585 \backslash
3586 let
3587 \backslash
3588 savelabelitemi=
3589 \backslash
3590 labelitemi
3591 \end_layout
3592
3593 \end_inset
3594
3595
3596 \end_layout
3597
3598 \begin_layout Standard
3599 \begin_inset ERT
3600 status inlined
3601
3602 \begin_layout Standard
3603
3604
3605 \backslash
3606 renewcommand
3607 \backslash
3608 labelitemi[0]{
3609 \backslash
3610 small
3611 \backslash
3612 (
3613 \backslash
3614 sharp
3615 \backslash
3616 )}
3617 \end_layout
3618
3619 \end_inset
3620
3621
3622 \end_layout
3623
3624 \begin_layout Itemize
3625 Use the LaTeX command 
3626 \family typewriter
3627
3628 \backslash
3629 renewcommand{}{}
3630 \family default
3631  to specify a new bullet shape for a given depth.
3632  You'll also need to save the current bullet shape so you can restore it
3633  again afterwards.
3634  In this itemized list the following LaTeX code was used to change the bullet
3635  used for the first depth.
3636 \newline
3637
3638 \family typewriter
3639
3640 \backslash
3641 let
3642 \backslash
3643 savelabelitemi=
3644 \backslash
3645 labelitemi
3646 \family default
3647  
3648 \family typewriter
3649
3650 \newline
3651
3652 \backslash
3653 renewcommand
3654 \backslash
3655 labelitemi[0]{
3656 \backslash
3657 small
3658 \backslash
3659 (
3660 \backslash
3661 sharp
3662 \backslash
3663 )}
3664 \newline
3665
3666 \family default
3667 Note that the itemize depth is specified in Roman numerals as part of the
3668  
3669 \family typewriter
3670
3671 \backslash
3672 labelitem
3673 \family default
3674  command.
3675 \end_layout
3676
3677 \begin_layout Itemize
3678 \begin_inset ERT
3679 status inlined
3680
3681 \begin_layout Standard
3682
3683 [
3684 \backslash
3685 (
3686 \backslash
3687 star
3688 \backslash
3689 )]
3690 \end_layout
3691
3692 \end_inset
3693
3694  Specify each individual entry by starting each item with the bullet shape
3695  enclosed in square brackets and set as TeX.
3696  For example, this item was started with 
3697 \family typewriter
3698 [
3699 \backslash
3700 (
3701 \backslash
3702 star
3703 \backslash
3704 )]
3705 \family default
3706 .
3707 \end_layout
3708
3709 \begin_layout Standard
3710 \begin_inset ERT
3711 status inlined
3712
3713 \begin_layout Standard
3714
3715
3716 \backslash
3717 renewcommand
3718 \backslash
3719 labelitemi[0]{
3720 \backslash
3721 savelabelitemi}
3722 \end_layout
3723
3724 \end_inset
3725
3726
3727 \end_layout
3728
3729 \begin_layout Standard
3730 You'll also need to revert the labelitem back to its previous setting for
3731  the global bullet shape settings to remain in effect.
3732  The way used here was:
3733 \newline
3734
3735 \family typewriter
3736
3737 \backslash
3738 renewcommand
3739 \backslash
3740 labelitemi[0]{
3741 \backslash
3742 savelabelitemi}
3743 \end_layout
3744
3745 \begin_layout Chapter
3746 Special Document Classes
3747 \end_layout
3748
3749 \begin_layout Section
3750 AMS LaTeX
3751 \end_layout
3752
3753 \begin_layout Standard
3754 by 
3755 \noun on
3756 David Johnson
3757 \end_layout
3758
3759 \begin_layout Standard
3760 \begin_inset VSpace bigskip
3761 \end_inset
3762
3763
3764 \end_layout
3765
3766 \begin_layout Standard
3767 \noindent
3768 The AMS LaTeX layouts are set up to conform to suggested styles for mathematical
3769  papers to be submitted to American Mathematical Society publications.
3770  The layouts are not tailored to a specific journal, but easily can be.
3771  You should refer to the AMS documentation for specific instructions for
3772  each journal (usually it will entail only changing a single line in the
3773  TeX output).
3774  That documentation is available on the Web at 
3775 \begin_inset LatexCommand url
3776 target "http://www.ams.org"
3777
3778 \end_inset
3779
3780  or by ftp at 
3781 \begin_inset LatexCommand url
3782 target "ftp://ftp.ams.org/pub/tex/amslatex/"
3783
3784 \end_inset
3785
3786 .These layouts are appropriate, and useful, for any mathematical writing.
3787  There are currently 4 distinct AMS LaTeX layouts: 
3788 \end_layout
3789
3790 \begin_layout Enumerate
3791 amsart: The standard AMS-article format.
3792  All results and similar statements are numbered as 
3793 \begin_inset Formula $(n.m)$
3794 \end_inset
3795
3796 , where the first number refers to the section, and the second refers to
3797  the total number of results (Theorems, Corollaries, Propositions, Definitions
3798  and Remarks, etc.) in that section.
3799  There are also many (but not all) environments available unnumbered, which
3800  is occasionally needed.
3801  Unnumbered environments indicated by an asterisk at the end.
3802 \end_layout
3803
3804 \begin_layout Enumerate
3805 amsart-seq: Here, numbering for each type of statement is in its own sequence,
3806  with no reference to the section number.
3807  There are also many (but not all) environments available unnumbered, which
3808  is occasionally needed.
3809  Unnumbered environments indicated by an asterisk at the end.
3810 \end_layout
3811
3812 \begin_layout Enumerate
3813 amsart-plain: This one is even more terse, since all the environments are
3814  unnumbered.
3815 \end_layout
3816
3817 \begin_layout Enumerate
3818 amsbook: the standard AMS book (really, monograph) format.
3819  Numbering is similar to the amsart layout, except that all numbering is
3820  by 
3821 \begin_inset Formula $(n.m.p)$
3822 \end_inset
3823
3824 , where the first number refers to the chapter, the second to the section,
3825  and the third is the number of the results (Theorems, Corollaries, Propositions
3826 , Definitions and Remarks, etc.) in that section.
3827  There are also many (but not all) environments available unnumbered, which
3828  is occasionally needed.
3829  Unnumbered environments indicated by an asterisk at the end.
3830 \end_layout
3831
3832 \begin_layout Standard
3833 Any AMS LyX file can be converted to either of the numbering schemes by
3834  simply changing the document class in the 
3835 \family sans
3836 \bar under
3837 D
3838 \bar default
3839 ocument\SpecialChar \menuseparator
3840
3841 \bar under
3842 S
3843 \bar default
3844 ettings
3845 \family default
3846  dialog.
3847  
3848 \end_layout
3849
3850 \begin_layout Subsection
3851 What these layouts provide
3852 \end_layout
3853
3854 \begin_layout Standard
3855 There is a long list of included environments provided by these layouts.
3856  Most mathematical papers or books will set as special statements most of
3857  these environments, in AMS-LaTeX there is an opportunity to define an unlimited
3858  variety of such declarations.
3859  However, the AMS recommends the environments that are available in LyX.
3860  The list of environments (not counting the standard environments such as
3861  
3862 \family sans
3863 sections, bibliography, title, author, date
3864 \family default
3865 ), is:
3866 \end_layout
3867
3868 \begin_layout Description
3869 Theorem This is typically used for the statements of major results.
3870  The word 
3871 \begin_inset Quotes eld
3872 \end_inset
3873
3874
3875 \family sans
3876 Theorem
3877 \family default
3878
3879 \begin_inset Quotes erd
3880 \end_inset
3881
3882  appears in bold type, along with an automatically-determined number (an
3883  unnumbered version, 
3884 \family sans
3885 Theorem*
3886 \family default
3887 , is also available).
3888  The text is italicized.
3889 \end_layout
3890
3891 \begin_layout Description
3892 Corollary This is used for statements which follow fairly directly from
3893  previous statements.
3894  Again, these can be major results.
3895  Unnumbered version 
3896 \family sans
3897 Corollary*
3898 \family default
3899  is available.
3900 \end_layout
3901
3902 \begin_layout Description
3903 Lemma These are smaller results needed to prove other statements.
3904 \end_layout
3905
3906 \begin_layout Description
3907 Proposition These are less major results which (hopefully) add to the general
3908  theory being discussed.
3909 \end_layout
3910
3911 \begin_layout Description
3912 Conjecture These are statements provided without justification, which the
3913  author does not know how to prove, but which seem to be true (to the author,
3914  at least).
3915 \end_layout
3916
3917 \begin_layout Description
3918 Criterion A required condition.
3919 \end_layout
3920
3921 \begin_layout Description
3922 Algorithm A general procedure to be used.
3923 \end_layout
3924
3925 \begin_layout Description
3926 Axiom This is a property or statement taken as true within the system being
3927  discussed.
3928 \end_layout
3929
3930 \begin_layout Description
3931 Definition Guess what this is for.
3932  The font, both on-screen and in the output, is different for this environment
3933  than for the previous ones.
3934  The heading (
3935 \begin_inset Quotes eld
3936 \end_inset
3937
3938 definition
3939 \begin_inset Quotes erd
3940 \end_inset
3941
3942 ) is still set in boldface, along with the number, if any, but the rest
3943  is set upright.
3944 \end_layout
3945
3946 \begin_layout Description
3947 Example Typeset similarly to Definition.
3948 \end_layout
3949
3950 \begin_layout Description
3951 Condition
3952 \end_layout
3953
3954 \begin_layout Description
3955 Problem
3956 \end_layout
3957
3958 \begin_layout Description
3959 Exercise
3960 \end_layout
3961
3962 \begin_layout Description
3963 Remark This environment is also a new type of theorem.
3964  This is set with the word Remark in italics, and the rest upright.
3965 \end_layout
3966
3967 \begin_layout Description
3968 Note Set similarly to the Remark environment.
3969 \end_layout
3970
3971 \begin_layout Description
3972 Notation
3973 \end_layout
3974
3975 \begin_layout Description
3976 Claim
3977 \end_layout
3978
3979 \begin_layout Description
3980 Summary
3981 \end_layout
3982
3983 \begin_layout Description
3984 Acknowledgement
3985 \end_layout
3986
3987 \begin_layout Description
3988 Case Generally, these are used to break up long arguments, using specific
3989  instances of some condition.
3990  The numbering scheme for cases is on its own, not together with other numbered
3991  statements.
3992  
3993 \end_layout
3994
3995 \begin_layout Description
3996 Conclusion
3997 \end_layout
3998
3999 \begin_layout Description
4000 Fact 
4001 \end_layout
4002
4003 \begin_layout Description
4004 Proof The word 
4005 \begin_inset Quotes eld
4006 \end_inset
4007
4008
4009 \shape italic
4010 Proof
4011 \shape default
4012
4013 \begin_inset Quotes erd
4014 \end_inset
4015
4016  is set in italics, but the rest is set upright.
4017  At the end of this environment (other environments can be nested within
4018  this one, of course) a QED symbol (usually a square, but it can vary with
4019  different styles) is placed.
4020 \end_layout
4021
4022 \begin_layout Description
4023 Address This should be the author's permanent address.
4024 \end_layout
4025
4026 \begin_layout Description
4027 Current\InsetSpace ~
4028 Address This should be the author's temporary address at the time
4029  of submission, if different from the Address.
4030 \end_layout
4031
4032 \begin_layout Description
4033 Email Author's e-mail address
4034 \end_layout
4035
4036 \begin_layout Description
4037 URL Author's Web address, if desired.
4038 \end_layout
4039
4040 \begin_layout Description
4041 Keywords Key words or phrases used to identify specific topics discussed
4042  in the paper.
4043 \end_layout
4044
4045 \begin_layout Description
4046 Subjectclass These refer to the AMS Subject Classifications, published and
4047  described in 
4048 \emph on
4049 Mathematical Reviews
4050 \emph default
4051 .
4052  These are also available online at the AMS cites listed above.
4053 \end_layout
4054
4055 \begin_layout Description
4056 Thanks
4057 \end_layout
4058
4059 \begin_layout Description
4060 Dedicatory
4061 \end_layout
4062
4063 \begin_layout Description
4064 Translator
4065 \end_layout
4066
4067 \begin_layout Standard
4068 In addition, these environments automatically provide the AMS LaTeX and
4069  AMS fonts packages.
4070  They need to be available on your system in order to use these environments.
4071 \end_layout
4072
4073 \begin_layout Section
4074 Dinbrief
4075 \end_layout
4076
4077 \begin_layout Standard
4078 The document class 
4079 \family sans
4080 dinbrief
4081 \family default
4082  can be used to type letters according to German conventions.
4083  A template file is included in 
4084 \family typewriter
4085 .../lyx/share/templates
4086 \family default
4087  for you to use as a starting point.
4088 \end_layout
4089
4090 \begin_layout Section
4091 Paper
4092 \end_layout
4093
4094 \begin_layout Standard
4095 The document class 
4096 \family sans
4097 paper
4098 \family default
4099  provides an alternative to the standard 
4100 \family sans
4101 article
4102 \family default
4103  class.
4104  It provides similar functionality, but you might prefer this layout with
4105  sans serif sections, headings, and more.
4106 \end_layout
4107
4108 \begin_layout Section
4109 A&A Paper
4110 \end_layout
4111
4112 \begin_layout Standard
4113 by 
4114 \noun on
4115 Peter Sütterlin
4116 \end_layout
4117
4118 \begin_layout Subsection
4119 Introduction
4120 \end_layout
4121
4122 \begin_layout Standard
4123 This section describes how LyX can be used to write articles for submission
4124  to the scientific journal 
4125 \emph on
4126 Astronomy and Astrophysics
4127 \emph default
4128  (
4129 \begin_inset LatexCommand url
4130 name "www.edpsciences.fr/aa/"
4131 target "http://www.edpsciences.fr/aa/"
4132
4133 \end_inset
4134
4135 ) using Version 5.01 of the document class 
4136 \family typewriter
4137 aa.cls
4138 \family default
4139 .
4140  This package can be downloaded from the ftp site
4141 \end_layout
4142
4143 \begin_layout Standard
4144 \begin_inset VSpace medskip
4145 \end_inset
4146
4147
4148 \end_layout
4149
4150 \begin_layout Standard
4151 \align center
4152 \begin_inset LatexCommand url
4153 target "ftp://ftp.edpsciences.org/pub/aa/readme.html"
4154
4155 \end_inset
4156
4157
4158 \end_layout
4159
4160 \begin_layout Standard
4161 \begin_inset VSpace medskip
4162 \end_inset
4163
4164
4165 \end_layout
4166
4167 \begin_layout Standard
4168 A manual comes together with that package, and this text is not meant to
4169  replace the original manual but merely a short guide how to realize the
4170  correct form of your paper.
4171  
4172 \end_layout
4173
4174 \begin_layout Standard
4175 Please note that the publisher of the journal was changed from Springer
4176  to EDP Sciences starting January 1, 2001.
4177  That change implicated also some slight changes of the style files, namely
4178  the removal of the thesaurus command.
4179  The LyX class aa supports the newest version of these style files, V 5.01.
4180  If you have an older version installed, please upgrade.
4181  For compatibility, the old (version 4) layout has been kept as 
4182 \family sans
4183 article (A&A V4)
4184 \family default
4185 .
4186  Please refer to the comments in 
4187 \family typewriter
4188 LyXDir/layouts/aapaper.layout
4189 \family default
4190 .
4191 \end_layout
4192
4193 \begin_layout Subsection
4194 Getting started
4195 \end_layout
4196
4197 \begin_layout Standard
4198 It is recommended you start from the example template distributed with LyX.
4199  If you are not using a template, note the following settings:
4200 \end_layout
4201
4202 \begin_layout Itemize
4203 Select 
4204 \family sans
4205 article (A&A)
4206 \family default
4207  in the 
4208 \family sans
4209 \bar under
4210 D
4211 \bar default
4212 ocument\SpecialChar \menuseparator
4213
4214 \bar under
4215 S
4216 \bar default
4217 ettings
4218 \family default
4219  dialog (OK, that one was obvious).
4220 \end_layout
4221
4222 \begin_layout Itemize
4223 Don't change the option 
4224 \family sans
4225 Page\InsetSpace ~
4226 style
4227 \family default
4228 : Leave it set to 
4229 \family sans
4230 default
4231 \family default
4232 .
4233  The whole layout is done by the macros, you shouldn't change anything.
4234 \end_layout
4235
4236 \begin_layout Subsection
4237 The header block
4238 \end_layout
4239
4240 \begin_layout Standard
4241 First thing to enter is the header information.
4242  It consists of seven entries, of which some are optional.
4243  They are
4244 \end_layout
4245
4246 \begin_layout Itemize
4247
4248 \family sans
4249 Title
4250 \family default
4251 : [required] 
4252 \end_layout
4253
4254 \begin_layout Itemize
4255
4256 \family sans
4257 Subtitle
4258 \family default
4259 : [optional] 
4260 \end_layout
4261
4262 \begin_layout Itemize
4263
4264 \family sans
4265 Author
4266 \family default
4267 : [required]
4268 \end_layout
4269
4270 \begin_layout Itemize
4271
4272 \family sans
4273 Address
4274 \family default
4275 : [required]
4276 \end_layout
4277
4278 \begin_layout Itemize
4279
4280 \family sans
4281 Offprints
4282 \family default
4283 : [optional] if more than one author: whom to contact for offprint requests.
4284 \end_layout
4285
4286 \begin_layout Itemize
4287
4288 \family sans
4289 Mail
4290 \family default
4291 : [optional] mail address for contacts.
4292 \end_layout
4293
4294 \begin_layout Itemize
4295
4296 \family sans
4297 Date
4298 \family default
4299 : [required].
4300  Suggested format is 
4301 \family typewriter
4302 Received: <date>; Accepted <date> 
4303 \end_layout
4304
4305 \begin_layout Standard
4306 There is no need to issue the 
4307 \family typewriter
4308
4309 \backslash
4310 maketitle
4311 \family default
4312  command, this is done automatically by LyX when the header is finished.
4313  Although the order of the single header entries doesn't matter it is advised
4314  to keep the above sequence, just to get the best optics and meets the layout
4315  of the real document.
4316 \end_layout
4317
4318 \begin_layout Standard
4319 If you want to place footnotes in the header block, e.\InsetSpace \thinspace{}
4320 g.
4321 \begin_inset ERT
4322 status collapsed
4323
4324 \begin_layout Standard
4325
4326
4327 \backslash
4328  
4329 \end_layout
4330
4331 \end_inset
4332
4333 to state your present address, just use the standard footnote via 
4334 \family sans
4335 \bar under
4336 I
4337 \bar default
4338 nsert\SpecialChar \menuseparator
4339
4340 \bar under
4341 F
4342 \bar default
4343 ootnote.
4344
4345 \family default
4346  LyX will automagically use the term 
4347 \family typewriter
4348
4349 \backslash
4350 thanks{}
4351 \family default
4352  in that case.
4353 \end_layout
4354
4355 \begin_layout Standard
4356 In addition to these topics, the macros use three additional LaTeX commands
4357  that have no counterpart in LyX:
4358 \end_layout
4359
4360 \begin_layout Itemize
4361
4362 \family typewriter
4363
4364 \backslash
4365 and
4366 \family default
4367  to separate different names for more than one author and institute, respectivel
4368 y.
4369 \end_layout
4370
4371 \begin_layout Itemize
4372
4373 \family typewriter
4374
4375 \backslash
4376 inst{<nr>}
4377 \family default
4378 to mark corresponding author/institute pairs.
4379  The institutes are numbered sequentially as they appear in the 
4380 \family sans
4381 Address
4382 \family default
4383  field, so you have to put a marker to each author.
4384 \end_layout
4385
4386 \begin_layout Itemize
4387
4388 \family typewriter
4389
4390 \backslash
4391 email{address}
4392 \family default
4393  to supply an email address for fast contact.
4394 \end_layout
4395
4396 \begin_layout Standard
4397 In all cases, the appropriate command has to be entered in LyX and marked
4398  as LaTeX code.
4399  See the examples.
4400  
4401 \end_layout
4402
4403 \begin_layout Subsection
4404 The abstract
4405 \end_layout
4406
4407 \begin_layout Standard
4408 The abstract should immediately follow the header block.
4409  With version 5 the abstract environment was changed to a command, and there
4410  is now a resctriction to only one paragraph.
4411  In addition, it should contain an entry with the keywords.
4412  This is not yet implemented for LyX, therefore you have to enter the LaTeX
4413  command 
4414 \family typewriter
4415
4416 \backslash
4417 keywords{}
4418 \family default
4419  by hand and mark it as LaTeX code.
4420  Refer to the example paper.
4421 \end_layout
4422
4423 \begin_layout Subsection
4424 Supported environments
4425 \end_layout
4426
4427 \begin_layout Standard
4428 The A&A paper layout supports the following environments for structuring
4429  your text:
4430 \end_layout
4431
4432 \begin_layout Itemize
4433
4434 \family sans
4435 Standard
4436 \end_layout
4437
4438 \begin_layout Itemize
4439
4440 \family sans
4441 Section
4442 \end_layout
4443
4444 \begin_layout Itemize
4445
4446 \family sans
4447 Subsection
4448 \end_layout
4449
4450 \begin_layout Itemize
4451
4452 \family sans
4453 Subsubsection
4454 \end_layout
4455
4456 \begin_layout Itemize
4457
4458 \family sans
4459 Itemize
4460 \end_layout
4461
4462 \begin_layout Itemize
4463
4464 \family sans
4465 Enumerate
4466 \end_layout
4467
4468 \begin_layout Itemize
4469
4470 \family sans
4471 Description
4472 \end_layout
4473
4474 \begin_layout Itemize
4475
4476 \family sans
4477 Caption
4478 \end_layout
4479
4480 \begin_layout Itemize
4481
4482 \family sans
4483 Abstract
4484 \end_layout
4485
4486 \begin_layout Itemize
4487
4488 \family sans
4489 Acknowledgment
4490 \end_layout
4491
4492 \begin_layout Itemize
4493
4494 \family sans
4495 Bibliography
4496 \end_layout
4497
4498 \begin_layout Itemize
4499
4500 \family sans
4501 LaTeX
4502 \end_layout
4503
4504 \begin_layout Subsection
4505 Commands not supported by LyX
4506 \end_layout
4507
4508 \begin_layout Standard
4509 Some commands are not yet supported by the 
4510 \family sans
4511 paper (A&A)
4512 \family default
4513  layout for LyX.
4514  Some have already been mentioned.
4515  For the sake of completeness, they are listed all together here:
4516 \end_layout
4517
4518 \begin_layout Itemize
4519
4520 \family typewriter
4521
4522 \backslash
4523 and
4524 \end_layout
4525
4526 \begin_layout Itemize
4527
4528 \family typewriter
4529
4530 \backslash
4531 email
4532 \end_layout
4533
4534 \begin_layout Itemize
4535
4536 \family typewriter
4537
4538 \backslash
4539 appendix
4540 \end_layout
4541
4542 \begin_layout Itemize
4543
4544 \family typewriter
4545
4546 \backslash
4547 authorrunning
4548 \end_layout
4549
4550 \begin_layout Itemize
4551
4552 \family typewriter
4553
4554 \backslash
4555 inst{}
4556 \end_layout
4557
4558 \begin_layout Itemize
4559
4560 \family typewriter
4561
4562 \backslash
4563 keywords{}
4564 \end_layout
4565
4566 \begin_layout Itemize
4567
4568 \family typewriter
4569
4570 \backslash
4571 object{}
4572 \end_layout
4573
4574 \begin_layout Itemize
4575
4576 \family typewriter
4577
4578 \backslash
4579 titlerunning{}
4580 \end_layout
4581
4582 \begin_layout Standard
4583 If you want to use any of these commands, you have to enter them yourself.
4584  
4585 \series bold
4586 Do not forget to mark them as LaTeX code!
4587 \end_layout
4588
4589 \begin_layout Subsection
4590 Figure and Table Floats
4591 \end_layout
4592
4593 \begin_layout Standard
4594 LyX provides support for the necessary float environments 
4595 \family sans
4596 figure, figure*, table
4597 \family default
4598  and 
4599 \family sans
4600 table*
4601 \family default
4602 , therefore we won't tell much about it here.
4603  Refer to the 
4604 \emph on
4605 User's\InsetSpace ~
4606 Guide
4607 \emph default
4608 .
4609  Just remember that tables should be left-aligned.
4610  For that, select the table and change the alignment in 
4611 \family sans
4612 \bar under
4613 E
4614 \bar default
4615 dit\SpecialChar \menuseparator
4616
4617 \bar under
4618 P
4619 \bar default
4620 aragraph\InsetSpace ~
4621 Settings.
4622 \end_layout
4623
4624 \begin_layout Standard
4625 There is only one special thing: the figures with caption besides the figure.
4626  To create such a figure, you have to do the following:
4627 \end_layout
4628
4629 \begin_layout Enumerate
4630 Create a wide figure float: 
4631 \family sans
4632 \bar under
4633 I
4634 \bar default
4635 nsert\SpecialChar \menuseparator
4636 Flo
4637 \bar under
4638 a
4639 \bar default
4640 t\SpecialChar \menuseparator
4641 Figure
4642 \family default
4643 , then right click in the figure and select 
4644 \family sans
4645 \bar under
4646 S
4647 \bar default
4648 pan\InsetSpace ~
4649 columns
4650 \family default
4651 .
4652 \end_layout
4653
4654 \begin_layout Enumerate
4655 Enter your caption text.
4656 \end_layout
4657
4658 \begin_layout Enumerate
4659 Press 
4660 \family sans
4661 Return
4662 \family default
4663  to move the cursor above the caption.
4664 \end_layout
4665
4666 \begin_layout Enumerate
4667 Insert your figure
4668 \end_layout
4669
4670 \begin_layout Enumerate
4671 Position the cursor behind the figure and insert a horizontal fill: 
4672 \family sans
4673 \bar under
4674 I
4675 \bar default
4676 nsert\SpecialChar \menuseparator
4677
4678 \bar under
4679 S
4680 \bar default
4681 pecial\InsetSpace ~
4682 Character
4683 \bar under
4684 \SpecialChar \menuseparator
4685 H
4686 \bar default
4687 orizontal\InsetSpace ~
4688 Fill
4689 \family default
4690 .
4691 \end_layout
4692
4693 \begin_layout Enumerate
4694 Switch to LaTeX mode: 
4695 \family sans
4696 M-c\InsetSpace ~
4697 t
4698 \family default
4699 .
4700 \end_layout
4701
4702 \begin_layout Enumerate
4703 Enter 
4704 \family typewriter
4705
4706 \backslash
4707 parbox[b]{55mm}{
4708 \family default
4709 .
4710  
4711 \series bold
4712 Do not close the brace!
4713 \end_layout
4714
4715 \begin_layout Enumerate
4716 Position the cursor behind the caption text, switch to LaTeX mode and insert
4717  the closing brace: 
4718 \family sans
4719 M-c\InsetSpace ~
4720 t
4721 \family default
4722  
4723 \family typewriter
4724 }
4725 \family default
4726 .
4727 \end_layout
4728
4729 \begin_layout Standard
4730 Also, refer to the figures in the example paper.
4731 \end_layout
4732
4733 \begin_layout Subsection
4734 Referee layout
4735 \end_layout
4736
4737 \begin_layout Standard
4738 For submission, the paper has to be formated in a special double-spacing
4739  layout.
4740  For this purpose, you have to give the option 
4741 \family typewriter
4742 referee
4743 \family default
4744  to the documentclass.
4745  This must be done using the extra class options field in the 
4746 \family sans
4747 \bar under
4748 D
4749 \bar default
4750 ocument\SpecialChar \menuseparator
4751
4752 \bar under
4753 S
4754 \bar default
4755 ettings
4756 \family default
4757  dialog.
4758  Just enter the string 
4759 \family typewriter
4760 referee
4761 \family default
4762  there.
4763 \end_layout
4764
4765 \begin_layout Subsection
4766 The example paper
4767 \end_layout
4768
4769 \begin_layout Standard
4770 The 
4771 \family sans
4772 Examples
4773 \family default
4774  directory contains an example paper written with LyX.
4775  It is the example paper from the original macro package, translated to
4776  LyX.
4777  Use it for inspiration, and compare the original LaTeX code with LyX way
4778  of writing.
4779 \end_layout
4780
4781 \begin_layout Section
4782 AASTeX
4783 \end_layout
4784
4785 \begin_layout Standard
4786 by 
4787 \noun on
4788 Mike Ressler
4789 \end_layout
4790
4791 \begin_layout Subsection
4792 Introduction
4793 \end_layout
4794
4795 \begin_layout Standard
4796 AASTeX is a set of macros produced by the American Astronomical Society
4797  to facilitate electronic manuscript submission to the three journals they
4798  publish: the Astrophysical Journal (including the Letters and Supplement),
4799  the Astronomical Journal, and the Publications of the Astronomical Society
4800  of the Pacific.
4801  LyX has proven to be an excellent tool for generating these documents,
4802  especially given its equation, citation, and figure handling capabilities.
4803  LyX requires version 5.0 (or higher) of these macros; preferably 5.2, which
4804  is the version described here, or higher.
4805  Versions prior to 5.0 are intended for use with LaTeX2.09 and are fundamentally
4806  incompatible with LyX.
4807  The AASTeX package may be downloaded from the AASTeX Web site
4808 \end_layout
4809
4810 \begin_layout Standard
4811 \begin_inset VSpace medskip
4812 \end_inset
4813
4814
4815 \end_layout
4816
4817 \begin_layout Standard
4818 \align center
4819 \begin_inset LatexCommand url
4820 target "http://www.journals.uchicago.edu/AAS/AASTeX"
4821
4822 \end_inset
4823
4824
4825 \end_layout
4826
4827 \begin_layout Standard
4828 \begin_inset VSpace medskip
4829 \end_inset
4830
4831
4832 \end_layout
4833
4834 \begin_layout Standard
4835 A complete user guide is contained in that package and you should familiarize
4836  yourself with it thoroughly before embarking on writing a paper in LyX.
4837  LyX will not reduce the need to figure out all the AASTeX commands, it
4838  will only reduce the drudgery of typing everything in.
4839  It is your responsibility to ensure that the final exported LaTeX document
4840  conforms completely to the requirements of the journal to which you are
4841  submitting your paper.
4842 \end_layout
4843
4844 \begin_layout Subsection
4845 Starting a New Paper
4846 \end_layout
4847
4848 \begin_layout Standard
4849 I strongly suggest that you start with the AASTeX template file.
4850  Click on 
4851 \family sans
4852 \bar under
4853 F
4854 \bar default
4855 ile\SpecialChar \menuseparator
4856 New from
4857 \family default
4858  
4859 \family sans
4860 \bar under
4861 T
4862 \bar default
4863 emplate
4864 \family default
4865 , enter the new file name, then choose the 
4866 \family typewriter
4867 aastex.lyx
4868 \family default
4869  template.
4870  This will show the most common fields found in a manuscript.
4871  Simply overwrite the existing text (including the brackets, 
4872 \family typewriter
4873 <>
4874 \family default
4875 ) with the correct information.
4876  Many of the AASTeX commands and environments can be implemented directly
4877  in LyX, but some cannot: most noticeably 
4878 \family typewriter
4879
4880 \backslash
4881 altaffilmark
4882 \family default
4883  and 
4884 \family typewriter
4885
4886 \backslash
4887 altaffiltext
4888 \family default
4889 , which should stick out like a sore thumb if you actually just opened the
4890  template file.
4891  For commands such as these, the LaTeX code must be entered directly and
4892  marked as such.
4893  Such commands are referred to as ERT, or Evil Red Text.
4894  I tried to minimize the amount of ERT needed in an AASTeX document, but
4895  there is still a bit more required than any of us would like.
4896 \end_layout
4897
4898 \begin_layout Subsection
4899 Finishing Your Paper
4900 \end_layout
4901
4902 \begin_layout Standard
4903 When the paper is finished to your satisfaction and previews/prints correctly,
4904  there are a few 
4905 \begin_inset Quotes eld
4906 \end_inset
4907
4908 postprocessing
4909 \begin_inset Quotes erd
4910 \end_inset
4911
4912  actions which need to be done before you submit it to the journals.
4913  
4914 \end_layout
4915
4916 \begin_layout Enumerate
4917 Export your paper as a LaTeX file (
4918 \family sans
4919 \bar under
4920 F
4921 \bar default
4922 ile\SpecialChar \menuseparator
4923
4924 \bar under
4925 E
4926 \bar default
4927 xport\SpecialChar \menuseparator
4928
4929 \bar under
4930 L
4931 \bar default
4932 aTeX
4933 \family default
4934 ).
4935  
4936 \end_layout
4937
4938 \begin_layout Enumerate
4939 Edit the resulting 
4940 \family typewriter
4941 .tex
4942 \family default
4943  file with your favorite text editor
4944 \end_layout
4945
4946 \begin_deeper
4947 \begin_layout Enumerate
4948 remove the comment lines before the 
4949 \family typewriter
4950
4951 \backslash
4952 documentclass
4953 \family default
4954  command
4955 \end_layout
4956
4957 \begin_layout Enumerate
4958 remove the 
4959 \family typewriter
4960
4961 \backslash
4962 usepackage...{fontenc}
4963 \family default
4964  line if it appears (usually just after 
4965 \family typewriter
4966
4967 \backslash
4968 documentclass
4969 \family default
4970 }; also remove the 
4971 \family typewriter
4972
4973 \backslash
4974 secnumdepth
4975 \family default
4976  line if it appears.
4977 \end_layout
4978
4979 \begin_layout Enumerate
4980 remove everything between (and including) the 
4981 \family typewriter
4982
4983 \backslash
4984 makeatletter
4985 \family default
4986  and 
4987 \family typewriter
4988
4989 \backslash
4990 makeatother
4991 \family default
4992  commands, except for any commands you specifically put into the LaTeX preamble
4993  (which should appear immediately after the 
4994 \begin_inset Quotes eld
4995 \end_inset
4996
4997 User specified LaTeX commands
4998 \begin_inset Quotes erd
4999 \end_inset
5000
5001  comment in the 
5002 \family typewriter
5003 .tex
5004 \family default
5005  file).
5006 \end_layout
5007
5008 \end_deeper
5009 \begin_layout Enumerate
5010 Run the resulting file through LaTeX to make sure it still processes correctly.
5011 \end_layout
5012
5013 \begin_layout Enumerate
5014 Reread the journal requirements to make sure your filenames and formats
5015  are correct.
5016 \end_layout
5017
5018 \begin_layout Enumerate
5019 Submit it.
5020 \end_layout
5021
5022 \begin_layout Subsection
5023 Comments On Specific Commands
5024 \end_layout
5025
5026 \begin_layout Standard
5027 I will not describe the detailed usage of the individual AASTeX commands:
5028  the AASTeX User Guide (
5029 \family typewriter
5030 aasguide.tex
5031 \family default
5032 ) gives a good description of each.
5033  Thus it's probably easiest for me to go down the list as found in the guide
5034  and offer comments where necessary.
5035  So let's begin \SpecialChar \ldots{}
5036
5037 \end_layout
5038
5039 \begin_layout Subsubsection
5040 Things that work as expected
5041 \end_layout
5042
5043 \begin_layout Standard
5044 \begin_inset ERT
5045 status inlined
5046
5047 \begin_layout Standard
5048
5049
5050 \backslash
5051 begin{sloppypar}
5052 \end_layout
5053
5054 \end_inset
5055
5056
5057 \end_layout
5058
5059 \begin_layout Standard
5060 Because they work as you might expect, I simply list them and the section
5061  they are found in: 
5062 \family typewriter
5063
5064 \backslash
5065 documentclass
5066 \family default
5067  (2.1.1), 
5068 \family typewriter
5069
5070 \backslash
5071 begin{document}
5072 \family default
5073  (2.2), 
5074 \family typewriter
5075
5076 \backslash
5077 title
5078 \family default
5079  (2.3), 
5080 \family typewriter
5081
5082 \backslash
5083 author
5084 \family default
5085  (2.3), 
5086 \family typewriter
5087
5088 \backslash
5089 affil
5090 \family default
5091  (2.3), 
5092 \family typewriter
5093
5094 \backslash
5095 abstract
5096 \family default
5097  (2.4), 
5098 \family typewriter
5099
5100 \backslash
5101 keywords
5102 \family default
5103  (2.5), 
5104 \family typewriter
5105
5106 \backslash
5107 section
5108 \family default
5109  (2.7), 
5110 \family typewriter
5111
5112 \backslash
5113 subsection
5114 \family default
5115  (2.7), 
5116 \family typewriter
5117
5118 \backslash
5119 subsubsection
5120 \family default
5121  (2.7), 
5122 \family typewriter
5123
5124 \backslash
5125 paragraph
5126 \family default
5127  (2.7), 
5128 \family typewriter
5129
5130 \backslash
5131 facility
5132 \family default
5133  (2.10), 
5134 \family typewriter
5135
5136 \backslash
5137 begin{displaymath}
5138 \family default
5139  (2.12), 
5140 \family typewriter
5141
5142 \backslash
5143 begin{equation}
5144 \family default
5145  (2.12), 
5146 \family typewriter
5147
5148 \backslash
5149 begin{eqnarray}
5150 \family default
5151  (2.12), 
5152 \family typewriter
5153
5154 \backslash
5155 begin{mathletters}
5156 \family default
5157  (2.12), 
5158 \family typewriter
5159
5160 \backslash
5161 begin{thebibliography}
5162 \family default
5163  (2.13.1), 
5164 \family typewriter
5165
5166 \backslash
5167 bibitem
5168 \family default
5169  (2.13.2), all the cite commands and their variations (2.13.2), the generic
5170  graphicx figure commands (2.14.1), 
5171 \family typewriter
5172
5173 \backslash
5174 begin{table}
5175 \family default
5176  (2.15.4), 
5177 \family typewriter
5178
5179 \backslash
5180 begin{tabular}
5181 \family default
5182  (2.15.4), 
5183 \family typewriter
5184
5185 \backslash
5186 caption
5187 \family default
5188  (2.15.4), 
5189 \family typewriter
5190
5191 \backslash
5192 label
5193 \family default
5194  (2.15.4, amongst other places), 
5195 \family typewriter
5196
5197 \backslash
5198 tablerefs
5199 \family default
5200  (2.15.5), 
5201 \family typewriter
5202
5203 \backslash
5204 tablecomments
5205 \family default
5206  (2.15.5), 
5207 \family typewriter
5208
5209 \backslash
5210 url
5211 \family default
5212  (2.17.4), 
5213 \family typewriter
5214
5215 \backslash
5216 end{document}
5217 \family default
5218  (2.18).
5219 \end_layout
5220
5221 \begin_layout Standard
5222 The following style options also work correctly: 
5223 \family typewriter
5224 longabstract
5225 \family default
5226  (2.4), 
5227 \family typewriter
5228 preprint
5229 \family default
5230  (3.2.1), 
5231 \family typewriter
5232 preprint2
5233 \family default
5234  (3.2.2), 
5235 \family typewriter
5236 eqsecnum
5237 \family default
5238  (3.3), 
5239 \family typewriter
5240 flushrt
5241 \family default
5242  (3.4).
5243  Simply put them in the 
5244 \family sans
5245 Options
5246 \family default
5247  box in 
5248 \family sans
5249 Layout\SpecialChar \menuseparator
5250 Document
5251 \family default
5252 .
5253 \end_layout
5254
5255 \begin_layout Standard
5256 \begin_inset ERT
5257 status inlined
5258
5259 \begin_layout Standard
5260
5261
5262 \backslash
5263 end{sloppypar}
5264 \end_layout
5265
5266 \end_inset
5267
5268
5269 \end_layout
5270
5271 \begin_layout Subsubsection
5272 Things that work, but require more comment
5273 \end_layout
5274
5275 \begin_layout Standard
5276 The following items work, but require a little more discussion:
5277 \end_layout
5278
5279 \begin_layout Itemize
5280 These items are reserved for use by the journal editors, but you can put
5281  them into the LaTeX preamble if you feel compelled to do so: 
5282 \family typewriter
5283
5284 \backslash
5285 received
5286 \family default
5287
5288 \family typewriter
5289
5290 \backslash
5291 revised
5292 \family default
5293
5294 \family typewriter
5295
5296 \backslash
5297 accepted
5298 \family default
5299
5300 \family typewriter
5301
5302 \backslash
5303 ccc
5304 \family default
5305
5306 \family typewriter
5307
5308 \backslash
5309 cpright
5310 \family default
5311  (all from 2.1.3)
5312 \end_layout
5313
5314 \begin_layout Itemize
5315 These items may be placed in the LaTeX preamble, and are included as blanks
5316  in the template file: 
5317 \family typewriter
5318
5319 \backslash
5320 slugcomment
5321 \family default
5322  (2.1.4), 
5323 \family typewriter
5324
5325 \backslash
5326 shorttitle
5327 \family default
5328  (2.1.5), 
5329 \family typewriter
5330
5331 \backslash
5332 shortauthors
5333 \family default
5334  (2.1.5)
5335 \end_layout
5336
5337 \begin_layout Itemize
5338
5339 \family typewriter
5340
5341 \backslash
5342 email
5343 \family default
5344  (2.3) -- can only be used 
5345 \begin_inset Quotes eld
5346 \end_inset
5347
5348 standalone
5349 \begin_inset Quotes erd
5350 \end_inset
5351
5352 , not in the middle of a paragraph.
5353  Use ERT if you need to embed it.
5354 \end_layout
5355
5356 \begin_layout Itemize
5357
5358 \family typewriter
5359
5360 \backslash
5361 and
5362 \family default
5363  (2.3) -- will have extra {} after it.
5364  This should not cause an error.
5365 \end_layout
5366
5367 \begin_layout Itemize
5368
5369 \family typewriter
5370
5371 \backslash
5372 notetoeditor
5373 \family default
5374  (2.6) -- can only be used 
5375 \begin_inset Quotes eld
5376 \end_inset
5377
5378 standalone
5379 \begin_inset Quotes erd
5380 \end_inset
5381
5382 , not in the middle of a paragraph.
5383  Use ERT if you need to embed it.
5384 \end_layout
5385
5386 \begin_layout Itemize
5387
5388 \family typewriter
5389
5390 \backslash
5391 placetable
5392 \family default
5393  (2.8) -- can't insert a cross-reference tag, you must type the tag name
5394  by hand
5395 \end_layout
5396
5397 \begin_layout Itemize
5398
5399 \family typewriter
5400
5401 \backslash
5402 placefigure
5403 \family default
5404  (2.8) -- same as for 
5405 \family typewriter
5406
5407 \backslash
5408 placetable
5409 \end_layout
5410
5411 \begin_layout Itemize
5412
5413 \family typewriter
5414
5415 \backslash
5416 acknowledgements
5417 \family default
5418  (2.9) -- will have extra {} after it.
5419  This should not cause an error.
5420 \end_layout
5421
5422 \begin_layout Itemize
5423
5424 \family typewriter
5425
5426 \backslash
5427 appendix
5428 \family default
5429  (2.11) -- will have extra {} after it.
5430  This should not cause an error.
5431 \end_layout
5432
5433 \begin_layout Itemize
5434
5435 \family typewriter
5436
5437 \backslash
5438 figcaption
5439 \family default
5440  (2.14.2) -- you can insert an optional filename argument by placing the cursor
5441  at the beginning of the text and selecting 
5442 \family sans
5443 Insert\SpecialChar \menuseparator
5444 Short Title
5445 \family default
5446 .
5447  
5448 \begin_inset Quotes eld
5449 \end_inset
5450
5451 Short Title
5452 \begin_inset Quotes erd
5453 \end_inset
5454
5455  inserts an optional argument of the type needed by 
5456 \family typewriter
5457
5458 \backslash
5459 figcaption
5460 \family default
5461 .
5462  Hopefully it will be renamed someday.
5463 \end_layout
5464
5465 \begin_layout Itemize
5466
5467 \family typewriter
5468
5469 \backslash
5470 objectname
5471 \family default
5472  (2.17.1) -- same as 
5473 \family typewriter
5474
5475 \backslash
5476 figcaption
5477 \family default
5478  for the catalog ID optional parameter
5479 \end_layout
5480
5481 \begin_layout Itemize
5482
5483 \family typewriter
5484
5485 \backslash
5486 dataset
5487 \family default
5488  (2.17.1) -- same as 
5489 \family typewriter
5490
5491 \backslash
5492 figcaption
5493 \family default
5494  for the catalog ID optional parameter
5495 \end_layout
5496
5497 \begin_layout Subsubsection
5498 Things not implemented, use ERT
5499 \end_layout
5500
5501 \begin_layout Standard
5502 \begin_inset ERT
5503 status inlined
5504
5505 \begin_layout Standard
5506
5507
5508 \backslash
5509 begin{sloppypar}
5510 \end_layout
5511
5512 \end_inset
5513
5514
5515 \end_layout
5516
5517 \begin_layout Standard
5518
5519 \family typewriter
5520
5521 \backslash
5522 altaffilmark
5523 \family default
5524  (2.3), 
5525 \family typewriter
5526
5527 \backslash
5528 altaffiltext
5529 \family default
5530  (2.3), 
5531 \family typewriter
5532
5533 \backslash
5534 eqnum
5535 \family default
5536  (2.12), 
5537 \family typewriter
5538
5539 \backslash
5540 setcounter{equation}
5541 \family default
5542  (2.12), Journal name abbreviations (2.13.4), 
5543 \family typewriter
5544
5545 \backslash
5546 figurenum
5547 \family default
5548  (2.14.1), 
5549 \family typewriter
5550
5551 \backslash
5552 epsscale
5553 \family default
5554  (2.14.1), 
5555 \family typewriter
5556
5557 \backslash
5558 plotone
5559 \family default
5560  (2.14.1), 
5561 \family typewriter
5562
5563 \backslash
5564 plottwo
5565 \family default
5566  (2.14.1), 
5567 \family typewriter
5568
5569 \backslash
5570 tablenum
5571 \family default
5572  (2.15.4), 
5573 \family typewriter
5574
5575 \backslash
5576 tableline
5577 \family default
5578  (2.15.4, insert it as the first element in the lefthand cell after where
5579  you want it.
5580  Don't use any of LyX's rules in the table), 
5581 \family typewriter
5582
5583 \backslash
5584 tablenotemark
5585 \family default
5586  (2.15.5), 
5587 \family typewriter
5588
5589 \backslash
5590 tablenotetext
5591 \family default
5592  (2.15.5), much of Misc (2.17, except 
5593 \family typewriter
5594
5595 \backslash
5596 objectname
5597 \family default
5598
5599 \family typewriter
5600
5601 \backslash
5602 dataset
5603 \family default
5604
5605 \family typewriter
5606
5607 \backslash
5608 url
5609 \family default
5610 , and 
5611 \family typewriter
5612
5613 \backslash
5614 email
5615 \family default
5616 ; see above), 
5617 \family typewriter
5618
5619 \backslash
5620 singlespace
5621 \family default
5622  (3.1), 
5623 \family typewriter
5624
5625 \backslash
5626 doublespace
5627 \family default
5628  (3.1), 
5629 \family typewriter
5630
5631 \backslash
5632 onecolumn
5633 \family default
5634  (3.2), 
5635 \family typewriter
5636
5637 \backslash
5638 twocolumn
5639 \family default
5640  (3.2)
5641 \end_layout
5642
5643 \begin_layout Standard
5644 \begin_inset ERT
5645 status inlined
5646
5647 \begin_layout Standard
5648
5649
5650 \backslash
5651 end{sloppypar}
5652 \end_layout
5653
5654 \end_inset
5655
5656
5657 \end_layout
5658
5659 \begin_layout Subsubsection
5660 Things that cannot be implemented
5661 \end_layout
5662
5663 \begin_layout Standard
5664 \SpecialChar \ldots{}
5665  at least in any meaningful sort of way, so I suggest ignoring them.
5666  They are the references environment (2.13.3), and the deluxetable environment
5667  (2.15).
5668  If you really, really need to use deluxetable, I suggest editing it in
5669  a separate file with a text editor, then using 
5670 \family sans
5671 \bar under
5672 I
5673 \bar default
5674 nsert\SpecialChar \menuseparator
5675 Chil
5676 \bar under
5677 d
5678 \bar default
5679 \InsetSpace ~
5680 Document
5681 \family default
5682  to include it in your LyX document.
5683  See the 
5684 \family typewriter
5685 aas_sample.lyx
5686 \family default
5687  file to see an example of this.
5688 \end_layout
5689
5690 \begin_layout Subsection
5691 FAQs, Tips, Tricks, and Other Ruminations
5692 \end_layout
5693
5694 \begin_layout Subsubsection
5695 Getting LyX and AASTeX to cooperate
5696 \end_layout
5697
5698 \begin_layout Standard
5699 It can be a bit tricky to get LyX to recognize a new layout and document
5700  class.
5701  When all else fails, do this:
5702 \end_layout
5703
5704 \begin_layout Enumerate
5705 Make certain that LaTeX can find AASTeX.
5706  Copy sample.tex (and perhaps table.tex) from the AASTeX distribution into
5707  a directory completely unrelated to LaTeX or AASTeX and run LaTeX on 
5708 \family typewriter
5709 sample.tex
5710 \family default
5711 .
5712 \end_layout
5713
5714 \begin_layout Enumerate
5715 Make certain that 
5716 \family typewriter
5717 aastex.layout
5718 \family default
5719  appears in 
5720 \family typewriter
5721 /usr/.../share/lyx/layouts
5722 \family default
5723  or 
5724 \family typewriter
5725 ~/.lyx/layouts
5726 \family default
5727 .
5728 \end_layout
5729
5730 \begin_layout Enumerate
5731 Rerun 
5732 \family sans
5733 \bar under
5734 T
5735 \bar default
5736 ools\SpecialChar \menuseparator
5737
5738 \bar under
5739 R
5740 \bar default
5741 econfigure
5742 \family default
5743  in LyX, then restart LyX.
5744 \end_layout
5745
5746 \begin_layout Enumerate
5747 Open a regular new file, not from a template.
5748  Does AASTeX appear in the class list in 
5749 \family sans
5750 \bar under
5751 D
5752 \bar default
5753 ocument\SpecialChar \menuseparator
5754
5755 \bar under
5756 S
5757 \bar default
5758 ettings
5759 \family default
5760 ?
5761 \end_layout
5762
5763 \begin_layout Standard
5764 If you get a warning from an existing AASTeX document about not being able
5765  to find the AASTeX layout or a message about 
5766 \begin_inset Quotes eld
5767 \end_inset
5768
5769 You should not mix title layouts with normal ones
5770 \begin_inset Quotes erd
5771 \end_inset
5772
5773 , things haven't been installed correctly.
5774 \end_layout
5775
5776 \begin_layout Subsubsection
5777 LaTeX error processing a table 
5778 \end_layout
5779
5780 \begin_layout Standard
5781 LyX, by default, attempts to center the table caption/title.
5782  This seems to produce a bad interaction in AASTeX so you should click somewhere
5783  in the caption/title, then select 
5784 \family sans
5785 \bar under
5786 E
5787 \bar default
5788 dit\SpecialChar \menuseparator
5789
5790 \bar under
5791 P
5792 \bar default
5793 aragraph\InsetSpace ~
5794 Settings
5795 \family default
5796 , then set the 
5797 \family sans
5798 Alignment
5799 \family default
5800  to 
5801 \family sans
5802 \bar under
5803 B
5804 \bar default
5805 lock
5806 \family default
5807 .
5808  This took care of it for me.
5809 \end_layout
5810
5811 \begin_layout Subsubsection
5812 References
5813 \begin_inset LatexCommand label
5814 name "cite"
5815
5816 \end_inset
5817
5818
5819 \end_layout
5820
5821 \begin_layout Standard
5822 A couple of things: 1) I have noticed some funny spacing in the reference
5823  entries in the text.
5824  When you enter the bibliography item data, make sure their is 
5825 \emph on
5826 no
5827 \emph default
5828  space between the last author and the parenthesis setting off the year;
5829  
5830 \emph on
5831 e.\InsetSpace \thinspace{}
5832 g.\InsetSpace ~
5833
5834 \emph default
5835 type 
5836 \family typewriter
5837 Ressler(1992)
5838 \family default
5839 , not 
5840 \family typewriter
5841 Ressler (1992)
5842 \family default
5843 .
5844  2) Entering the references at all is not obvious.
5845  The easiest thing is to start typing your first reference at the end of
5846  the document, then mark it as type 
5847 \family sans
5848 References
5849 \family default
5850 .
5851  That will put a small gray box in front of what you just typed.
5852  Click on the box to fill in the rest of the information.
5853  For new references, go to the end of an existing reference and press return.
5854  That will create a new line with its own box, etc.
5855 \end_layout
5856
5857 \begin_layout Subsubsection
5858 Including EPS files
5859 \end_layout
5860
5861 \begin_layout Standard
5862 Even though AASTeX provides its own figure commands (
5863 \family typewriter
5864
5865 \backslash
5866 plotone
5867 \family default
5868 , for example), I much prefer LaTeX's standard figure commands (with the
5869  default graphicx).
5870  You can insert the 
5871 \family typewriter
5872
5873 \backslash
5874 plotone
5875 \family default
5876 , etc.\InsetSpace ~
5877 commands as ERT into a Figure Float box if you desire, but I never
5878  have much luck getting the layout right.
5879  With the standard graphics, LyX will insert a 
5880 \family typewriter
5881
5882 \backslash
5883 usepackage{graphicx}
5884 \family default
5885  command into the LaTeX preamble and handle the figures in the standard
5886  LaTeX2e way, interspersing the figures in the text.
5887  I believe ApJ accepts figures exactly this way now; AJ might still use
5888  the 
5889 \begin_inset Quotes eld
5890 \end_inset
5891
5892 stack everything at the end
5893 \begin_inset Quotes erd
5894 \end_inset
5895
5896  technique.
5897 \end_layout
5898
5899 \begin_layout Subsubsection
5900 Things I could have done, but didn't
5901 \end_layout
5902
5903 \begin_layout Standard
5904 There are a few 
5905 \begin_inset Quotes eld
5906 \end_inset
5907
5908 pretty
5909 \begin_inset Quotes erd
5910 \end_inset
5911
5912  things I could have implemented, but chose not to.
5913  For instance, I saw no point in double-spacing the text in the LyX window,
5914  even though it is double-spaced in the paper manuscript.
5915  Also, I chose not to make separate layouts for the preprint and preprint2
5916  styles.
5917  Since I assume you will spend most of your time in the plain manuscript
5918  mode anyway, I decided not to chew up more disk space with this.
5919  
5920 \end_layout
5921
5922 \begin_layout Subsection
5923 Final Caveat
5924 \end_layout
5925
5926 \begin_layout Standard
5927 Your mileage may vary.
5928  I've now had papers published by both ApJ and AJ that have had 98% of the
5929  effort done in LyX; the last 2% was the LaTeX post-processing and a few
5930  cleanups.
5931  I have had no trouble with the submission process, and I'm sure the journals
5932  were never aware that there might be a difference.
5933  So, go forth and publish!
5934 \end_layout
5935
5936 \begin_layout Section
5937 qijmpc and ijmpd
5938 \end_layout
5939
5940 \begin_layout Standard
5941 by 
5942 \noun on
5943 Panayotis Papasotiriou
5944 \end_layout
5945
5946 \begin_layout Subsection
5947 Overview
5948 \end_layout
5949
5950 \begin_layout Standard
5951 The ijmpc package is a set of macros that facilitates electronic manuscript
5952  submission to the 
5953 \emph on
5954 International Journal of Modern Physics C
5955 \emph default
5956 .
5957  Similarly, the ijmpd package is for creating manuscripts to be submitted
5958  to the 
5959 \emph on
5960 International Journal of Modern Physics D
5961 \emph default
5962 .
5963  Both journals are published by World Scientific.
5964  The corresponding document classes are named 
5965 \family typewriter
5966 ws-ijmpc.cls
5967 \family default
5968  and 
5969 \family typewriter
5970 ws-ijmpd.cls
5971 \family default
5972 , respectively.
5973  These files, together with instructions for the authors, can be downloaded
5974  from the sites 
5975 \begin_inset LatexCommand url
5976 target "http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml"
5977
5978 \end_inset
5979
5980  and 
5981 \begin_inset LatexCommand url
5982 target "http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml"
5983
5984 \end_inset
5985
5986 .
5987  Both packages are modified versions of the standard 
5988 \begin_inset Quotes eld
5989 \end_inset
5990
5991 article
5992 \begin_inset Quotes erd
5993 \end_inset
5994
5995  package, and they are almost (but not exactly) identical.
5996  Most of their features are supported by LyX.
5997  I have used LyX successfully to write articles submitted to both journals
5998  without any problem.
5999 \end_layout
6000
6001 \begin_layout Subsection
6002 Writing a paper
6003 \end_layout
6004
6005 \begin_layout Standard
6006 As usual, the easiest way to write a paper is to start with a template.
6007  Click on 
6008 \family sans
6009 \bar under
6010 F
6011 \bar default
6012 ile\SpecialChar \menuseparator
6013 New from
6014 \family default
6015  
6016 \family sans
6017 \bar under
6018 T
6019 \bar default
6020 emplate
6021 \family default
6022 , then choose the 
6023 \family typewriter
6024 ijmpc.lyx
6025 \family default
6026  or 
6027 \family typewriter
6028 ijmpd.lyx
6029 \family default
6030  template.
6031  This will give an (almost) empty document that includes the most common
6032  fields found in a manuscript.
6033  Simply overwrite the existing text (including the brackets, 
6034 \family typewriter
6035 <>
6036 \family default
6037 ) with your text.
6038  You should keep in mind the following remarks.
6039 \end_layout
6040
6041 \begin_layout Enumerate
6042 LyX won't let you change the font size and the page style of the document,
6043  because such modifications are not allowed by both packages.
6044 \end_layout
6045
6046 \begin_layout Enumerate
6047 The language of the document should not be changed.
6048  Before previewing your paper, be sure that the babel package is not used.
6049  To do this, click on 
6050 \family sans
6051 \bar under
6052 T
6053 \bar default
6054 ools\SpecialChar \menuseparator
6055
6056 \bar under
6057 P
6058 \bar default
6059 references
6060 \family default
6061 , select the 
6062 \family sans
6063 Lang Opts
6064 \family default
6065  tab, deselect the 
6066 \family sans
6067 \bar under
6068 U
6069 \bar default
6070 se babel
6071 \family default
6072  checkbox in the language settings, and click on 
6073 \family sans
6074 \bar under
6075 A
6076 \bar default
6077 pply
6078 \family default
6079  (or 
6080 \family sans
6081 Save
6082 \family default
6083 , if you wish to make this change permanent).
6084 \end_layout
6085
6086 \begin_layout Enumerate
6087 The 
6088 \begin_inset Quotes eld
6089 \end_inset
6090
6091 Keywords
6092 \begin_inset Quotes erd
6093 \end_inset
6094
6095  style must be used to define keywords.
6096 \end_layout
6097
6098 \begin_layout Enumerate
6099 The ijmpc package provides a style named 
6100 \begin_inset Quotes eld
6101 \end_inset
6102
6103 Classification Codes
6104 \begin_inset Quotes erd
6105 \end_inset
6106
6107 , which can be used to define classification codes, such as PACS numbers.
6108  Note that this facility is not supported by the ijmpd package.
6109 \end_layout
6110
6111 \begin_layout Enumerate
6112 Several new environments are available: 
6113 \begin_inset Quotes eld
6114 \end_inset
6115
6116 Definition
6117 \begin_inset Quotes erd
6118 \end_inset
6119
6120
6121 \begin_inset Quotes eld
6122 \end_inset
6123
6124 Step
6125 \begin_inset Quotes erd
6126 \end_inset
6127
6128
6129 \begin_inset Quotes eld
6130 \end_inset
6131
6132 Example
6133 \begin_inset Quotes erd
6134 \end_inset
6135
6136
6137 \begin_inset Quotes eld
6138 \end_inset
6139
6140 Remark
6141 \begin_inset Quotes erd
6142 \end_inset
6143
6144
6145 \begin_inset Quotes eld
6146 \end_inset
6147
6148 Notation
6149 \begin_inset Quotes erd
6150 \end_inset
6151
6152
6153 \begin_inset Quotes eld
6154 \end_inset
6155
6156 Theorem
6157 \begin_inset Quotes erd
6158 \end_inset
6159
6160
6161 \begin_inset Quotes eld
6162 \end_inset
6163
6164 Proof
6165 \begin_inset Quotes erd
6166 \end_inset
6167
6168
6169 \begin_inset Quotes eld
6170 \end_inset
6171
6172 Corollary
6173 \begin_inset Quotes erd
6174 \end_inset
6175
6176
6177 \begin_inset Quotes eld
6178 \end_inset
6179
6180 Lemma
6181 \begin_inset Quotes erd
6182 \end_inset
6183
6184
6185 \begin_inset Quotes eld
6186 \end_inset
6187
6188 Proposition
6189 \begin_inset Quotes erd
6190 \end_inset
6191
6192
6193 \begin_inset Quotes eld
6194 \end_inset
6195
6196 Prop
6197 \begin_inset Quotes erd
6198 \end_inset
6199
6200
6201 \begin_inset Quotes eld
6202 \end_inset
6203
6204 Question
6205 \begin_inset Quotes erd
6206 \end_inset
6207
6208
6209 \begin_inset Quotes eld
6210 \end_inset
6211
6212 Claim
6213 \begin_inset Quotes erd
6214 \end_inset
6215
6216 , and 
6217 \begin_inset Quotes eld
6218 \end_inset
6219
6220 Conjecture
6221 \begin_inset Quotes erd
6222 \end_inset
6223
6224 .
6225  Their use is more or less obvious.
6226  LyX supports all these environments; it will use the proper label, text
6227  style, and numbering scheme for each of them.
6228 \end_layout
6229
6230 \begin_layout Enumerate
6231 Both packages use basic citations; the natbib package should not be used.
6232  In LyX, citation references are shown as usual; in the output, citations
6233  are shown as superscripts.
6234  If you want to use a citation as normal text, you should use the 
6235 \family typewriter
6236 refcite
6237 \family default
6238  command, e.\InsetSpace \thinspace{}
6239 g., 
6240 \begin_inset Quotes eld
6241 \end_inset
6242
6243 See Ref.\InsetSpace ~
6244
6245 \family typewriter
6246
6247 \backslash
6248 refcite{key}
6249 \family default
6250
6251 \begin_inset Quotes erd
6252 \end_inset
6253
6254 .
6255 \end_layout
6256
6257 \begin_layout Enumerate
6258 There is no 
6259 \begin_inset Quotes eld
6260 \end_inset
6261
6262 Acknowledgments
6263 \begin_inset Quotes erd
6264 \end_inset
6265
6266  section in both packages.
6267  To put acknowledgments, just use the 
6268 \begin_inset Quotes eld
6269 \end_inset
6270
6271 Section*
6272 \begin_inset Quotes erd
6273 \end_inset
6274
6275  environment.
6276 \end_layout
6277
6278 \begin_layout Enumerate
6279 Appendices may be added to the paper, 
6280 \emph on
6281 after
6282 \emph default
6283  the Acknowledgments and 
6284 \shape italic
6285 before
6286 \shape default
6287  the References.
6288  LyX provides a special environment, called 
6289 \begin_inset Quotes eld
6290 \end_inset
6291
6292 Appendices Section
6293 \begin_inset Quotes erd
6294 \end_inset
6295
6296  which marks the beginning of the appendices.
6297  This environment should be left blank; it just sends a LaTeX command, but
6298  nothing is really printed.
6299  In LyX, the word 
6300 \begin_inset Quotes eld
6301 \end_inset
6302
6303 Appendix
6304 \begin_inset Quotes erd
6305 \end_inset
6306
6307  is printed with blue letters, as a signal that all sections after that
6308  point are appendices.
6309  To write an appendix, use the 
6310 \begin_inset Quotes eld
6311 \end_inset
6312
6313 Appendix
6314 \begin_inset Quotes erd
6315 \end_inset
6316
6317  environment.
6318  LyX will number each appendix with capital letters, as required by both
6319  journals.
6320  Note that 
6321 \begin_inset Quotes eld
6322 \end_inset
6323
6324 Appendices Section
6325 \begin_inset Quotes erd
6326 \end_inset
6327
6328  
6329 \emph on
6330 must
6331 \emph default
6332  be present before the first appendix; if not, all appendices will be numbered
6333  as normal sections in the output.
6334 \end_layout
6335
6336 \begin_layout Enumerate
6337 The ijmpc and the ijmpd packages use the 
6338 \family typewriter
6339 tbl
6340 \family default
6341  command to implement table captions.
6342  As a result, a table created by LyX is printed correctly, but its caption
6343  is ignored.
6344  However, you can use some ERT to overpass this problem, so that captions
6345  are printed as expected.
6346  To do so, create a float table as usual, remove the caption, and replace
6347  it with the ERT 
6348 \family typewriter
6349
6350 \backslash
6351 tbl{
6352 \emph on
6353 your table caption
6354 \emph default
6355 }{
6356 \family default
6357  (sic); you must also the ERT 
6358 \family typewriter
6359 }
6360 \family default
6361  immediately after the tabular material.
6362  Study the example table included in the template files to see how this
6363  trick is implemented.
6364  Alternatively, If you need table captions, you should implement the whole
6365  table float in a 
6366 \family typewriter
6367 .tex
6368 \family default
6369  file, then include this file to the LyX document (
6370 \family sans
6371 \bar under
6372 I
6373 \bar default
6374 nsert\SpecialChar \menuseparator
6375 Fil
6376 \bar under
6377 e
6378 \bar default
6379 \SpecialChar \menuseparator
6380 Chil
6381 \bar under
6382 d
6383 \bar default
6384 \InsetSpace ~
6385 Document
6386 \family default
6387 ).
6388  Details on how to create a table float can be found in the files 
6389 \family typewriter
6390 ws-ijmpc.tex
6391 \family default
6392  and 
6393 \family typewriter
6394 ws-ijmpd.tex
6395 \family default
6396 , included in the corresponding packages.
6397 \end_layout
6398
6399 \begin_layout Subsection
6400 Preparing a paper for submission
6401 \end_layout
6402
6403 \begin_layout Standard
6404 Before you submit your paper you must export the LyX document as a LaTeX
6405  file (
6406 \family sans
6407 \bar under
6408 F
6409 \bar default
6410 ile\SpecialChar \menuseparator
6411
6412 \bar under
6413 E
6414 \bar default
6415 xport\SpecialChar \menuseparator
6416
6417 \bar under
6418 L
6419 \bar default
6420 a
6421 \family default
6422 T
6423 \family sans
6424 eX
6425 \family default
6426 )
6427 \begin_inset Foot
6428 status open
6429
6430 \begin_layout Standard
6431 Actually you have the choice between LaTeX (plain) and pdflatex.
6432  If you intend to use pdflatex to prepare the paper, you should use the
6433  pdflatex option so that included graphics are converted to PDF format,
6434  ready for use by pdflatex.
6435 \end_layout
6436
6437 \end_inset
6438
6439 , then make the following changes to the resulting 
6440 \family typewriter
6441 .tex
6442 \family default
6443  file.
6444 \end_layout
6445
6446 \begin_layout Enumerate
6447 Remove the comment lines before the 
6448 \family typewriter
6449
6450 \backslash
6451 documentclass
6452 \family default
6453  command.
6454 \end_layout
6455
6456 \begin_layout Enumerate
6457 Remove everything between (and including) the 
6458 \family typewriter
6459
6460 \backslash
6461 makeatletter
6462 \family default
6463  and 
6464 \family typewriter
6465
6466 \backslash
6467 makeatother
6468 \family default
6469  commands, except for any commands you specifically put into the LaTeX preamble.
6470 \end_layout
6471
6472 \begin_layout Standard
6473 The modified 
6474 \family typewriter
6475 .tex
6476 \family default
6477  file should be saved and processed through LaTeX as many times as necessary.
6478  You may also want to check the resulting 
6479 \family typewriter
6480 .dvi
6481 \family default
6482  document.
6483 \end_layout
6484
6485 \begin_layout Subsection
6486 Use of ERT
6487 \end_layout
6488
6489 \begin_layout Standard
6490 The use of ERT is reduced to two commands, which must be placed at the top
6491  of the document.
6492  If you started writing your paper by using the 
6493 \family typewriter
6494 ijmpc.lyx
6495 \family default
6496  or the 
6497 \family typewriter
6498 ijmpd.lyx
6499 \family default
6500  template, the ERT needed is already in its place; you usually don't need
6501  to delete it.
6502  You may only modify the first ERT to specify the information printed to
6503  the top of odd and even pages (authors' names and short paper's title,
6504  respectively).
6505  This ERT must have the form 
6506 \family typewriter
6507
6508 \backslash
6509 markboth{Authors' Names}{Short Paper's Title}
6510 \family default
6511 .
6512 \end_layout
6513
6514 \begin_layout Section
6515 iopart
6516 \end_layout
6517
6518 \begin_layout Standard
6519 by 
6520 \noun on
6521 Uwe Stöhr
6522 \end_layout
6523
6524 \begin_layout Subsection
6525 Overview
6526 \end_layout
6527
6528 \begin_layout Standard
6529 The iopart package provides a document class to create electronic manuscript
6530  submission to the journals published by the Institute of Physics.
6531  Instructions for the authors how to create a paper using the iopart class
6532  can be downloaded together with the iopart package from the site 
6533 \begin_inset LatexCommand url
6534 target "ftp://ftp.iop.org/pub/journals/latex2e"
6535
6536 \end_inset
6537
6538 .
6539 \end_layout
6540
6541 \begin_layout Subsection
6542 Writing a paper
6543 \end_layout
6544
6545 \begin_layout Standard
6546 The easiest way to write a paper is to start with the file 
6547 \emph on
6548 IOP-article.lyx
6549 \emph default
6550  that is available in LyX's examples files folder.
6551  Open this file, save it under a new name, and start writing.
6552  The example file explains how to use the special text environments.
6553  Here are the most important advices:
6554 \end_layout
6555
6556 \begin_layout Itemize
6557 To be able to compile your document to a PDF, PS, or DVI, assure that the
6558  two options 
6559 \family sans
6560 Use AMS math package
6561 \family default
6562  in the document settings under 
6563 \family sans
6564 Math Options
6565 \family default
6566  are not used!
6567 \end_layout
6568
6569 \begin_layout Itemize
6570
6571 \size normal
6572 The title environment defines the kind of your paper.
6573  So use one of the following environments for the title:
6574 \end_layout
6575
6576 \begin_deeper
6577 \begin_layout Itemize
6578
6579 \family sans
6580 \size normal
6581 Title
6582 \family default
6583  for a Paper
6584 \end_layout
6585
6586 \begin_layout Itemize
6587
6588 \family sans
6589 \size normal
6590 Review
6591 \family default
6592  for a Review
6593 \end_layout
6594
6595 \begin_layout Itemize
6596
6597 \family sans
6598 \size normal
6599 Topical
6600 \family default
6601  for a Topical review
6602 \end_layout
6603
6604 \begin_layout Itemize
6605
6606 \family sans
6607 \size normal
6608 Comment
6609 \family default
6610  for a Comment
6611 \end_layout
6612
6613 \begin_layout Itemize
6614
6615 \family sans
6616 \size normal
6617 Note
6618 \family default
6619  for a Note
6620 \end_layout
6621
6622 \begin_layout Itemize
6623
6624 \family sans
6625 \size normal
6626 Paper
6627 \family default
6628  for a Paper (same as Title)
6629 \end_layout
6630
6631 \begin_layout Itemize
6632
6633 \family sans
6634 \size normal
6635 Prelim
6636 \family default
6637  for a Preliminary communication
6638 \end_layout
6639
6640 \begin_layout Itemize
6641
6642 \family sans
6643 \size normal
6644 Rapid
6645 \family default
6646  for a Rapid communication
6647 \end_layout
6648
6649 \begin_layout Itemize
6650
6651 \family sans
6652 \size normal
6653 Letter
6654 \family default
6655  for a Letter to the editor
6656 \end_layout
6657
6658 \end_deeper
6659 \begin_layout Itemize
6660
6661 \size normal
6662 All title environments except of 
6663 \family sans
6664 Letter
6665 \family default
6666  can have an optional short title.
6667 \end_layout
6668
6669 \begin_layout Itemize
6670 There is a general title environment 
6671 \family sans
6672 Article
6673 \family default
6674  which is not directly supported by the LyX.
6675  This can be used as ERT when your document doesn't fit into one of the
6676  other title types.
6677 \end_layout
6678
6679 \begin_layout Standard
6680 For more informations like hints for special table and formula formatting,
6681  look at the IOP author guidelines.
6682 \end_layout
6683
6684 \begin_layout Section
6685 Kluwer
6686 \end_layout
6687
6688 \begin_layout Standard
6689 by 
6690 \noun on
6691 Panayotis Papasotiriou
6692 \end_layout
6693
6694 \begin_layout Subsection
6695 Overview
6696 \end_layout
6697
6698 \begin_layout Standard
6699 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
6700  that facilitates electronic manuscript submission to the journals they
6701  publish.
6702  Most known of them (at least in my domain of interest) are 
6703 \emph on
6704 Astrophysics and Space Science
6705 \emph default
6706  and 
6707 \emph on
6708 Solar Physics
6709 \emph default
6710 , but there are many others (see a complete list at 
6711 \begin_inset LatexCommand url
6712 target "http://www.wkap.nl/jrnllist.htm/JRNLHOME"
6713
6714 \end_inset
6715
6716 ).
6717  The Kluwer package may be downloaded from the site 
6718 \begin_inset LatexCommand url
6719 target "http://www.wkap.nl/kaphtml.htm/STYLEFILES"
6720
6721 \end_inset
6722
6723 .
6724  A complete user guide is contained in that package (but it can also be
6725  downloaded separately).
6726 \end_layout
6727
6728 \begin_layout Standard
6729 LyX supports many features of the package but not everything.
6730  However, the ERT needed is reduced to some 
6731 \begin_inset Quotes eld
6732 \end_inset
6733
6734 peculiar
6735 \begin_inset Quotes erd
6736 \end_inset
6737
6738  commands of the package (see\InsetSpace ~
6739
6740 \begin_inset LatexCommand ref
6741 reference "subsec:kluwer_peculiarities"
6742
6743 \end_inset
6744
6745 ).
6746  I have recently used LyX to write an article submitted to the 
6747 \emph on
6748 Astrophysics and Space Science
6749 \emph default
6750  without any problem.
6751 \end_layout
6752
6753 \begin_layout Subsection
6754 Writing a paper
6755 \end_layout
6756
6757 \begin_layout Standard
6758 The easiest way to write a paper is to start with the Kluwer template file.
6759  Click on 
6760 \family sans
6761 File\SpecialChar \menuseparator
6762 New from
6763 \family default
6764  
6765 \family sans
6766 \bar under
6767 T
6768 \bar default
6769 emplate
6770 \family default
6771 , then choose the 
6772 \family typewriter
6773 kluwer.lyx
6774 \family default
6775  template.
6776  This will give an (almost) empty document that includes the most common
6777  fields found in a manuscript and a short description of their use.
6778  As in most templates, simply overwrite the existing text (including the
6779  brackets, 
6780 \family typewriter
6781 <>
6782 \family default
6783 ) with the correct information.
6784 \end_layout
6785
6786 \begin_layout Subsection
6787 Preparing a paper for submission
6788 \end_layout
6789
6790 \begin_layout Standard
6791 As in the AASTeX package, before you submit your paper to a journal you
6792  must 
6793 \begin_inset Quotes eld
6794 \end_inset
6795
6796 postprocess
6797 \begin_inset Quotes erd
6798 \end_inset
6799
6800  it as follows.
6801 \end_layout
6802
6803 \begin_layout Enumerate
6804 Export your paper as a LaTeX file.
6805  To do this, click on 
6806 \family sans
6807 \bar under
6808 F
6809 \bar default
6810 ile\SpecialChar \menuseparator
6811
6812 \bar under
6813 E
6814 \bar default
6815 xport\SpecialChar \menuseparator
6816
6817 \bar under
6818 L
6819 \bar default
6820 aTeX
6821 \family default
6822 .
6823  
6824 \end_layout
6825
6826 \begin_layout Enumerate
6827 Edit the resulting 
6828 \family typewriter
6829 .tex
6830 \family default
6831  file with a text editor and make the following changes
6832 \end_layout
6833
6834 \begin_deeper
6835 \begin_layout Enumerate
6836 remove the comment lines before the 
6837 \family typewriter
6838
6839 \backslash
6840 documentclass
6841 \family default
6842  command,
6843 \end_layout
6844
6845 \begin_layout Enumerate
6846 remove everything between (and including) the 
6847 \family typewriter
6848
6849 \backslash
6850 makeatletter
6851 \family default
6852  and 
6853 \family typewriter
6854
6855 \backslash
6856 makeatother
6857 \family default
6858  commands, except for any commands you specifically put into the LaTeX preamble.
6859 \end_layout
6860
6861 \begin_layout Standard
6862 Save the resulting 
6863 \family typewriter
6864 .tex
6865 \family default
6866  file.
6867 \end_layout
6868
6869 \end_deeper
6870 \begin_layout Enumerate
6871 Run the 
6872 \family typewriter
6873 .tex
6874 \family default
6875  file through LaTeX as many times as necessary (usually up to three).
6876 \end_layout
6877
6878 \begin_layout Enumerate
6879 View the resulting 
6880 \family typewriter
6881 .dvi
6882 \family default
6883  document using, e.\InsetSpace \thinspace{}
6884 g., 
6885 \family sans
6886 xdvi
6887 \family default
6888 , and check if everything is OK (it should, if you didn't make any mistake).
6889 \end_layout
6890
6891 \begin_layout Subsection
6892 \begin_inset Quotes eld
6893 \end_inset
6894
6895 Peculiarities
6896 \begin_inset Quotes erd
6897 \end_inset
6898
6899  of the Kluwer package
6900 \begin_inset LatexCommand label
6901 name "subsec:kluwer_peculiarities"
6902
6903 \end_inset
6904
6905
6906 \end_layout
6907
6908 \begin_layout Standard
6909 The Kluwer package has the following 
6910 \begin_inset Quotes eld
6911 \end_inset
6912
6913 peculiarities
6914 \begin_inset Quotes erd
6915 \end_inset
6916
6917 .
6918 \end_layout
6919
6920 \begin_layout Enumerate
6921 It is possible to write multiple articles in the same LaTeX file
6922 \begin_inset Foot
6923 status collapsed
6924
6925 \begin_layout Standard
6926 I can't imagine any good reason to do this.
6927 \end_layout
6928
6929 \end_inset
6930
6931 .
6932  Each article must be included in the environment 
6933 \begin_inset Quotes eld
6934 \end_inset
6935
6936 article
6937 \begin_inset Quotes erd
6938 \end_inset
6939
6940 .
6941  Unfortunately, this environment cannot be omitted, even if you write just
6942  one article.
6943  Therefore, each article starts with the command 
6944 \family typewriter
6945
6946 \backslash
6947 begin{article}
6948 \family default
6949  and, obviously, ends with the command 
6950 \family typewriter
6951
6952 \backslash
6953 end{article}
6954 \family default
6955 .
6956  Although this can be implemented in LyX, I didn't included it, since it
6957  looks ugly and can confuse the novice user.
6958  Therefore, you need to enter them directly and mark them as LaTeX code
6959  (the well-known 
6960 \begin_inset Quotes eld
6961 \end_inset
6962
6963 ERT
6964 \begin_inset Quotes erd
6965 \end_inset
6966
6967 ).
6968 \end_layout
6969
6970 \begin_layout Enumerate
6971 Information given at the beginning of the article (i.e., title, subtitle,
6972  author, institution, running title, running author, abstract and keywords)
6973  must be included in an environment called 
6974 \begin_inset Quotes eld
6975 \end_inset
6976
6977 opening
6978 \begin_inset Quotes erd
6979 \end_inset
6980
6981 .
6982  This is not implemented in LyX, so you must enter title, subtitle etc.\InsetSpace ~
6983 between
6984  two ERT lines (
6985 \family typewriter
6986
6987 \backslash
6988 begin{opening}
6989 \family default
6990  and 
6991 \family typewriter
6992
6993 \backslash
6994 end{opening}
6995 \family default
6996 ).
6997 \end_layout
6998
6999 \begin_layout Enumerate
7000 According to the user manual, the label of each bibliography item must be
7001  written as 
7002 \family typewriter
7003
7004 \backslash
7005 protect
7006 \backslash
7007 citeauthoryear{
7008 \family default
7009 \emph on
7010 author(s)
7011 \family typewriter
7012 \emph default
7013 }{
7014 \family default
7015 \emph on
7016 year
7017 \family typewriter
7018 \emph default
7019 }
7020 \family default
7021 .
7022 \end_layout
7023
7024 \begin_layout Standard
7025 The 
7026 \family typewriter
7027 kluwer.lyx
7028 \family default
7029  template takes care of all these 
7030 \begin_inset Quotes eld
7031 \end_inset
7032
7033 peculiarities
7034 \begin_inset Quotes erd
7035 \end_inset
7036
7037 .
7038  If you start a new paper using this template you don't need to do anything
7039  special.
7040  Just 
7041 \end_layout
7042
7043 \begin_layout Enumerate
7044 don't delete the ERT included in the template, and
7045 \end_layout
7046
7047 \begin_layout Enumerate
7048 copy the example bibliography item included in the template and modify it
7049  as necessary to enter new bibliography items.
7050 \end_layout
7051
7052 \begin_layout Section
7053 Koma-Script
7054 \end_layout
7055
7056 \begin_layout Standard
7057 by 
7058 \noun on
7059 Bernd Rellermeyer
7060 \end_layout
7061
7062 \begin_layout Subsection
7063 Overview
7064 \end_layout
7065
7066 \begin_layout Standard
7067 The LyX document classes 
7068 \emph on
7069 article (koma-script)
7070 \emph default
7071
7072 \emph on
7073 report (koma-script)
7074 \emph default
7075
7076 \emph on
7077 book
7078 \emph default
7079  
7080 \emph on
7081 (koma-script)
7082 \emph default
7083 , and 
7084 \emph on
7085 letter
7086 \emph default
7087  
7088 \emph on
7089 (koma-script)
7090 \emph default
7091  correspond to the LaTeX document classes 
7092 \family typewriter
7093 scrartcl.cls
7094 \family default
7095
7096 \family typewriter
7097 scrreprt.cls
7098 \family default
7099
7100 \family typewriter
7101 scrbook.cls
7102 \family default
7103 , and 
7104 \family typewriter
7105 scrlettr.cls
7106 \family default
7107 , resp.\InsetSpace ~
7108 of the Koma-Script family.
7109  They are replacements for the standard document classes 
7110 \family typewriter
7111 article.cls
7112 \family default
7113
7114 \family typewriter
7115 report.cls
7116 \family default
7117
7118 \family typewriter
7119 book.cls
7120 \family default
7121  and 
7122 \family typewriter
7123 letter.cls
7124 \family default
7125 , resp., and fit better to European typography conventions in a number of
7126  points.
7127 \end_layout
7128
7129 \begin_layout Itemize
7130 Standard character size is 11pt in 
7131 \emph on
7132 article (koma-script)
7133 \emph default
7134
7135 \emph on
7136 report (koma-script)
7137 \emph default
7138 , and 
7139 \emph on
7140 book (koma-script)
7141 \emph default
7142 , and 12pt in 
7143 \emph on
7144 letter (koma-script)
7145 \emph default
7146 .
7147 \end_layout
7148
7149 \begin_layout Itemize
7150 Headings, labels of the description environment, and a number of elements
7151  of the 
7152 \emph on
7153 letter (koma-script)
7154 \emph default
7155  document class are set in a bold sans serif font.
7156 \begin_inset Foot
7157 status collapsed
7158
7159 \begin_layout Standard
7160 There is a big difference between the bold sans serif old cm fonts and new
7161  ec fonts, especially in the appearance of headings.
7162  In comparison, the ec bold sans serif fonts look a bit thin.
7163  Here the LaTeX package 
7164 \family typewriter
7165 cmsd.sty by
7166 \family default
7167  
7168 \shape smallcaps
7169 Walter Schmidt
7170 \shape default
7171  helps to produce the 
7172 \begin_inset Quotes eld
7173 \end_inset
7174
7175 usual
7176 \begin_inset Quotes erd
7177 \end_inset
7178
7179  appearance when using the ec fonts.
7180 \end_layout
7181
7182 \end_inset
7183
7184  The numbering of chapter headings is made in the same way as the numbering
7185  of section headings, that is without the extra line 
7186 \begin_inset Quotes eld
7187 \end_inset
7188
7189 Chapter\SpecialChar \ldots{}
7190
7191 \begin_inset Quotes erd
7192 \end_inset
7193
7194 .
7195  In addition, the appearance of the headings can be modified by using a
7196  number of options (in LyX to be entered in the field 
7197 \family sans
7198 E
7199 \bar under
7200 x
7201 \bar default
7202 tra\InsetSpace ~
7203 Options
7204 \family default
7205  of the dialog 
7206 \family sans
7207 \bar under
7208 L
7209 \bar default
7210 ayout\SpecialChar \menuseparator
7211
7212 \bar under
7213 D
7214 \bar default
7215 ocument
7216 \family default
7217 ).
7218  A detailed German description of these options can be found in the Koma-Script
7219  documentation 
7220 \emph on
7221 scrguide
7222 \emph default
7223 .
7224 \end_layout
7225
7226 \begin_layout Itemize
7227 The main means in the Koma-Script document classes to design the type area
7228  are the options 
7229 \family sans
7230 BCOR
7231 \family default
7232  and 
7233 \family sans
7234 DIV
7235 \family default
7236  (in LyX to be entered in the extra class options field in the dialog 
7237 \family sans
7238 \bar under
7239 D
7240 \bar default
7241 ocument\SpecialChar \menuseparator
7242
7243 \bar under
7244 S
7245 \bar default
7246 ettings
7247 \family default
7248 ).
7249  They make a clearer modification of page margins possible as do the options
7250  of the dialog 
7251 \family sans
7252 \bar under
7253 D
7254 \bar default
7255 ocument\SpecialChar \menuseparator
7256
7257 \bar under
7258 S
7259 \bar default
7260 ettings
7261 \family default
7262 .
7263  A detailed German description of these and other type area options can
7264  be found in the Koma-Script documentation 
7265 \emph on
7266 scrguide
7267 \emph default
7268 .
7269 \end_layout
7270
7271 \begin_layout Itemize
7272 The LaTeX document classes of the Koma-Script family define a number of
7273  additional commands.
7274  Those part of it which makes sense in LyX is implemented in corresponding
7275  paragraph types.
7276 \end_layout
7277
7278 \begin_layout Standard
7279 A detailed German description of the LaTeX document classes of the Koma-Script
7280  family can be found in the Koma-Script documentation 
7281 \emph on
7282 scrguide
7283 \emph default
7284 .
7285 \begin_inset Foot
7286 status collapsed
7287
7288 \begin_layout Standard
7289 There is an English translation 
7290 \emph on
7291 screnggu
7292 \emph default
7293 , but it is not a complete one.
7294 \end_layout
7295
7296 \end_inset
7297
7298  The following sections describe only those aspects, which are relevant
7299  in LyX.
7300 \end_layout
7301
7302 \begin_layout Subsection
7303 article (koma-script), report (koma-script), and book (koma-script)
7304 \end_layout
7305
7306 \begin_layout Standard
7307 The document classes 
7308 \emph on
7309 article (koma-script)
7310 \emph default
7311
7312 \emph on
7313 report (koma-script)
7314 \emph default
7315 , and 
7316 \emph on
7317 book
7318 \emph default
7319  
7320 \emph on
7321 (koma-script)
7322 \emph default
7323  are implemented in the layout files 
7324 \family typewriter
7325 scrartcl.layout
7326 \family default
7327
7328 \family typewriter
7329 scrreprt.layout
7330 \family default
7331 , and 
7332 \family typewriter
7333 scrbook.layout
7334 \family default
7335 , resp.
7336  They contain all the paragraph types of the corresponding standard document
7337  classes 
7338 \emph on
7339 article
7340 \emph default
7341
7342 \emph on
7343 report
7344 \emph default
7345 , and 
7346 \emph on
7347 book
7348 \emph default
7349 , resp., partly modified, with the exception of the LyX specific 
7350 \family sans
7351 List
7352 \family default
7353 -type, which is replaced by the new 
7354 \family sans
7355 Labeling
7356 \family default
7357 -type having the same functionality.
7358  Beside the 
7359 \family sans
7360 Labeling
7361 \family default
7362 -Type there is a number of new paragraph types added.
7363  They are 
7364 \emph on
7365 not
7366 \emph default
7367  part of 
7368 \emph on
7369 letter (koma-script)
7370 \emph default
7371 .
7372 \end_layout
7373
7374 \begin_layout Itemize
7375
7376 \family sans
7377 Addpart, Addchap
7378 \family default
7379
7380 \family sans
7381 Addsec
7382 \family default
7383 : are equivalents to 
7384 \family sans
7385 Part*, Chapter*
7386 \family default
7387  and 
7388 \family sans
7389 Section*
7390 \family default
7391 , resp., additionally inserting an entry in the table of contents.
7392  
7393 \family sans
7394 Addpart
7395 \family default
7396  and 
7397 \family sans
7398 Addchap
7399 \family default
7400  are not contained in 
7401 \emph on
7402 article (koma-script)
7403 \emph default
7404 .
7405 \end_layout
7406
7407 \begin_layout Itemize
7408
7409 \family sans
7410 Addchap*
7411 \family default
7412
7413 \family sans
7414 Addsec*
7415 \family default
7416 : behave exactly as 
7417 \family sans
7418 Addchap
7419 \family default
7420  and 
7421 \family sans
7422 Addsec
7423 \family default
7424 , resp., additionally clearing running heads.
7425  
7426 \family sans
7427 Addchap*
7428 \family default
7429  is not contained in 
7430 \emph on
7431 article (koma-script)
7432 \emph default
7433 .
7434 \begin_inset Foot
7435 status collapsed
7436
7437 \begin_layout Standard
7438 There is also an 
7439 \family typewriter
7440
7441 \backslash
7442 addpart*
7443 \family default
7444  command in 
7445 \emph on
7446 book (koma-script)
7447 \emph default
7448  and in 
7449 \emph on
7450 report (koma-script)
7451 \emph default
7452 , but since this is identical to 
7453 \family sans
7454 Part*
7455 \family default
7456 , is has not been implemented in LyX.
7457 \end_layout
7458
7459 \end_inset
7460
7461
7462 \end_layout
7463
7464 \begin_layout Itemize
7465
7466 \family sans
7467 Minisec
7468 \family default
7469 : generates a heading directly above the following paragraph in the standard
7470  character size without affecting the structure of the document.
7471 \end_layout
7472
7473 \begin_layout Itemize
7474
7475 \family sans
7476 Captionabove
7477 \family default
7478  and 
7479 \family sans
7480 Captionbelow
7481 \family default
7482  are special captions which respect the different space settings needed
7483  for captions placed above or below an element (if you follow strict typographic
7484  rules, you might want to place table captions always above the table).
7485  You can also use the class option 
7486 \family typewriter
7487 tablecaptionsabove
7488 \family default
7489 , which will switch 
7490 \family sans
7491 caption
7492 \family default
7493  to 
7494 \family sans
7495 captionabove
7496 \family default
7497  for tables and 
7498 \family sans
7499 captionbelow
7500 \family default
7501  for figures.
7502  You need at least Koma-Script version 2.8q to use this.
7503 \end_layout
7504
7505 \begin_layout Itemize
7506
7507 \family sans
7508 Dictum
7509 \family default
7510 : can be used to set a bonmot, e.
7511 \begin_inset ERT
7512 status collapsed
7513
7514 \begin_layout Standard
7515
7516
7517 \backslash
7518 ,
7519 \end_layout
7520
7521 \end_inset
7522
7523 g.
7524 \begin_inset ERT
7525 status collapsed
7526
7527 \begin_layout Standard
7528
7529
7530 \backslash
7531  
7532 \end_layout
7533
7534 \end_inset
7535
7536 at the beginning of a chapter.
7537  If you use the optional argument (
7538 \family sans
7539 \bar under
7540 I
7541 \bar default
7542 nsert\SpecialChar \menuseparator
7543 Short\InsetSpace ~
7544 Title
7545 \family default
7546 ), you can insert the dictum's author there.
7547  Dictum and author are separated by a line.
7548  You need at least Koma-Script version 2.8q to use this.
7549  
7550 \family sans
7551 Dictum
7552 \family default
7553  is not contained in 
7554 \emph on
7555 article (koma-script)
7556 \emph default
7557 .
7558 \end_layout
7559
7560 \begin_layout Standard
7561 The following types, together with the standard types 
7562 \family sans
7563 Title
7564 \family default
7565
7566 \family sans
7567 Author
7568 \family default
7569 , and 
7570 \family sans
7571 Date
7572 \family default
7573 , form the title area of the document.
7574  They must be entered ahead of the first 
7575 \begin_inset Quotes eld
7576 \end_inset
7577
7578 ordinary
7579 \begin_inset Quotes erd
7580 \end_inset
7581
7582  paragraph.
7583 \begin_inset Foot
7584 status collapsed
7585
7586 \begin_layout Standard
7587 The corresponding LaTeX commands must appear before the 
7588 \family typewriter
7589
7590 \backslash
7591 maketitle
7592 \family default
7593  command.
7594 \end_layout
7595
7596 \end_inset
7597
7598  When such a type is used more than once, the latter usage overwrites the
7599  former one, that means, for every type only the latest usage is valid.
7600  The order of the different types however has, like 
7601 \family sans
7602 Title
7603 \family default
7604
7605 \family sans
7606 Author
7607 \family default
7608 , and 
7609 \family sans
7610 Date
7611 \family default
7612 , no effect on the appearance of the produced document.
7613 \end_layout
7614
7615 \begin_layout Itemize
7616
7617 \family sans
7618 Subject
7619 \family default
7620 : produces a centered paragraph above the ordinary title (
7621 \family sans
7622 Title
7623 \family default
7624
7625 \family sans
7626 Author
7627 \family default
7628
7629 \family sans
7630 Date
7631 \family default
7632 ) for the subject of the document.
7633 \end_layout
7634
7635 \begin_layout Itemize
7636
7637 \family sans
7638 Publishers
7639 \family default
7640 : produces a centered paragraph below the ordinary title (
7641 \family sans
7642 Title
7643 \family default
7644
7645 \family sans
7646 Author
7647 \family default
7648
7649 \family sans
7650 Date
7651 \family default
7652 ) for the publishers' name.
7653 \end_layout
7654
7655 \begin_layout Itemize
7656
7657 \family sans
7658 Dedication
7659 \family default
7660 : in 
7661 \emph on
7662 report (koma-script)
7663 \emph default
7664  and 
7665 \emph on
7666 book (koma-script)
7667 \emph default
7668  produces a centered paragraph on its own page behind the title page, or
7669  in 
7670 \emph on
7671 article (koma-script)
7672 \emph default
7673  produces a centered paragraph below the ordinary title (
7674 \family sans
7675 Title
7676 \family default
7677
7678 \family sans
7679 Author
7680 \family default
7681
7682 \family sans
7683 Date
7684 \family default
7685
7686 \family sans
7687 Publishers
7688 \family default
7689 ) for a dedication.
7690 \end_layout
7691
7692 \begin_layout Itemize
7693
7694 \family sans
7695 Titlehead
7696 \family default
7697 : produces a left aligned paragraph above the ordinary title (
7698 \family sans
7699 Title
7700 \family default
7701
7702 \family sans
7703 Author
7704 \family default
7705
7706 \family sans
7707 Date
7708 \family default
7709
7710 \family sans
7711 Subject
7712 \family default
7713 ) for a document`s head.
7714 \end_layout
7715
7716 \begin_layout Itemize
7717
7718 \family sans
7719 Uppertitleback
7720 \family default
7721 : produces in a double-sided print in 
7722 \emph on
7723 report (koma-script)
7724 \emph default
7725  and 
7726 \emph on
7727 book (koma-script)
7728 \emph default
7729  a left-aligned paragraph at the top of the title page`s back or has no
7730  effect in a single-sided print or in 
7731 \emph on
7732 article (koma-script)
7733 \emph default
7734 .
7735 \end_layout
7736
7737 \begin_layout Itemize
7738
7739 \family sans
7740 Lowertitleback
7741 \family default
7742 : produces in a double-sided print in 
7743 \emph on
7744 report (koma-script)
7745 \emph default
7746  and 
7747 \emph on
7748 book (koma-script)
7749 \emph default
7750  a left-aligned paragraph at the bottom of the title page`s back or has
7751  no effect in a single-sided print or in 
7752 \emph on
7753 article (koma-script)
7754 \emph default
7755 .
7756 \end_layout
7757
7758 \begin_layout Itemize
7759
7760 \family sans
7761 Extratitle
7762 \family default
7763 : produces a special 
7764 \begin_inset Quotes eld
7765 \end_inset
7766
7767 dirty
7768 \begin_inset Quotes erd
7769 \end_inset
7770
7771  page ahead of the actual document containing a paragraph without special
7772  formatting.
7773 \end_layout
7774
7775 \begin_layout Standard
7776 The layout files for the document classes 
7777 \emph on
7778 article (koma-script)
7779 \emph default
7780
7781 \emph on
7782 report (koma-script)
7783 \emph default
7784 , and 
7785 \emph on
7786 book (koma-script)
7787 \emph default
7788  do include the file 
7789 \family typewriter
7790 scrmacros.inc
7791 \family default
7792 .
7793  This is thought of as a place to define your own types.
7794  Copy s
7795 \family typewriter
7796 crmacros.inc
7797 \family default
7798  in your personal layout directory and edit the file!
7799 \end_layout
7800
7801 \begin_layout Subsection
7802 letter (koma-script)
7803 \end_layout
7804
7805 \begin_layout Standard
7806 \begin_inset ERT
7807 status inlined
7808
7809 \begin_layout Standard
7810
7811
7812 \backslash
7813 begin{sloppypar}
7814 \end_layout
7815
7816 \end_inset
7817
7818
7819 \end_layout
7820
7821 \begin_layout Standard
7822 \noindent
7823 The document class 
7824 \emph on
7825 letter (koma-script)
7826 \emph default
7827  is implemented in the layout file 
7828 \family typewriter
7829 scrlettr.layout
7830 \family default
7831 .
7832  It contains all the paragraph types of the corresponding standard document
7833  class 
7834 \emph on
7835 letter
7836 \emph default
7837 , partly modified, with the exception of the LyX specific types 
7838 \family sans
7839 LyX-Code
7840 \family default
7841  and 
7842 \family sans
7843 Comment
7844 \family default
7845  and the 
7846 \family sans
7847 List
7848 \family default
7849  type, which is replaced by the new 
7850 \family sans
7851 Labeling
7852 \family default
7853  type.
7854  In addition, it contains, in contrast to the standard document class, the
7855  standard types 
7856 \family sans
7857 LaTeX
7858 \family default
7859
7860 \family sans
7861 Quotation
7862 \family default
7863
7864 \family sans
7865 Quote
7866 \family default
7867 , and 
7868 \family sans
7869 Verse
7870 \family default
7871 .
7872  Furthermore, there are a number of new letter specific types.
7873 \end_layout
7874
7875 \begin_layout Standard
7876 \begin_inset ERT
7877 status inlined
7878
7879 \begin_layout Standard
7880
7881
7882 \backslash
7883 end{sloppypar}
7884 \end_layout
7885
7886 \end_inset
7887
7888
7889 \end_layout
7890
7891 \begin_layout Standard
7892 The appearance of the letter produced by this document class can be controlled
7893  by a number of LaTeX commands, which you can put in the LaTeX preamble.
7894 \begin_inset Foot
7895 status collapsed
7896
7897 \begin_layout Standard
7898 For example, the standard appearance of the letter`s heading, consisting
7899  of name and address, is quite self-willed.
7900  An 
7901 \begin_inset Quotes eld
7902 \end_inset
7903
7904 ordinary
7905 \begin_inset Quotes erd
7906 \end_inset
7907
7908  heading is produced by the following LaTeX commands in the preamble:
7909 \end_layout
7910
7911 \begin_layout LyX-Code
7912
7913 \backslash
7914 firsthead{
7915 \backslash
7916 parbox[b]{
7917 \backslash
7918 textwidth}
7919 \end_layout
7920
7921 \begin_layout LyX-Code
7922   {
7923 \backslash
7924 ignorespaces 
7925 \backslash
7926 fromname
7927 \backslash
7928
7929 \backslash
7930  
7931 \backslash
7932 ignorespaces 
7933 \backslash
7934 fromaddress}} 
7935 \end_layout
7936
7937 \begin_layout LyX-Code
7938
7939 \backslash
7940 nexthead{
7941 \backslash
7942 parbox[b]{
7943 \backslash
7944 textwidth}
7945 \end_layout
7946
7947 \begin_layout LyX-Code
7948   {
7949 \backslash
7950 ignorespaces 
7951 \backslash
7952 fromname 
7953 \backslash
7954 hfill 
7955 \backslash
7956 ignorespaces 
7957 \backslash
7958 pagename
7959 \backslash
7960  
7961 \backslash
7962 thepage}}
7963 \end_layout
7964
7965 \end_inset
7966
7967  A detailed German description of such LaTeX commands can be found in the
7968  Koma-Script documentation 
7969 \emph on
7970 scrguide
7971 \emph default
7972 .
7973  With it, the letter's author can produce his personal letter layout.
7974 \end_layout
7975
7976 \begin_layout Standard
7977 The types 
7978 \family sans
7979 Letter
7980 \family default
7981  and 
7982 \family sans
7983 Opening
7984 \family default
7985  define the beginning of the letter and must be used in every letter.
7986  To emphasize them in the LyX document class, they are marked with the letter
7987  
7988 \shape italic
7989 L
7990 \shape default
7991  or 
7992 \shape italic
7993 O
7994 \shape default
7995 , resp.\InsetSpace ~
7996 in the left margin.
7997  It is possible to write any number of letters in one file.
7998  An 
7999 \family sans
8000 Opening
8001 \family default
8002  type produces a new letter using the same addressee and a 
8003 \family sans
8004 Letter
8005 \family default
8006  type produces a new addressee.
8007  The types 
8008 \family sans
8009 Closing
8010 \family default
8011
8012 \family sans
8013 PS
8014 \family default
8015
8016 \family sans
8017 CC
8018 \family default
8019 , and 
8020 \family sans
8021 Encl
8022 \family default
8023  are ordinary paragraph types and can also be used several times in one
8024  and the same letter.
8025 \end_layout
8026
8027 \begin_layout Itemize
8028
8029 \family sans
8030 Letter
8031 \family default
8032 : produces a paragraph for the addressee and implicitly defines the beginning
8033  of the letter.
8034 \end_layout
8035
8036 \begin_layout Itemize
8037
8038 \family sans
8039 Opening
8040 \family default
8041 : produces a paragraph for the form of address and implicitly produces a
8042  new letter.
8043 \end_layout
8044
8045 \begin_layout Itemize
8046
8047 \family sans
8048 Closing
8049 \family default
8050 : produces a paragraph for a close.
8051 \end_layout
8052
8053 \begin_layout Itemize
8054
8055 \family sans
8056 PS
8057 \family default
8058 : produces a paragraph for a postscript.
8059 \end_layout
8060
8061 \begin_layout Itemize
8062
8063 \family sans
8064 CC
8065 \family default
8066 : produces a paragraph for a distribution list.
8067 \end_layout
8068
8069 \begin_layout Itemize
8070
8071 \family sans
8072 Encl
8073 \family default
8074 : produces a paragraph for enclosures.
8075 \end_layout
8076
8077 \begin_layout Standard
8078 The types 
8079 \family sans
8080 Name
8081 \family default
8082
8083 \family sans
8084 Signature
8085 \family default
8086
8087 \family sans
8088 Address
8089 \family default
8090
8091 \family sans
8092 Telephone
8093 \family default
8094
8095 \family sans
8096 Place
8097 \family default
8098
8099 \family sans
8100 Backaddress
8101 \family default
8102
8103 \family sans
8104 Specialmail
8105 \family default
8106
8107 \family sans
8108 Location
8109 \family default
8110
8111 \family sans
8112 Title
8113 \family default
8114 , and 
8115 \family sans
8116 Subject
8117 \family default
8118  are input types provided with a label to enter information, which will
8119  be processed by the document class.
8120 \begin_inset Foot
8121 status open
8122
8123 \begin_layout Standard
8124 It could be seen as a matter of inconsequence, that the types 
8125 \family sans
8126 Letter
8127 \family default
8128  and 
8129 \family sans
8130 Opening
8131 \family default
8132  described above are not such input types as well.
8133  Because of the special meaning of those types, however, I have implemented
8134  them as ordinary paragraph types with a one letter mark in the left margin.
8135  Moreover, it would affect my feeling of symmetry, if the 
8136 \family sans
8137 Opening
8138 \family default
8139  type and the 
8140 \family sans
8141 Closing
8142 \family default
8143  type had such a serious different appearance.
8144 \end_layout
8145
8146 \end_inset
8147
8148  The types must be used ahead of the corresponding 
8149 \family sans
8150 Opening
8151 \family default
8152  type.
8153 \end_layout
8154
8155 \begin_layout Standard
8156 An implementation of these types in a WYSIWYG fashion does not seem to make
8157  sense, because the real appearance of the produced letter does not only
8158  depend on the usage of the particular type, but also on other factors.
8159  For example, a signature entered in the 
8160 \family sans
8161 Signature
8162 \family default
8163  type will in the standard behavior appear in the produced letter only,
8164  when in the same letter also a 
8165 \family sans
8166 Closing
8167 \family default
8168  type is used.
8169  The entered value of the 
8170 \family sans
8171 Telephone
8172 \family default
8173  type will in the standard behavior not appear in the produced letter at
8174  all.
8175  The possibility to design the letter`s heading freely is already indicated
8176  in a footnote above.
8177 \end_layout
8178
8179 \begin_layout Standard
8180 The input types can also be used as empty paragraphs.
8181  This makes sense e.\InsetSpace \thinspace{}
8182 g.\InsetSpace ~
8183 for the 
8184 \family sans
8185 Signature
8186 \family default
8187  type.
8188  If the 
8189 \family sans
8190 Signature
8191 \family default
8192  type is not used at all, in the standard behavior the value of the 
8193 \family sans
8194 Name
8195 \family default
8196  type is used as signature, whereas if an empty 
8197 \family sans
8198 Signature
8199 \family default
8200  type is used, no signature value is defined.
8201 \end_layout
8202
8203 \begin_layout Standard
8204 By using the input types it is possible to write a letter template, containing
8205  filled input types with your personal dates (name, address, etc.) and empty
8206  input types for other dates you want to enter.
8207 \end_layout
8208
8209 \begin_layout Itemize
8210
8211 \family sans
8212 Name
8213 \family default
8214 : sender's name, in the standard behavior appears as a centered paragraph
8215  in small caps in the letter`s heading.
8216 \end_layout
8217
8218 \begin_layout Itemize
8219
8220 \family sans
8221 Signature
8222 \family default
8223 : sender's signature, in the standard behavior appears below the 
8224 \family sans
8225 Closing
8226 \family default
8227  type.
8228  If no 
8229 \family sans
8230 Signature
8231 \family default
8232  type is used, the value of the 
8233 \family sans
8234 Name
8235 \family default
8236  type appears instead.
8237 \end_layout
8238
8239 \begin_layout Itemize
8240
8241 \family sans
8242 Address
8243 \family default
8244 : sender's address, in the standard behavior appears in a centered paragraph
8245  in the letter`s heading below the sender's name.
8246 \end_layout
8247
8248 \begin_layout Itemize
8249
8250 \family sans
8251 Telephone
8252 \family default
8253 : sender's telephone number, in the standard behavior only sets the LaTeX
8254  variable 
8255 \family typewriter
8256
8257 \backslash
8258 telephonenum
8259 \family default
8260 .
8261 \end_layout
8262
8263 \begin_layout Itemize
8264
8265 \family sans
8266 Place
8267 \family default
8268 : place of the letter`s making.
8269 \end_layout
8270
8271 \begin_layout Itemize
8272
8273 \family sans
8274 Date
8275 \family default
8276 : date of the letter`s making.
8277  
8278 \family sans
8279 Place
8280 \family default
8281  and 
8282 \family sans
8283 Date
8284 \family default
8285 , in the standard behavior, produce the place and the date in a right-aligned
8286  line below the addressee's field.
8287  If an empty 
8288 \family sans
8289 Date
8290 \family default
8291  type is used, neither place nor date appear, independent of the value of
8292  the 
8293 \family sans
8294 Place
8295 \family default
8296  type.
8297  If no 
8298 \family sans
8299 Date
8300 \family default
8301  type is used, the date of the letter `s production is used.
8302 \end_layout
8303
8304 \begin_layout Itemize
8305
8306 \family sans
8307 Backaddress
8308 \family default
8309 : sender`s back address, in the standard behavior appears above the addressee's
8310  field in a small sans serif font.
8311 \end_layout
8312
8313 \begin_layout Itemize
8314
8315 \family sans
8316 Specialmail
8317 \family default
8318 : special mail information, in the standard behavior appears underlined
8319  above the addressee's field below the back address.
8320 \end_layout
8321
8322 \begin_layout Itemize
8323
8324 \family sans
8325 Location
8326 \family default
8327 : additional information, in the standard behavior appears on right side
8328  below the addressee`s field.
8329 \end_layout
8330
8331 \begin_layout Itemize
8332
8333 \family sans
8334 Title
8335 \family default
8336 : the letter's title, in the standard behavior appears in a big, bold, sans
8337  serif font above the subject.
8338 \end_layout
8339
8340 \begin_layout Itemize
8341
8342 \family sans
8343 Subject
8344 \family default
8345 : the letter's subject, in the standard behavior appears in a bold font
8346  above the 
8347 \family sans
8348 Opening
8349 \family default
8350  paragraph.
8351 \end_layout
8352
8353 \begin_layout Standard
8354 The types 
8355 \family sans
8356 Yourref
8357 \family default
8358
8359 \family sans
8360 Yourmail
8361 \family default
8362
8363 \family sans
8364 Myref
8365 \family default
8366
8367 \family sans
8368 Customer
8369 \family default
8370 , and 
8371 \family sans
8372 Invoice
8373 \family default
8374  produce a business letter like line above the 
8375 \family sans
8376 Title
8377 \family default
8378  line containing the fields 
8379 \begin_inset Quotes eld
8380 \end_inset
8381
8382 Your ref.
8383 \begin_inset Quotes erd
8384 \end_inset
8385
8386
8387 \begin_inset Quotes eld
8388 \end_inset
8389
8390 Your letter of
8391 \begin_inset Quotes erd
8392 \end_inset
8393
8394
8395 \begin_inset Quotes eld
8396 \end_inset
8397
8398 Our ref.
8399 \begin_inset Quotes erd
8400 \end_inset
8401
8402
8403 \begin_inset Quotes eld
8404 \end_inset
8405
8406 Customer no.
8407 \begin_inset Quotes erd
8408 \end_inset
8409
8410
8411 \begin_inset Quotes eld
8412 \end_inset
8413
8414 Invoice no.
8415 \begin_inset Quotes erd
8416 \end_inset
8417
8418 , and 
8419 \begin_inset Quotes eld
8420 \end_inset
8421
8422 Date
8423 \begin_inset Quotes erd
8424 \end_inset
8425
8426 .
8427  For the date field, the value of the 
8428 \family sans
8429 Date
8430 \family default
8431  type is used.
8432  If one of these 
8433 \begin_inset Quotes eld
8434 \end_inset
8435
8436 business letter types
8437 \begin_inset Quotes erd
8438 \end_inset
8439
8440  is used, the value of the 
8441 \family sans
8442 Place
8443 \family default
8444  type however does not appear, but only the LaTeX variable 
8445 \family typewriter
8446
8447 \backslash
8448 fromplace
8449 \family default
8450  is set.
8451  The ordinary output of place and date in a right-aligned line below the
8452  addressee`s field is suppressed.
8453  The types are implemented as input types provided with a label and must
8454  be used ahead of the corresponding 
8455 \family sans
8456 Opening
8457 \family default
8458  type.
8459 \end_layout
8460
8461 \begin_layout Itemize
8462
8463 \family sans
8464 Yourref
8465 \family default
8466 : Your ref.
8467 \end_layout
8468
8469 \begin_layout Itemize
8470
8471 \family sans
8472 Yourmail
8473 \family default
8474 : Your letter of.
8475 \end_layout
8476
8477 \begin_layout Itemize
8478
8479 \family sans
8480 Myref
8481 \family default
8482 : Our ref.
8483 \end_layout
8484
8485 \begin_layout Itemize
8486
8487 \family sans
8488 Customer
8489 \family default
8490 : Customer no.
8491 \end_layout
8492
8493 \begin_layout Itemize
8494
8495 \family sans
8496 Invoice
8497 \family default
8498 : Invoice no.
8499 \end_layout
8500
8501 \begin_layout Subsection
8502 The new letter class: letter (koma-script v.2)
8503 \end_layout
8504
8505 \begin_layout Standard
8506 by 
8507 \noun on
8508 Jürgen Spitzmüller
8509 \end_layout
8510
8511 \begin_layout Standard
8512 \begin_inset VSpace medskip
8513 \end_inset
8514
8515
8516 \end_layout
8517
8518 \begin_layout Standard
8519 \noindent
8520 Koma-Script version 2.8 has introduced a new letter class 
8521 \family typewriter
8522 scrlttr2
8523 \family default
8524  which supersedes the now unsupported 
8525 \family typewriter
8526 scrlettr
8527 \family default
8528 .
8529  It has --- on the LaTeX side --- a completely new interface and is not
8530  compatible with the old class.
8531  Therefore, LyX supports both, though it is recommended to use the new class.
8532 \end_layout
8533
8534 \begin_layout Standard
8535 This class covers the same functionality as 
8536 \emph on
8537 letter (koma-script),
8538 \emph default
8539  and a few more.
8540  The basic items are 
8541 \family sans
8542 Address
8543 \family default
8544  (receiver's address, same as 
8545 \family sans
8546 Letter
8547 \family default
8548  in the old layout), 
8549 \family sans
8550 Opening
8551 \family default
8552 , and 
8553 \family sans
8554 Closing
8555 \family default
8556 .
8557  
8558 \family sans
8559 NextAddress
8560 \family default
8561  will start a new letter (i.
8562 \begin_inset ERT
8563 status collapsed
8564
8565 \begin_layout Standard
8566
8567
8568 \backslash
8569 ,
8570 \end_layout
8571
8572 \end_inset
8573
8574 e.
8575 \begin_inset ERT
8576 status collapsed
8577
8578 \begin_layout Standard
8579
8580
8581 \backslash
8582  
8583 \end_layout
8584
8585 \end_inset
8586
8587 you can write several letters per document).
8588  New elements are sender's 
8589 \family sans
8590 E-Mail
8591 \family default
8592
8593 \family sans
8594 URL
8595 \family default
8596
8597 \family sans
8598 Fax
8599 \family default
8600
8601 \family sans
8602 Bank
8603 \family default
8604  and the possibility to use a 
8605 \family sans
8606 Logo
8607 \family default
8608  (via 
8609 \family sans
8610 \bar under
8611 I
8612 \bar default
8613 nsert\SpecialChar \menuseparator
8614
8615 \bar under
8616 G
8617 \bar default
8618 raphics
8619 \family default
8620 ) in the header.
8621 \end_layout
8622
8623 \begin_layout Standard
8624 The biggest improvement is, though, that the letter's layout is configurable
8625  at almost any needs.
8626  This can be done via the preamble or with a special style file (Letter
8627  Class Option, extension 
8628 \family typewriter
8629 *.lco
8630 \family default
8631 ), that will be read in as a class option.
8632 \begin_inset Foot
8633 status collapsed
8634
8635 \begin_layout Standard
8636 The KOMA package comes with some default 
8637 \family typewriter
8638 *.lco
8639 \family default
8640  files.
8641  There is, for instance, a 
8642 \family typewriter
8643 DIN.lco
8644 \family default
8645  file that follows german typesetting rules, or a 
8646 \family typewriter
8647 KOMAold.lco
8648 \family default
8649  that provides the default layout of the old 
8650 \family typewriter
8651 scrlettr
8652 \family default
8653  class.
8654  The latter can be loaded with the class option 
8655 \family typewriter
8656 KOMAold
8657 \family default
8658 , inserted via the 
8659 \family sans
8660 \bar under
8661 L
8662 \bar default
8663 ayout\SpecialChar \menuseparator
8664
8665 \bar under
8666 D
8667 \bar default
8668 ocument\SpecialChar \menuseparator
8669 Extra Options
8670 \family default
8671  field.
8672 \end_layout
8673
8674 \end_inset
8675
8676  Have a look at the 
8677 \emph on
8678 koma-letter2
8679 \emph default
8680  template that is included in LyX for examples.
8681  A detailed description is to be found in the Koma-Script documentation
8682  (
8683 \emph on
8684 scrguide
8685 \emph default
8686 ).
8687 \end_layout
8688
8689 \begin_layout Subsection
8690 Problems
8691 \end_layout
8692
8693 \begin_layout Standard
8694 Visualizing the Koma-Script document classes in LyX, the LyX internals cause
8695  some problems.
8696 \end_layout
8697
8698 \begin_layout Itemize
8699 The chapter number of a 
8700 \family sans
8701 Chapter
8702 \family default
8703  type appears on a line of its own above the chapter heading instead of
8704  appearing in the same line ahead of it.
8705  The cause for that is the LyX internal behavior for the labeltype 
8706 \family sans
8707 Counter_Chapter
8708 \family default
8709  in the layout file.
8710 \end_layout
8711
8712 \begin_layout Itemize
8713 The headings of the types 
8714 \family sans
8715 Addchap
8716 \family default
8717  and 
8718 \family sans
8719 Addsec
8720 \family default
8721  are only put in the 
8722 \begin_inset Quotes eld
8723 \end_inset
8724
8725 true
8726 \begin_inset Quotes erd
8727 \end_inset
8728
8729  LaTeX table of contents, but not in the LyX table of contents (
8730 \family sans
8731 \bar under
8732 D
8733 \bar default
8734 ocument\SpecialChar \menuseparator
8735
8736 \bar under
8737 T
8738 \bar default
8739 able\InsetSpace ~
8740 of\InsetSpace ~
8741 Contents
8742 \family default
8743 ).
8744 \end_layout
8745
8746 \begin_layout Itemize
8747 The paragraphs in a 
8748 \emph on
8749 letter
8750 \emph default
8751  document class appear in a skip separation mode, not indented.
8752  This is the standard behavior, no special LaTeX commands are needed for
8753  that.
8754  But in the 
8755 \family sans
8756 \bar under
8757 D
8758 \bar default
8759 ocument\SpecialChar \menuseparator
8760
8761 \bar under
8762 S
8763 \bar default
8764 ettings
8765 \family default
8766  dialog the corresponding radio button indicates 
8767 \family sans
8768 \bar under
8769 I
8770 \bar default
8771 ndent
8772 \family default
8773 .
8774  A 
8775 \family sans
8776 S
8777 \bar under
8778 k
8779 \bar default
8780 ip
8781 \family default
8782  value always has the effect that extra LaTeX commands are inserted in the
8783  document to produce the gap, which is not what is wanted in this case.
8784 \end_layout
8785
8786 \begin_layout Section
8787 Springer Journals (
8788 \family sans
8789 svjour
8790 \family default
8791 )
8792 \end_layout
8793
8794 \begin_layout Standard
8795 by 
8796 \noun on
8797 Martin Vermeer
8798 \end_layout
8799
8800 \begin_layout Subsection
8801 Description
8802 \end_layout
8803
8804 \begin_layout Standard
8805 These are the layout files for some of the journal formats used by Springer
8806  Verlag and listed on 
8807 \begin_inset LatexCommand url
8808 target "http://www.springer.de/author/tex/help-journals.html"
8809
8810 \end_inset
8811
8812 , where you should also go to fetch the class files (yes, these are LaTeX2e
8813  now!).
8814  It is a modular system: the things common to all journals are implemented
8815  in 
8816 \family typewriter
8817 svjour.inc
8818 \family default
8819 , which journal-specific layout files (such as, e.\InsetSpace \thinspace{}
8820 g., 
8821 \family typewriter
8822 svjog.layout
8823 \family default
8824  for Journal of Geodesy) can include.
8825 \end_layout
8826
8827 \begin_layout Standard
8828 This means that implementing support for any other Springer journal on this
8829  list is as simple as writing your own 
8830 \family typewriter
8831 sv
8832 \family default
8833 <myjournal>
8834 \family typewriter
8835 .layout
8836 \family default
8837  file following the outline given in 
8838 \family typewriter
8839 svjog.layout
8840 \family default
8841 .
8842  
8843 \end_layout
8844
8845 \begin_layout Standard
8846 It is reasonably well tested only for the Journal of Geodesy.
8847  
8848 \family typewriter
8849 svjour
8850 \family default
8851  and 
8852 \family typewriter
8853 svjog
8854 \family default
8855  come with the standard LyX distribution.
8856  Install the relevant class file (downloaded from Springer) in a proper
8857  directory, reconfigure LaTeX (in the teTeX case by running 
8858 \family typewriter
8859 texhash
8860 \family default
8861 , as root if necessary --- doesn't LyX take care of this?), reconfigure
8862  LyX and it should work.
8863 \end_layout
8864
8865 \begin_layout Subsection
8866 New styles
8867 \end_layout
8868
8869 \begin_layout Standard
8870 A large number of theorem-like styles --- 
8871 \family sans
8872 Claim, Conjecture,
8873 \family default
8874  
8875 \family sans
8876 \SpecialChar \ldots{}
8877 Theorem
8878 \family default
8879 .
8880 \end_layout
8881
8882 \begin_layout Standard
8883
8884 \family sans
8885 Headnote, Dedication, Subtitle, Running_LaTeX_Title, Author_Running, Institute,
8886  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
8887 \family default
8888 .
8889  See the Springer class file documentation for details.
8890 \end_layout
8891
8892 \begin_layout Subsection
8893 Supported journals
8894 \end_layout
8895
8896 \begin_layout Itemize
8897
8898 \emph on
8899 Journal of Geodesy
8900 \emph default
8901
8902 \family typewriter
8903 svjog.layout
8904 \family default
8905  --- Martin Vermeer
8906 \end_layout
8907
8908 \begin_layout Itemize
8909
8910 \emph on
8911 Probability Theory and Related Fields
8912 \emph default
8913
8914 \family typewriter
8915 svprobth.layout
8916 \family default
8917  --- Jean-Marc Lasgouttes
8918 \end_layout
8919
8920 \begin_layout Standard
8921 Add your own, it isn't so hard!
8922 \end_layout
8923
8924 \begin_layout Subsection
8925 Credits
8926 \end_layout
8927
8928 \begin_layout Standard
8929 These files are partly based on the older 
8930 \family typewriter
8931 ejour2.layout
8932 \family default
8933 , which was again based on a tinkered-with version of an old LaTeX 2.09 style
8934  file from Springer.
8935  All this, and the 
8936 \family typewriter
8937 ejour2
8938 \family default
8939  layout, are now defunct.
8940  Jean-Marc Lasgouttes helped out big in making me find my way around the
8941  LyX layout file mechanism.
8942 \end_layout
8943
8944 \begin_layout Subsection
8945 Bugs
8946 \end_layout
8947
8948 \begin_layout Standard
8949 Probably.
8950  But probably less than in the old hacked-LaTeX 
8951 \family typewriter
8952 ejour2
8953 \family default
8954 .
8955 \end_layout
8956
8957 \begin_layout Standard
8958 Limitations e.\InsetSpace \thinspace{}
8959 g.: does not display the number for theorem-like layouts, just
8960  #.
8961 \end_layout
8962
8963 \begin_layout Section
8964 AGU journals (
8965 \family sans
8966 aguplus
8967 \family default
8968 )
8969 \end_layout
8970
8971 \begin_layout Standard
8972 by 
8973 \shape smallcaps
8974 Martin Vermeer
8975 \end_layout
8976
8977 \begin_layout Subsection
8978 Description
8979 \end_layout
8980
8981 \begin_layout Standard
8982 These are the layout files for some of the journals of the American Geophysical
8983  Society.
8984  It is assumed that you have both the AGU's own class files and AGUplus
8985  installed (everything to be found at
8986 \begin_inset LatexCommand url
8987 target "ftp://ftp.agu.org/journals/latex/journals"
8988
8989 \end_inset
8990
8991 ).
8992 \end_layout
8993
8994 \begin_layout Subsection
8995 New styles
8996 \end_layout
8997
8998 \begin_layout Standard
8999 Redefined are 
9000 \family sans
9001 Paragraph
9002 \family default
9003
9004 \family sans
9005 Paragraph*
9006 \family default
9007 .
9008  They are still called this in the LyX GUI, though their LaTeX equivalents
9009  in the AGU classes are 
9010 \family sans
9011 Subsubsubsection
9012 \family default
9013  and 
9014 \family sans
9015 Subsubsubsection*
9016 \family default
9017 .
9018 \end_layout
9019
9020 \begin_layout Standard
9021 Newly defined styles are 
9022 \family sans
9023 Left_Header
9024 \family default
9025
9026 \family sans
9027 Right_Header
9028 \family default
9029
9030 \family sans
9031 Received
9032 \family default
9033
9034 \family sans
9035 Revised
9036 \family default
9037
9038 \family sans
9039 Accepted
9040 \family default
9041
9042 \family sans
9043 CCC
9044 \family default
9045
9046 \family sans
9047 PaperId
9048 \family default
9049
9050 \family sans
9051 AuthorAddr
9052 \family default
9053
9054 \family sans
9055 SlugComment
9056 \family default
9057 .
9058  These are mostly manuscript attributes and defined in the AGU class documentati
9059 on.
9060 \end_layout
9061
9062 \begin_layout Standard
9063 I suspect this is still badly incomplete.
9064 \end_layout
9065
9066 \begin_layout Subsection
9067 New floats
9068 \end_layout
9069
9070 \begin_layout Standard
9071
9072 \family sans
9073 Planotable
9074 \family default
9075  and 
9076 \family sans
9077 Plate
9078 \family default
9079 .
9080  We also have a new 
9081 \family sans
9082 Table_Caption
9083 \family default
9084 .
9085 \end_layout
9086
9087 \begin_layout Subsection
9088 Supported journals
9089 \end_layout
9090
9091 \begin_layout Itemize
9092
9093 \emph on
9094 Journal of Geophysical Research
9095 \emph default
9096
9097 \family typewriter
9098 jgrga.layout
9099 \family default
9100  --- Martin Vermeer
9101 \end_layout
9102
9103 \begin_layout Standard
9104 Add your own, it isn't so hard! Look at the 
9105 \family typewriter
9106 jgrga.layout
9107 \family default
9108  example and 
9109 \family typewriter
9110 aguplus.inc
9111 \family default
9112 .
9113 \end_layout
9114
9115 \begin_layout Subsection
9116 Bugs and things to remember
9117 \end_layout
9118
9119 \begin_layout Standard
9120 In order to use the new layouts, you must remember to do the following for
9121  a new document:
9122 \end_layout
9123
9124 \begin_layout Enumerate
9125
9126 \emph on
9127 Turn off babel
9128 \emph default
9129 .
9130  This can be done in the 
9131 \family sans
9132 layout\SpecialChar \menuseparator
9133 document
9134 \family default
9135  or 
9136 \family sans
9137 document\SpecialChar \menuseparator
9138 settings
9139 \family default
9140  menu item.
9141  (AGU articles are always in English, right? So 
9142 \emph on
9143 don't
9144 \emph default
9145  choose a language.)
9146 \end_layout
9147
9148 \begin_layout Enumerate
9149 Enter 
9150 \family typewriter
9151 jgrga
9152 \family default
9153  into the document's 
9154 \family sans
9155 Extra Options
9156 \family default
9157  field.
9158  (Yes, this is a bug.)
9159 \end_layout
9160
9161 \begin_layout Enumerate
9162 Make sure you use the 
9163 \family typewriter
9164 agu.bst
9165 \family default
9166  bibliography style, by entering 
9167 \family sans
9168 agu
9169 \family default
9170  into the second field of the BibTeX inset.
9171  None of the standard styles will do.
9172 \end_layout
9173
9174 \begin_layout Section
9175 EGS journals (
9176 \family sans
9177 egs
9178 \family default
9179 )
9180 \end_layout
9181
9182 \begin_layout Standard
9183 by 
9184 \shape smallcaps
9185 Martin Vermeer
9186 \end_layout
9187
9188 \begin_layout Subsection
9189 Description
9190 \end_layout
9191
9192 \begin_layout Standard
9193 This is the layout file for the European Geophysical Society journals.
9194  The needed 
9195 \family typewriter
9196 egs.cls
9197 \family default
9198  can be downloaded from the web site of the EGS under 
9199 \begin_inset LatexCommand url
9200 target "www.copernicus.org"
9201
9202 \end_inset
9203
9204 .
9205 \end_layout
9206
9207 \begin_layout Subsection
9208 New styles
9209 \end_layout
9210
9211 \begin_layout Standard
9212
9213 \family sans
9214 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
9215  Accepted
9216 \family default
9217
9218 \family sans
9219 Offsets
9220 \family default
9221 .
9222  The current layout file is unfortunately very unmodular and would benefit
9223  from using the various 
9224 \family typewriter
9225 std*.inc
9226 \family default
9227  file inclusions.
9228 \end_layout
9229
9230 \begin_layout Section
9231 Slides [aka 
9232 \noun on
9233 Sli
9234 \noun default
9235 TeX]
9236 \begin_inset LatexCommand label
9237 name "sec:slitex"
9238
9239 \end_inset
9240
9241
9242 \end_layout
9243
9244 \begin_layout Standard
9245 by 
9246 \noun on
9247 John Weiss
9248 \noun default
9249  
9250 \end_layout
9251
9252 \begin_layout Subsection
9253 Introduction
9254 \end_layout
9255
9256 \begin_layout Standard
9257 This section describes how to use LyX to make slides for overhead projectors.
9258  There are two document classes that can do this: the default slides class
9259  and the 
9260 \family sans
9261 Foil
9262 \family default
9263 TeX slides class.
9264  This section documents the former.
9265 \end_layout
9266
9267 \begin_layout Standard
9268 I'm going to say this again, nice and clear, so that there's no misunderstanding
9269 :
9270 \end_layout
9271
9272 \begin_layout Standard
9273 \begin_inset VSpace bigskip
9274 \end_inset
9275
9276
9277 \end_layout
9278
9279 \begin_layout Standard
9280 \align center
9281
9282 \size large
9283 This section documents the class 
9284 \begin_inset Quotes eld
9285 \end_inset
9286
9287
9288 \family sans
9289 slides (default)
9290 \family default
9291
9292 \begin_inset Quotes erd
9293 \end_inset
9294
9295  
9296 \emph on
9297 only.
9298 \end_layout
9299
9300 \begin_layout Standard
9301 \begin_inset VSpace bigskip
9302 \end_inset
9303
9304
9305 \end_layout
9306
9307 \begin_layout Standard
9308 If you're looking for the documentation for 
9309 \begin_inset Quotes eld
9310 \end_inset
9311
9312
9313 \family sans
9314 slides (FoilTeX)
9315 \family default
9316
9317 \begin_inset Quotes erd
9318 \end_inset
9319
9320 , check out section\InsetSpace ~
9321
9322 \begin_inset LatexCommand ref
9323 reference "sec:foiltex"
9324
9325 \end_inset
9326
9327 .
9328  The 
9329 \family sans
9330 foils
9331 \family default
9332  class [
9333 \begin_inset Quotes eld
9334 \end_inset
9335
9336
9337 \family sans
9338 slides (FoilTeX)
9339 \family default
9340
9341 \begin_inset Quotes erd
9342 \end_inset
9343
9344 ] is actually somewhat better than the default 
9345 \family sans
9346 slides
9347 \family default
9348  class,
9349 \begin_inset Foot
9350 status collapsed
9351
9352 \begin_layout Standard
9353 \SpecialChar \ldots{}
9354 or so I've been told repeatedly by its advocates.
9355  Having never used it, I have no idea if this claim is true or not.
9356 \end_layout
9357
9358 \end_inset
9359
9360  which this section documents.
9361 \end_layout
9362
9363 \begin_layout Standard
9364 This class is the LaTeX2e improvement of the old 
9365 \noun on
9366 Sli
9367 \noun default
9368 TeX package.
9369  Every LaTeX2e distribution includes this class [which I'll just refer to
9370  as 
9371 \begin_inset Quotes eld
9372 \end_inset
9373
9374
9375 \family sans
9376 slides
9377 \family default
9378
9379 \begin_inset Quotes erd
9380 \end_inset
9381
9382  from now on], so you're bound to have it.
9383  As I noted earlier, there are other classes, such as 
9384 \family sans
9385 foils
9386 \family default
9387 , which also produce slides for overhead projectors and do a better job
9388  at it.
9389  However, there are some things which 
9390 \family sans
9391 slides
9392 \family default
9393  can do which the others can't, such as generate overlays.
9394  Read on to learn more!
9395 \end_layout
9396
9397 \begin_layout Subsection
9398 Getting Started
9399 \begin_inset LatexCommand label
9400 name "sec:slidesetup"
9401
9402 \end_inset
9403
9404
9405 \end_layout
9406
9407 \begin_layout Standard
9408 Obviously, to use this document class, you need to select 
9409 \begin_inset Quotes eld
9410 \end_inset
9411
9412
9413 \family sans
9414 slides (default)
9415 \family default
9416
9417 \begin_inset Quotes erd
9418 \end_inset
9419
9420  from the class list in the 
9421 \family sans
9422 \bar under
9423 D
9424 \bar default
9425 ocument\SpecialChar \menuseparator
9426
9427 \bar under
9428 S
9429 \bar default
9430 ettings
9431 \family default
9432  dialog.
9433  There are some other special things you should know about this class:
9434 \end_layout
9435
9436 \begin_layout Itemize
9437 Don't bother changing the options 
9438 \family sans
9439 Sides and Columns
9440 \family default
9441 .
9442  They're not supported by the 
9443 \family sans
9444 slides
9445 \family default
9446  class, anyways.
9447 \end_layout
9448
9449 \begin_layout Itemize
9450 The option 
9451 \family sans
9452 \bar under
9453 P
9454 \bar default
9455 age\InsetSpace ~
9456 style
9457 \family default
9458  behaves a bit differently for this class.
9459  The possible choices and what they do are as follows:
9460 \end_layout
9461
9462 \begin_deeper
9463 \begin_layout Description
9464
9465 \family sans
9466 plain
9467 \family default
9468  The final output contains page numbers in the lower right corner.
9469 \end_layout
9470
9471 \begin_layout Description
9472
9473 \family sans
9474 headings
9475 \family default
9476  Like 
9477 \family sans
9478 plain
9479 \family default
9480 , but also prints out any time markers you've put in.
9481  This is the default.
9482 \end_layout
9483
9484 \begin_layout Description
9485
9486 \family sans
9487 empty
9488 \family default
9489  The final output contains no page numbers, time markers, or alignment markers.
9490 \end_layout
9491
9492 \end_deeper
9493 \begin_layout Itemize
9494 The 
9495 \family sans
9496 slides
9497 \family default
9498  class has an extra option: 
9499 \family typewriter
9500 clock
9501 \family default
9502 .
9503  To use it, put 
9504 \begin_inset Quotes eld
9505 \end_inset
9506
9507
9508 \family typewriter
9509 clock
9510 \family default
9511
9512 \begin_inset Quotes erd
9513 \end_inset
9514
9515  in the extra class options.
9516 \end_layout
9517
9518 \begin_deeper
9519 \begin_layout Standard
9520 Using this options allows you to add time markers to 
9521 \family sans
9522 Note
9523 \family default
9524 s.
9525  See section\InsetSpace ~
9526
9527 \begin_inset LatexCommand ref
9528 reference "sec:slideNote"
9529
9530 \end_inset
9531
9532  for more details.
9533 \end_layout
9534
9535 \end_deeper
9536 \begin_layout Standard
9537 You can also use the template file 
9538 \begin_inset Quotes eld
9539 \end_inset
9540
9541
9542 \family typewriter
9543 slides.lyx
9544 \family default
9545
9546 \begin_inset Quotes erd
9547 \end_inset
9548
9549  to automatically set up a document to use the 
9550 \family sans
9551 slides
9552 \family default
9553  class [using 
9554 \family sans
9555 \bar under
9556 F
9557 \bar default
9558 ile\SpecialChar \menuseparator
9559 New\InsetSpace ~
9560 from\InsetSpace ~
9561
9562 \bar under
9563 T
9564 \bar default
9565 emplate
9566 \family default
9567  to open your new document].
9568  The template file also contains some examples of the special paragraph
9569  environments used by this class.
9570  I'll describe those next.
9571 \end_layout
9572
9573 \begin_layout Subsection
9574 Paragraph Environments
9575 \end_layout
9576
9577 \begin_layout Subsubsection
9578 Supported Environments
9579 \end_layout
9580
9581 \begin_layout Standard
9582 The first thing you'll notice when you start up a new 
9583 \family sans
9584 slides
9585 \family default
9586  document is the font size and type: it's the equivalent of the size 
9587 \begin_inset Quotes eld
9588 \end_inset
9589
9590
9591 \family sans
9592 Largest
9593 \family default
9594
9595 \begin_inset Quotes erd
9596 \end_inset
9597
9598  in the 
9599 \family sans
9600 Sans\InsetSpace ~
9601 Serif
9602 \family default
9603  font.
9604  This is also what's used in the output.
9605  Think of this as a 
9606 \begin_inset Quotes eld
9607 \end_inset
9608
9609 visual cue
9610 \begin_inset Quotes erd
9611 \end_inset
9612
9613  to remind you that this is a slide.
9614  Your final slides will use a larger font; ergo, you'll have less space.
9615  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
9616 \end_layout
9617
9618 \begin_layout Standard
9619 The next thing that becomes obvious is the changes to the paragraph environment
9620  pull-down box [at the far-left end of the toolbar].
9621  Most of the paragraph environments you're used to seeing are missing.
9622  There are also five new ones.
9623  That's because the 
9624 \family sans
9625 slides
9626 \family default
9627  class itself only supports certain paragraph environments:
9628 \end_layout
9629
9630 \begin_layout Itemize
9631
9632 \family sans
9633 Standard
9634 \end_layout
9635
9636 \begin_layout Itemize
9637
9638 \family sans
9639 Itemize
9640 \end_layout
9641
9642 \begin_layout Itemize
9643
9644 \family sans
9645 Enumerate
9646 \end_layout
9647
9648 \begin_layout Itemize
9649
9650 \family sans
9651 Description
9652 \end_layout
9653
9654 \begin_layout Itemize
9655
9656 \family sans
9657 List
9658 \end_layout
9659
9660 \begin_layout Itemize
9661
9662 \family sans
9663 Quotation
9664 \end_layout
9665
9666 \begin_layout Itemize
9667
9668 \family sans
9669 Quote
9670 \end_layout
9671
9672 \begin_layout Itemize
9673
9674 \family sans
9675 Verse
9676 \end_layout
9677
9678 \begin_layout Itemize
9679
9680 \family sans
9681 Caption
9682 \end_layout
9683
9684 \begin_layout Itemize
9685
9686 \family sans
9687 LyX-Code
9688 \end_layout
9689
9690 \begin_layout Itemize
9691
9692 \family sans
9693 Comment
9694 \end_layout
9695
9696 \begin_layout Standard
9697 All of the other standard environments, including the section-heading environmen
9698 ts, aren't used in the 
9699 \family sans
9700 slides
9701 \family default
9702  class.
9703 \end_layout
9704
9705 \begin_layout Standard
9706 On the other hand, you'll notice the following new environments:
9707 \end_layout
9708
9709 \begin_layout Itemize
9710
9711 \family sans
9712 Slide
9713 \end_layout
9714
9715 \begin_layout Itemize
9716
9717 \family sans
9718 Overlay
9719 \end_layout
9720
9721 \begin_layout Itemize
9722
9723 \family sans
9724 Note
9725 \end_layout
9726
9727 \begin_layout Itemize
9728
9729 \family sans
9730 InvisibleText
9731 \end_layout
9732
9733 \begin_layout Itemize
9734
9735 \family sans
9736 VisibleText
9737 \end_layout
9738
9739 \begin_layout Standard
9740 These five are kind of quirky, due to a 
9741 \begin_inset Quotes eld
9742 \end_inset
9743
9744 feature
9745 \begin_inset Quotes erd
9746 \end_inset
9747
9748  in LyX.
9749  You see, LyX doesn't permit you to nest any other paragraph environment
9750  into an empty environment.
9751  Now, that's fine and dandy, but it means that you wouldn't be able to start
9752  a slide with anything except plain text.
9753  To deal with this, I've performed a little 
9754 \begin_inset Quotes eld
9755 \end_inset
9756
9757 LaTeX magic.
9758 \begin_inset Quotes erd
9759 \end_inset
9760
9761  
9762 \end_layout
9763
9764 \begin_layout Subsubsection
9765 Quirks of the New Environments
9766 \begin_inset LatexCommand label
9767 name "sec:slideQuirk"
9768
9769 \end_inset
9770
9771
9772 \end_layout
9773
9774 \begin_layout Standard
9775 All five of the new paragraph environments are somewhat quirky due to inherent
9776  limitiations in the current version of LyX.
9777  As I just mentioned, LyX forbids environments that begin with another environme
9778 nt.
9779  To get around this, the 
9780 \family sans
9781 Slide
9782 \family default
9783  environment isn't a paragraph environment as described in the 
9784 \emph on
9785 User's Guide
9786 \emph default
9787 .
9788  
9789 \end_layout
9790
9791 \begin_layout Standard
9792 You should consider 
9793 \family sans
9794 Slide
9795 \family default
9796
9797 \family sans
9798 Overlay
9799 \family default
9800 , and 
9801 \family sans
9802 Note
9803 \family default
9804  to be 
9805 \begin_inset Quotes eld
9806 \end_inset
9807
9808 pseudo-environments.
9809 \begin_inset Quotes erd
9810 \end_inset
9811
9812  They look like a section heading or a 
9813 \begin_inset Quotes eld
9814 \end_inset
9815
9816
9817 \family sans
9818 Caption
9819 \family default
9820 ,
9821 \begin_inset Quotes erd
9822 \end_inset
9823
9824  but really begin a [and, if necessary, end the previous] paragraph environment.
9825  Likewise, treat 
9826 \family sans
9827 InvisibleText
9828 \family default
9829  and 
9830 \family sans
9831 VisibleText
9832 \family default
9833  as 
9834 \begin_inset Quotes eld
9835 \end_inset
9836
9837 pseudo-commands.
9838 \begin_inset Quotes erd
9839 \end_inset
9840
9841  These two perform some action.
9842 \end_layout
9843
9844 \begin_layout Standard
9845 A common feature of all five environments, 
9846 \family sans
9847 Slide
9848 \family default
9849
9850 \family sans
9851 Overlay
9852 \family default
9853
9854 \family sans
9855 Note
9856 \family default
9857
9858 \family sans
9859 InvisibleText
9860 \family default
9861  and 
9862 \family sans
9863 VisibleText
9864 \family default
9865 , is a rather long-ish label.
9866  The text following this label --- ordinarily the contents of the paragraph
9867  environment --- is utterly irrelevant for 
9868 \family sans
9869 Slide
9870 \family default
9871
9872 \family sans
9873 Overlay
9874 \family default
9875
9876 \family sans
9877 Note
9878 \family default
9879
9880 \family sans
9881 InvisibleText
9882 \family default
9883  and 
9884 \family sans
9885 VisibleText
9886 \family default
9887 .
9888  LyX completely ignores it.
9889  In fact, you can leave these five environments completely empty.
9890  
9891 \end_layout
9892
9893 \begin_layout Standard
9894 While you don't 
9895 \emph on
9896 have
9897 \emph default
9898  to put any text after the rather long-ish label, you might want to.
9899  This could be a short description of the contents of the 
9900 \family sans
9901 Slide
9902 \family default
9903 , for example.
9904  In that case, enter in your descriptive comment and hit 
9905 \family sans
9906 Return
9907 \family default
9908  as you normally would.
9909 \end_layout
9910
9911 \begin_layout Standard
9912 If, on the other hand, you don't want to enter in any descriptive text,
9913  you'll hit another LyX quirk.
9914  LyX, like nature, abhors a vacuum, and will not let you start a new paragraph
9915  environment until you put something in the old one.
9916  So, do this:
9917 \end_layout
9918
9919 \begin_layout Itemize
9920 Start entering the text that will 
9921 \emph on
9922 follow
9923 \emph default
9924  the new 
9925 \family sans
9926 Slide
9927 \family default
9928
9929 \family sans
9930 Overlay
9931 \family default
9932
9933 \family sans
9934 Note
9935 \family default
9936
9937 \family sans
9938 InvisibleText
9939 \family default
9940  or 
9941 \family sans
9942 VisibleText
9943 \family default
9944 .
9945  
9946 \end_layout
9947
9948 \begin_layout Itemize
9949 Now move to the beginning of that paragraph.
9950  
9951 \end_layout
9952
9953 \begin_layout Itemize
9954 Next, hit 
9955 \family sans
9956 Return
9957 \family default
9958 .
9959  
9960 \end_layout
9961
9962 \begin_layout Itemize
9963 Finally, change this new, empty paragraph to a 
9964 \family sans
9965 Slide
9966 \family default
9967
9968 \family sans
9969 Overlay
9970 \family default
9971
9972 \family sans
9973 Note
9974 \family default
9975
9976 \family sans
9977 InvisibleText
9978 \family default
9979  or 
9980 \family sans
9981 VisibleText
9982 \family default
9983 .
9984  
9985 \end_layout
9986
9987 \begin_layout Standard
9988 Some future version of LyX will, hopefully, resolve this quirkiness\SpecialChar \ldots{}
9989
9990 \end_layout
9991
9992 \begin_layout Subsection
9993 Making a Presentation with 
9994 \family sans
9995 Slide
9996 \family default
9997
9998 \family sans
9999 Overlay
10000 \family default
10001  and 
10002 \family sans
10003 Note
10004 \end_layout
10005
10006 \begin_layout Subsubsection
10007 Using the 
10008 \family sans
10009 Slide
10010 \family default
10011  Environment
10012 \end_layout
10013
10014 \begin_layout Standard
10015 If you're expecting this section to teach you how to actually make a presentatio
10016 n, you'll be sorely disappointed.
10017  Naturally, I'll describe all of the ways the 
10018 \family sans
10019 slides
10020 \family default
10021  class can assist you in preparing the materials for a presentation.
10022  Filling in the contents, however, is up to you.
10023  [Then again, that 
10024 \emph on
10025 is
10026 \emph default
10027  the LyX philosophy.]
10028 \end_layout
10029
10030 \begin_layout Standard
10031 Choosing the 
10032 \family sans
10033 Slide
10034 \family default
10035  environment [in the manner described in section\InsetSpace ~
10036
10037 \begin_inset LatexCommand ref
10038 reference "sec:slideQuirk"
10039
10040 \end_inset
10041
10042 ] tells LyX to begin a new slide [duh].
10043  The label for this environment/
10044 \begin_inset Quotes erd
10045 \end_inset
10046
10047 pseudo-command
10048 \begin_inset Quotes erd
10049 \end_inset
10050
10051  is an 
10052 \begin_inset Quotes eld
10053 \end_inset
10054
10055 ASCII line,
10056 \begin_inset Quotes erd
10057 \end_inset
10058
10059  in cool blue, followed by the label, 
10060 \begin_inset Quotes eld
10061 \end_inset
10062
10063 NewSlide:
10064 \begin_inset Quotes erd
10065 \end_inset
10066
10067 .
10068  Any text or paragraph environments that follow this one go on the new slide.
10069  It's that simple.
10070 \end_layout
10071
10072 \begin_layout Standard
10073 Slides are probably the only time you'll need to forcibly end pages in LyX
10074  (this can be specified in the 
10075 \family sans
10076 Paragraph Layout
10077 \family default
10078  dialog).
10079  In fact, you'll want to, once you finish entering the contents of one slide.
10080  If you've entered more text than can physically fit on a slide, the extra
10081  overflows onto a new slide.
10082  I don't recommend doing this, however, since the overflow slide won't have
10083  any page number on it.
10084  Furthermore, it may interfere with any 
10085 \family sans
10086 Overlay
10087 \family default
10088  you've made to accompany the oversized 
10089 \family sans
10090 Slide
10091 \family default
10092 .
10093 \end_layout
10094
10095 \begin_layout Standard
10096 The 
10097 \family sans
10098 Overlay
10099 \family default
10100  and 
10101 \family sans
10102 Note
10103 \family default
10104  environments work the same way as the 
10105 \family sans
10106 Slide
10107 \family default
10108  environment.
10109  They both create an 
10110 \begin_inset Quotes eld
10111 \end_inset
10112
10113 ASCII line
10114 \begin_inset Quotes erd
10115 \end_inset
10116
10117  followed by a label [
10118 \begin_inset Quotes eld
10119 \end_inset
10120
10121 NewOverlay:
10122 \begin_inset Quotes erd
10123 \end_inset
10124
10125  and 
10126 \begin_inset Quotes eld
10127 \end_inset
10128
10129 NewNote:
10130 \begin_inset Quotes erd
10131 \end_inset
10132
10133 , respectively].
10134  The color is a stunning magenta instead of blue, and the 
10135 \begin_inset Quotes eld
10136 \end_inset
10137
10138 ASCII line
10139 \begin_inset Quotes erd
10140 \end_inset
10141
10142  will look different, in style and in length.
10143  The label fonts of all three also differ from one another.
10144 \end_layout
10145
10146 \begin_layout Standard
10147 As with a 
10148 \family sans
10149 Slide
10150 \family default
10151 , if the contents of a 
10152 \family sans
10153 Note
10154 \family default
10155  or 
10156 \family sans
10157 Overlay
10158 \family default
10159  exceed the physical size of a slide or sheet of paper, the extra will overflow
10160  onto a new sheet.
10161  Again, you should avoid this.
10162  It defeats the whole purpose of 
10163 \family sans
10164 Note
10165 \family default
10166 s and 
10167 \family sans
10168 Overlay
10169 \family default
10170 s.
10171 \end_layout
10172
10173 \begin_layout Subsubsection
10174 Using 
10175 \family sans
10176 Overlay
10177 \family default
10178  with 
10179 \family sans
10180 Slide
10181 \end_layout
10182
10183 \begin_layout Standard
10184 The idea behind an 
10185 \family sans
10186 Overlay
10187 \family default
10188  is a slide that sits atop another slide.
10189  Perhaps you wish to discuss a figure on the main 
10190 \family sans
10191 Slide
10192 \family default
10193  before displaying the text associated with it.
10194  One way to accomplish this is tape a flap of dark paper over the part of
10195  the 
10196 \family sans
10197 Slide
10198 \family default
10199  you want to display later.
10200  This method fails, however, if you wish to overlap one graph with another,
10201  for example.
10202  You would then have to fumble while speaking to align the two separate,
10203  overlapping 
10204 \family sans
10205 Slide
10206 \family default
10207 s to align the two graphs.
10208  The use of an 
10209 \family sans
10210 Overlay
10211 \family default
10212  environment in both cases makes life much easier.
10213 \end_layout
10214
10215 \begin_layout Standard
10216 Each 
10217 \family sans
10218 Overlay
10219 \family default
10220  receives the page number of its 
10221 \begin_inset Quotes eld
10222 \end_inset
10223
10224 parent
10225 \begin_inset Quotes erd
10226 \end_inset
10227
10228  
10229 \family sans
10230 Slide
10231 \family default
10232 , appended by 
10233 \begin_inset Quotes eld
10234 \end_inset
10235
10236
10237 \family typewriter
10238 -a
10239 \family default
10240
10241 \begin_inset Quotes erd
10242 \end_inset
10243
10244 .
10245 \begin_inset Foot
10246 status collapsed
10247
10248 \begin_layout Standard
10249 Presumably, mutliple 
10250 \family sans
10251 Overlay
10252 \family default
10253 s would have 
10254 \begin_inset Quotes eld
10255 \end_inset
10256
10257
10258 \family typewriter
10259 -a
10260 \family default
10261
10262 \begin_inset Quotes erd
10263 \end_inset
10264
10265
10266 \begin_inset Quotes eld
10267 \end_inset
10268
10269
10270 \family typewriter
10271 -b
10272 \family default
10273
10274 \begin_inset Quotes erd
10275 \end_inset
10276
10277
10278 \begin_inset Quotes eld
10279 \end_inset
10280
10281
10282 \family typewriter
10283 -c
10284 \family default
10285
10286 \begin_inset Quotes erd
10287 \end_inset
10288
10289 , etc.\InsetSpace ~
10290 appended to the page number of the parent 
10291 \family sans
10292 Slide
10293 \family default
10294 .
10295  
10296 \end_layout
10297
10298 \end_inset
10299
10300  Clearly, you want the contents of both the 
10301 \family sans
10302 Slide
10303 \family default
10304  and the 
10305 \family sans
10306 Overlay
10307 \family default
10308  to each fit on a single physical slide! You should probably consider an
10309  
10310 \family sans
10311 Overlay
10312 \family default
10313  as 
10314 \begin_inset Quotes eld
10315 \end_inset
10316
10317 part of
10318 \begin_inset Quotes erd
10319 \end_inset
10320
10321  a 
10322 \family sans
10323 Slide
10324 \family default
10325 .
10326  Indeed, the LyX 
10327 \family sans
10328 slides
10329 \family default
10330  class provides a visual cue for this: the label at the start of an 
10331 \family sans
10332 Overlay
10333 \family default
10334  is shorter than that at the start of a 
10335 \family sans
10336 Slide
10337 \family default
10338 .
10339  Lastly, when you generate printable output, you'll find alignment markers
10340  in all four corners of both the 
10341 \family sans
10342 Overlay
10343 \family default
10344  page and its parent 
10345 \family sans
10346 Slide
10347 \family default
10348 .
10349  These will assist you in lining up the two physical slides.
10350 \end_layout
10351
10352 \begin_layout Standard
10353 The major problem in overlaying two slides is aligning the contents of the
10354  two transparencies.
10355  How much space should you leave for that graph on the second slide? Worse
10356  still, what if you want a graph and a sentence on second slide, but there
10357  is text on the main transparency that goes in between them? You could try
10358  and insert vertical space of the right size.
10359  The better way is to use 
10360 \family sans
10361 InvisibleText
10362 \family default
10363  and 
10364 \family sans
10365 VisibleText
10366 \family default
10367 .
10368 \end_layout
10369
10370 \begin_layout Standard
10371 As their names imply, 
10372 \family sans
10373 InvisibleText
10374 \family default
10375  and 
10376 \family sans
10377 VisibleText
10378 \family default
10379  are two command-like paragraph environments that make all subsequent text
10380  invisible and visible, respectively.
10381  Note from section\InsetSpace ~
10382
10383 \begin_inset LatexCommand ref
10384 reference "sec:slideQuirk"
10385
10386 \end_inset
10387
10388  that you don't place anything 
10389 \emph on
10390 into
10391 \emph default
10392  these two environments, however.
10393  When you create an 
10394 \family sans
10395 InvisibleText
10396 \family default
10397 , it inserts a centered, sky-blue label into the page reading 
10398 \begin_inset Quotes eld
10399 \end_inset
10400
10401 <Invisible Text Follows>
10402 \begin_inset Quotes erd
10403 \end_inset
10404
10405 .
10406  For paragraphs following this label, the parts of the 
10407 \family sans
10408 Slide
10409 \family default
10410  [or 
10411 \family sans
10412 Overlay
10413 \family default
10414 ; it doesn't matter which] where they would be contain instead blank space.
10415  
10416 \end_layout
10417
10418 \begin_layout Standard
10419 For 
10420 \family sans
10421 VisibleText
10422 \family default
10423 , the corresponding centered label is 
10424 \begin_inset Quotes eld
10425 \end_inset
10426
10427 <Visible Text Follows>
10428 \begin_inset Quotes erd
10429 \end_inset
10430
10431  in blazing green.
10432  Paragraphs following this label behave normally.
10433  Note that the beginning of a new 
10434 \family sans
10435 Slide
10436 \family default
10437
10438 \family sans
10439 Overlay
10440 \family default
10441 , or 
10442 \family sans
10443 Note
10444 \family default
10445  automatically shuts off an 
10446 \family sans
10447 InvisibleText
10448 \family default
10449 .
10450  It's therefore not necessary to use 
10451 \family sans
10452 VisibleText
10453 \family default
10454  at the end of a 
10455 \family sans
10456 Slide
10457 \family default
10458 .
10459 \end_layout
10460
10461 \begin_layout Standard
10462 By now, it should be obvious how to create overlay transparencies using
10463  the proper combination of 
10464 \family sans
10465 InvisibleText
10466 \family default
10467  and 
10468 \family sans
10469 VisibleText
10470 \family default
10471  on a 
10472 \family sans
10473 Slide
10474 \family default
10475  and 
10476 \family sans
10477 Overlay
10478 \family default
10479 :
10480 \end_layout
10481
10482 \begin_layout Enumerate
10483 Create a 
10484 \family sans
10485 Slide
10486 \family default
10487 , including everything that will appear on it, whether on the main slide
10488  or on the 
10489 \family sans
10490 Overlay
10491 \family default
10492 .
10493 \end_layout
10494
10495 \begin_layout Enumerate
10496 Before each figure or paragraph that will appear only on the 
10497 \family sans
10498 Overlay
10499 \family default
10500 , insert an 
10501 \family sans
10502 InvisibleText
10503 \family default
10504  environment.
10505  If necessary, insert a 
10506 \family sans
10507 VisibleText
10508 \family default
10509  environment after the 
10510 \family sans
10511 Overlay
10512 \family default
10513 -only text.
10514 \end_layout
10515
10516 \begin_layout Enumerate
10517 Start an 
10518 \family sans
10519 Overlay
10520 \family default
10521  immediately following the 
10522 \family sans
10523 Slide
10524 \family default
10525 .
10526 \end_layout
10527
10528 \begin_layout Enumerate
10529 Copy the contents of this 
10530 \family sans
10531 Slide
10532 \family default
10533  into the 
10534 \family sans
10535 Overlay
10536 \family default
10537 .
10538 \end_layout
10539
10540 \begin_layout Enumerate
10541 Within the 
10542 \family sans
10543 Overlay
10544 \family default
10545 , change all of the 
10546 \family sans
10547 InvisibleText
10548 \family default
10549  lines to 
10550 \family sans
10551 VisibleText
10552 \family default
10553  and vice-versa.
10554 \end_layout
10555
10556 \begin_layout Standard
10557 That's it.
10558  You've just made an 
10559 \family sans
10560 Overlay
10561 \family default
10562 .
10563 \end_layout
10564
10565 \begin_layout Standard
10566 There's one problem with the way I've designed the LyX 
10567 \family sans
10568 slides
10569 \family default
10570  class: you can't make text in the middle of a paragraph invisible, nor
10571  make text in the middle of an invisible paragraph visible again.
10572  To accomplish this feat, you'll need to use some inlined LaTeX codes.
10573 \begin_inset Foot
10574 status collapsed
10575
10576 \begin_layout Standard
10577 The commands of interest are: 
10578 \end_layout
10579
10580 \begin_layout Itemize
10581
10582 \family typewriter
10583 {
10584 \backslash
10585 invisible \SpecialChar \ldots{}
10586  }
10587 \end_layout
10588
10589 \begin_layout Itemize
10590
10591 \family typewriter
10592 {
10593 \backslash
10594 visible \SpecialChar \ldots{}
10595  }
10596 \end_layout
10597
10598 \begin_layout Standard
10599 \SpecialChar \ldots{}
10600 and need to be marked as TeX.
10601  The text whose 
10602 \begin_inset Quotes eld
10603 \end_inset
10604
10605 visibility
10606 \begin_inset Quotes erd
10607 \end_inset
10608
10609  you wish to change goes in between the brackets [and after the 
10610 \family typewriter
10611
10612 \backslash
10613 invisible
10614 \family default
10615  or 
10616 \family typewriter
10617
10618 \backslash
10619 visible
10620 \family default
10621  command].
10622  If you don't know how to mark text as TeX, see the appropriate section
10623  of the 
10624 \emph on
10625 User's Guide
10626 \emph default
10627 .
10628 \end_layout
10629
10630 \end_inset
10631
10632
10633 \end_layout
10634
10635 \begin_layout Subsubsection
10636 Using 
10637 \family sans
10638 Note
10639 \family default
10640  with 
10641 \family sans
10642 Slide
10643 \family default
10644
10645 \begin_inset LatexCommand label
10646 name "sec:slideNote"
10647
10648 \end_inset
10649
10650
10651 \end_layout
10652
10653 \begin_layout Standard
10654 Like an 
10655 \family sans
10656 Overlay
10657 \family default
10658 , a 
10659 \family sans
10660 Note
10661 \family default
10662  is associated with a 
10663 \begin_inset Quotes eld
10664 \end_inset
10665
10666 parent
10667 \begin_inset Quotes erd
10668 \end_inset
10669
10670  
10671 \family sans
10672 Slide
10673 \family default
10674 .
10675  Here, too, the LyX 
10676 \family sans
10677 slides
10678 \family default
10679  class provides visual cues.
10680  The label for a 
10681 \family sans
10682 Note
10683 \family default
10684  is shorter than that of a 
10685 \family sans
10686 Slide
10687 \family default
10688  [yet longer than that of an 
10689 \family sans
10690 Overlay
10691 \family default
10692 ] and, like the label of an 
10693 \family sans
10694 Overlay
10695 \family default
10696  is shockingly magenta.
10697  Additionally, the printed 
10698 \family sans
10699 Note
10700 \family default
10701  has the page number of its 
10702 \begin_inset Quotes eld
10703 \end_inset
10704
10705 parent
10706 \begin_inset Quotes erd
10707 \end_inset
10708
10709  
10710 \family sans
10711 Slide
10712 \family default
10713 , appended by 
10714 \begin_inset Quotes eld
10715 \end_inset
10716
10717
10718 \family typewriter
10719 -
10720 \family default
10721 1
10722 \begin_inset Quotes erd
10723 \end_inset
10724
10725
10726 \begin_inset Quotes eld
10727 \end_inset
10728
10729
10730 \family typewriter
10731 -
10732 \family default
10733 2
10734 \begin_inset Quotes erd
10735 \end_inset
10736
10737
10738 \begin_inset Quotes eld
10739 \end_inset
10740
10741
10742 \family typewriter
10743 -
10744 \family default
10745 3
10746 \begin_inset Quotes erd
10747 \end_inset
10748
10749 , etc.
10750  You can have multiple 
10751 \family sans
10752 Note
10753 \family default
10754 s associated with a single 
10755 \family sans
10756 Slide
10757 \family default
10758 , and, as with 
10759 \family sans
10760 Slide
10761 \family default
10762  and 
10763 \family sans
10764 Overlay
10765 \family default
10766 , you'll probably want to break up long 
10767 \family sans
10768 Note
10769 \family default
10770 s so that they fit on a single sheet of paper.
10771 \end_layout
10772
10773 \begin_layout Standard
10774 The purpose of a 
10775 \family sans
10776 Note
10777 \family default
10778  is obvious: it contains anything additional you might want to say about
10779  a 
10780 \family sans
10781 Slide
10782 \family default
10783 .
10784  It could also be used as a sheet of reminders for a particular 
10785 \family sans
10786 Slide
10787 \family default
10788 .
10789  In the case of the latter, you might want to make use of time markers.
10790  Currently, the LyX 
10791 \family sans
10792 slides
10793 \family default
10794  class has no 
10795 \begin_inset Quotes eld
10796 \end_inset
10797
10798 native
10799 \begin_inset Quotes erd
10800 \end_inset
10801
10802  support for time markers, a 
10803 \noun on
10804 Sli
10805 \noun default
10806 TeX feature.
10807  So, you'll have to resort to using the LaTeX codes.
10808 \end_layout
10809
10810 \begin_layout Standard
10811 To use time markers, you'll need to specify the extra class option 
10812 \begin_inset Quotes eld
10813 \end_inset
10814
10815
10816 \family typewriter
10817 clock
10818 \family default
10819
10820 \begin_inset Quotes erd
10821 \end_inset
10822
10823  [see section\InsetSpace ~
10824
10825 \begin_inset LatexCommand ref
10826 reference "sec:slidesetup"
10827
10828 \end_inset
10829
10830 ].
10831  This option turns on timing marks, which will appear in the lower-left-hand
10832  corner of every 
10833 \family sans
10834 Note
10835 \family default
10836  you generate.
10837  To set what appears in the time marker, you use the LaTeX commands 
10838 \begin_inset Quotes eld
10839 \end_inset
10840
10841
10842 \family typewriter
10843
10844 \backslash
10845 settime{}
10846 \family default
10847
10848 \begin_inset Quotes erd
10849 \end_inset
10850
10851  and 
10852 \begin_inset Quotes eld
10853 \end_inset
10854
10855
10856 \family typewriter
10857
10858 \backslash
10859 addtime{}
10860 \family default
10861
10862 \begin_inset Quotes erd
10863 \end_inset
10864
10865 .
10866  The arguments of both commands are time measured in seconds.
10867  
10868 \begin_inset Quotes eld
10869 \end_inset
10870
10871
10872 \family typewriter
10873
10874 \backslash
10875 settime{}
10876 \family default
10877
10878 \begin_inset Quotes erd
10879 \end_inset
10880
10881  sets the time marker to a given time.
10882  
10883 \begin_inset Quotes eld
10884 \end_inset
10885
10886
10887 \family typewriter
10888
10889 \backslash
10890 addtime{}
10891 \family default
10892
10893 \begin_inset Quotes erd
10894 \end_inset
10895
10896  increments the time marker by the specified amount.
10897  Using time markers and 
10898 \family sans
10899 Note
10900 \family default
10901 s in this fashion, you can remind yourself how much time to spend on a particula
10902
10903 \family sans
10904 Slide
10905 \family default
10906 .
10907 \end_layout
10908
10909 \begin_layout Standard
10910 There's one last feature to describe.
10911  Clearly, you'd like to print out all of your 
10912 \family sans
10913 Slide
10914 \family default
10915 s and 
10916 \family sans
10917 Overlay
10918 \family default
10919 s on transparencies while printing all of your 
10920 \family sans
10921 Note
10922 \family default
10923 s on plain paper.
10924  However, a 
10925 \family sans
10926 Note
10927 \family default
10928  
10929 \emph on
10930 must
10931 \emph default
10932  follow the 
10933 \family sans
10934 Slide
10935 \family default
10936  with which it is associated.
10937  What's a person to do?
10938 \end_layout
10939
10940 \begin_layout Standard
10941 Luckily, there are two LaTeX commands that allow you to select what to print
10942  out.
10943  Both must be placed into the preamble of your document.
10944  The command 
10945 \begin_inset Quotes eld
10946 \end_inset
10947
10948
10949 \family typewriter
10950
10951 \backslash
10952 onlyslides{
10953 \backslash
10954 slides}
10955 \family default
10956
10957 \begin_inset Quotes erd
10958 \end_inset
10959
10960  will cause the output to contain only the 
10961 \family sans
10962 Slide
10963 \family default
10964 s and 
10965 \family sans
10966 Overlay
10967 \family default
10968 s.
10969  Correspondingly, the command 
10970 \begin_inset Quotes eld
10971 \end_inset
10972
10973
10974 \family typewriter
10975
10976 \backslash
10977 onlynotes{
10978 \backslash
10979 notes}
10980 \family default
10981
10982 \begin_inset Quotes erd
10983 \end_inset
10984
10985  prevents the output of anything but 
10986 \family sans
10987 Note
10988 \family default
10989 s.
10990  I'd advise placing both commands in the preamble and initially comment
10991  both out.
10992  You can then preview your entire presentation as you write.
10993  When you're done writing, you can then uncomment one of the two to select
10994  what you want to print.
10995  I like to uncomment 
10996 \begin_inset Quotes eld
10997 \end_inset
10998
10999
11000 \family typewriter
11001
11002 \backslash
11003 onlyslides{
11004 \backslash
11005 slides}
11006 \family default
11007
11008 \begin_inset Quotes erd
11009 \end_inset
11010
11011  , print to a file with 
11012 \begin_inset Quotes eld
11013 \end_inset
11014
11015
11016 \family typewriter
11017 -slides
11018 \family default
11019
11020 \begin_inset Quotes erd
11021 \end_inset
11022
11023  in its name, comment it back out, then uncomment 
11024 \begin_inset Quotes eld
11025 \end_inset
11026
11027
11028 \family typewriter
11029
11030 \backslash
11031 onlynotes{
11032 \backslash
11033 notes}
11034 \family default
11035
11036 \begin_inset Quotes erd
11037 \end_inset
11038
11039  and print to a 
11040 \begin_inset Quotes eld
11041 \end_inset
11042
11043
11044 \family typewriter
11045 *-notes.ps
11046 \family default
11047
11048 \begin_inset Quotes erd
11049 \end_inset
11050
11051  file.
11052  I can then send either file to a printer, loading transparencies or plain
11053  paper as appropriate.
11054 \end_layout
11055
11056 \begin_layout Standard
11057 You can also provide other arguments to the 
11058 \begin_inset Quotes eld
11059 \end_inset
11060
11061
11062 \family typewriter
11063
11064 \backslash
11065 onlyslides{}
11066 \family default
11067
11068 \begin_inset Quotes erd
11069 \end_inset
11070
11071  and 
11072 \begin_inset Quotes eld
11073 \end_inset
11074
11075
11076 \family typewriter
11077
11078 \backslash
11079 onlynotes{}
11080 \family default
11081
11082 \begin_inset Quotes erd
11083 \end_inset
11084
11085  commands.
11086  See a good LaTeX book for details.
11087 \end_layout
11088
11089 \begin_layout Subsection
11090 The 
11091 \family sans
11092 slides
11093 \family default
11094  Class Template File
11095 \end_layout
11096
11097 \begin_layout Standard
11098 I have also provided a template file, 
11099 \begin_inset Quotes eld
11100 \end_inset
11101
11102
11103 \family typewriter
11104 slides.lyx
11105 \family default
11106
11107 \begin_inset Quotes erd
11108 \end_inset
11109
11110 , with the 
11111 \family sans
11112 slides
11113 \family default
11114  class.
11115  To use it, begin your new presentation with 
11116 \family sans
11117 \bar under
11118 F
11119 \bar default
11120 ile\SpecialChar \menuseparator
11121 New\InsetSpace ~
11122 from\InsetSpace ~
11123
11124 \bar under
11125 T
11126 \bar default
11127 emplate
11128 \family default
11129 .
11130  Your new LyX presentation file will contain an example 
11131 \family sans
11132 Slide
11133 \family default
11134  -- 
11135 \family sans
11136 Overlay
11137 \family default
11138  -- 
11139 \family sans
11140 Note
11141 \family default
11142  triplet.
11143  The 
11144 \family sans
11145 Slide
11146 \family default
11147  and 
11148 \family sans
11149 Overlay
11150 \family default
11151  additionally contain an example of the use of 
11152 \family sans
11153 InvisibleText
11154 \family default
11155  and 
11156 \family sans
11157 VisibleText
11158 \family default
11159 .
11160  Lastly, the preamble will contain:
11161 \end_layout
11162
11163 \begin_layout LyX-Code
11164 % Uncomment to print out only slides and overlays
11165 \end_layout
11166
11167 \begin_layout LyX-Code
11168 %
11169 \end_layout
11170
11171 \begin_layout LyX-Code
11172 %
11173 \backslash
11174 onlyslides{
11175 \backslash
11176 slides}
11177 \newline
11178  
11179 \end_layout
11180
11181 \begin_layout LyX-Code
11182 % Uncomment to print out only notes
11183 \end_layout
11184
11185 \begin_layout LyX-Code
11186 %
11187 \end_layout
11188
11189 \begin_layout LyX-Code
11190 %
11191 \backslash
11192 onlynotes{
11193 \backslash
11194 notes}
11195 \end_layout
11196
11197 \begin_layout Standard
11198 One final thing: I created this class to support the LaTeX2e 
11199 \begin_inset Quotes eld
11200 \end_inset
11201
11202
11203 \noun on
11204 Sli
11205 \noun default
11206 TeX emulation
11207 \begin_inset Quotes erd
11208 \end_inset
11209
11210  class, one of the built-in LaTeX2e classes.
11211  Neither I nor the rest of the LyX Team endorse or oppose the use of this
11212  built-in slide class.
11213  It's here if you want it or need it.
11214  There exist other LaTeX2e classes for creating presentations, such as the
11215  
11216 \family sans
11217 Foils
11218 \family default
11219  class [see section\InsetSpace ~
11220
11221 \begin_inset LatexCommand ref
11222 reference "sec:foiltex"
11223
11224 \end_inset
11225
11226 ] or the 
11227 \begin_inset Quotes eld
11228 \end_inset
11229
11230
11231 \family typewriter
11232 seminar
11233 \family default
11234
11235 \begin_inset Quotes erd
11236 \end_inset
11237
11238  package [present on some TeX distributions].
11239  The latter is not yet supported under LyX.
11240 \begin_inset Foot
11241 status collapsed
11242
11243 \begin_layout Standard
11244 Perhaps you can take on the task\SpecialChar \ldots{}
11245
11246 \end_layout
11247
11248 \end_inset
11249
11250  I know nothing about these other classes.
11251  Try them out to see what sort of alternative they provide.
11252 \end_layout
11253
11254 \begin_layout Section
11255 Foils [aka 
11256 \family sans
11257 Foil
11258 \family default
11259 \noun on
11260 TeX
11261 \noun default
11262 ]
11263 \begin_inset LatexCommand label
11264 name "sec:foiltex"
11265
11266 \end_inset
11267
11268
11269 \end_layout
11270
11271 \begin_layout Standard
11272 by 
11273 \noun on
11274 Allan Rae
11275 \end_layout
11276
11277 \begin_layout Subsection
11278 Introduction
11279 \end_layout
11280
11281 \begin_layout Standard
11282 This section describes how to use LyX to make slides for overhead projectors.
11283  There are two document classes that can do this: the default slides class
11284  and the 
11285 \family sans
11286 Foil
11287 \family default
11288 TeX slides class.
11289  This section documents the latter.
11290 \end_layout
11291
11292 \begin_layout Standard
11293 I'm going to say this again, nice and clear, so that there's no misunderstanding
11294 :
11295 \end_layout
11296
11297 \begin_layout Standard
11298 \begin_inset VSpace bigskip
11299 \end_inset
11300
11301
11302 \end_layout
11303
11304 \begin_layout Standard
11305 \align center
11306
11307 \size large
11308 This section documents the class 
11309 \begin_inset Quotes eld
11310 \end_inset
11311
11312
11313 \family sans
11314 slides (FoilTeX)
11315 \family default
11316
11317 \begin_inset Quotes erd
11318 \end_inset
11319
11320  
11321 \emph on
11322 only.
11323 \end_layout
11324
11325 \begin_layout Standard
11326 \begin_inset VSpace bigskip
11327 \end_inset
11328
11329
11330 \end_layout
11331
11332 \begin_layout Standard
11333 If you're looking for the documentation for 
11334 \begin_inset Quotes eld
11335 \end_inset
11336
11337
11338 \family sans
11339 slides (default)
11340 \family default
11341
11342 \begin_inset Quotes erd
11343 \end_inset
11344
11345 , check out section\InsetSpace ~
11346
11347 \begin_inset LatexCommand ref
11348 reference "sec:slitex"
11349
11350 \end_inset
11351
11352 .
11353  If your machine doesn't have the 
11354 \family sans
11355 foils
11356 \family default
11357  class [
11358 \begin_inset Quotes eld
11359 \end_inset
11360
11361
11362 \family sans
11363 slides (FoilTeX)
11364 \family default
11365
11366 \begin_inset Quotes erd
11367 \end_inset
11368
11369 ] installed, you'll probably have to use the default 
11370 \family sans
11371 slides
11372 \family default
11373  class, which isn't quite as good as 
11374 \family sans
11375 foils.
11376 \end_layout
11377
11378 \begin_layout Standard
11379 The 
11380 \family sans
11381 foils
11382 \family default
11383  class is designed for use with version 2.1 of the 
11384 \family sans
11385 foils.cls
11386 \family default
11387  LaTeX class file which is now an integral part of LaTeX2e.
11388 \end_layout
11389
11390 \begin_layout Subsection
11391 Getting Started
11392 \end_layout
11393
11394 \begin_layout Standard
11395 Obviously, to use this document class, you need to select 
11396 \begin_inset Quotes eld
11397 \end_inset
11398
11399
11400 \family sans
11401 slides (FoilTeX)
11402 \family default
11403
11404 \begin_inset Quotes erd
11405 \end_inset
11406
11407  from the 
11408 \family sans
11409 \bar under
11410 C
11411 \bar default
11412 lass
11413 \family default
11414  entry in the 
11415 \family sans
11416 Document\InsetSpace ~
11417 Layout
11418 \family default
11419  dialog.
11420  There are some settings in the 
11421 \family sans
11422 Document\InsetSpace ~
11423 Layout
11424 \family default
11425  dialog that you should know about that are specific to this class:
11426 \end_layout
11427
11428 \begin_layout Itemize
11429 Don't change the options 
11430 \family sans
11431 Sides
11432 \family default
11433  and 
11434 \family sans
11435 Columns
11436 \family default
11437  on the 
11438 \family sans
11439 Document\InsetSpace ~
11440 Layout
11441 \family default
11442  dialog.
11443  They're ignored by the 
11444 \family sans
11445 foils
11446 \family default
11447  class.
11448 \end_layout
11449
11450 \begin_layout Itemize
11451 The default font size is 20pt with the other options being 17pt, 25pt and
11452  30pt.
11453 \end_layout
11454
11455 \begin_layout Itemize
11456 The default font is 
11457 \family sans
11458 sans
11459 \family default
11460  
11461 \family sans
11462 serif
11463 \family default
11464  but all math equations are still typeset in the usual roman font.
11465 \end_layout
11466
11467 \begin_layout Itemize
11468
11469 \family sans
11470 Foil
11471 \family default
11472 TeX supports A4 and Letter paper sizes as well as a special size for working
11473  with 35mm slides.
11474  It doesn't support A5, B5, legal or executive paper sizes.
11475 \end_layout
11476
11477 \begin_layout Itemize
11478 Don't bother changing the 
11479 \family sans
11480 Float Placement
11481 \family default
11482  settings because they are ignored anyway.
11483  All floats appear where they are defined in the text.
11484 \end_layout
11485
11486 \begin_layout Itemize
11487 The 
11488 \family sans
11489 \bar under
11490 P
11491 \bar default
11492 agestyle
11493 \family default
11494  setting behaves a bit differently for this class.
11495  
11496 \family sans
11497 Foil
11498 \family default
11499 TeX provides extensive footer and header capabilities including a user-defined
11500  logo.
11501  See section\InsetSpace ~
11502
11503 \begin_inset LatexCommand ref
11504 reference "sec:foilfoot"
11505
11506 \end_inset
11507
11508  for more details.
11509  The title page is treated differently to all other pages in the document
11510  and is 
11511 \emph on
11512 always
11513 \emph default
11514  unnumbered and 
11515 \emph on
11516 always
11517 \emph default
11518  has the logo centered at the bottom of the page (if one is defined).
11519  The possible page style choices and what they do are as follows:
11520 \end_layout
11521
11522 \begin_deeper
11523 \begin_layout List
11524 \labelwidthstring MMMMMMM
11525
11526 \family sans
11527 \series bold
11528 empty
11529 \family default
11530 \series default
11531  The final output contains no page numbers, or other headers or footers
11532  (except footnotes of course).
11533  
11534 \end_layout
11535
11536 \begin_layout List
11537 \labelwidthstring MMMMMMM
11538
11539 \family sans
11540 \series bold
11541 plain
11542 \family default
11543 \series default
11544  The final output contains page numbers centered at the bottom of the page.
11545  No other headings or footers (other than footnotes).
11546 \end_layout
11547
11548 \begin_layout List
11549 \labelwidthstring MMMMMMM
11550
11551 \series bold
11552 foilheadings
11553 \series default
11554  Page numbers in lower right corner.
11555  Additional headers and footers are also shown.
11556  This is also the default.
11557 \end_layout
11558
11559 \begin_layout List
11560 \labelwidthstring MMMMMMM
11561
11562 \series bold
11563 fancy
11564 \series default
11565  Gives you access to the 
11566 \family sans
11567 fancyheadings
11568 \family default
11569  package although its use with 
11570 \family sans
11571 Foil
11572 \family default
11573 TeX is discouraged by the writer of the 
11574 \family sans
11575 Foil
11576 \family default
11577 TeX package because of some potential page layout clashes.
11578 \end_layout
11579
11580 \end_deeper
11581 \begin_layout Subsubsection
11582 Extra Options
11583 \end_layout
11584
11585 \begin_layout Standard
11586 The following options may be used in the extra class options in the 
11587 \family sans
11588 \bar under
11589 D
11590 \bar default
11591 ocument\SpecialChar \menuseparator
11592
11593 \bar under
11594 S
11595 \bar default
11596 ettings
11597 \family default
11598  dialog.
11599 \end_layout
11600
11601 \begin_layout List
11602 \labelwidthstring MMMMMMx
11603
11604 \series bold
11605 35mmSlide
11606 \series default
11607  This sets up the page layout for 7.33in by 11in paper, which is about the
11608  same aspect ratio as a 35mm slide, making it a bit easier to work with
11609  this medium.
11610 \end_layout
11611
11612 \begin_layout List
11613 \labelwidthstring MMMMMMx
11614
11615 \series bold
11616 headrule
11617 \series default
11618  Places a rule across the page below the header on every page except the
11619  title page.
11620 \end_layout
11621
11622 \begin_layout List
11623 \labelwidthstring MMMMMMx
11624
11625 \series bold
11626 footrule
11627 \series default
11628  Places a rule across the page above the footer on every page except the
11629  title page.
11630 \end_layout
11631
11632 \begin_layout List
11633 \labelwidthstring MMMMMMx
11634
11635 \series bold
11636 dvips
11637 \series default
11638  This is automatically set each time you create a new 
11639 \family sans
11640 foils
11641 \family default
11642  document.
11643  This option tells 
11644 \family sans
11645 Foil
11646 \family default
11647 TeX to use the dvips driver to rotate those pages that are set as landscape
11648  foils.
11649 \end_layout
11650
11651 \begin_layout List
11652 \labelwidthstring MMMMMMx
11653
11654 \series bold
11655 landscape
11656 \series default
11657  Simply changes the page dimensions to those of a landscape page but doesn't
11658  do any rotation.
11659  Thus if you use this option you need to use an external program to rotate
11660  each page or feed your paper through your printer as landscape.
11661  Note that this option effectively reverses the roles of the 
11662 \family sans
11663 Foilhead
11664 \family default
11665  and 
11666 \family sans
11667 Rotatefoilhead
11668 \family default
11669  environments (don't worry these are described in the next section).
11670 \end_layout
11671
11672 \begin_layout List
11673 \labelwidthstring MMMMMMx
11674
11675 \series bold
11676 leqno
11677 \series default
11678  Equation numbers on the left.
11679 \end_layout
11680
11681 \begin_layout List
11682 \labelwidthstring MMMMMMx
11683
11684 \series bold
11685 fleqn
11686 \series default
11687  Flush-left equations.
11688 \end_layout
11689
11690 \begin_layout Subsection
11691 Supported Environments
11692 \end_layout
11693
11694 \begin_layout Standard
11695 Most of the environments commonly supported in other classes are also supported
11696  by the 
11697 \family sans
11698 foils
11699 \family default
11700  class.
11701  There are several additional environments provided by 
11702 \family sans
11703 Foil
11704 \family default
11705 TeX as well as a couple added by LyX.
11706  The following environments are shared with other classes:
11707 \end_layout
11708
11709 \begin_layout Standard
11710 \begin_inset ERT
11711 status inlined
11712
11713 \begin_layout Standard
11714
11715
11716 \backslash
11717 begin{multicols}{2}
11718 \end_layout
11719
11720 \end_inset
11721
11722
11723 \end_layout
11724
11725 \begin_layout Itemize
11726
11727 \family sans
11728 Standard
11729 \end_layout
11730
11731 \begin_layout Itemize
11732
11733 \family sans
11734 Itemize
11735 \end_layout
11736
11737 \begin_layout Itemize
11738
11739 \family sans
11740 Enumerate
11741 \end_layout
11742
11743 \begin_layout Itemize
11744
11745 \family sans
11746 Description
11747 \end_layout
11748
11749 \begin_layout Itemize
11750
11751 \family sans
11752 List
11753 \end_layout
11754
11755 \begin_layout Itemize
11756
11757 \family sans
11758 LyX-Code
11759 \end_layout
11760
11761 \begin_layout Itemize
11762
11763 \family sans
11764 Verse
11765 \end_layout
11766
11767 \begin_layout Itemize
11768
11769 \family sans
11770 Quote
11771 \end_layout
11772
11773 \begin_layout Itemize
11774
11775 \family sans
11776 Quotation
11777 \end_layout
11778
11779 \begin_layout Itemize
11780
11781 \family sans
11782 Title
11783 \end_layout
11784
11785 \begin_layout Itemize
11786
11787 \family sans
11788 Author
11789 \end_layout
11790
11791 \begin_layout Itemize
11792
11793 \family sans
11794 Date
11795 \end_layout
11796
11797 \begin_layout Itemize
11798
11799 \family sans
11800 Abstract
11801 \end_layout
11802
11803 \begin_layout Itemize
11804
11805 \family sans
11806 Bibliography
11807 \end_layout
11808
11809 \begin_layout Itemize
11810
11811 \family sans
11812 Address
11813 \end_layout
11814
11815 \begin_layout Itemize
11816
11817 \family sans
11818 RightAddress
11819 \end_layout
11820
11821 \begin_layout Itemize
11822
11823 \family sans
11824 Caption
11825 \end_layout
11826
11827 \begin_layout Itemize
11828
11829 \family sans
11830 Comment
11831 \end_layout
11832
11833 \begin_layout Standard
11834 \begin_inset ERT
11835 status inlined
11836
11837 \begin_layout Standard
11838
11839
11840 \backslash
11841 end{multicols}
11842 \end_layout
11843
11844 \end_inset
11845
11846
11847 \end_layout
11848
11849 \begin_layout Standard
11850 That is, all the major environments apart from the sectioning environments.
11851  Since foils are essentially self-contained sections, with a title and body,
11852  
11853 \family sans
11854 Foil
11855 \family default
11856 TeX provides specific commands for starting new foils and these are:
11857 \end_layout
11858
11859 \begin_layout Itemize
11860
11861 \family sans
11862 Foilhead
11863 \end_layout
11864
11865 \begin_layout Itemize
11866
11867 \family sans
11868 Rotatefoilhead
11869 \end_layout
11870
11871 \begin_layout Standard
11872 LyX also provides slightly modified versions of these two environments called:
11873 \end_layout
11874
11875 \begin_layout Itemize
11876
11877 \family sans
11878 ShortFoilhead
11879 \end_layout
11880
11881 \begin_layout Itemize
11882
11883 \family sans
11884 ShortRotatefoilhead
11885 \end_layout
11886
11887 \begin_layout Standard
11888 and the differences will be explained in the next section.
11889 \end_layout
11890
11891 \begin_layout Standard
11892 Since foils are often used in presenting ideas or new theorems and such
11893  
11894 \family sans
11895 Foil
11896 \family default
11897 TeX also provides a comprehensive box of goodies for presenting them:
11898 \end_layout
11899
11900 \begin_layout Standard
11901 \begin_inset ERT
11902 status inlined
11903
11904 \begin_layout Standard
11905
11906
11907 \backslash
11908 begin{multicols}{2}
11909 \end_layout
11910
11911 \end_inset
11912
11913
11914 \end_layout
11915
11916 \begin_layout Itemize
11917
11918 \family sans
11919 Theorem
11920 \end_layout
11921
11922 \begin_layout Itemize
11923
11924 \family sans
11925 Lemma
11926 \end_layout
11927
11928 \begin_layout Itemize
11929
11930 \family sans
11931 Corollary
11932 \end_layout
11933
11934 \begin_layout Itemize
11935
11936 \family sans
11937 Proposition
11938 \end_layout
11939
11940 \begin_layout Itemize
11941
11942 \family sans
11943 Definition
11944 \end_layout
11945
11946 \begin_layout Itemize
11947
11948 \family sans
11949 Proof
11950 \end_layout
11951
11952 \begin_layout Itemize
11953
11954 \family sans
11955 Theorem*
11956 \end_layout
11957
11958 \begin_layout Itemize
11959
11960 \family sans
11961 Lemma*
11962 \end_layout
11963
11964 \begin_layout Itemize
11965
11966 \family sans
11967 Corollary*
11968 \end_layout
11969
11970 \begin_layout Itemize
11971
11972 \family sans
11973 Proposition*
11974 \end_layout
11975
11976 \begin_layout Itemize
11977
11978 \family sans
11979 Definition*
11980 \end_layout
11981
11982 \begin_layout Standard
11983 \begin_inset ERT
11984 status inlined
11985
11986 \begin_layout Standard
11987
11988
11989 \backslash
11990 end{multicols}
11991 \end_layout
11992
11993 \end_inset
11994
11995
11996 \end_layout
11997
11998 \begin_layout Standard
11999 The starred versions are unnumbered while the unstarred versions are numbered.
12000  There are also two list environments added by LyX and these are:
12001 \end_layout
12002
12003 \begin_layout Itemize
12004
12005 \family sans
12006 TickList
12007 \end_layout
12008
12009 \begin_layout Itemize
12010
12011 \family sans
12012 CrossList
12013 \end_layout
12014
12015 \begin_layout Standard
12016
12017 \family sans
12018 Foil
12019 \family default
12020 TeX provides some powerful header and footer capabilities that are best
12021  set in the preamble although they may be set at any point in a document.
12022  If you want to change these settings in your document the best place to
12023  do so is at the very top of a foil, 
12024 \emph on
12025 i.e.
12026
12027 \emph default
12028  straight after the foilhead.
12029 \end_layout
12030
12031 \begin_layout Standard
12032 For this purpose, the following command styles are provided [
12033 \shape smallcaps
12034 Martin Vermeer
12035 \shape default
12036 ]:
12037 \end_layout
12038
12039 \begin_layout Standard
12040 \begin_inset ERT
12041 status inlined
12042
12043 \begin_layout Standard
12044
12045
12046 \backslash
12047 begin{multicols}{2}
12048 \end_layout
12049
12050 \end_inset
12051
12052
12053 \end_layout
12054
12055 \begin_layout Itemize
12056
12057 \family sans
12058 My\InsetSpace ~
12059 Logo
12060 \end_layout
12061
12062 \begin_layout Itemize
12063
12064 \family sans
12065 Restriction
12066 \end_layout
12067
12068 \begin_layout Itemize
12069
12070 \family sans
12071 Right\InsetSpace ~
12072 Footer
12073 \end_layout
12074
12075 \begin_layout Itemize
12076
12077 \family sans
12078 Right\InsetSpace ~
12079 Header
12080 \end_layout
12081
12082 \begin_layout Itemize
12083
12084 \family sans
12085 Left\InsetSpace ~
12086 Header
12087 \end_layout
12088
12089 \begin_deeper
12090 \begin_layout Standard
12091 \InsetSpace ~
12092
12093 \end_layout
12094
12095 \end_deeper
12096 \begin_layout Standard
12097 \begin_inset ERT
12098 status inlined
12099
12100 \begin_layout Standard
12101
12102
12103 \backslash
12104 end{multicols}
12105 \end_layout
12106
12107 \end_inset
12108
12109
12110 \end_layout
12111
12112 \begin_layout Standard
12113 There are also a few commands provided by 
12114 \family sans
12115 Foil
12116 \family default
12117 TeX that aren't directly supported by LyX but I'll tell you what they do
12118  and how to use them in section\InsetSpace ~
12119
12120 \begin_inset LatexCommand ref
12121 reference "sec:unsuppfoils"
12122
12123 \end_inset
12124
12125 .
12126 \end_layout
12127
12128 \begin_layout Subsection
12129 Building a Set of Foils
12130 \end_layout
12131
12132 \begin_layout Standard
12133 This section will give a simple introduction to using the different environments
12134  to build a set of foils.
12135  If you want to see an example set of foils take a look at the 
12136 \family typewriter
12137 Foils.lyx
12138 \family default
12139  file accessible from the 
12140 \family sans
12141 \bar under
12142 F
12143 \bar default
12144 ile\SpecialChar \menuseparator
12145
12146 \bar under
12147 O
12148 \bar default
12149 pen\SpecialChar \ldots{}
12150
12151 \family default
12152  dialog under the 
12153 \family sans
12154 Examples
12155 \family default
12156  button.
12157  
12158 \end_layout
12159
12160 \begin_layout Subsubsection
12161 Give It a Title Page
12162 \end_layout
12163
12164 \begin_layout Standard
12165 Unlike other classes that provide 
12166 \family sans
12167 Title
12168 \family default
12169
12170 \family sans
12171 Author
12172 \family default
12173
12174 \family sans
12175 Date
12176 \family default
12177  and 
12178 \family sans
12179 Abstract
12180 \family default
12181  environments, 
12182 \family sans
12183 foils
12184 \family default
12185  creates the title on a page of its own.
12186  If you leave out the 
12187 \family sans
12188 Date
12189 \family default
12190  environment LaTeX will substitute the current date (every time you regenerate
12191  the output).
12192 \end_layout
12193
12194 \begin_layout Subsubsection
12195 Start a New Foil
12196 \end_layout
12197
12198 \begin_layout Standard
12199 As I mentioned earlier, there are four ways of starting a new foil.
12200  For portrait foils you should use 
12201 \family sans
12202 Foilhead
12203 \family default
12204  or 
12205 \family sans
12206 ShortFoilhead.
12207
12208 \family default
12209  The difference between these two environments is the amount of space between
12210  the title of the foil (the foilhead) and the body of the foil.
12211 \end_layout
12212
12213 \begin_layout Standard
12214 Landscape foils are generated using the 
12215 \family sans
12216 Rotatefoilhead
12217 \family default
12218  and 
12219 \family sans
12220 ShortRotatefoilhead
12221 \family default
12222  environments.
12223  Again the only difference is the spacing between foilhead and body.
12224  Both of the short versions have 0.5 inches less separation between the foilhead
12225  and the body.
12226  
12227 \end_layout
12228
12229 \begin_layout Standard
12230 One problem with the support for landscape foils is the requirement that
12231  you have to use the 
12232 \family typewriter
12233 dvips
12234 \family default
12235  driver to generate the PostScript output otherwise the foils won't be rotated.
12236  It is possible to get landscape foils even if you haven't got the 
12237 \family typewriter
12238 dvips
12239 \family default
12240  driver provided you can feed your foils sideways through your printer ;-)
12241 \end_layout
12242
12243 \begin_layout Subsubsection
12244 Theorems, Lemmas, Proofs and more
12245 \end_layout
12246
12247 \begin_layout Standard
12248 Due to a small bug in LyX you can't have two of the same type of these environme
12249 nts directly following each other.
12250  They must be separated by something.
12251  If you try, you will just be extending the previous environment as if you
12252  had merged the two environments together.
12253  So, how do you get around this problem? The simplest option is to insert
12254  some text between the two environments or add a 
12255 \family sans
12256 LaTeX
12257 \family default
12258  environment between the two with just a 
12259 \begin_inset Quotes eld
12260 \end_inset
12261
12262
12263 \family typewriter
12264 %
12265 \family default
12266
12267 \begin_inset Quotes erd
12268 \end_inset
12269
12270  in it.
12271  This will force LyX to produce two separate environments and hence the
12272  correct LaTeX output.
12273  An example is provided in the example file included with the LyX distribution.
12274  Remember, this problem only occurs if you are trying to place two of the
12275  same type of theorem-like environments one directly after the other.
12276 \end_layout
12277
12278 \begin_layout Subsubsection
12279 Lists
12280 \end_layout
12281
12282 \begin_layout Standard
12283 You get all the commonly supported list styles found in other classes as
12284  well as two new ones.
12285  I'll only describe the new ones here.
12286  If you want to find out more about the other list environments check out
12287  the 
12288 \emph on
12289 User's Guide.
12290
12291 \emph default
12292  If you intend to use itemized lists you might also want to read about the
12293  
12294 \family sans
12295 Itemize\InsetSpace ~
12296 Bullet\InsetSpace ~
12297 Selection
12298 \family default
12299  dialog described above in section\InsetSpace ~
12300
12301 \begin_inset LatexCommand ref
12302 reference "sec:bullet"
12303
12304 \end_inset
12305
12306 .
12307 \end_layout
12308
12309 \begin_layout Standard
12310 The two new list styles, 
12311 \family sans
12312 TickList
12313 \family default
12314  and 
12315 \family sans
12316 CrossList
12317 \family default
12318 , are designed to make it easier for you to create lists of do's and don'ts
12319  or right and wrong by providing dedicated environments that use a tick
12320  or a cross as the label of the list.
12321  These lists are in fact dedicated variants of the 
12322 \family sans
12323 Itemize
12324 \family default
12325  environment.
12326  They do however require that you have the 
12327 \family typewriter
12328 psnfss
12329 \family default
12330  packages installed.
12331 \end_layout
12332
12333 \begin_layout Subsubsection
12334 Figures and Tables
12335 \end_layout
12336
12337 \begin_layout Standard
12338
12339 \family sans
12340 Foil
12341 \family default
12342 TeX redefines the floating tables and figures so that they appear exactly
12343  where they are in the text rather than pushing them to the top of the page
12344  or to some user specified location.
12345  In fact if you change the float placement settings they are simply ignored.
12346 \end_layout
12347
12348 \begin_layout Subsubsection
12349 Page Headers and Footers
12350 \begin_inset LatexCommand label
12351 name "sec:foilfoot"
12352
12353 \end_inset
12354
12355
12356 \end_layout
12357
12358 \begin_layout Standard
12359
12360 \family sans
12361 My\InsetSpace ~
12362 Logo
12363 \family default
12364  and 
12365 \family sans
12366 Restriction
12367 \family default
12368  are two commands used to control the left-footer text string.
12369  The first is meant to allow you to include a graphic logo on your foils
12370  and defaults to 
12371 \begin_inset Quotes eld
12372 \end_inset
12373
12374 -Typeset by 
12375 \family sans
12376 Foil
12377 \family default
12378 TeX-
12379 \begin_inset Quotes erd
12380 \end_inset
12381
12382 .
12383  While the second is meant to provide a classification for the audience,
12384  
12385 \emph on
12386 e.\InsetSpace \thinspace{}
12387 g.
12388 \emph default
12389 \InsetSpace ~
12390 Confidential.
12391  It is empty by default.
12392 \end_layout
12393
12394 \begin_layout Standard
12395 The remaining page corners can be filled by 
12396 \family sans
12397 Right\InsetSpace ~
12398 Footer
12399 \family default
12400  (which defaults to page numbers), 
12401 \family sans
12402 Right\InsetSpace ~
12403 Header
12404 \family default
12405  (top right) and 
12406 \family sans
12407 Left\InsetSpace ~
12408 Header
12409 \family default
12410  (top left).
12411 \end_layout
12412
12413 \begin_layout Subsection
12414 Unsupported 
12415 \family sans
12416 Foil
12417 \family default
12418 TeX Goodies
12419 \begin_inset LatexCommand label
12420 name "sec:unsuppfoils"
12421
12422 \end_inset
12423
12424
12425 \end_layout
12426
12427 \begin_layout Standard
12428 All the commands mentioned below need to be set in a 
12429 \family sans
12430 LaTeX
12431 \family default
12432  environment or as 
12433 \family sans
12434 TeX
12435 \family default
12436  within another environment.
12437 \end_layout
12438
12439 \begin_layout Subsubsection
12440 Lengths
12441 \end_layout
12442
12443 \begin_layout Standard
12444 All lengths are adjusted using the 
12445 \family typewriter
12446
12447 \backslash
12448 setlength{
12449 \family default
12450 \emph on
12451 lengthname
12452 \family typewriter
12453 \emph default
12454 }{
12455 \family default
12456 \emph on
12457 newlength
12458 \family typewriter
12459 \emph default
12460 }
12461 \family default
12462  command.
12463  Where 
12464 \emph on
12465 lengthname
12466 \emph default
12467  should be replaced by the name given to the length you want to change and
12468  
12469 \emph on
12470 newlength
12471 \emph default
12472  is the length value.
12473  All lengths should be specified in units of length such as inches (
12474 \family typewriter
12475 in
12476 \family default
12477 ), millimeters (
12478 \family typewriter
12479 mm
12480 \family default
12481 ) or points (
12482 \family typewriter
12483 pt
12484 \family default
12485 ) or relative to some document or font-based length such as 
12486 \family typewriter
12487
12488 \backslash
12489 textwidth
12490 \family default
12491 .
12492  
12493 \end_layout
12494
12495 \begin_layout Standard
12496 It's possible to change the spacing between a foilhead and the body of the
12497  foil by adjusting the length specified by 
12498 \family typewriter
12499
12500 \backslash
12501 foilheadskip
12502 \family default
12503 .
12504  For example, to make 
12505 \emph on
12506 all
12507 \emph default
12508  foilheads 0.5 inches closer to their bodies put the following in the preamble:
12509  
12510 \family typewriter
12511
12512 \backslash
12513 setlength{
12514 \backslash
12515 foilheadskip}{-0.5in}
12516 \end_layout
12517
12518 \begin_layout Standard
12519 The spacings around floats can be adjusted by setting these lengths:
12520 \end_layout
12521
12522 \begin_layout List
12523 \labelwidthstring MMMMMMMMMMM
12524
12525 \family typewriter
12526
12527 \backslash
12528 abovefloatskip
12529 \family default
12530  Separation between the text and the top of the float
12531 \end_layout
12532
12533 \begin_layout List
12534 \labelwidthstring MMMMMMMMMMM
12535
12536 \family typewriter
12537
12538 \backslash
12539 abovecaptionskip
12540 \family default
12541  Separation between the float and the caption
12542 \end_layout
12543
12544 \begin_layout List
12545 \labelwidthstring MMMMMMMMMMM
12546
12547 \family typewriter
12548
12549 \backslash
12550 belowcaptionskip
12551 \family default
12552  Separation between the caption and the following text
12553 \end_layout
12554
12555 \begin_layout List
12556 \labelwidthstring MMMMMMMMMMM
12557
12558 \family typewriter
12559
12560 \backslash
12561 captionwidth
12562 \family default
12563  You can make the captions narrower than the surrounding text by adjusting
12564  this length.
12565  Best done relative to 
12566 \family typewriter
12567
12568 \backslash
12569 textwidth
12570 \family default
12571 .
12572 \end_layout
12573
12574 \begin_layout Standard
12575 There are also several title page related lengths that you may find useful
12576  if you have a long title or several authors:
12577 \end_layout
12578
12579 \begin_layout List
12580 \labelwidthstring MMMMMMMMMMM
12581
12582 \family typewriter
12583
12584 \backslash
12585 abovetitleskip
12586 \family default
12587  Separation from headers to 
12588 \family sans
12589 Title
12590 \end_layout
12591
12592 \begin_layout List
12593 \labelwidthstring MMMMMMMMMMM
12594
12595 \family typewriter
12596
12597 \backslash
12598 titleauthorskip
12599 \family default
12600  between 
12601 \family sans
12602 Title
12603 \family default
12604  and 
12605 \family sans
12606 Author
12607 \family default
12608  environments
12609 \end_layout
12610
12611 \begin_layout List
12612 \labelwidthstring MMMMMMMMMMM
12613
12614 \family typewriter
12615
12616 \backslash
12617 authorauthorskip
12618 \family default
12619  between multiple 
12620 \family sans
12621 Author
12622 \family default
12623  lines
12624 \end_layout
12625
12626 \begin_layout List
12627 \labelwidthstring MMMMMMMMMMM
12628
12629 \family typewriter
12630
12631 \backslash
12632 authordateskip
12633 \family default
12634  between the 
12635 \family sans
12636 Author
12637 \family default
12638  and the 
12639 \family sans
12640 Date
12641 \end_layout
12642
12643 \begin_layout List
12644 \labelwidthstring MMMMMMMMMMM
12645
12646 \family typewriter
12647
12648 \backslash
12649 dateabstractskip
12650 \family default
12651  between the 
12652 \family sans
12653 Date
12654 \family default
12655  and the 
12656 \family sans
12657 Abstract
12658 \end_layout
12659
12660 \begin_layout Standard
12661 The last length related command affects all the list environments.
12662  If you place 
12663 \family typewriter
12664
12665 \backslash
12666 zerolistvertdimens
12667 \family default
12668  
12669 \emph on
12670 inside
12671 \emph default
12672  a list environment then all the vertical spacing between the list items
12673  is removed.
12674  Note that this is a command not a length so it doesn't require 
12675 \family typewriter
12676
12677 \backslash
12678 setlength
12679 \family default
12680  like the stuff mentioned above.
12681 \end_layout
12682
12683 \begin_layout Subsubsection
12684 Headers and Footers
12685 \end_layout
12686
12687 \begin_layout Standard
12688 The 
12689 \family typewriter
12690
12691 \backslash
12692 LogoOn
12693 \family default
12694  and 
12695 \family typewriter
12696
12697 \backslash
12698 LogoOff
12699 \family default
12700  commands control whether the logo in the 
12701 \family sans
12702 MyLogo
12703 \family default
12704  definition appear on a given page.
12705  If you put 
12706 \family typewriter
12707
12708 \backslash
12709 LogoOff
12710 \family default
12711  in the preamble then none of the foils will have the logo on them.
12712  If you don't want the logo on a particular page place the 
12713 \family typewriter
12714
12715 \backslash
12716 LogoOff
12717 \family default
12718  directly after the foilhead of that page and the 
12719 \family typewriter
12720
12721 \backslash
12722 LogoOn
12723 \family default
12724  directly after the next foilhead.
12725 \end_layout
12726
12727 \begin_layout Standard
12728 If you decide to use the 
12729 \family sans
12730 fancy
12731 \family default
12732  page style setting in the 
12733 \family sans
12734 Document\InsetSpace ~
12735 Layout
12736 \family default
12737  dialog you should probably add 
12738 \family typewriter
12739
12740 \backslash
12741 let
12742 \backslash
12743 headwidth
12744 \backslash
12745 textwidth
12746 \family default
12747  to your preamble so headers and footers on landscape pages are correctly
12748  placed when rotated.
12749  This is due to some clashes between the page layouts provided by the 
12750 \family sans
12751 fancyheadings
12752 \family default
12753  package and the 
12754 \family sans
12755 foils
12756 \family default
12757  class.
12758 \end_layout
12759
12760 \begin_layout Section
12761 Latex8 (IEEE Conference Papers)
12762 \end_layout
12763
12764 \begin_layout Standard
12765 by 
12766 \noun on
12767 Allan Rae
12768 \end_layout
12769
12770 \begin_layout Subsection
12771 Introduction
12772 \end_layout
12773
12774 \begin_layout Standard
12775 Since this class is specifically for writing submissions to IEEE sponsored
12776  conferences I strongly recommend that you get a copy of their Authors Kit.
12777  The 
12778 \family sans
12779 latex.sty
12780 \family default
12781  package and associated bibliography style file is included in the kit.
12782  The Authors Kit is usually sent out by email once your initial submission
12783  has been accepted.
12784  There is a lot of useful information in the Authors Kit explaining formatting
12785  restrictions and so on and I will assume you have read this since that
12786  means I don't have to repeat it all here.
12787 \end_layout
12788
12789 \begin_layout Subsection
12790 Getting Started
12791 \end_layout
12792
12793 \begin_layout Standard
12794 [AR\SpecialChar \@.
12795  more to come]
12796 \end_layout
12797
12798 \begin_layout Subsection
12799 Supported Environments
12800 \end_layout
12801
12802 \begin_layout Itemize
12803
12804 \family sans
12805 Standard
12806 \end_layout
12807
12808 \begin_layout Itemize
12809
12810 \family sans
12811 Title
12812 \end_layout
12813
12814 \begin_layout Itemize
12815
12816 \family sans
12817 Author
12818 \end_layout
12819
12820 \begin_layout Itemize
12821
12822 \family sans
12823 E-mail
12824 \end_layout
12825
12826 \begin_layout Itemize
12827
12828 \family sans
12829 Affiliation
12830 \end_layout
12831
12832 \begin_layout Itemize
12833
12834 \family sans
12835 Abstract
12836 \end_layout
12837
12838 \begin_layout Itemize
12839
12840 \family sans
12841 Section
12842 \end_layout
12843
12844 \begin_layout Itemize
12845
12846 \family sans
12847 SubSection
12848 \end_layout
12849
12850 \begin_layout Itemize
12851
12852 \family sans
12853 Caption
12854 \end_layout
12855
12856 \begin_layout Subsection
12857 Differences Between Screen and Paper
12858 \end_layout
12859
12860 \begin_layout Standard
12861 There are slight differences in appearance mainly with the presentation
12862  of section counters.
12863  On screen the trailing period of the section counter is missing but it
12864  will appear in the output so don't let this worry you.
12865 \end_layout
12866
12867 \begin_layout Section
12868 Hollywood (Hollywood spec scripts)
12869 \end_layout
12870
12871 \begin_layout Standard
12872 by 
12873 \shape smallcaps
12874 Garst Reese
12875 \end_layout
12876
12877 \begin_layout Subsection
12878 Introduction
12879 \end_layout
12880
12881 \begin_layout Standard
12882 Getting the format of a Hollywood script right is a 
12883 \begin_inset Quotes eld
12884 \end_inset
12885
12886 rite of passage.
12887 \begin_inset Quotes erd
12888 \end_inset
12889
12890  It is designed to make the readers focus on content and to be easy and
12891  familiar for the actors to read.
12892  Each page of a script should be one minute of film.
12893  Nothing goes in a script that you cannot see or hear on screen.
12894  The courier 12 pt font should be used throughout.
12895  No italics.
12896 \end_layout
12897
12898 \begin_layout Subsection
12899 Special problems
12900 \end_layout
12901
12902 \begin_layout Standard
12903 Speakers' lines should NEVER break in mid-sentence.
12904  If a speaker's lines continue over a page break, repeat the 
12905 \family sans
12906 Speaker
12907 \family default
12908  title followed by (Cont'd).
12909 \end_layout
12910
12911 \begin_layout Subsection
12912 Special features
12913 \end_layout
12914
12915 \begin_layout Standard
12916 Insert the 
12917 \family sans
12918 Speaker
12919 \family default
12920  names as labels then cross-reference the label to insert the name.
12921  The cross-reference dialog will show the current cast of characters.
12922  You can use this to insert the speaker name in narratives also.
12923 \end_layout
12924
12925 \begin_layout Subsection
12926 Paper size and Margins
12927 \end_layout
12928
12929 \begin_layout Standard
12930 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12931 \end_layout
12932
12933 \begin_layout Subsection
12934 Environments
12935 \end_layout
12936
12937 \begin_layout Standard
12938 The following environments are available.
12939  You can use hollywood.bind to get the bind keys shown at the right.
12940 \end_layout
12941
12942 \begin_layout Itemize
12943
12944 \family sans
12945 Standard
12946 \newline
12947
12948 \family default
12949 Used where nothing else works.
12950  Try to avoid it.
12951 \end_layout
12952
12953 \begin_layout Itemize
12954
12955 \family sans
12956 FADE_IN
12957 \family default
12958 :
12959 \hfill
12960
12961 \family sans
12962 M-z S-I
12963 \family default
12964
12965 \newline
12966 Usually followed by something like 
12967 \begin_inset Quotes eld
12968 \end_inset
12969
12970 on Sally waking up.
12971 \begin_inset Quotes erd
12972 \end_inset
12973
12974
12975 \end_layout
12976
12977 \begin_layout Itemize
12978
12979 \family sans
12980 INT:
12981 \hfill
12982 M-z i
12983 \newline
12984
12985 \family default
12986 Introduces a new INTERIOR camera set-up.
12987  Always followed by DAY or NIGHT, or something similar to define the lighting
12988  required.
12989  Everthing on this line in CAPS.
12990 \end_layout
12991
12992 \begin_layout Itemize
12993
12994 \family sans
12995 EXT:
12996 \hfill
12997 M-z e
12998 \newline
12999
13000 \family default
13001 Introduces a new EXTERIOR camera set-up.
13002  Everthing on this line in CAPS.
13003 \end_layout
13004
13005 \begin_layout Itemize
13006
13007 \family sans
13008 Speaker
13009 \hfill
13010 M-z s
13011 \newline
13012
13013 \family default
13014 The character speaking.
13015 \end_layout
13016
13017 \begin_layout Itemize
13018
13019 \family sans
13020 Parenthetical
13021 \hfill
13022 M-z p
13023 \newline
13024
13025 \family default
13026 Instructions to the speaker.
13027  The () are automatically inserted, but only the ( will show in LyX.
13028  Both will be printed.
13029 \end_layout
13030
13031 \begin_layout Itemize
13032
13033 \family sans
13034 Dialogue
13035 \hfill
13036 M-z d
13037 \newline
13038
13039 \family default
13040 What the 
13041 \family sans
13042 Speaker
13043 \family default
13044  says.
13045 \end_layout
13046
13047 \begin_layout Itemize
13048
13049 \family sans
13050 Transition
13051 \hfill
13052 M-z t
13053 \newline
13054
13055 \family default
13056 Camera movement instruction.
13057  e.\InsetSpace \thinspace{}
13058 g.\InsetSpace ~
13059 CUT TO:
13060 \end_layout
13061
13062 \begin_layout Itemize
13063
13064 \family sans
13065 FADE OUT:
13066 \hfill
13067 M-z S-I
13068 \end_layout
13069
13070 \begin_layout Itemize
13071
13072 \family sans
13073 Author
13074 \hfill
13075 M-z S-A
13076 \end_layout
13077
13078 \begin_layout Itemize
13079
13080 \family sans
13081 Title
13082 \hfill
13083 M-z S-T
13084 \end_layout
13085
13086 \begin_layout Itemize
13087
13088 \family sans
13089 Right_Address
13090 \hfill
13091 M-z r
13092 \end_layout
13093
13094 \begin_layout Subsection
13095 Script jargon
13096 \end_layout
13097
13098 \begin_layout Itemize
13099 (O.S) --- off screen
13100 \end_layout
13101
13102 \begin_layout Itemize
13103 (V.0) --- voice over
13104 \end_layout
13105
13106 \begin_layout Itemize
13107 b.g.
13108  --- background
13109 \end_layout
13110
13111 \begin_layout Itemize
13112 C.U.
13113  --- close-up
13114 \end_layout
13115
13116 \begin_layout Itemize
13117 PAN --- camera movement
13118 \end_layout
13119
13120 \begin_layout Itemize
13121 INSERT --- cut to close-up of
13122 \end_layout
13123
13124 \begin_layout Section
13125 Broadway
13126 \end_layout
13127
13128 \begin_layout Standard
13129 by 
13130 \shape smallcaps
13131 Garst Reese
13132 \end_layout
13133
13134 \begin_layout Subsection
13135 Introduction
13136 \end_layout
13137
13138 \begin_layout Standard
13139 Broadway is for writing plays.
13140  The format is more decorative than Hollywood, and much less standardized.
13141  This format should be suitable for workshops.
13142 \end_layout
13143
13144 \begin_layout Subsection
13145 Special problems
13146 \end_layout
13147
13148 \begin_layout Standard
13149 The same as in Hollywood.
13150 \end_layout
13151
13152 \begin_layout Subsection
13153 Special features
13154 \end_layout
13155
13156 \begin_layout Standard
13157 Insert the 
13158 \family sans
13159 Speaker
13160 \family default
13161  names as labels then cross-reference the label to insert the name.
13162  The cross-reference dialog will show the current cast of characters.
13163 \end_layout
13164
13165 \begin_layout Subsection
13166 Paper size and Margins
13167 \end_layout
13168
13169 \begin_layout Standard
13170 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
13171 \end_layout
13172
13173 \begin_layout Subsection
13174 Environments
13175 \end_layout
13176
13177 \begin_layout Standard
13178 The following environments are available.
13179  You can use broadway.bind to get the bind keys shown at the right.
13180 \end_layout
13181
13182 \begin_layout Itemize
13183
13184 \family sans
13185 Standard
13186 \newline
13187
13188 \family default
13189 You should not have to use this, but it is here for anything that does not
13190  fit otherwise.
13191 \end_layout
13192
13193 \begin_layout Itemize
13194
13195 \family sans
13196 Narrative
13197 \hfill
13198 M-z n
13199 \newline
13200
13201 \family default
13202 Used to describe stage setting and the action.
13203  First use of speaker names in all CAPs.
13204 \end_layout
13205
13206 \begin_layout Itemize
13207
13208 \family sans
13209 ACT
13210 \hfill
13211 M-z a
13212 \newline
13213
13214 \family default
13215 Automatically numbered.
13216  On screen it will be arabic, but will print as Roman.
13217 \end_layout
13218
13219 \begin_layout Itemize
13220
13221 \family sans
13222 ACT*
13223 \hfill
13224 M-z S at
13225 \newline
13226
13227 \family default
13228 Subtitle for 
13229 \family sans
13230 ACT.
13231
13232 \family default
13233  It is just centered text.
13234 \end_layout
13235
13236 \begin_layout Itemize
13237
13238 \family sans
13239 SCENE
13240 \hfill
13241 M-z S-S
13242 \newline
13243
13244 \family default
13245 Not automatically numbered.
13246  You supply the number.
13247  This is because I couldn't figure out how.
13248 \end_layout
13249
13250 \begin_layout Itemize
13251
13252 \family sans
13253 AT_RISE:
13254 \hfill
13255 M-z S-R
13256 \newline
13257
13258 \family default
13259 A special case of Narrative to describe the setting and action as the curtain
13260  rises.
13261 \end_layout
13262
13263 \begin_layout Itemize
13264
13265 \family sans
13266 Speaker
13267 \hfill
13268 M-z s
13269 \newline
13270
13271 \family default
13272 The speaker's (actor's) title, centered in all CAPS.
13273 \end_layout
13274
13275 \begin_layout Itemize
13276
13277 \family sans
13278 Parenthetical
13279 \hfill
13280 M-z p
13281 \newline
13282
13283 \family default
13284 Instructions to the speaker.
13285  The parentheses are automatically inserted.
13286  The ( will appear on screen, but both will be in the printed play.
13287  This environment is only used within 
13288 \family sans
13289 Dialogue
13290 \family default
13291 .
13292 \end_layout
13293
13294 \begin_layout Itemize
13295
13296 \family sans
13297 Dialogue
13298 \hfill
13299 M-z d
13300 \newline
13301
13302 \family default
13303 What the Speaker says.
13304 \end_layout
13305
13306 \begin_layout Itemize
13307
13308 \family sans
13309 CURTAIN
13310 \hfill
13311 M-z S-C
13312 \newline
13313
13314 \family default
13315 The curtain comes down.
13316 \end_layout
13317
13318 \begin_layout Itemize
13319
13320 \family sans
13321 Title
13322 \hfill
13323 M-z S-T
13324 \end_layout
13325
13326 \begin_layout Itemize
13327
13328 \family sans
13329 Author
13330 \hfill
13331 M-z S-A
13332 \end_layout
13333
13334 \begin_layout Itemize
13335
13336 \family sans
13337 Right_Address
13338 \hfill
13339 M-z r
13340 \end_layout
13341
13342 \begin_layout Standard
13343 Hello there.
13344 \end_layout
13345
13346 \begin_layout Section
13347 RevTeX4
13348 \end_layout
13349
13350 \begin_layout Standard
13351 by 
13352 \noun on
13353 Amir Karger
13354 \end_layout
13355
13356 \begin_layout Standard
13357 \begin_inset VSpace bigskip
13358 \end_inset
13359
13360
13361 \end_layout
13362
13363 \begin_layout Standard
13364 \noindent
13365 The 
13366 \family sans
13367 Revtex\InsetSpace ~
13368 4
13369 \family default
13370  textclass works with the American Physical Sociey's RevTeX 4.0 (the 
13371 \begin_inset Formula $\beta$
13372 \end_inset
13373
13374  release of May, 1999) class.
13375 \end_layout
13376
13377 \begin_layout Standard
13378 LyX has a 
13379 \family sans
13380 Revtex
13381 \family default
13382  textclass, which works with RevTeX 3.1.
13383  However, v3.1 is basically obsolete, as it works with LaTeX 2.09.
13384  That means that it doesn't interact very well with LyX, which requires
13385  LaTeX2e, although it has been kludged to work.
13386  Since RevTeX 4.0 has been designed to work much more cleanly with LaTeX2e,
13387  LyX with the 
13388 \family sans
13389 RevTeX\InsetSpace ~
13390 4
13391 \family default
13392  textclass should also be pretty easy to use.
13393 \end_layout
13394
13395 \begin_layout Standard
13396 These documents are supposed to be used in 
13397 \emph on
13398 addition
13399 \emph default
13400  to the RevTeX 4.0 documents, so we don't describe any of the special RevTeX
13401  macros, and assume you'll know what to put in the preamble if necessary.
13402 \end_layout
13403
13404 \begin_layout Subsection
13405 Installation
13406 \end_layout
13407
13408 \begin_layout Standard
13409 All you need to do is install RevTeX 4, as described in the package's README
13410  file.
13411  The package can be found at 
13412 \begin_inset LatexCommand url
13413 name "The RevTeX 4 Web Site"
13414 target "http://publish.aps.org/revtex4/"
13415
13416 \end_inset
13417
13418 .
13419  Install it somewhere that LaTeX can see it.
13420  Test it by trying to LaTeX a short RevTeX 4 document in some random directory
13421  (i.e., not the directory where you installed the class file.) Then, if you
13422  reconfigure LyX, it will find the class file and let you use the RevTeX4
13423  textclass.
13424 \end_layout
13425
13426 \begin_layout Standard
13427 Probably the easiest way to get started is either to import a RevTeX 4 document
13428  using 
13429 \family typewriter
13430 tex2lyx
13431 \family default
13432 , or to use the 
13433 \family sans
13434 Revtex\InsetSpace ~
13435 4
13436 \family default
13437  template, found in the templates directory.
13438 \end_layout
13439
13440 \begin_layout Subsection
13441 Preamble Matter
13442 \end_layout
13443
13444 \begin_layout Standard
13445 Optional arguments to 
13446 \family typewriter
13447
13448 \backslash
13449 documentclass
13450 \family default
13451 , like 
13452 \begin_inset Quotes eld
13453 \end_inset
13454
13455 preprint
13456 \begin_inset Quotes erd
13457 \end_inset
13458
13459  and 
13460 \begin_inset Quotes eld
13461 \end_inset
13462
13463 aps
13464 \begin_inset Quotes erd
13465 \end_inset
13466
13467 , go in the 
13468 \family sans
13469 E
13470 \bar under
13471 x
13472 \bar default
13473 tra\InsetSpace ~
13474 Options
13475 \family default
13476  field in the 
13477 \family sans
13478 Document\InsetSpace ~
13479 Layout
13480 \family default
13481  dialog, as usual.
13482  Remember that in RevTeX, at least one optional argument is required! 
13483 \end_layout
13484
13485 \begin_layout Standard
13486 Other preamble matter, like 
13487 \family typewriter
13488
13489 \backslash
13490 draft
13491 \family default
13492  etc.\InsetSpace ~
13493 goes in the 
13494 \family sans
13495 La
13496 \family default
13497 T
13498 \family sans
13499 eX\InsetSpace ~
13500 Preamble
13501 \family default
13502  dialog, also as usual.
13503 \end_layout
13504
13505 \begin_layout Subsection
13506 Layouts
13507 \end_layout
13508
13509 \begin_layout Standard
13510 The layouts basically correspond to the commands in RevTeX4.0.
13511  For example, the Email layout corresponds to 
13512 \family typewriter
13513
13514 \backslash
13515 email{}
13516 \family default
13517 .
13518  Note that (at least as of RevTeX 4.0 Beta), the 
13519 \family sans
13520 Address
13521 \family default
13522  and 
13523 \family sans
13524 Affiliation
13525 \family default
13526  layouts are exactly equivalent, so you shouldn't need to use both.
13527 \begin_inset Foot
13528 status collapsed
13529
13530 \begin_layout Standard
13531 In case you're curious, both were included so that 
13532 \family typewriter
13533 tex2lyx
13534 \family default
13535  would be able to translate both 
13536 \family typewriter
13537
13538 \backslash
13539 address
13540 \family default
13541  and 
13542 \family typewriter
13543
13544 \backslash
13545 affiliation
13546 \family default
13547 .
13548 \end_layout
13549
13550 \end_inset
13551
13552
13553 \end_layout
13554
13555 \begin_layout Subsection
13556 Important Notes
13557 \end_layout
13558
13559 \begin_layout Standard
13560 There are a couple of important unique aspects of RevTeX 4 which might cause
13561  bugs that will be even more confusing in LyX.
13562 \end_layout
13563
13564 \begin_layout Standard
13565 In RevTeX, the 
13566 \family typewriter
13567
13568 \backslash
13569 thanks
13570 \family default
13571  command goes 
13572 \emph on
13573 outside
13574 \emph default
13575  the 
13576 \family typewriter
13577
13578 \backslash
13579 author
13580 \family default
13581  command.
13582  The LyX equivalent is that there is a separate Thanks layout.
13583  Do 
13584 \emph on
13585 not
13586 \emph default
13587  write footnotes in the 
13588 \family sans
13589 Author
13590 \family default
13591  layout, or weird things may happen.
13592  See the RevTeX 4 documentation for more details.
13593 \end_layout
13594
13595 \begin_layout Standard
13596 Also, the 
13597 \family sans
13598 Author\InsetSpace ~
13599 Email
13600 \family default
13601
13602 \family sans
13603 Author\InsetSpace ~
13604 URL
13605 \family default
13606 , and 
13607 \family sans
13608 Thanks
13609 \family default
13610  layouts must be placed 
13611 \emph on
13612 in between
13613 \emph default
13614  the 
13615 \family sans
13616 Author
13617 \family default
13618  layout and the corresponding 
13619 \family sans
13620 Address
13621 \family default
13622  (or equivalent 
13623 \family sans
13624 Affiliation
13625 \family default
13626 ) layout.
13627  If you put the 
13628 \family sans
13629 Thanks
13630 \family default
13631  after the 
13632 \family sans
13633 Address
13634 \family default
13635 , the LaTeX won't compile.
13636 \end_layout
13637
13638 \begin_layout Subsection
13639 Drawbacks
13640 \end_layout
13641
13642 \begin_layout Standard
13643 The main problem with this layout is that you can't use the optional arguments
13644  to layouts like Email and Title.
13645  (The problem is not unique to this layout; you can't use optional arguments
13646  to the Section layouts either.) This means that after you export that file
13647  to LaTeX (which you'll need to do eventually to send it in to APS), you'll
13648  need to edit the LaTeX file with a text editor to add the optional arguments
13649  to set, e.\InsetSpace \thinspace{}
13650 g., the running title for the page headers.
13651  Lacking these layouts makes the 
13652 \family typewriter
13653
13654 \backslash
13655 altaffiliation
13656 \family default
13657  (and the equivalent 
13658 \family typewriter
13659
13660 \backslash
13661 altaddress
13662 \family default
13663 ) useless, so the corresponding layouts don't exist, and will have to be
13664  added by hand.
13665 \begin_inset Foot
13666 status collapsed
13667
13668 \begin_layout Standard
13669
13670 \emph on
13671 Note from JMarc:
13672 \emph default
13673  actually, LyX 1.3.0 supports some forms of optional arguments, but this layout
13674  has not been updated yet to take advantage of it.
13675 \end_layout
13676
13677 \end_inset
13678
13679  
13680 \end_layout
13681
13682 \begin_layout Section
13683 Article (mwart), book (mwbk) and report (mwrep)
13684 \begin_inset OptArg
13685 status collapsed
13686
13687 \begin_layout Standard
13688 The 
13689 \family typewriter
13690 mw
13691 \family default
13692  Classes
13693 \end_layout
13694
13695 \end_inset
13696
13697
13698 \end_layout
13699
13700 \begin_layout Standard
13701 by 
13702 \noun on
13703 Tomasz Luczak
13704 \end_layout
13705
13706 \begin_layout Standard
13707 The LyX document classes 
13708 \emph on
13709 article (mwart)
13710 \emph default
13711
13712 \emph on
13713 report (mwrep)
13714 \emph default
13715  and 
13716 \emph on
13717 book
13718 \emph default
13719  
13720 \emph on
13721 (mwbk)
13722 \emph default
13723  correspond to the LaTeX document classes 
13724 \family typewriter
13725 mwart.cls
13726 \family default
13727
13728 \family typewriter
13729 mwrep.cls
13730 \family default
13731  and 
13732 \family typewriter
13733 mwbk.cls
13734 \family default
13735 , resp.
13736  They are replacements for the standard document classes 
13737 \family typewriter
13738 article.cls
13739 \family default
13740
13741 \family typewriter
13742 report.cls
13743 \family default
13744  and 
13745 \family typewriter
13746 book.cls
13747 \family default
13748 , resp., and fit better to Polish typography conventions in a number of points.
13749  
13750 \end_layout
13751
13752 \begin_layout Standard
13753 Basic differences:
13754 \end_layout
13755
13756 \begin_layout Itemize
13757 Unnumbered titles (with star, eg.
13758  
13759 \family sans
13760 Section*
13761 \family default
13762 ) are added into table of contents,
13763 \end_layout
13764
13765 \begin_layout Itemize
13766 Additional page styles:
13767 \end_layout
13768
13769 \begin_deeper
13770 \begin_layout Description
13771 uheadings header with separated lines,
13772 \end_layout
13773
13774 \begin_layout Description
13775 myheadings custom header, contents headers via commands: 
13776 \family typewriter
13777
13778 \backslash
13779 markright
13780 \family default
13781  and 
13782 \family typewriter
13783
13784 \backslash
13785 markboth
13786 \family default
13787 ,
13788 \end_layout
13789
13790 \begin_layout Description
13791 myuheadings custom header with separated lines,
13792 \end_layout
13793
13794 \begin_layout Description
13795 outer page number is placed on outer side of page
13796 \end_layout
13797
13798 \end_deeper
13799 \begin_layout Itemize
13800 Options 
13801 \end_layout
13802
13803 \begin_deeper
13804 \begin_layout Description
13805 rmheadings serif titles --- default,
13806 \end_layout
13807
13808 \begin_layout Description
13809 sfheadings sansserif titles,
13810 \end_layout
13811
13812 \begin_layout Description
13813 authortitle on title page first placed is author next title --- default,
13814 \end_layout
13815
13816 \begin_layout Description
13817 titleauthor on title page first placed is title next author,
13818 \end_layout
13819
13820 \begin_layout Description
13821 withmarginpar reserve place on page for margins.
13822 \end_layout
13823
13824 \end_deeper
13825 \begin_layout Section
13826 Elsevier Journals
13827 \end_layout
13828
13829 \begin_layout Standard
13830 By 
13831 \noun on
13832 Rod Pinna
13833 \end_layout
13834
13835 \begin_layout Standard
13836 Elsevier Science Publishers B.V.
13837  provides a standard LaTeX document class (
13838 \family typewriter
13839 elsart.cls
13840 \family default
13841 ) for submitting articles to their various journals.
13842  The style file can be downloaded directly from their web site: 
13843 \begin_inset LatexCommand url
13844 target "http://authors.elsevier.com/"
13845
13846 \end_inset
13847
13848 .
13849  Instructions are supplied along with the class file, which details the
13850  requirements of the publishers.
13851  LyX includes package that allows for the use of this class, by a layout
13852  and a template file.
13853  Installation of the class file is the same as for any other LaTeX package;
13854  instructions are provided in the Elsevier documentation.
13855 \end_layout
13856
13857 \begin_layout Standard
13858 To make use of 
13859 \family typewriter
13860 elsart.cls
13861 \family default
13862 , a file 
13863 \family typewriter
13864 elsart.layout
13865 \family default
13866  is supplied.
13867  As the Elsevier class file is based mainly on the standard article class,
13868  most of the normal functionality is provided.
13869  The Elsevier class defines a number of mathematical environments, which
13870  are similar to the AMS environments.
13871  These commands are all described in the Elsevier documentation, and are
13872  available in LyX.
13873 \end_layout
13874
13875 \begin_layout Standard
13876 The easiest way to use the Elsevier style is to base documents on the included
13877  template file.
13878  It is best not to use options such as fancy headings or the geometry package,
13879  as elements such as these are defined by Elsevier in their style file.
13880  Ideally, no extra packages except those mentioned in the Elsevier documentation
13881  should be used.
13882  Essentially, Elsevier require as 
13883 \begin_inset Quotes eld
13884 \end_inset
13885
13886 clean
13887 \begin_inset Quotes erd
13888 \end_inset
13889
13890  a 
13891 \begin_inset ERT
13892 status collapsed
13893
13894 \begin_layout Standard
13895
13896
13897 \backslash
13898 LaTeX
13899 \end_layout
13900
13901 \end_inset
13902
13903  file as possible, as their intention is to take the supplied file and replace
13904  the class file with one for the particular journal to which the paper has
13905  been submitted.
13906  This also means that not too much time should be spent on the formating
13907  of the document.
13908  When it comes to be published, this will change anyway.
13909  The rest of the usage for this layout is substantially the same as for
13910  the normal article class.
13911  For details of what Elsevier do and don't allow, refer to their documentation.
13912 \end_layout
13913
13914 \begin_layout Section
13915 Memoir
13916 \end_layout
13917
13918 \begin_layout Standard
13919 By 
13920 \noun on
13921 Jürgen Spitzmüller
13922 \end_layout
13923
13924 \begin_layout Subsection
13925 Overview
13926 \end_layout
13927
13928 \begin_layout Standard
13929 Memoir is a very powerful and constantly evolving class.
13930  It has been designed with regard to fictional and non-fictional literature.
13931  Its aim is to let the user have maximum control over the typesetting of
13932  his document.
13933  Memoir is based on the standard book class, but it can also emulate the
13934  article class (see below).
13935 \end_layout
13936
13937 \begin_layout Standard
13938 Peter Wilson, the developer of Memoir, is known as the author of lots of
13939  useful packages in the LaTeX world.
13940  Most of them have been merged with Memoir.
13941  Therefore, it is much easier to layout the table of contents, appendices,
13942  chapter designs and such.
13943  LyX, though, does not support all of these goodies natively.
13944  Some of them might be added to forthcoming releases
13945 \begin_inset Foot
13946 status collapsed
13947
13948 \begin_layout Standard
13949 You are invited to send suggestions to 
13950 \begin_inset LatexCommand url
13951 target "lyx-devel@lists.lyx.org"
13952
13953 \end_inset
13954
13955 .
13956 \end_layout
13957
13958 \end_inset
13959
13960 , lots will probably never, due to the limitations of LyX's framework.
13961  Of course you can still use all features with the help of some native LaTeX
13962  commands (ERT
13963 \begin_inset Foot
13964 status collapsed
13965
13966 \begin_layout Standard
13967 Cf.
13968 \begin_inset ERT
13969 status collapsed
13970
13971 \begin_layout Standard
13972
13973
13974 \backslash
13975  
13976 \end_layout
13977
13978 \end_inset
13979
13980 section\InsetSpace ~
13981
13982 \begin_inset LatexCommand ref
13983 reference "sec:Inserting-LaTeX-Code"
13984
13985 \end_inset
13986
13987  for details.
13988 \end_layout
13989
13990 \end_inset
13991
13992 ).
13993  In this section, we can only list those features which are natively supported
13994  by LyX.
13995  For detailed descriptions (and for the rest of features) we are recommending
13996  to have a look at the detailed manual of the Memoir class
13997 \begin_inset Foot
13998 status collapsed
13999
14000 \begin_layout Standard
14001 Cf.
14002 \begin_inset ERT
14003 status collapsed
14004
14005 \begin_layout Standard
14006
14007
14008 \backslash
14009  
14010 \end_layout
14011
14012 \end_inset
14013
14014
14015 \begin_inset LatexCommand url
14016 target "CTAN:/macros/latex/memoir/memman.pdf"
14017
14018 \end_inset
14019
14020 .
14021 \end_layout
14022
14023 \end_inset
14024
14025 , which is not only a user guide for the class, but also both a comprehensive
14026  description on good typesetting and a superb example for good typesetting
14027  itself.
14028 \end_layout
14029
14030 \begin_layout Subsection
14031 Basic features and restrictions
14032 \end_layout
14033
14034 \begin_layout Standard
14035 Memoir supports basically all features of the standard book classes.
14036  There are, however, some differences, as follows:
14037 \end_layout
14038
14039 \begin_layout Description
14040 Font\InsetSpace ~
14041 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14,
14042  17
14043 \end_layout
14044
14045 \begin_layout Description
14046 Page\InsetSpace ~
14047 style: The fancy page style is not supported, due to a command clash
14048  between Memoir and the fancyhdr package (they are both defining a command
14049  with the same name, which confuses LaTeX).
14050  Instead, Memoir comes with a bunch of own page styles (see 
14051 \family sans
14052 Layout\SpecialChar \menuseparator
14053 Document\SpecialChar \menuseparator
14054 Page\InsetSpace ~
14055 Style
14056 \family default
14057 ).
14058  If you want to use these for the chapter pages, you have to use the command
14059  
14060 \family typewriter
14061
14062 \backslash
14063 chapterstyle
14064 \family default
14065  in the main text or in preamble (e.
14066 \begin_inset ERT
14067 status collapsed
14068
14069 \begin_layout Standard
14070
14071
14072 \backslash
14073 ,
14074 \end_layout
14075
14076 \end_inset
14077
14078 g.
14079 \begin_inset ERT
14080 status collapsed
14081
14082 \begin_layout Standard
14083
14084
14085 \backslash
14086  
14087 \end_layout
14088
14089 \end_inset
14090
14091
14092 \family typewriter
14093
14094 \backslash
14095 chapterstyle{companion}
14096 \family default
14097 ).
14098 \end_layout
14099
14100 \begin_layout Description
14101 Sectioning: Sectionings (chapter, section, subsection etc.) are coming with
14102  an optional argument in the standard classes.
14103  With this, you can specify an alternative version of the title for the
14104  table of contents and the headers (for instance, if the title is too long).
14105  In LyX, you can do this via 
14106 \family sans
14107 Insert\SpecialChar \menuseparator
14108 Short\InsetSpace ~
14109 Title
14110 \family default
14111  at the beginning of a chapter/section.
14112  Memoir features a second optional argument and thus separates the table
14113  of contents from the header.
14114  You can define three variants of a title with this: one for the main text,
14115  one for the table of contents, and one for the headers.
14116  Simply insert two optional arguments if you need this feature, the first
14117  one containing the short title for the Table of Contents, the second one
14118  containing an alternative short title for the headers.
14119 \end_layout
14120
14121 \begin_layout Description
14122 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
14123  of contents, the list of figures and the list of table start a new page
14124  automatically.
14125  Memoir does not follow this route.
14126  You have to insert a page break yourself, if you want to have one.
14127 \end_layout
14128
14129 \begin_layout Description
14130 Titlepage: For some unknown reason, Memoir uses pagination on the title
14131  page (in the standard classes, title pages are 
14132 \begin_inset Quotes eld
14133 \end_inset
14134
14135 empty
14136 \begin_inset Quotes erd
14137 \end_inset
14138
14139 , i.
14140 \begin_inset ERT
14141 status collapsed
14142
14143 \begin_layout Standard
14144
14145
14146 \backslash
14147 ,
14148 \end_layout
14149
14150 \end_inset
14151
14152 e.
14153 \begin_inset ERT
14154 status collapsed
14155
14156 \begin_layout Standard
14157
14158
14159 \backslash
14160  
14161 \end_layout
14162
14163 \end_inset
14164
14165 without pagina).
14166  If you want an empty title page, type 
14167 \family typewriter
14168
14169 \backslash
14170 aliaspagestyle{title}{empty}
14171 \family default
14172  in the preamble.
14173 \end_layout
14174
14175 \begin_layout Description
14176 Article: With the class option 
14177 \emph on
14178 article
14179 \emph default
14180  (to be inserted in 
14181 \family sans
14182 Layout\SpecialChar \menuseparator
14183 Document\SpecialChar \menuseparator
14184 Extra\InsetSpace ~
14185 Options
14186 \family default
14187 ), you can emulate article style.
14188  That is, counters (footnotes, figures, tables etc.) will not be reset on
14189  new chapters, chapters don't start a new page (but are---in contrary to
14190  
14191 \begin_inset Quotes eld
14192 \end_inset
14193
14194 real
14195 \begin_inset Quotes erd
14196 \end_inset
14197
14198  article classes---still allowed), parts, though, use their own page, as
14199  in book.
14200 \end_layout
14201
14202 \begin_layout Description
14203 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
14204  font commands, which have been used in the old LaTeX version 2.09 (e.
14205 \begin_inset ERT
14206 status collapsed
14207
14208 \begin_layout Standard
14209
14210
14211 \backslash
14212 ,
14213 \end_layout
14214
14215 \end_inset
14216
14217 g.
14218 \begin_inset ERT
14219 status collapsed
14220
14221 \begin_layout Standard
14222
14223
14224 \backslash
14225  
14226 \end_layout
14227
14228 \end_inset
14229
14230
14231 \family typewriter
14232
14233 \backslash
14234 rm
14235 \family default
14236
14237 \family typewriter
14238
14239 \backslash
14240 it
14241 \family default
14242 ).
14243  It produces an error and stops LaTeX whenever such a command appears.
14244  The class option 
14245 \emph on
14246 oldfontcommands
14247 \emph default
14248  reallows the commands and spits out warnings instead (which does at least
14249  not stop LaTeX).
14250  Since a lot of packages and particularly BibTeX style files are still using
14251  those commands, we have decided to use this option by default.
14252 \end_layout
14253
14254 \begin_layout Subsection
14255 Extra features
14256 \end_layout
14257
14258 \begin_layout Standard
14259 We will only describe the features supported by LyX (which is not much currently
14260 ).
14261  Please consult the Memoir manual
14262 \begin_inset Foot
14263 status collapsed
14264
14265 \begin_layout Standard
14266 Cf.
14267 \begin_inset ERT
14268 status collapsed
14269
14270 \begin_layout Standard
14271
14272
14273 \backslash
14274  
14275 \end_layout
14276
14277 \end_inset
14278
14279
14280 \begin_inset LatexCommand url
14281 target "CTAN:/macros/latex/memoir/memman.pdf"
14282
14283 \end_inset
14284
14285 .
14286 \end_layout
14287
14288 \end_inset
14289
14290  for details.
14291 \end_layout
14292
14293 \begin_layout Description
14294 Abstract: You may wonder why an abstract is an extra feature.
14295  Well, it is in book class.
14296  Usually books don't have abstracts.
14297  Memoir, however, has.
14298  You can use it wherever and how often you like.
14299 \end_layout
14300
14301 \begin_layout Description
14302 Chapterprecis: You may know this from belletristic: The contents of a chapter
14303  is shortly described below the title and also in the table of contents
14304  (e.
14305 \begin_inset ERT
14306 status collapsed
14307
14308 \begin_layout Standard
14309
14310
14311 \backslash
14312 ,
14313 \end_layout
14314
14315 \end_inset
14316
14317 g.
14318 \begin_inset ERT
14319 status collapsed
14320
14321 \begin_layout Standard
14322
14323
14324 \backslash
14325  
14326 \end_layout
14327
14328 \end_inset
14329
14330
14331 \emph on
14332 Our hero arrives in Troia; he loses some friends; he finds others
14333 \emph default
14334 ).
14335  Chapterprecis does exactly this.
14336  It is therefore only sensible below a chapter.
14337 \end_layout
14338
14339 \begin_layout Description
14340 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
14341  The epigraph environment provides an elegant way of typesetting such a
14342  motto.
14343  The motto itself (text) and its author (source) are divided by a short
14344  line.
14345  Unfortunately, we have to fool LyX a bit here again, since the environment
14346  needs two arguments (text and source).
14347  In this case, we have to use curly brackets (in TeX mode) between the two
14348  arguments: 
14349 \emph on
14350 <smart slogan>
14351 \emph default
14352  
14353 \family typewriter
14354 }{
14355 \family default
14356  
14357 \emph on
14358 <author of the slogan>.
14359 \end_layout
14360
14361 \begin_layout Description
14362 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
14363  complex figurative poems).
14364  LyX can only support a few of them.
14365  One is poemtitle, which is a centered title for poems, which will also
14366  be added to the table of contents (verse is the standard environment for
14367  poems.
14368  Memoir has some enhanced versions of verse, but you need to use ERT, because
14369  they have to be nested inside regular verse environments, which is not
14370  possible with LyX).
14371 \end_layout
14372
14373 \begin_layout Description
14374 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
14375 \end_layout
14376
14377 \begin_layout Chapter
14378 Importing and Exporting Alternate File Formats
14379 \begin_inset OptArg
14380 status collapsed
14381
14382 \begin_layout Standard
14383 Importing and Exporting
14384 \end_layout
14385
14386 \end_inset
14387
14388
14389 \end_layout
14390
14391 \begin_layout Section
14392 Considerations
14393 \end_layout
14394
14395 \begin_layout Standard
14396 Importing and exporting LyX documents from/to other formats has been touched
14397  on briefly in the 
14398 \emph on
14399 User Guide
14400 \emph default
14401 .
14402  Here we describe more of the gory details needed to understand just what
14403  is going on when you click on the 
14404 \family sans
14405 \bar under
14406 F
14407 \bar default
14408 ile\SpecialChar \menuseparator
14409
14410 \bar under
14411 I
14412 \bar default
14413 mport
14414 \family default
14415  and 
14416 \family sans
14417 \bar under
14418 F
14419 \bar default
14420 ile\SpecialChar \menuseparator
14421 E
14422 \bar under
14423 x
14424 \bar default
14425 port
14426 \family default
14427  menu items.
14428  
14429 \end_layout
14430
14431 \begin_layout Section
14432 Importing Other Formats
14433 \end_layout
14434
14435 \begin_layout Subsection
14436 LaTeX
14437 \end_layout
14438
14439 \begin_layout Standard
14440 Translating from LaTeX into LyX is performed by a converter program called
14441  
14442 \family typewriter
14443 tex2lyx
14444 \family default
14445 .
14446  Although it is a standalone program which can be called from the command
14447  line, LyX will call it automatically when a LaTeX document is imported.
14448  See section\InsetSpace ~
14449
14450 \begin_inset LatexCommand ref
14451 reference "sec:Translating-LaTeX-files"
14452
14453 \end_inset
14454
14455  for a complete description.
14456 \end_layout
14457
14458 \begin_layout Subsection
14459 ASCII Text
14460 \end_layout
14461
14462 \begin_layout Standard
14463 When importing plain ASCII text, there are two methods of reading the file.
14464  Importing 
14465 \begin_inset Quotes eld
14466 \end_inset
14467
14468 as lines
14469 \begin_inset Quotes erd
14470 \end_inset
14471
14472  preserves all the linebreaks in the ASCII; to LyX, then, each line looks
14473  like a paragraph.
14474  Importing 
14475 \begin_inset Quotes eld
14476 \end_inset
14477
14478 as paragraphs
14479 \begin_inset Quotes erd
14480 \end_inset
14481
14482  assumes that consecutive lines separated by only a single linebreak form
14483  a single paragraph.
14484  Successive linebreaks with no intervening text are thus assumed to be paragraph
14485  delimiters.
14486 \end_layout
14487
14488 \begin_layout Subsection
14489 Noweb
14490 \end_layout
14491
14492 \begin_layout Standard
14493
14494 \emph on
14495 [Editor's note: Needs to be written, obviously - any volunteers? --- mer]
14496 \end_layout
14497
14498 \begin_layout Section
14499 Exporting Other Formats
14500 \end_layout
14501
14502 \begin_layout Standard
14503 The output formats listed here in the following are also explained concerning
14504  possible graphics formats in the 
14505 \emph on
14506 Embedded Objects
14507 \emph default
14508  manual.
14509 \end_layout
14510
14511 \begin_layout Subsection
14512 LaTeX
14513 \end_layout
14514
14515 \begin_layout Standard
14516 LyX generates two types of LaTeX files: stripped down versions for the normal
14517  processing (
14518 \family sans
14519 View DVI
14520 \family default
14521 , etc.) which one normally never sees
14522 \begin_inset Foot
14523 status collapsed
14524
14525 \begin_layout Standard
14526 The resulting file is a perfectly valid LaTeX file, though the preamble
14527  might look a bit strange since it includes some definitions used by LyX
14528  which wouldn't show up in most human-written files.
14529 \end_layout
14530
14531 \end_inset
14532
14533 , and human readable forms which are suitable for exchanging with your colleague
14534 s.
14535  The only settable option for the translation is the line length of the
14536  output file.
14537  The default is 65 characters, but it can be set in 
14538 \family sans
14539 \bar under
14540 T
14541 \bar default
14542 ools
14543 \family default
14544 \SpecialChar \menuseparator
14545
14546 \family sans
14547 \bar under
14548 P
14549 \bar default
14550 references
14551 \family default
14552  using the 
14553 \family sans
14554 \bar under
14555 A
14556 \bar default
14557 scii\InsetSpace ~
14558 line\InsetSpace ~
14559 length
14560 \family default
14561  field.
14562  
14563 \end_layout
14564
14565 \begin_layout Subsection
14566 Device Independent Files
14567 \end_layout
14568
14569 \begin_layout Standard
14570 Device Independent files (DVI files) are produced by running LaTeX on your
14571  document.
14572  There are no user settable options.
14573 \end_layout
14574
14575 \begin_layout Subsection
14576 PostScript
14577 \end_layout
14578
14579 \begin_layout Standard
14580 The next step in the conversion chain is converting a DVI file into Postscript.
14581  You can either use 
14582 \family sans
14583 \bar under
14584 F
14585 \bar default
14586 ile
14587 \family default
14588 \SpecialChar \menuseparator
14589
14590 \family sans
14591 \bar under
14592 E
14593 \bar default
14594 xport
14595 \family default
14596 \SpecialChar \menuseparator
14597
14598 \family sans
14599 Pos
14600 \bar under
14601 t
14602 \bar default
14603 script
14604 \family default
14605  or, if you need more control on the result, 
14606 \family sans
14607 \bar under
14608 F
14609 \bar default
14610 ile
14611 \family default
14612 \SpecialChar \menuseparator
14613
14614 \family sans
14615 \bar under
14616 P
14617 \bar default
14618 rint
14619 \family default
14620 .
14621  If you use the later, note that it is possible to configure, in 
14622 \family sans
14623 \bar under
14624 T
14625 \bar default
14626 ools
14627 \family default
14628 \SpecialChar \menuseparator
14629
14630 \family sans
14631 \bar under
14632 P
14633 \bar default
14634 references
14635 \family default
14636 , the options passed to the dvips program to achieve different effects.
14637 \end_layout
14638
14639 \begin_layout Subsection
14640 ASCII text
14641 \end_layout
14642
14643 \begin_layout Standard
14644 Exporting as ASCII attempts to preserve the 
14645 \begin_inset Quotes eld
14646 \end_inset
14647
14648 shape
14649 \begin_inset Quotes erd
14650 \end_inset
14651
14652  of the document as well as possible, but things like centering and indentation
14653  are thrown out; paragraphs are separated by blank lines.
14654  Section numbering and cross-references are done correctly, so the resulting
14655  text files is remarkably readable.
14656  The only changeable option is the length of lines, as for LaTeX output.
14657 \end_layout
14658
14659 \begin_layout Subsection
14660 HTML
14661 \end_layout
14662
14663 \begin_layout Standard
14664 LyX documents can be converted to hypertext markup, usually by converting
14665  to LaTeX first, then converting that to HTML\SpecialChar \@.
14666  Four LaTeX
14667 \begin_inset Formula $\rightarrow$
14668 \end_inset
14669
14670 HTML converters are currently known to LyX: 
14671 \family typewriter
14672 tth
14673 \family default
14674
14675 \family typewriter
14676 latex2html
14677 \family default
14678
14679 \family typewriter
14680 hevea
14681 \family default
14682  and 
14683 \family typewriter
14684 htlatex
14685 \family default
14686 .
14687  Though they are autodetected, you can overide the selection in preferences.
14688  You can also include further command line options in this dialog.
14689  
14690 \end_layout
14691
14692 \begin_layout Subsection
14693 PDF
14694 \end_layout
14695
14696 \begin_layout Standard
14697 by 
14698 \noun on
14699 Dekel Tsur
14700 \noun default
14701  (mostly)
14702 \end_layout
14703
14704 \begin_layout Standard
14705 \begin_inset VSpace bigskip
14706 \end_inset
14707
14708
14709 \end_layout
14710
14711 \begin_layout Standard
14712 The fastest way to generate a basic PDF file (no tags, links, etc.) with
14713  any version of LyX is to save the document as a Postscript file, then run
14714  the 
14715 \family typewriter
14716 ps2pdf
14717 \family default
14718  command on it.
14719  Starting with version 1.1.6, the menu item 
14720 \family sans
14721 File->Export->PDF
14722 \family default
14723  will do all this for you.
14724  There are some issues with fonts that you need to pay attention to: see
14725  Section\InsetSpace ~
14726
14727 \begin_inset LatexCommand ref
14728 reference "sec:badfonts"
14729
14730 \end_inset
14731
14732 .
14733  Also, as of version 1.1.6, there is a better method that will generate much
14734  more sophisticated files.
14735 \end_layout
14736
14737 \begin_layout Subsubsection
14738 Use pdfLaTeX
14739 \end_layout
14740
14741 \begin_layout Standard
14742 With pdfLaTeX you cannot use pstricks.
14743  On the other hand, with pdfLaTeX it is possible to insert directly images
14744  in JPEG, PDF or PNG format, use TrueType fonts, and more.
14745 \end_layout
14746
14747 \begin_layout Subsubsection
14748 Why does the text look so bad when viewed with Acrobat Reader?
14749 \begin_inset LatexCommand label
14750 name "sec:badfonts"
14751
14752 \end_inset
14753
14754
14755 \begin_inset OptArg
14756 status collapsed
14757
14758 \begin_layout Standard
14759 Bad Fonts in Acrobat Reader
14760 \end_layout
14761
14762 \end_inset
14763
14764
14765 \end_layout
14766
14767 \begin_layout Standard
14768 The problem is that bitmap fonts are displayed poorly by Acrobat Reader.
14769  When creating a PDF from the LyX file, you need to use outline font instead
14770  of the default bitmap fonts (in fact, you should also use outline fonts
14771  for Postscript files).
14772  Recent LaTeX distributions come with Postscript Type 1 version of the standard
14773  (Computer Modern) fonts.
14774  pdfLaTeX uses these font by default.
14775  Dvips doesn't use these fonts by default, so to make it use them, add the
14776  following to lines to your 
14777 \family typewriter
14778 ~/.dvipsrc
14779 \family default
14780  file
14781 \end_layout
14782
14783 \begin_layout LyX-Code
14784 p+ psfonts.cmz
14785 \end_layout
14786
14787 \begin_layout LyX-Code
14788 p+ psfonts.amz
14789 \end_layout
14790
14791 \begin_layout Standard
14792 If the default LaTeX font encoding (OT1) is used, nothing else need to be
14793  done.
14794  However, if the T1 font encoding is used, then LaTeX uses the newer EC
14795  fonts, for which there are no Type1 version.
14796  The solution is to use the ae package which emulates T1 coded fonts using
14797  the standard CM fonts.
14798  This is done by adding 
14799 \family typewriter
14800
14801 \backslash
14802 usepackage{ae,aecompl}
14803 \family default
14804  to the preamble of the LyX file.
14805  However, some glyphs are missing from the CM fonts (e.\InsetSpace \thinspace{}
14806 g.\InsetSpace ~
14807 eth, thorn), and
14808  they are taken from the EC fonts.
14809  Therefore you get these glyphs as bitmaps.
14810 \end_layout
14811
14812 \begin_layout Standard
14813 Note: LyX uses by default the T1 font encoding.
14814  If you wish to use the default font encoding (this is not recommended,
14815  unless you only write English documents), clear the field 
14816 \family sans
14817 \bar under
14818 T
14819 \bar default
14820 eX\InsetSpace ~
14821 encoding
14822 \family default
14823  in preferences (tabs 
14824 \family sans
14825 Outputs
14826 \family default
14827
14828 \family sans
14829 Misc
14830 \family default
14831 ).
14832  
14833 \end_layout
14834
14835 \begin_layout Standard
14836 An alternate option is to use the standard Postscript fonts instead of the
14837  Computer Modern fonts.
14838  To do that, you need to select 
14839 \family sans
14840 pslatex
14841 \family default
14842  as the global font in the document layout dialog.
14843  When using the Postscript fonts, the result PDF file is smaller as the
14844  fonts are not saved into the file.
14845  Furthermore, the Postscript fonts include all T1 glyphs.
14846  On the other hand, the Postscript fonts have no bold symbol font, so poor
14847  man's bold must be used (see Section\InsetSpace ~
14848
14849 \begin_inset LatexCommand ref
14850 reference "sec:pdfbold"
14851
14852 \end_inset
14853
14854 ).
14855  The Postscript fonts also look different from the Computer Modern fonts.
14856 \end_layout
14857
14858 \begin_layout Standard
14859 To sum up, both the Computer Modern and the Postscript fonts gives good
14860  results (with few exceptions).
14861  The decision of which one to use is a matter of taste.
14862 \end_layout
14863
14864 \begin_layout Subsubsection
14865 Why doesn't the 
14866 \backslash
14867 boldsymbol{} command work when I use pslatex?
14868 \begin_inset LatexCommand label
14869 name "sec:pdfbold"
14870
14871 \end_inset
14872
14873
14874 \begin_inset OptArg
14875 status collapsed
14876
14877 \begin_layout Standard
14878
14879 \family typewriter
14880
14881 \backslash
14882 boldsymbol{}
14883 \family default
14884  and 
14885 \family typewriter
14886 pslatex
14887 \end_layout
14888
14889 \end_inset
14890
14891
14892 \end_layout
14893
14894 \begin_layout Standard
14895 The Postscript fonts do not have a bold symbol font.
14896  The solution is to use the 
14897 \family typewriter
14898
14899 \backslash
14900 pmb{}
14901 \family default
14902  (poor man's bold) command.
14903 \end_layout
14904
14905 \begin_layout Standard
14906 It is possible to redefine the 
14907 \family typewriter
14908
14909 \backslash
14910 boldsymbol
14911 \family default
14912  command to use 
14913 \family typewriter
14914
14915 \backslash
14916 pmb
14917 \family default
14918  by putting
14919 \end_layout
14920
14921 \begin_layout LyX-Code
14922
14923 \backslash
14924 renewcommand{
14925 \backslash
14926 boldsymbol}[1]{
14927 \backslash
14928 pmb{#1}}
14929 \end_layout
14930
14931 \begin_layout Standard
14932 in the preamble.
14933 \end_layout
14934
14935 \begin_layout Subsubsection
14936 Is it possible to do write LaTeX-code which is processed only when running
14937  pdfLaTeX?
14938 \begin_inset OptArg
14939 status collapsed
14940
14941 \begin_layout Standard
14942 Conditionals with pdfLaTeX
14943 \end_layout
14944
14945 \end_inset
14946
14947
14948 \end_layout
14949
14950 \begin_layout Standard
14951 Yes you can do this with the 
14952 \family typewriter
14953 ifpdf.sty
14954 \family default
14955  package.
14956  Here is an example:
14957 \end_layout
14958
14959 \begin_layout LyX-Code
14960
14961 \end_layout
14962
14963 \begin_layout LyX-Code
14964
14965 \backslash
14966 usepackage{ifpdf}
14967 \end_layout
14968
14969 \begin_layout LyX-Code
14970
14971 \backslash
14972 ifpdf
14973 \end_layout
14974
14975 \begin_layout LyX-Code
14976    
14977 \backslash
14978 pdfinfo { /Author (your name and e-mail address)
14979 \end_layout
14980
14981 \begin_layout LyX-Code
14982       /Title (official title -- i.e., title element)
14983 \end_layout
14984
14985 \begin_layout LyX-Code
14986       /Subject (one line description of the document)
14987 \end_layout
14988
14989 \begin_layout LyX-Code
14990    }
14991 \end_layout
14992
14993 \begin_layout LyX-Code
14994    
14995 \backslash
14996 pdfcatalog { /PageMode (/UseNone)
14997 \end_layout
14998
14999 \begin_layout LyX-Code
15000    % /OpenAction (fitbh)
15001 \end_layout
15002
15003 \begin_layout LyX-Code
15004    }
15005 \end_layout
15006
15007 \begin_layout LyX-Code
15008    
15009 \backslash
15010 usepackage[pdftex]{hyperref}
15011 \end_layout
15012
15013 \begin_layout LyX-Code
15014
15015 \backslash
15016 else
15017 \end_layout
15018
15019 \begin_layout LyX-Code
15020    
15021 \backslash
15022 usepackage[ps2pdf]{hyperref}
15023 \end_layout
15024
15025 \begin_layout LyX-Code
15026
15027 \backslash
15028 fi
15029 \end_layout
15030
15031 \begin_layout Subsubsection
15032 How can I make URLs clickable?
15033 \end_layout
15034
15035 \begin_layout Standard
15036 See the references here:
15037 \end_layout
15038
15039 \begin_layout Standard
15040 \begin_inset LatexCommand url
15041 target "http://wiki.lyx.org/pmwiki.php/FAQ/PDF"
15042
15043 \end_inset
15044
15045
15046 \end_layout
15047
15048 \begin_layout Subsection
15049 Custom
15050 \end_layout
15051
15052 \begin_layout Standard
15053 Custom exports are possible if you have some particularly weird format you
15054  wish to convert to, assuming you have the relevant converter, of course.
15055  The format of the 
15056 \emph on
15057 input
15058 \emph default
15059  file can be chosen in the 
15060 \family sans
15061 \bar under
15062 F
15063 \bar default
15064 ile\SpecialChar \menuseparator
15065
15066 \bar under
15067 E
15068 \bar default
15069 xport\SpecialChar \menuseparator
15070
15071 \bar under
15072 C
15073 \bar default
15074 ustom
15075 \family default
15076  dialog; LyX will automatically convert the file to this point, then feed
15077  it to your custom converter.
15078  The possible values are all formats that LyX can produce from its own documents.
15079  
15080 \end_layout
15081
15082 \begin_layout Standard
15083 The converter command is also specified in the dialog.
15084  It should be a completely qualified command line which uses the variable
15085  
15086 \family typewriter
15087 $$FName
15088 \family default
15089  to specify the name of the file.
15090  If this variable is not given, then the file will be sent to the standard
15091  input of your command.
15092  You may have to apply a bit of ingenuity to escape this sequence correctly
15093  so that it is compatible with your shell.
15094  
15095 \end_layout
15096
15097 \begin_layout Standard
15098 While it is not possible to save this command using the 
15099 \family sans
15100 Preferences
15101 \family default
15102  dialog, you can manually edit your 
15103 \family typewriter
15104 .lyx/preferences
15105 \family default
15106  to add a line like
15107 \end_layout
15108
15109 \begin_layout LyX-Code
15110
15111 \backslash
15112 custom_export_command "mycommand $$FName"
15113 \end_layout
15114
15115 \begin_layout Chapter
15116 LyX Features needing Extra Software
15117 \end_layout
15118
15119 \begin_layout Section
15120 Checking TeX
15121 \end_layout
15122
15123 \begin_layout Standard
15124 by 
15125 \noun on
15126 Asger Alstrup
15127 \end_layout
15128
15129 \begin_layout Subsection
15130 Introduction
15131 \end_layout
15132
15133 \begin_layout Standard
15134 Under the 
15135 \family sans
15136 \bar under
15137 T
15138 \bar default
15139 ools
15140 \family default
15141  menu, you'll find a 
15142 \family sans
15143 \bar under
15144 C
15145 \bar default
15146 heck\InsetSpace ~
15147 TeX
15148 \family default
15149  command.
15150  This feature requires you to have the 
15151 \family typewriter
15152 chktex
15153 \family default
15154  program installed, and is grayed out if you don't have it.
15155  You can get it from your nearest CTAN mirror, or over the Web from 
15156 \begin_inset LatexCommand url
15157 target "http://www.ifi.uio.no/~jensthi/chktex/"
15158
15159 \end_inset
15160
15161 .
15162 \end_layout
15163
15164 \begin_layout Standard
15165 The 
15166 \family sans
15167 ChkTeX
15168 \family default
15169  package is a program that was written by 
15170 \noun on
15171 Jens T.
15172  Berger Thielemann
15173 \noun default
15174  in frustration because some constructs in LaTeX are sometimes non-intuitive,
15175  and easy to forget.
15176  The program runs over your LaTeX file and checks the integrity of the file,
15177  and flags some common errors.
15178  In other technical words, it is 
15179 \family typewriter
15180 Lint
15181 \family default
15182  for LaTeX.
15183 \end_layout
15184
15185 \begin_layout Standard
15186 Well, what is a syntax checker doing in LyX which is supposed to produce
15187  correct LaTeX anyways? The answer is simple: Just as 
15188 \family typewriter
15189 Lint
15190 \family default
15191  not only checks the 
15192 \emph on
15193 syntax
15194 \emph default
15195  of C programs, but also does 
15196 \emph on
15197 semantic
15198 \emph default
15199  checks for type-errors, 
15200 \family sans
15201 ChkTeX
15202 \family default
15203  catches some common 
15204 \emph on
15205 typographic
15206 \emph default
15207  errors, in addition to the syntactical ones.
15208  Specifically, 
15209 \family sans
15210 ChkTeX
15211 \family default
15212  is capable of detecting several common errors, such as
15213 \end_layout
15214
15215 \begin_layout Itemize
15216 Ellipsis detection:
15217 \newline
15218 Use \SpecialChar \ldots{}
15219  instead of ...
15220 \end_layout
15221
15222 \begin_layout Itemize
15223 No space in front of/after parenthesis:
15224 \newline
15225 ( wrong spacing )
15226 \end_layout
15227
15228 \begin_layout Itemize
15229 Enforcement of normal space after common abbreviations:
15230 \newline
15231 e.
15232  g.
15233  is too wide spacing.
15234 \end_layout
15235
15236 \begin_layout Itemize
15237 Enforcement of end-of-sentence space when the last sentence ends with a
15238  capital letter:
15239 \newline
15240 This is a TEST.
15241  And this is wrong spacing.
15242 \end_layout
15243
15244 \begin_layout Itemize
15245 Space in front of labels and similar commands:
15246 \newline
15247 The label should stick right
15248  up to the text to avoid falling to a wrong page.
15249  
15250 \begin_inset LatexCommand label
15251 name "sec:chktex"
15252
15253 \end_inset
15254
15255  
15256 \begin_inset Foot
15257 status collapsed
15258
15259 \begin_layout Standard
15260 This footnote is in danger of falling off to a wrong page
15261 \end_layout
15262
15263 \end_inset
15264
15265  The label is separated too much.
15266 \end_layout
15267
15268 \begin_layout Itemize
15269 Space in front of references, instead of hard spaces:
15270 \newline
15271 In you are in bad luck,
15272  the text will break right between the referenced text and reference number,
15273  and that's a pity.
15274  See section 
15275 \begin_inset LatexCommand ref
15276 reference "sec:chktex"
15277
15278 \end_inset
15279
15280 .
15281 \end_layout
15282
15283 \begin_layout Itemize
15284 Use of 
15285 \begin_inset Quotes eld
15286 \end_inset
15287
15288 x
15289 \begin_inset Quotes erd
15290 \end_inset
15291
15292  instead of 
15293 \begin_inset Formula $\times$
15294 \end_inset
15295
15296  between numbers:
15297 \newline
15298 2x2 looks cheap compared to 
15299 \begin_inset Formula $2\times2$
15300 \end_inset
15301
15302 .
15303 \end_layout
15304
15305 \begin_layout Standard
15306 and more \SpecialChar \ldots{}
15307  It is an invaluable tool when you are 
15308 \begin_inset Quotes eld
15309 \end_inset
15310
15311 finishing up
15312 \begin_inset Quotes erd
15313 \end_inset
15314
15315  your document before printing, and you should run it right after the obligatory
15316  spelling check, and before you go fine tuning the typesetting.
15317 \end_layout
15318
15319 \begin_layout Subsection
15320 How to use it
15321 \end_layout
15322
15323 \begin_layout Standard
15324 If you have the program installed, usage is as simple as choosing 
15325 \family sans
15326 \bar under
15327 T
15328 \bar default
15329 ools\SpecialChar \menuseparator
15330
15331 \bar under
15332 C
15333 \bar default
15334 heck\InsetSpace ~
15335 TeX
15336 \family default
15337 .
15338  This will make LyX generate a LaTeX file of your document, start 
15339 \family sans
15340 ChkTeX
15341 \family default
15342  to check it, and then make LyX insert 
15343 \begin_inset Quotes eld
15344 \end_inset
15345
15346 error boxes
15347 \begin_inset Quotes erd
15348 \end_inset
15349
15350  with the warnings from 
15351 \family sans
15352 ChkTeX
15353 \family default
15354 , if there were any.
15355  The warnings will be placed close to the point of the mistake, and you
15356  can quickly find them by using the 
15357 \family sans
15358 \bar under
15359 N
15360 \bar default
15361 avigate\SpecialChar \menuseparator
15362
15363 \bar under
15364 E
15365 \bar default
15366 rror
15367 \family default
15368  menu item, or the shortcut key 
15369 \family sans
15370 C-g
15371 \family default
15372  from the default 
15373 \family typewriter
15374 cua
15375 \family default
15376  bind file.
15377  Open the error boxes by clicking on them with the mouse, or use the shortcut
15378  key 
15379 \family sans
15380 C-i
15381 \family default
15382  from 
15383 \family typewriter
15384 cua
15385 \family default
15386  bindings, or the corresponding 
15387 \family sans
15388 C-o
15389 \family default
15390  for the alternate 
15391 \family typewriter
15392 emacs
15393 \family default
15394  bind file.
15395  Read the warning and correct the mistake, if it is a mistake.
15396  If you have trouble understanding what the warning is about, you can safely
15397  ignore it.
15398  Remember that there is a hidden layer between the document on screen and
15399  the technical details in invoking 
15400 \family sans
15401 ChkTeX
15402 \family default
15403 , and this gap can make some warnings seem arcane or just right down plain
15404  silly.
15405 \end_layout
15406
15407 \begin_layout Standard
15408 This document is an excellent testing bed for the feature, and it should
15409  provide quite a few warnings for you to fiddle with.
15410  Since computers are only so smart, expect most of the warnings to be false
15411  alarms, though.
15412 \end_layout
15413
15414 \begin_layout Subsection
15415 How to fine tune it
15416 \end_layout
15417
15418 \begin_layout Standard
15419 Sometimes, you'll find that 
15420 \family sans
15421 ChkTeX
15422 \family default
15423  makes more noise than suits your mood.
15424  Then you can choose not to use it, wait until your mood changes, or try
15425  to customize 
15426 \family sans
15427 ChkTeX
15428 \family default
15429  to get better along with you.
15430  Another choice in the most desperate situations is to use 
15431 \family sans
15432 \bar under
15433 V
15434 \bar default
15435 iew\SpecialChar \menuseparator
15436
15437 \bar under
15438 R
15439 \bar default
15440 emove\InsetSpace ~
15441 All\InsetSpace ~
15442 Error\InsetSpace ~
15443 Boxes
15444 \family default
15445 , which will get rid of all warnings instantly.
15446 \end_layout
15447
15448 \begin_layout Standard
15449 Although 
15450 \family sans
15451 ChkTeX
15452 \family default
15453  
15454 \emph on
15455 is
15456 \emph default
15457  very configurable and extensible, you shouldn't expect to solve all problems
15458  with 
15459 \family sans
15460 ChkTeX
15461 \family default
15462  in LyX this way.
15463  Since LyX has to generate a somewhat special LaTeX file to be able to match
15464  the line numbers from the 
15465 \family sans
15466 ChkTeX
15467 \family default
15468  output
15469 \begin_inset Foot
15470 status collapsed
15471
15472 \begin_layout Standard
15473 You can inspect the specific output from 
15474 \family sans
15475 chktex
15476 \family default
15477  by using 
15478 \family sans
15479 Edit\SpecialChar \menuseparator
15480 View\InsetSpace ~
15481 LaTeX\InsetSpace ~
15482 Log
15483 \family default
15484  right after a 
15485 \family sans
15486 chktex
15487 \family default
15488  run.
15489 \end_layout
15490
15491 \end_inset
15492
15493  to the internal document structure, some of the warnings will not seen
15494  to appear correctly.
15495  There are two things you can do about this:
15496 \end_layout
15497
15498 \begin_layout Itemize
15499 Fine tune the 
15500 \family sans
15501 ChkTeX
15502 \family default
15503  invocation command line in 
15504 \family sans
15505 Preferences
15506 \family default
15507  (tabs 
15508 \family sans
15509 Outputs
15510 \family default
15511
15512 \family sans
15513 Misc
15514 \family default
15515 ), or the global 
15516 \family sans
15517 ChkTeX
15518 \family default
15519  installation configuration file (usually with the file 
15520 \family typewriter
15521 /usr/local/share/chktexrc
15522 \family default
15523 ).
15524  See below to learn what warnings can be enabled and disabled on the command
15525  line.
15526  
15527 \end_layout
15528
15529 \begin_layout Itemize
15530 Export your document as a raw LaTeX file using 
15531 \family sans
15532 \bar under
15533 F
15534 \bar default
15535 ile\SpecialChar \menuseparator
15536
15537 \bar under
15538 E
15539 \bar default
15540 xport\SpecialChar \menuseparator
15541
15542 \bar under
15543 L
15544 \bar default
15545 aTeX
15546 \family default
15547  and run 
15548 \family typewriter
15549 chktex
15550 \family default
15551  manually on that.
15552  Invoked in this way, it can be a hassle to find the corresponding place
15553  in the document inside LyX, but with a little patience, you should be able
15554  to do it.
15555 \end_layout
15556
15557 \begin_layout Standard
15558 Here follows the warning messages that can be enabled and disabled in 
15559 \family sans
15560 Preferences
15561 \family default
15562 .
15563  Use 
15564 \family typewriter
15565 -n#
15566 \family default
15567  to disable a warning, and 
15568 \family typewriter
15569 -w#
15570 \family default
15571  to enable a warning.
15572  The emphasized entries are disabled by default, because the default is
15573  "
15574 \family typewriter
15575 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
15576 \family default
15577 ".
15578 \end_layout
15579
15580 \begin_layout Standard
15581 Notice that you should only use the options that enable and disable warnings,
15582  because LyX relies on some of the other command line parameters to be set
15583  in a specific way to have a chance to communicate with 
15584 \family typewriter
15585 chktex
15586 \family default
15587 .
15588 \end_layout
15589
15590 \begin_layout Enumerate
15591
15592 \size small
15593 \emph on
15594 Command terminated with space.
15595 \end_layout
15596
15597 \begin_layout Enumerate
15598
15599 \size small
15600 Non-breaking space (
15601 \begin_inset Quotes eld
15602 \end_inset
15603
15604
15605 \family typewriter
15606 ~
15607 \family default
15608
15609 \begin_inset Quotes erd
15610 \end_inset
15611
15612 ) should have been used.
15613 \end_layout
15614
15615 \begin_layout Enumerate
15616
15617 \size small
15618 \emph on
15619 You should enclose the previous parenthesis with 
15620 \begin_inset Quotes eld
15621 \end_inset
15622
15623
15624 \family typewriter
15625 {}
15626 \family default
15627
15628 \begin_inset Quotes erd
15629 \end_inset
15630
15631 .
15632 \end_layout
15633
15634 \begin_layout Enumerate
15635
15636 \size small
15637 Italic correction (
15638 \begin_inset Quotes eld
15639 \end_inset
15640
15641
15642 \family typewriter
15643
15644 \backslash
15645 /
15646 \family default
15647
15648 \begin_inset Quotes erd
15649 \end_inset
15650
15651 ) found in non-italic buffer.
15652 \end_layout
15653
15654 \begin_layout Enumerate
15655
15656 \size small
15657 Italic correction (
15658 \begin_inset Quotes eld
15659 \end_inset
15660
15661
15662 \family typewriter
15663
15664 \backslash
15665 /
15666 \family default
15667
15668 \begin_inset Quotes erd
15669 \end_inset
15670
15671 ) found more than once.
15672 \end_layout
15673
15674 \begin_layout Enumerate
15675
15676 \size small
15677 \emph on
15678 No italic correction (
15679 \begin_inset Quotes eld
15680 \end_inset
15681
15682
15683 \family typewriter
15684
15685 \backslash
15686 /
15687 \family default
15688
15689 \begin_inset Quotes erd
15690 \end_inset
15691
15692 ) found.
15693 \end_layout
15694
15695 \begin_layout Enumerate
15696
15697 \size small
15698 Accent command 
15699 \begin_inset Quotes eld
15700 \end_inset
15701
15702
15703 \family typewriter
15704 cmd
15705 \family default
15706
15707 \begin_inset Quotes erd
15708 \end_inset
15709
15710  needs use of 
15711 \begin_inset Quotes eld
15712 \end_inset
15713
15714
15715 \family typewriter
15716 cmd
15717 \family default
15718
15719 \begin_inset Quotes erd
15720 \end_inset
15721
15722 .
15723 \end_layout
15724
15725 \begin_layout Enumerate
15726
15727 \size small
15728 Wrong length of dash may have been used.
15729 \end_layout
15730
15731 \begin_layout Enumerate
15732
15733 \size small
15734 \emph on
15735 \begin_inset Quotes eld
15736 \end_inset
15737
15738
15739 \family typewriter
15740 %s
15741 \family default
15742
15743 \begin_inset Quotes erd
15744 \end_inset
15745
15746  expected, found 
15747 \begin_inset Quotes eld
15748 \end_inset
15749
15750
15751 \family typewriter
15752 %s
15753 \family default
15754
15755 \begin_inset Quotes erd
15756 \end_inset
15757
15758 .
15759 \end_layout
15760
15761 \begin_layout Enumerate
15762
15763 \size small
15764 Solo 
15765 \begin_inset Quotes eld
15766 \end_inset
15767
15768
15769 \family typewriter
15770 %s
15771 \family default
15772
15773 \begin_inset Quotes erd
15774 \end_inset
15775
15776  found.
15777 \end_layout
15778
15779 \begin_layout Enumerate
15780
15781 \size small
15782 You should use 
15783 \begin_inset Quotes eld
15784 \end_inset
15785
15786
15787 \family typewriter
15788 %s
15789 \family default
15790
15791 \begin_inset Quotes erd
15792 \end_inset
15793
15794  to achieve an ellipsis.
15795 \end_layout
15796
15797 \begin_layout Enumerate
15798
15799 \size small
15800 Inter-word spacing (
15801 \begin_inset Quotes eld
15802 \end_inset
15803
15804
15805 \family typewriter
15806
15807 \backslash
15808
15809 \family default
15810  
15811 \begin_inset Quotes eld
15812 \end_inset
15813
15814 ) should perhaps be used.
15815 \end_layout
15816
15817 \begin_layout Enumerate
15818
15819 \size small
15820 Inter-sentence spacing (
15821 \begin_inset Quotes eld
15822 \end_inset
15823
15824
15825 \family typewriter
15826
15827 \backslash
15828 @
15829 \family default
15830
15831 \begin_inset Quotes erd
15832 \end_inset
15833
15834 ) should perhaps be used.
15835 \end_layout
15836
15837 \begin_layout Enumerate
15838
15839 \size small
15840 Could not find argument for command.
15841 \end_layout
15842
15843 \begin_layout Enumerate
15844
15845 \size small
15846 No match found for 
15847 \begin_inset Quotes eld
15848 \end_inset
15849
15850
15851 \family typewriter
15852 %s
15853 \family default
15854
15855 \begin_inset Quotes erd
15856 \end_inset
15857
15858 .
15859 \end_layout
15860
15861 \begin_layout Enumerate
15862
15863 \size small
15864 Math mode still on at end of LaTeX file.
15865 \end_layout
15866
15867 \begin_layout Enumerate
15868
15869 \size small
15870 Number of 
15871 \begin_inset Quotes eld
15872 \end_inset
15873
15874
15875 \family typewriter
15876 char
15877 \family default
15878
15879 \begin_inset Quotes erd
15880 \end_inset
15881
15882  doesn't match the number of 
15883 \begin_inset Quotes eld
15884 \end_inset
15885
15886
15887 \family typewriter
15888 char
15889 \family default
15890
15891 \begin_inset Quotes erd
15892 \end_inset
15893
15894 .
15895 \end_layout
15896
15897 \begin_layout Enumerate
15898
15899 \size small
15900 You should use either 
15901 \family typewriter
15902
15903 \begin_inset Quotes eld
15904 \end_inset
15905
15906
15907 \family default
15908  or 
15909 \family typewriter
15910
15911 \begin_inset Quotes erd
15912 \end_inset
15913
15914
15915 \family default
15916  as an alternative to 
15917 \begin_inset Quotes eld
15918 \end_inset
15919
15920
15921 \family typewriter
15922 "
15923 \family default
15924
15925 \begin_inset Quotes erd
15926 \end_inset
15927
15928 .
15929 \end_layout
15930
15931 \begin_layout Enumerate
15932
15933 \size small
15934 You should use "
15935 \family typewriter
15936 '
15937 \family default
15938 " (ASCII 39) instead of "
15939 \family typewriter
15940 ´
15941 \family default
15942 " (ASCII 180).
15943 \end_layout
15944
15945 \begin_layout Enumerate
15946
15947 \size small
15948 User-specified pattern found.
15949 \end_layout
15950
15951 \begin_layout Enumerate
15952
15953 \size small
15954 This command might not be intended.
15955 \end_layout
15956
15957 \begin_layout Enumerate
15958
15959 \size small
15960 \emph on
15961 Comment displayed.
15962 \end_layout
15963
15964 \begin_layout Enumerate
15965
15966 \size small
15967 Either 
15968 \family typewriter
15969 ''
15970 \backslash
15971 ,'
15972 \family default
15973  or 
15974 \family typewriter
15975 '
15976 \backslash
15977 ,''
15978 \family default
15979  will look better.
15980 \end_layout
15981
15982 \begin_layout Enumerate
15983
15984 \size small
15985 Delete this space to maintain correct page references.
15986 \end_layout
15987
15988 \begin_layout Enumerate
15989
15990 \size small
15991 \emph on
15992 You might wish to put this between a pair of 
15993 \begin_inset Quotes eld
15994 \end_inset
15995
15996
15997 \family typewriter
15998 {}
15999 \family default
16000
16001 \begin_inset Quotes erd
16002 \end_inset
16003
16004 .
16005 \end_layout
16006
16007 \begin_layout Enumerate
16008
16009 \size small
16010 You ought to remove spaces in front of punctuation.
16011 \end_layout
16012
16013 \begin_layout Enumerate
16014
16015 \size small
16016 Could not execute LaTeX command.
16017 \end_layout
16018
16019 \begin_layout Enumerate
16020
16021 \size small
16022 Don't use 
16023 \family typewriter
16024
16025 \backslash
16026 /
16027 \family default
16028  in front of small punctuation.
16029 \end_layout
16030
16031 \begin_layout Enumerate
16032
16033 \family typewriter
16034 \size small
16035 $
16036 \backslash
16037 times$
16038 \family default
16039  may look prettier here.
16040 \end_layout
16041
16042 \begin_layout Enumerate
16043
16044 \size small
16045 \emph on
16046 Multiple spaces detected in output.
16047 \end_layout
16048
16049 \begin_layout Enumerate
16050
16051 \size small
16052 This text may be ignored.
16053 \end_layout
16054
16055 \begin_layout Enumerate
16056
16057 \size small
16058 Use 
16059 \family typewriter
16060
16061 \begin_inset Quotes eld
16062 \end_inset
16063
16064
16065 \family default
16066  to begin quotation, not 
16067 \family typewriter
16068 '
16069 \family default
16070 .
16071 \end_layout
16072
16073 \begin_layout Enumerate
16074
16075 \size small
16076 Use 
16077 \family typewriter
16078 '
16079 \family default
16080  to end quotation, not 
16081 \family typewriter
16082
16083 \begin_inset Quotes eld
16084 \end_inset
16085
16086
16087 \family default
16088 .
16089 \end_layout
16090
16091 \begin_layout Enumerate
16092
16093 \size small
16094 Don't mix quotes.
16095 \end_layout
16096
16097 \begin_layout Enumerate
16098
16099 \size small
16100 You should perhaps use 
16101 \begin_inset Quotes eld
16102 \end_inset
16103
16104
16105 \family typewriter
16106 cmd
16107 \family default
16108
16109 \begin_inset Quotes erd
16110 \end_inset
16111
16112  instead.
16113 \end_layout
16114
16115 \begin_layout Enumerate
16116
16117 \size small
16118 You should put a space in front of/after parenthesis.
16119 \end_layout
16120
16121 \begin_layout Enumerate
16122
16123 \size small
16124 You should avoid spaces in front of/after parenthesis.
16125 \end_layout
16126
16127 \begin_layout Enumerate
16128
16129 \size small
16130 \emph on
16131 You should not use punctuation in front of/after quotes.
16132 \end_layout
16133
16134 \begin_layout Enumerate
16135
16136 \size small
16137 Double space found.
16138 \end_layout
16139
16140 \begin_layout Enumerate
16141
16142 \size small
16143 You should put punctuation outside inner/inside display math mode.
16144 \end_layout
16145
16146 \begin_layout Enumerate
16147
16148 \size small
16149 You ought to not use primitive TeX in LaTeX code.
16150 \end_layout
16151
16152 \begin_layout Enumerate
16153
16154 \size small
16155 You should remove spaces in front of 
16156 \begin_inset Quotes eld
16157 \end_inset
16158
16159
16160 \family typewriter
16161 %s
16162 \family default
16163
16164 \begin_inset Quotes erd
16165 \end_inset
16166
16167
16168 \end_layout
16169
16170 \begin_layout Enumerate
16171
16172 \size small
16173 \begin_inset Quotes eld
16174 \end_inset
16175
16176
16177 \family typewriter
16178 %s
16179 \family default
16180
16181 \begin_inset Quotes erd
16182 \end_inset
16183
16184  is normally not followed by 
16185 \begin_inset Quotes eld
16186 \end_inset
16187
16188
16189 \family typewriter
16190 %c
16191 \family default
16192
16193 \begin_inset Quotes erd
16194 \end_inset
16195
16196 .
16197 \end_layout
16198
16199 \begin_layout Standard
16200 In later versions of LyX, we hope to provide a more complete interface to
16201  this tool (and it's smaller cousin 
16202 \family typewriter
16203 lacheck
16204 \family default
16205 ) to exploit the full power of it.
16206  But it's not exactly useless as it is now: go try it on one of your existing
16207  documents of a certain length and be surprised.
16208 \end_layout
16209
16210 \begin_layout Section
16211 Version Control in LyX
16212 \end_layout
16213
16214 \begin_layout Standard
16215 by
16216 \noun on
16217  Lars Gullik Bjønnes
16218 \end_layout
16219
16220 \begin_layout Subsection
16221 Introduction
16222 \end_layout
16223
16224 \begin_layout Standard
16225 A friend of mine wanted to try LyX for a group project.
16226  When he didn't find support for version control or file locking, he dropped
16227  it.
16228  This angered me a bit, so I thought that I should at least make support
16229  for RCS (with the possibility of CVS and/or SCCS as a future improvement.)
16230  This has now been done.
16231  LyX now supports some of the most basic RCS commands.
16232  If you need to something a bit more sophisticated you will have to do that
16233  manually in an xterm.
16234 \end_layout
16235
16236 \begin_layout Standard
16237 Before you begin to use the version control features in LyX, you should
16238  read 
16239 \begin_inset Quotes eld
16240 \end_inset
16241
16242 rcsintro
16243 \begin_inset Quotes erd
16244 \end_inset
16245
16246  (a man file, read it with 
16247 \family typewriter
16248 man rcsintro
16249 \family default
16250 ).
16251  This file describes all the basic features of RCS.
16252  You should especially notice the comment about a RCS directory, and the
16253  notion of a master RCS file (the file ending in 
16254 \family typewriter
16255 ,v
16256 \family default
16257 ).
16258 \end_layout
16259
16260 \begin_layout Standard
16261 The implementation in LyX assumes a recent version of the GNU RCS package---no
16262  guarantees are made for older versions.
16263 \end_layout
16264
16265 \begin_layout Subsection
16266 RCS commands in LyX
16267 \end_layout
16268
16269 \begin_layout Standard
16270 The following sections describe the RCS commands supported by LyX.
16271  You can find them in the 
16272 \family sans
16273 \bar under
16274 F
16275 \bar default
16276 ile\SpecialChar \menuseparator
16277
16278 \bar under
16279 V
16280 \bar default
16281 ersion\InsetSpace ~
16282 Control
16283 \family default
16284  submenu.
16285 \end_layout
16286
16287 \begin_layout Subsubsection
16288
16289 \family sans
16290 Register
16291 \end_layout
16292
16293 \begin_layout Standard
16294 If your document is not under revision control, this is the only item shown
16295  in the menu.
16296  And if it is under revision control, the 
16297 \family sans
16298 \bar under
16299 R
16300 \bar default
16301 egister
16302 \family default
16303  item is grayed out.
16304  
16305 \end_layout
16306
16307 \begin_layout Standard
16308 This command registers your document with RCS\SpecialChar \@.
16309  You are asked interactively
16310  to supply an initial description of the document.
16311  The document is now set in Read-Only mode and you have to 
16312 \family sans
16313 Check\InsetSpace ~
16314 Out\InsetSpace ~
16315 For\InsetSpace ~
16316 Edit
16317 \family default
16318 , before making any changes to it.
16319  A document under revision control has a 
16320 \begin_inset Quotes eld
16321 \end_inset
16322
16323 [RCS:<version> <locker>]
16324 \begin_inset Quotes erd
16325 \end_inset
16326
16327  item tagged to the filename in the minibuffer.
16328 \end_layout
16329
16330 \begin_layout Standard
16331 RCS command that is run: 
16332 \family typewriter
16333 ci -q -u -i -t-"<initial description>" <file-name>
16334 \end_layout
16335
16336 \begin_layout Standard
16337 Read 
16338 \family typewriter
16339 man ci
16340 \family default
16341  to understand the switches.
16342  
16343 \end_layout
16344
16345 \begin_layout Subsubsection
16346
16347 \family sans
16348 Check In Changes
16349 \end_layout
16350
16351 \begin_layout Standard
16352 When you are finished editing a file, you check in your changes.
16353  When you do this, you are asked for a description of the changes.
16354  This is stored in the history log.
16355  The version number is bumped, your changes are applied to the master RCS
16356  file, the document is unlocked and set to Read-Only mode.
16357  
16358 \end_layout
16359
16360 \begin_layout Standard
16361 RCS command: 
16362 \family typewriter
16363 ci -q -u -m"<description>" <file-name>
16364 \end_layout
16365
16366 \begin_layout Subsubsection
16367
16368 \family sans
16369 Check Out For Edit
16370 \end_layout
16371
16372 \begin_layout Standard
16373 By doing this you lock the document so that only you can edit it.
16374  This will also make the document Read-Write only for you.
16375  You will usually continue editing for a while and when you are finished
16376  you check in your changes.
16377  The status line is changed to reflect that you have locked the file.
16378  
16379 \end_layout
16380
16381 \begin_layout Standard
16382 RCS command: 
16383 \family typewriter
16384 co -q -l <file-name>
16385 \end_layout
16386
16387 \begin_layout Subsubsection
16388
16389 \family sans
16390 Revert To Last Version
16391 \end_layout
16392
16393 \begin_layout Standard
16394 This will discard all changes made to the document since the last check
16395  in.
16396  You get a warning before changes are discarded.
16397 \end_layout
16398
16399 \begin_layout Standard
16400 RCS command: 
16401 \family typewriter
16402 co -f -u<version> <file-name>
16403 \end_layout
16404
16405 \begin_layout Subsubsection
16406
16407 \family sans
16408 Undo Last Checkin
16409 \end_layout
16410
16411 \begin_layout Standard
16412 This makes as if the last check in never happened.
16413  No changes are made to the document loaded into LyX, but the last version
16414  is removed from the master RCS file.
16415  
16416 \end_layout
16417
16418 \begin_layout Standard
16419 RCS command: 
16420 \family typewriter
16421 rcs -o<version> <file-name>
16422 \end_layout
16423
16424 \begin_layout Subsubsection
16425
16426 \family sans
16427 Show History
16428 \end_layout
16429
16430 \begin_layout Standard
16431 This show the complete history of the RCS document.
16432  The output of 
16433 \family typewriter
16434 rlog <file-name>
16435 \family default
16436  is shown in a browser.
16437  See 
16438 \family typewriter
16439 man rlog
16440 \family default
16441  for more info.
16442 \end_layout
16443
16444 \begin_layout Section
16445 Literate Programming
16446 \end_layout
16447
16448 \begin_layout Standard
16449 Updated by 
16450 \noun on
16451 Kayvan Sylvan 
16452 \noun default
16453 (kayvan@sylvan.com)
16454 \noun on
16455
16456 \noun default
16457 original documentation written by 
16458 \noun on
16459 Edmar Wienskoski Jr.
16460
16461 \noun default
16462  (edmar-w-jr@technologist.com)
16463 \end_layout
16464
16465 \begin_layout Subsection
16466 Introduction
16467 \end_layout
16468
16469 \begin_layout Standard
16470 The main purpose of this documentation is to show you how to use LyX for
16471  literate programming.
16472  Where it is assumed that you are familiar with this programming technique,
16473  and know what 
16474 \begin_inset Quotes eld
16475 \end_inset
16476
16477 tangling
16478 \begin_inset Quotes erd
16479 \end_inset
16480
16481  and 
16482 \begin_inset Quotes eld
16483 \end_inset
16484
16485 weaving
16486 \begin_inset Quotes erd
16487 \end_inset
16488
16489  means.
16490  If that is not the case, please follow the web links provided in the following
16491  sections.
16492  There is a lot of good documentation out there covering old development
16493  history to the latest tools tips.
16494 \end_layout
16495
16496 \begin_layout Standard
16497 It is also assumed that you are familiar with LyX itself to a point that
16498  you are comfortable changing your LyX preferences, and X resources file.
16499  If that is not the case please refer to other LyX documentation to cover
16500  your specific needs.
16501 \end_layout
16502
16503 \begin_layout Subsection
16504 Literate Programming
16505 \end_layout
16506
16507 \begin_layout Standard
16508 From the Literate Programming FAQ: 
16509 \end_layout
16510
16511 \begin_layout Quotation
16512 Literate programming is the combination of documentation and source together
16513  in a fashion suited for reading by human beings.
16514  In fact, literate programs should be enjoyable reading, even inviting!
16515  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
16516  and documentation in a single file.
16517  Literate programming tools then parse the file to produce either readable
16518  documentation or compilable source.
16519  The WEB style of literate programming was created by D.E.
16520  Knuth during the development of his TeX typesetting software.
16521  
16522 \end_layout
16523
16524 \begin_layout Standard
16525 Another excerpt says:
16526 \end_layout
16527
16528 \begin_layout Quotation
16529
16530 \emph on
16531 How is literate programming different from verbose commenting?
16532 \end_layout
16533
16534 \begin_layout Quotation
16535 There are three distinguishing characteristics.
16536  In order of importance, they are: 
16537 \end_layout
16538
16539 \begin_deeper
16540 \begin_layout Itemize
16541 flexible order of elaboration 
16542 \end_layout
16543
16544 \begin_layout Itemize
16545 automatic support for browsing 
16546 \end_layout
16547
16548 \begin_layout Itemize
16549 typeset documentation, especially diagrams and mathematics 
16550 \end_layout
16551
16552 \end_deeper
16553 \begin_layout Standard
16554 Now that I sparked your curiosity, take a look in the references.
16555 \end_layout
16556
16557 \begin_layout Subsubsection
16558 References
16559 \end_layout
16560
16561 \begin_layout Standard
16562 The complete Literate Programming FAQ can be found at:
16563 \end_layout
16564
16565 \begin_layout Quote
16566 \begin_inset LatexCommand url
16567 name "Literate Programming FAQ"
16568 target "http://shelob.ce.ttu.edu/daves/lpfaq/faq.html"
16569
16570 \end_inset
16571
16572
16573 \end_layout
16574
16575 \begin_layout Standard
16576 The FAQ lists 23 (twenty three!) different literate programming tools.
16577  Where some are specialized or 
16578 \begin_inset Quotes eld
16579 \end_inset
16580
16581 tailored
16582 \begin_inset Quotes erd
16583 \end_inset
16584
16585  for particular programming languages, while other have general scope.
16586  I selected 
16587 \noun on
16588 Noweb
16589 \noun default
16590  for my own use for several reasons:
16591 \end_layout
16592
16593 \begin_layout Itemize
16594 It can generate the documentation either in LaTeX or HTML.
16595 \end_layout
16596
16597 \begin_layout Itemize
16598 It has a open architecture, i.e., it is easy to plug in new filters and to
16599  perform special processing that you may need.
16600  
16601 \end_layout
16602
16603 \begin_layout Itemize
16604 There is a good selection of filters available already (the HTML is one
16605  of them).
16606 \end_layout
16607
16608 \begin_layout Itemize
16609 It is free.
16610 \end_layout
16611
16612 \begin_layout Standard
16613 The Noweb web page can be found at: 
16614 \end_layout
16615
16616 \begin_layout Quote
16617 \begin_inset LatexCommand url
16618 name "Noweb home page"
16619 target "http://www.cs.virginia.edu/~nr/noweb/"
16620
16621 \end_inset
16622
16623
16624 \end_layout
16625
16626 \begin_layout Standard
16627 Starting from there you can reach many other interesting links and even
16628  some literate program examples.
16629 \end_layout
16630
16631 \begin_layout Subsection
16632 \begin_inset LatexCommand label
16633 name "sub:LyX-and-Literate"
16634
16635 \end_inset
16636
16637 LyX and Literate Programming
16638 \end_layout
16639
16640 \begin_layout Standard
16641 The LyX support for Literate Programming is provided by using the generic
16642  LyX convertors mechanism.
16643  This support is provided in a 
16644 \begin_inset Quotes eld
16645 \end_inset
16646
16647 Noweb independent
16648 \begin_inset Quotes erd
16649 \end_inset
16650
16651  way, i.e., you will be able to use this new LyX feature with some other literate
16652  programming tool of your choice by just changing your LyX preferences.
16653 \end_layout
16654
16655 \begin_layout Subsubsection
16656 Generating documents and code (weaving and tangling)
16657 \end_layout
16658
16659 \begin_layout Paragraph
16660 Selecting the document class
16661 \end_layout
16662
16663 \begin_layout Standard
16664 If you have installed Noweb and LyX successfully, whenever you open a new
16665  document or try to change the document class of an existing one, you will
16666  find that there are three new document classes available:
16667 \end_layout
16668
16669 \begin_layout Itemize
16670 Article (Noweb)
16671 \end_layout
16672
16673 \begin_layout Itemize
16674 Book (Noweb)
16675 \end_layout
16676
16677 \begin_layout Itemize
16678 Report (Noweb)
16679 \end_layout
16680
16681 \begin_layout Standard
16682 You must select one of them to create your literate documents from.
16683  
16684 \end_layout
16685
16686 \begin_layout Standard
16687 Note that literate documents are not limited to these three classes.
16688  New classes can be generated from other styles like letter or in combination
16689  with other class variations like Article (AMS).
16690  If you have special needs that cannot be covered by one of the existing
16691  classes, let the LyX developers list (lyx-devel@lists.lyx.org) know and we
16692  will arrange to insert a new entry, or teach you how to do it.
16693 \begin_inset Foot
16694 status collapsed
16695
16696 \begin_layout Standard
16697 It is very simple, it involves the creation of a file with four lines, and
16698  re-running of the auto configuration.
16699 \end_layout
16700
16701 \end_inset
16702
16703  Moreover, if you use a literate tool other than Noweb you may need to create
16704  a new set of document classes for it.
16705 \end_layout
16706
16707 \begin_layout Paragraph
16708 Typing code in
16709 \end_layout
16710
16711 \begin_layout Standard
16712 LyX enables you to write code with a layout named 
16713 \noun on
16714 Scrap
16715 \noun default
16716 .
16717 \begin_inset Foot
16718 status collapsed
16719
16720 \begin_layout Standard
16721 The equivalent Noweb term is 
16722 \begin_inset Quotes eld
16723 \end_inset
16724
16725 Chunk
16726 \begin_inset Quotes erd
16727 \end_inset
16728
16729 .
16730  For historical reasons, I got used to the term 
16731 \begin_inset Quotes eld
16732 \end_inset
16733
16734 scrap
16735 \begin_inset Quotes erd
16736 \end_inset
16737
16738  introduced by other literate tool named Nuweb, which I used for many years
16739  before rendering myself to Noweb.
16740 \end_layout
16741
16742 \end_inset
16743
16744  Noweb delimits scraps like this:
16745 \end_layout
16746
16747 \begin_layout LyX-Code
16748 <<My scrap>>=
16749 \end_layout
16750
16751 \begin_layout LyX-Code
16752   code
16753 \end_layout
16754
16755 \begin_layout LyX-Code
16756   more code
16757 \end_layout
16758
16759 \begin_layout LyX-Code
16760   even more code
16761 \end_layout
16762
16763 \begin_layout LyX-Code
16764   @
16765 \end_layout
16766
16767 \begin_layout Standard
16768 The problem is that whatever is written in between the << and the 
16769 \family typewriter
16770 @
16771 \family default
16772  must be taken literally, i.e., LyX should be prevented from making any special
16773  interpretation of what has been written.
16774  This is handled by a special layout named Scrap, that works like a normal
16775  paragraph but has a free spacing capability.
16776 \end_layout
16777
16778 \begin_layout Standard
16779 The down side of the Scrap paragraph layout is that consecutive paragraphs
16780  of code will be spaced with one empty line in the source code and also
16781  in the printed documentation.
16782  The work around is to enter each line of code within a single Scrap, with
16783  a newline (ctrl-return).
16784  The example above will look like this:
16785 \begin_inset Foot
16786 status collapsed
16787
16788 \begin_layout Standard
16789 If you have a printed version of this document you will not see any difference
16790  between the previous example and this one.
16791 \end_layout
16792
16793 \end_inset
16794
16795
16796 \end_layout
16797
16798 \begin_layout LyX-Code
16799 <<My scrap>>=
16800 \newline
16801   code
16802 \newline
16803   more code
16804 \newline
16805   even more code
16806 \newline
16807   @
16808 \end_layout
16809
16810 \begin_layout Standard
16811 This layout works fine.
16812  The only real inconvenience is that you have to type ctrl-return instead
16813  of a plain return.
16814 \begin_inset Foot
16815 status collapsed
16816
16817 \begin_layout Standard
16818 It is in my list of 
16819 \begin_inset Quotes eld
16820 \end_inset
16821
16822 improvements
16823 \begin_inset Quotes erd
16824 \end_inset
16825
16826  to fix that.
16827 \end_layout
16828
16829 \end_inset
16830
16831
16832 \end_layout
16833
16834 \begin_layout Standard
16835 As a special note, you can also use the 
16836 \begin_inset Quotes eld
16837 \end_inset
16838
16839 %def
16840 \begin_inset Quotes erd
16841 \end_inset
16842
16843  construct of Noweb in your scraps to add items to Noweb's identifier cross-refe
16844 rence:
16845 \end_layout
16846
16847 \begin_layout LyX-Code
16848 <<My scrap>>=
16849 \newline
16850   def some_function(args):
16851 \newline
16852     "This is the doc string for this
16853  function."
16854 \newline
16855     print "My args: ", args
16856 \end_layout
16857
16858 \begin_layout LyX-Code
16859 @ %def some_function
16860 \end_layout
16861
16862 \begin_layout Standard
16863 For an example of this usage and the resulting cross-reference output, look
16864  at the Literate python program in 
16865 \emph on
16866 LIBDIR/examples/listerrors.lyx
16867 \emph default
16868  which should make this all clear.
16869 \end_layout
16870
16871 \begin_layout Paragraph
16872 Generating the documentation
16873 \end_layout
16874
16875 \begin_layout Standard
16876 At this point you already have a new document file with a proper document
16877  class, and with some code and text on it.
16878  How do I print it? The answer is simple, you select 
16879 \family sans
16880 \bar under
16881 V
16882 \bar default
16883 iew\SpecialChar \menuseparator
16884
16885 \bar under
16886 D
16887 \bar default
16888 VI,
16889 \family default
16890  etc.
16891  Just like you would do for a plain document.
16892  No special procedure is required.
16893 \end_layout
16894
16895 \begin_layout Standard
16896 To help orientate you, I will now explain what happens inside LyX:
16897 \end_layout
16898
16899 \begin_layout Enumerate
16900 When the 
16901 \family sans
16902 \bar under
16903 U
16904 \bar default
16905 pdate\SpecialChar \menuseparator
16906
16907 \bar under
16908 D
16909 \bar default
16910 VI
16911 \family default
16912  menu option is chosen, a LaTeX file is generated.
16913  
16914 \end_layout
16915
16916 \begin_deeper
16917 \begin_layout Standard
16918 If the document is of any literate class the generated file will be named
16919  with an extension name defined by the 
16920 \begin_inset Quotes eld
16921 \end_inset
16922
16923 literate
16924 \begin_inset Quotes erd
16925 \end_inset
16926
16927  format (defined in the Preferences panel), otherwise the file will have
16928  the usual 
16929 \family typewriter
16930 .tex
16931 \family default
16932  extension.
16933 \end_layout
16934
16935 \end_deeper
16936 \begin_layout Enumerate
16937 Note that the only difference so far is in the name of the file, no special
16938  processing is required by LyX.
16939  Given that you formatted the code using the Scrap layout that, by itself,
16940  takes care of the business.
16941 \end_layout
16942
16943 \begin_layout Enumerate
16944 If the document is of any literate class LyX will then use the internal
16945  LyX to Noweb converter, followed by the Noweb to LaTeX converter
16946 \begin_inset Foot
16947 status collapsed
16948
16949 \begin_layout Standard
16950 The converters are defined in the 
16951 \family sans
16952 \bar under
16953 T
16954 \bar default
16955 ools\SpecialChar \menuseparator
16956
16957 \bar under
16958 P
16959 \bar default
16960 references
16961 \family default
16962  panel, under the 
16963 \begin_inset Quotes eld
16964 \end_inset
16965
16966 Conversion
16967 \begin_inset Quotes erd
16968 \end_inset
16969
16970  tab.
16971  See section 
16972 \begin_inset LatexCommand ref
16973 reference "sub:converters"
16974
16975 \end_inset
16976
16977  of the 
16978 \emph on
16979 Customization
16980 \emph default
16981  manual for general information about converters.
16982 \end_layout
16983
16984 \end_inset
16985
16986  to generate the LaTeX file.
16987 \end_layout
16988
16989 \begin_deeper
16990 \begin_layout Standard
16991 Otherwise it will just skip this step.
16992 \end_layout
16993
16994 \end_deeper
16995 \begin_layout Enumerate
16996 Finally, LaTeX is invoked and the regular post processing continues as in
16997  a plain document.
16998 \end_layout
16999
17000 \begin_layout Standard
17001 Independence from a particular 
17002 \begin_inset Quotes eld
17003 \end_inset
17004
17005 literate tool
17006 \begin_inset Quotes erd
17007 \end_inset
17008
17009  is easily achieved by changing the commands that are run by the various
17010  converters.
17011 \end_layout
17012
17013 \begin_layout Paragraph
17014 Generating the code
17015 \end_layout
17016
17017 \begin_layout Standard
17018 When the build menu option is chosen or the corresponding button in the
17019  toolbar is pressed, a LaTeX file is generated just like step 1 above.
17020  Next, LyX invokes the 
17021 \family typewriter
17022 Noweb->Program
17023 \family default
17024  converter.
17025  This converter needs to be defined by the user and is not installed by
17026  default, though the Program format is.
17027  This converter (like any other converter) will have two parts:
17028 \end_layout
17029
17030 \begin_layout Enumerate
17031 The converter program itself.
17032  This program performs the conversion from the one format to the other (in
17033  this case, from the Noweb format to the Program pseudo-format).
17034 \end_layout
17035
17036 \begin_layout Enumerate
17037 The error log parser.
17038  This is a program whose sole purpose is to rewrite error messages in a
17039  format that LyX understands.
17040  This makes it possible for LyX to place error boxes in the right places
17041  in the file buffer.
17042 \end_layout
17043
17044 \begin_layout Standard
17045 The first part, the 
17046 \begin_inset Quotes eld
17047 \end_inset
17048
17049 Converter
17050 \begin_inset Quotes erd
17051 \end_inset
17052
17053  setting, should be set to 
17054 \begin_inset Quotes eld
17055 \end_inset
17056
17057
17058 \family typewriter
17059 build-script $$i
17060 \family default
17061
17062 \begin_inset Quotes erd
17063 \end_inset
17064
17065 .
17066  This basically means that LyX will call 
17067 \begin_inset Quotes eld
17068 \end_inset
17069
17070 build-script
17071 \begin_inset Quotes erd
17072 \end_inset
17073
17074  (a program or script) with the name of the Noweb file (normally a file
17075  in the LyX temp directory).
17076  
17077 \end_layout
17078
17079 \begin_layout Standard
17080 This is an implementation of 
17081 \begin_inset Quotes eld
17082 \end_inset
17083
17084 build-script
17085 \begin_inset Quotes erd
17086 \end_inset
17087
17088  that you can place in a directory on your path:
17089 \end_layout
17090
17091 \begin_layout LyX-Code
17092 #!/bin/sh
17093 \end_layout
17094
17095 \begin_layout LyX-Code
17096 #
17097 \end_layout
17098
17099 \begin_layout LyX-Code
17100 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
17101 \end_layout
17102
17103 \begin_layout Standard
17104 The next part of the converter setting is the 
17105 \begin_inset Quotes eld
17106 \end_inset
17107
17108 Flags
17109 \begin_inset Quotes erd
17110 \end_inset
17111
17112  which is to be set to 
17113 \begin_inset Quotes eld
17114 \end_inset
17115
17116
17117 \family typewriter
17118 parselog=listerrors
17119 \family default
17120
17121 \begin_inset Quotes erd
17122 \end_inset
17123
17124 .
17125  This will run any errors that are generated by the 
17126 \begin_inset Quotes eld
17127 \end_inset
17128
17129 build-script
17130 \begin_inset Quotes erd
17131 \end_inset
17132
17133  process through the 
17134 \begin_inset Quotes eld
17135 \end_inset
17136
17137 listerrors
17138 \begin_inset Quotes erd
17139 \end_inset
17140
17141  program.
17142 \end_layout
17143
17144 \begin_layout Standard
17145 The converter code looks in 
17146 \emph on
17147 MYLYXDIR/scripts
17148 \emph default
17149  first, then in 
17150 \emph on
17151 LIBDIR/scripts
17152 \emph default
17153  then on the path for the 
17154 \begin_inset Quotes eld
17155 \end_inset
17156
17157 listerrors
17158 \begin_inset Quotes erd
17159 \end_inset
17160
17161  program.
17162 \end_layout
17163
17164 \begin_layout Standard
17165 The build will normally take place in LyX's temporary directory, so the
17166  files produced by the conversion will be in that directory.
17167  LyX will copy out what it regards as the `main' file, but the 
17168 \family typewriter
17169 Noweb->Program
17170 \family default
17171  conversion may produce several files, and so most of these would then be
17172  deleted when LyX was closed.
17173  The present solution is to use a `copier',
17174 \begin_inset Foot
17175 status collapsed
17176
17177 \begin_layout Standard
17178 See section 
17179 \begin_inset LatexCommand ref
17180 reference "sec:converters-etc"
17181
17182 \end_inset
17183
17184  of the 
17185 \emph on
17186 Customization
17187 \emph default
17188  manual for information on these.
17189 \end_layout
17190
17191 \end_inset
17192
17193  in this case, the 
17194 \family typewriter
17195 ext_copy.py
17196 \family default
17197  script in its default mode, so that the entire contents of the temporary
17198  directory is copied.
17199  More will get copied than is needed, to be sure, but nothing will be lost.
17200  If, however, you know what extensions the generated files will have, this
17201  can be improved by using the 
17202 \family typewriter
17203 -e
17204 \family default
17205  option to 
17206 \family typewriter
17207 ext_copy
17208 \family default
17209 .
17210  This option takes a comma-separated list of extensions to copy.
17211  So, for example, if the conversion will generate only files with the extensions
17212  
17213 \family typewriter
17214 .c
17215 \family default
17216  and 
17217 \family typewriter
17218 .h
17219 \family default
17220 , then the correct definition would be:
17221 \end_layout
17222
17223 \begin_layout LyX-Code
17224 python -tt $$s/scripts/ext_copy.py -e c,h $$i $$o
17225 \end_layout
17226
17227 \begin_layout Standard
17228 The result will be that only files with these two extensions will be copied
17229  out.
17230 \end_layout
17231
17232 \begin_layout Paragraph
17233 Build instructions in the document
17234 \end_layout
17235
17236 \begin_layout Standard
17237 The last piece of the integration between LyX and noweb is the 
17238 \begin_inset Quotes eld
17239 \end_inset
17240
17241 build-script
17242 \begin_inset Quotes erd
17243 \end_inset
17244
17245  scrap.
17246  Generally, the instructions for building your program should be embedded
17247  in a scrap of its own.
17248  The noweb-specific 
17249 \begin_inset Quotes eld
17250 \end_inset
17251
17252 build-script
17253 \begin_inset Quotes erd
17254 \end_inset
17255
17256  above uses the notangle command to look for this scrap (called 
17257 \begin_inset Quotes eld
17258 \end_inset
17259
17260 build-script
17261 \begin_inset Quotes erd
17262 \end_inset
17263
17264 ) and runs its contents through 
17265 \begin_inset Quotes eld
17266 \end_inset
17267
17268 sh
17269 \begin_inset Quotes erd
17270 \end_inset
17271
17272 .
17273 \end_layout
17274
17275 \begin_layout Standard
17276 Typically, such a scrap would look something like this:
17277 \end_layout
17278
17279 \begin_layout LyX-Code
17280 <<build-script>>=
17281 \newline
17282 #!/bin/sh
17283 \newline
17284
17285 \newline
17286 if [ -z "${NOWEB_SOURCE}" ]
17287 \newline
17288 then
17289 \newline
17290   NOWEB_SOURCE=myfile.nw
17291 \newline
17292
17293 fi
17294 \newline
17295 [...
17296  code to extract files ...]
17297 \newline
17298 [...
17299  code to compile files ...]
17300 \newline
17301 @
17302 \end_layout
17303
17304 \begin_layout Standard
17305 Look in 
17306 \emph on
17307 LIBDIR/examples/listerrors.lyx
17308 \emph default
17309  or in 
17310 \emph on
17311 LIBDIR/examples/Literate.lyx
17312 \emph default
17313  which implement two versions of the 
17314 \begin_inset Quotes eld
17315 \end_inset
17316
17317 listerrors
17318 \begin_inset Quotes erd
17319 \end_inset
17320
17321  program for some illustrations of how all of these pieces go together or
17322  in 
17323 \emph on
17324 LIBDIR/examples/noweb2lyx.lyx.
17325
17326 \emph default
17327  Interestingly, these three files show off the language-indepence of the
17328  LyX literate programming support since they are written in Python, C and
17329  Perl respectively.
17330 \end_layout
17331
17332 \begin_layout Subsubsection
17333 Configuring LyX
17334 \end_layout
17335
17336 \begin_layout Standard
17337 All the Literate Programming support is configured by the 
17338 \family sans
17339 \bar under
17340 T
17341 \bar default
17342 ools\SpecialChar \menuseparator
17343
17344 \bar under
17345 P
17346 \bar default
17347 references
17348 \family default
17349  panel in the 
17350 \begin_inset Quotes eld
17351 \end_inset
17352
17353 Conversion
17354 \begin_inset Quotes erd
17355 \end_inset
17356
17357  tab.
17358  The important parts are:
17359 \end_layout
17360
17361 \begin_layout Description
17362 the\InsetSpace ~
17363
17364 \begin_inset Quotes eld
17365 \end_inset
17366
17367 literate
17368 \begin_inset Quotes erd
17369 \end_inset
17370
17371 \InsetSpace ~
17372 format Set up via the Formats tab, this is where the Noweb-specific pieces
17373  are set up.
17374  The 
17375 \family sans
17376 GUI Name
17377 \family default
17378  is set to 
17379 \family typewriter
17380 NoWeb
17381 \family default
17382 , the file extension is set to 
17383 \family typewriter
17384 .nw
17385 \family default
17386 .
17387  This tells LyX to create a file with a 
17388 \family typewriter
17389 .nw
17390 \family default
17391  extension in the first step of the conversion process.
17392 \end_layout
17393
17394 \begin_layout Description
17395 the\InsetSpace ~
17396
17397 \family sans
17398 Program
17399 \family default
17400 \InsetSpace ~
17401 format This is an empty format whose sole purpose is to be the endpoint
17402  of a conversion (which then allows us to set up a converter for it).
17403 \end_layout
17404
17405 \begin_layout Description
17406
17407 \family sans
17408 NoWeb
17409 \family default
17410 ->
17411 \family sans
17412 LaTeX
17413 \family default
17414  This converter performs the 
17415 \begin_inset Quotes eld
17416 \end_inset
17417
17418 weaving
17419 \begin_inset Quotes erd
17420 \end_inset
17421
17422  of the literate document.
17423  For Noweb, it is set to 
17424 \begin_inset Quotes eld
17425 \end_inset
17426
17427
17428 \family typewriter
17429 noweave -delay -index $$i > $$o
17430 \family default
17431
17432 \begin_inset Quotes erd
17433 \end_inset
17434
17435
17436 \end_layout
17437
17438 \begin_layout Description
17439
17440 \family sans
17441 NoWeb
17442 \family default
17443 ->
17444 \family sans
17445 Program
17446 \family default
17447  This performs the 
17448 \begin_inset Quotes eld
17449 \end_inset
17450
17451 tangling step
17452 \begin_inset Quotes erd
17453 \end_inset
17454
17455 .
17456  As stated above, the Converter is set to 
17457 \begin_inset Quotes eld
17458 \end_inset
17459
17460
17461 \family typewriter
17462 build-script $$i
17463 \family default
17464
17465 \begin_inset Quotes erd
17466 \end_inset
17467
17468 , with Flags set to 
17469 \begin_inset Quotes eld
17470 \end_inset
17471
17472
17473 \family typewriter
17474 originaldir,parselog=listerrors
17475 \family default
17476
17477 \begin_inset Quotes erd
17478 \end_inset
17479
17480 .
17481 \end_layout
17482
17483 \begin_layout Subsubsection
17484 Debug extensions
17485 \end_layout
17486
17487 \begin_layout Standard
17488 There is also a new function implemented in the LyX server, the 
17489 \begin_inset Quotes eld
17490 \end_inset
17491
17492 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
17493  
17494 \end_layout
17495
17496 \begin_layout Standard
17497 When debugging code with ddd/gdb, it is possible to invoke a text editor
17498  at the current execution position with a single key stroke.
17499  The default ddd configuration for that is shift-ctrl-V.
17500  It happens that you can define the editor command line invocation in ddd
17501  by accessing the 
17502 \family sans
17503 \bar under
17504 E
17505 \bar default
17506 dit\SpecialChar \menuseparator
17507
17508 \bar under
17509 P
17510 \bar default
17511 references\SpecialChar \menuseparator
17512
17513 \bar under
17514 H
17515 \bar default
17516 elpers
17517 \family default
17518  dialog and changing the "Edit Sources" entry.
17519 \end_layout
17520
17521 \begin_layout Standard
17522 I take advantage of the new created LyX server function and this ddd feature,
17523  and set 
17524 \begin_inset Quotes eld
17525 \end_inset
17526
17527 Edit Sources
17528 \begin_inset Quotes erd
17529 \end_inset
17530
17531  to:
17532 \end_layout
17533
17534 \begin_layout LyX-Code
17535 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
17536 \end_layout
17537
17538 \begin_layout Standard
17539 With this, whenever you are using ddd and find a point in the program that
17540  you want to edit, you just press shift-ctrl-V (in the ddd window), and
17541  ddd you forward this information to LyX through the LyX server and then
17542  the LyX window will show the same file with the cursor at the same position
17543  ddd was pointing to.
17544  No more guessing or long scrolling to locate a point in the program back
17545  from debugging !
17546 \end_layout
17547
17548 \begin_layout Standard
17549 Note however that you must enable the LyX server to get this feature working
17550  (it is disabled by default).
17551  You can enable it in 
17552 \family sans
17553 Preferences
17554 \family default
17555  (tabs 
17556 \family sans
17557 Inputs
17558 \family default
17559
17560 \family sans
17561 Paths
17562 \family default
17563 ) by entering in the 
17564 \family sans
17565 LyXserver pipe
17566 \family default
17567  a path like 
17568 \begin_inset Quotes eld
17569 \end_inset
17570
17571
17572 \family typewriter
17573 /home/<your-home-directory>/.lyx/lyxpipe
17574 \family default
17575
17576 \begin_inset Quotes erd
17577 \end_inset
17578
17579
17580 \end_layout
17581
17582 \begin_layout Standard
17583 Read the LyX server documentation in the 
17584 \emph on
17585 Customization Manual
17586 \emph default
17587  for further information.
17588 \end_layout
17589
17590 \begin_layout Subsubsection
17591 Toolbar extensions
17592 \end_layout
17593
17594 \begin_layout Standard
17595 There are six new buttons that can be added to your LyX toolbar.
17596  Five of these buttons are short cuts to layout styles: 
17597 \family sans
17598 Standard
17599 \family default
17600
17601 \family sans
17602 Section
17603 \family default
17604
17605 \family sans
17606 LaTeX
17607 \family default
17608
17609 \family sans
17610 LyX-Code
17611 \family default
17612 , and 
17613 \family sans
17614 Scrap
17615 \family default
17616 .
17617  The last one is a short cut to the 
17618 \begin_inset Quotes eld
17619 \end_inset
17620
17621 Build Program
17622 \begin_inset Quotes erd
17623 \end_inset
17624
17625  File menu entry.
17626  
17627 \end_layout
17628
17629 \begin_layout Standard
17630 LyX has a range of buttons that are available for tool bar customization.
17631  In my toolbar I like to combine the six short cuts above with two more:
17632  One for 
17633 \family sans
17634 \bar under
17635 V
17636 \bar default
17637 iew
17638 \family default
17639 \SpecialChar \menuseparator
17640
17641 \family sans
17642 \bar under
17643 U
17644 \bar default
17645 pdate
17646 \family default
17647 \SpecialChar \menuseparator
17648
17649 \family sans
17650 \bar under
17651 D
17652 \bar default
17653 VI
17654 \family default
17655  and the other for 
17656 \family sans
17657 \bar under
17658 V
17659 \bar default
17660 iew\SpecialChar \menuseparator
17661
17662 \bar under
17663 D
17664 \bar default
17665 VI
17666 \family default
17667  File menu entries.
17668  Here is how it looks like:
17669 \end_layout
17670
17671 \begin_layout LyX-Code
17672 Toolbar
17673 \end_layout
17674
17675 \begin_layout LyX-Code
17676   Layouts
17677 \end_layout
17678
17679 \begin_layout LyX-Code
17680   Icon "layout Standard"
17681 \end_layout
17682
17683 \begin_layout LyX-Code
17684   Icon "layout Section"
17685 \end_layout
17686
17687 \begin_layout LyX-Code
17688   Icon "layout LaTeX"
17689 \end_layout
17690
17691 \begin_layout LyX-Code
17692   Icon "layout LyX-Code"
17693 \end_layout
17694
17695 \begin_layout LyX-Code
17696   Icon "layout Scrap"
17697 \end_layout
17698
17699 \begin_layout LyX-Code
17700   Separator
17701 \end_layout
17702
17703 \begin_layout LyX-Code
17704   Icon "buffer-view"
17705 \end_layout
17706
17707 \begin_layout LyX-Code
17708   Icon "buffer-typeset"
17709 \end_layout
17710
17711 \begin_layout LyX-Code
17712   Icon "build-program"
17713 \end_layout
17714
17715 \begin_layout LyX-Code
17716   Separator
17717 \end_layout
17718
17719 \begin_layout LyX-Code
17720 .
17721 \end_layout
17722
17723 \begin_layout LyX-Code
17724 .
17725 \end_layout
17726
17727 \begin_layout LyX-Code
17728 .
17729 \end_layout
17730
17731 \begin_layout LyX-Code
17732 End
17733 \end_layout
17734
17735 \begin_layout Subsubsection
17736 Colors customization
17737 \end_layout
17738
17739 \begin_layout Standard
17740 There are a number of colors in LyX that can be customized in 
17741 \family sans
17742 Preferences
17743 \family default
17744 .
17745  One of the things that bothers people is the LaTeX font color.
17746  The default color is red, since the scraps uses LaTeX font, and there is
17747  a lot of scraps in literate documents, you may get tired of seeing everything
17748  in red.
17749  You can change it by going to the tabs 
17750 \family sans
17751 Look&Feel
17752 \family default
17753
17754 \family sans
17755 Colors.
17756 \end_layout
17757
17758 \begin_layout Standard
17759 The next thing is the visible presence of the newline character in the screen.
17760  You can choose the color of this particular character and make it blend
17761  in the background.
17762  I recommend you choosing a color that is close to the background but not
17763  equal, that way you still can see it is there, but it is not bothering
17764  you anymore.
17765  
17766 \end_layout
17767
17768 \begin_layout Chapter
17769 Secrets of the LaTeX Masters
17770 \begin_inset LatexCommand label
17771 name "cha:secrets"
17772
17773 \end_inset
17774
17775
17776 \end_layout
17777
17778 \begin_layout Standard
17779 Though LyX is a powerful tool, it cannot hope to support everything that
17780  can be done with pure TeX/LaTeX.
17781  However, many familiar dirty TeX and LaTeX tricks can be done within LyX,
17782  as long as you are not afraid to use that 
17783 \begin_inset Quotes eld
17784 \end_inset
17785
17786 TeX
17787 \begin_inset Quotes erd
17788 \end_inset
17789
17790  button on the toolbar or add things to the LaTeX preamble.
17791  This section lists some tips, tricks, and otherwise cool ideas to give
17792  your document that extra little flair.
17793  
17794 \emph on
17795 Do try this at home
17796 \emph default
17797 , just start with something a little smaller and less important than your
17798  dissertation!
17799 \end_layout
17800
17801 \begin_layout Standard
17802 Most ideas in this section require less common files in your LaTeX installation.
17803  If you have a system like teTeX, most will already be available.
17804  A few, however, will need to be downloaded from one of the CTAN archives.
17805  Often, there are several ways to do something, or several LaTeX style files
17806  which do the same thing.
17807  We do not endorse one choice over another, we simply claim that we have
17808  done a particular task with a particular file.
17809  Put on your wizard hat, keep an eye out for dragons, and let us begin.
17810 \end_layout
17811
17812 \begin_layout Section
17813 Multiple Columns
17814 \end_layout
17815
17816 \begin_layout Standard
17817 by 
17818 \noun on
17819 Lars Gullik Bjønnes
17820 \end_layout
17821
17822 \begin_layout Subsection
17823 Purpose
17824 \end_layout
17825
17826 \begin_layout Standard
17827 The aim for this chapter
17828 \begin_inset Foot
17829 status collapsed
17830
17831 \begin_layout Standard
17832 Editor's note: Lars' original chapter was a masterful description of how
17833  to use the 
17834 \family typewriter
17835 multicol
17836 \family default
17837  package.
17838  However, it was too long to flow smoothly in this document.
17839  I have therefore chosen to excerpt the most important sections here (sorry,
17840  Lars); you can read the original chapter (and more of the story!) in the
17841  example file 
17842 \family typewriter
17843 examples/multicol.lyx
17844 \family default
17845 .
17846  --- mer
17847 \end_layout
17848
17849 \end_inset
17850
17851  is to show how the LaTeX package 
17852 \family typewriter
17853 multicol
17854 \family default
17855  can be used in a LyX document.
17856  As LyX doesn't support the 
17857 \family typewriter
17858 multicol
17859 \family default
17860  package natively yet, we have to use some small hacks.
17861  By reading this section it should be obvious how to do this.
17862 \end_layout
17863
17864 \begin_layout Subsection
17865 Limitations 
17866 \end_layout
17867
17868 \begin_layout Standard
17869 The 
17870 \family typewriter
17871 multicol
17872 \family default
17873  package allows switching between one and multicolumn format on the same
17874  page.
17875  Footnotes are handled correctly (for the most part), but will be placed
17876  at the bottom of the page and not under each column.
17877  LaTeX's float mechanism, however, is partly disabled in the current implementat
17878 ion.
17879  At the moment only page-wide floats can be used within the scope of the
17880  environment.
17881 \end_layout
17882
17883 \begin_layout Subsection
17884 Examples
17885 \end_layout
17886
17887 \begin_layout Subsubsection
17888 Two columns
17889 \end_layout
17890
17891 \begin_layout Standard
17892 If you want to have two columns in your text, you have use LaTeX mode to
17893  insert 
17894 \family typewriter
17895
17896 \backslash
17897 begin{multicols}{2}
17898 \family default
17899  at the point where you want the two column layout to start, and then 
17900 \family typewriter
17901
17902 \backslash
17903 end{multicols}
17904 \family default
17905  where you want it to end.
17906  Like this:
17907 \end_layout
17908
17909 \begin_layout Standard
17910 \begin_inset ERT
17911 status inlined
17912
17913 \begin_layout Standard
17914
17915
17916 \backslash
17917 begin{multicols}{2}
17918 \end_layout
17919
17920 \end_inset
17921
17922
17923 \end_layout
17924
17925 \begin_layout Standard
17926 \noindent
17927
17928 \series bold
17929 \size small
17930 The Adventure of the Empty House
17931 \series default
17932
17933 \newline
17934 by 
17935 \noun on
17936 Sir Arthur Conan Doyle
17937 \end_layout
17938
17939 \begin_layout Standard
17940
17941 \size small
17942 It was in the spring of the year 1894 that all London was interested, and
17943  the fashionable world dismayed, by the murder of the Honourable Ronald
17944  Adair under most unusual and inexplicable circumstances.
17945  The public has already learned those particulars of the crime which came
17946  out in the police investigation, but a good deal was suppressed upon that
17947  occasion, since the case for the prosecution was so overwhelmingly strong
17948  that it was not necessary to bring forward all the facts.
17949  Only now, at the end of nearly ten years, am I allowed to supply those
17950  missing links which make up the whole of that remarkable chain.
17951  The crime was of interest in itself, but that interest was as nothing to
17952  me compared to the inconceivable sequel, which afforded me the greatest
17953  shock and surprise of any event in my adventurous life.
17954  Even now, after this long interval, I find myself thrilling as I think
17955  of it, and feeling once more that sudden flood of joy, amazement, and increduli
17956 ty which utterly submerged my mind.
17957  Let me say to that public, which has shown some interest in those glimpses
17958  which I have occasionally given them of the thoughts and actions of a very
17959  remarkable man, that they are not to blame me if I have not shared my knowledge
17960  with them, for I should have considered it my first duty to do so, had
17961  I not been barred by a positive prohibition from his own lips, which was
17962  only withdrawn upon the third of last month.
17963 \end_layout
17964
17965 \begin_layout Standard
17966 \begin_inset ERT
17967 status inlined
17968
17969 \begin_layout Standard
17970
17971
17972 \backslash
17973 end{multicols}
17974 \end_layout
17975
17976 \end_inset
17977
17978
17979 \end_layout
17980
17981 \begin_layout Subsubsection
17982 Multiple columns
17983 \end_layout
17984
17985 \begin_layout Standard
17986 The same pattern is used when you want more than two columns:
17987 \end_layout
17988
17989 \begin_layout Standard
17990 \begin_inset ERT
17991 status inlined
17992
17993 \begin_layout Standard
17994
17995
17996 \backslash
17997 begin{multicols}{3}
17998 \end_layout
17999
18000 \end_inset
18001
18002
18003 \end_layout
18004
18005 \begin_layout Standard
18006
18007 \size footnotesize
18008 It can be imagined that my close intimacy with Sherlock Holmes had interested
18009  me deeply in crime, and that after his disappearance I never failed to
18010  read with care the various problems which came before the public.
18011  And I even attempted, more than once, for my own private satisfaction,
18012  to employ his methods in their solution, though with indifferent success.
18013  There was none, however, which appealed to me like this tragedy of Ronald
18014  Adair.
18015  As I read the evidence at the inquest, which led up to a verdict of willful
18016  murder against some person or persons unknown, I realized more clearly
18017  than I had ever done the loss which the community had sustained by the
18018  death of Sherlock Holmes.
18019  There were points about this strange business which would, I was sure,
18020  have specially appealed to him, and the efforts of the police would have
18021  been supplemented, or more probably anticipated, by the trained observation
18022  and the alert mind of the first criminal agent in Europe.
18023  All day, as I drove upon my round, I turned over the case in my mind and
18024  found no explanation which appeared to me to be adequate.
18025  At the risk of telling a twice-told tale, I will recapitulate the facts
18026  as they were known to the public at the conclusion of the inquest.
18027 \end_layout
18028
18029 \begin_layout Standard
18030 \begin_inset ERT
18031 status inlined
18032
18033 \begin_layout Standard
18034
18035
18036 \backslash
18037 end{multicols}
18038 \end_layout
18039
18040 \end_inset
18041
18042
18043 \end_layout
18044
18045 \begin_layout Standard
18046 You can have more than 3 columns if you want to, but that might not be very
18047  pleasant for the eye.
18048 \end_layout
18049
18050 \begin_layout Subsubsection
18051 Columns inside columns
18052 \end_layout
18053
18054 \begin_layout Standard
18055 You can even have columns inside columns:
18056 \end_layout
18057
18058 \begin_layout Standard
18059 \begin_inset ERT
18060 status inlined
18061
18062 \begin_layout Standard
18063
18064
18065 \backslash
18066 begin{multicols}{2}
18067 \end_layout
18068
18069 \end_inset
18070
18071
18072 \end_layout
18073
18074 \begin_layout Standard
18075
18076 \size footnotesize
18077 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
18078  at that time governor of one of the Australian colonies.
18079  Adair's mother had returned from Australia to undergo the operation for
18080  cataract, and she, her son Ronald, and her daughter Hilda were living together
18081  at 427 Park Lane.
18082 \end_layout
18083
18084 \begin_layout Standard
18085 \begin_inset ERT
18086 status inlined
18087
18088 \begin_layout Standard
18089
18090
18091 \backslash
18092 begin{multicols}{2}
18093 \end_layout
18094
18095 \end_inset
18096
18097
18098 \end_layout
18099
18100 \begin_layout Standard
18101
18102 \size footnotesize
18103 The youth moved in the best society--had, so far as was known, no enemies
18104  and no particular vices.
18105  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
18106  had been broken off by mutual consent some months before, and there was
18107  no sign that it had left any very profound feeling behind it.
18108  For the rest {sic} the man's life moved in a narrow and conventional circle,
18109  for his habits were quiet and his nature unemotional.
18110  Yet it was upon this easy-going young aristocrat that death came, in most
18111  strange and unexpected form, between the hours of ten and eleven-twenty
18112  on the night of March 30, 1894.
18113 \end_layout
18114
18115 \begin_layout Standard
18116 \begin_inset ERT
18117 status inlined
18118
18119 \begin_layout Standard
18120
18121
18122 \backslash
18123 end{multicols}
18124 \end_layout
18125
18126 \end_inset
18127
18128
18129 \end_layout
18130
18131 \begin_layout Standard
18132
18133 \size footnotesize
18134 Ronald Adair was fond of cards--playing continually, but never for such
18135  stakes as would hurt him.
18136  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
18137  It was shown that, after dinner on the day of his death, he had played
18138  a rubber of whist at the latter club.
18139  He had also played there in the afternoon.
18140
18141 \size default
18142  
18143 \size footnotesize
18144 The evidence of those who had played with him-- Mr.
18145  Murray, Sir John Hardy, and Colonel Moran--showed that the game was whist,
18146  and that there was a fairly equal fall of the cards.
18147  Adair might have lost five pounds, but not more.
18148  His fortune was a considerable one, and such a loss could not in any way
18149  affect him.
18150  He had played nearly every day at one club or other, but he was a cautious
18151  player, and usually rose a winner.
18152  It came out in evidence that, in partnership with Colonel Moran, he had
18153  actually won as much as four hundred and twenty pounds in a sitting, some
18154  weeks before, from Godfrey Milner and Lord Balmoral.
18155  So much for his recent history as it came out at the inquest.
18156 \end_layout
18157
18158 \begin_layout Standard
18159 \begin_inset ERT
18160 status inlined
18161
18162 \begin_layout Standard
18163
18164
18165 \backslash
18166 end{multicols}
18167 \end_layout
18168
18169 \end_inset
18170
18171
18172 \end_layout
18173
18174 \begin_layout Standard
18175 Please do read the file 
18176 \family typewriter
18177 examples/multicol.lyx
18178 \family default
18179  for more advanced examples including column and header spacing, vertical
18180  separator lines, and more.
18181 \end_layout
18182
18183 \begin_layout Section
18184 Numbering in the 
18185 \family sans
18186 Enumerate
18187 \family default
18188  Paragraph Environment
18189 \begin_inset OptArg
18190 status collapsed
18191
18192 \begin_layout Standard
18193 Numbering in Enumerate
18194 \end_layout
18195
18196 \end_inset
18197
18198
18199 \end_layout
18200
18201 \begin_layout Standard
18202 by 
18203 \noun on
18204 John Weiss
18205 \end_layout
18206
18207 \begin_layout Standard
18208 \begin_inset VSpace bigskip
18209 \end_inset
18210
18211
18212 \end_layout
18213
18214 \begin_layout Standard
18215 \noindent
18216 The default numbering for the 
18217 \family sans
18218 Enumerate
18219 \family default
18220  paragraph environment begins with Arabic numbers and ends with uppercase
18221  letters.
18222  Suppose, however, you wanted a different type of numbering scheme.
18223  Here's a quickie example of how to change the numbering scheme:
18224 \end_layout
18225
18226 \begin_layout LyX-Code
18227
18228 \backslash
18229 renewcommand{
18230 \backslash
18231 labelenumi}{
18232 \backslash
18233 Roman{enumi}.}
18234 \end_layout
18235
18236 \begin_layout LyX-Code
18237
18238 \backslash
18239 renewcommand{
18240 \backslash
18241 labelenumii}{
18242 \backslash
18243 Alph{enumii}.}
18244 \end_layout
18245
18246 \begin_layout LyX-Code
18247
18248 \backslash
18249 renewcommand{
18250 \backslash
18251 labelenumiii}{
18252 \backslash
18253 arabic{enumiii}.}
18254 \end_layout
18255
18256 \begin_layout LyX-Code
18257
18258 \backslash
18259 renewcommand{
18260 \backslash
18261 labelenumiv}{
18262 \backslash
18263 alph{enumiv}.)}
18264 \end_layout
18265
18266 \begin_layout Standard
18267 \SpecialChar \ldots{}
18268  which changes the numbering scheme to uppercase Roman numerals, uppercase
18269  letters, Arabic numbers, and lowercase letter.
18270 \end_layout
18271
18272 \begin_layout Standard
18273 Additionally, the previous example also adds a little bit extra to the numbering
18274  scheme.
18275  For example, the first level label actually looks like: 
18276 \begin_inset Quotes eld
18277 \end_inset
18278
18279 I.
18280 \begin_inset Quotes erd
18281 \end_inset
18282
18283 .
18284  For ease of reading, we'll describe what the numbering schemes look like
18285  using a notation something like this: <
18286 \begin_inset Quotes eld
18287 \end_inset
18288
18289 I.
18290 \begin_inset Quotes erd
18291 \end_inset
18292
18293 ,\InsetSpace ~
18294
18295 \begin_inset Quotes erd
18296 \end_inset
18297
18298 A.
18299 \begin_inset Quotes erd
18300 \end_inset
18301
18302 ,\InsetSpace ~
18303
18304 \begin_inset Quotes erd
18305 \end_inset
18306
18307 1.
18308 \begin_inset Quotes erd
18309 \end_inset
18310
18311 ,\InsetSpace ~
18312
18313 \begin_inset Quotes eld
18314 \end_inset
18315
18316 a.)
18317 \begin_inset Quotes erd
18318 \end_inset
18319
18320 >.
18321  
18322 \end_layout
18323
18324 \begin_layout Standard
18325 As you can see in the example, there is a label command for each nesting
18326  level, 
18327 \family typewriter
18328
18329 \backslash
18330 labelenumi
18331 \family default
18332  \SpecialChar \ldots{}
18333  
18334 \family typewriter
18335
18336 \backslash
18337 labelenumiv
18338 \family default
18339 , as well as a counter, 
18340 \family typewriter
18341 enumi
18342 \family default
18343  \SpecialChar \ldots{}
18344  
18345 \family typewriter
18346 enumiv
18347 \family default
18348 .
18349  There are also five 
18350 \begin_inset Quotes eld
18351 \end_inset
18352
18353 number printing
18354 \begin_inset Quotes erd
18355 \end_inset
18356
18357  commands, 
18358 \family typewriter
18359
18360 \backslash
18361 arabic{}
18362 \family default
18363
18364 \family typewriter
18365
18366 \backslash
18367 roman{}
18368 \family default
18369
18370 \family typewriter
18371
18372 \backslash
18373 Roman{}
18374 \family default
18375
18376 \family typewriter
18377
18378 \backslash
18379 alph{}
18380 \family default
18381 , and 
18382 \family typewriter
18383
18384 \backslash
18385 Alph{}
18386 \family default
18387 , each of which take one counter as an argument.
18388  You can add characters before or after these, but there's no need to add
18389  spaces.
18390 \end_layout
18391
18392 \begin_layout Standard
18393 You can get really fancy with these.
18394  For example:
18395 \end_layout
18396
18397 \begin_layout LyX-Code
18398
18399 \backslash
18400 renewcommand{
18401 \backslash
18402 labelenumi}{
18403 \backslash
18404 #
18405 \backslash
18406 Alph{enumi}
18407 \backslash
18408 #}
18409 \end_layout
18410
18411 \begin_layout LyX-Code
18412
18413 \backslash
18414 renewcommand{
18415 \backslash
18416 labelenumii}{
18417 \backslash
18418 Alph{enumi}.
18419 \backslash
18420 arabic{enumii}}
18421 \end_layout
18422
18423 \begin_layout LyX-Code
18424
18425 \backslash
18426 renewcommand{
18427 \backslash
18428 labelenumiii}{
18429 \backslash
18430 alph{enumiii}+}
18431 \end_layout
18432
18433 \begin_layout LyX-Code
18434
18435 \backslash
18436 renewcommand{
18437 \backslash
18438 labelenumiv}{(
18439 \backslash
18440 roman{enumiv})}
18441 \end_layout
18442
18443 \begin_layout Standard
18444 produces the somewhat out of hand numbering scheme: <
18445 \begin_inset Quotes eld
18446 \end_inset
18447
18448 #A#
18449 \begin_inset Quotes erd
18450 \end_inset
18451
18452 ,\InsetSpace ~
18453
18454 \begin_inset Quotes erd
18455 \end_inset
18456
18457 A.1
18458 \begin_inset Quotes erd
18459 \end_inset
18460
18461 ,\InsetSpace ~
18462
18463 \begin_inset Quotes erd
18464 \end_inset
18465
18466 a+
18467 \begin_inset Quotes erd
18468 \end_inset
18469
18470 ,\InsetSpace ~
18471
18472 \begin_inset Quotes eld
18473 \end_inset
18474
18475 (i)
18476 \begin_inset Quotes erd
18477 \end_inset
18478
18479 >.
18480  
18481 \end_layout
18482
18483 \begin_layout Standard
18484
18485 \end_layout
18486
18487 \begin_layout Section
18488 Dropped Capitals
18489 \end_layout
18490
18491 \begin_layout Standard
18492 by 
18493 \noun on
18494 Mike Ressler
18495 \end_layout
18496
18497 \begin_layout Standard
18498 \begin_inset VSpace bigskip
18499 \end_inset
18500
18501
18502 \end_layout
18503
18504 \begin_layout Standard
18505 \noindent
18506 \begin_inset ERT
18507 status collapsed
18508
18509 \begin_layout Standard
18510
18511
18512 \backslash
18513 newfont{
18514 \backslash
18515 tmpfont}{cmr17 scaled 2500}{
18516 \backslash
18517 tmpfont T}
18518 \backslash
18519 vspace*{-8.4ex}
18520 \end_layout
18521
18522 \end_inset
18523
18524
18525 \end_layout
18526
18527 \begin_layout Standard
18528 \noindent
18529 \begin_inset ERT
18530 status inlined
18531
18532 \begin_layout Standard
18533
18534
18535 \backslash
18536 hangindent=3.3em 
18537 \backslash
18538 hangafter=-3
18539 \end_layout
18540
18541 \end_inset
18542
18543  hose of you who like the style of old books probably also like 
18544 \begin_inset Quotes eld
18545 \end_inset
18546
18547 dropped capitals
18548 \begin_inset Quotes erd
18549 \end_inset
18550
18551 ---those large capital letters which begin each new chapter or section.
18552  Implementing them with plain LyX/LaTeX is straightforward (assuming you
18553  know some plain TeX!) but does require a lot of work and many iterations,
18554  as you can see by all the ugly TeX-mode stuff at the beginning of this
18555  paragraph.
18556 \end_layout
18557
18558 \begin_layout Standard
18559 \begin_inset ERT
18560 status inlined
18561
18562 \begin_layout Standard
18563
18564
18565 \backslash
18566 verb+
18567 \backslash
18568 bigdrop{-1em}{3}{ptmri}{T}+
18569 \end_layout
18570
18571 \end_inset
18572
18573 here is a much easier way of doing this, of course.
18574  The 
18575 \family typewriter
18576 dropcaps
18577 \family default
18578  (or the newer 
18579 \family typewriter
18580 dropping
18581 \family default
18582 ) package from CTAN allows a simple way to add such letters to your documents.
18583  Since this package is not a standard part of teTeX, I can't demonstrate
18584  it within this document, but if you copy this paragraph to a new document,
18585  delete the 
18586 \begin_inset Quotes eld
18587 \end_inset
18588
18589
18590 \family typewriter
18591
18592 \backslash
18593 verb
18594 \family default
18595
18596 \begin_inset Quotes erd
18597 \end_inset
18598
18599  and the pluses from the TeX code at the beginning of the paragraph, and
18600  add 
18601 \family typewriter
18602
18603 \backslash
18604 usepackage{dropcaps}
18605 \family default
18606  to your LaTeX preamble, you will get a nice Times Roman Italic 
18607 \begin_inset Quotes eld
18608 \end_inset
18609
18610 T
18611 \begin_inset Quotes erd
18612 \end_inset
18613
18614 , whose height is three lines of text and which protrudes 1 em into the
18615  margin.
18616  (Make certain you have copied 
18617 \begin_inset Quotes eld
18618 \end_inset
18619
18620
18621 \family typewriter
18622 dropcaps.sty
18623 \family default
18624
18625 \begin_inset Quotes erd
18626 \end_inset
18627
18628  into a directory where TeX can see it.) The first argument is the amount
18629  of indentation; in this case the negative sign moves it into the margin.
18630  The second argument is the height of the letter in number of lines of text.
18631  The third argument is the font name: virtually anything which has a tfm
18632  file should work (wade through the 
18633 \family typewriter
18634 .../texmf/fonts/tfm
18635 \family default
18636  directory for possibilities).
18637  My personal favorite is 
18638 \begin_inset Quotes eld
18639 \end_inset
18640
18641
18642 \family typewriter
18643 yinit
18644 \family default
18645
18646 \begin_inset Quotes erd
18647 \end_inset
18648
18649 , a fancy German font specifically designed for dropped capitals.
18650  The fourth argument is the letter (or letters) to be dropped.
18651  The 
18652 \family typewriter
18653 dropping
18654 \family default
18655  package also offers the 
18656 \family typewriter
18657
18658 \backslash
18659 bigdrop
18660 \family default
18661  command, as well as a slightly simplified 
18662 \family typewriter
18663
18664 \backslash
18665 dropping
18666 \family default
18667  command.
18668 \end_layout
18669
18670 \begin_layout Section
18671 Non-standard Paragraph Shapes
18672 \end_layout
18673
18674 \begin_layout Standard
18675 by 
18676 \noun on
18677 Mike Ressler
18678 \end_layout
18679
18680 \begin_layout Standard
18681 \begin_inset VSpace bigskip
18682 \end_inset
18683
18684
18685 \end_layout
18686
18687 \begin_layout Standard
18688 \begin_inset ERT
18689 status inlined
18690
18691 \begin_layout Standard
18692
18693
18694 \backslash
18695 begin{sloppypar}
18696 \end_layout
18697
18698 \end_inset
18699
18700
18701 \end_layout
18702
18703 \begin_layout Standard
18704 \begin_inset ERT
18705 status collapsed
18706
18707 \begin_layout Standard
18708
18709
18710 \backslash
18711 newdimen
18712 \backslash
18713 varunit 
18714 \end_layout
18715
18716 \begin_layout Standard
18717
18718
18719 \backslash
18720 setlength{
18721 \backslash
18722 varunit}{4.5in}
18723 \end_layout
18724
18725 \end_inset
18726
18727
18728 \end_layout
18729
18730 \begin_layout Standard
18731 \noindent
18732 \begin_inset ERT
18733 status collapsed
18734
18735 \begin_layout Standard
18736
18737
18738 \backslash
18739 parshape 19 0.45
18740 \backslash
18741 varunit 0.332
18742 \backslash
18743 varunit
18744 \end_layout
18745
18746 \begin_layout Standard
18747
18748 0.40
18749 \backslash
18750 varunit 0.300
18751 \backslash
18752 varunit
18753 \end_layout
18754
18755 \begin_layout Standard
18756
18757 0.35
18758 \backslash
18759 varunit 0.293
18760 \backslash
18761 varunit
18762 \end_layout
18763
18764 \begin_layout Standard
18765
18766 0.30
18767 \backslash
18768 varunit 0.300
18769 \backslash
18770 varunit
18771 \end_layout
18772
18773 \begin_layout Standard
18774
18775 0.25
18776 \backslash
18777 varunit 0.317
18778 \backslash
18779 varunit
18780 \end_layout
18781
18782 \begin_layout Standard
18783
18784 0.20
18785 \backslash
18786 varunit 0.342
18787 \backslash
18788 varunit
18789 \end_layout
18790
18791 \begin_layout Standard
18792
18793 0.15
18794 \backslash
18795 varunit 0.373
18796 \backslash
18797 varunit
18798 \end_layout
18799
18800 \begin_layout Standard
18801
18802 0.10
18803 \backslash
18804 varunit 0.410
18805 \backslash
18806 varunit
18807 \end_layout
18808
18809 \begin_layout Standard
18810
18811 0.05
18812 \backslash
18813 varunit 0.453
18814 \backslash
18815 varunit
18816 \end_layout
18817
18818 \begin_layout Standard
18819
18820 0.00
18821 \backslash
18822 varunit 0.500
18823 \backslash
18824 varunit
18825 \end_layout
18826
18827 \begin_layout Standard
18828
18829 0.05
18830 \backslash
18831 varunit 0.453
18832 \backslash
18833 varunit
18834 \end_layout
18835
18836 \begin_layout Standard
18837
18838 0.10
18839 \backslash
18840 varunit 0.410
18841 \backslash
18842 varunit
18843 \end_layout
18844
18845 \begin_layout Standard
18846
18847 0.15
18848 \backslash
18849 varunit 0.373
18850 \backslash
18851 varunit
18852 \end_layout
18853
18854 \begin_layout Standard
18855
18856 0.20
18857 \backslash
18858 varunit 0.342
18859 \backslash
18860 varunit
18861 \end_layout
18862
18863 \begin_layout Standard
18864
18865 0.25
18866 \backslash
18867 varunit 0.317
18868 \backslash
18869 varunit
18870 \end_layout
18871
18872 \begin_layout Standard
18873
18874 0.30
18875 \backslash
18876 varunit 0.300
18877 \backslash
18878 varunit
18879 \end_layout
18880
18881 \begin_layout Standard
18882
18883 0.35
18884 \backslash
18885 varunit 0.293
18886 \backslash
18887 varunit
18888 \end_layout
18889
18890 \begin_layout Standard
18891
18892 0.40
18893 \backslash
18894 varunit 0.300
18895 \backslash
18896 varunit
18897 \end_layout
18898
18899 \begin_layout Standard
18900
18901 0.45
18902 \backslash
18903 varunit 0.332
18904 \backslash
18905 varunit
18906 \end_layout
18907
18908 \begin_layout Standard
18909
18910 \end_layout
18911
18912 \end_inset
18913
18914 There are times when the tyranny of rectangular paragraphs must be overthrown.
18915  In such situations, a call to the delightful plain TeX command 
18916 \family typewriter
18917
18918 \backslash
18919 parshape
18920 \family default
18921  is called for.
18922  As you can see, completely arbitrary shapes can be laid out with a suitable
18923  set of linelength definitions.
18924  While this parshape may look a bit silly and useless, one could conceive
18925  of situations such as finely tuned dropped capitals, word wrapping around
18926  non-rectangular graphics, etc.
18927  which will benefit from such handcrafting.
18928 \end_layout
18929
18930 \begin_layout Standard
18931 \begin_inset VSpace bigskip
18932 \end_inset
18933
18934
18935 \end_layout
18936
18937 \begin_layout Standard
18938 The syntax is 
18939 \family typewriter
18940
18941 \backslash
18942 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
18943  #nindent #nlength
18944 \family default
18945 , where 
18946 \family typewriter
18947 numlines
18948 \family default
18949  is the number of lines of text which define the paragraph.
18950  If there turn out to be fewer lines, the shape is truncated; if there are
18951  more, the excess lines have the same dimensions as the last line of the
18952  definition.
18953  The 
18954 \family typewriter
18955 #nindent
18956 \family default
18957  and 
18958 \family typewriter
18959 #nlength
18960 \family default
18961  entries specify the indentation of the line from the left margin, and the
18962  length of the line as measured from that point.
18963  The shape applies only to the current paragraph; everything is reset to
18964  normal for the next paragraph.
18965 \end_layout
18966
18967 \begin_layout Standard
18968 \begin_inset ERT
18969 status inlined
18970
18971 \begin_layout Standard
18972
18973
18974 \backslash
18975 end{sloppypar}
18976 \end_layout
18977
18978 \end_inset
18979
18980
18981 \end_layout
18982
18983 \begin_layout Section
18984 Summary
18985 \end_layout
18986
18987 \begin_layout Standard
18988 As you can see, the examples in this section range from the useful to the
18989  whimsical.
18990  While I don't expect that anyone will ever need the paragraph shape demonstrate
18991 d in the last section, the important point is that you can do almost anything
18992  you want in LyX if you are willing to figure out how to do it in TeX and
18993  LaTeX.
18994  TeX is a fantastically powerful typesetting system and all that power is
18995  available to you since LyX uses it as its backend.
18996  Happy LyXing!
18997 \end_layout
18998
18999 \end_body
19000 \end_document