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