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