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