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