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