]> git.lyx.org Git - lyx.git/blob - lib/doc/Extended.lyx
de UserGuide.lyx: remove keyboard shortcut table that was only valid for certain...
[lyx.git] / lib / doc / Extended.lyx
1 #LyX 1.5.0rc1 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 "usti" 
41 \author "Richard Heck" 
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 iopart
6808 \end_layout
6809
6810 \begin_layout Standard
6811 by 
6812 \noun on
6813 Uwe Stöhr
6814 \end_layout
6815
6816 \begin_layout Subsection
6817 Overview
6818 \end_layout
6819
6820 \begin_layout Standard
6821 The iopart package provides a document class to create electronic manuscript
6822  submission to the journals published by the Institute of Physics.
6823  Instructions for the authors how to create a paper using the iopart class
6824  can be downloaded together with the iopart package from the site 
6825 \begin_inset LatexCommand url
6826 target "ftp://ftp.iop.org/pub/journals/latex2e"
6827
6828 \end_inset
6829
6830 .
6831 \end_layout
6832
6833 \begin_layout Subsection
6834 Writing a paper
6835 \end_layout
6836
6837 \begin_layout Standard
6838 The easiest way to write a paper is to start with the file 
6839 \emph on
6840 IOP-article.lyx
6841 \emph default
6842  that is available in LyX's examples files folder.
6843  Open this file, save it under a new name, and start writing.
6844  The example file explains how to use the special text environments.
6845  Here are the most important advices:
6846 \end_layout
6847
6848 \begin_layout Itemize
6849 To be able to compile your document to a PDF, PS, or DVI, assure that the
6850  two options 
6851 \family sans
6852 Use AMS math package
6853 \family default
6854  in the document settings under 
6855 \family sans
6856 Math Options
6857 \family default
6858  are not used!
6859 \end_layout
6860
6861 \begin_layout Itemize
6862
6863 \size normal
6864 The title environment defines the kind of your paper.
6865  So use one of the following environments for the title:
6866 \end_layout
6867
6868 \begin_deeper
6869 \begin_layout Itemize
6870
6871 \family sans
6872 \size normal
6873 Title
6874 \family default
6875  for a Paper
6876 \end_layout
6877
6878 \begin_layout Itemize
6879
6880 \family sans
6881 \size normal
6882 Review
6883 \family default
6884  for a Review
6885 \end_layout
6886
6887 \begin_layout Itemize
6888
6889 \family sans
6890 \size normal
6891 Topical
6892 \family default
6893  for a Topical review
6894 \end_layout
6895
6896 \begin_layout Itemize
6897
6898 \family sans
6899 \size normal
6900 Comment
6901 \family default
6902  for a Comment
6903 \end_layout
6904
6905 \begin_layout Itemize
6906
6907 \family sans
6908 \size normal
6909 Note
6910 \family default
6911  for a Note
6912 \end_layout
6913
6914 \begin_layout Itemize
6915
6916 \family sans
6917 \size normal
6918 Paper
6919 \family default
6920  for a Paper (same as Title)
6921 \end_layout
6922
6923 \begin_layout Itemize
6924
6925 \family sans
6926 \size normal
6927 Prelim
6928 \family default
6929  for a Preliminary communication
6930 \end_layout
6931
6932 \begin_layout Itemize
6933
6934 \family sans
6935 \size normal
6936 Rapid
6937 \family default
6938  for a Rapid communication
6939 \end_layout
6940
6941 \begin_layout Itemize
6942
6943 \family sans
6944 \size normal
6945 Letter
6946 \family default
6947  for a Letter to the editor
6948 \end_layout
6949
6950 \end_deeper
6951 \begin_layout Itemize
6952
6953 \size normal
6954 All title environments except of 
6955 \family sans
6956 Letter
6957 \family default
6958  can have an optional short title.
6959 \end_layout
6960
6961 \begin_layout Itemize
6962 There is a general title environment 
6963 \family sans
6964 Article
6965 \family default
6966  which is not directly supported by the LyX.
6967  This can be used as ERT when your document doesn't fit into one of the
6968  other title types.
6969 \end_layout
6970
6971 \begin_layout Standard
6972 For more informations like hints for special table and formula formatting,
6973  look at the IOP author guidelines.
6974 \end_layout
6975
6976 \begin_layout Section
6977 Kluwer
6978 \end_layout
6979
6980 \begin_layout Standard
6981 by 
6982 \noun on
6983 Panayotis Papasotiriou
6984 \end_layout
6985
6986 \begin_layout Subsection
6987 Overview
6988 \end_layout
6989
6990 \begin_layout Standard
6991 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
6992  that facilitates electronic manuscript submission to the journals they
6993  publish.
6994  Most known of them (at least in my domain of interest) are 
6995 \emph on
6996 Astrophysics and Space Science
6997 \emph default
6998  and 
6999 \emph on
7000 Solar Physics
7001 \emph default
7002 , but there are many others (see a complete list at 
7003 \begin_inset LatexCommand url
7004 target "http://www.wkap.nl/jrnllist.htm/JRNLHOME"
7005
7006 \end_inset
7007
7008 ).
7009  The Kluwer package may be downloaded from the site 
7010 \begin_inset LatexCommand url
7011 target "http://www.wkap.nl/kaphtml.htm/STYLEFILES"
7012
7013 \end_inset
7014
7015 .
7016  A complete user guide is contained in that package (but it can also be
7017  downloaded separately).
7018 \end_layout
7019
7020 \begin_layout Standard
7021 LyX supports many features of the package but not everything.
7022  However, the ERT needed is reduced to some 
7023 \begin_inset Quotes eld
7024 \end_inset
7025
7026 peculiar
7027 \begin_inset Quotes erd
7028 \end_inset
7029
7030  commands of the package (see\InsetSpace ~
7031
7032 \begin_inset LatexCommand ref
7033 reference "subsec:kluwer_peculiarities"
7034
7035 \end_inset
7036
7037 ).
7038  I have recently used LyX to write an article submitted to the 
7039 \emph on
7040 Astrophysics and Space Science
7041 \emph default
7042  without any problem.
7043 \end_layout
7044
7045 \begin_layout Subsection
7046 Writing a paper
7047 \end_layout
7048
7049 \begin_layout Standard
7050 The easiest way to write a paper is to start with the Kluwer template file.
7051  Click on 
7052 \family sans
7053 File\SpecialChar \menuseparator
7054 New from
7055 \family default
7056  
7057 \family sans
7058 \bar under
7059 T
7060 \bar default
7061 emplate
7062 \family default
7063 , then choose the 
7064 \family typewriter
7065 kluwer.lyx
7066 \family default
7067  template.
7068  This will give an (almost) empty document that includes the most common
7069  fields found in a manuscript and a short description of their use.
7070  As in most templates, simply overwrite the existing text (including the
7071  brackets, 
7072 \family typewriter
7073 <>
7074 \family default
7075 ) with the correct information.
7076 \end_layout
7077
7078 \begin_layout Subsection
7079 Preparing a paper for submission
7080 \end_layout
7081
7082 \begin_layout Standard
7083 As in the AASTeX package, before you submit your paper to a journal you
7084  must 
7085 \begin_inset Quotes eld
7086 \end_inset
7087
7088 postprocess
7089 \begin_inset Quotes erd
7090 \end_inset
7091
7092  it as follows.
7093 \end_layout
7094
7095 \begin_layout Enumerate
7096 Export your paper as a LaTeX file.
7097  To do this, click on 
7098 \family sans
7099 \bar under
7100 F
7101 \bar default
7102 ile\SpecialChar \menuseparator
7103
7104 \bar under
7105 E
7106 \bar default
7107 xport\SpecialChar \menuseparator
7108
7109 \bar under
7110 L
7111 \bar default
7112 aTeX
7113 \family default
7114 .
7115  
7116 \end_layout
7117
7118 \begin_layout Enumerate
7119 Edit the resulting 
7120 \family typewriter
7121 .tex
7122 \family default
7123  file with a text editor and make the following changes
7124 \end_layout
7125
7126 \begin_deeper
7127 \begin_layout Enumerate
7128 remove the comment lines before the 
7129 \family typewriter
7130
7131 \backslash
7132 documentclass
7133 \family default
7134  command,
7135 \end_layout
7136
7137 \begin_layout Enumerate
7138 remove everything between (and including) the 
7139 \family typewriter
7140
7141 \backslash
7142 makeatletter
7143 \family default
7144  and 
7145 \family typewriter
7146
7147 \backslash
7148 makeatother
7149 \family default
7150  commands, except for any commands you specifically put into the LaTeX preamble.
7151 \end_layout
7152
7153 \begin_layout Standard
7154 Save the resulting 
7155 \family typewriter
7156 .tex
7157 \family default
7158  file.
7159 \end_layout
7160
7161 \end_deeper
7162 \begin_layout Enumerate
7163 Run the 
7164 \family typewriter
7165 .tex
7166 \family default
7167  file through LaTeX as many times as necessary (usually up to three).
7168 \end_layout
7169
7170 \begin_layout Enumerate
7171 View the resulting 
7172 \family typewriter
7173 .dvi
7174 \family default
7175  document using, e.\InsetSpace \thinspace{}
7176 g., 
7177 \family sans
7178 xdvi
7179 \family default
7180 , and check if everything is OK (it should, if you didn't make any mistake).
7181 \end_layout
7182
7183 \begin_layout Subsection
7184 \begin_inset Quotes eld
7185 \end_inset
7186
7187 Peculiarities
7188 \begin_inset Quotes erd
7189 \end_inset
7190
7191  of the Kluwer package
7192 \begin_inset LatexCommand label
7193 name "subsec:kluwer_peculiarities"
7194
7195 \end_inset
7196
7197
7198 \end_layout
7199
7200 \begin_layout Standard
7201 The Kluwer package has the following 
7202 \begin_inset Quotes eld
7203 \end_inset
7204
7205 peculiarities
7206 \begin_inset Quotes erd
7207 \end_inset
7208
7209 .
7210 \end_layout
7211
7212 \begin_layout Enumerate
7213 It is possible to write multiple articles in the same LaTeX file
7214 \begin_inset Foot
7215 status collapsed
7216
7217 \begin_layout Standard
7218 I can't imagine any good reason to do this.
7219 \end_layout
7220
7221 \end_inset
7222
7223 .
7224  Each article must be included in the environment 
7225 \begin_inset Quotes eld
7226 \end_inset
7227
7228 article
7229 \begin_inset Quotes erd
7230 \end_inset
7231
7232 .
7233  Unfortunately, this environment cannot be omitted, even if you write just
7234  one article.
7235  Therefore, each article starts with the command 
7236 \family typewriter
7237
7238 \backslash
7239 begin{article}
7240 \family default
7241  and, obviously, ends with the command 
7242 \family typewriter
7243
7244 \backslash
7245 end{article}
7246 \family default
7247 .
7248  Although this can be implemented in LyX, I didn't included it, since it
7249  looks ugly and can confuse the novice user.
7250  Therefore, you need to enter them directly and mark them as LaTeX code
7251  (the well-known 
7252 \begin_inset Quotes eld
7253 \end_inset
7254
7255 ERT
7256 \begin_inset Quotes erd
7257 \end_inset
7258
7259 ).
7260 \end_layout
7261
7262 \begin_layout Enumerate
7263 Information given at the beginning of the article (i.e., title, subtitle,
7264  author, institution, running title, running author, abstract and keywords)
7265  must be included in an environment called 
7266 \begin_inset Quotes eld
7267 \end_inset
7268
7269 opening
7270 \begin_inset Quotes erd
7271 \end_inset
7272
7273 .
7274  This is not implemented in LyX, so you must enter title, subtitle etc.\InsetSpace ~
7275 between
7276  two ERT lines (
7277 \family typewriter
7278
7279 \backslash
7280 begin{opening}
7281 \family default
7282  and 
7283 \family typewriter
7284
7285 \backslash
7286 end{opening}
7287 \family default
7288 ).
7289 \end_layout
7290
7291 \begin_layout Enumerate
7292 According to the user manual, the label of each bibliography item must be
7293  written as 
7294 \family typewriter
7295
7296 \backslash
7297 protect
7298 \backslash
7299 citeauthoryear{
7300 \family default
7301 \emph on
7302 author(s)
7303 \family typewriter
7304 \emph default
7305 }{
7306 \family default
7307 \emph on
7308 year
7309 \family typewriter
7310 \emph default
7311 }
7312 \family default
7313 .
7314 \end_layout
7315
7316 \begin_layout Standard
7317 The 
7318 \family typewriter
7319 kluwer.lyx
7320 \family default
7321  template takes care of all these 
7322 \begin_inset Quotes eld
7323 \end_inset
7324
7325 peculiarities
7326 \begin_inset Quotes erd
7327 \end_inset
7328
7329 .
7330  If you start a new paper using this template you don't need to do anything
7331  special.
7332  Just 
7333 \end_layout
7334
7335 \begin_layout Enumerate
7336 don't delete the ERT included in the template, and
7337 \end_layout
7338
7339 \begin_layout Enumerate
7340 copy the example bibliography item included in the template and modify it
7341  as necessary to enter new bibliography items.
7342 \end_layout
7343
7344 \begin_layout Section
7345 Koma-Script
7346 \end_layout
7347
7348 \begin_layout Standard
7349 by 
7350 \noun on
7351 Bernd Rellermeyer
7352 \end_layout
7353
7354 \begin_layout Subsection
7355 Overview
7356 \end_layout
7357
7358 \begin_layout Standard
7359 The LyX document classes 
7360 \emph on
7361 article (koma-script)
7362 \emph default
7363
7364 \emph on
7365 report (koma-script)
7366 \emph default
7367
7368 \emph on
7369 book
7370 \emph default
7371  
7372 \emph on
7373 (koma-script)
7374 \emph default
7375 , and 
7376 \emph on
7377 letter
7378 \emph default
7379  
7380 \emph on
7381 (koma-script)
7382 \emph default
7383  correspond to the LaTeX document classes 
7384 \family typewriter
7385 scrartcl.cls
7386 \family default
7387
7388 \family typewriter
7389 scrreprt.cls
7390 \family default
7391
7392 \family typewriter
7393 scrbook.cls
7394 \family default
7395 , and 
7396 \family typewriter
7397 scrlettr.cls
7398 \family default
7399 , resp.\InsetSpace ~
7400 of the Koma-Script family.
7401  They are replacements for the standard document classes 
7402 \family typewriter
7403 article.cls
7404 \family default
7405
7406 \family typewriter
7407 report.cls
7408 \family default
7409
7410 \family typewriter
7411 book.cls
7412 \family default
7413  and 
7414 \family typewriter
7415 letter.cls
7416 \family default
7417 , resp., and fit better to European typography conventions in a number of
7418  points.
7419 \end_layout
7420
7421 \begin_layout Itemize
7422 Standard character size is 11pt in 
7423 \emph on
7424 article (koma-script)
7425 \emph default
7426
7427 \emph on
7428 report (koma-script)
7429 \emph default
7430 , and 
7431 \emph on
7432 book (koma-script)
7433 \emph default
7434 , and 12pt in 
7435 \emph on
7436 letter (koma-script)
7437 \emph default
7438 .
7439 \end_layout
7440
7441 \begin_layout Itemize
7442 Headings, labels of the description environment, and a number of elements
7443  of the 
7444 \emph on
7445 letter (koma-script)
7446 \emph default
7447  document class are set in a bold sans serif font.
7448 \begin_inset Foot
7449 status collapsed
7450
7451 \begin_layout Standard
7452 There is a big difference between the bold sans serif old cm fonts and new
7453  ec fonts, especially in the appearance of headings.
7454  In comparison, the ec bold sans serif fonts look a bit thin.
7455  Here the LaTeX package 
7456 \family typewriter
7457 cmsd.sty by
7458 \family default
7459  
7460 \shape smallcaps
7461 Walter Schmidt
7462 \shape default
7463  helps to produce the 
7464 \begin_inset Quotes eld
7465 \end_inset
7466
7467 usual
7468 \begin_inset Quotes erd
7469 \end_inset
7470
7471  appearance when using the ec fonts.
7472 \end_layout
7473
7474 \end_inset
7475
7476  The numbering of chapter headings is made in the same way as the numbering
7477  of section headings, that is without the extra line 
7478 \begin_inset Quotes eld
7479 \end_inset
7480
7481 Chapter\SpecialChar \ldots{}
7482
7483 \begin_inset Quotes erd
7484 \end_inset
7485
7486 .
7487  In addition, the appearance of the headings can be modified by using a
7488  number of options (in LyX to be entered in the field 
7489 \family sans
7490 E
7491 \bar under
7492 x
7493 \bar default
7494 tra\InsetSpace ~
7495 Options
7496 \family default
7497  of the dialog 
7498 \family sans
7499 \bar under
7500 L
7501 \bar default
7502 ayout\SpecialChar \menuseparator
7503
7504 \bar under
7505 D
7506 \bar default
7507 ocument
7508 \family default
7509 ).
7510  A detailed German description of these options can be found in the Koma-Script
7511  documentation 
7512 \emph on
7513 scrguide
7514 \emph default
7515 .
7516 \end_layout
7517
7518 \begin_layout Itemize
7519 The main means in the Koma-Script document classes to design the type area
7520  are the options 
7521 \family sans
7522 BCOR
7523 \family default
7524  and 
7525 \family sans
7526 DIV
7527 \family default
7528  (in LyX to be entered in the extra class options field in the dialog 
7529 \family sans
7530 \bar under
7531 D
7532 \bar default
7533 ocument\SpecialChar \menuseparator
7534
7535 \bar under
7536 S
7537 \bar default
7538 ettings
7539 \family default
7540 ).
7541  They make a clearer modification of page margins possible as do the options
7542  of the dialog 
7543 \family sans
7544 \bar under
7545 D
7546 \bar default
7547 ocument\SpecialChar \menuseparator
7548
7549 \bar under
7550 S
7551 \bar default
7552 ettings
7553 \family default
7554 .
7555  A detailed German description of these and other type area options can
7556  be found in the Koma-Script documentation 
7557 \emph on
7558 scrguide
7559 \emph default
7560 .
7561 \end_layout
7562
7563 \begin_layout Itemize
7564 The LaTeX document classes of the Koma-Script family define a number of
7565  additional commands.
7566  Those part of it which makes sense in LyX is implemented in corresponding
7567  paragraph types.
7568 \end_layout
7569
7570 \begin_layout Standard
7571 A detailed German description of the LaTeX document classes of the Koma-Script
7572  family can be found in the Koma-Script documentation 
7573 \emph on
7574 scrguide
7575 \emph default
7576 .
7577 \begin_inset Foot
7578 status collapsed
7579
7580 \begin_layout Standard
7581 There is an English translation 
7582 \emph on
7583 screnggu
7584 \emph default
7585 , but it is not a complete one.
7586 \end_layout
7587
7588 \end_inset
7589
7590  The following sections describe only those aspects, which are relevant
7591  in LyX.
7592 \end_layout
7593
7594 \begin_layout Subsection
7595 article (koma-script), report (koma-script), and book (koma-script)
7596 \end_layout
7597
7598 \begin_layout Standard
7599 The document classes 
7600 \emph on
7601 article (koma-script)
7602 \emph default
7603
7604 \emph on
7605 report (koma-script)
7606 \emph default
7607 , and 
7608 \emph on
7609 book
7610 \emph default
7611  
7612 \emph on
7613 (koma-script)
7614 \emph default
7615  are implemented in the layout files 
7616 \family typewriter
7617 scrartcl.layout
7618 \family default
7619
7620 \family typewriter
7621 scrreprt.layout
7622 \family default
7623 , and 
7624 \family typewriter
7625 scrbook.layout
7626 \family default
7627 , resp.
7628  They contain all the paragraph types of the corresponding standard document
7629  classes 
7630 \emph on
7631 article
7632 \emph default
7633
7634 \emph on
7635 report
7636 \emph default
7637 , and 
7638 \emph on
7639 book
7640 \emph default
7641 , resp., partly modified, with the exception of the LyX specific 
7642 \family sans
7643 List
7644 \family default
7645 -type, which is replaced by the new 
7646 \family sans
7647 Labeling
7648 \family default
7649 -type having the same functionality.
7650  Beside the 
7651 \family sans
7652 Labeling
7653 \family default
7654 -Type there is a number of new paragraph types added.
7655  They are 
7656 \emph on
7657 not
7658 \emph default
7659  part of 
7660 \emph on
7661 letter (koma-script)
7662 \emph default
7663 .
7664 \end_layout
7665
7666 \begin_layout Itemize
7667
7668 \family sans
7669 Addpart, Addchap
7670 \family default
7671
7672 \family sans
7673 Addsec
7674 \family default
7675 : are equivalents to 
7676 \family sans
7677 Part*, Chapter*
7678 \family default
7679  and 
7680 \family sans
7681 Section*
7682 \family default
7683 , resp., additionally inserting an entry in the table of contents.
7684  
7685 \family sans
7686 Addpart
7687 \family default
7688  and 
7689 \family sans
7690 Addchap
7691 \family default
7692  are not contained in 
7693 \emph on
7694 article (koma-script)
7695 \emph default
7696 .
7697 \end_layout
7698
7699 \begin_layout Itemize
7700
7701 \family sans
7702 Addchap*
7703 \family default
7704
7705 \family sans
7706 Addsec*
7707 \family default
7708 : behave exactly as 
7709 \family sans
7710 Addchap
7711 \family default
7712  and 
7713 \family sans
7714 Addsec
7715 \family default
7716 , resp., additionally clearing running heads.
7717  
7718 \family sans
7719 Addchap*
7720 \family default
7721  is not contained in 
7722 \emph on
7723 article (koma-script)
7724 \emph default
7725 .
7726 \begin_inset Foot
7727 status collapsed
7728
7729 \begin_layout Standard
7730 There is also an 
7731 \family typewriter
7732
7733 \backslash
7734 addpart*
7735 \family default
7736  command in 
7737 \emph on
7738 book (koma-script)
7739 \emph default
7740  and in 
7741 \emph on
7742 report (koma-script)
7743 \emph default
7744 , but since this is identical to 
7745 \family sans
7746 Part*
7747 \family default
7748 , is has not been implemented in LyX.
7749 \end_layout
7750
7751 \end_inset
7752
7753
7754 \end_layout
7755
7756 \begin_layout Itemize
7757
7758 \family sans
7759 Minisec
7760 \family default
7761 : generates a heading directly above the following paragraph in the standard
7762  character size without affecting the structure of the document.
7763 \end_layout
7764
7765 \begin_layout Itemize
7766
7767 \family sans
7768 Captionabove
7769 \family default
7770  and 
7771 \family sans
7772 Captionbelow
7773 \family default
7774  are special captions which respect the different space settings needed
7775  for captions placed above or below an element (if you follow strict typographic
7776  rules, you might want to place table captions always above the table).
7777  You can also use the class option 
7778 \family typewriter
7779 tablecaptionsabove
7780 \family default
7781 , which will switch 
7782 \family sans
7783 caption
7784 \family default
7785  to 
7786 \family sans
7787 captionabove
7788 \family default
7789  for tables and 
7790 \family sans
7791 captionbelow
7792 \family default
7793  for figures.
7794  You need at least Koma-Script version 2.8q to use this.
7795 \end_layout
7796
7797 \begin_layout Itemize
7798
7799 \family sans
7800 Dictum
7801 \family default
7802 : can be used to set a bonmot, e.
7803 \begin_inset ERT
7804 status collapsed
7805
7806 \begin_layout Standard
7807
7808
7809 \backslash
7810 ,
7811 \end_layout
7812
7813 \end_inset
7814
7815 g.
7816 \begin_inset ERT
7817 status collapsed
7818
7819 \begin_layout Standard
7820
7821
7822 \backslash
7823  
7824 \end_layout
7825
7826 \end_inset
7827
7828 at the beginning of a chapter.
7829  If you use the optional argument (
7830 \family sans
7831 \bar under
7832 I
7833 \bar default
7834 nsert\SpecialChar \menuseparator
7835 Short\InsetSpace ~
7836 Title
7837 \family default
7838 ), you can insert the dictum's author there.
7839  Dictum and author are separated by a line.
7840  You need at least Koma-Script version 2.8q to use this.
7841  
7842 \family sans
7843 Dictum
7844 \family default
7845  is not contained in 
7846 \emph on
7847 article (koma-script)
7848 \emph default
7849 .
7850 \end_layout
7851
7852 \begin_layout Standard
7853 The following types, together with the standard types 
7854 \family sans
7855 Title
7856 \family default
7857
7858 \family sans
7859 Author
7860 \family default
7861 , and 
7862 \family sans
7863 Date
7864 \family default
7865 , form the title area of the document.
7866  They must be entered ahead of the first 
7867 \begin_inset Quotes eld
7868 \end_inset
7869
7870 ordinary
7871 \begin_inset Quotes erd
7872 \end_inset
7873
7874  paragraph.
7875 \begin_inset Foot
7876 status collapsed
7877
7878 \begin_layout Standard
7879 The corresponding LaTeX commands must appear before the 
7880 \family typewriter
7881
7882 \backslash
7883 maketitle
7884 \family default
7885  command.
7886 \end_layout
7887
7888 \end_inset
7889
7890  When such a type is used more than once, the latter usage overwrites the
7891  former one, that means, for every type only the latest usage is valid.
7892  The order of the different types however has, like 
7893 \family sans
7894 Title
7895 \family default
7896
7897 \family sans
7898 Author
7899 \family default
7900 , and 
7901 \family sans
7902 Date
7903 \family default
7904 , no effect on the appearance of the produced document.
7905 \end_layout
7906
7907 \begin_layout Itemize
7908
7909 \family sans
7910 Subject
7911 \family default
7912 : produces a centered paragraph above the ordinary title (
7913 \family sans
7914 Title
7915 \family default
7916
7917 \family sans
7918 Author
7919 \family default
7920
7921 \family sans
7922 Date
7923 \family default
7924 ) for the subject of the document.
7925 \end_layout
7926
7927 \begin_layout Itemize
7928
7929 \family sans
7930 Publishers
7931 \family default
7932 : produces a centered paragraph below the ordinary title (
7933 \family sans
7934 Title
7935 \family default
7936
7937 \family sans
7938 Author
7939 \family default
7940
7941 \family sans
7942 Date
7943 \family default
7944 ) for the publishers' name.
7945 \end_layout
7946
7947 \begin_layout Itemize
7948
7949 \family sans
7950 Dedication
7951 \family default
7952 : in 
7953 \emph on
7954 report (koma-script)
7955 \emph default
7956  and 
7957 \emph on
7958 book (koma-script)
7959 \emph default
7960  produces a centered paragraph on its own page behind the title page, or
7961  in 
7962 \emph on
7963 article (koma-script)
7964 \emph default
7965  produces a centered paragraph below the ordinary title (
7966 \family sans
7967 Title
7968 \family default
7969
7970 \family sans
7971 Author
7972 \family default
7973
7974 \family sans
7975 Date
7976 \family default
7977
7978 \family sans
7979 Publishers
7980 \family default
7981 ) for a dedication.
7982 \end_layout
7983
7984 \begin_layout Itemize
7985
7986 \family sans
7987 Titlehead
7988 \family default
7989 : produces a left aligned paragraph above the ordinary title (
7990 \family sans
7991 Title
7992 \family default
7993
7994 \family sans
7995 Author
7996 \family default
7997
7998 \family sans
7999 Date
8000 \family default
8001
8002 \family sans
8003 Subject
8004 \family default
8005 ) for a document`s head.
8006 \end_layout
8007
8008 \begin_layout Itemize
8009
8010 \family sans
8011 Uppertitleback
8012 \family default
8013 : produces in a double-sided print in 
8014 \emph on
8015 report (koma-script)
8016 \emph default
8017  and 
8018 \emph on
8019 book (koma-script)
8020 \emph default
8021  a left-aligned paragraph at the top of the title page`s back or has no
8022  effect in a single-sided print or in 
8023 \emph on
8024 article (koma-script)
8025 \emph default
8026 .
8027 \end_layout
8028
8029 \begin_layout Itemize
8030
8031 \family sans
8032 Lowertitleback
8033 \family default
8034 : produces in a double-sided print in 
8035 \emph on
8036 report (koma-script)
8037 \emph default
8038  and 
8039 \emph on
8040 book (koma-script)
8041 \emph default
8042  a left-aligned paragraph at the bottom of the title page`s back or has
8043  no effect in a single-sided print or in 
8044 \emph on
8045 article (koma-script)
8046 \emph default
8047 .
8048 \end_layout
8049
8050 \begin_layout Itemize
8051
8052 \family sans
8053 Extratitle
8054 \family default
8055 : produces a special 
8056 \begin_inset Quotes eld
8057 \end_inset
8058
8059 dirty
8060 \begin_inset Quotes erd
8061 \end_inset
8062
8063  page ahead of the actual document containing a paragraph without special
8064  formatting.
8065 \end_layout
8066
8067 \begin_layout Standard
8068 The layout files for the document classes 
8069 \emph on
8070 article (koma-script)
8071 \emph default
8072
8073 \emph on
8074 report (koma-script)
8075 \emph default
8076 , and 
8077 \emph on
8078 book (koma-script)
8079 \emph default
8080  do include the file 
8081 \family typewriter
8082 scrmacros.inc
8083 \family default
8084 .
8085  This is thought of as a place to define your own types.
8086  Copy s
8087 \family typewriter
8088 crmacros.inc
8089 \family default
8090  in your personal layout directory and edit the file!
8091 \end_layout
8092
8093 \begin_layout Subsection
8094 letter (koma-script)
8095 \end_layout
8096
8097 \begin_layout Standard
8098 \begin_inset ERT
8099 status inlined
8100
8101 \begin_layout Standard
8102
8103
8104 \backslash
8105 begin{sloppypar}
8106 \end_layout
8107
8108 \end_inset
8109
8110
8111 \end_layout
8112
8113 \begin_layout Standard
8114 \noindent
8115 The document class 
8116 \emph on
8117 letter (koma-script)
8118 \emph default
8119  is implemented in the layout file 
8120 \family typewriter
8121 scrlettr.layout
8122 \family default
8123 .
8124  It contains all the paragraph types of the corresponding standard document
8125  class 
8126 \emph on
8127 letter
8128 \emph default
8129 , partly modified, with the exception of the LyX specific types 
8130 \family sans
8131 LyX-Code
8132 \family default
8133  and 
8134 \family sans
8135 Comment
8136 \family default
8137  and the 
8138 \family sans
8139 List
8140 \family default
8141  type, which is replaced by the new 
8142 \family sans
8143 Labeling
8144 \family default
8145  type.
8146  In addition, it contains, in contrast to the standard document class, the
8147  standard types 
8148 \family sans
8149 LaTeX
8150 \family default
8151
8152 \family sans
8153 Quotation
8154 \family default
8155
8156 \family sans
8157 Quote
8158 \family default
8159 , and 
8160 \family sans
8161 Verse
8162 \family default
8163 .
8164  Furthermore, there are a number of new letter specific types.
8165 \end_layout
8166
8167 \begin_layout Standard
8168 \begin_inset ERT
8169 status inlined
8170
8171 \begin_layout Standard
8172
8173
8174 \backslash
8175 end{sloppypar}
8176 \end_layout
8177
8178 \end_inset
8179
8180
8181 \end_layout
8182
8183 \begin_layout Standard
8184 The appearance of the letter produced by this document class can be controlled
8185  by a number of LaTeX commands, which you can put in the LaTeX preamble.
8186 \begin_inset Foot
8187 status collapsed
8188
8189 \begin_layout Standard
8190 For example, the standard appearance of the letter`s heading, consisting
8191  of name and address, is quite self-willed.
8192  An 
8193 \begin_inset Quotes eld
8194 \end_inset
8195
8196 ordinary
8197 \begin_inset Quotes erd
8198 \end_inset
8199
8200  heading is produced by the following LaTeX commands in the preamble:
8201 \end_layout
8202
8203 \begin_layout LyX-Code
8204
8205 \backslash
8206 firsthead{
8207 \backslash
8208 parbox[b]{
8209 \backslash
8210 textwidth}
8211 \end_layout
8212
8213 \begin_layout LyX-Code
8214   {
8215 \backslash
8216 ignorespaces 
8217 \backslash
8218 fromname
8219 \backslash
8220
8221 \backslash
8222  
8223 \backslash
8224 ignorespaces 
8225 \backslash
8226 fromaddress}} 
8227 \end_layout
8228
8229 \begin_layout LyX-Code
8230
8231 \backslash
8232 nexthead{
8233 \backslash
8234 parbox[b]{
8235 \backslash
8236 textwidth}
8237 \end_layout
8238
8239 \begin_layout LyX-Code
8240   {
8241 \backslash
8242 ignorespaces 
8243 \backslash
8244 fromname 
8245 \backslash
8246 hfill 
8247 \backslash
8248 ignorespaces 
8249 \backslash
8250 pagename
8251 \backslash
8252  
8253 \backslash
8254 thepage}}
8255 \end_layout
8256
8257 \end_inset
8258
8259  A detailed German description of such LaTeX commands can be found in the
8260  Koma-Script documentation 
8261 \emph on
8262 scrguide
8263 \emph default
8264 .
8265  With it, the letter's author can produce his personal letter layout.
8266 \end_layout
8267
8268 \begin_layout Standard
8269 The types 
8270 \family sans
8271 Letter
8272 \family default
8273  and 
8274 \family sans
8275 Opening
8276 \family default
8277  define the beginning of the letter and must be used in every letter.
8278  To emphasize them in the LyX document class, they are marked with the letter
8279  
8280 \shape italic
8281 L
8282 \shape default
8283  or 
8284 \shape italic
8285 O
8286 \shape default
8287 , resp.\InsetSpace ~
8288 in the left margin.
8289  It is possible to write any number of letters in one file.
8290  An 
8291 \family sans
8292 Opening
8293 \family default
8294  type produces a new letter using the same addressee and a 
8295 \family sans
8296 Letter
8297 \family default
8298  type produces a new addressee.
8299  The types 
8300 \family sans
8301 Closing
8302 \family default
8303
8304 \family sans
8305 PS
8306 \family default
8307
8308 \family sans
8309 CC
8310 \family default
8311 , and 
8312 \family sans
8313 Encl
8314 \family default
8315  are ordinary paragraph types and can also be used several times in one
8316  and the same letter.
8317 \end_layout
8318
8319 \begin_layout Itemize
8320
8321 \family sans
8322 Letter
8323 \family default
8324 : produces a paragraph for the addressee and implicitly defines the beginning
8325  of the letter.
8326 \end_layout
8327
8328 \begin_layout Itemize
8329
8330 \family sans
8331 Opening
8332 \family default
8333 : produces a paragraph for the form of address and implicitly produces a
8334  new letter.
8335 \end_layout
8336
8337 \begin_layout Itemize
8338
8339 \family sans
8340 Closing
8341 \family default
8342 : produces a paragraph for a close.
8343 \end_layout
8344
8345 \begin_layout Itemize
8346
8347 \family sans
8348 PS
8349 \family default
8350 : produces a paragraph for a postscript.
8351 \end_layout
8352
8353 \begin_layout Itemize
8354
8355 \family sans
8356 CC
8357 \family default
8358 : produces a paragraph for a distribution list.
8359 \end_layout
8360
8361 \begin_layout Itemize
8362
8363 \family sans
8364 Encl
8365 \family default
8366 : produces a paragraph for enclosures.
8367 \end_layout
8368
8369 \begin_layout Standard
8370 The types 
8371 \family sans
8372 Name
8373 \family default
8374
8375 \family sans
8376 Signature
8377 \family default
8378
8379 \family sans
8380 Address
8381 \family default
8382
8383 \family sans
8384 Telephone
8385 \family default
8386
8387 \family sans
8388 Place
8389 \family default
8390
8391 \family sans
8392 Backaddress
8393 \family default
8394
8395 \family sans
8396 Specialmail
8397 \family default
8398
8399 \family sans
8400 Location
8401 \family default
8402
8403 \family sans
8404 Title
8405 \family default
8406 , and 
8407 \family sans
8408 Subject
8409 \family default
8410  are input types provided with a label to enter information, which will
8411  be processed by the document class.
8412 \begin_inset Foot
8413 status open
8414
8415 \begin_layout Standard
8416 It could be seen as a matter of inconsequence, that the types 
8417 \family sans
8418 Letter
8419 \family default
8420  and 
8421 \family sans
8422 Opening
8423 \family default
8424  described above are not such input types as well.
8425  Because of the special meaning of those types, however, I have implemented
8426  them as ordinary paragraph types with a one letter mark in the left margin.
8427  Moreover, it would affect my feeling of symmetry, if the 
8428 \family sans
8429 Opening
8430 \family default
8431  type and the 
8432 \family sans
8433 Closing
8434 \family default
8435  type had such a serious different appearance.
8436 \end_layout
8437
8438 \end_inset
8439
8440  The types must be used ahead of the corresponding 
8441 \family sans
8442 Opening
8443 \family default
8444  type.
8445 \end_layout
8446
8447 \begin_layout Standard
8448 An implementation of these types in a WYSIWYG fashion does not seem to make
8449  sense, because the real appearance of the produced letter does not only
8450  depend on the usage of the particular type, but also on other factors.
8451  For example, a signature entered in the 
8452 \family sans
8453 Signature
8454 \family default
8455  type will in the standard behavior appear in the produced letter only,
8456  when in the same letter also a 
8457 \family sans
8458 Closing
8459 \family default
8460  type is used.
8461  The entered value of the 
8462 \family sans
8463 Telephone
8464 \family default
8465  type will in the standard behavior not appear in the produced letter at
8466  all.
8467  The possibility to design the letter`s heading freely is already indicated
8468  in a footnote above.
8469 \end_layout
8470
8471 \begin_layout Standard
8472 The input types can also be used as empty paragraphs.
8473  This makes sense e.\InsetSpace \thinspace{}
8474 g.\InsetSpace ~
8475 for the 
8476 \family sans
8477 Signature
8478 \family default
8479  type.
8480  If the 
8481 \family sans
8482 Signature
8483 \family default
8484  type is not used at all, in the standard behavior the value of the 
8485 \family sans
8486 Name
8487 \family default
8488  type is used as signature, whereas if an empty 
8489 \family sans
8490 Signature
8491 \family default
8492  type is used, no signature value is defined.
8493 \end_layout
8494
8495 \begin_layout Standard
8496 By using the input types it is possible to write a letter template, containing
8497  filled input types with your personal dates (name, address, etc.) and empty
8498  input types for other dates you want to enter.
8499 \end_layout
8500
8501 \begin_layout Itemize
8502
8503 \family sans
8504 Name
8505 \family default
8506 : sender's name, in the standard behavior appears as a centered paragraph
8507  in small caps in the letter`s heading.
8508 \end_layout
8509
8510 \begin_layout Itemize
8511
8512 \family sans
8513 Signature
8514 \family default
8515 : sender's signature, in the standard behavior appears below the 
8516 \family sans
8517 Closing
8518 \family default
8519  type.
8520  If no 
8521 \family sans
8522 Signature
8523 \family default
8524  type is used, the value of the 
8525 \family sans
8526 Name
8527 \family default
8528  type appears instead.
8529 \end_layout
8530
8531 \begin_layout Itemize
8532
8533 \family sans
8534 Address
8535 \family default
8536 : sender's address, in the standard behavior appears in a centered paragraph
8537  in the letter`s heading below the sender's name.
8538 \end_layout
8539
8540 \begin_layout Itemize
8541
8542 \family sans
8543 Telephone
8544 \family default
8545 : sender's telephone number, in the standard behavior only sets the LaTeX
8546  variable 
8547 \family typewriter
8548
8549 \backslash
8550 telephonenum
8551 \family default
8552 .
8553 \end_layout
8554
8555 \begin_layout Itemize
8556
8557 \family sans
8558 Place
8559 \family default
8560 : place of the letter`s making.
8561 \end_layout
8562
8563 \begin_layout Itemize
8564
8565 \family sans
8566 Date
8567 \family default
8568 : date of the letter`s making.
8569  
8570 \family sans
8571 Place
8572 \family default
8573  and 
8574 \family sans
8575 Date
8576 \family default
8577 , in the standard behavior, produce the place and the date in a right-aligned
8578  line below the addressee's field.
8579  If an empty 
8580 \family sans
8581 Date
8582 \family default
8583  type is used, neither place nor date appear, independent of the value of
8584  the 
8585 \family sans
8586 Place
8587 \family default
8588  type.
8589  If no 
8590 \family sans
8591 Date
8592 \family default
8593  type is used, the date of the letter `s production is used.
8594 \end_layout
8595
8596 \begin_layout Itemize
8597
8598 \family sans
8599 Backaddress
8600 \family default
8601 : sender`s back address, in the standard behavior appears above the addressee's
8602  field in a small sans serif font.
8603 \end_layout
8604
8605 \begin_layout Itemize
8606
8607 \family sans
8608 Specialmail
8609 \family default
8610 : special mail information, in the standard behavior appears underlined
8611  above the addressee's field below the back address.
8612 \end_layout
8613
8614 \begin_layout Itemize
8615
8616 \family sans
8617 Location
8618 \family default
8619 : additional information, in the standard behavior appears on right side
8620  below the addressee`s field.
8621 \end_layout
8622
8623 \begin_layout Itemize
8624
8625 \family sans
8626 Title
8627 \family default
8628 : the letter's title, in the standard behavior appears in a big, bold, sans
8629  serif font above the subject.
8630 \end_layout
8631
8632 \begin_layout Itemize
8633
8634 \family sans
8635 Subject
8636 \family default
8637 : the letter's subject, in the standard behavior appears in a bold font
8638  above the 
8639 \family sans
8640 Opening
8641 \family default
8642  paragraph.
8643 \end_layout
8644
8645 \begin_layout Standard
8646 The types 
8647 \family sans
8648 Yourref
8649 \family default
8650
8651 \family sans
8652 Yourmail
8653 \family default
8654
8655 \family sans
8656 Myref
8657 \family default
8658
8659 \family sans
8660 Customer
8661 \family default
8662 , and 
8663 \family sans
8664 Invoice
8665 \family default
8666  produce a business letter like line above the 
8667 \family sans
8668 Title
8669 \family default
8670  line containing the fields 
8671 \begin_inset Quotes eld
8672 \end_inset
8673
8674 Your ref.
8675 \begin_inset Quotes erd
8676 \end_inset
8677
8678
8679 \begin_inset Quotes eld
8680 \end_inset
8681
8682 Your letter of
8683 \begin_inset Quotes erd
8684 \end_inset
8685
8686
8687 \begin_inset Quotes eld
8688 \end_inset
8689
8690 Our ref.
8691 \begin_inset Quotes erd
8692 \end_inset
8693
8694
8695 \begin_inset Quotes eld
8696 \end_inset
8697
8698 Customer no.
8699 \begin_inset Quotes erd
8700 \end_inset
8701
8702
8703 \begin_inset Quotes eld
8704 \end_inset
8705
8706 Invoice no.
8707 \begin_inset Quotes erd
8708 \end_inset
8709
8710 , and 
8711 \begin_inset Quotes eld
8712 \end_inset
8713
8714 Date
8715 \begin_inset Quotes erd
8716 \end_inset
8717
8718 .
8719  For the date field, the value of the 
8720 \family sans
8721 Date
8722 \family default
8723  type is used.
8724  If one of these 
8725 \begin_inset Quotes eld
8726 \end_inset
8727
8728 business letter types
8729 \begin_inset Quotes erd
8730 \end_inset
8731
8732  is used, the value of the 
8733 \family sans
8734 Place
8735 \family default
8736  type however does not appear, but only the LaTeX variable 
8737 \family typewriter
8738
8739 \backslash
8740 fromplace
8741 \family default
8742  is set.
8743  The ordinary output of place and date in a right-aligned line below the
8744  addressee`s field is suppressed.
8745  The types are implemented as input types provided with a label and must
8746  be used ahead of the corresponding 
8747 \family sans
8748 Opening
8749 \family default
8750  type.
8751 \end_layout
8752
8753 \begin_layout Itemize
8754
8755 \family sans
8756 Yourref
8757 \family default
8758 : Your ref.
8759 \end_layout
8760
8761 \begin_layout Itemize
8762
8763 \family sans
8764 Yourmail
8765 \family default
8766 : Your letter of.
8767 \end_layout
8768
8769 \begin_layout Itemize
8770
8771 \family sans
8772 Myref
8773 \family default
8774 : Our ref.
8775 \end_layout
8776
8777 \begin_layout Itemize
8778
8779 \family sans
8780 Customer
8781 \family default
8782 : Customer no.
8783 \end_layout
8784
8785 \begin_layout Itemize
8786
8787 \family sans
8788 Invoice
8789 \family default
8790 : Invoice no.
8791 \end_layout
8792
8793 \begin_layout Subsection
8794 The new letter class: letter (koma-script v.2)
8795 \end_layout
8796
8797 \begin_layout Standard
8798 by 
8799 \noun on
8800 Jürgen Spitzmüller
8801 \end_layout
8802
8803 \begin_layout Standard
8804 \begin_inset VSpace medskip
8805 \end_inset
8806
8807
8808 \end_layout
8809
8810 \begin_layout Standard
8811 \noindent
8812 Koma-Script version 2.8 has introduced a new letter class 
8813 \family typewriter
8814 scrlttr2
8815 \family default
8816  which supersedes the now unsupported 
8817 \family typewriter
8818 scrlettr
8819 \family default
8820 .
8821  It has --- on the LaTeX side --- a completely new interface and is not
8822  compatible with the old class.
8823  Therefore, LyX supports both, though it is recommended to use the new class.
8824 \end_layout
8825
8826 \begin_layout Standard
8827 This class covers the same functionality as 
8828 \emph on
8829 letter (koma-script),
8830 \emph default
8831  and a few more.
8832  The basic items are 
8833 \family sans
8834 Address
8835 \family default
8836  (receiver's address, same as 
8837 \family sans
8838 Letter
8839 \family default
8840  in the old layout), 
8841 \family sans
8842 Opening
8843 \family default
8844 , and 
8845 \family sans
8846 Closing
8847 \family default
8848 .
8849  
8850 \family sans
8851 NextAddress
8852 \family default
8853  will start a new letter (i.
8854 \begin_inset ERT
8855 status collapsed
8856
8857 \begin_layout Standard
8858
8859
8860 \backslash
8861 ,
8862 \end_layout
8863
8864 \end_inset
8865
8866 e.
8867 \begin_inset ERT
8868 status collapsed
8869
8870 \begin_layout Standard
8871
8872
8873 \backslash
8874  
8875 \end_layout
8876
8877 \end_inset
8878
8879 you can write several letters per document).
8880  New elements are sender's 
8881 \family sans
8882 E-Mail
8883 \family default
8884
8885 \family sans
8886 URL
8887 \family default
8888
8889 \family sans
8890 Fax
8891 \family default
8892
8893 \family sans
8894 Bank
8895 \family default
8896  and the possibility to use a 
8897 \family sans
8898 Logo
8899 \family default
8900  (via 
8901 \family sans
8902 \bar under
8903 I
8904 \bar default
8905 nsert\SpecialChar \menuseparator
8906
8907 \bar under
8908 G
8909 \bar default
8910 raphics
8911 \family default
8912 ) in the header.
8913 \end_layout
8914
8915 \begin_layout Standard
8916 The biggest improvement is, though, that the letter's layout is configurable
8917  at almost any needs.
8918  This can be done via the preamble or with a special style file (Letter
8919  Class Option, extension 
8920 \family typewriter
8921 *.lco
8922 \family default
8923 ), that will be read in as a class option.
8924 \begin_inset Foot
8925 status collapsed
8926
8927 \begin_layout Standard
8928 The KOMA package comes with some default 
8929 \family typewriter
8930 *.lco
8931 \family default
8932  files.
8933  There is, for instance, a 
8934 \family typewriter
8935 DIN.lco
8936 \family default
8937  file that follows german typesetting rules, or a 
8938 \family typewriter
8939 KOMAold.lco
8940 \family default
8941  that provides the default layout of the old 
8942 \family typewriter
8943 scrlettr
8944 \family default
8945  class.
8946  The latter can be loaded with the class option 
8947 \family typewriter
8948 KOMAold
8949 \family default
8950 , inserted via the 
8951 \family sans
8952 \bar under
8953 L
8954 \bar default
8955 ayout\SpecialChar \menuseparator
8956
8957 \bar under
8958 D
8959 \bar default
8960 ocument\SpecialChar \menuseparator
8961 Extra Options
8962 \family default
8963  field.
8964 \end_layout
8965
8966 \end_inset
8967
8968  Have a look at the 
8969 \emph on
8970 koma-letter2
8971 \emph default
8972  template that is included in LyX for examples.
8973  A detailed description is to be found in the Koma-Script documentation
8974  (
8975 \emph on
8976 scrguide
8977 \emph default
8978 ).
8979 \end_layout
8980
8981 \begin_layout Subsection
8982 Problems
8983 \end_layout
8984
8985 \begin_layout Standard
8986 Visualizing the Koma-Script document classes in LyX, the LyX internals cause
8987  some problems.
8988 \end_layout
8989
8990 \begin_layout Itemize
8991 The chapter number of a 
8992 \family sans
8993 Chapter
8994 \family default
8995  type appears on a line of its own above the chapter heading instead of
8996  appearing in the same line ahead of it.
8997  The cause for that is the LyX internal behavior for the labeltype 
8998 \family sans
8999 Counter_Chapter
9000 \family default
9001  in the layout file.
9002 \end_layout
9003
9004 \begin_layout Itemize
9005 The headings of the types 
9006 \family sans
9007 Addchap
9008 \family default
9009  and 
9010 \family sans
9011 Addsec
9012 \family default
9013  are only put in the 
9014 \begin_inset Quotes eld
9015 \end_inset
9016
9017 true
9018 \begin_inset Quotes erd
9019 \end_inset
9020
9021  LaTeX table of contents, but not in the LyX table of contents (
9022 \family sans
9023 \bar under
9024 D
9025 \bar default
9026 ocument\SpecialChar \menuseparator
9027
9028 \bar under
9029 T
9030 \bar default
9031 able\InsetSpace ~
9032 of\InsetSpace ~
9033 Contents
9034 \family default
9035 ).
9036 \end_layout
9037
9038 \begin_layout Itemize
9039 The paragraphs in a 
9040 \emph on
9041 letter
9042 \emph default
9043  document class appear in a skip separation mode, not indented.
9044  This is the standard behavior, no special LaTeX commands are needed for
9045  that.
9046  But in the 
9047 \family sans
9048 \bar under
9049 D
9050 \bar default
9051 ocument\SpecialChar \menuseparator
9052
9053 \bar under
9054 S
9055 \bar default
9056 ettings
9057 \family default
9058  dialog the corresponding radio button indicates 
9059 \family sans
9060 \bar under
9061 I
9062 \bar default
9063 ndent
9064 \family default
9065 .
9066  A 
9067 \family sans
9068 S
9069 \bar under
9070 k
9071 \bar default
9072 ip
9073 \family default
9074  value always has the effect that extra LaTeX commands are inserted in the
9075  document to produce the gap, which is not what is wanted in this case.
9076 \end_layout
9077
9078 \begin_layout Section
9079 Springer Journals (
9080 \family sans
9081 svjour
9082 \family default
9083 )
9084 \end_layout
9085
9086 \begin_layout Standard
9087 by 
9088 \noun on
9089 Martin Vermeer
9090 \end_layout
9091
9092 \begin_layout Subsection
9093 Description
9094 \end_layout
9095
9096 \begin_layout Standard
9097 These are the layout files for some of the journal formats used by Springer
9098  Verlag and listed on 
9099 \begin_inset LatexCommand url
9100 target "http://www.springer.de/author/tex/help-journals.html"
9101
9102 \end_inset
9103
9104 , where you should also go to fetch the class files (yes, these are LaTeX2e
9105  now!).
9106  It is a modular system: the things common to all journals are implemented
9107  in 
9108 \family typewriter
9109 svjour.inc
9110 \family default
9111 , which journal-specific layout files (such as, e.\InsetSpace \thinspace{}
9112 g., 
9113 \family typewriter
9114 svjog.layout
9115 \family default
9116  for Journal of Geodesy) can include.
9117 \end_layout
9118
9119 \begin_layout Standard
9120 This means that implementing support for any other Springer journal on this
9121  list is as simple as writing your own 
9122 \family typewriter
9123 sv
9124 \family default
9125 <myjournal>
9126 \family typewriter
9127 .layout
9128 \family default
9129  file following the outline given in 
9130 \family typewriter
9131 svjog.layout
9132 \family default
9133 .
9134  
9135 \end_layout
9136
9137 \begin_layout Standard
9138 It is reasonably well tested only for the Journal of Geodesy.
9139  
9140 \family typewriter
9141 svjour
9142 \family default
9143  and 
9144 \family typewriter
9145 svjog
9146 \family default
9147  come with the standard LyX distribution.
9148  Install the relevant class file (downloaded from Springer) in a proper
9149  directory, reconfigure LaTeX (in the teTeX case by running 
9150 \family typewriter
9151 texhash
9152 \family default
9153 , as root if necessary --- doesn't LyX take care of this?), reconfigure
9154  LyX and it should work.
9155 \end_layout
9156
9157 \begin_layout Subsection
9158 New styles
9159 \end_layout
9160
9161 \begin_layout Standard
9162 A large number of theorem-like styles --- 
9163 \family sans
9164 Claim, Conjecture,
9165 \family default
9166  
9167 \family sans
9168 \SpecialChar \ldots{}
9169 Theorem
9170 \family default
9171 .
9172 \end_layout
9173
9174 \begin_layout Standard
9175
9176 \family sans
9177 Headnote, Dedication, Subtitle, Running_LaTeX_Title, Author_Running, Institute,
9178  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
9179 \family default
9180 .
9181  See the Springer class file documentation for details.
9182 \end_layout
9183
9184 \begin_layout Subsection
9185 Supported journals
9186 \end_layout
9187
9188 \begin_layout Itemize
9189
9190 \emph on
9191 Journal of Geodesy
9192 \emph default
9193
9194 \family typewriter
9195 svjog.layout
9196 \family default
9197  --- Martin Vermeer
9198 \end_layout
9199
9200 \begin_layout Itemize
9201
9202 \emph on
9203 Probability Theory and Related Fields
9204 \emph default
9205
9206 \family typewriter
9207 svprobth.layout
9208 \family default
9209  --- Jean-Marc Lasgouttes
9210 \end_layout
9211
9212 \begin_layout Standard
9213 Add your own, it isn't so hard!
9214 \end_layout
9215
9216 \begin_layout Subsection
9217 Credits
9218 \end_layout
9219
9220 \begin_layout Standard
9221 These files are partly based on the older 
9222 \family typewriter
9223 ejour2.layout
9224 \family default
9225 , which was again based on a tinkered-with version of an old LaTeX 2.09 style
9226  file from Springer.
9227  All this, and the 
9228 \family typewriter
9229 ejour2
9230 \family default
9231  layout, are now defunct.
9232  Jean-Marc Lasgouttes helped out big in making me find my way around the
9233  LyX layout file mechanism.
9234 \end_layout
9235
9236 \begin_layout Subsection
9237 Bugs
9238 \end_layout
9239
9240 \begin_layout Standard
9241 Probably.
9242  But probably less than in the old hacked-LaTeX 
9243 \family typewriter
9244 ejour2
9245 \family default
9246 .
9247 \end_layout
9248
9249 \begin_layout Standard
9250 Limitations e.\InsetSpace \thinspace{}
9251 g.: does not display the number for theorem-like layouts, just
9252  #.
9253 \end_layout
9254
9255 \begin_layout Section
9256 AGU journals (
9257 \family sans
9258 aguplus
9259 \family default
9260 )
9261 \end_layout
9262
9263 \begin_layout Standard
9264 by 
9265 \shape smallcaps
9266 Martin Vermeer
9267 \end_layout
9268
9269 \begin_layout Subsection
9270 Description
9271 \end_layout
9272
9273 \begin_layout Standard
9274 These are the layout files for some of the journals of the American Geophysical
9275  Society.
9276  It is assumed that you have both the AGU's own class files and AGUplus
9277  installed (everything to be found at
9278 \begin_inset LatexCommand url
9279 target "ftp://ftp.agu.org/journals/latex/journals"
9280
9281 \end_inset
9282
9283 ).
9284 \end_layout
9285
9286 \begin_layout Subsection
9287 New styles
9288 \end_layout
9289
9290 \begin_layout Standard
9291 Redefined are 
9292 \family sans
9293 Paragraph
9294 \family default
9295
9296 \family sans
9297 Paragraph*
9298 \family default
9299 .
9300  They are still called this in the LyX GUI, though their LaTeX equivalents
9301  in the AGU classes are 
9302 \family sans
9303 Subsubsubsection
9304 \family default
9305  and 
9306 \family sans
9307 Subsubsubsection*
9308 \family default
9309 .
9310 \end_layout
9311
9312 \begin_layout Standard
9313 Newly defined styles are 
9314 \family sans
9315 Left_Header
9316 \family default
9317
9318 \family sans
9319 Right_Header
9320 \family default
9321
9322 \family sans
9323 Received
9324 \family default
9325
9326 \family sans
9327 Revised
9328 \family default
9329
9330 \family sans
9331 Accepted
9332 \family default
9333
9334 \family sans
9335 CCC
9336 \family default
9337
9338 \family sans
9339 PaperId
9340 \family default
9341
9342 \family sans
9343 AuthorAddr
9344 \family default
9345
9346 \family sans
9347 SlugComment
9348 \family default
9349 .
9350  These are mostly manuscript attributes and defined in the AGU class documentati
9351 on.
9352 \end_layout
9353
9354 \begin_layout Standard
9355 I suspect this is still badly incomplete.
9356 \end_layout
9357
9358 \begin_layout Subsection
9359 New floats
9360 \end_layout
9361
9362 \begin_layout Standard
9363
9364 \family sans
9365 Planotable
9366 \family default
9367  and 
9368 \family sans
9369 Plate
9370 \family default
9371 .
9372  We also have a new 
9373 \family sans
9374 Table_Caption
9375 \family default
9376 .
9377 \end_layout
9378
9379 \begin_layout Subsection
9380 Supported journals
9381 \end_layout
9382
9383 \begin_layout Itemize
9384
9385 \emph on
9386 Journal of Geophysical Research
9387 \emph default
9388
9389 \family typewriter
9390 jgrga.layout
9391 \family default
9392  --- Martin Vermeer
9393 \end_layout
9394
9395 \begin_layout Standard
9396 Add your own, it isn't so hard! Look at the 
9397 \family typewriter
9398 jgrga.layout
9399 \family default
9400  example and 
9401 \family typewriter
9402 aguplus.inc
9403 \family default
9404 .
9405 \end_layout
9406
9407 \begin_layout Subsection
9408 Bugs and things to remember
9409 \end_layout
9410
9411 \begin_layout Standard
9412 In order to use the new layouts, you must remember to do the following for
9413  a new document:
9414 \end_layout
9415
9416 \begin_layout Enumerate
9417
9418 \emph on
9419 Turn off babel
9420 \emph default
9421 .
9422  This can be done in the 
9423 \family sans
9424 layout\SpecialChar \menuseparator
9425 document
9426 \family default
9427  or 
9428 \family sans
9429 document\SpecialChar \menuseparator
9430 settings
9431 \family default
9432  menu item.
9433  (AGU articles are always in English, right? So 
9434 \emph on
9435 don't
9436 \emph default
9437  choose a language.)
9438 \end_layout
9439
9440 \begin_layout Enumerate
9441 Enter 
9442 \family typewriter
9443 jgrga
9444 \family default
9445  into the document's 
9446 \family sans
9447 Extra Options
9448 \family default
9449  field.
9450  (Yes, this is a bug.)
9451 \end_layout
9452
9453 \begin_layout Enumerate
9454 Make sure you use the 
9455 \family typewriter
9456 agu.bst
9457 \family default
9458  bibliography style, by entering 
9459 \family sans
9460 agu
9461 \family default
9462  into the second field of the BibTeX inset.
9463  None of the standard styles will do.
9464 \end_layout
9465
9466 \begin_layout Section
9467 EGS journals (
9468 \family sans
9469 egs
9470 \family default
9471 )
9472 \end_layout
9473
9474 \begin_layout Standard
9475 by 
9476 \shape smallcaps
9477 Martin Vermeer
9478 \end_layout
9479
9480 \begin_layout Subsection
9481 Description
9482 \end_layout
9483
9484 \begin_layout Standard
9485 This is the layout file for the European Geophysical Society journals.
9486  The needed 
9487 \family typewriter
9488 egs.cls
9489 \family default
9490  can be downloaded from the web site of the EGS under 
9491 \begin_inset LatexCommand url
9492 target "www.copernicus.org"
9493
9494 \end_inset
9495
9496 .
9497 \end_layout
9498
9499 \begin_layout Subsection
9500 New styles
9501 \end_layout
9502
9503 \begin_layout Standard
9504
9505 \family sans
9506 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
9507  Accepted
9508 \family default
9509
9510 \family sans
9511 Offsets
9512 \family default
9513 .
9514  The current layout file is unfortunately very unmodular and would benefit
9515  from using the various 
9516 \family typewriter
9517 std*.inc
9518 \family default
9519  file inclusions.
9520 \end_layout
9521
9522 \begin_layout Section
9523 Slides [aka 
9524 \noun on
9525 Sli
9526 \noun default
9527 TeX]
9528 \begin_inset LatexCommand label
9529 name "sec:slitex"
9530
9531 \end_inset
9532
9533
9534 \end_layout
9535
9536 \begin_layout Standard
9537 by 
9538 \noun on
9539 John Weiss
9540 \noun default
9541  
9542 \end_layout
9543
9544 \begin_layout Subsection
9545 Introduction
9546 \end_layout
9547
9548 \begin_layout Standard
9549 This section describes how to use LyX to make slides for overhead projectors.
9550  There are two document classes that can do this: the default slides class
9551  and the 
9552 \family sans
9553 Foil
9554 \family default
9555 TeX slides class.
9556  This section documents the former.
9557 \end_layout
9558
9559 \begin_layout Standard
9560 I'm going to say this again, nice and clear, so that there's no misunderstanding
9561 :
9562 \end_layout
9563
9564 \begin_layout Standard
9565 \begin_inset VSpace bigskip
9566 \end_inset
9567
9568
9569 \end_layout
9570
9571 \begin_layout Standard
9572 \align center
9573
9574 \size large
9575 This section documents the class 
9576 \begin_inset Quotes eld
9577 \end_inset
9578
9579
9580 \family sans
9581 slides (default)
9582 \family default
9583
9584 \begin_inset Quotes erd
9585 \end_inset
9586
9587  
9588 \emph on
9589 only.
9590 \end_layout
9591
9592 \begin_layout Standard
9593 \begin_inset VSpace bigskip
9594 \end_inset
9595
9596
9597 \end_layout
9598
9599 \begin_layout Standard
9600 If you're looking for the documentation for 
9601 \begin_inset Quotes eld
9602 \end_inset
9603
9604
9605 \family sans
9606 slides (FoilTeX)
9607 \family default
9608
9609 \begin_inset Quotes erd
9610 \end_inset
9611
9612 , check out section\InsetSpace ~
9613
9614 \begin_inset LatexCommand ref
9615 reference "sec:foiltex"
9616
9617 \end_inset
9618
9619 .
9620  The 
9621 \family sans
9622 foils
9623 \family default
9624  class [
9625 \begin_inset Quotes eld
9626 \end_inset
9627
9628
9629 \family sans
9630 slides (FoilTeX)
9631 \family default
9632
9633 \begin_inset Quotes erd
9634 \end_inset
9635
9636 ] is actually somewhat better than the default 
9637 \family sans
9638 slides
9639 \family default
9640  class,
9641 \begin_inset Foot
9642 status collapsed
9643
9644 \begin_layout Standard
9645 \SpecialChar \ldots{}
9646 or so I've been told repeatedly by its advocates.
9647  Having never used it, I have no idea if this claim is true or not.
9648 \end_layout
9649
9650 \end_inset
9651
9652  which this section documents.
9653 \end_layout
9654
9655 \begin_layout Standard
9656 This class is the LaTeX2e improvement of the old 
9657 \noun on
9658 Sli
9659 \noun default
9660 TeX package.
9661  Every LaTeX2e distribution includes this class [which I'll just refer to
9662  as 
9663 \begin_inset Quotes eld
9664 \end_inset
9665
9666
9667 \family sans
9668 slides
9669 \family default
9670
9671 \begin_inset Quotes erd
9672 \end_inset
9673
9674  from now on], so you're bound to have it.
9675  As I noted earlier, there are other classes, such as 
9676 \family sans
9677 foils
9678 \family default
9679 , which also produce slides for overhead projectors and do a better job
9680  at it.
9681  However, there are some things which 
9682 \family sans
9683 slides
9684 \family default
9685  can do which the others can't, such as generate overlays.
9686  Read on to learn more!
9687 \end_layout
9688
9689 \begin_layout Subsection
9690 Getting Started
9691 \begin_inset LatexCommand label
9692 name "sec:slidesetup"
9693
9694 \end_inset
9695
9696
9697 \end_layout
9698
9699 \begin_layout Standard
9700 Obviously, to use this document class, you need to select 
9701 \begin_inset Quotes eld
9702 \end_inset
9703
9704
9705 \family sans
9706 slides (default)
9707 \family default
9708
9709 \begin_inset Quotes erd
9710 \end_inset
9711
9712  from the class list in the 
9713 \family sans
9714 \bar under
9715 D
9716 \bar default
9717 ocument\SpecialChar \menuseparator
9718
9719 \bar under
9720 S
9721 \bar default
9722 ettings
9723 \family default
9724  dialog.
9725  There are some other special things you should know about this class:
9726 \end_layout
9727
9728 \begin_layout Itemize
9729 Don't bother changing the options 
9730 \family sans
9731 Sides and Columns
9732 \family default
9733 .
9734  They're not supported by the 
9735 \family sans
9736 slides
9737 \family default
9738  class, anyways.
9739 \end_layout
9740
9741 \begin_layout Itemize
9742 The option 
9743 \family sans
9744 \bar under
9745 P
9746 \bar default
9747 age\InsetSpace ~
9748 style
9749 \family default
9750  behaves a bit differently for this class.
9751  The possible choices and what they do are as follows:
9752 \end_layout
9753
9754 \begin_deeper
9755 \begin_layout Description
9756
9757 \family sans
9758 plain
9759 \family default
9760  The final output contains page numbers in the lower right corner.
9761 \end_layout
9762
9763 \begin_layout Description
9764
9765 \family sans
9766 headings
9767 \family default
9768  Like 
9769 \family sans
9770 plain
9771 \family default
9772 , but also prints out any time markers you've put in.
9773  This is the default.
9774 \end_layout
9775
9776 \begin_layout Description
9777
9778 \family sans
9779 empty
9780 \family default
9781  The final output contains no page numbers, time markers, or alignment markers.
9782 \end_layout
9783
9784 \end_deeper
9785 \begin_layout Itemize
9786 The 
9787 \family sans
9788 slides
9789 \family default
9790  class has an extra option: 
9791 \family typewriter
9792 clock
9793 \family default
9794 .
9795  To use it, put 
9796 \begin_inset Quotes eld
9797 \end_inset
9798
9799
9800 \family typewriter
9801 clock
9802 \family default
9803
9804 \begin_inset Quotes erd
9805 \end_inset
9806
9807  in the extra class options.
9808 \end_layout
9809
9810 \begin_deeper
9811 \begin_layout Standard
9812 Using this options allows you to add time markers to 
9813 \family sans
9814 Note
9815 \family default
9816 s.
9817  See section\InsetSpace ~
9818
9819 \begin_inset LatexCommand ref
9820 reference "sec:slideNote"
9821
9822 \end_inset
9823
9824  for more details.
9825 \end_layout
9826
9827 \end_deeper
9828 \begin_layout Standard
9829 You can also use the template file 
9830 \begin_inset Quotes eld
9831 \end_inset
9832
9833
9834 \family typewriter
9835 slides.lyx
9836 \family default
9837
9838 \begin_inset Quotes erd
9839 \end_inset
9840
9841  to automatically set up a document to use the 
9842 \family sans
9843 slides
9844 \family default
9845  class [using 
9846 \family sans
9847 \bar under
9848 F
9849 \bar default
9850 ile\SpecialChar \menuseparator
9851 New\InsetSpace ~
9852 from\InsetSpace ~
9853
9854 \bar under
9855 T
9856 \bar default
9857 emplate
9858 \family default
9859  to open your new document].
9860  The template file also contains some examples of the special paragraph
9861  environments used by this class.
9862  I'll describe those next.
9863 \end_layout
9864
9865 \begin_layout Subsection
9866 Paragraph Environments
9867 \end_layout
9868
9869 \begin_layout Subsubsection
9870 Supported Environments
9871 \end_layout
9872
9873 \begin_layout Standard
9874 The first thing you'll notice when you start up a new 
9875 \family sans
9876 slides
9877 \family default
9878  document is the font size and type: it's the equivalent of the size 
9879 \begin_inset Quotes eld
9880 \end_inset
9881
9882
9883 \family sans
9884 Largest
9885 \family default
9886
9887 \begin_inset Quotes erd
9888 \end_inset
9889
9890  in the 
9891 \family sans
9892 Sans\InsetSpace ~
9893 Serif
9894 \family default
9895  font.
9896  This is also what's used in the output.
9897  Think of this as a 
9898 \begin_inset Quotes eld
9899 \end_inset
9900
9901 visual cue
9902 \begin_inset Quotes erd
9903 \end_inset
9904
9905  to remind you that this is a slide.
9906  Your final slides will use a larger font; ergo, you'll have less space.
9907  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
9908 \end_layout
9909
9910 \begin_layout Standard
9911 The next thing that becomes obvious is the changes to the paragraph environment
9912  pull-down box [at the far-left end of the toolbar].
9913  Most of the paragraph environments you're used to seeing are missing.
9914  There are also five new ones.
9915  That's because the 
9916 \family sans
9917 slides
9918 \family default
9919  class itself only supports certain paragraph environments:
9920 \end_layout
9921
9922 \begin_layout Itemize
9923
9924 \family sans
9925 Standard
9926 \end_layout
9927
9928 \begin_layout Itemize
9929
9930 \family sans
9931 Itemize
9932 \end_layout
9933
9934 \begin_layout Itemize
9935
9936 \family sans
9937 Enumerate
9938 \end_layout
9939
9940 \begin_layout Itemize
9941
9942 \family sans
9943 Description
9944 \end_layout
9945
9946 \begin_layout Itemize
9947
9948 \family sans
9949 List
9950 \end_layout
9951
9952 \begin_layout Itemize
9953
9954 \family sans
9955 Quotation
9956 \end_layout
9957
9958 \begin_layout Itemize
9959
9960 \family sans
9961 Quote
9962 \end_layout
9963
9964 \begin_layout Itemize
9965
9966 \family sans
9967 Verse
9968 \end_layout
9969
9970 \begin_layout Itemize
9971
9972 \family sans
9973 Caption
9974 \end_layout
9975
9976 \begin_layout Itemize
9977
9978 \family sans
9979 LyX-Code
9980 \end_layout
9981
9982 \begin_layout Itemize
9983
9984 \family sans
9985 Comment
9986 \end_layout
9987
9988 \begin_layout Standard
9989 All of the other standard environments, including the section-heading environmen
9990 ts, aren't used in the 
9991 \family sans
9992 slides
9993 \family default
9994  class.
9995 \end_layout
9996
9997 \begin_layout Standard
9998 On the other hand, you'll notice the following new environments:
9999 \end_layout
10000
10001 \begin_layout Itemize
10002
10003 \family sans
10004 Slide
10005 \end_layout
10006
10007 \begin_layout Itemize
10008
10009 \family sans
10010 Overlay
10011 \end_layout
10012
10013 \begin_layout Itemize
10014
10015 \family sans
10016 Note
10017 \end_layout
10018
10019 \begin_layout Itemize
10020
10021 \family sans
10022 InvisibleText
10023 \end_layout
10024
10025 \begin_layout Itemize
10026
10027 \family sans
10028 VisibleText
10029 \end_layout
10030
10031 \begin_layout Standard
10032 These five are kind of quirky, due to a 
10033 \begin_inset Quotes eld
10034 \end_inset
10035
10036 feature
10037 \begin_inset Quotes erd
10038 \end_inset
10039
10040  in LyX.
10041  You see, LyX doesn't permit you to nest any other paragraph environment
10042  into an empty environment.
10043  Now, that's fine and dandy, but it means that you wouldn't be able to start
10044  a slide with anything except plain text.
10045  To deal with this, I've performed a little 
10046 \begin_inset Quotes eld
10047 \end_inset
10048
10049 LaTeX magic.
10050 \begin_inset Quotes erd
10051 \end_inset
10052
10053  
10054 \end_layout
10055
10056 \begin_layout Subsubsection
10057 Quirks of the New Environments
10058 \begin_inset LatexCommand label
10059 name "sec:slideQuirk"
10060
10061 \end_inset
10062
10063
10064 \end_layout
10065
10066 \begin_layout Standard
10067 All five of the new paragraph environments are somewhat quirky due to inherent
10068  limitiations in the current version of LyX.
10069  As I just mentioned, LyX forbids environments that begin with another environme
10070 nt.
10071  To get around this, the 
10072 \family sans
10073 Slide
10074 \family default
10075  environment isn't a paragraph environment as described in the 
10076 \emph on
10077 User's Guide
10078 \emph default
10079 .
10080  
10081 \end_layout
10082
10083 \begin_layout Standard
10084 You should consider 
10085 \family sans
10086 Slide
10087 \family default
10088
10089 \family sans
10090 Overlay
10091 \family default
10092 , and 
10093 \family sans
10094 Note
10095 \family default
10096  to be 
10097 \begin_inset Quotes eld
10098 \end_inset
10099
10100 pseudo-environments.
10101 \begin_inset Quotes erd
10102 \end_inset
10103
10104  They look like a section heading or a 
10105 \begin_inset Quotes eld
10106 \end_inset
10107
10108
10109 \family sans
10110 Caption
10111 \family default
10112 ,
10113 \begin_inset Quotes erd
10114 \end_inset
10115
10116  but really begin a [and, if necessary, end the previous] paragraph environment.
10117  Likewise, treat 
10118 \family sans
10119 InvisibleText
10120 \family default
10121  and 
10122 \family sans
10123 VisibleText
10124 \family default
10125  as 
10126 \begin_inset Quotes eld
10127 \end_inset
10128
10129 pseudo-commands.
10130 \begin_inset Quotes erd
10131 \end_inset
10132
10133  These two perform some action.
10134 \end_layout
10135
10136 \begin_layout Standard
10137 A common feature of all five environments, 
10138 \family sans
10139 Slide
10140 \family default
10141
10142 \family sans
10143 Overlay
10144 \family default
10145
10146 \family sans
10147 Note
10148 \family default
10149
10150 \family sans
10151 InvisibleText
10152 \family default
10153  and 
10154 \family sans
10155 VisibleText
10156 \family default
10157 , is a rather long-ish label.
10158  The text following this label --- ordinarily the contents of the paragraph
10159  environment --- is utterly irrelevant for 
10160 \family sans
10161 Slide
10162 \family default
10163
10164 \family sans
10165 Overlay
10166 \family default
10167
10168 \family sans
10169 Note
10170 \family default
10171
10172 \family sans
10173 InvisibleText
10174 \family default
10175  and 
10176 \family sans
10177 VisibleText
10178 \family default
10179 .
10180  LyX completely ignores it.
10181  In fact, you can leave these five environments completely empty.
10182  
10183 \end_layout
10184
10185 \begin_layout Standard
10186 While you don't 
10187 \emph on
10188 have
10189 \emph default
10190  to put any text after the rather long-ish label, you might want to.
10191  This could be a short description of the contents of the 
10192 \family sans
10193 Slide
10194 \family default
10195 , for example.
10196  In that case, enter in your descriptive comment and hit 
10197 \family sans
10198 Return
10199 \family default
10200  as you normally would.
10201 \end_layout
10202
10203 \begin_layout Standard
10204 If, on the other hand, you don't want to enter in any descriptive text,
10205  you'll hit another LyX quirk.
10206  LyX, like nature, abhors a vacuum, and will not let you start a new paragraph
10207  environment until you put something in the old one.
10208  So, do this:
10209 \end_layout
10210
10211 \begin_layout Itemize
10212 Start entering the text that will 
10213 \emph on
10214 follow
10215 \emph default
10216  the new 
10217 \family sans
10218 Slide
10219 \family default
10220
10221 \family sans
10222 Overlay
10223 \family default
10224
10225 \family sans
10226 Note
10227 \family default
10228
10229 \family sans
10230 InvisibleText
10231 \family default
10232  or 
10233 \family sans
10234 VisibleText
10235 \family default
10236 .
10237  
10238 \end_layout
10239
10240 \begin_layout Itemize
10241 Now move to the beginning of that paragraph.
10242  
10243 \end_layout
10244
10245 \begin_layout Itemize
10246 Next, hit 
10247 \family sans
10248 Return
10249 \family default
10250 .
10251  
10252 \end_layout
10253
10254 \begin_layout Itemize
10255 Finally, change this new, empty paragraph to a 
10256 \family sans
10257 Slide
10258 \family default
10259
10260 \family sans
10261 Overlay
10262 \family default
10263
10264 \family sans
10265 Note
10266 \family default
10267
10268 \family sans
10269 InvisibleText
10270 \family default
10271  or 
10272 \family sans
10273 VisibleText
10274 \family default
10275 .
10276  
10277 \end_layout
10278
10279 \begin_layout Standard
10280 Some future version of LyX will, hopefully, resolve this quirkiness\SpecialChar \ldots{}
10281
10282 \end_layout
10283
10284 \begin_layout Subsection
10285 Making a Presentation with 
10286 \family sans
10287 Slide
10288 \family default
10289
10290 \family sans
10291 Overlay
10292 \family default
10293  and 
10294 \family sans
10295 Note
10296 \end_layout
10297
10298 \begin_layout Subsubsection
10299 Using the 
10300 \family sans
10301 Slide
10302 \family default
10303  Environment
10304 \end_layout
10305
10306 \begin_layout Standard
10307 If you're expecting this section to teach you how to actually make a presentatio
10308 n, you'll be sorely disappointed.
10309  Naturally, I'll describe all of the ways the 
10310 \family sans
10311 slides
10312 \family default
10313  class can assist you in preparing the materials for a presentation.
10314  Filling in the contents, however, is up to you.
10315  [Then again, that 
10316 \emph on
10317 is
10318 \emph default
10319  the LyX philosophy.]
10320 \end_layout
10321
10322 \begin_layout Standard
10323 Choosing the 
10324 \family sans
10325 Slide
10326 \family default
10327  environment [in the manner described in section\InsetSpace ~
10328
10329 \begin_inset LatexCommand ref
10330 reference "sec:slideQuirk"
10331
10332 \end_inset
10333
10334 ] tells LyX to begin a new slide [duh].
10335  The label for this environment/
10336 \begin_inset Quotes erd
10337 \end_inset
10338
10339 pseudo-command
10340 \begin_inset Quotes erd
10341 \end_inset
10342
10343  is an 
10344 \begin_inset Quotes eld
10345 \end_inset
10346
10347 ASCII line,
10348 \begin_inset Quotes erd
10349 \end_inset
10350
10351  in cool blue, followed by the label, 
10352 \begin_inset Quotes eld
10353 \end_inset
10354
10355 NewSlide:
10356 \begin_inset Quotes erd
10357 \end_inset
10358
10359 .
10360  Any text or paragraph environments that follow this one go on the new slide.
10361  It's that simple.
10362 \end_layout
10363
10364 \begin_layout Standard
10365 Slides are probably the only time you'll need to forcibly end pages in LyX
10366  (this can be specified in the 
10367 \family sans
10368 Paragraph Layout
10369 \family default
10370  dialog).
10371  In fact, you'll want to, once you finish entering the contents of one slide.
10372  If you've entered more text than can physically fit on a slide, the extra
10373  overflows onto a new slide.
10374  I don't recommend doing this, however, since the overflow slide won't have
10375  any page number on it.
10376  Furthermore, it may interfere with any 
10377 \family sans
10378 Overlay
10379 \family default
10380  you've made to accompany the oversized 
10381 \family sans
10382 Slide
10383 \family default
10384 .
10385 \end_layout
10386
10387 \begin_layout Standard
10388 The 
10389 \family sans
10390 Overlay
10391 \family default
10392  and 
10393 \family sans
10394 Note
10395 \family default
10396  environments work the same way as the 
10397 \family sans
10398 Slide
10399 \family default
10400  environment.
10401  They both create an 
10402 \begin_inset Quotes eld
10403 \end_inset
10404
10405 ASCII line
10406 \begin_inset Quotes erd
10407 \end_inset
10408
10409  followed by a label [
10410 \begin_inset Quotes eld
10411 \end_inset
10412
10413 NewOverlay:
10414 \begin_inset Quotes erd
10415 \end_inset
10416
10417  and 
10418 \begin_inset Quotes eld
10419 \end_inset
10420
10421 NewNote:
10422 \begin_inset Quotes erd
10423 \end_inset
10424
10425 , respectively].
10426  The color is a stunning magenta instead of blue, and the 
10427 \begin_inset Quotes eld
10428 \end_inset
10429
10430 ASCII line
10431 \begin_inset Quotes erd
10432 \end_inset
10433
10434  will look different, in style and in length.
10435  The label fonts of all three also differ from one another.
10436 \end_layout
10437
10438 \begin_layout Standard
10439 As with a 
10440 \family sans
10441 Slide
10442 \family default
10443 , if the contents of a 
10444 \family sans
10445 Note
10446 \family default
10447  or 
10448 \family sans
10449 Overlay
10450 \family default
10451  exceed the physical size of a slide or sheet of paper, the extra will overflow
10452  onto a new sheet.
10453  Again, you should avoid this.
10454  It defeats the whole purpose of 
10455 \family sans
10456 Note
10457 \family default
10458 s and 
10459 \family sans
10460 Overlay
10461 \family default
10462 s.
10463 \end_layout
10464
10465 \begin_layout Subsubsection
10466 Using 
10467 \family sans
10468 Overlay
10469 \family default
10470  with 
10471 \family sans
10472 Slide
10473 \end_layout
10474
10475 \begin_layout Standard
10476 The idea behind an 
10477 \family sans
10478 Overlay
10479 \family default
10480  is a slide that sits atop another slide.
10481  Perhaps you wish to discuss a figure on the main 
10482 \family sans
10483 Slide
10484 \family default
10485  before displaying the text associated with it.
10486  One way to accomplish this is tape a flap of dark paper over the part of
10487  the 
10488 \family sans
10489 Slide
10490 \family default
10491  you want to display later.
10492  This method fails, however, if you wish to overlap one graph with another,
10493  for example.
10494  You would then have to fumble while speaking to align the two separate,
10495  overlapping 
10496 \family sans
10497 Slide
10498 \family default
10499 s to align the two graphs.
10500  The use of an 
10501 \family sans
10502 Overlay
10503 \family default
10504  environment in both cases makes life much easier.
10505 \end_layout
10506
10507 \begin_layout Standard
10508 Each 
10509 \family sans
10510 Overlay
10511 \family default
10512  receives the page number of its 
10513 \begin_inset Quotes eld
10514 \end_inset
10515
10516 parent
10517 \begin_inset Quotes erd
10518 \end_inset
10519
10520  
10521 \family sans
10522 Slide
10523 \family default
10524 , appended by 
10525 \begin_inset Quotes eld
10526 \end_inset
10527
10528
10529 \family typewriter
10530 -a
10531 \family default
10532
10533 \begin_inset Quotes erd
10534 \end_inset
10535
10536 .
10537 \begin_inset Foot
10538 status collapsed
10539
10540 \begin_layout Standard
10541 Presumably, mutliple 
10542 \family sans
10543 Overlay
10544 \family default
10545 s would have 
10546 \begin_inset Quotes eld
10547 \end_inset
10548
10549
10550 \family typewriter
10551 -a
10552 \family default
10553
10554 \begin_inset Quotes erd
10555 \end_inset
10556
10557
10558 \begin_inset Quotes eld
10559 \end_inset
10560
10561
10562 \family typewriter
10563 -b
10564 \family default
10565
10566 \begin_inset Quotes erd
10567 \end_inset
10568
10569
10570 \begin_inset Quotes eld
10571 \end_inset
10572
10573
10574 \family typewriter
10575 -c
10576 \family default
10577
10578 \begin_inset Quotes erd
10579 \end_inset
10580
10581 , etc.\InsetSpace ~
10582 appended to the page number of the parent 
10583 \family sans
10584 Slide
10585 \family default
10586 .
10587  
10588 \end_layout
10589
10590 \end_inset
10591
10592  Clearly, you want the contents of both the 
10593 \family sans
10594 Slide
10595 \family default
10596  and the 
10597 \family sans
10598 Overlay
10599 \family default
10600  to each fit on a single physical slide! You should probably consider an
10601  
10602 \family sans
10603 Overlay
10604 \family default
10605  as 
10606 \begin_inset Quotes eld
10607 \end_inset
10608
10609 part of
10610 \begin_inset Quotes erd
10611 \end_inset
10612
10613  a 
10614 \family sans
10615 Slide
10616 \family default
10617 .
10618  Indeed, the LyX 
10619 \family sans
10620 slides
10621 \family default
10622  class provides a visual cue for this: the label at the start of an 
10623 \family sans
10624 Overlay
10625 \family default
10626  is shorter than that at the start of a 
10627 \family sans
10628 Slide
10629 \family default
10630 .
10631  Lastly, when you generate printable output, you'll find alignment markers
10632  in all four corners of both the 
10633 \family sans
10634 Overlay
10635 \family default
10636  page and its parent 
10637 \family sans
10638 Slide
10639 \family default
10640 .
10641  These will assist you in lining up the two physical slides.
10642 \end_layout
10643
10644 \begin_layout Standard
10645 The major problem in overlaying two slides is aligning the contents of the
10646  two transparencies.
10647  How much space should you leave for that graph on the second slide? Worse
10648  still, what if you want a graph and a sentence on second slide, but there
10649  is text on the main transparency that goes in between them? You could try
10650  and insert vertical space of the right size.
10651  The better way is to use 
10652 \family sans
10653 InvisibleText
10654 \family default
10655  and 
10656 \family sans
10657 VisibleText
10658 \family default
10659 .
10660 \end_layout
10661
10662 \begin_layout Standard
10663 As their names imply, 
10664 \family sans
10665 InvisibleText
10666 \family default
10667  and 
10668 \family sans
10669 VisibleText
10670 \family default
10671  are two command-like paragraph environments that make all subsequent text
10672  invisible and visible, respectively.
10673  Note from section\InsetSpace ~
10674
10675 \begin_inset LatexCommand ref
10676 reference "sec:slideQuirk"
10677
10678 \end_inset
10679
10680  that you don't place anything 
10681 \emph on
10682 into
10683 \emph default
10684  these two environments, however.
10685  When you create an 
10686 \family sans
10687 InvisibleText
10688 \family default
10689 , it inserts a centered, sky-blue label into the page reading 
10690 \begin_inset Quotes eld
10691 \end_inset
10692
10693 <Invisible Text Follows>
10694 \begin_inset Quotes erd
10695 \end_inset
10696
10697 .
10698  For paragraphs following this label, the parts of the 
10699 \family sans
10700 Slide
10701 \family default
10702  [or 
10703 \family sans
10704 Overlay
10705 \family default
10706 ; it doesn't matter which] where they would be contain instead blank space.
10707  
10708 \end_layout
10709
10710 \begin_layout Standard
10711 For 
10712 \family sans
10713 VisibleText
10714 \family default
10715 , the corresponding centered label is 
10716 \begin_inset Quotes eld
10717 \end_inset
10718
10719 <Visible Text Follows>
10720 \begin_inset Quotes erd
10721 \end_inset
10722
10723  in blazing green.
10724  Paragraphs following this label behave normally.
10725  Note that the beginning of a new 
10726 \family sans
10727 Slide
10728 \family default
10729
10730 \family sans
10731 Overlay
10732 \family default
10733 , or 
10734 \family sans
10735 Note
10736 \family default
10737  automatically shuts off an 
10738 \family sans
10739 InvisibleText
10740 \family default
10741 .
10742  It's therefore not necessary to use 
10743 \family sans
10744 VisibleText
10745 \family default
10746  at the end of a 
10747 \family sans
10748 Slide
10749 \family default
10750 .
10751 \end_layout
10752
10753 \begin_layout Standard
10754 By now, it should be obvious how to create overlay transparencies using
10755  the proper combination of 
10756 \family sans
10757 InvisibleText
10758 \family default
10759  and 
10760 \family sans
10761 VisibleText
10762 \family default
10763  on a 
10764 \family sans
10765 Slide
10766 \family default
10767  and 
10768 \family sans
10769 Overlay
10770 \family default
10771 :
10772 \end_layout
10773
10774 \begin_layout Enumerate
10775 Create a 
10776 \family sans
10777 Slide
10778 \family default
10779 , including everything that will appear on it, whether on the main slide
10780  or on the 
10781 \family sans
10782 Overlay
10783 \family default
10784 .
10785 \end_layout
10786
10787 \begin_layout Enumerate
10788 Before each figure or paragraph that will appear only on the 
10789 \family sans
10790 Overlay
10791 \family default
10792 , insert an 
10793 \family sans
10794 InvisibleText
10795 \family default
10796  environment.
10797  If necessary, insert a 
10798 \family sans
10799 VisibleText
10800 \family default
10801  environment after the 
10802 \family sans
10803 Overlay
10804 \family default
10805 -only text.
10806 \end_layout
10807
10808 \begin_layout Enumerate
10809 Start an 
10810 \family sans
10811 Overlay
10812 \family default
10813  immediately following the 
10814 \family sans
10815 Slide
10816 \family default
10817 .
10818 \end_layout
10819
10820 \begin_layout Enumerate
10821 Copy the contents of this 
10822 \family sans
10823 Slide
10824 \family default
10825  into the 
10826 \family sans
10827 Overlay
10828 \family default
10829 .
10830 \end_layout
10831
10832 \begin_layout Enumerate
10833 Within the 
10834 \family sans
10835 Overlay
10836 \family default
10837 , change all of the 
10838 \family sans
10839 InvisibleText
10840 \family default
10841  lines to 
10842 \family sans
10843 VisibleText
10844 \family default
10845  and vice-versa.
10846 \end_layout
10847
10848 \begin_layout Standard
10849 That's it.
10850  You've just made an 
10851 \family sans
10852 Overlay
10853 \family default
10854 .
10855 \end_layout
10856
10857 \begin_layout Standard
10858 There's one problem with the way I've designed the LyX 
10859 \family sans
10860 slides
10861 \family default
10862  class: you can't make text in the middle of a paragraph invisible, nor
10863  make text in the middle of an invisible paragraph visible again.
10864  To accomplish this feat, you'll need to use some inlined LaTeX codes.
10865 \begin_inset Foot
10866 status collapsed
10867
10868 \begin_layout Standard
10869 The commands of interest are: 
10870 \end_layout
10871
10872 \begin_layout Itemize
10873
10874 \family typewriter
10875 {
10876 \backslash
10877 invisible \SpecialChar \ldots{}
10878  }
10879 \end_layout
10880
10881 \begin_layout Itemize
10882
10883 \family typewriter
10884 {
10885 \backslash
10886 visible \SpecialChar \ldots{}
10887  }
10888 \end_layout
10889
10890 \begin_layout Standard
10891 \SpecialChar \ldots{}
10892 and need to be marked as TeX.
10893  The text whose 
10894 \begin_inset Quotes eld
10895 \end_inset
10896
10897 visibility
10898 \begin_inset Quotes erd
10899 \end_inset
10900
10901  you wish to change goes in between the brackets [and after the 
10902 \family typewriter
10903
10904 \backslash
10905 invisible
10906 \family default
10907  or 
10908 \family typewriter
10909
10910 \backslash
10911 visible
10912 \family default
10913  command].
10914  If you don't know how to mark text as TeX, see the appropriate section
10915  of the 
10916 \emph on
10917 User's Guide
10918 \emph default
10919 .
10920 \end_layout
10921
10922 \end_inset
10923
10924
10925 \end_layout
10926
10927 \begin_layout Subsubsection
10928 Using 
10929 \family sans
10930 Note
10931 \family default
10932  with 
10933 \family sans
10934 Slide
10935 \family default
10936
10937 \begin_inset LatexCommand label
10938 name "sec:slideNote"
10939
10940 \end_inset
10941
10942
10943 \end_layout
10944
10945 \begin_layout Standard
10946 Like an 
10947 \family sans
10948 Overlay
10949 \family default
10950 , a 
10951 \family sans
10952 Note
10953 \family default
10954  is associated with a 
10955 \begin_inset Quotes eld
10956 \end_inset
10957
10958 parent
10959 \begin_inset Quotes erd
10960 \end_inset
10961
10962  
10963 \family sans
10964 Slide
10965 \family default
10966 .
10967  Here, too, the LyX 
10968 \family sans
10969 slides
10970 \family default
10971  class provides visual cues.
10972  The label for a 
10973 \family sans
10974 Note
10975 \family default
10976  is shorter than that of a 
10977 \family sans
10978 Slide
10979 \family default
10980  [yet longer than that of an 
10981 \family sans
10982 Overlay
10983 \family default
10984 ] and, like the label of an 
10985 \family sans
10986 Overlay
10987 \family default
10988  is shockingly magenta.
10989  Additionally, the printed 
10990 \family sans
10991 Note
10992 \family default
10993  has the page number of its 
10994 \begin_inset Quotes eld
10995 \end_inset
10996
10997 parent
10998 \begin_inset Quotes erd
10999 \end_inset
11000
11001  
11002 \family sans
11003 Slide
11004 \family default
11005 , appended by 
11006 \begin_inset Quotes eld
11007 \end_inset
11008
11009
11010 \family typewriter
11011 -
11012 \family default
11013 1
11014 \begin_inset Quotes erd
11015 \end_inset
11016
11017
11018 \begin_inset Quotes eld
11019 \end_inset
11020
11021
11022 \family typewriter
11023 -
11024 \family default
11025 2
11026 \begin_inset Quotes erd
11027 \end_inset
11028
11029
11030 \begin_inset Quotes eld
11031 \end_inset
11032
11033
11034 \family typewriter
11035 -
11036 \family default
11037 3
11038 \begin_inset Quotes erd
11039 \end_inset
11040
11041 , etc.
11042  You can have multiple 
11043 \family sans
11044 Note
11045 \family default
11046 s associated with a single 
11047 \family sans
11048 Slide
11049 \family default
11050 , and, as with 
11051 \family sans
11052 Slide
11053 \family default
11054  and 
11055 \family sans
11056 Overlay
11057 \family default
11058 , you'll probably want to break up long 
11059 \family sans
11060 Note
11061 \family default
11062 s so that they fit on a single sheet of paper.
11063 \end_layout
11064
11065 \begin_layout Standard
11066 The purpose of a 
11067 \family sans
11068 Note
11069 \family default
11070  is obvious: it contains anything additional you might want to say about
11071  a 
11072 \family sans
11073 Slide
11074 \family default
11075 .
11076  It could also be used as a sheet of reminders for a particular 
11077 \family sans
11078 Slide
11079 \family default
11080 .
11081  In the case of the latter, you might want to make use of time markers.
11082  Currently, the LyX 
11083 \family sans
11084 slides
11085 \family default
11086  class has no 
11087 \begin_inset Quotes eld
11088 \end_inset
11089
11090 native
11091 \begin_inset Quotes erd
11092 \end_inset
11093
11094  support for time markers, a 
11095 \noun on
11096 Sli
11097 \noun default
11098 TeX feature.
11099  So, you'll have to resort to using the LaTeX codes.
11100 \end_layout
11101
11102 \begin_layout Standard
11103 To use time markers, you'll need to specify the extra class option 
11104 \begin_inset Quotes eld
11105 \end_inset
11106
11107
11108 \family typewriter
11109 clock
11110 \family default
11111
11112 \begin_inset Quotes erd
11113 \end_inset
11114
11115  [see section\InsetSpace ~
11116
11117 \begin_inset LatexCommand ref
11118 reference "sec:slidesetup"
11119
11120 \end_inset
11121
11122 ].
11123  This option turns on timing marks, which will appear in the lower-left-hand
11124  corner of every 
11125 \family sans
11126 Note
11127 \family default
11128  you generate.
11129  To set what appears in the time marker, you use the LaTeX commands 
11130 \begin_inset Quotes eld
11131 \end_inset
11132
11133
11134 \family typewriter
11135
11136 \backslash
11137 settime{}
11138 \family default
11139
11140 \begin_inset Quotes erd
11141 \end_inset
11142
11143  and 
11144 \begin_inset Quotes eld
11145 \end_inset
11146
11147
11148 \family typewriter
11149
11150 \backslash
11151 addtime{}
11152 \family default
11153
11154 \begin_inset Quotes erd
11155 \end_inset
11156
11157 .
11158  The arguments of both commands are time measured in seconds.
11159  
11160 \begin_inset Quotes eld
11161 \end_inset
11162
11163
11164 \family typewriter
11165
11166 \backslash
11167 settime{}
11168 \family default
11169
11170 \begin_inset Quotes erd
11171 \end_inset
11172
11173  sets the time marker to a given time.
11174  
11175 \begin_inset Quotes eld
11176 \end_inset
11177
11178
11179 \family typewriter
11180
11181 \backslash
11182 addtime{}
11183 \family default
11184
11185 \begin_inset Quotes erd
11186 \end_inset
11187
11188  increments the time marker by the specified amount.
11189  Using time markers and 
11190 \family sans
11191 Note
11192 \family default
11193 s in this fashion, you can remind yourself how much time to spend on a particula
11194
11195 \family sans
11196 Slide
11197 \family default
11198 .
11199 \end_layout
11200
11201 \begin_layout Standard
11202 There's one last feature to describe.
11203  Clearly, you'd like to print out all of your 
11204 \family sans
11205 Slide
11206 \family default
11207 s and 
11208 \family sans
11209 Overlay
11210 \family default
11211 s on transparencies while printing all of your 
11212 \family sans
11213 Note
11214 \family default
11215 s on plain paper.
11216  However, a 
11217 \family sans
11218 Note
11219 \family default
11220  
11221 \emph on
11222 must
11223 \emph default
11224  follow the 
11225 \family sans
11226 Slide
11227 \family default
11228  with which it is associated.
11229  What's a person to do?
11230 \end_layout
11231
11232 \begin_layout Standard
11233 Luckily, there are two LaTeX commands that allow you to select what to print
11234  out.
11235  Both must be placed into the preamble of your document.
11236  The command 
11237 \begin_inset Quotes eld
11238 \end_inset
11239
11240
11241 \family typewriter
11242
11243 \backslash
11244 onlyslides{
11245 \backslash
11246 slides}
11247 \family default
11248
11249 \begin_inset Quotes erd
11250 \end_inset
11251
11252  will cause the output to contain only the 
11253 \family sans
11254 Slide
11255 \family default
11256 s and 
11257 \family sans
11258 Overlay
11259 \family default
11260 s.
11261  Correspondingly, the command 
11262 \begin_inset Quotes eld
11263 \end_inset
11264
11265
11266 \family typewriter
11267
11268 \backslash
11269 onlynotes{
11270 \backslash
11271 notes}
11272 \family default
11273
11274 \begin_inset Quotes erd
11275 \end_inset
11276
11277  prevents the output of anything but 
11278 \family sans
11279 Note
11280 \family default
11281 s.
11282  I'd advise placing both commands in the preamble and initially comment
11283  both out.
11284  You can then preview your entire presentation as you write.
11285  When you're done writing, you can then uncomment one of the two to select
11286  what you want to print.
11287  I like to uncomment 
11288 \begin_inset Quotes eld
11289 \end_inset
11290
11291
11292 \family typewriter
11293
11294 \backslash
11295 onlyslides{
11296 \backslash
11297 slides}
11298 \family default
11299
11300 \begin_inset Quotes erd
11301 \end_inset
11302
11303  , print to a file with 
11304 \begin_inset Quotes eld
11305 \end_inset
11306
11307
11308 \family typewriter
11309 -slides
11310 \family default
11311
11312 \begin_inset Quotes erd
11313 \end_inset
11314
11315  in its name, comment it back out, then uncomment 
11316 \begin_inset Quotes eld
11317 \end_inset
11318
11319
11320 \family typewriter
11321
11322 \backslash
11323 onlynotes{
11324 \backslash
11325 notes}
11326 \family default
11327
11328 \begin_inset Quotes erd
11329 \end_inset
11330
11331  and print to a 
11332 \begin_inset Quotes eld
11333 \end_inset
11334
11335
11336 \family typewriter
11337 *-notes.ps
11338 \family default
11339
11340 \begin_inset Quotes erd
11341 \end_inset
11342
11343  file.
11344  I can then send either file to a printer, loading transparencies or plain
11345  paper as appropriate.
11346 \end_layout
11347
11348 \begin_layout Standard
11349 You can also provide other arguments to the 
11350 \begin_inset Quotes eld
11351 \end_inset
11352
11353
11354 \family typewriter
11355
11356 \backslash
11357 onlyslides{}
11358 \family default
11359
11360 \begin_inset Quotes erd
11361 \end_inset
11362
11363  and 
11364 \begin_inset Quotes eld
11365 \end_inset
11366
11367
11368 \family typewriter
11369
11370 \backslash
11371 onlynotes{}
11372 \family default
11373
11374 \begin_inset Quotes erd
11375 \end_inset
11376
11377  commands.
11378  See a good LaTeX book for details.
11379 \end_layout
11380
11381 \begin_layout Subsection
11382 The 
11383 \family sans
11384 slides
11385 \family default
11386  Class Template File
11387 \end_layout
11388
11389 \begin_layout Standard
11390 I have also provided a template file, 
11391 \begin_inset Quotes eld
11392 \end_inset
11393
11394
11395 \family typewriter
11396 slides.lyx
11397 \family default
11398
11399 \begin_inset Quotes erd
11400 \end_inset
11401
11402 , with the 
11403 \family sans
11404 slides
11405 \family default
11406  class.
11407  To use it, begin your new presentation with 
11408 \family sans
11409 \bar under
11410 F
11411 \bar default
11412 ile\SpecialChar \menuseparator
11413 New\InsetSpace ~
11414 from\InsetSpace ~
11415
11416 \bar under
11417 T
11418 \bar default
11419 emplate
11420 \family default
11421 .
11422  Your new LyX presentation file will contain an example 
11423 \family sans
11424 Slide
11425 \family default
11426  -- 
11427 \family sans
11428 Overlay
11429 \family default
11430  -- 
11431 \family sans
11432 Note
11433 \family default
11434  triplet.
11435  The 
11436 \family sans
11437 Slide
11438 \family default
11439  and 
11440 \family sans
11441 Overlay
11442 \family default
11443  additionally contain an example of the use of 
11444 \family sans
11445 InvisibleText
11446 \family default
11447  and 
11448 \family sans
11449 VisibleText
11450 \family default
11451 .
11452  Lastly, the preamble will contain:
11453 \end_layout
11454
11455 \begin_layout LyX-Code
11456 % Uncomment to print out only slides and overlays
11457 \end_layout
11458
11459 \begin_layout LyX-Code
11460 %
11461 \end_layout
11462
11463 \begin_layout LyX-Code
11464 %
11465 \backslash
11466 onlyslides{
11467 \backslash
11468 slides}
11469 \newline
11470  
11471 \end_layout
11472
11473 \begin_layout LyX-Code
11474 % Uncomment to print out only notes
11475 \end_layout
11476
11477 \begin_layout LyX-Code
11478 %
11479 \end_layout
11480
11481 \begin_layout LyX-Code
11482 %
11483 \backslash
11484 onlynotes{
11485 \backslash
11486 notes}
11487 \end_layout
11488
11489 \begin_layout Standard
11490 One final thing: I created this class to support the LaTeX2e 
11491 \begin_inset Quotes eld
11492 \end_inset
11493
11494
11495 \noun on
11496 Sli
11497 \noun default
11498 TeX emulation
11499 \begin_inset Quotes erd
11500 \end_inset
11501
11502  class, one of the built-in LaTeX2e classes.
11503  Neither I nor the rest of the LyX Team endorse or oppose the use of this
11504  built-in slide class.
11505  It's here if you want it or need it.
11506  There exist other LaTeX2e classes for creating presentations, such as the
11507  
11508 \family sans
11509 Foils
11510 \family default
11511  class [see section\InsetSpace ~
11512
11513 \begin_inset LatexCommand ref
11514 reference "sec:foiltex"
11515
11516 \end_inset
11517
11518 ] or the 
11519 \begin_inset Quotes eld
11520 \end_inset
11521
11522
11523 \family typewriter
11524 seminar
11525 \family default
11526
11527 \begin_inset Quotes erd
11528 \end_inset
11529
11530  package [present on some TeX distributions].
11531  The latter is not yet supported under LyX.
11532 \begin_inset Foot
11533 status collapsed
11534
11535 \begin_layout Standard
11536 Perhaps you can take on the task\SpecialChar \ldots{}
11537
11538 \end_layout
11539
11540 \end_inset
11541
11542  I know nothing about these other classes.
11543  Try them out to see what sort of alternative they provide.
11544 \end_layout
11545
11546 \begin_layout Section
11547 Foils [aka 
11548 \family sans
11549 Foil
11550 \family default
11551 \noun on
11552 TeX
11553 \noun default
11554 ]
11555 \begin_inset LatexCommand label
11556 name "sec:foiltex"
11557
11558 \end_inset
11559
11560
11561 \end_layout
11562
11563 \begin_layout Standard
11564 by 
11565 \noun on
11566 Allan Rae
11567 \end_layout
11568
11569 \begin_layout Subsection
11570 Introduction
11571 \end_layout
11572
11573 \begin_layout Standard
11574 This section describes how to use LyX to make slides for overhead projectors.
11575  There are two document classes that can do this: the default slides class
11576  and the 
11577 \family sans
11578 Foil
11579 \family default
11580 TeX slides class.
11581  This section documents the latter.
11582 \end_layout
11583
11584 \begin_layout Standard
11585 I'm going to say this again, nice and clear, so that there's no misunderstanding
11586 :
11587 \end_layout
11588
11589 \begin_layout Standard
11590 \begin_inset VSpace bigskip
11591 \end_inset
11592
11593
11594 \end_layout
11595
11596 \begin_layout Standard
11597 \align center
11598
11599 \size large
11600 This section documents the class 
11601 \begin_inset Quotes eld
11602 \end_inset
11603
11604
11605 \family sans
11606 slides (FoilTeX)
11607 \family default
11608
11609 \begin_inset Quotes erd
11610 \end_inset
11611
11612  
11613 \emph on
11614 only.
11615 \end_layout
11616
11617 \begin_layout Standard
11618 \begin_inset VSpace bigskip
11619 \end_inset
11620
11621
11622 \end_layout
11623
11624 \begin_layout Standard
11625 If you're looking for the documentation for 
11626 \begin_inset Quotes eld
11627 \end_inset
11628
11629
11630 \family sans
11631 slides (default)
11632 \family default
11633
11634 \begin_inset Quotes erd
11635 \end_inset
11636
11637 , check out section\InsetSpace ~
11638
11639 \begin_inset LatexCommand ref
11640 reference "sec:slitex"
11641
11642 \end_inset
11643
11644 .
11645  If your machine doesn't have the 
11646 \family sans
11647 foils
11648 \family default
11649  class [
11650 \begin_inset Quotes eld
11651 \end_inset
11652
11653
11654 \family sans
11655 slides (FoilTeX)
11656 \family default
11657
11658 \begin_inset Quotes erd
11659 \end_inset
11660
11661 ] installed, you'll probably have to use the default 
11662 \family sans
11663 slides
11664 \family default
11665  class, which isn't quite as good as 
11666 \family sans
11667 foils.
11668 \end_layout
11669
11670 \begin_layout Standard
11671 The 
11672 \family sans
11673 foils
11674 \family default
11675  class is designed for use with version 2.1 of the 
11676 \family sans
11677 foils.cls
11678 \family default
11679  LaTeX class file which is now an integral part of LaTeX2e.
11680 \end_layout
11681
11682 \begin_layout Subsection
11683 Getting Started
11684 \end_layout
11685
11686 \begin_layout Standard
11687 Obviously, to use this document class, you need to select 
11688 \begin_inset Quotes eld
11689 \end_inset
11690
11691
11692 \family sans
11693 slides (FoilTeX)
11694 \family default
11695
11696 \begin_inset Quotes erd
11697 \end_inset
11698
11699  from the 
11700 \family sans
11701 \bar under
11702 C
11703 \bar default
11704 lass
11705 \family default
11706  entry in the 
11707 \family sans
11708 Document\InsetSpace ~
11709 Layout
11710 \family default
11711  dialog.
11712  There are some settings in the 
11713 \family sans
11714 Document\InsetSpace ~
11715 Layout
11716 \family default
11717  dialog that you should know about that are specific to this class:
11718 \end_layout
11719
11720 \begin_layout Itemize
11721 Don't change the options 
11722 \family sans
11723 Sides
11724 \family default
11725  and 
11726 \family sans
11727 Columns
11728 \family default
11729  on the 
11730 \family sans
11731 Document\InsetSpace ~
11732 Layout
11733 \family default
11734  dialog.
11735  They're ignored by the 
11736 \family sans
11737 foils
11738 \family default
11739  class.
11740 \end_layout
11741
11742 \begin_layout Itemize
11743 The default font size is 20pt with the other options being 17pt, 25pt and
11744  30pt.
11745 \end_layout
11746
11747 \begin_layout Itemize
11748 The default font is 
11749 \family sans
11750 sans
11751 \family default
11752  
11753 \family sans
11754 serif
11755 \family default
11756  but all math equations are still typeset in the usual roman font.
11757 \end_layout
11758
11759 \begin_layout Itemize
11760
11761 \family sans
11762 Foil
11763 \family default
11764 TeX supports A4 and Letter paper sizes as well as a special size for working
11765  with 35mm slides.
11766  It doesn't support A5, B5, legal or executive paper sizes.
11767 \end_layout
11768
11769 \begin_layout Itemize
11770 Don't bother changing the 
11771 \family sans
11772 Float Placement
11773 \family default
11774  settings because they are ignored anyway.
11775  All floats appear where they are defined in the text.
11776 \end_layout
11777
11778 \begin_layout Itemize
11779 The 
11780 \family sans
11781 \bar under
11782 P
11783 \bar default
11784 agestyle
11785 \family default
11786  setting behaves a bit differently for this class.
11787  
11788 \family sans
11789 Foil
11790 \family default
11791 TeX provides extensive footer and header capabilities including a user-defined
11792  logo.
11793  See section\InsetSpace ~
11794
11795 \begin_inset LatexCommand ref
11796 reference "sec:foilfoot"
11797
11798 \end_inset
11799
11800  for more details.
11801  The title page is treated differently to all other pages in the document
11802  and is 
11803 \emph on
11804 always
11805 \emph default
11806  unnumbered and 
11807 \emph on
11808 always
11809 \emph default
11810  has the logo centered at the bottom of the page (if one is defined).
11811  The possible page style choices and what they do are as follows:
11812 \end_layout
11813
11814 \begin_deeper
11815 \begin_layout List
11816 \labelwidthstring MMMMMMM
11817
11818 \family sans
11819 \series bold
11820 empty
11821 \family default
11822 \series default
11823  The final output contains no page numbers, or other headers or footers
11824  (except footnotes of course).
11825  
11826 \end_layout
11827
11828 \begin_layout List
11829 \labelwidthstring MMMMMMM
11830
11831 \family sans
11832 \series bold
11833 plain
11834 \family default
11835 \series default
11836  The final output contains page numbers centered at the bottom of the page.
11837  No other headings or footers (other than footnotes).
11838 \end_layout
11839
11840 \begin_layout List
11841 \labelwidthstring MMMMMMM
11842
11843 \series bold
11844 foilheadings
11845 \series default
11846  Page numbers in lower right corner.
11847  Additional headers and footers are also shown.
11848  This is also the default.
11849 \end_layout
11850
11851 \begin_layout List
11852 \labelwidthstring MMMMMMM
11853
11854 \series bold
11855 fancy
11856 \series default
11857  Gives you access to the 
11858 \family sans
11859 fancyheadings
11860 \family default
11861  package although its use with 
11862 \family sans
11863 Foil
11864 \family default
11865 TeX is discouraged by the writer of the 
11866 \family sans
11867 Foil
11868 \family default
11869 TeX package because of some potential page layout clashes.
11870 \end_layout
11871
11872 \end_deeper
11873 \begin_layout Subsubsection
11874 Extra Options
11875 \end_layout
11876
11877 \begin_layout Standard
11878 The following options may be used in the extra class options in the 
11879 \family sans
11880 \bar under
11881 D
11882 \bar default
11883 ocument\SpecialChar \menuseparator
11884
11885 \bar under
11886 S
11887 \bar default
11888 ettings
11889 \family default
11890  dialog.
11891 \end_layout
11892
11893 \begin_layout List
11894 \labelwidthstring MMMMMMx
11895
11896 \series bold
11897 35mmSlide
11898 \series default
11899  This sets up the page layout for 7.33in by 11in paper, which is about the
11900  same aspect ratio as a 35mm slide, making it a bit easier to work with
11901  this medium.
11902 \end_layout
11903
11904 \begin_layout List
11905 \labelwidthstring MMMMMMx
11906
11907 \series bold
11908 headrule
11909 \series default
11910  Places a rule across the page below the header on every page except the
11911  title page.
11912 \end_layout
11913
11914 \begin_layout List
11915 \labelwidthstring MMMMMMx
11916
11917 \series bold
11918 footrule
11919 \series default
11920  Places a rule across the page above the footer on every page except the
11921  title page.
11922 \end_layout
11923
11924 \begin_layout List
11925 \labelwidthstring MMMMMMx
11926
11927 \series bold
11928 dvips
11929 \series default
11930  This is automatically set each time you create a new 
11931 \family sans
11932 foils
11933 \family default
11934  document.
11935  This option tells 
11936 \family sans
11937 Foil
11938 \family default
11939 TeX to use the dvips driver to rotate those pages that are set as landscape
11940  foils.
11941 \end_layout
11942
11943 \begin_layout List
11944 \labelwidthstring MMMMMMx
11945
11946 \series bold
11947 landscape
11948 \series default
11949  Simply changes the page dimensions to those of a landscape page but doesn't
11950  do any rotation.
11951  Thus if you use this option you need to use an external program to rotate
11952  each page or feed your paper through your printer as landscape.
11953  Note that this option effectively reverses the roles of the 
11954 \family sans
11955 Foilhead
11956 \family default
11957  and 
11958 \family sans
11959 Rotatefoilhead
11960 \family default
11961  environments (don't worry these are described in the next section).
11962 \end_layout
11963
11964 \begin_layout List
11965 \labelwidthstring MMMMMMx
11966
11967 \series bold
11968 leqno
11969 \series default
11970  Equation numbers on the left.
11971 \end_layout
11972
11973 \begin_layout List
11974 \labelwidthstring MMMMMMx
11975
11976 \series bold
11977 fleqn
11978 \series default
11979  Flush-left equations.
11980 \end_layout
11981
11982 \begin_layout Subsection
11983 Supported Environments
11984 \end_layout
11985
11986 \begin_layout Standard
11987 Most of the environments commonly supported in other classes are also supported
11988  by the 
11989 \family sans
11990 foils
11991 \family default
11992  class.
11993  There are several additional environments provided by 
11994 \family sans
11995 Foil
11996 \family default
11997 TeX as well as a couple added by LyX.
11998  The following environments are shared with other classes:
11999 \end_layout
12000
12001 \begin_layout Standard
12002 \begin_inset ERT
12003 status inlined
12004
12005 \begin_layout Standard
12006
12007
12008 \backslash
12009 begin{multicols}{2}
12010 \end_layout
12011
12012 \end_inset
12013
12014
12015 \end_layout
12016
12017 \begin_layout Itemize
12018
12019 \family sans
12020 Standard
12021 \end_layout
12022
12023 \begin_layout Itemize
12024
12025 \family sans
12026 Itemize
12027 \end_layout
12028
12029 \begin_layout Itemize
12030
12031 \family sans
12032 Enumerate
12033 \end_layout
12034
12035 \begin_layout Itemize
12036
12037 \family sans
12038 Description
12039 \end_layout
12040
12041 \begin_layout Itemize
12042
12043 \family sans
12044 List
12045 \end_layout
12046
12047 \begin_layout Itemize
12048
12049 \family sans
12050 LyX-Code
12051 \end_layout
12052
12053 \begin_layout Itemize
12054
12055 \family sans
12056 Verse
12057 \end_layout
12058
12059 \begin_layout Itemize
12060
12061 \family sans
12062 Quote
12063 \end_layout
12064
12065 \begin_layout Itemize
12066
12067 \family sans
12068 Quotation
12069 \end_layout
12070
12071 \begin_layout Itemize
12072
12073 \family sans
12074 Title
12075 \end_layout
12076
12077 \begin_layout Itemize
12078
12079 \family sans
12080 Author
12081 \end_layout
12082
12083 \begin_layout Itemize
12084
12085 \family sans
12086 Date
12087 \end_layout
12088
12089 \begin_layout Itemize
12090
12091 \family sans
12092 Abstract
12093 \end_layout
12094
12095 \begin_layout Itemize
12096
12097 \family sans
12098 Bibliography
12099 \end_layout
12100
12101 \begin_layout Itemize
12102
12103 \family sans
12104 Address
12105 \end_layout
12106
12107 \begin_layout Itemize
12108
12109 \family sans
12110 RightAddress
12111 \end_layout
12112
12113 \begin_layout Itemize
12114
12115 \family sans
12116 Caption
12117 \end_layout
12118
12119 \begin_layout Itemize
12120
12121 \family sans
12122 Comment
12123 \end_layout
12124
12125 \begin_layout Standard
12126 \begin_inset ERT
12127 status inlined
12128
12129 \begin_layout Standard
12130
12131
12132 \backslash
12133 end{multicols}
12134 \end_layout
12135
12136 \end_inset
12137
12138
12139 \end_layout
12140
12141 \begin_layout Standard
12142 That is, all the major environments apart from the sectioning environments.
12143  Since foils are essentially self-contained sections, with a title and body,
12144  
12145 \family sans
12146 Foil
12147 \family default
12148 TeX provides specific commands for starting new foils and these are:
12149 \end_layout
12150
12151 \begin_layout Itemize
12152
12153 \family sans
12154 Foilhead
12155 \end_layout
12156
12157 \begin_layout Itemize
12158
12159 \family sans
12160 Rotatefoilhead
12161 \end_layout
12162
12163 \begin_layout Standard
12164 LyX also provides slightly modified versions of these two environments called:
12165 \end_layout
12166
12167 \begin_layout Itemize
12168
12169 \family sans
12170 ShortFoilhead
12171 \end_layout
12172
12173 \begin_layout Itemize
12174
12175 \family sans
12176 ShortRotatefoilhead
12177 \end_layout
12178
12179 \begin_layout Standard
12180 and the differences will be explained in the next section.
12181 \end_layout
12182
12183 \begin_layout Standard
12184 Since foils are often used in presenting ideas or new theorems and such
12185  
12186 \family sans
12187 Foil
12188 \family default
12189 TeX also provides a comprehensive box of goodies for presenting them:
12190 \end_layout
12191
12192 \begin_layout Standard
12193 \begin_inset ERT
12194 status inlined
12195
12196 \begin_layout Standard
12197
12198
12199 \backslash
12200 begin{multicols}{2}
12201 \end_layout
12202
12203 \end_inset
12204
12205
12206 \end_layout
12207
12208 \begin_layout Itemize
12209
12210 \family sans
12211 Theorem
12212 \end_layout
12213
12214 \begin_layout Itemize
12215
12216 \family sans
12217 Lemma
12218 \end_layout
12219
12220 \begin_layout Itemize
12221
12222 \family sans
12223 Corollary
12224 \end_layout
12225
12226 \begin_layout Itemize
12227
12228 \family sans
12229 Proposition
12230 \end_layout
12231
12232 \begin_layout Itemize
12233
12234 \family sans
12235 Definition
12236 \end_layout
12237
12238 \begin_layout Itemize
12239
12240 \family sans
12241 Proof
12242 \end_layout
12243
12244 \begin_layout Itemize
12245
12246 \family sans
12247 Theorem*
12248 \end_layout
12249
12250 \begin_layout Itemize
12251
12252 \family sans
12253 Lemma*
12254 \end_layout
12255
12256 \begin_layout Itemize
12257
12258 \family sans
12259 Corollary*
12260 \end_layout
12261
12262 \begin_layout Itemize
12263
12264 \family sans
12265 Proposition*
12266 \end_layout
12267
12268 \begin_layout Itemize
12269
12270 \family sans
12271 Definition*
12272 \end_layout
12273
12274 \begin_layout Standard
12275 \begin_inset ERT
12276 status inlined
12277
12278 \begin_layout Standard
12279
12280
12281 \backslash
12282 end{multicols}
12283 \end_layout
12284
12285 \end_inset
12286
12287
12288 \end_layout
12289
12290 \begin_layout Standard
12291 The starred versions are unnumbered while the unstarred versions are numbered.
12292  There are also two list environments added by LyX and these are:
12293 \end_layout
12294
12295 \begin_layout Itemize
12296
12297 \family sans
12298 TickList
12299 \end_layout
12300
12301 \begin_layout Itemize
12302
12303 \family sans
12304 CrossList
12305 \end_layout
12306
12307 \begin_layout Standard
12308
12309 \family sans
12310 Foil
12311 \family default
12312 TeX provides some powerful header and footer capabilities that are best
12313  set in the preamble although they may be set at any point in a document.
12314  If you want to change these settings in your document the best place to
12315  do so is at the very top of a foil, 
12316 \emph on
12317 i.e.
12318
12319 \emph default
12320  straight after the foilhead.
12321 \end_layout
12322
12323 \begin_layout Standard
12324 For this purpose, the following command styles are provided [
12325 \shape smallcaps
12326 Martin Vermeer
12327 \shape default
12328 ]:
12329 \end_layout
12330
12331 \begin_layout Standard
12332 \begin_inset ERT
12333 status inlined
12334
12335 \begin_layout Standard
12336
12337
12338 \backslash
12339 begin{multicols}{2}
12340 \end_layout
12341
12342 \end_inset
12343
12344
12345 \end_layout
12346
12347 \begin_layout Itemize
12348
12349 \family sans
12350 My\InsetSpace ~
12351 Logo
12352 \end_layout
12353
12354 \begin_layout Itemize
12355
12356 \family sans
12357 Restriction
12358 \end_layout
12359
12360 \begin_layout Itemize
12361
12362 \family sans
12363 Right\InsetSpace ~
12364 Footer
12365 \end_layout
12366
12367 \begin_layout Itemize
12368
12369 \family sans
12370 Right\InsetSpace ~
12371 Header
12372 \end_layout
12373
12374 \begin_layout Itemize
12375
12376 \family sans
12377 Left\InsetSpace ~
12378 Header
12379 \end_layout
12380
12381 \begin_deeper
12382 \begin_layout Standard
12383 \InsetSpace ~
12384
12385 \end_layout
12386
12387 \end_deeper
12388 \begin_layout Standard
12389 \begin_inset ERT
12390 status inlined
12391
12392 \begin_layout Standard
12393
12394
12395 \backslash
12396 end{multicols}
12397 \end_layout
12398
12399 \end_inset
12400
12401
12402 \end_layout
12403
12404 \begin_layout Standard
12405 There are also a few commands provided by 
12406 \family sans
12407 Foil
12408 \family default
12409 TeX that aren't directly supported by LyX but I'll tell you what they do
12410  and how to use them in section\InsetSpace ~
12411
12412 \begin_inset LatexCommand ref
12413 reference "sec:unsuppfoils"
12414
12415 \end_inset
12416
12417 .
12418 \end_layout
12419
12420 \begin_layout Subsection
12421 Building a Set of Foils
12422 \end_layout
12423
12424 \begin_layout Standard
12425 This section will give a simple introduction to using the different environments
12426  to build a set of foils.
12427  If you want to see an example set of foils take a look at the 
12428 \family typewriter
12429 Foils.lyx
12430 \family default
12431  file accessible from the 
12432 \family sans
12433 \bar under
12434 F
12435 \bar default
12436 ile\SpecialChar \menuseparator
12437
12438 \bar under
12439 O
12440 \bar default
12441 pen\SpecialChar \ldots{}
12442
12443 \family default
12444  dialog under the 
12445 \family sans
12446 Examples
12447 \family default
12448  button.
12449  
12450 \end_layout
12451
12452 \begin_layout Subsubsection
12453 Give It a Title Page
12454 \end_layout
12455
12456 \begin_layout Standard
12457 Unlike other classes that provide 
12458 \family sans
12459 Title
12460 \family default
12461
12462 \family sans
12463 Author
12464 \family default
12465
12466 \family sans
12467 Date
12468 \family default
12469  and 
12470 \family sans
12471 Abstract
12472 \family default
12473  environments, 
12474 \family sans
12475 foils
12476 \family default
12477  creates the title on a page of its own.
12478  If you leave out the 
12479 \family sans
12480 Date
12481 \family default
12482  environment LaTeX will substitute the current date (every time you regenerate
12483  the output).
12484 \end_layout
12485
12486 \begin_layout Subsubsection
12487 Start a New Foil
12488 \end_layout
12489
12490 \begin_layout Standard
12491 As I mentioned earlier, there are four ways of starting a new foil.
12492  For portrait foils you should use 
12493 \family sans
12494 Foilhead
12495 \family default
12496  or 
12497 \family sans
12498 ShortFoilhead.
12499
12500 \family default
12501  The difference between these two environments is the amount of space between
12502  the title of the foil (the foilhead) and the body of the foil.
12503 \end_layout
12504
12505 \begin_layout Standard
12506 Landscape foils are generated using the 
12507 \family sans
12508 Rotatefoilhead
12509 \family default
12510  and 
12511 \family sans
12512 ShortRotatefoilhead
12513 \family default
12514  environments.
12515  Again the only difference is the spacing between foilhead and body.
12516  Both of the short versions have 0.5 inches less separation between the foilhead
12517  and the body.
12518  
12519 \end_layout
12520
12521 \begin_layout Standard
12522 One problem with the support for landscape foils is the requirement that
12523  you have to use the 
12524 \family typewriter
12525 dvips
12526 \family default
12527  driver to generate the PostScript output otherwise the foils won't be rotated.
12528  It is possible to get landscape foils even if you haven't got the 
12529 \family typewriter
12530 dvips
12531 \family default
12532  driver provided you can feed your foils sideways through your printer ;-)
12533 \end_layout
12534
12535 \begin_layout Subsubsection
12536 Theorems, Lemmas, Proofs and more
12537 \end_layout
12538
12539 \begin_layout Standard
12540 Due to a small bug in LyX you can't have two of the same type of these environme
12541 nts directly following each other.
12542  They must be separated by something.
12543  If you try, you will just be extending the previous environment as if you
12544  had merged the two environments together.
12545  So, how do you get around this problem? The simplest option is to insert
12546  some text between the two environments or add a 
12547 \family sans
12548 LaTeX
12549 \family default
12550  environment between the two with just a 
12551 \begin_inset Quotes eld
12552 \end_inset
12553
12554
12555 \family typewriter
12556 %
12557 \family default
12558
12559 \begin_inset Quotes erd
12560 \end_inset
12561
12562  in it.
12563  This will force LyX to produce two separate environments and hence the
12564  correct LaTeX output.
12565  An example is provided in the example file included with the LyX distribution.
12566  Remember, this problem only occurs if you are trying to place two of the
12567  same type of theorem-like environments one directly after the other.
12568 \end_layout
12569
12570 \begin_layout Subsubsection
12571 Lists
12572 \end_layout
12573
12574 \begin_layout Standard
12575 You get all the commonly supported list styles found in other classes as
12576  well as two new ones.
12577  I'll only describe the new ones here.
12578  If you want to find out more about the other list environments check out
12579  the 
12580 \emph on
12581 User's Guide.
12582
12583 \emph default
12584  If you intend to use itemized lists you might also want to read about the
12585  
12586 \family sans
12587 Itemize\InsetSpace ~
12588 Bullet\InsetSpace ~
12589 Selection
12590 \family default
12591  dialog described above in section\InsetSpace ~
12592
12593 \begin_inset LatexCommand ref
12594 reference "sec:bullet"
12595
12596 \end_inset
12597
12598 .
12599 \end_layout
12600
12601 \begin_layout Standard
12602 The two new list styles, 
12603 \family sans
12604 TickList
12605 \family default
12606  and 
12607 \family sans
12608 CrossList
12609 \family default
12610 , are designed to make it easier for you to create lists of do's and don'ts
12611  or right and wrong by providing dedicated environments that use a tick
12612  or a cross as the label of the list.
12613  These lists are in fact dedicated variants of the 
12614 \family sans
12615 Itemize
12616 \family default
12617  environment.
12618  They do however require that you have the 
12619 \family typewriter
12620 psnfss
12621 \family default
12622  packages installed.
12623 \end_layout
12624
12625 \begin_layout Subsubsection
12626 Figures and Tables
12627 \end_layout
12628
12629 \begin_layout Standard
12630
12631 \family sans
12632 Foil
12633 \family default
12634 TeX redefines the floating tables and figures so that they appear exactly
12635  where they are in the text rather than pushing them to the top of the page
12636  or to some user specified location.
12637  In fact if you change the float placement settings they are simply ignored.
12638 \end_layout
12639
12640 \begin_layout Subsubsection
12641 Page Headers and Footers
12642 \begin_inset LatexCommand label
12643 name "sec:foilfoot"
12644
12645 \end_inset
12646
12647
12648 \end_layout
12649
12650 \begin_layout Standard
12651
12652 \family sans
12653 My\InsetSpace ~
12654 Logo
12655 \family default
12656  and 
12657 \family sans
12658 Restriction
12659 \family default
12660  are two commands used to control the left-footer text string.
12661  The first is meant to allow you to include a graphic logo on your foils
12662  and defaults to 
12663 \begin_inset Quotes eld
12664 \end_inset
12665
12666 -Typeset by 
12667 \family sans
12668 Foil
12669 \family default
12670 TeX-
12671 \begin_inset Quotes erd
12672 \end_inset
12673
12674 .
12675  While the second is meant to provide a classification for the audience,
12676  
12677 \emph on
12678 e.\InsetSpace \thinspace{}
12679 g.
12680 \emph default
12681 \InsetSpace ~
12682 Confidential.
12683  It is empty by default.
12684 \end_layout
12685
12686 \begin_layout Standard
12687 The remaining page corners can be filled by 
12688 \family sans
12689 Right\InsetSpace ~
12690 Footer
12691 \family default
12692  (which defaults to page numbers), 
12693 \family sans
12694 Right\InsetSpace ~
12695 Header
12696 \family default
12697  (top right) and 
12698 \family sans
12699 Left\InsetSpace ~
12700 Header
12701 \family default
12702  (top left).
12703 \end_layout
12704
12705 \begin_layout Subsection
12706 Unsupported 
12707 \family sans
12708 Foil
12709 \family default
12710 TeX Goodies
12711 \begin_inset LatexCommand label
12712 name "sec:unsuppfoils"
12713
12714 \end_inset
12715
12716
12717 \end_layout
12718
12719 \begin_layout Standard
12720 All the commands mentioned below need to be set in a 
12721 \family sans
12722 LaTeX
12723 \family default
12724  environment or as 
12725 \family sans
12726 TeX
12727 \family default
12728  within another environment.
12729 \end_layout
12730
12731 \begin_layout Subsubsection
12732 Lengths
12733 \end_layout
12734
12735 \begin_layout Standard
12736 All lengths are adjusted using the 
12737 \family typewriter
12738
12739 \backslash
12740 setlength{
12741 \family default
12742 \emph on
12743 lengthname
12744 \family typewriter
12745 \emph default
12746 }{
12747 \family default
12748 \emph on
12749 newlength
12750 \family typewriter
12751 \emph default
12752 }
12753 \family default
12754  command.
12755  Where 
12756 \emph on
12757 lengthname
12758 \emph default
12759  should be replaced by the name given to the length you want to change and
12760  
12761 \emph on
12762 newlength
12763 \emph default
12764  is the length value.
12765  All lengths should be specified in units of length such as inches (
12766 \family typewriter
12767 in
12768 \family default
12769 ), millimeters (
12770 \family typewriter
12771 mm
12772 \family default
12773 ) or points (
12774 \family typewriter
12775 pt
12776 \family default
12777 ) or relative to some document or font-based length such as 
12778 \family typewriter
12779
12780 \backslash
12781 textwidth
12782 \family default
12783 .
12784  
12785 \end_layout
12786
12787 \begin_layout Standard
12788 It's possible to change the spacing between a foilhead and the body of the
12789  foil by adjusting the length specified by 
12790 \family typewriter
12791
12792 \backslash
12793 foilheadskip
12794 \family default
12795 .
12796  For example, to make 
12797 \emph on
12798 all
12799 \emph default
12800  foilheads 0.5 inches closer to their bodies put the following in the preamble:
12801  
12802 \family typewriter
12803
12804 \backslash
12805 setlength{
12806 \backslash
12807 foilheadskip}{-0.5in}
12808 \end_layout
12809
12810 \begin_layout Standard
12811 The spacings around floats can be adjusted by setting these lengths:
12812 \end_layout
12813
12814 \begin_layout List
12815 \labelwidthstring MMMMMMMMMMM
12816
12817 \family typewriter
12818
12819 \backslash
12820 abovefloatskip
12821 \family default
12822  Separation between the text and the top of the float
12823 \end_layout
12824
12825 \begin_layout List
12826 \labelwidthstring MMMMMMMMMMM
12827
12828 \family typewriter
12829
12830 \backslash
12831 abovecaptionskip
12832 \family default
12833  Separation between the float and the caption
12834 \end_layout
12835
12836 \begin_layout List
12837 \labelwidthstring MMMMMMMMMMM
12838
12839 \family typewriter
12840
12841 \backslash
12842 belowcaptionskip
12843 \family default
12844  Separation between the caption and the following text
12845 \end_layout
12846
12847 \begin_layout List
12848 \labelwidthstring MMMMMMMMMMM
12849
12850 \family typewriter
12851
12852 \backslash
12853 captionwidth
12854 \family default
12855  You can make the captions narrower than the surrounding text by adjusting
12856  this length.
12857  Best done relative to 
12858 \family typewriter
12859
12860 \backslash
12861 textwidth
12862 \family default
12863 .
12864 \end_layout
12865
12866 \begin_layout Standard
12867 There are also several title page related lengths that you may find useful
12868  if you have a long title or several authors:
12869 \end_layout
12870
12871 \begin_layout List
12872 \labelwidthstring MMMMMMMMMMM
12873
12874 \family typewriter
12875
12876 \backslash
12877 abovetitleskip
12878 \family default
12879  Separation from headers to 
12880 \family sans
12881 Title
12882 \end_layout
12883
12884 \begin_layout List
12885 \labelwidthstring MMMMMMMMMMM
12886
12887 \family typewriter
12888
12889 \backslash
12890 titleauthorskip
12891 \family default
12892  between 
12893 \family sans
12894 Title
12895 \family default
12896  and 
12897 \family sans
12898 Author
12899 \family default
12900  environments
12901 \end_layout
12902
12903 \begin_layout List
12904 \labelwidthstring MMMMMMMMMMM
12905
12906 \family typewriter
12907
12908 \backslash
12909 authorauthorskip
12910 \family default
12911  between multiple 
12912 \family sans
12913 Author
12914 \family default
12915  lines
12916 \end_layout
12917
12918 \begin_layout List
12919 \labelwidthstring MMMMMMMMMMM
12920
12921 \family typewriter
12922
12923 \backslash
12924 authordateskip
12925 \family default
12926  between the 
12927 \family sans
12928 Author
12929 \family default
12930  and the 
12931 \family sans
12932 Date
12933 \end_layout
12934
12935 \begin_layout List
12936 \labelwidthstring MMMMMMMMMMM
12937
12938 \family typewriter
12939
12940 \backslash
12941 dateabstractskip
12942 \family default
12943  between the 
12944 \family sans
12945 Date
12946 \family default
12947  and the 
12948 \family sans
12949 Abstract
12950 \end_layout
12951
12952 \begin_layout Standard
12953 The last length related command affects all the list environments.
12954  If you place 
12955 \family typewriter
12956
12957 \backslash
12958 zerolistvertdimens
12959 \family default
12960  
12961 \emph on
12962 inside
12963 \emph default
12964  a list environment then all the vertical spacing between the list items
12965  is removed.
12966  Note that this is a command not a length so it doesn't require 
12967 \family typewriter
12968
12969 \backslash
12970 setlength
12971 \family default
12972  like the stuff mentioned above.
12973 \end_layout
12974
12975 \begin_layout Subsubsection
12976 Headers and Footers
12977 \end_layout
12978
12979 \begin_layout Standard
12980 The 
12981 \family typewriter
12982
12983 \backslash
12984 LogoOn
12985 \family default
12986  and 
12987 \family typewriter
12988
12989 \backslash
12990 LogoOff
12991 \family default
12992  commands control whether the logo in the 
12993 \family sans
12994 MyLogo
12995 \family default
12996  definition appear on a given page.
12997  If you put 
12998 \family typewriter
12999
13000 \backslash
13001 LogoOff
13002 \family default
13003  in the preamble then none of the foils will have the logo on them.
13004  If you don't want the logo on a particular page place the 
13005 \family typewriter
13006
13007 \backslash
13008 LogoOff
13009 \family default
13010  directly after the foilhead of that page and the 
13011 \family typewriter
13012
13013 \backslash
13014 LogoOn
13015 \family default
13016  directly after the next foilhead.
13017 \end_layout
13018
13019 \begin_layout Standard
13020 If you decide to use the 
13021 \family sans
13022 fancy
13023 \family default
13024  page style setting in the 
13025 \family sans
13026 Document\InsetSpace ~
13027 Layout
13028 \family default
13029  dialog you should probably add 
13030 \family typewriter
13031
13032 \backslash
13033 let
13034 \backslash
13035 headwidth
13036 \backslash
13037 textwidth
13038 \family default
13039  to your preamble so headers and footers on landscape pages are correctly
13040  placed when rotated.
13041  This is due to some clashes between the page layouts provided by the 
13042 \family sans
13043 fancyheadings
13044 \family default
13045  package and the 
13046 \family sans
13047 foils
13048 \family default
13049  class.
13050 \end_layout
13051
13052 \begin_layout Section
13053 Latex8 (IEEE Conference Papers)
13054 \end_layout
13055
13056 \begin_layout Standard
13057 by 
13058 \noun on
13059 Allan Rae
13060 \end_layout
13061
13062 \begin_layout Subsection
13063 Introduction
13064 \end_layout
13065
13066 \begin_layout Standard
13067 Since this class is specifically for writing submissions to IEEE sponsored
13068  conferences I strongly recommend that you get a copy of their Authors Kit.
13069  The 
13070 \family sans
13071 latex.sty
13072 \family default
13073  package and associated bibliography style file is included in the kit.
13074  The Authors Kit is usually sent out by email once your initial submission
13075  has been accepted.
13076  There is a lot of useful information in the Authors Kit explaining formatting
13077  restrictions and so on and I will assume you have read this since that
13078  means I don't have to repeat it all here.
13079 \end_layout
13080
13081 \begin_layout Subsection
13082 Getting Started
13083 \end_layout
13084
13085 \begin_layout Standard
13086 [AR\SpecialChar \@.
13087  more to come]
13088 \end_layout
13089
13090 \begin_layout Subsection
13091 Supported Environments
13092 \end_layout
13093
13094 \begin_layout Itemize
13095
13096 \family sans
13097 Standard
13098 \end_layout
13099
13100 \begin_layout Itemize
13101
13102 \family sans
13103 Title
13104 \end_layout
13105
13106 \begin_layout Itemize
13107
13108 \family sans
13109 Author
13110 \end_layout
13111
13112 \begin_layout Itemize
13113
13114 \family sans
13115 E-mail
13116 \end_layout
13117
13118 \begin_layout Itemize
13119
13120 \family sans
13121 Affiliation
13122 \end_layout
13123
13124 \begin_layout Itemize
13125
13126 \family sans
13127 Abstract
13128 \end_layout
13129
13130 \begin_layout Itemize
13131
13132 \family sans
13133 Section
13134 \end_layout
13135
13136 \begin_layout Itemize
13137
13138 \family sans
13139 SubSection
13140 \end_layout
13141
13142 \begin_layout Itemize
13143
13144 \family sans
13145 Caption
13146 \end_layout
13147
13148 \begin_layout Subsection
13149 Differences Between Screen and Paper
13150 \end_layout
13151
13152 \begin_layout Standard
13153 There are slight differences in appearance mainly with the presentation
13154  of section counters.
13155  On screen the trailing period of the section counter is missing but it
13156  will appear in the output so don't let this worry you.
13157 \end_layout
13158
13159 \begin_layout Section
13160 Hollywood (Hollywood spec scripts)
13161 \end_layout
13162
13163 \begin_layout Standard
13164 by 
13165 \shape smallcaps
13166 Garst Reese
13167 \end_layout
13168
13169 \begin_layout Subsection
13170 Introduction
13171 \end_layout
13172
13173 \begin_layout Standard
13174 Getting the format of a Hollywood script right is a 
13175 \begin_inset Quotes eld
13176 \end_inset
13177
13178 rite of passage.
13179 \begin_inset Quotes erd
13180 \end_inset
13181
13182  It is designed to make the readers focus on content and to be easy and
13183  familiar for the actors to read.
13184  Each page of a script should be one minute of film.
13185  Nothing goes in a script that you cannot see or hear on screen.
13186  The courier 12 pt font should be used throughout.
13187  No italics.
13188 \end_layout
13189
13190 \begin_layout Subsection
13191 Special problems
13192 \end_layout
13193
13194 \begin_layout Standard
13195 Speakers' lines should NEVER break in mid-sentence.
13196  If a speaker's lines continue over a page break, repeat the 
13197 \family sans
13198 Speaker
13199 \family default
13200  title followed by (Cont'd).
13201 \end_layout
13202
13203 \begin_layout Subsection
13204 Special features
13205 \end_layout
13206
13207 \begin_layout Standard
13208 Insert the 
13209 \family sans
13210 Speaker
13211 \family default
13212  names as labels then cross-reference the label to insert the name.
13213  The cross-reference dialog will show the current cast of characters.
13214  You can use this to insert the speaker name in narratives also.
13215 \end_layout
13216
13217 \begin_layout Subsection
13218 Paper size and Margins
13219 \end_layout
13220
13221 \begin_layout Standard
13222 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
13223 \end_layout
13224
13225 \begin_layout Subsection
13226 Environments
13227 \end_layout
13228
13229 \begin_layout Standard
13230 The following environments are available.
13231  You can use hollywood.bind to get the bind keys shown at the right.
13232 \end_layout
13233
13234 \begin_layout Itemize
13235
13236 \family sans
13237 Standard
13238 \newline
13239
13240 \family default
13241 Used where nothing else works.
13242  Try to avoid it.
13243 \end_layout
13244
13245 \begin_layout Itemize
13246
13247 \family sans
13248 FADE_IN
13249 \family default
13250 :
13251 \hfill
13252
13253 \family sans
13254 M-z S-I
13255 \family default
13256
13257 \newline
13258 Usually followed by something like 
13259 \begin_inset Quotes eld
13260 \end_inset
13261
13262 on Sally waking up.
13263 \begin_inset Quotes erd
13264 \end_inset
13265
13266
13267 \end_layout
13268
13269 \begin_layout Itemize
13270
13271 \family sans
13272 INT:
13273 \hfill
13274 M-z i
13275 \newline
13276
13277 \family default
13278 Introduces a new INTERIOR camera set-up.
13279  Always followed by DAY or NIGHT, or something similar to define the lighting
13280  required.
13281  Everthing on this line in CAPS.
13282 \end_layout
13283
13284 \begin_layout Itemize
13285
13286 \family sans
13287 EXT:
13288 \hfill
13289 M-z e
13290 \newline
13291
13292 \family default
13293 Introduces a new EXTERIOR camera set-up.
13294  Everthing on this line in CAPS.
13295 \end_layout
13296
13297 \begin_layout Itemize
13298
13299 \family sans
13300 Speaker
13301 \hfill
13302 M-z s
13303 \newline
13304
13305 \family default
13306 The character speaking.
13307 \end_layout
13308
13309 \begin_layout Itemize
13310
13311 \family sans
13312 Parenthetical
13313 \hfill
13314 M-z p
13315 \newline
13316
13317 \family default
13318 Instructions to the speaker.
13319  The () are automatically inserted, but only the ( will show in LyX.
13320  Both will be printed.
13321 \end_layout
13322
13323 \begin_layout Itemize
13324
13325 \family sans
13326 Dialogue
13327 \hfill
13328 M-z d
13329 \newline
13330
13331 \family default
13332 What the 
13333 \family sans
13334 Speaker
13335 \family default
13336  says.
13337 \end_layout
13338
13339 \begin_layout Itemize
13340
13341 \family sans
13342 Transition
13343 \hfill
13344 M-z t
13345 \newline
13346
13347 \family default
13348 Camera movement instruction.
13349  e.\InsetSpace \thinspace{}
13350 g.\InsetSpace ~
13351 CUT TO:
13352 \end_layout
13353
13354 \begin_layout Itemize
13355
13356 \family sans
13357 FADE OUT:
13358 \hfill
13359 M-z S-I
13360 \end_layout
13361
13362 \begin_layout Itemize
13363
13364 \family sans
13365 Author
13366 \hfill
13367 M-z S-A
13368 \end_layout
13369
13370 \begin_layout Itemize
13371
13372 \family sans
13373 Title
13374 \hfill
13375 M-z S-T
13376 \end_layout
13377
13378 \begin_layout Itemize
13379
13380 \family sans
13381 Right_Address
13382 \hfill
13383 M-z r
13384 \end_layout
13385
13386 \begin_layout Subsection
13387 Script jargon
13388 \end_layout
13389
13390 \begin_layout Itemize
13391 (O.S) --- off screen
13392 \end_layout
13393
13394 \begin_layout Itemize
13395 (V.0) --- voice over
13396 \end_layout
13397
13398 \begin_layout Itemize
13399 b.g.
13400  --- background
13401 \end_layout
13402
13403 \begin_layout Itemize
13404 C.U.
13405  --- close-up
13406 \end_layout
13407
13408 \begin_layout Itemize
13409 PAN --- camera movement
13410 \end_layout
13411
13412 \begin_layout Itemize
13413 INSERT --- cut to close-up of
13414 \end_layout
13415
13416 \begin_layout Section
13417 Broadway
13418 \end_layout
13419
13420 \begin_layout Standard
13421 by 
13422 \shape smallcaps
13423 Garst Reese
13424 \end_layout
13425
13426 \begin_layout Subsection
13427 Introduction
13428 \end_layout
13429
13430 \begin_layout Standard
13431 Broadway is for writing plays.
13432  The format is more decorative than Hollywood, and much less standardized.
13433  This format should be suitable for workshops.
13434 \end_layout
13435
13436 \begin_layout Subsection
13437 Special problems
13438 \end_layout
13439
13440 \begin_layout Standard
13441 The same as in Hollywood.
13442 \end_layout
13443
13444 \begin_layout Subsection
13445 Special features
13446 \end_layout
13447
13448 \begin_layout Standard
13449 Insert the 
13450 \family sans
13451 Speaker
13452 \family default
13453  names as labels then cross-reference the label to insert the name.
13454  The cross-reference dialog will show the current cast of characters.
13455 \end_layout
13456
13457 \begin_layout Subsection
13458 Paper size and Margins
13459 \end_layout
13460
13461 \begin_layout Standard
13462 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
13463 \end_layout
13464
13465 \begin_layout Subsection
13466 Environments
13467 \end_layout
13468
13469 \begin_layout Standard
13470 The following environments are available.
13471  You can use broadway.bind to get the bind keys shown at the right.
13472 \end_layout
13473
13474 \begin_layout Itemize
13475
13476 \family sans
13477 Standard
13478 \newline
13479
13480 \family default
13481 You should not have to use this, but it is here for anything that does not
13482  fit otherwise.
13483 \end_layout
13484
13485 \begin_layout Itemize
13486
13487 \family sans
13488 Narrative
13489 \hfill
13490 M-z n
13491 \newline
13492
13493 \family default
13494 Used to describe stage setting and the action.
13495  First use of speaker names in all CAPs.
13496 \end_layout
13497
13498 \begin_layout Itemize
13499
13500 \family sans
13501 ACT
13502 \hfill
13503 M-z a
13504 \newline
13505
13506 \family default
13507 Automatically numbered.
13508  On screen it will be arabic, but will print as Roman.
13509 \end_layout
13510
13511 \begin_layout Itemize
13512
13513 \family sans
13514 ACT*
13515 \hfill
13516 M-z S at
13517 \newline
13518
13519 \family default
13520 Subtitle for 
13521 \family sans
13522 ACT.
13523
13524 \family default
13525  It is just centered text.
13526 \end_layout
13527
13528 \begin_layout Itemize
13529
13530 \family sans
13531 SCENE
13532 \hfill
13533 M-z S-S
13534 \newline
13535
13536 \family default
13537 Not automatically numbered.
13538  You supply the number.
13539  This is because I couldn't figure out how.
13540 \end_layout
13541
13542 \begin_layout Itemize
13543
13544 \family sans
13545 AT_RISE:
13546 \hfill
13547 M-z S-R
13548 \newline
13549
13550 \family default
13551 A special case of Narrative to describe the setting and action as the curtain
13552  rises.
13553 \end_layout
13554
13555 \begin_layout Itemize
13556
13557 \family sans
13558 Speaker
13559 \hfill
13560 M-z s
13561 \newline
13562
13563 \family default
13564 The speaker's (actor's) title, centered in all CAPS.
13565 \end_layout
13566
13567 \begin_layout Itemize
13568
13569 \family sans
13570 Parenthetical
13571 \hfill
13572 M-z p
13573 \newline
13574
13575 \family default
13576 Instructions to the speaker.
13577  The parentheses are automatically inserted.
13578  The ( will appear on screen, but both will be in the printed play.
13579  This environment is only used within 
13580 \family sans
13581 Dialogue
13582 \family default
13583 .
13584 \end_layout
13585
13586 \begin_layout Itemize
13587
13588 \family sans
13589 Dialogue
13590 \hfill
13591 M-z d
13592 \newline
13593
13594 \family default
13595 What the Speaker says.
13596 \end_layout
13597
13598 \begin_layout Itemize
13599
13600 \family sans
13601 CURTAIN
13602 \hfill
13603 M-z S-C
13604 \newline
13605
13606 \family default
13607 The curtain comes down.
13608 \end_layout
13609
13610 \begin_layout Itemize
13611
13612 \family sans
13613 Title
13614 \hfill
13615 M-z S-T
13616 \end_layout
13617
13618 \begin_layout Itemize
13619
13620 \family sans
13621 Author
13622 \hfill
13623 M-z S-A
13624 \end_layout
13625
13626 \begin_layout Itemize
13627
13628 \family sans
13629 Right_Address
13630 \hfill
13631 M-z r
13632 \end_layout
13633
13634 \begin_layout Standard
13635 Hello there.
13636 \end_layout
13637
13638 \begin_layout Section
13639 RevTeX4
13640 \end_layout
13641
13642 \begin_layout Standard
13643 by 
13644 \noun on
13645 Amir Karger
13646 \end_layout
13647
13648 \begin_layout Standard
13649 \begin_inset VSpace bigskip
13650 \end_inset
13651
13652
13653 \end_layout
13654
13655 \begin_layout Standard
13656 \noindent
13657 The 
13658 \family sans
13659 Revtex\InsetSpace ~
13660 4
13661 \family default
13662  textclass works with the American Physical Sociey's RevTeX 4.0 (the 
13663 \begin_inset Formula $\beta$
13664 \end_inset
13665
13666  release of May, 1999) class.
13667 \end_layout
13668
13669 \begin_layout Standard
13670 LyX has a 
13671 \family sans
13672 Revtex
13673 \family default
13674  textclass, which works with RevTeX 3.1.
13675  However, v3.1 is basically obsolete, as it works with LaTeX 2.09.
13676  That means that it doesn't interact very well with LyX, which requires
13677  LaTeX2e, although it has been kludged to work.
13678  Since RevTeX 4.0 has been designed to work much more cleanly with LaTeX2e,
13679  LyX with the 
13680 \family sans
13681 RevTeX\InsetSpace ~
13682 4
13683 \family default
13684  textclass should also be pretty easy to use.
13685 \end_layout
13686
13687 \begin_layout Standard
13688 These documents are supposed to be used in 
13689 \emph on
13690 addition
13691 \emph default
13692  to the RevTeX 4.0 documents, so we don't describe any of the special RevTeX
13693  macros, and assume you'll know what to put in the preamble if necessary.
13694 \end_layout
13695
13696 \begin_layout Subsection
13697 Installation
13698 \end_layout
13699
13700 \begin_layout Standard
13701 All you need to do is install RevTeX 4, as described in the package's README
13702  file.
13703  The package can be found at 
13704 \begin_inset LatexCommand url
13705 name "The RevTeX 4 Web Site"
13706 target "http://publish.aps.org/revtex4/"
13707
13708 \end_inset
13709
13710 .
13711  Install it somewhere that LaTeX can see it.
13712  Test it by trying to LaTeX a short RevTeX 4 document in some random directory
13713  (i.e., not the directory where you installed the class file.) Then, if you
13714  reconfigure LyX, it will find the class file and let you use the RevTeX4
13715  textclass.
13716 \end_layout
13717
13718 \begin_layout Standard
13719 Probably the easiest way to get started is either to import a RevTeX 4 document
13720  using 
13721 \family typewriter
13722 reLyX
13723 \family default
13724 , or to use the 
13725 \family sans
13726 Revtex\InsetSpace ~
13727 4
13728 \family default
13729  template, found in the templates directory.
13730 \end_layout
13731
13732 \begin_layout Subsection
13733 Preamble Matter
13734 \end_layout
13735
13736 \begin_layout Standard
13737 Optional arguments to 
13738 \family typewriter
13739
13740 \backslash
13741 documentclass
13742 \family default
13743 , like 
13744 \begin_inset Quotes eld
13745 \end_inset
13746
13747 preprint
13748 \begin_inset Quotes erd
13749 \end_inset
13750
13751  and 
13752 \begin_inset Quotes eld
13753 \end_inset
13754
13755 aps
13756 \begin_inset Quotes erd
13757 \end_inset
13758
13759 , go in the 
13760 \family sans
13761 E
13762 \bar under
13763 x
13764 \bar default
13765 tra\InsetSpace ~
13766 Options
13767 \family default
13768  field in the 
13769 \family sans
13770 Document\InsetSpace ~
13771 Layout
13772 \family default
13773  dialog, as usual.
13774  Remember that in RevTeX, at least one optional argument is required! 
13775 \end_layout
13776
13777 \begin_layout Standard
13778 Other preamble matter, like 
13779 \family typewriter
13780
13781 \backslash
13782 draft
13783 \family default
13784  etc.\InsetSpace ~
13785 goes in the 
13786 \family sans
13787 La
13788 \family default
13789 T
13790 \family sans
13791 eX\InsetSpace ~
13792 Preamble
13793 \family default
13794  dialog, also as usual.
13795 \end_layout
13796
13797 \begin_layout Subsection
13798 Layouts
13799 \end_layout
13800
13801 \begin_layout Standard
13802 The layouts basically correspond to the commands in RevTeX4.0.
13803  For example, the Email layout corresponds to 
13804 \family typewriter
13805
13806 \backslash
13807 email{}
13808 \family default
13809 .
13810  Note that (at least as of RevTeX 4.0 Beta), the 
13811 \family sans
13812 Address
13813 \family default
13814  and 
13815 \family sans
13816 Affiliation
13817 \family default
13818  layouts are exactly equivalent, so you shouldn't need to use both.
13819 \begin_inset Foot
13820 status collapsed
13821
13822 \begin_layout Standard
13823 In case you're curious, both were included so that 
13824 \family typewriter
13825 reLyX
13826 \family default
13827  would be able to translate both 
13828 \family typewriter
13829
13830 \backslash
13831 address
13832 \family default
13833  and 
13834 \family typewriter
13835
13836 \backslash
13837 affiliation
13838 \family default
13839 .
13840 \end_layout
13841
13842 \end_inset
13843
13844
13845 \end_layout
13846
13847 \begin_layout Subsection
13848 Important Notes
13849 \end_layout
13850
13851 \begin_layout Standard
13852 There are a couple of important unique aspects of RevTeX 4 which might cause
13853  bugs that will be even more confusing in LyX.
13854 \end_layout
13855
13856 \begin_layout Standard
13857 In RevTeX, the 
13858 \family typewriter
13859
13860 \backslash
13861 thanks
13862 \family default
13863  command goes 
13864 \emph on
13865 outside
13866 \emph default
13867  the 
13868 \family typewriter
13869
13870 \backslash
13871 author
13872 \family default
13873  command.
13874  The LyX equivalent is that there is a separate Thanks layout.
13875  Do 
13876 \emph on
13877 not
13878 \emph default
13879  write footnotes in the 
13880 \family sans
13881 Author
13882 \family default
13883  layout, or weird things may happen.
13884  See the RevTeX 4 documentation for more details.
13885 \end_layout
13886
13887 \begin_layout Standard
13888 Also, the 
13889 \family sans
13890 Author\InsetSpace ~
13891 Email
13892 \family default
13893
13894 \family sans
13895 Author\InsetSpace ~
13896 URL
13897 \family default
13898 , and 
13899 \family sans
13900 Thanks
13901 \family default
13902  layouts must be placed 
13903 \emph on
13904 in between
13905 \emph default
13906  the 
13907 \family sans
13908 Author
13909 \family default
13910  layout and the corresponding 
13911 \family sans
13912 Address
13913 \family default
13914  (or equivalent 
13915 \family sans
13916 Affiliation
13917 \family default
13918 ) layout.
13919  If you put the 
13920 \family sans
13921 Thanks
13922 \family default
13923  after the 
13924 \family sans
13925 Address
13926 \family default
13927 , the LaTeX won't compile.
13928 \end_layout
13929
13930 \begin_layout Subsection
13931 Drawbacks
13932 \end_layout
13933
13934 \begin_layout Standard
13935 The main problem with this layout is that you can't use the optional arguments
13936  to layouts like Email and Title.
13937  (The problem is not unique to this layout; you can't use optional arguments
13938  to the Section layouts either.) This means that after you export that file
13939  to LaTeX (which you'll need to do eventually to send it in to APS), you'll
13940  need to edit the LaTeX file with a text editor to add the optional arguments
13941  to set, e.\InsetSpace \thinspace{}
13942 g., the running title for the page headers.
13943  Lacking these layouts makes the 
13944 \family typewriter
13945
13946 \backslash
13947 altaffiliation
13948 \family default
13949  (and the equivalent 
13950 \family typewriter
13951
13952 \backslash
13953 altaddress
13954 \family default
13955 ) useless, so the corresponding layouts don't exist, and will have to be
13956  added by hand.
13957 \begin_inset Foot
13958 status collapsed
13959
13960 \begin_layout Standard
13961
13962 \emph on
13963 Note from JMarc:
13964 \emph default
13965  actually, LyX 1.3.0 supports some forms of optional arguments, but this layout
13966  has not been updated yet to take advantage of it.
13967 \end_layout
13968
13969 \end_inset
13970
13971  
13972 \end_layout
13973
13974 \begin_layout Section
13975 Article (mwart), book (mwbk) and report (mwrep)
13976 \begin_inset OptArg
13977 status collapsed
13978
13979 \begin_layout Standard
13980 The 
13981 \family typewriter
13982 mw
13983 \family default
13984  Classes
13985 \end_layout
13986
13987 \end_inset
13988
13989
13990 \end_layout
13991
13992 \begin_layout Standard
13993 by 
13994 \noun on
13995 Tomasz Luczak
13996 \end_layout
13997
13998 \begin_layout Standard
13999 The LyX document classes 
14000 \emph on
14001 article (mwart)
14002 \emph default
14003
14004 \emph on
14005 report (mwrep)
14006 \emph default
14007  and 
14008 \emph on
14009 book
14010 \emph default
14011  
14012 \emph on
14013 (mwbk)
14014 \emph default
14015  correspond to the LaTeX document classes 
14016 \family typewriter
14017 mwart.cls
14018 \family default
14019
14020 \family typewriter
14021 mwrep.cls
14022 \family default
14023  and 
14024 \family typewriter
14025 mwbk.cls
14026 \family default
14027 , resp.
14028  They are replacements for the standard document classes 
14029 \family typewriter
14030 article.cls
14031 \family default
14032
14033 \family typewriter
14034 report.cls
14035 \family default
14036  and 
14037 \family typewriter
14038 book.cls
14039 \family default
14040 , resp., and fit better to Polish typography conventions in a number of points.
14041  
14042 \end_layout
14043
14044 \begin_layout Standard
14045 Basic differences:
14046 \end_layout
14047
14048 \begin_layout Itemize
14049 Unnumbered titles (with star, eg.
14050  
14051 \family sans
14052 Section*
14053 \family default
14054 ) are added into table of contents,
14055 \end_layout
14056
14057 \begin_layout Itemize
14058 Additional page styles:
14059 \end_layout
14060
14061 \begin_deeper
14062 \begin_layout Description
14063 uheadings header with separated lines,
14064 \end_layout
14065
14066 \begin_layout Description
14067 myheadings custom header, contents headers via commands: 
14068 \family typewriter
14069
14070 \backslash
14071 markright
14072 \family default
14073  and 
14074 \family typewriter
14075
14076 \backslash
14077 markboth
14078 \family default
14079 ,
14080 \end_layout
14081
14082 \begin_layout Description
14083 myuheadings custom header with separated lines,
14084 \end_layout
14085
14086 \begin_layout Description
14087 outer page number is placed on outer side of page
14088 \end_layout
14089
14090 \end_deeper
14091 \begin_layout Itemize
14092 Options 
14093 \end_layout
14094
14095 \begin_deeper
14096 \begin_layout Description
14097 rmheadings serif titles --- default,
14098 \end_layout
14099
14100 \begin_layout Description
14101 sfheadings sansserif titles,
14102 \end_layout
14103
14104 \begin_layout Description
14105 authortitle on title page first placed is author next title --- default,
14106 \end_layout
14107
14108 \begin_layout Description
14109 titleauthor on title page first placed is title next author,
14110 \end_layout
14111
14112 \begin_layout Description
14113 withmarginpar reserve place on page for margins.
14114 \end_layout
14115
14116 \end_deeper
14117 \begin_layout Section
14118 Elsevier Journals
14119 \end_layout
14120
14121 \begin_layout Standard
14122 By 
14123 \noun on
14124 Rod Pinna
14125 \end_layout
14126
14127 \begin_layout Standard
14128 Elsevier Science Publishers B.V.
14129  provides a standard LaTeX document class (
14130 \family typewriter
14131 elsart.cls
14132 \family default
14133 ) for submitting articles to their various journals.
14134  The style file can be downloaded directly from their web site: 
14135 \begin_inset LatexCommand url
14136 target "http://authors.elsevier.com/"
14137
14138 \end_inset
14139
14140 .
14141  Instructions are supplied along with the class file, which details the
14142  requirements of the publishers.
14143  LyX includes package that allows for the use of this class, by a layout
14144  and a template file.
14145  Installation of the class file is the same as for any other LaTeX package;
14146  instructions are provided in the Elsevier documentation.
14147 \end_layout
14148
14149 \begin_layout Standard
14150 To make use of 
14151 \family typewriter
14152 elsart.cls
14153 \family default
14154 , a file 
14155 \family typewriter
14156 elsart.layout
14157 \family default
14158  is supplied.
14159  As the Elsevier class file is based mainly on the standard article class,
14160  most of the normal functionality is provided.
14161  The Elsevier class defines a number of mathematical environments, which
14162  are similar to the AMS environments.
14163  These commands are all described in the Elsevier documentation, and are
14164  available in LyX.
14165 \end_layout
14166
14167 \begin_layout Standard
14168 The easiest way to use the Elsevier style is to base documents on the included
14169  template file.
14170  It is best not to use options such as fancy headings or the geometry package,
14171  as elements such as these are defined by Elsevier in their style file.
14172  Ideally, no extra packages except those mentioned in the Elsevier documentation
14173  should be used.
14174  Essentially, Elsevier require as 
14175 \begin_inset Quotes eld
14176 \end_inset
14177
14178 clean
14179 \begin_inset Quotes erd
14180 \end_inset
14181
14182  a 
14183 \begin_inset ERT
14184 status collapsed
14185
14186 \begin_layout Standard
14187
14188
14189 \backslash
14190 LaTeX
14191 \end_layout
14192
14193 \end_inset
14194
14195  file as possible, as their intention is to take the supplied file and replace
14196  the class file with one for the particular journal to which the paper has
14197  been submitted.
14198  This also means that not too much time should be spent on the formating
14199  of the document.
14200  When it comes to be published, this will change anyway.
14201  The rest of the usage for this layout is substantially the same as for
14202  the normal article class.
14203  For details of what Elsevier do and don't allow, refer to their documentation.
14204 \end_layout
14205
14206 \begin_layout Section
14207 Memoir
14208 \end_layout
14209
14210 \begin_layout Standard
14211 By 
14212 \noun on
14213 Jürgen Spitzmüller
14214 \end_layout
14215
14216 \begin_layout Subsection
14217 Overview
14218 \end_layout
14219
14220 \begin_layout Standard
14221 Memoir is a very powerful and constantly evolving class.
14222  It has been designed with regard to fictional and non-fictional literature.
14223  Its aim is to let the user have maximum control over the typesetting of
14224  his document.
14225  Memoir is based on the standard book class, but it can also emulate the
14226  article class (see below).
14227 \end_layout
14228
14229 \begin_layout Standard
14230 Peter Wilson, the developer of Memoir, is known as the author of lots of
14231  useful packages in the LaTeX world.
14232  Most of them have been merged with Memoir.
14233  Therefore, it is much easier to layout the table of contents, appendices,
14234  chapter designs and such.
14235  LyX, though, does not support all of these goodies natively.
14236  Some of them might be added to forthcoming releases
14237 \begin_inset Foot
14238 status collapsed
14239
14240 \begin_layout Standard
14241 You are invited to send suggestions to 
14242 \begin_inset LatexCommand url
14243 target "lyx-devel@lists.lyx.org"
14244
14245 \end_inset
14246
14247 .
14248 \end_layout
14249
14250 \end_inset
14251
14252 , lots will probably never, due to the limitations of LyX's framework.
14253  Of course you can still use all features with the help of some native LaTeX
14254  commands (ERT
14255 \begin_inset Foot
14256 status collapsed
14257
14258 \begin_layout Standard
14259 Cf.
14260 \begin_inset ERT
14261 status collapsed
14262
14263 \begin_layout Standard
14264
14265
14266 \backslash
14267  
14268 \end_layout
14269
14270 \end_inset
14271
14272 section\InsetSpace ~
14273
14274 \begin_inset LatexCommand ref
14275 reference "sec:Inserting-LaTeX-Code"
14276
14277 \end_inset
14278
14279  for details.
14280 \end_layout
14281
14282 \end_inset
14283
14284 ).
14285  In this section, we can only list those features which are natively supported
14286  by LyX.
14287  For detailed descriptions (and for the rest of features) we are recommending
14288  to have a look at the detailed manual of the Memoir class
14289 \begin_inset Foot
14290 status collapsed
14291
14292 \begin_layout Standard
14293 Cf.
14294 \begin_inset ERT
14295 status collapsed
14296
14297 \begin_layout Standard
14298
14299
14300 \backslash
14301  
14302 \end_layout
14303
14304 \end_inset
14305
14306
14307 \begin_inset LatexCommand url
14308 target "CTAN:/macros/latex/memoir/memman.pdf"
14309
14310 \end_inset
14311
14312 .
14313 \end_layout
14314
14315 \end_inset
14316
14317 , which is not only a user guide for the class, but also both a comprehensive
14318  description on good typesetting and a superb example for good typesetting
14319  itself.
14320 \end_layout
14321
14322 \begin_layout Subsection
14323 Basic features and restrictions
14324 \end_layout
14325
14326 \begin_layout Standard
14327 Memoir supports basically all features of the standard book classes.
14328  There are, however, some differences, as follows:
14329 \end_layout
14330
14331 \begin_layout Description
14332 Font\InsetSpace ~
14333 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14,
14334  17
14335 \end_layout
14336
14337 \begin_layout Description
14338 Page\InsetSpace ~
14339 style: The fancy page style is not supported, due to a command clash
14340  between Memoir and the fancyhdr package (they are both defining a command
14341  with the same name, which confuses LaTeX).
14342  Instead, Memoir comes with a bunch of own page styles (see 
14343 \family sans
14344 Layout\SpecialChar \menuseparator
14345 Document\SpecialChar \menuseparator
14346 Page\InsetSpace ~
14347 Style
14348 \family default
14349 ).
14350  If you want to use these for the chapter pages, you have to use the command
14351  
14352 \family typewriter
14353
14354 \backslash
14355 chapterstyle
14356 \family default
14357  in the main text or in preamble (e.
14358 \begin_inset ERT
14359 status collapsed
14360
14361 \begin_layout Standard
14362
14363
14364 \backslash
14365 ,
14366 \end_layout
14367
14368 \end_inset
14369
14370 g.
14371 \begin_inset ERT
14372 status collapsed
14373
14374 \begin_layout Standard
14375
14376
14377 \backslash
14378  
14379 \end_layout
14380
14381 \end_inset
14382
14383
14384 \family typewriter
14385
14386 \backslash
14387 chapterstyle{companion}
14388 \family default
14389 ).
14390 \end_layout
14391
14392 \begin_layout Description
14393 Sectioning: Sectionings (chapter, section, subsection etc.) are coming with
14394  an optional argument in the standard classes.
14395  With this, you can specify an alternative version of the title for the
14396  table of contents and the headers (for instance, if the title is too long).
14397  In LyX, you can do this via 
14398 \family sans
14399 Insert\SpecialChar \menuseparator
14400 Short\InsetSpace ~
14401 Title
14402 \family default
14403  at the beginning of a chapter/section.
14404  Memoir features a second optional argument and thus separates the table
14405  of contents from the header.
14406  You can define three variants of a title with this: one for the main text,
14407  one for the table of contents, and one for the headers.
14408  Simply insert two optional arguments if you need this feature, the first
14409  one containing the short title for the Table of Contents, the second one
14410  containing an alternative short title for the headers.
14411 \end_layout
14412
14413 \begin_layout Description
14414 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
14415  of contents, the list of figures and the list of table start a new page
14416  automatically.
14417  Memoir does not follow this route.
14418  You have to insert a page break yourself, if you want to have one.
14419 \end_layout
14420
14421 \begin_layout Description
14422 Titlepage: For some unknown reason, Memoir uses pagination on the title
14423  page (in the standard classes, title pages are 
14424 \begin_inset Quotes eld
14425 \end_inset
14426
14427 empty
14428 \begin_inset Quotes erd
14429 \end_inset
14430
14431 , i.
14432 \begin_inset ERT
14433 status collapsed
14434
14435 \begin_layout Standard
14436
14437
14438 \backslash
14439 ,
14440 \end_layout
14441
14442 \end_inset
14443
14444 e.
14445 \begin_inset ERT
14446 status collapsed
14447
14448 \begin_layout Standard
14449
14450
14451 \backslash
14452  
14453 \end_layout
14454
14455 \end_inset
14456
14457 without pagina).
14458  If you want an empty title page, type 
14459 \family typewriter
14460
14461 \backslash
14462 aliaspagestyle{title}{empty}
14463 \family default
14464  in the preamble.
14465 \end_layout
14466
14467 \begin_layout Description
14468 Article: With the class option 
14469 \emph on
14470 article
14471 \emph default
14472  (to be inserted in 
14473 \family sans
14474 Layout\SpecialChar \menuseparator
14475 Document\SpecialChar \menuseparator
14476 Extra\InsetSpace ~
14477 Options
14478 \family default
14479 ), you can emulate article style.
14480  That is, counters (footnotes, figures, tables etc.) will not be reset on
14481  new chapters, chapters don't start a new page (but are---in contrary to
14482  
14483 \begin_inset Quotes eld
14484 \end_inset
14485
14486 real
14487 \begin_inset Quotes erd
14488 \end_inset
14489
14490  article classes---still allowed), parts, though, use their own page, as
14491  in book.
14492 \end_layout
14493
14494 \begin_layout Description
14495 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
14496  font commands, which have been used in the old LaTeX version 2.09 (e.
14497 \begin_inset ERT
14498 status collapsed
14499
14500 \begin_layout Standard
14501
14502
14503 \backslash
14504 ,
14505 \end_layout
14506
14507 \end_inset
14508
14509 g.
14510 \begin_inset ERT
14511 status collapsed
14512
14513 \begin_layout Standard
14514
14515
14516 \backslash
14517  
14518 \end_layout
14519
14520 \end_inset
14521
14522
14523 \family typewriter
14524
14525 \backslash
14526 rm
14527 \family default
14528
14529 \family typewriter
14530
14531 \backslash
14532 it
14533 \family default
14534 ).
14535  It produces an error and stops LaTeX whenever such a command appears.
14536  The class option 
14537 \emph on
14538 oldfontcommands
14539 \emph default
14540  reallows the commands and spits out warnings instead (which does at least
14541  not stop LaTeX).
14542  Since a lot of packages and particularly BibTeX style files are still using
14543  those commands, we have decided to use this option by default.
14544 \end_layout
14545
14546 \begin_layout Subsection
14547 Extra features
14548 \end_layout
14549
14550 \begin_layout Standard
14551 We will only describe the features supported by LyX (which is not much currently
14552 ).
14553  Please consult the Memoir manual
14554 \begin_inset Foot
14555 status collapsed
14556
14557 \begin_layout Standard
14558 Cf.
14559 \begin_inset ERT
14560 status collapsed
14561
14562 \begin_layout Standard
14563
14564
14565 \backslash
14566  
14567 \end_layout
14568
14569 \end_inset
14570
14571
14572 \begin_inset LatexCommand url
14573 target "CTAN:/macros/latex/memoir/memman.pdf"
14574
14575 \end_inset
14576
14577 .
14578 \end_layout
14579
14580 \end_inset
14581
14582  for details.
14583 \end_layout
14584
14585 \begin_layout Description
14586 Abstract: You may wonder why an abstract is an extra feature.
14587  Well, it is in book class.
14588  Usually books don't have abstracts.
14589  Memoir, however, has.
14590  You can use it wherever and how often you like.
14591 \end_layout
14592
14593 \begin_layout Description
14594 Chapterprecis: You may know this from belletristic: The contents of a chapter
14595  is shortly described below the title and also in the table of contents
14596  (e.
14597 \begin_inset ERT
14598 status collapsed
14599
14600 \begin_layout Standard
14601
14602
14603 \backslash
14604 ,
14605 \end_layout
14606
14607 \end_inset
14608
14609 g.
14610 \begin_inset ERT
14611 status collapsed
14612
14613 \begin_layout Standard
14614
14615
14616 \backslash
14617  
14618 \end_layout
14619
14620 \end_inset
14621
14622
14623 \emph on
14624 Our hero arrives in Troia; he loses some friends; he finds others
14625 \emph default
14626 ).
14627  Chapterprecis does exactly this.
14628  It is therefore only sensible below a chapter.
14629 \end_layout
14630
14631 \begin_layout Description
14632 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
14633  The epigraph environment provides an elegant way of typesetting such a
14634  motto.
14635  The motto itself (text) and its author (source) are divided by a short
14636  line.
14637  Unfortunately, we have to fool LyX a bit here again, since the environment
14638  needs two arguments (text and source).
14639  In this case, we have to use curly brackets (in TeX mode) between the two
14640  arguments: 
14641 \emph on
14642 <smart slogan>
14643 \emph default
14644  
14645 \family typewriter
14646 }{
14647 \family default
14648  
14649 \emph on
14650 <author of the slogan>.
14651 \end_layout
14652
14653 \begin_layout Description
14654 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
14655  complex figurative poems).
14656  LyX can only support a few of them.
14657  One is poemtitle, which is a centered title for poems, which will also
14658  be added to the table of contents (verse is the standard environment for
14659  poems.
14660  Memoir has some enhanced versions of verse, but you need to use ERT, because
14661  they have to be nested inside regular verse environments, which is not
14662  possible with LyX).
14663 \end_layout
14664
14665 \begin_layout Description
14666 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
14667 \end_layout
14668
14669 \begin_layout Chapter
14670 Importing and Exporting Alternate File Formats
14671 \begin_inset OptArg
14672 status collapsed
14673
14674 \begin_layout Standard
14675 Importing and Exporting
14676 \end_layout
14677
14678 \end_inset
14679
14680
14681 \end_layout
14682
14683 \begin_layout Section
14684 Considerations
14685 \end_layout
14686
14687 \begin_layout Standard
14688 Importing and exporting LyX documents from/to other formats has been touched
14689  on briefly in the 
14690 \emph on
14691 User Guide
14692 \emph default
14693 .
14694  Here we describe more of the gory details needed to understand just what
14695  is going on when you click on the 
14696 \family sans
14697 \bar under
14698 F
14699 \bar default
14700 ile\SpecialChar \menuseparator
14701
14702 \bar under
14703 I
14704 \bar default
14705 mport
14706 \family default
14707  and 
14708 \family sans
14709 \bar under
14710 F
14711 \bar default
14712 ile\SpecialChar \menuseparator
14713 E
14714 \bar under
14715 x
14716 \bar default
14717 port
14718 \family default
14719  menu items.
14720  
14721 \end_layout
14722
14723 \begin_layout Section
14724 Importing Other Formats
14725 \end_layout
14726
14727 \begin_layout Subsection
14728 LaTeX
14729 \end_layout
14730
14731 \begin_layout Standard
14732 Translating from LaTeX into LyX is performed by a Perl script called reLyX.
14733  Although it is a standalone program which can be called from the command
14734  line, LyX will call it automatically when a LaTeX document is imported.
14735  See section\InsetSpace ~
14736
14737 \begin_inset LatexCommand ref
14738 reference "sec:reLyX"
14739
14740 \end_inset
14741
14742  for a complete description.
14743  There are no user tunable parameters for reLyX within LyX.
14744 \end_layout
14745
14746 \begin_layout Subsection
14747 ASCII Text
14748 \end_layout
14749
14750 \begin_layout Standard
14751 When importing plain ASCII text, there are two methods of reading the file.
14752  Importing 
14753 \begin_inset Quotes eld
14754 \end_inset
14755
14756 as lines
14757 \begin_inset Quotes erd
14758 \end_inset
14759
14760  preserves all the linebreaks in the ASCII; to LyX, then, each line looks
14761  like a paragraph.
14762  Importing 
14763 \begin_inset Quotes eld
14764 \end_inset
14765
14766 as paragraphs
14767 \begin_inset Quotes erd
14768 \end_inset
14769
14770  assumes that consecutive lines separated by only a single linebreak form
14771  a single paragraph.
14772  Successive linebreaks with no intervening text are thus assumed to be paragraph
14773  delimiters.
14774 \end_layout
14775
14776 \begin_layout Subsection
14777 Noweb
14778 \end_layout
14779
14780 \begin_layout Standard
14781
14782 \emph on
14783 [Editor's note: Needs to be written, obviously - any volunteers? --- mer]
14784 \end_layout
14785
14786 \begin_layout Section
14787 Exporting Other Formats
14788 \end_layout
14789
14790 \begin_layout Standard
14791 The output formats listed here in the following are also explained concerning
14792  possible graphics formats in the 
14793 \emph on
14794 Embedded Objects
14795 \emph default
14796  manual.
14797 \end_layout
14798
14799 \begin_layout Subsection
14800 LaTeX
14801 \end_layout
14802
14803 \begin_layout Standard
14804 LyX generates two types of LaTeX files: stripped down versions for the normal
14805  processing (
14806 \family sans
14807 View DVI
14808 \family default
14809 , etc.) which one normally never sees
14810 \begin_inset Foot
14811 status collapsed
14812
14813 \begin_layout Standard
14814 The resulting file is a perfectly valid LaTeX file, though the preamble
14815  might look a bit strange since it includes some definitions used by LyX
14816  which wouldn't show up in most human-written files.
14817 \end_layout
14818
14819 \end_inset
14820
14821 , and human readable forms which are suitable for exchanging with your colleague
14822 s.
14823  The only settable option for the translation is the line length of the
14824  output file.
14825  The default is 65 characters, but it can be set in 
14826 \family sans
14827 \bar under
14828 T
14829 \bar default
14830 ools
14831 \family default
14832 \SpecialChar \menuseparator
14833
14834 \family sans
14835 \bar under
14836 P
14837 \bar default
14838 references
14839 \family default
14840  using the 
14841 \family sans
14842 \bar under
14843 A
14844 \bar default
14845 scii\InsetSpace ~
14846 line\InsetSpace ~
14847 length
14848 \family default
14849  field.
14850  
14851 \end_layout
14852
14853 \begin_layout Subsection
14854 Device Independent Files
14855 \end_layout
14856
14857 \begin_layout Standard
14858 Device Independent files (DVI files) are produced by running LaTeX on your
14859  document.
14860  There are no user settable options.
14861 \end_layout
14862
14863 \begin_layout Subsection
14864 PostScript
14865 \end_layout
14866
14867 \begin_layout Standard
14868 The next step in the conversion chain is converting a DVI file into Postscript.
14869  You can either use 
14870 \family sans
14871 \bar under
14872 F
14873 \bar default
14874 ile
14875 \family default
14876 \SpecialChar \menuseparator
14877
14878 \family sans
14879 \bar under
14880 E
14881 \bar default
14882 xport
14883 \family default
14884 \SpecialChar \menuseparator
14885
14886 \family sans
14887 Pos
14888 \bar under
14889 t
14890 \bar default
14891 script
14892 \family default
14893  or, if you need more control on the result, 
14894 \family sans
14895 \bar under
14896 F
14897 \bar default
14898 ile
14899 \family default
14900 \SpecialChar \menuseparator
14901
14902 \family sans
14903 \bar under
14904 P
14905 \bar default
14906 rint
14907 \family default
14908 .
14909  If you use the later, note that it is possible to configure, in 
14910 \family sans
14911 \bar under
14912 T
14913 \bar default
14914 ools
14915 \family default
14916 \SpecialChar \menuseparator
14917
14918 \family sans
14919 \bar under
14920 P
14921 \bar default
14922 references
14923 \family default
14924 , the options passed to the dvips program to achieve different effects.
14925 \end_layout
14926
14927 \begin_layout Subsection
14928 ASCII text
14929 \end_layout
14930
14931 \begin_layout Standard
14932 Exporting as ASCII attempts to preserve the 
14933 \begin_inset Quotes eld
14934 \end_inset
14935
14936 shape
14937 \begin_inset Quotes erd
14938 \end_inset
14939
14940  of the document as well as possible, but things like centering and indentation
14941  are thrown out; paragraphs are separated by blank lines.
14942  Section numbering and cross-references are done correctly, so the resulting
14943  text files is remarkably readable.
14944  The only changeable option is the length of lines, as for LaTeX output.
14945 \end_layout
14946
14947 \begin_layout Subsection
14948 HTML
14949 \end_layout
14950
14951 \begin_layout Standard
14952 LyX documents can be converted to hypertext markup, usually by converting
14953  to LaTeX first, then converting that to HTML\SpecialChar \@.
14954  Four LaTeX
14955 \begin_inset Formula $\rightarrow$
14956 \end_inset
14957
14958 HTML converters are currently known to LyX: 
14959 \family typewriter
14960 tth
14961 \family default
14962
14963 \family typewriter
14964 latex2html
14965 \family default
14966
14967 \family typewriter
14968 hevea
14969 \family default
14970  and 
14971 \family typewriter
14972 htlatex
14973 \family default
14974 .
14975  Though they are autodetected, you can overide the selection in preferences.
14976  You can also include further command line options in this dialog.
14977  
14978 \end_layout
14979
14980 \begin_layout Subsection
14981 PDF
14982 \end_layout
14983
14984 \begin_layout Standard
14985 by 
14986 \noun on
14987 Dekel Tsur
14988 \noun default
14989  (mostly)
14990 \end_layout
14991
14992 \begin_layout Standard
14993 \begin_inset VSpace bigskip
14994 \end_inset
14995
14996
14997 \end_layout
14998
14999 \begin_layout Standard
15000 The fastest way to generate a basic PDF file (no tags, links, etc.) with
15001  any version of LyX is to save the document as a Postscript file, then run
15002  the 
15003 \family typewriter
15004 ps2pdf
15005 \family default
15006  command on it.
15007  Starting with version 1.1.6, the menu item 
15008 \family sans
15009 File->Export->PDF
15010 \family default
15011  will do all this for you.
15012  There are some issues with fonts that you need to pay attention to: see
15013  Section\InsetSpace ~
15014
15015 \begin_inset LatexCommand ref
15016 reference "sec:badfonts"
15017
15018 \end_inset
15019
15020 .
15021  Also, as of version 1.1.6, there is a better method that will generate much
15022  more sophisticated files.
15023 \end_layout
15024
15025 \begin_layout Subsubsection
15026 Use pdfLaTeX
15027 \end_layout
15028
15029 \begin_layout Standard
15030 With pdfLaTeX you cannot use pstricks.
15031  On the other hand, with pdfLaTeX it is possible to insert directly images
15032  in JPEG, PDF or PNG format, use TrueType fonts, and more.
15033 \end_layout
15034
15035 \begin_layout Subsubsection
15036 Why does the text look so bad when viewed with Acrobat Reader?
15037 \begin_inset LatexCommand label
15038 name "sec:badfonts"
15039
15040 \end_inset
15041
15042
15043 \begin_inset OptArg
15044 status collapsed
15045
15046 \begin_layout Standard
15047 Bad Fonts in Acrobat Reader
15048 \end_layout
15049
15050 \end_inset
15051
15052
15053 \end_layout
15054
15055 \begin_layout Standard
15056 The problem is that bitmap fonts are displayed poorly by Acrobat Reader.
15057  When creating a PDF from the LyX file, you need to use outline font instead
15058  of the default bitmap fonts (in fact, you should also use outline fonts
15059  for Postscript files).
15060  Recent LaTeX distributions come with Postscript Type 1 version of the standard
15061  (Computer Modern) fonts.
15062  pdfLaTeX uses these font by default.
15063  Dvips doesn't use these fonts by default, so to make it use them, add the
15064  following to lines to your 
15065 \family typewriter
15066 ~/.dvipsrc
15067 \family default
15068  file
15069 \end_layout
15070
15071 \begin_layout LyX-Code
15072 p+ psfonts.cmz
15073 \end_layout
15074
15075 \begin_layout LyX-Code
15076 p+ psfonts.amz
15077 \end_layout
15078
15079 \begin_layout Standard
15080 If the default LaTeX font encoding (OT1) is used, nothing else need to be
15081  done.
15082  However, if the T1 font encoding is used, then LaTeX uses the newer EC
15083  fonts, for which there are no Type1 version.
15084  The solution is to use the ae package which emulates T1 coded fonts using
15085  the standard CM fonts.
15086  This is done by adding 
15087 \family typewriter
15088
15089 \backslash
15090 usepackage{ae,aecompl}
15091 \family default
15092  to the preamble of the LyX file.
15093  However, some glyphs are missing from the CM fonts (e.\InsetSpace \thinspace{}
15094 g.\InsetSpace ~
15095 eth, thorn), and
15096  they are taken from the EC fonts.
15097  Therefore you get these glyphs as bitmaps.
15098 \end_layout
15099
15100 \begin_layout Standard
15101 Note: LyX uses by default the T1 font encoding.
15102  If you wish to use the default font encoding (this is not recommended,
15103  unless you only write English documents), clear the field 
15104 \family sans
15105 \bar under
15106 T
15107 \bar default
15108 eX\InsetSpace ~
15109 encoding
15110 \family default
15111  in preferences (tabs 
15112 \family sans
15113 Outputs
15114 \family default
15115
15116 \family sans
15117 Misc
15118 \family default
15119 ).
15120  
15121 \end_layout
15122
15123 \begin_layout Standard
15124 An alternate option is to use the standard Postscript fonts instead of the
15125  Computer Modern fonts.
15126  To do that, you need to select 
15127 \family sans
15128 pslatex
15129 \family default
15130  as the global font in the document layout dialog.
15131  When using the Postscript fonts, the result PDF file is smaller as the
15132  fonts are not saved into the file.
15133  Furthermore, the Postscript fonts include all T1 glyphs.
15134  On the other hand, the Postscript fonts have no bold symbol font, so poor
15135  man's bold must be used (see Section\InsetSpace ~
15136
15137 \begin_inset LatexCommand ref
15138 reference "sec:pdfbold"
15139
15140 \end_inset
15141
15142 ).
15143  The Postscript fonts also look different from the Computer Modern fonts.
15144 \end_layout
15145
15146 \begin_layout Standard
15147 To sum up, both the Computer Modern and the Postscript fonts gives good
15148  results (with few exceptions).
15149  The decision of which one to use is a matter of taste.
15150 \end_layout
15151
15152 \begin_layout Subsubsection
15153 Why doesn't the 
15154 \backslash
15155 boldsymbol{} command work when I use pslatex?
15156 \begin_inset LatexCommand label
15157 name "sec:pdfbold"
15158
15159 \end_inset
15160
15161
15162 \begin_inset OptArg
15163 status collapsed
15164
15165 \begin_layout Standard
15166
15167 \family typewriter
15168
15169 \backslash
15170 boldsymbol{}
15171 \family default
15172  and 
15173 \family typewriter
15174 pslatex
15175 \end_layout
15176
15177 \end_inset
15178
15179
15180 \end_layout
15181
15182 \begin_layout Standard
15183 The Postscript fonts do not have a bold symbol font.
15184  The solution is to use the 
15185 \family typewriter
15186
15187 \backslash
15188 pmb{}
15189 \family default
15190  (poor man's bold) command.
15191 \end_layout
15192
15193 \begin_layout Standard
15194 It is possible to redefine the 
15195 \family typewriter
15196
15197 \backslash
15198 boldsymbol
15199 \family default
15200  command to use 
15201 \family typewriter
15202
15203 \backslash
15204 pmb
15205 \family default
15206  by putting
15207 \end_layout
15208
15209 \begin_layout LyX-Code
15210
15211 \backslash
15212 renewcommand{
15213 \backslash
15214 boldsymbol}[1]{
15215 \backslash
15216 pmb{#1}}
15217 \end_layout
15218
15219 \begin_layout Standard
15220 in the preamble.
15221 \end_layout
15222
15223 \begin_layout Subsubsection
15224 Is it possible to do write LaTeX-code which is processed only when running
15225  pdfLaTeX?
15226 \begin_inset OptArg
15227 status collapsed
15228
15229 \begin_layout Standard
15230 Conditionals with pdfLaTeX
15231 \end_layout
15232
15233 \end_inset
15234
15235
15236 \end_layout
15237
15238 \begin_layout Standard
15239 Yes you can do this with the 
15240 \family typewriter
15241 ifpdf.sty
15242 \family default
15243  package.
15244  Here is an example:
15245 \end_layout
15246
15247 \begin_layout LyX-Code
15248
15249 \end_layout
15250
15251 \begin_layout LyX-Code
15252
15253 \backslash
15254 usepackage{ifpdf}
15255 \end_layout
15256
15257 \begin_layout LyX-Code
15258
15259 \backslash
15260 ifpdf
15261 \end_layout
15262
15263 \begin_layout LyX-Code
15264    
15265 \backslash
15266 pdfinfo { /Author (your name and e-mail address)
15267 \end_layout
15268
15269 \begin_layout LyX-Code
15270       /Title (official title -- i.e., title element)
15271 \end_layout
15272
15273 \begin_layout LyX-Code
15274       /Subject (one line description of the document)
15275 \end_layout
15276
15277 \begin_layout LyX-Code
15278    }
15279 \end_layout
15280
15281 \begin_layout LyX-Code
15282    
15283 \backslash
15284 pdfcatalog { /PageMode (/UseNone)
15285 \end_layout
15286
15287 \begin_layout LyX-Code
15288    % /OpenAction (fitbh)
15289 \end_layout
15290
15291 \begin_layout LyX-Code
15292    }
15293 \end_layout
15294
15295 \begin_layout LyX-Code
15296    
15297 \backslash
15298 usepackage[pdftex]{hyperref}
15299 \end_layout
15300
15301 \begin_layout LyX-Code
15302
15303 \backslash
15304 else
15305 \end_layout
15306
15307 \begin_layout LyX-Code
15308    
15309 \backslash
15310 usepackage[ps2pdf]{hyperref}
15311 \end_layout
15312
15313 \begin_layout LyX-Code
15314
15315 \backslash
15316 fi
15317 \end_layout
15318
15319 \begin_layout Subsubsection
15320 How can I make URLs clickable?
15321 \end_layout
15322
15323 \begin_layout Standard
15324 See the references here:
15325 \end_layout
15326
15327 \begin_layout Standard
15328 \begin_inset LatexCommand url
15329 target "http://wiki.lyx.org/pmwiki.php/FAQ/PDF"
15330
15331 \end_inset
15332
15333
15334 \end_layout
15335
15336 \begin_layout Subsection
15337 Custom
15338 \end_layout
15339
15340 \begin_layout Standard
15341 Custom exports are possible if you have some particularly weird format you
15342  wish to convert to, assuming you have the relevant converter, of course.
15343  The format of the 
15344 \emph on
15345 input
15346 \emph default
15347  file can be chosen in the 
15348 \family sans
15349 \bar under
15350 F
15351 \bar default
15352 ile\SpecialChar \menuseparator
15353
15354 \bar under
15355 E
15356 \bar default
15357 xport\SpecialChar \menuseparator
15358
15359 \bar under
15360 C
15361 \bar default
15362 ustom
15363 \family default
15364  dialog; LyX will automatically convert the file to this point, then feed
15365  it to your custom converter.
15366  The possible values are all formats that LyX can produce from its own documents.
15367  
15368 \end_layout
15369
15370 \begin_layout Standard
15371 The converter command is also specified in the dialog.
15372  It should be a completely qualified command line which uses the variable
15373  
15374 \family typewriter
15375 $$FName
15376 \family default
15377  to specify the name of the file.
15378  If this variable is not given, then the file will be sent to the standard
15379  input of your command.
15380  You may have to apply a bit of ingenuity to escape this sequence correctly
15381  so that it is compatible with your shell.
15382  
15383 \end_layout
15384
15385 \begin_layout Standard
15386 While it is not possible to save this command using the 
15387 \family sans
15388 Preferences
15389 \family default
15390  dialog, you can manually edit your 
15391 \family typewriter
15392 .lyx/preferences
15393 \family default
15394  to add a line like
15395 \end_layout
15396
15397 \begin_layout LyX-Code
15398
15399 \backslash
15400 custom_export_command "mycommand $$FName"
15401 \end_layout
15402
15403 \begin_layout Chapter
15404 LyX Features needing Extra Software
15405 \end_layout
15406
15407 \begin_layout Section
15408 Using LyX with SGML-Tools (aka LinuxDoc)
15409 \end_layout
15410
15411 \begin_layout Standard
15412 by 
15413 \noun on
15414 Paul Evans
15415 \end_layout
15416
15417 \begin_layout Subsection
15418 Overview
15419 \end_layout
15420
15421 \begin_layout Standard
15422 LinuxDoc is a document class available in LyX if you have the 
15423 \family typewriter
15424 sgml-tools
15425 \family default
15426  package installed.
15427  You can use it to produce documents in the so-called Standardized General
15428  Mark-up Language (SGML) in the particular format used by the Linux Documentatio
15429 n Project.
15430  That is obviously helpful if you are contributing to that project.
15431  You can use the SGML format with the 
15432 \family typewriter
15433 sgml-tools
15434 \family default
15435  package of scripts and programs (to produce other formats, including LaTeX,
15436  HTML, plain text, man pages and\SpecialChar \ldots{}
15437 ).
15438  You may therefore prefer to use this document class if you want to write
15439  something that can be easily translated into other formats.
15440 \end_layout
15441
15442 \begin_layout Standard
15443 You will find that LinuxDoc has fewer layout options than the other text
15444  classes in LyX.
15445  This is mainly so that the translations into other formats have a chance
15446  of making some sense.
15447  In this section we describe:
15448 \end_layout
15449
15450 \begin_layout Itemize
15451 how to setup and use a document in LinuxDoc
15452 \end_layout
15453
15454 \begin_layout Itemize
15455 how to use the tags in LinuxDoc to layout your document
15456 \end_layout
15457
15458 \begin_layout Itemize
15459 how to use the SGML packages to produce the various formats
15460 \end_layout
15461
15462 \begin_layout Itemize
15463 how to sort out some problems.
15464 \end_layout
15465
15466 \begin_layout Subsection
15467 Preparing and using a LinuxDoc document
15468 \end_layout
15469
15470 \begin_layout Subsubsection
15471 Getting started
15472 \end_layout
15473
15474 \begin_layout Standard
15475 You start by selecting the LinuxDoc class using the 
15476 \family sans
15477 \bar under
15478 D
15479 \bar default
15480 ocument\SpecialChar \menuseparator
15481
15482 \bar under
15483 S
15484 \bar default
15485 ettings
15486 \family default
15487  dialog.
15488  Then you will find that there are fewer paragraph environments than for
15489  most other classes.
15490  You can see them on the pull down box on the left of the tool bar.
15491  How to use them is described in section\InsetSpace ~
15492
15493 \begin_inset LatexCommand ref
15494 reference "sec:sgmlparas"
15495
15496 \end_inset
15497
15498 .
15499 \end_layout
15500
15501 \begin_layout Standard
15502 You 
15503 \emph on
15504 must
15505 \emph default
15506  enter a title for the document, followed by an author, marking each with
15507  the appropriate paragraph environment.
15508  If you don't do this, you will get errors when you try to print the file.
15509  You can then enter the date and an abstract.
15510  The document proper must start with a Section paragraph environment rather
15511  than any standard layout.
15512 \end_layout
15513
15514 \begin_layout Standard
15515 After that you can prepare a document as usual using the available range
15516  of paragraph environments.
15517  See section\InsetSpace ~
15518
15519 \begin_inset LatexCommand ref
15520 reference "sec:sgmlparas"
15521
15522 \end_inset
15523
15524  for the full list and their uses.
15525 \end_layout
15526
15527 \begin_layout Subsubsection
15528 Output from LinuxDoc
15529 \end_layout
15530
15531 \begin_layout Standard
15532 You can print and save these documents in the normal way.
15533  To use the other features of the SGML package you need to save your document
15534  as LinuxDoc; this is a version in which the document is translated into
15535  the basic sgml tags.
15536  Use 
15537 \family sans
15538 \bar under
15539 F
15540 \bar default
15541 ile\SpecialChar \menuseparator
15542
15543 \bar under
15544 E
15545 \bar default
15546 xport\SpecialChar \menuseparator
15547 Linu
15548 \bar under
15549 x
15550 \bar default
15551 Doc.
15552
15553 \family default
15554  You will get a file with the same name and a 
15555 \family typewriter
15556 .sgml
15557 \family default
15558  extension rather than a 
15559 \family typewriter
15560 .lyx
15561 \family default
15562  extension.
15563  See\InsetSpace ~
15564
15565 \begin_inset LatexCommand ref
15566 reference "sec:sgmloperate"
15567
15568 \end_inset
15569
15570  on how you than make use of this file.
15571 \end_layout
15572
15573 \begin_layout Subsection
15574 Using the paragraph environments in LinuxDoc
15575 \end_layout
15576
15577 \begin_layout Subsubsection
15578 The Structure of a LinuxDoc Document
15579 \end_layout
15580
15581 \begin_layout Standard
15582 There is a formal structure for LinuxDoc which limits how you can place
15583  tags.
15584  There are two parts to all documents: 
15585 \end_layout
15586
15587 \begin_layout Description
15588 Header: this is everything up to the first time you insert a Section layout
15589  marker.
15590  It can include title, author, date, abstract and ToC.
15591  You must include the first two.
15592 \end_layout
15593
15594 \begin_layout Description
15595 Body: from the beginning of the first section onwards.
15596  All other tags are allowed.
15597  
15598 \end_layout
15599
15600 \begin_layout Subsubsection
15601 The LinuxDoc Paragraph Environments
15602 \end_layout
15603
15604 \begin_layout Standard
15605 \begin_inset LatexCommand label
15606 name "sec:sgmlparas"
15607
15608 \end_inset
15609
15610 Here is a list of all the tags you will find listed on the layout bar in
15611  the order they come there, with some comments where the purpose or use
15612  is not obvious:
15613 \end_layout
15614
15615 \begin_layout Itemize
15616
15617 \family sans
15618 Standard:
15619 \family default
15620  
15621 \family roman
15622 works as described in [cross reference]
15623 \end_layout
15624
15625 \begin_layout Itemize
15626
15627 \family sans
15628 Title
15629 \family default
15630 : This will appear at the top left of the document when printed, above a
15631  heavy horizontal rule, although you will not see this on the LyX screen.
15632 \end_layout
15633
15634 \begin_layout Itemize
15635
15636 \family sans
15637 Section, Subsection, Subsubsection, Paragraph and Subparagraph:
15638 \family default
15639  all do what you would expect and in the usual order.
15640  Whether they are numbered or not is controlled by the 
15641 \family sans
15642 Section\InsetSpace ~
15643 number\InsetSpace ~
15644 depth
15645 \family default
15646  setting.
15647  You cannot get the equivalent number free versions in any other way; there
15648  is no 
15649 \family sans
15650 Section*
15651 \family default
15652  or similar
15653 \end_layout
15654
15655 \begin_layout Itemize
15656
15657 \family sans
15658 Enumerate:
15659 \family default
15660  As usual this produces a numbered and indented list as described in the
15661  
15662 \emph on
15663 User's Guide
15664 \emph default
15665 .
15666 \end_layout
15667
15668 \begin_layout Itemize
15669
15670 \family sans
15671 Itemize:
15672 \family default
15673  
15674 \family roman
15675 Again much the same as in the other classes: see the
15676 \family default
15677  
15678 \family roman
15679 \emph on
15680 User's Guide
15681 \emph default
15682 .
15683 \end_layout
15684
15685 \begin_layout Itemize
15686
15687 \family sans
15688 Description
15689 \family default
15690 : As explained in the 
15691 \emph on
15692 User's Guide
15693 \emph default
15694 .
15695  Remember that if you want the bold element at the start of a description
15696  to be more than one word then you need to put protected spaces between
15697  the words.
15698  
15699 \end_layout
15700
15701 \begin_layout Itemize
15702
15703 \family sans
15704 Verbatim:
15705 \family default
15706  As usual.
15707 \end_layout
15708
15709 \begin_layout Itemize
15710
15711 \family sans
15712 Code: similar to the LyX-Code
15713 \family default
15714  
15715 \family roman
15716 environment
15717 \end_layout
15718
15719 \begin_layout Itemize
15720
15721 \family sans
15722 Author
15723 \family default
15724 : Anything you mark with this will appear on the left of the heading of
15725  the document, under the heavy rule.
15726 \end_layout
15727
15728 \begin_layout Itemize
15729
15730 \family sans
15731 Date:
15732 \family default
15733  Anything you mark with this will appear on the right of the heading under
15734  the rule.
15735  You do not have to make this a date.
15736  Any text can be entered, e.\InsetSpace ~
15737 g.
15738  a version number.
15739 \end_layout
15740
15741 \begin_layout Itemize
15742
15743 \family sans
15744 Abstract
15745 \family default
15746 : You can use this to produce a free standing paragraph after the author
15747  and date, and before the first section.
15748  You are only allowed one such paragraph.
15749 \begin_inset Foot
15750 status collapsed
15751
15752 \begin_layout Standard
15753
15754 \emph on
15755 Author's note.
15756
15757 \emph default
15758  This needs checking ---
15759 \emph on
15760 pe.
15761 \end_layout
15762
15763 \end_inset
15764
15765
15766 \end_layout
15767
15768 \begin_layout Itemize
15769
15770 \family sans
15771 Displaymath
15772 \family default
15773 :
15774 \begin_inset Foot
15775 status collapsed
15776
15777 \begin_layout Standard
15778
15779 \emph on
15780 Author's note:
15781 \emph default
15782  I have not yet checked this ---
15783 \emph on
15784 pe.
15785 \end_layout
15786
15787 \end_inset
15788
15789
15790 \end_layout
15791
15792 \begin_layout Subsubsection
15793 Other document features
15794 \end_layout
15795
15796 \begin_layout Standard
15797 You can also use the 
15798 \family sans
15799 Layout
15800 \family default
15801  menu to set fonts or to emphasis words.
15802  You can also use the table of contents as usual; see the corresponding
15803  section of the 
15804 \emph on
15805 User's Guide
15806 \emph default
15807 .
15808  Although you will find some some other features on the menus e.\InsetSpace ~
15809 g.
15810  inserting footnotes.
15811  There is some doubt about whether these will work correctly.
15812 \begin_inset Foot
15813 status collapsed
15814
15815 \begin_layout Standard
15816
15817 \emph on
15818 Author's note:
15819 \emph default
15820  Again still checking to see whether this is my system 
15821 \emph on
15822 ---pe.
15823 \end_layout
15824
15825 \end_inset
15826
15827
15828 \end_layout
15829
15830 \begin_layout Subsubsection
15831 Cross references and HTML 
15832 \end_layout
15833
15834 \begin_layout Standard
15835 On the 
15836 \family sans
15837 Insert
15838 \family default
15839  menu you will find two new options relating to the inclusion of URL addresses.
15840  If you use either option you will find some highlighted TeX code inserted
15841  into your document in three separate blocks with spaces available between.
15842  The blocks will be:
15843 \end_layout
15844
15845 \begin_layout Quote
15846
15847 \family typewriter
15848
15849 \backslash
15850 htmlurl{
15851 \family default
15852  or 
15853 \family typewriter
15854
15855 \backslash
15856 url{
15857 \family roman
15858
15859 \hfill
15860 space
15861 \family default
15862  
15863 \family typewriter
15864
15865 \hfill
15866 }{
15867 \family roman
15868
15869 \hfill
15870 space
15871 \hfill
15872
15873 \family typewriter
15874 }
15875 \end_layout
15876
15877 \begin_layout Standard
15878 You insert a full HTML tag between the first and second blocks.
15879  This can be 
15880 \begin_inset LatexCommand url
15881 target "http://any.address"
15882
15883 \end_inset
15884
15885  or other valid tags such as 
15886 \begin_inset LatexCommand url
15887 target "mailto:me@my.address"
15888
15889 \end_inset
15890
15891
15892 \family typewriter
15893 .
15894 \family default
15895 Then y
15896 \family roman
15897 ou
15898 \family default
15899  insert some description between the second and third blocks.
15900  The differences are:
15901 \end_layout
15902
15903 \begin_layout Itemize
15904
15905 \family sans
15906 URL:
15907 \family default
15908  
15909 \family roman
15910 both the HTML tag and the description will appear in the document
15911 \end_layout
15912
15913 \begin_layout Itemize
15914
15915 \family sans
15916 HTML\InsetSpace ~
15917 URL:
15918 \family default
15919  
15920 \family roman
15921 only the description appears in the printed version
15922 \end_layout
15923
15924 \begin_layout Subsection
15925 Using the LinuxDoc Sgml scripts
15926 \begin_inset Note Note
15927 status collapsed
15928
15929 \begin_layout Standard
15930 This section is completely outdated.
15931 \end_layout
15932
15933 \end_inset
15934
15935
15936 \end_layout
15937
15938 \begin_layout Standard
15939 \begin_inset LatexCommand label
15940 name "sec:sgmloperate"
15941
15942 \end_inset
15943
15944 You can use LinuxDoc as a text class without any additional scripts or programs,
15945  but there is not much point in doing this.
15946  All you will get is a document that looks like a 
15947 \emph on
15948 Linux Documentation Project Howto
15949 \family sans
15950 \emph default
15951 .
15952
15953 \family default
15954  To do the document translation you need to get and install the 
15955 \family typewriter
15956 sgml-tools-1.0.x.tar.gz
15957 \family default
15958  (with 
15959 \begin_inset Formula $x\geq3$
15960 \end_inset
15961
15962 ) package from 
15963 \family roman
15964 the SGML-Tools WWW Page
15965 \family default
15966  at
15967 \end_layout
15968
15969 \begin_layout LyX-Code
15970
15971 \family roman
15972 \begin_inset LatexCommand url
15973 target "http://pobox.com/~cg/sgmltools"
15974
15975 \end_inset
15976
15977
15978 \family default
15979  
15980 \end_layout
15981
15982 \begin_layout Standard
15983 Alternatively, you can go to the 
15984 \family typewriter
15985 sunsite
15986 \family default
15987  archive at
15988 \begin_inset Foot
15989 status collapsed
15990
15991 \begin_layout Standard
15992 Note that, at the time of this writing (01/1998), version 1.0.3 of sgml-tools
15993  has not yet been made available at 
15994 \family typewriter
15995 sunsite
15996 \family default
15997 .
15998 \end_layout
15999
16000 \end_inset
16001
16002
16003 \end_layout
16004
16005 \begin_layout LyX-Code
16006
16007 \family roman
16008 \begin_inset LatexCommand url
16009 target "ftp://sunsite.unc.edu/pub/Linux/utils/text/sgml-tools-1.0.x.tar.gz"
16010
16011 \end_inset
16012
16013
16014 \end_layout
16015
16016 \begin_layout Standard
16017
16018 \family roman
16019 The
16020 \family default
16021  file 
16022 \family typewriter
16023 sgml-tools-1.0.x.tar.gz
16024 \family default
16025  contains everything that you need to write SGML documents and convert them
16026  to groff, LaTeX, HTML, GNU info, LyX, and RTF\SpecialChar \@.
16027
16028 \end_layout
16029
16030 \begin_layout Standard
16031 This package was renamed from 
16032 \family typewriter
16033 linuxdoc-sgml-1.5.tar.gz
16034 \family default
16035  in January 1997.
16036 \end_layout
16037
16038 \begin_layout Standard
16039 Follow the instructions in that package on how to install it and how to
16040  use it.
16041  All this has to be done outside of LyX, before you can use the 
16042 \family sans
16043 \bar under
16044 F
16045 \bar default
16046 ile\SpecialChar \menuseparator
16047
16048 \bar under
16049 E
16050 \bar default
16051 xport\SpecialChar \menuseparator
16052 as\InsetSpace ~
16053 LinuxDoc
16054 \family default
16055  
16056 \family roman
16057 option.
16058 \end_layout
16059
16060 \begin_layout Subsection
16061 Troubleshooting LinuxDoc
16062 \end_layout
16063
16064 \begin_layout Standard
16065 When you print or preview a LinuxDoc document some checking is done of the
16066  tags before LaTeX is run.
16067  Some errors are trapped here, especially those concerning the structure
16068  of the document.
16069  LyX may produce an error message, but not leave an error box in the document
16070  for you to open.
16071  You may have to look at the files directly to discover what is wrong.
16072  Most problems seem to come from the use of options that are not fully available
16073  in the text class.
16074 \end_layout
16075
16076 \begin_layout Section
16077 Checking TeX
16078 \end_layout
16079
16080 \begin_layout Standard
16081 by 
16082 \noun on
16083 Asger Alstrup
16084 \end_layout
16085
16086 \begin_layout Subsection
16087 Introduction
16088 \end_layout
16089
16090 \begin_layout Standard
16091 Under the 
16092 \family sans
16093 \bar under
16094 T
16095 \bar default
16096 ools
16097 \family default
16098  menu, you'll find a 
16099 \family sans
16100 \bar under
16101 C
16102 \bar default
16103 heck\InsetSpace ~
16104 TeX
16105 \family default
16106  command.
16107  This feature requires you to have the 
16108 \family typewriter
16109 chktex
16110 \family default
16111  program installed, and is grayed out if you don't have it.
16112  You can get it from your nearest CTAN mirror, or over the Web from 
16113 \begin_inset LatexCommand url
16114 target "http://www.ifi.uio.no/~jensthi/chktex/"
16115
16116 \end_inset
16117
16118 .
16119 \end_layout
16120
16121 \begin_layout Standard
16122 The 
16123 \family sans
16124 ChkTeX
16125 \family default
16126  package is a program that was written by 
16127 \noun on
16128 Jens T.
16129  Berger Thielemann
16130 \noun default
16131  in frustration because some constructs in LaTeX are sometimes non-intuitive,
16132  and easy to forget.
16133  The program runs over your LaTeX file and checks the integrity of the file,
16134  and flags some common errors.
16135  In other technical words, it is 
16136 \family typewriter
16137 Lint
16138 \family default
16139  for LaTeX.
16140 \end_layout
16141
16142 \begin_layout Standard
16143 Well, what is a syntax checker doing in LyX which is supposed to produce
16144  correct LaTeX anyways? The answer is simple: Just as 
16145 \family typewriter
16146 Lint
16147 \family default
16148  not only checks the 
16149 \emph on
16150 syntax
16151 \emph default
16152  of C programs, but also does 
16153 \emph on
16154 semantic
16155 \emph default
16156  checks for type-errors, 
16157 \family sans
16158 ChkTeX
16159 \family default
16160  catches some common 
16161 \emph on
16162 typographic
16163 \emph default
16164  errors, in addition to the syntactical ones.
16165  Specifically, 
16166 \family sans
16167 ChkTeX
16168 \family default
16169  is capable of detecting several common errors, such as
16170 \end_layout
16171
16172 \begin_layout Itemize
16173 Ellipsis detection:
16174 \newline
16175 Use \SpecialChar \ldots{}
16176  instead of ...
16177 \end_layout
16178
16179 \begin_layout Itemize
16180 No space in front of/after parenthesis:
16181 \newline
16182 ( wrong spacing )
16183 \end_layout
16184
16185 \begin_layout Itemize
16186 Enforcement of normal space after common abbreviations:
16187 \newline
16188 e.
16189  g.
16190  is too wide spacing.
16191 \end_layout
16192
16193 \begin_layout Itemize
16194 Enforcement of end-of-sentence space when the last sentence ends with a
16195  capital letter:
16196 \newline
16197 This is a TEST.
16198  And this is wrong spacing.
16199 \end_layout
16200
16201 \begin_layout Itemize
16202 Space in front of labels and similar commands:
16203 \newline
16204 The label should stick right
16205  up to the text to avoid falling to a wrong page.
16206  
16207 \begin_inset LatexCommand label
16208 name "sec:chktex"
16209
16210 \end_inset
16211
16212  
16213 \begin_inset Foot
16214 status collapsed
16215
16216 \begin_layout Standard
16217 This footnote is in danger of falling off to a wrong page
16218 \end_layout
16219
16220 \end_inset
16221
16222  The label is separated too much.
16223 \end_layout
16224
16225 \begin_layout Itemize
16226 Space in front of references, instead of hard spaces:
16227 \newline
16228 In you are in bad luck,
16229  the text will break right between the referenced text and reference number,
16230  and that's a pity.
16231  See section 
16232 \begin_inset LatexCommand ref
16233 reference "sec:chktex"
16234
16235 \end_inset
16236
16237 .
16238 \end_layout
16239
16240 \begin_layout Itemize
16241 Use of 
16242 \begin_inset Quotes eld
16243 \end_inset
16244
16245 x
16246 \begin_inset Quotes erd
16247 \end_inset
16248
16249  instead of 
16250 \begin_inset Formula $\times$
16251 \end_inset
16252
16253  between numbers:
16254 \newline
16255 2x2 looks cheap compared to 
16256 \begin_inset Formula $2\times2$
16257 \end_inset
16258
16259 .
16260 \end_layout
16261
16262 \begin_layout Standard
16263 and more \SpecialChar \ldots{}
16264  It is an invaluable tool when you are 
16265 \begin_inset Quotes eld
16266 \end_inset
16267
16268 finishing up
16269 \begin_inset Quotes erd
16270 \end_inset
16271
16272  your document before printing, and you should run it right after the obligatory
16273  spelling check, and before you go fine tuning the typesetting.
16274 \end_layout
16275
16276 \begin_layout Subsection
16277 How to use it
16278 \end_layout
16279
16280 \begin_layout Standard
16281 If you have the program installed, usage is as simple as choosing 
16282 \family sans
16283 \bar under
16284 T
16285 \bar default
16286 ools\SpecialChar \menuseparator
16287
16288 \bar under
16289 C
16290 \bar default
16291 heck\InsetSpace ~
16292 TeX
16293 \family default
16294 .
16295  This will make LyX generate a LaTeX file of your document, start 
16296 \family sans
16297 ChkTeX
16298 \family default
16299  to check it, and then make LyX insert 
16300 \begin_inset Quotes eld
16301 \end_inset
16302
16303 error boxes
16304 \begin_inset Quotes erd
16305 \end_inset
16306
16307  with the warnings from 
16308 \family sans
16309 ChkTeX
16310 \family default
16311 , if there were any.
16312  The warnings will be placed close to the point of the mistake, and you
16313  can quickly find them by using the 
16314 \family sans
16315 \bar under
16316 N
16317 \bar default
16318 avigate\SpecialChar \menuseparator
16319
16320 \bar under
16321 E
16322 \bar default
16323 rror
16324 \family default
16325  menu item, or the shortcut key 
16326 \family sans
16327 C-g
16328 \family default
16329  from the default 
16330 \family typewriter
16331 cua
16332 \family default
16333  bind file.
16334  Open the error boxes by clicking on them with the mouse, or use the shortcut
16335  key 
16336 \family sans
16337 C-i
16338 \family default
16339  from 
16340 \family typewriter
16341 cua
16342 \family default
16343  bindings, or the corresponding 
16344 \family sans
16345 C-o
16346 \family default
16347  for the alternate 
16348 \family typewriter
16349 emacs
16350 \family default
16351  bind file.
16352  Read the warning and correct the mistake, if it is a mistake.
16353  If you have trouble understanding what the warning is about, you can safely
16354  ignore it.
16355  Remember that there is a hidden layer between the document on screen and
16356  the technical details in invoking 
16357 \family sans
16358 ChkTeX
16359 \family default
16360 , and this gap can make some warnings seem arcane or just right down plain
16361  silly.
16362 \end_layout
16363
16364 \begin_layout Standard
16365 This document is an excellent testing bed for the feature, and it should
16366  provide quite a few warnings for you to fiddle with.
16367  Since computers are only so smart, expect most of the warnings to be false
16368  alarms, though.
16369 \end_layout
16370
16371 \begin_layout Subsection
16372 How to fine tune it
16373 \end_layout
16374
16375 \begin_layout Standard
16376 Sometimes, you'll find that 
16377 \family sans
16378 ChkTeX
16379 \family default
16380  makes more noise than suits your mood.
16381  Then you can choose not to use it, wait until your mood changes, or try
16382  to customize 
16383 \family sans
16384 ChkTeX
16385 \family default
16386  to get better along with you.
16387  Another choice in the most desperate situations is to use 
16388 \family sans
16389 \bar under
16390 V
16391 \bar default
16392 iew\SpecialChar \menuseparator
16393
16394 \bar under
16395 R
16396 \bar default
16397 emove\InsetSpace ~
16398 All\InsetSpace ~
16399 Error\InsetSpace ~
16400 Boxes
16401 \family default
16402 , which will get rid of all warnings instantly.
16403 \end_layout
16404
16405 \begin_layout Standard
16406 Although 
16407 \family sans
16408 ChkTeX
16409 \family default
16410  
16411 \emph on
16412 is
16413 \emph default
16414  very configurable and extensible, you shouldn't expect to solve all problems
16415  with 
16416 \family sans
16417 ChkTeX
16418 \family default
16419  in LyX this way.
16420  Since LyX has to generate a somewhat special LaTeX file to be able to match
16421  the line numbers from the 
16422 \family sans
16423 ChkTeX
16424 \family default
16425  output
16426 \begin_inset Foot
16427 status collapsed
16428
16429 \begin_layout Standard
16430 You can inspect the specific output from 
16431 \family sans
16432 chktex
16433 \family default
16434  by using 
16435 \family sans
16436 Edit\SpecialChar \menuseparator
16437 View\InsetSpace ~
16438 LaTeX\InsetSpace ~
16439 Log
16440 \family default
16441  right after a 
16442 \family sans
16443 chktex
16444 \family default
16445  run.
16446 \end_layout
16447
16448 \end_inset
16449
16450  to the internal document structure, some of the warnings will not seen
16451  to appear correctly.
16452  There are two things you can do about this:
16453 \end_layout
16454
16455 \begin_layout Itemize
16456 Fine tune the 
16457 \family sans
16458 ChkTeX
16459 \family default
16460  invocation command line in 
16461 \family sans
16462 Preferences
16463 \family default
16464  (tabs 
16465 \family sans
16466 Outputs
16467 \family default
16468
16469 \family sans
16470 Misc
16471 \family default
16472 ), or the global 
16473 \family sans
16474 ChkTeX
16475 \family default
16476  installation configuration file (usually with the file 
16477 \family typewriter
16478 /usr/local/share/chktexrc
16479 \family default
16480 ).
16481  See below to learn what warnings can be enabled and disabled on the command
16482  line.
16483  
16484 \end_layout
16485
16486 \begin_layout Itemize
16487 Export your document as a raw LaTeX file using 
16488 \family sans
16489 \bar under
16490 F
16491 \bar default
16492 ile\SpecialChar \menuseparator
16493
16494 \bar under
16495 E
16496 \bar default
16497 xport\SpecialChar \menuseparator
16498
16499 \bar under
16500 L
16501 \bar default
16502 aTeX
16503 \family default
16504  and run 
16505 \family typewriter
16506 chktex
16507 \family default
16508  manually on that.
16509  Invoked in this way, it can be a hassle to find the corresponding place
16510  in the document inside LyX, but with a little patience, you should be able
16511  to do it.
16512 \end_layout
16513
16514 \begin_layout Standard
16515 Here follows the warning messages that can be enabled and disabled in 
16516 \family sans
16517 Preferences
16518 \family default
16519 .
16520  Use 
16521 \family typewriter
16522 -n#
16523 \family default
16524  to disable a warning, and 
16525 \family typewriter
16526 -w#
16527 \family default
16528  to enable a warning.
16529  The emphasized entries are disabled by default, because the default is
16530  "
16531 \family typewriter
16532 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
16533 \family default
16534 ".
16535 \end_layout
16536
16537 \begin_layout Standard
16538 Notice that you should only use the options that enable and disable warnings,
16539  because LyX relies on some of the other command line parameters to be set
16540  in a specific way to have a chance to communicate with 
16541 \family typewriter
16542 chktex
16543 \family default
16544 .
16545 \end_layout
16546
16547 \begin_layout Enumerate
16548
16549 \size small
16550 \emph on
16551 Command terminated with space.
16552 \end_layout
16553
16554 \begin_layout Enumerate
16555
16556 \size small
16557 Non-breaking space (
16558 \begin_inset Quotes eld
16559 \end_inset
16560
16561
16562 \family typewriter
16563 ~
16564 \family default
16565
16566 \begin_inset Quotes erd
16567 \end_inset
16568
16569 ) should have been used.
16570 \end_layout
16571
16572 \begin_layout Enumerate
16573
16574 \size small
16575 \emph on
16576 You should enclose the previous parenthesis with 
16577 \begin_inset Quotes eld
16578 \end_inset
16579
16580
16581 \family typewriter
16582 {}
16583 \family default
16584
16585 \begin_inset Quotes erd
16586 \end_inset
16587
16588 .
16589 \end_layout
16590
16591 \begin_layout Enumerate
16592
16593 \size small
16594 Italic correction (
16595 \begin_inset Quotes eld
16596 \end_inset
16597
16598
16599 \family typewriter
16600
16601 \backslash
16602 /
16603 \family default
16604
16605 \begin_inset Quotes erd
16606 \end_inset
16607
16608 ) found in non-italic buffer.
16609 \end_layout
16610
16611 \begin_layout Enumerate
16612
16613 \size small
16614 Italic correction (
16615 \begin_inset Quotes eld
16616 \end_inset
16617
16618
16619 \family typewriter
16620
16621 \backslash
16622 /
16623 \family default
16624
16625 \begin_inset Quotes erd
16626 \end_inset
16627
16628 ) found more than once.
16629 \end_layout
16630
16631 \begin_layout Enumerate
16632
16633 \size small
16634 \emph on
16635 No italic correction (
16636 \begin_inset Quotes eld
16637 \end_inset
16638
16639
16640 \family typewriter
16641
16642 \backslash
16643 /
16644 \family default
16645
16646 \begin_inset Quotes erd
16647 \end_inset
16648
16649 ) found.
16650 \end_layout
16651
16652 \begin_layout Enumerate
16653
16654 \size small
16655 Accent command 
16656 \begin_inset Quotes eld
16657 \end_inset
16658
16659
16660 \family typewriter
16661 cmd
16662 \family default
16663
16664 \begin_inset Quotes erd
16665 \end_inset
16666
16667  needs use of 
16668 \begin_inset Quotes eld
16669 \end_inset
16670
16671
16672 \family typewriter
16673 cmd
16674 \family default
16675
16676 \begin_inset Quotes erd
16677 \end_inset
16678
16679 .
16680 \end_layout
16681
16682 \begin_layout Enumerate
16683
16684 \size small
16685 Wrong length of dash may have been used.
16686 \end_layout
16687
16688 \begin_layout Enumerate
16689
16690 \size small
16691 \emph on
16692 \begin_inset Quotes eld
16693 \end_inset
16694
16695
16696 \family typewriter
16697 %s
16698 \family default
16699
16700 \begin_inset Quotes erd
16701 \end_inset
16702
16703  expected, found 
16704 \begin_inset Quotes eld
16705 \end_inset
16706
16707
16708 \family typewriter
16709 %s
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 Solo 
16722 \begin_inset Quotes eld
16723 \end_inset
16724
16725
16726 \family typewriter
16727 %s
16728 \family default
16729
16730 \begin_inset Quotes erd
16731 \end_inset
16732
16733  found.
16734 \end_layout
16735
16736 \begin_layout Enumerate
16737
16738 \size small
16739 You should use 
16740 \begin_inset Quotes eld
16741 \end_inset
16742
16743
16744 \family typewriter
16745 %s
16746 \family default
16747
16748 \begin_inset Quotes erd
16749 \end_inset
16750
16751  to achieve an ellipsis.
16752 \end_layout
16753
16754 \begin_layout Enumerate
16755
16756 \size small
16757 Inter-word spacing (
16758 \begin_inset Quotes eld
16759 \end_inset
16760
16761
16762 \family typewriter
16763
16764 \backslash
16765
16766 \family default
16767  
16768 \begin_inset Quotes eld
16769 \end_inset
16770
16771 ) should perhaps be used.
16772 \end_layout
16773
16774 \begin_layout Enumerate
16775
16776 \size small
16777 Inter-sentence spacing (
16778 \begin_inset Quotes eld
16779 \end_inset
16780
16781
16782 \family typewriter
16783
16784 \backslash
16785 @
16786 \family default
16787
16788 \begin_inset Quotes erd
16789 \end_inset
16790
16791 ) should perhaps be used.
16792 \end_layout
16793
16794 \begin_layout Enumerate
16795
16796 \size small
16797 Could not find argument for command.
16798 \end_layout
16799
16800 \begin_layout Enumerate
16801
16802 \size small
16803 No match found for 
16804 \begin_inset Quotes eld
16805 \end_inset
16806
16807
16808 \family typewriter
16809 %s
16810 \family default
16811
16812 \begin_inset Quotes erd
16813 \end_inset
16814
16815 .
16816 \end_layout
16817
16818 \begin_layout Enumerate
16819
16820 \size small
16821 Math mode still on at end of LaTeX file.
16822 \end_layout
16823
16824 \begin_layout Enumerate
16825
16826 \size small
16827 Number of 
16828 \begin_inset Quotes eld
16829 \end_inset
16830
16831
16832 \family typewriter
16833 char
16834 \family default
16835
16836 \begin_inset Quotes erd
16837 \end_inset
16838
16839  doesn't match the number of 
16840 \begin_inset Quotes eld
16841 \end_inset
16842
16843
16844 \family typewriter
16845 char
16846 \family default
16847
16848 \begin_inset Quotes erd
16849 \end_inset
16850
16851 .
16852 \end_layout
16853
16854 \begin_layout Enumerate
16855
16856 \size small
16857 You should use either 
16858 \family typewriter
16859
16860 \begin_inset Quotes eld
16861 \end_inset
16862
16863
16864 \family default
16865  or 
16866 \family typewriter
16867
16868 \begin_inset Quotes erd
16869 \end_inset
16870
16871
16872 \family default
16873  as an alternative to 
16874 \begin_inset Quotes eld
16875 \end_inset
16876
16877
16878 \family typewriter
16879 "
16880 \family default
16881
16882 \begin_inset Quotes erd
16883 \end_inset
16884
16885 .
16886 \end_layout
16887
16888 \begin_layout Enumerate
16889
16890 \size small
16891 You should use "
16892 \family typewriter
16893 '
16894 \family default
16895 " (ASCII 39) instead of "
16896 \family typewriter
16897 ´
16898 \family default
16899 " (ASCII 180).
16900 \end_layout
16901
16902 \begin_layout Enumerate
16903
16904 \size small
16905 User-specified pattern found.
16906 \end_layout
16907
16908 \begin_layout Enumerate
16909
16910 \size small
16911 This command might not be intended.
16912 \end_layout
16913
16914 \begin_layout Enumerate
16915
16916 \size small
16917 \emph on
16918 Comment displayed.
16919 \end_layout
16920
16921 \begin_layout Enumerate
16922
16923 \size small
16924 Either 
16925 \family typewriter
16926 ''
16927 \backslash
16928 ,'
16929 \family default
16930  or 
16931 \family typewriter
16932 '
16933 \backslash
16934 ,''
16935 \family default
16936  will look better.
16937 \end_layout
16938
16939 \begin_layout Enumerate
16940
16941 \size small
16942 Delete this space to maintain correct page references.
16943 \end_layout
16944
16945 \begin_layout Enumerate
16946
16947 \size small
16948 \emph on
16949 You might wish to put this between a pair of 
16950 \begin_inset Quotes eld
16951 \end_inset
16952
16953
16954 \family typewriter
16955 {}
16956 \family default
16957
16958 \begin_inset Quotes erd
16959 \end_inset
16960
16961 .
16962 \end_layout
16963
16964 \begin_layout Enumerate
16965
16966 \size small
16967 You ought to remove spaces in front of punctuation.
16968 \end_layout
16969
16970 \begin_layout Enumerate
16971
16972 \size small
16973 Could not execute LaTeX command.
16974 \end_layout
16975
16976 \begin_layout Enumerate
16977
16978 \size small
16979 Don't use 
16980 \family typewriter
16981
16982 \backslash
16983 /
16984 \family default
16985  in front of small punctuation.
16986 \end_layout
16987
16988 \begin_layout Enumerate
16989
16990 \family typewriter
16991 \size small
16992 $
16993 \backslash
16994 times$
16995 \family default
16996  may look prettier here.
16997 \end_layout
16998
16999 \begin_layout Enumerate
17000
17001 \size small
17002 \emph on
17003 Multiple spaces detected in output.
17004 \end_layout
17005
17006 \begin_layout Enumerate
17007
17008 \size small
17009 This text may be ignored.
17010 \end_layout
17011
17012 \begin_layout Enumerate
17013
17014 \size small
17015 Use 
17016 \family typewriter
17017
17018 \begin_inset Quotes eld
17019 \end_inset
17020
17021
17022 \family default
17023  to begin quotation, not 
17024 \family typewriter
17025 '
17026 \family default
17027 .
17028 \end_layout
17029
17030 \begin_layout Enumerate
17031
17032 \size small
17033 Use 
17034 \family typewriter
17035 '
17036 \family default
17037  to end quotation, not 
17038 \family typewriter
17039
17040 \begin_inset Quotes eld
17041 \end_inset
17042
17043
17044 \family default
17045 .
17046 \end_layout
17047
17048 \begin_layout Enumerate
17049
17050 \size small
17051 Don't mix quotes.
17052 \end_layout
17053
17054 \begin_layout Enumerate
17055
17056 \size small
17057 You should perhaps use 
17058 \begin_inset Quotes eld
17059 \end_inset
17060
17061
17062 \family typewriter
17063 cmd
17064 \family default
17065
17066 \begin_inset Quotes erd
17067 \end_inset
17068
17069  instead.
17070 \end_layout
17071
17072 \begin_layout Enumerate
17073
17074 \size small
17075 You should put a space in front of/after parenthesis.
17076 \end_layout
17077
17078 \begin_layout Enumerate
17079
17080 \size small
17081 You should avoid spaces in front of/after parenthesis.
17082 \end_layout
17083
17084 \begin_layout Enumerate
17085
17086 \size small
17087 \emph on
17088 You should not use punctuation in front of/after quotes.
17089 \end_layout
17090
17091 \begin_layout Enumerate
17092
17093 \size small
17094 Double space found.
17095 \end_layout
17096
17097 \begin_layout Enumerate
17098
17099 \size small
17100 You should put punctuation outside inner/inside display math mode.
17101 \end_layout
17102
17103 \begin_layout Enumerate
17104
17105 \size small
17106 You ought to not use primitive TeX in LaTeX code.
17107 \end_layout
17108
17109 \begin_layout Enumerate
17110
17111 \size small
17112 You should remove spaces in front of 
17113 \begin_inset Quotes eld
17114 \end_inset
17115
17116
17117 \family typewriter
17118 %s
17119 \family default
17120
17121 \begin_inset Quotes erd
17122 \end_inset
17123
17124
17125 \end_layout
17126
17127 \begin_layout Enumerate
17128
17129 \size small
17130 \begin_inset Quotes eld
17131 \end_inset
17132
17133
17134 \family typewriter
17135 %s
17136 \family default
17137
17138 \begin_inset Quotes erd
17139 \end_inset
17140
17141  is normally not followed by 
17142 \begin_inset Quotes eld
17143 \end_inset
17144
17145
17146 \family typewriter
17147 %c
17148 \family default
17149
17150 \begin_inset Quotes erd
17151 \end_inset
17152
17153 .
17154 \end_layout
17155
17156 \begin_layout Standard
17157 In later versions of LyX, we hope to provide a more complete interface to
17158  this tool (and it's smaller cousin 
17159 \family typewriter
17160 lacheck
17161 \family default
17162 ) to exploit the full power of it.
17163  But it's not exactly useless as it is now: go try it on one of your existing
17164  documents of a certain length and be surprised.
17165 \end_layout
17166
17167 \begin_layout Section
17168 Version Control in LyX
17169 \end_layout
17170
17171 \begin_layout Standard
17172 by
17173 \noun on
17174  Lars Gullik Bjønnes
17175 \end_layout
17176
17177 \begin_layout Subsection
17178 Introduction
17179 \end_layout
17180
17181 \begin_layout Standard
17182 A friend of mine wanted to try LyX for a group project.
17183  When he didn't find support for version control or file locking, he dropped
17184  it.
17185  This angered me a bit, so I thought that I should at least make support
17186  for RCS (with the possibility of CVS and/or SCCS as a future improvement.)
17187  This has now been done.
17188  LyX now supports some of the most basic RCS commands.
17189  If you need to something a bit more sophisticated you will have to do that
17190  manually in an xterm.
17191 \end_layout
17192
17193 \begin_layout Standard
17194 Before you begin to use the version control features in LyX, you should
17195  read 
17196 \begin_inset Quotes eld
17197 \end_inset
17198
17199 rcsintro
17200 \begin_inset Quotes erd
17201 \end_inset
17202
17203  (a man file, read it with 
17204 \family typewriter
17205 man rcsintro
17206 \family default
17207 ).
17208  This file describes all the basic features of RCS.
17209  You should especially notice the comment about a RCS directory, and the
17210  notion of a master RCS file (the file ending in 
17211 \family typewriter
17212 ,v
17213 \family default
17214 ).
17215 \end_layout
17216
17217 \begin_layout Standard
17218 The implementation in LyX assumes a recent version of the GNU RCS package---no
17219  guarantees are made for older versions.
17220 \end_layout
17221
17222 \begin_layout Subsection
17223 RCS commands in LyX
17224 \end_layout
17225
17226 \begin_layout Standard
17227 The following sections describe the RCS commands supported by LyX.
17228  You can find them in the 
17229 \family sans
17230 \bar under
17231 F
17232 \bar default
17233 ile\SpecialChar \menuseparator
17234
17235 \bar under
17236 V
17237 \bar default
17238 ersion\InsetSpace ~
17239 Control
17240 \family default
17241  submenu.
17242 \end_layout
17243
17244 \begin_layout Subsubsection
17245
17246 \family sans
17247 Register
17248 \end_layout
17249
17250 \begin_layout Standard
17251 If your document is not under revision control, this is the only item shown
17252  in the menu.
17253  And if it is under revision control, the 
17254 \family sans
17255 \bar under
17256 R
17257 \bar default
17258 egister
17259 \family default
17260  item is grayed out.
17261  
17262 \end_layout
17263
17264 \begin_layout Standard
17265 This command registers your document with RCS\SpecialChar \@.
17266  You are asked interactively
17267  to supply an initial description of the document.
17268  The document is now set in Read-Only mode and you have to 
17269 \family sans
17270 Check\InsetSpace ~
17271 Out\InsetSpace ~
17272 For\InsetSpace ~
17273 Edit
17274 \family default
17275 , before making any changes to it.
17276  A document under revision control has a 
17277 \begin_inset Quotes eld
17278 \end_inset
17279
17280 [RCS:<version> <locker>]
17281 \begin_inset Quotes erd
17282 \end_inset
17283
17284  item tagged to the filename in the minibuffer.
17285 \end_layout
17286
17287 \begin_layout Standard
17288 RCS command that is run: 
17289 \family typewriter
17290 ci -q -u -i -t-"<initial description>" <file-name>
17291 \end_layout
17292
17293 \begin_layout Standard
17294 Read 
17295 \family typewriter
17296 man ci
17297 \family default
17298  to understand the switches.
17299  
17300 \end_layout
17301
17302 \begin_layout Subsubsection
17303
17304 \family sans
17305 Check In Changes
17306 \end_layout
17307
17308 \begin_layout Standard
17309 When you are finished editing a file, you check in your changes.
17310  When you do this, you are asked for a description of the changes.
17311  This is stored in the history log.
17312  The version number is bumped, your changes are applied to the master RCS
17313  file, the document is unlocked and set to Read-Only mode.
17314  
17315 \end_layout
17316
17317 \begin_layout Standard
17318 RCS command: 
17319 \family typewriter
17320 ci -q -u -m"<description>" <file-name>
17321 \end_layout
17322
17323 \begin_layout Subsubsection
17324
17325 \family sans
17326 Check Out For Edit
17327 \end_layout
17328
17329 \begin_layout Standard
17330 By doing this you lock the document so that only you can edit it.
17331  This will also make the document Read-Write only for you.
17332  You will usually continue editing for a while and when you are finished
17333  you check in your changes.
17334  The status line is changed to reflect that you have locked the file.
17335  
17336 \end_layout
17337
17338 \begin_layout Standard
17339 RCS command: 
17340 \family typewriter
17341 co -q -l <file-name>
17342 \end_layout
17343
17344 \begin_layout Subsubsection
17345
17346 \family sans
17347 Revert To Last Version
17348 \end_layout
17349
17350 \begin_layout Standard
17351 This will discard all changes made to the document since the last check
17352  in.
17353  You get a warning before changes are discarded.
17354 \end_layout
17355
17356 \begin_layout Standard
17357 RCS command: 
17358 \family typewriter
17359 co -f -u<version> <file-name>
17360 \end_layout
17361
17362 \begin_layout Subsubsection
17363
17364 \family sans
17365 Undo Last Checkin
17366 \end_layout
17367
17368 \begin_layout Standard
17369 This makes as if the last check in never happened.
17370  No changes are made to the document loaded into LyX, but the last version
17371  is removed from the master RCS file.
17372  
17373 \end_layout
17374
17375 \begin_layout Standard
17376 RCS command: 
17377 \family typewriter
17378 rcs -o<version> <file-name>
17379 \end_layout
17380
17381 \begin_layout Subsubsection
17382
17383 \family sans
17384 Show History
17385 \end_layout
17386
17387 \begin_layout Standard
17388 This show the complete history of the RCS document.
17389  The output of 
17390 \family typewriter
17391 rlog <file-name>
17392 \family default
17393  is shown in a browser.
17394  See 
17395 \family typewriter
17396 man rlog
17397 \family default
17398  for more info.
17399 \end_layout
17400
17401 \begin_layout Section
17402 Literate Programming
17403 \end_layout
17404
17405 \begin_layout Standard
17406 Updated by 
17407 \noun on
17408 Kayvan Sylvan 
17409 \noun default
17410 (kayvan@sylvan.com)
17411 \noun on
17412
17413 \noun default
17414 original documentation written by 
17415 \noun on
17416 Edmar Wienskoski Jr.
17417
17418 \noun default
17419  (edmar-w-jr@technologist.com)
17420 \end_layout
17421
17422 \begin_layout Subsection
17423 Introduction
17424 \end_layout
17425
17426 \begin_layout Standard
17427 The main purpose of this documentation is to show you how to use LyX for
17428  literate programming.
17429  Where it is assumed that you are familiar with this programming technique,
17430  and know what 
17431 \begin_inset Quotes eld
17432 \end_inset
17433
17434 tangling
17435 \begin_inset Quotes erd
17436 \end_inset
17437
17438  and 
17439 \begin_inset Quotes eld
17440 \end_inset
17441
17442 weaving
17443 \begin_inset Quotes erd
17444 \end_inset
17445
17446  means.
17447  If that is not the case, please follow the web links provided in the following
17448  sections.
17449  There is a lot of good documentation out there covering old development
17450  history to the latest tools tips.
17451 \end_layout
17452
17453 \begin_layout Standard
17454 It is also assumed that you are familiar with LyX itself to a point that
17455  you are comfortable changing your LyX preferences, and X resources file.
17456  If that is not the case please refer to other LyX documentation to cover
17457  your specific needs.
17458 \end_layout
17459
17460 \begin_layout Subsection
17461 Literate Programming
17462 \end_layout
17463
17464 \begin_layout Standard
17465 From the Literate Programming FAQ: 
17466 \end_layout
17467
17468 \begin_layout Quotation
17469 Literate programming is the combination of documentation and source together
17470  in a fashion suited for reading by human beings.
17471  In fact, literate programs should be enjoyable reading, even inviting!
17472  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
17473  and documentation in a single file.
17474  Literate programming tools then parse the file to produce either readable
17475  documentation or compilable source.
17476  The WEB style of literate programming was created by D.E.
17477  Knuth during the development of his TeX typesetting software.
17478  
17479 \end_layout
17480
17481 \begin_layout Standard
17482 Another excerpt says:
17483 \end_layout
17484
17485 \begin_layout Quotation
17486
17487 \emph on
17488 How is literate programming different from verbose commenting?
17489 \end_layout
17490
17491 \begin_layout Quotation
17492 There are three distinguishing characteristics.
17493  In order of importance, they are: 
17494 \end_layout
17495
17496 \begin_deeper
17497 \begin_layout Itemize
17498 flexible order of elaboration 
17499 \end_layout
17500
17501 \begin_layout Itemize
17502 automatic support for browsing 
17503 \end_layout
17504
17505 \begin_layout Itemize
17506 typeset documentation, especially diagrams and mathematics 
17507 \end_layout
17508
17509 \end_deeper
17510 \begin_layout Standard
17511 Now that I sparked your curiosity, take a look in the references.
17512 \end_layout
17513
17514 \begin_layout Subsubsection
17515 References
17516 \end_layout
17517
17518 \begin_layout Standard
17519 The complete Literate Programming FAQ can be found at:
17520 \end_layout
17521
17522 \begin_layout Quote
17523 \begin_inset LatexCommand url
17524 name "Literate Programming FAQ"
17525 target "http://shelob.ce.ttu.edu/daves/lpfaq/faq.html"
17526
17527 \end_inset
17528
17529
17530 \end_layout
17531
17532 \begin_layout Standard
17533 The FAQ lists 23 (twenty three!) different literate programming tools.
17534  Where some are specialized or 
17535 \begin_inset Quotes eld
17536 \end_inset
17537
17538 tailored
17539 \begin_inset Quotes erd
17540 \end_inset
17541
17542  for particular programming languages, while other have general scope.
17543  I selected 
17544 \noun on
17545 Noweb
17546 \noun default
17547  for my own use for several reasons:
17548 \end_layout
17549
17550 \begin_layout Itemize
17551 It can generate the documentation either in LaTeX or HTML.
17552 \end_layout
17553
17554 \begin_layout Itemize
17555 It has a open architecture, i.e., it is easy to plug in new filters and to
17556  perform special processing that you may need.
17557  
17558 \end_layout
17559
17560 \begin_layout Itemize
17561 There is a good selection of filters available already (the HTML is one
17562  of them).
17563 \end_layout
17564
17565 \begin_layout Itemize
17566 It is free.
17567 \end_layout
17568
17569 \begin_layout Standard
17570 The Noweb web page can be found at: 
17571 \end_layout
17572
17573 \begin_layout Quote
17574 \begin_inset LatexCommand url
17575 name "Noweb home page"
17576 target "http://www.cs.virginia.edu/~nr/noweb/"
17577
17578 \end_inset
17579
17580
17581 \end_layout
17582
17583 \begin_layout Standard
17584 Starting from there you can reach many other interesting links and even
17585  some literate program examples.
17586 \end_layout
17587
17588 \begin_layout Subsection
17589 \begin_inset LatexCommand label
17590 name "sub:LyX-and-Literate"
17591
17592 \end_inset
17593
17594 LyX and Literate Programming
17595 \end_layout
17596
17597 \begin_layout Standard
17598 The LyX support for Literate Programming is provided by using the generic
17599  LyX convertors mechanism.
17600  This support is provided in a 
17601 \begin_inset Quotes eld
17602 \end_inset
17603
17604 Noweb independent
17605 \begin_inset Quotes erd
17606 \end_inset
17607
17608  way, i.e., you will be able to use this new LyX feature with some other literate
17609  programming tool of your choice by just changing your LyX preferences.
17610 \end_layout
17611
17612 \begin_layout Subsubsection
17613 Generating documents and code (weaving and tangling)
17614 \end_layout
17615
17616 \begin_layout Paragraph
17617 Selecting the document class
17618 \end_layout
17619
17620 \begin_layout Standard
17621 If you have installed Noweb and LyX successfully, whenever you open a new
17622  document or try to change the document class of an existing one, you will
17623  find that there are three new document classes available:
17624 \end_layout
17625
17626 \begin_layout Itemize
17627 Article (Noweb)
17628 \end_layout
17629
17630 \begin_layout Itemize
17631 Book (Noweb)
17632 \end_layout
17633
17634 \begin_layout Itemize
17635 Report (Noweb)
17636 \end_layout
17637
17638 \begin_layout Standard
17639 You must select one of them to create your literate documents from.
17640  
17641 \end_layout
17642
17643 \begin_layout Standard
17644 Note that literate documents are not limited to these three classes.
17645  New classes can be generated from other styles like letter or in combination
17646  with other class variations like Article (AMS).
17647  If you have special needs that cannot be covered by one of the existing
17648  classes, let the LyX developers list (lyx-devel@lists.lyx.org) know and we
17649  will arrange to insert a new entry, or teach you how to do it.
17650 \begin_inset Foot
17651 status collapsed
17652
17653 \begin_layout Standard
17654 It is very simple, it involves the creation of a file with four lines, and
17655  re-running of the auto configuration.
17656 \end_layout
17657
17658 \end_inset
17659
17660  Moreover, if you use a literate tool other than Noweb you may need to create
17661  a new set of document classes for it.
17662 \end_layout
17663
17664 \begin_layout Paragraph
17665 Typing code in
17666 \end_layout
17667
17668 \begin_layout Standard
17669 LyX enables you to write code with a layout named 
17670 \noun on
17671 Scrap
17672 \noun default
17673 .
17674 \begin_inset Foot
17675 status collapsed
17676
17677 \begin_layout Standard
17678 The equivalent Noweb term is 
17679 \begin_inset Quotes eld
17680 \end_inset
17681
17682 Chunk
17683 \begin_inset Quotes erd
17684 \end_inset
17685
17686 .
17687  For historical reasons, I got used to the term 
17688 \begin_inset Quotes eld
17689 \end_inset
17690
17691 scrap
17692 \begin_inset Quotes erd
17693 \end_inset
17694
17695  introduced by other literate tool named Nuweb, which I used for many years
17696  before rendering myself to Noweb.
17697 \end_layout
17698
17699 \end_inset
17700
17701  Noweb delimits scraps like this:
17702 \end_layout
17703
17704 \begin_layout LyX-Code
17705 <<My scrap>>=
17706 \end_layout
17707
17708 \begin_layout LyX-Code
17709   code
17710 \end_layout
17711
17712 \begin_layout LyX-Code
17713   more code
17714 \end_layout
17715
17716 \begin_layout LyX-Code
17717   even more code
17718 \end_layout
17719
17720 \begin_layout LyX-Code
17721   @
17722 \end_layout
17723
17724 \begin_layout Standard
17725 The problem is that whatever is written in between the << and the 
17726 \family typewriter
17727 @
17728 \family default
17729  must be taken literally, i.e., LyX should be prevented from making any special
17730  interpretation of what has been written.
17731  This is handled by a special layout named Scrap, that works like a normal
17732  paragraph but has a free spacing capability.
17733 \end_layout
17734
17735 \begin_layout Standard
17736 The down side of the Scrap paragraph layout is that consecutive paragraphs
17737  of code will be spaced with one empty line in the source code and also
17738  in the printed documentation.
17739  The work around is to enter each line of code within a single Scrap, with
17740  a newline (ctrl-return).
17741  The example above will look like this:
17742 \begin_inset Foot
17743 status collapsed
17744
17745 \begin_layout Standard
17746 If you have a printed version of this document you will not see any difference
17747  between the previous example and this one.
17748 \end_layout
17749
17750 \end_inset
17751
17752
17753 \end_layout
17754
17755 \begin_layout LyX-Code
17756 <<My scrap>>=
17757 \newline
17758   code
17759 \newline
17760   more code
17761 \newline
17762   even more code
17763 \newline
17764   @
17765 \end_layout
17766
17767 \begin_layout Standard
17768 This layout works fine.
17769  The only real inconvenience is that you have to type ctrl-return instead
17770  of a plain return.
17771 \begin_inset Foot
17772 status collapsed
17773
17774 \begin_layout Standard
17775 It is in my list of 
17776 \begin_inset Quotes eld
17777 \end_inset
17778
17779 improvements
17780 \begin_inset Quotes erd
17781 \end_inset
17782
17783  to fix that.
17784 \end_layout
17785
17786 \end_inset
17787
17788
17789 \end_layout
17790
17791 \begin_layout Standard
17792 As a special note, you can also use the 
17793 \begin_inset Quotes eld
17794 \end_inset
17795
17796 %def
17797 \begin_inset Quotes erd
17798 \end_inset
17799
17800  construct of Noweb in your scraps to add items to Noweb's identifier cross-refe
17801 rence:
17802 \end_layout
17803
17804 \begin_layout LyX-Code
17805 <<My scrap>>=
17806 \newline
17807   def some_function(args):
17808 \newline
17809     "This is the doc string for this
17810  function."
17811 \newline
17812     print "My args: ", args
17813 \end_layout
17814
17815 \begin_layout LyX-Code
17816 @ %def some_function
17817 \end_layout
17818
17819 \begin_layout Standard
17820 For an example of this usage and the resulting cross-reference output, look
17821  at the Literate python program in 
17822 \emph on
17823 LIBDIR/examples/listerrors.lyx
17824 \emph default
17825  which should make this all clear.
17826 \end_layout
17827
17828 \begin_layout Paragraph
17829 Generating the documentation
17830 \end_layout
17831
17832 \begin_layout Standard
17833 At this point you already have a new document file with a proper document
17834  class, and with some code and text on it.
17835  How do I print it? The answer is simple, you select 
17836 \family sans
17837 \bar under
17838 V
17839 \bar default
17840 iew\SpecialChar \menuseparator
17841
17842 \bar under
17843 D
17844 \bar default
17845 VI,
17846 \family default
17847  etc.
17848  Just like you would do for a plain document.
17849  No special procedure is required.
17850 \end_layout
17851
17852 \begin_layout Standard
17853 To help orientate you, I will now explain what happens inside LyX:
17854 \end_layout
17855
17856 \begin_layout Enumerate
17857 When the 
17858 \family sans
17859 \bar under
17860 U
17861 \bar default
17862 pdate\SpecialChar \menuseparator
17863
17864 \bar under
17865 D
17866 \bar default
17867 VI
17868 \family default
17869  menu option is chosen, a LaTeX file is generated.
17870  
17871 \end_layout
17872
17873 \begin_deeper
17874 \begin_layout Standard
17875 If the document is of any literate class the generated file will be named
17876  with an extension name defined by the 
17877 \begin_inset Quotes eld
17878 \end_inset
17879
17880 literate
17881 \begin_inset Quotes erd
17882 \end_inset
17883
17884  format (defined in the Preferences panel), otherwise the file will have
17885  the usual 
17886 \family typewriter
17887 .tex
17888 \family default
17889  extension.
17890 \end_layout
17891
17892 \end_deeper
17893 \begin_layout Enumerate
17894 Note that the only difference so far is in the name of the file, no special
17895  processing is required by LyX.
17896  Given that you formatted the code using the Scrap layout that, by itself,
17897  takes care of the business.
17898 \end_layout
17899
17900 \begin_layout Enumerate
17901 If the document is of any literate class LyX will then use the internal
17902  LyX to Noweb converter, followed by the Noweb to LaTeX converter
17903 \begin_inset Foot
17904 status open
17905
17906 \begin_layout Standard
17907 The converters are defined in the 
17908 \family sans
17909 \bar under
17910 T
17911 \bar default
17912 ools\SpecialChar \menuseparator
17913
17914 \bar under
17915 P
17916 \bar default
17917 references
17918 \family default
17919  panel, under the 
17920 \begin_inset Quotes eld
17921 \end_inset
17922
17923 Conversion
17924 \begin_inset Quotes erd
17925 \end_inset
17926
17927  tab.
17928 \end_layout
17929
17930 \end_inset
17931
17932  to generate the LaTeX file.
17933 \end_layout
17934
17935 \begin_deeper
17936 \begin_layout Standard
17937 Otherwise it will just skip this step.
17938 \end_layout
17939
17940 \end_deeper
17941 \begin_layout Enumerate
17942 Finally, LaTeX is invoked and the regular post processing continues as in
17943  a plain document.
17944 \end_layout
17945
17946 \begin_layout Standard
17947 Independence from a particular 
17948 \begin_inset Quotes eld
17949 \end_inset
17950
17951 literate tool
17952 \begin_inset Quotes erd
17953 \end_inset
17954
17955  is easily achieved by changing the commands that are run by the various
17956  converters.
17957 \end_layout
17958
17959 \begin_layout Paragraph
17960 Generating the code
17961 \end_layout
17962
17963 \begin_layout Standard
17964 When the build menu option is chosen or the corresponding button in the
17965  toolbar is pressed, a LaTeX file is generated just like step 1 above.
17966  Next, LyX invokes the 
17967 \family typewriter
17968 Noweb->Program
17969 \family default
17970  converter.
17971  Typically, this converter (like any other converter), has two parts:
17972 \end_layout
17973
17974 \begin_layout Enumerate
17975 The converter program itself.
17976  This program performs the conversion from the one format to the other (in
17977  this case, from the Noweb format to the Program pseudo-format).
17978 \end_layout
17979
17980 \begin_layout Enumerate
17981 The error log parser.
17982  This is a program whose sole purpose is to rewrite error messages in a
17983  format that LyX understands.
17984  This makes it possible for LyX to place error boxes in the right places
17985  in the file buffer.
17986 \end_layout
17987
17988 \begin_layout Standard
17989 The first part, the 
17990 \begin_inset Quotes eld
17991 \end_inset
17992
17993 Converter
17994 \begin_inset Quotes erd
17995 \end_inset
17996
17997  setting, should be set to 
17998 \begin_inset Quotes eld
17999 \end_inset
18000
18001
18002 \family typewriter
18003 build-script $$i
18004 \family default
18005
18006 \begin_inset Quotes erd
18007 \end_inset
18008
18009 .
18010  This basically means that LyX will call 
18011 \begin_inset Quotes eld
18012 \end_inset
18013
18014 build-script
18015 \begin_inset Quotes erd
18016 \end_inset
18017
18018  (a program or script) with the name of the Noweb file (generally a file
18019  in the LyX temp directory).
18020  
18021 \end_layout
18022
18023 \begin_layout Standard
18024 This is an implementation of 
18025 \begin_inset Quotes eld
18026 \end_inset
18027
18028 build-script
18029 \begin_inset Quotes erd
18030 \end_inset
18031
18032  that you can place in a directory on your path:
18033 \end_layout
18034
18035 \begin_layout LyX-Code
18036 #!/bin/sh
18037 \end_layout
18038
18039 \begin_layout LyX-Code
18040 #
18041 \end_layout
18042
18043 \begin_layout LyX-Code
18044 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
18045 \end_layout
18046
18047 \begin_layout Standard
18048 The next part of the converter setting is the 
18049 \begin_inset Quotes eld
18050 \end_inset
18051
18052 Flags
18053 \begin_inset Quotes erd
18054 \end_inset
18055
18056  which is to be set to 
18057 \begin_inset Quotes eld
18058 \end_inset
18059
18060
18061 \family typewriter
18062 originaldir,parselog=listerrors
18063 \family default
18064
18065 \begin_inset Quotes erd
18066 \end_inset
18067
18068 .
18069  This will run any errors that are generated by the 
18070 \begin_inset Quotes eld
18071 \end_inset
18072
18073 build-script
18074 \begin_inset Quotes erd
18075 \end_inset
18076
18077  process through the 
18078 \begin_inset Quotes eld
18079 \end_inset
18080
18081 listerrors
18082 \begin_inset Quotes erd
18083 \end_inset
18084
18085  program.
18086 \end_layout
18087
18088 \begin_layout Standard
18089 The converter code looks in 
18090 \emph on
18091 MYLYXDIR/scripts
18092 \emph default
18093  first, then in 
18094 \emph on
18095 LIBDIR/scripts
18096 \emph default
18097  then on the path for the 
18098 \begin_inset Quotes eld
18099 \end_inset
18100
18101 listerrors
18102 \begin_inset Quotes erd
18103 \end_inset
18104
18105  program.
18106 \end_layout
18107
18108 \begin_layout Paragraph
18109 Build instructions in the document
18110 \end_layout
18111
18112 \begin_layout Standard
18113 The last piece of the integration between LyX and noweb is the 
18114 \begin_inset Quotes eld
18115 \end_inset
18116
18117 build-script
18118 \begin_inset Quotes erd
18119 \end_inset
18120
18121  scrap.
18122  Generally, the instructions for building your program should be embedded
18123  in a scrap of its own.
18124  The noweb-specific 
18125 \begin_inset Quotes eld
18126 \end_inset
18127
18128 build-script
18129 \begin_inset Quotes erd
18130 \end_inset
18131
18132  above uses the notangle command to look for this scrap (called 
18133 \begin_inset Quotes eld
18134 \end_inset
18135
18136 build-script
18137 \begin_inset Quotes erd
18138 \end_inset
18139
18140 ) and runs its contents through 
18141 \begin_inset Quotes eld
18142 \end_inset
18143
18144 sh
18145 \begin_inset Quotes erd
18146 \end_inset
18147
18148 .
18149 \end_layout
18150
18151 \begin_layout Standard
18152 Typically, such a scrap would look something like this:
18153 \end_layout
18154
18155 \begin_layout LyX-Code
18156 <<build-script>>=
18157 \newline
18158 #!/bin/sh
18159 \newline
18160
18161 \newline
18162 if [ -z "${NOWEB_SOURCE}" ]
18163 \newline
18164 then
18165 \newline
18166   NOWEB_SOURCE=myfile.nw
18167 \newline
18168
18169 fi
18170 \newline
18171 [...
18172  code to extract files ...]
18173 \newline
18174 [...
18175  code to compile files ...]
18176 \newline
18177 @
18178 \end_layout
18179
18180 \begin_layout Standard
18181 Look in 
18182 \emph on
18183 LIBDIR/examples/listerrors.lyx
18184 \emph default
18185  or in 
18186 \emph on
18187 LIBDIR/examples/Literate.lyx
18188 \emph default
18189  which implement two versions of the 
18190 \begin_inset Quotes eld
18191 \end_inset
18192
18193 listerrors
18194 \begin_inset Quotes erd
18195 \end_inset
18196
18197  program for some illustrations of how all of these pieces go together or
18198  in 
18199 \emph on
18200 LIBDIR/examples/noweb2lyx.lyx.
18201
18202 \emph default
18203  Interestingly, these three files show off the language-indepence of the
18204  LyX literate programming support since they are written in Python, C and
18205  Perl respectively.
18206 \end_layout
18207
18208 \begin_layout Subsubsection
18209 Configuring LyX
18210 \end_layout
18211
18212 \begin_layout Standard
18213 All the Literate Programming support is configured by the 
18214 \family sans
18215 \bar under
18216 T
18217 \bar default
18218 ools\SpecialChar \menuseparator
18219
18220 \bar under
18221 P
18222 \bar default
18223 references
18224 \family default
18225  panel in the 
18226 \begin_inset Quotes eld
18227 \end_inset
18228
18229 Conversion
18230 \begin_inset Quotes erd
18231 \end_inset
18232
18233  tab.
18234  The important parts are:
18235 \end_layout
18236
18237 \begin_layout Description
18238 the\InsetSpace ~
18239
18240 \begin_inset Quotes eld
18241 \end_inset
18242
18243 literate
18244 \begin_inset Quotes erd
18245 \end_inset
18246
18247 \InsetSpace ~
18248 format Set up via the Formats tab, this is where the Noweb-specific pieces
18249  are set up.
18250  The 
18251 \family sans
18252 GUI Name
18253 \family default
18254  is set to 
18255 \family typewriter
18256 NoWeb
18257 \family default
18258 , the file extension is set to 
18259 \family typewriter
18260 .nw
18261 \family default
18262 .
18263  This tells LyX to create a file with a 
18264 \family typewriter
18265 .nw
18266 \family default
18267  extension in the first step of the conversion process.
18268 \end_layout
18269
18270 \begin_layout Description
18271 the\InsetSpace ~
18272
18273 \family sans
18274 Program
18275 \family default
18276 \InsetSpace ~
18277 format This is an empty format whose sole purpose is to be the endpoint
18278  of a conversion (which then allows us to set up a converter for it).
18279 \end_layout
18280
18281 \begin_layout Description
18282
18283 \family sans
18284 NoWeb
18285 \family default
18286 ->
18287 \family sans
18288 LaTeX
18289 \family default
18290  This converter performs the 
18291 \begin_inset Quotes eld
18292 \end_inset
18293
18294 weaving
18295 \begin_inset Quotes erd
18296 \end_inset
18297
18298  of the literate document.
18299  For Noweb, it is set to 
18300 \begin_inset Quotes eld
18301 \end_inset
18302
18303
18304 \family typewriter
18305 noweave -delay -index $$i > $$o
18306 \family default
18307
18308 \begin_inset Quotes erd
18309 \end_inset
18310
18311
18312 \end_layout
18313
18314 \begin_layout Description
18315
18316 \family sans
18317 NoWeb
18318 \family default
18319 ->
18320 \family sans
18321 Program
18322 \family default
18323  This performs the 
18324 \begin_inset Quotes eld
18325 \end_inset
18326
18327 tangling step
18328 \begin_inset Quotes erd
18329 \end_inset
18330
18331 .
18332  As stated above, the Converter is set to 
18333 \begin_inset Quotes eld
18334 \end_inset
18335
18336
18337 \family typewriter
18338 build-script $$i
18339 \family default
18340
18341 \begin_inset Quotes erd
18342 \end_inset
18343
18344 , with Flags set to 
18345 \begin_inset Quotes eld
18346 \end_inset
18347
18348
18349 \family typewriter
18350 originaldir,parselog=listerrors
18351 \family default
18352
18353 \begin_inset Quotes erd
18354 \end_inset
18355
18356 .
18357 \end_layout
18358
18359 \begin_layout Subsubsection
18360 Debug extensions
18361 \end_layout
18362
18363 \begin_layout Standard
18364 There is also a new function implemented in the LyX server, the 
18365 \begin_inset Quotes eld
18366 \end_inset
18367
18368 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
18369  
18370 \end_layout
18371
18372 \begin_layout Standard
18373 When debugging code with ddd/gdb, it is possible to invoke a text editor
18374  at the current execution position with a single key stroke.
18375  The default ddd configuration for that is shift-ctrl-V.
18376  It happens that you can define the editor command line invocation in ddd
18377  by accessing the 
18378 \family sans
18379 \bar under
18380 E
18381 \bar default
18382 dit\SpecialChar \menuseparator
18383
18384 \bar under
18385 P
18386 \bar default
18387 references\SpecialChar \menuseparator
18388
18389 \bar under
18390 H
18391 \bar default
18392 elpers
18393 \family default
18394  dialog and changing the "Edit Sources" entry.
18395 \end_layout
18396
18397 \begin_layout Standard
18398 I take advantage of the new created LyX server function and this ddd feature,
18399  and set 
18400 \begin_inset Quotes eld
18401 \end_inset
18402
18403 Edit Sources
18404 \begin_inset Quotes erd
18405 \end_inset
18406
18407  to:
18408 \end_layout
18409
18410 \begin_layout LyX-Code
18411 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
18412 \end_layout
18413
18414 \begin_layout Standard
18415 With this, whenever you are using ddd and find a point in the program that
18416  you want to edit, you just press shift-ctrl-V (in the ddd window), and
18417  ddd you forward this information to LyX through the LyX server and then
18418  the LyX window will show the same file with the cursor at the same position
18419  ddd was pointing to.
18420  No more guessing or long scrolling to locate a point in the program back
18421  from debugging !
18422 \end_layout
18423
18424 \begin_layout Standard
18425 Note however that you must enable the LyX server to get this feature working
18426  (it is disabled by default).
18427  You can enable it in 
18428 \family sans
18429 Preferences
18430 \family default
18431  (tabs 
18432 \family sans
18433 Inputs
18434 \family default
18435
18436 \family sans
18437 Paths
18438 \family default
18439 ) by entering in the 
18440 \family sans
18441 LyXserver pipe
18442 \family default
18443  a path like 
18444 \begin_inset Quotes eld
18445 \end_inset
18446
18447
18448 \family typewriter
18449 /home/<your-home-directory>/.lyx/lyxpipe
18450 \family default
18451
18452 \begin_inset Quotes erd
18453 \end_inset
18454
18455
18456 \end_layout
18457
18458 \begin_layout Standard
18459 Read the LyX server documentation in the 
18460 \emph on
18461 Customization Manual
18462 \emph default
18463  for further information.
18464 \end_layout
18465
18466 \begin_layout Subsubsection
18467 Toolbar extensions
18468 \end_layout
18469
18470 \begin_layout Standard
18471 There are six new buttons that can be added to your LyX toolbar.
18472  Five of these buttons are short cuts to layout styles: 
18473 \family sans
18474 Standard
18475 \family default
18476
18477 \family sans
18478 Section
18479 \family default
18480
18481 \family sans
18482 LaTeX
18483 \family default
18484
18485 \family sans
18486 LyX-Code
18487 \family default
18488 , and 
18489 \family sans
18490 Scrap
18491 \family default
18492 .
18493  The last one is a short cut to the 
18494 \begin_inset Quotes eld
18495 \end_inset
18496
18497 Build Program
18498 \begin_inset Quotes erd
18499 \end_inset
18500
18501  File menu entry.
18502  
18503 \end_layout
18504
18505 \begin_layout Standard
18506 LyX has a range of buttons that are available for tool bar customization.
18507  In my toolbar I like to combine the six short cuts above with two more:
18508  One for 
18509 \family sans
18510 \bar under
18511 V
18512 \bar default
18513 iew
18514 \family default
18515 \SpecialChar \menuseparator
18516
18517 \family sans
18518 \bar under
18519 U
18520 \bar default
18521 pdate
18522 \family default
18523 \SpecialChar \menuseparator
18524
18525 \family sans
18526 \bar under
18527 D
18528 \bar default
18529 VI
18530 \family default
18531  and the other for 
18532 \family sans
18533 \bar under
18534 V
18535 \bar default
18536 iew\SpecialChar \menuseparator
18537
18538 \bar under
18539 D
18540 \bar default
18541 VI
18542 \family default
18543  File menu entries.
18544  Here is how it looks like:
18545 \end_layout
18546
18547 \begin_layout LyX-Code
18548 Toolbar
18549 \end_layout
18550
18551 \begin_layout LyX-Code
18552   Layouts
18553 \end_layout
18554
18555 \begin_layout LyX-Code
18556   Icon "layout Standard"
18557 \end_layout
18558
18559 \begin_layout LyX-Code
18560   Icon "layout Section"
18561 \end_layout
18562
18563 \begin_layout LyX-Code
18564   Icon "layout LaTeX"
18565 \end_layout
18566
18567 \begin_layout LyX-Code
18568   Icon "layout LyX-Code"
18569 \end_layout
18570
18571 \begin_layout LyX-Code
18572   Icon "layout Scrap"
18573 \end_layout
18574
18575 \begin_layout LyX-Code
18576   Separator
18577 \end_layout
18578
18579 \begin_layout LyX-Code
18580   Icon "buffer-view"
18581 \end_layout
18582
18583 \begin_layout LyX-Code
18584   Icon "buffer-typeset"
18585 \end_layout
18586
18587 \begin_layout LyX-Code
18588   Icon "build-program"
18589 \end_layout
18590
18591 \begin_layout LyX-Code
18592   Separator
18593 \end_layout
18594
18595 \begin_layout LyX-Code
18596 .
18597 \end_layout
18598
18599 \begin_layout LyX-Code
18600 .
18601 \end_layout
18602
18603 \begin_layout LyX-Code
18604 .
18605 \end_layout
18606
18607 \begin_layout LyX-Code
18608 End
18609 \end_layout
18610
18611 \begin_layout Subsubsection
18612 Colors customization
18613 \end_layout
18614
18615 \begin_layout Standard
18616 There are a number of colors in LyX that can be customized in 
18617 \family sans
18618 Preferences
18619 \family default
18620 .
18621  One of the things that bothers people is the LaTeX font color.
18622  The default color is red, since the scraps uses LaTeX font, and there is
18623  a lot of scraps in literate documents, you may get tired of seeing everything
18624  in red.
18625  You can change it by going to the tabs 
18626 \family sans
18627 Look&Feel
18628 \family default
18629
18630 \family sans
18631 Colors.
18632 \end_layout
18633
18634 \begin_layout Standard
18635 The next thing is the visible presence of the newline character in the screen.
18636  You can choose the color of this particular character and make it blend
18637  in the background.
18638  I recommend you choosing a color that is close to the background but not
18639  equal, that way you still can see it is there, but it is not bothering
18640  you anymore.
18641  
18642 \end_layout
18643
18644 \begin_layout Chapter
18645 Secrets of the LaTeX Masters
18646 \begin_inset LatexCommand label
18647 name "cha:secrets"
18648
18649 \end_inset
18650
18651
18652 \end_layout
18653
18654 \begin_layout Standard
18655 Though LyX is a powerful tool, it cannot hope to support everything that
18656  can be done with pure TeX/LaTeX.
18657  However, many familiar dirty TeX and LaTeX tricks can be done within LyX,
18658  as long as you are not afraid to use that 
18659 \begin_inset Quotes eld
18660 \end_inset
18661
18662 TeX
18663 \begin_inset Quotes erd
18664 \end_inset
18665
18666  button on the toolbar or add things to the LaTeX preamble.
18667  This section lists some tips, tricks, and otherwise cool ideas to give
18668  your document that extra little flair.
18669  
18670 \emph on
18671 Do try this at home
18672 \emph default
18673 , just start with something a little smaller and less important than your
18674  dissertation!
18675 \end_layout
18676
18677 \begin_layout Standard
18678 Most ideas in this section require less common files in your LaTeX installation.
18679  If you have a system like teTeX, most will already be available.
18680  A few, however, will need to be downloaded from one of the CTAN archives.
18681  Often, there are several ways to do something, or several LaTeX style files
18682  which do the same thing.
18683  We do not endorse one choice over another, we simply claim that we have
18684  done a particular task with a particular file.
18685  Put on your wizard hat, keep an eye out for dragons, and let us begin.
18686 \end_layout
18687
18688 \begin_layout Section
18689 Multiple Columns
18690 \end_layout
18691
18692 \begin_layout Standard
18693 by 
18694 \noun on
18695 Lars Gullik Bjønnes
18696 \end_layout
18697
18698 \begin_layout Subsection
18699 Purpose
18700 \end_layout
18701
18702 \begin_layout Standard
18703 The aim for this chapter
18704 \begin_inset Foot
18705 status collapsed
18706
18707 \begin_layout Standard
18708 Editor's note: Lars' original chapter was a masterful description of how
18709  to use the 
18710 \family typewriter
18711 multicol
18712 \family default
18713  package.
18714  However, it was too long to flow smoothly in this document.
18715  I have therefore chosen to excerpt the most important sections here (sorry,
18716  Lars); you can read the original chapter (and more of the story!) in the
18717  example file 
18718 \family typewriter
18719 examples/multicol.lyx
18720 \family default
18721 .
18722  --- mer
18723 \end_layout
18724
18725 \end_inset
18726
18727  is to show how the LaTeX package 
18728 \family typewriter
18729 multicol
18730 \family default
18731  can be used in a LyX document.
18732  As LyX doesn't support the 
18733 \family typewriter
18734 multicol
18735 \family default
18736  package natively yet, we have to use some small hacks.
18737  By reading this section it should be obvious how to do this.
18738 \end_layout
18739
18740 \begin_layout Subsection
18741 Limitations 
18742 \end_layout
18743
18744 \begin_layout Standard
18745 The 
18746 \family typewriter
18747 multicol
18748 \family default
18749  package allows switching between one and multicolumn format on the same
18750  page.
18751  Footnotes are handled correctly (for the most part), but will be placed
18752  at the bottom of the page and not under each column.
18753  LaTeX's float mechanism, however, is partly disabled in the current implementat
18754 ion.
18755  At the moment only page-wide floats can be used within the scope of the
18756  environment.
18757 \end_layout
18758
18759 \begin_layout Subsection
18760 Examples
18761 \end_layout
18762
18763 \begin_layout Subsubsection
18764 Two columns
18765 \end_layout
18766
18767 \begin_layout Standard
18768 If you want to have two columns in your text, you have use LaTeX mode to
18769  insert 
18770 \family typewriter
18771
18772 \backslash
18773 begin{multicols}{2}
18774 \family default
18775  at the point where you want the two column layout to start, and then 
18776 \family typewriter
18777
18778 \backslash
18779 end{multicols}
18780 \family default
18781  where you want it to end.
18782  Like this:
18783 \end_layout
18784
18785 \begin_layout Standard
18786 \begin_inset ERT
18787 status inlined
18788
18789 \begin_layout Standard
18790
18791
18792 \backslash
18793 begin{multicols}{2}
18794 \end_layout
18795
18796 \end_inset
18797
18798
18799 \end_layout
18800
18801 \begin_layout Standard
18802 \noindent
18803
18804 \series bold
18805 \size small
18806 The Adventure of the Empty House
18807 \series default
18808
18809 \newline
18810 by 
18811 \noun on
18812 Sir Arthur Conan Doyle
18813 \end_layout
18814
18815 \begin_layout Standard
18816
18817 \size small
18818 It was in the spring of the year 1894 that all London was interested, and
18819  the fashionable world dismayed, by the murder of the Honourable Ronald
18820  Adair under most unusual and inexplicable circumstances.
18821  The public has already learned those particulars of the crime which came
18822  out in the police investigation, but a good deal was suppressed upon that
18823  occasion, since the case for the prosecution was so overwhelmingly strong
18824  that it was not necessary to bring forward all the facts.
18825  Only now, at the end of nearly ten years, am I allowed to supply those
18826  missing links which make up the whole of that remarkable chain.
18827  The crime was of interest in itself, but that interest was as nothing to
18828  me compared to the inconceivable sequel, which afforded me the greatest
18829  shock and surprise of any event in my adventurous life.
18830  Even now, after this long interval, I find myself thrilling as I think
18831  of it, and feeling once more that sudden flood of joy, amazement, and increduli
18832 ty which utterly submerged my mind.
18833  Let me say to that public, which has shown some interest in those glimpses
18834  which I have occasionally given them of the thoughts and actions of a very
18835  remarkable man, that they are not to blame me if I have not shared my knowledge
18836  with them, for I should have considered it my first duty to do so, had
18837  I not been barred by a positive prohibition from his own lips, which was
18838  only withdrawn upon the third of last month.
18839 \end_layout
18840
18841 \begin_layout Standard
18842 \begin_inset ERT
18843 status inlined
18844
18845 \begin_layout Standard
18846
18847
18848 \backslash
18849 end{multicols}
18850 \end_layout
18851
18852 \end_inset
18853
18854
18855 \end_layout
18856
18857 \begin_layout Subsubsection
18858 Multiple columns
18859 \end_layout
18860
18861 \begin_layout Standard
18862 The same pattern is used when you want more than two columns:
18863 \end_layout
18864
18865 \begin_layout Standard
18866 \begin_inset ERT
18867 status inlined
18868
18869 \begin_layout Standard
18870
18871
18872 \backslash
18873 begin{multicols}{3}
18874 \end_layout
18875
18876 \end_inset
18877
18878
18879 \end_layout
18880
18881 \begin_layout Standard
18882
18883 \size footnotesize
18884 It can be imagined that my close intimacy with Sherlock Holmes had interested
18885  me deeply in crime, and that after his disappearance I never failed to
18886  read with care the various problems which came before the public.
18887  And I even attempted, more than once, for my own private satisfaction,
18888  to employ his methods in their solution, though with indifferent success.
18889  There was none, however, which appealed to me like this tragedy of Ronald
18890  Adair.
18891  As I read the evidence at the inquest, which led up to a verdict of willful
18892  murder against some person or persons unknown, I realized more clearly
18893  than I had ever done the loss which the community had sustained by the
18894  death of Sherlock Holmes.
18895  There were points about this strange business which would, I was sure,
18896  have specially appealed to him, and the efforts of the police would have
18897  been supplemented, or more probably anticipated, by the trained observation
18898  and the alert mind of the first criminal agent in Europe.
18899  All day, as I drove upon my round, I turned over the case in my mind and
18900  found no explanation which appeared to me to be adequate.
18901  At the risk of telling a twice-told tale, I will recapitulate the facts
18902  as they were known to the public at the conclusion of the inquest.
18903 \end_layout
18904
18905 \begin_layout Standard
18906 \begin_inset ERT
18907 status inlined
18908
18909 \begin_layout Standard
18910
18911
18912 \backslash
18913 end{multicols}
18914 \end_layout
18915
18916 \end_inset
18917
18918
18919 \end_layout
18920
18921 \begin_layout Standard
18922 You can have more than 3 columns if you want to, but that might not be very
18923  pleasant for the eye.
18924 \end_layout
18925
18926 \begin_layout Subsubsection
18927 Columns inside columns
18928 \end_layout
18929
18930 \begin_layout Standard
18931 You can even have columns inside columns:
18932 \end_layout
18933
18934 \begin_layout Standard
18935 \begin_inset ERT
18936 status inlined
18937
18938 \begin_layout Standard
18939
18940
18941 \backslash
18942 begin{multicols}{2}
18943 \end_layout
18944
18945 \end_inset
18946
18947
18948 \end_layout
18949
18950 \begin_layout Standard
18951
18952 \size footnotesize
18953 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
18954  at that time governor of one of the Australian colonies.
18955  Adair's mother had returned from Australia to undergo the operation for
18956  cataract, and she, her son Ronald, and her daughter Hilda were living together
18957  at 427 Park Lane.
18958 \end_layout
18959
18960 \begin_layout Standard
18961 \begin_inset ERT
18962 status inlined
18963
18964 \begin_layout Standard
18965
18966
18967 \backslash
18968 begin{multicols}{2}
18969 \end_layout
18970
18971 \end_inset
18972
18973
18974 \end_layout
18975
18976 \begin_layout Standard
18977
18978 \size footnotesize
18979 The youth moved in the best society--had, so far as was known, no enemies
18980  and no particular vices.
18981  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
18982  had been broken off by mutual consent some months before, and there was
18983  no sign that it had left any very profound feeling behind it.
18984  For the rest {sic} the man's life moved in a narrow and conventional circle,
18985  for his habits were quiet and his nature unemotional.
18986  Yet it was upon this easy-going young aristocrat that death came, in most
18987  strange and unexpected form, between the hours of ten and eleven-twenty
18988  on the night of March 30, 1894.
18989 \end_layout
18990
18991 \begin_layout Standard
18992 \begin_inset ERT
18993 status inlined
18994
18995 \begin_layout Standard
18996
18997
18998 \backslash
18999 end{multicols}
19000 \end_layout
19001
19002 \end_inset
19003
19004
19005 \end_layout
19006
19007 \begin_layout Standard
19008
19009 \size footnotesize
19010 Ronald Adair was fond of cards--playing continually, but never for such
19011  stakes as would hurt him.
19012  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
19013  It was shown that, after dinner on the day of his death, he had played
19014  a rubber of whist at the latter club.
19015  He had also played there in the afternoon.
19016
19017 \size default
19018  
19019 \size footnotesize
19020 The evidence of those who had played with him-- Mr.
19021  Murray, Sir John Hardy, and Colonel Moran--showed that the game was whist,
19022  and that there was a fairly equal fall of the cards.
19023  Adair might have lost five pounds, but not more.
19024  His fortune was a considerable one, and such a loss could not in any way
19025  affect him.
19026  He had played nearly every day at one club or other, but he was a cautious
19027  player, and usually rose a winner.
19028  It came out in evidence that, in partnership with Colonel Moran, he had
19029  actually won as much as four hundred and twenty pounds in a sitting, some
19030  weeks before, from Godfrey Milner and Lord Balmoral.
19031  So much for his recent history as it came out at the inquest.
19032 \end_layout
19033
19034 \begin_layout Standard
19035 \begin_inset ERT
19036 status inlined
19037
19038 \begin_layout Standard
19039
19040
19041 \backslash
19042 end{multicols}
19043 \end_layout
19044
19045 \end_inset
19046
19047
19048 \end_layout
19049
19050 \begin_layout Standard
19051 Please do read the file 
19052 \family typewriter
19053 examples/multicol.lyx
19054 \family default
19055  for more advanced examples including column and header spacing, vertical
19056  separator lines, and more.
19057 \end_layout
19058
19059 \begin_layout Section
19060 Numbering in the 
19061 \family sans
19062 Enumerate
19063 \family default
19064  Paragraph Environment
19065 \begin_inset OptArg
19066 status collapsed
19067
19068 \begin_layout Standard
19069 Numbering in Enumerate
19070 \end_layout
19071
19072 \end_inset
19073
19074
19075 \end_layout
19076
19077 \begin_layout Standard
19078 by 
19079 \noun on
19080 John Weiss
19081 \end_layout
19082
19083 \begin_layout Standard
19084 \begin_inset VSpace bigskip
19085 \end_inset
19086
19087
19088 \end_layout
19089
19090 \begin_layout Standard
19091 \noindent
19092 The default numbering for the 
19093 \family sans
19094 Enumerate
19095 \family default
19096  paragraph environment begins with Arabic numbers and ends with uppercase
19097  letters.
19098  Suppose, however, you wanted a different type of numbering scheme.
19099  Here's a quickie example of how to change the numbering scheme:
19100 \end_layout
19101
19102 \begin_layout LyX-Code
19103
19104 \backslash
19105 renewcommand{
19106 \backslash
19107 labelenumi}{
19108 \backslash
19109 Roman{enumi}.}
19110 \end_layout
19111
19112 \begin_layout LyX-Code
19113
19114 \backslash
19115 renewcommand{
19116 \backslash
19117 labelenumii}{
19118 \backslash
19119 Alph{enumii}.}
19120 \end_layout
19121
19122 \begin_layout LyX-Code
19123
19124 \backslash
19125 renewcommand{
19126 \backslash
19127 labelenumiii}{
19128 \backslash
19129 arabic{enumiii}.}
19130 \end_layout
19131
19132 \begin_layout LyX-Code
19133
19134 \backslash
19135 renewcommand{
19136 \backslash
19137 labelenumiv}{
19138 \backslash
19139 alph{enumiv}.)}
19140 \end_layout
19141
19142 \begin_layout Standard
19143 \SpecialChar \ldots{}
19144  which changes the numbering scheme to uppercase Roman numerals, uppercase
19145  letters, Arabic numbers, and lowercase letter.
19146 \end_layout
19147
19148 \begin_layout Standard
19149 Additionally, the previous example also adds a little bit extra to the numbering
19150  scheme.
19151  For example, the first level label actually looks like: 
19152 \begin_inset Quotes eld
19153 \end_inset
19154
19155 I.
19156 \begin_inset Quotes erd
19157 \end_inset
19158
19159 .
19160  For ease of reading, we'll describe what the numbering schemes look like
19161  using a notation something like this: <
19162 \begin_inset Quotes eld
19163 \end_inset
19164
19165 I.
19166 \begin_inset Quotes erd
19167 \end_inset
19168
19169 ,\InsetSpace ~
19170
19171 \begin_inset Quotes erd
19172 \end_inset
19173
19174 A.
19175 \begin_inset Quotes erd
19176 \end_inset
19177
19178 ,\InsetSpace ~
19179
19180 \begin_inset Quotes erd
19181 \end_inset
19182
19183 1.
19184 \begin_inset Quotes erd
19185 \end_inset
19186
19187 ,\InsetSpace ~
19188
19189 \begin_inset Quotes eld
19190 \end_inset
19191
19192 a.)
19193 \begin_inset Quotes erd
19194 \end_inset
19195
19196 >.
19197  
19198 \end_layout
19199
19200 \begin_layout Standard
19201 As you can see in the example, there is a label command for each nesting
19202  level, 
19203 \family typewriter
19204
19205 \backslash
19206 labelenumi
19207 \family default
19208  \SpecialChar \ldots{}
19209  
19210 \family typewriter
19211
19212 \backslash
19213 labelenumiv
19214 \family default
19215 , as well as a counter, 
19216 \family typewriter
19217 enumi
19218 \family default
19219  \SpecialChar \ldots{}
19220  
19221 \family typewriter
19222 enumiv
19223 \family default
19224 .
19225  There are also five 
19226 \begin_inset Quotes eld
19227 \end_inset
19228
19229 number printing
19230 \begin_inset Quotes erd
19231 \end_inset
19232
19233  commands, 
19234 \family typewriter
19235
19236 \backslash
19237 arabic{}
19238 \family default
19239
19240 \family typewriter
19241
19242 \backslash
19243 roman{}
19244 \family default
19245
19246 \family typewriter
19247
19248 \backslash
19249 Roman{}
19250 \family default
19251
19252 \family typewriter
19253
19254 \backslash
19255 alph{}
19256 \family default
19257 , and 
19258 \family typewriter
19259
19260 \backslash
19261 Alph{}
19262 \family default
19263 , each of which take one counter as an argument.
19264  You can add characters before or after these, but there's no need to add
19265  spaces.
19266 \end_layout
19267
19268 \begin_layout Standard
19269 You can get really fancy with these.
19270  For example:
19271 \end_layout
19272
19273 \begin_layout LyX-Code
19274
19275 \backslash
19276 renewcommand{
19277 \backslash
19278 labelenumi}{
19279 \backslash
19280 #
19281 \backslash
19282 Alph{enumi}
19283 \backslash
19284 #}
19285 \end_layout
19286
19287 \begin_layout LyX-Code
19288
19289 \backslash
19290 renewcommand{
19291 \backslash
19292 labelenumii}{
19293 \backslash
19294 Alph{enumi}.
19295 \backslash
19296 arabic{enumii}}
19297 \end_layout
19298
19299 \begin_layout LyX-Code
19300
19301 \backslash
19302 renewcommand{
19303 \backslash
19304 labelenumiii}{
19305 \backslash
19306 alph{enumiii}+}
19307 \end_layout
19308
19309 \begin_layout LyX-Code
19310
19311 \backslash
19312 renewcommand{
19313 \backslash
19314 labelenumiv}{(
19315 \backslash
19316 roman{enumiv})}
19317 \end_layout
19318
19319 \begin_layout Standard
19320 produces the somewhat out of hand numbering scheme: <
19321 \begin_inset Quotes eld
19322 \end_inset
19323
19324 #A#
19325 \begin_inset Quotes erd
19326 \end_inset
19327
19328 ,\InsetSpace ~
19329
19330 \begin_inset Quotes erd
19331 \end_inset
19332
19333 A.1
19334 \begin_inset Quotes erd
19335 \end_inset
19336
19337 ,\InsetSpace ~
19338
19339 \begin_inset Quotes erd
19340 \end_inset
19341
19342 a+
19343 \begin_inset Quotes erd
19344 \end_inset
19345
19346 ,\InsetSpace ~
19347
19348 \begin_inset Quotes eld
19349 \end_inset
19350
19351 (i)
19352 \begin_inset Quotes erd
19353 \end_inset
19354
19355 >.
19356  
19357 \end_layout
19358
19359 \begin_layout Standard
19360
19361 \end_layout
19362
19363 \begin_layout Section
19364 Dropped Capitals
19365 \end_layout
19366
19367 \begin_layout Standard
19368 by 
19369 \noun on
19370 Mike Ressler
19371 \end_layout
19372
19373 \begin_layout Standard
19374 \begin_inset VSpace bigskip
19375 \end_inset
19376
19377
19378 \end_layout
19379
19380 \begin_layout Standard
19381 \noindent
19382 \begin_inset ERT
19383 status collapsed
19384
19385 \begin_layout Standard
19386
19387
19388 \backslash
19389 newfont{
19390 \backslash
19391 tmpfont}{cmr17 scaled 2500}{
19392 \backslash
19393 tmpfont T}
19394 \backslash
19395 vspace*{-8.4ex}
19396 \end_layout
19397
19398 \end_inset
19399
19400
19401 \end_layout
19402
19403 \begin_layout Standard
19404 \noindent
19405 \begin_inset ERT
19406 status inlined
19407
19408 \begin_layout Standard
19409
19410
19411 \backslash
19412 hangindent=3.3em 
19413 \backslash
19414 hangafter=-3
19415 \end_layout
19416
19417 \end_inset
19418
19419  hose of you who like the style of old books probably also like 
19420 \begin_inset Quotes eld
19421 \end_inset
19422
19423 dropped capitals
19424 \begin_inset Quotes erd
19425 \end_inset
19426
19427 ---those large capital letters which begin each new chapter or section.
19428  Implementing them with plain LyX/LaTeX is straightforward (assuming you
19429  know some plain TeX!) but does require a lot of work and many iterations,
19430  as you can see by all the ugly TeX-mode stuff at the beginning of this
19431  paragraph.
19432 \end_layout
19433
19434 \begin_layout Standard
19435 \begin_inset ERT
19436 status inlined
19437
19438 \begin_layout Standard
19439
19440
19441 \backslash
19442 verb+
19443 \backslash
19444 bigdrop{-1em}{3}{ptmri}{T}+
19445 \end_layout
19446
19447 \end_inset
19448
19449 here is a much easier way of doing this, of course.
19450  The 
19451 \family typewriter
19452 dropcaps
19453 \family default
19454  (or the newer 
19455 \family typewriter
19456 dropping
19457 \family default
19458 ) package from CTAN allows a simple way to add such letters to your documents.
19459  Since this package is not a standard part of teTeX, I can't demonstrate
19460  it within this document, but if you copy this paragraph to a new document,
19461  delete the 
19462 \begin_inset Quotes eld
19463 \end_inset
19464
19465
19466 \family typewriter
19467
19468 \backslash
19469 verb
19470 \family default
19471
19472 \begin_inset Quotes erd
19473 \end_inset
19474
19475  and the pluses from the TeX code at the beginning of the paragraph, and
19476  add 
19477 \family typewriter
19478
19479 \backslash
19480 usepackage{dropcaps}
19481 \family default
19482  to your LaTeX preamble, you will get a nice Times Roman Italic 
19483 \begin_inset Quotes eld
19484 \end_inset
19485
19486 T
19487 \begin_inset Quotes erd
19488 \end_inset
19489
19490 , whose height is three lines of text and which protrudes 1 em into the
19491  margin.
19492  (Make certain you have copied 
19493 \begin_inset Quotes eld
19494 \end_inset
19495
19496
19497 \family typewriter
19498 dropcaps.sty
19499 \family default
19500
19501 \begin_inset Quotes erd
19502 \end_inset
19503
19504  into a directory where TeX can see it.) The first argument is the amount
19505  of indentation; in this case the negative sign moves it into the margin.
19506  The second argument is the height of the letter in number of lines of text.
19507  The third argument is the font name: virtually anything which has a tfm
19508  file should work (wade through the 
19509 \family typewriter
19510 .../texmf/fonts/tfm
19511 \family default
19512  directory for possibilities).
19513  My personal favorite is 
19514 \begin_inset Quotes eld
19515 \end_inset
19516
19517
19518 \family typewriter
19519 yinit
19520 \family default
19521
19522 \begin_inset Quotes erd
19523 \end_inset
19524
19525 , a fancy German font specifically designed for dropped capitals.
19526  The fourth argument is the letter (or letters) to be dropped.
19527  The 
19528 \family typewriter
19529 dropping
19530 \family default
19531  package also offers the 
19532 \family typewriter
19533
19534 \backslash
19535 bigdrop
19536 \family default
19537  command, as well as a slightly simplified 
19538 \family typewriter
19539
19540 \backslash
19541 dropping
19542 \family default
19543  command.
19544 \end_layout
19545
19546 \begin_layout Section
19547 Non-standard Paragraph Shapes
19548 \end_layout
19549
19550 \begin_layout Standard
19551 by 
19552 \noun on
19553 Mike Ressler
19554 \end_layout
19555
19556 \begin_layout Standard
19557 \begin_inset VSpace bigskip
19558 \end_inset
19559
19560
19561 \end_layout
19562
19563 \begin_layout Standard
19564 \begin_inset ERT
19565 status inlined
19566
19567 \begin_layout Standard
19568
19569
19570 \backslash
19571 begin{sloppypar}
19572 \end_layout
19573
19574 \end_inset
19575
19576
19577 \end_layout
19578
19579 \begin_layout Standard
19580 \begin_inset ERT
19581 status collapsed
19582
19583 \begin_layout Standard
19584
19585
19586 \backslash
19587 newdimen
19588 \backslash
19589 varunit 
19590 \end_layout
19591
19592 \begin_layout Standard
19593
19594
19595 \backslash
19596 setlength{
19597 \backslash
19598 varunit}{4.5in}
19599 \end_layout
19600
19601 \end_inset
19602
19603
19604 \end_layout
19605
19606 \begin_layout Standard
19607 \noindent
19608 \begin_inset ERT
19609 status collapsed
19610
19611 \begin_layout Standard
19612
19613
19614 \backslash
19615 parshape 19 0.45
19616 \backslash
19617 varunit 0.332
19618 \backslash
19619 varunit
19620 \end_layout
19621
19622 \begin_layout Standard
19623
19624 0.40
19625 \backslash
19626 varunit 0.300
19627 \backslash
19628 varunit
19629 \end_layout
19630
19631 \begin_layout Standard
19632
19633 0.35
19634 \backslash
19635 varunit 0.293
19636 \backslash
19637 varunit
19638 \end_layout
19639
19640 \begin_layout Standard
19641
19642 0.30
19643 \backslash
19644 varunit 0.300
19645 \backslash
19646 varunit
19647 \end_layout
19648
19649 \begin_layout Standard
19650
19651 0.25
19652 \backslash
19653 varunit 0.317
19654 \backslash
19655 varunit
19656 \end_layout
19657
19658 \begin_layout Standard
19659
19660 0.20
19661 \backslash
19662 varunit 0.342
19663 \backslash
19664 varunit
19665 \end_layout
19666
19667 \begin_layout Standard
19668
19669 0.15
19670 \backslash
19671 varunit 0.373
19672 \backslash
19673 varunit
19674 \end_layout
19675
19676 \begin_layout Standard
19677
19678 0.10
19679 \backslash
19680 varunit 0.410
19681 \backslash
19682 varunit
19683 \end_layout
19684
19685 \begin_layout Standard
19686
19687 0.05
19688 \backslash
19689 varunit 0.453
19690 \backslash
19691 varunit
19692 \end_layout
19693
19694 \begin_layout Standard
19695
19696 0.00
19697 \backslash
19698 varunit 0.500
19699 \backslash
19700 varunit
19701 \end_layout
19702
19703 \begin_layout Standard
19704
19705 0.05
19706 \backslash
19707 varunit 0.453
19708 \backslash
19709 varunit
19710 \end_layout
19711
19712 \begin_layout Standard
19713
19714 0.10
19715 \backslash
19716 varunit 0.410
19717 \backslash
19718 varunit
19719 \end_layout
19720
19721 \begin_layout Standard
19722
19723 0.15
19724 \backslash
19725 varunit 0.373
19726 \backslash
19727 varunit
19728 \end_layout
19729
19730 \begin_layout Standard
19731
19732 0.20
19733 \backslash
19734 varunit 0.342
19735 \backslash
19736 varunit
19737 \end_layout
19738
19739 \begin_layout Standard
19740
19741 0.25
19742 \backslash
19743 varunit 0.317
19744 \backslash
19745 varunit
19746 \end_layout
19747
19748 \begin_layout Standard
19749
19750 0.30
19751 \backslash
19752 varunit 0.300
19753 \backslash
19754 varunit
19755 \end_layout
19756
19757 \begin_layout Standard
19758
19759 0.35
19760 \backslash
19761 varunit 0.293
19762 \backslash
19763 varunit
19764 \end_layout
19765
19766 \begin_layout Standard
19767
19768 0.40
19769 \backslash
19770 varunit 0.300
19771 \backslash
19772 varunit
19773 \end_layout
19774
19775 \begin_layout Standard
19776
19777 0.45
19778 \backslash
19779 varunit 0.332
19780 \backslash
19781 varunit
19782 \end_layout
19783
19784 \begin_layout Standard
19785
19786 \end_layout
19787
19788 \end_inset
19789
19790 There are times when the tyranny of rectangular paragraphs must be overthrown.
19791  In such situations, a call to the delightful plain TeX command 
19792 \family typewriter
19793
19794 \backslash
19795 parshape
19796 \family default
19797  is called for.
19798  As you can see, completely arbitrary shapes can be laid out with a suitable
19799  set of linelength definitions.
19800  While this parshape may look a bit silly and useless, one could conceive
19801  of situations such as finely tuned dropped capitals, word wrapping around
19802  non-rectangular graphics, etc.
19803  which will benefit from such handcrafting.
19804 \end_layout
19805
19806 \begin_layout Standard
19807 \begin_inset VSpace bigskip
19808 \end_inset
19809
19810
19811 \end_layout
19812
19813 \begin_layout Standard
19814 The syntax is 
19815 \family typewriter
19816
19817 \backslash
19818 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
19819  #nindent #nlength
19820 \family default
19821 , where 
19822 \family typewriter
19823 numlines
19824 \family default
19825  is the number of lines of text which define the paragraph.
19826  If there turn out to be fewer lines, the shape is truncated; if there are
19827  more, the excess lines have the same dimensions as the last line of the
19828  definition.
19829  The 
19830 \family typewriter
19831 #nindent
19832 \family default
19833  and 
19834 \family typewriter
19835 #nlength
19836 \family default
19837  entries specify the indentation of the line from the left margin, and the
19838  length of the line as measured from that point.
19839  The shape applies only to the current paragraph; everything is reset to
19840  normal for the next paragraph.
19841 \end_layout
19842
19843 \begin_layout Standard
19844 \begin_inset ERT
19845 status inlined
19846
19847 \begin_layout Standard
19848
19849
19850 \backslash
19851 end{sloppypar}
19852 \end_layout
19853
19854 \end_inset
19855
19856
19857 \end_layout
19858
19859 \begin_layout Section
19860 Summary
19861 \end_layout
19862
19863 \begin_layout Standard
19864 As you can see, the examples in this section range from the useful to the
19865  whimsical.
19866  While I don't expect that anyone will ever need the paragraph shape demonstrate
19867 d in the last section, the important point is that you can do almost anything
19868  you want in LyX if you are willing to figure out how to do it in TeX and
19869  LaTeX.
19870  TeX is a fantastically powerful typesetting system and all that power is
19871  available to you since LyX uses it as its backend.
19872  Happy LyXing!
19873 \end_layout
19874
19875 \end_body
19876 \end_document