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