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