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