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