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