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