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