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