]> git.lyx.org Git - lyx.git/blob - lib/doc/Extended.lyx
doc/Makefile.am: add missing image file
[lyx.git] / lib / doc / Extended.lyx
1 #LyX 1.6.0svn 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 you find in LyX's 
12692 \family typewriter
12693 examples
12694 \family default
12695  folder.
12696 \end_layout
12697
12698 \begin_layout Subsubsection
12699 Give It a Title Page
12700 \end_layout
12701
12702 \begin_layout Standard
12703 Unlike other classes that provide 
12704 \family sans
12705 Title
12706 \family default
12707
12708 \family sans
12709 Author
12710 \family default
12711
12712 \family sans
12713 Date
12714 \family default
12715  and 
12716 \family sans
12717 Abstract
12718 \family default
12719  environments, 
12720 \family sans
12721 foils
12722 \family default
12723  creates the title on a page of its own.
12724  If you leave out the 
12725 \family sans
12726 Date
12727 \family default
12728  environment LaTeX will substitute the current date (every time you regenerate
12729  the output).
12730 \end_layout
12731
12732 \begin_layout Subsubsection
12733 Start a New Foil
12734 \end_layout
12735
12736 \begin_layout Standard
12737 As I mentioned earlier, there are four ways of starting a new foil.
12738  For portrait foils you should use 
12739 \family sans
12740 Foilhead
12741 \family default
12742  or 
12743 \family sans
12744 ShortFoilhead.
12745
12746 \family default
12747  The difference between these two environments is the amount of space between
12748  the title of the foil (the foilhead) and the body of the foil.
12749 \end_layout
12750
12751 \begin_layout Standard
12752 Landscape foils are generated using the 
12753 \family sans
12754 Rotatefoilhead
12755 \family default
12756  and 
12757 \family sans
12758 ShortRotatefoilhead
12759 \family default
12760  environments.
12761  Again the only difference is the spacing between foilhead and body.
12762  Both of the short versions have 0.5 inches less separation between the foilhead
12763  and the body.
12764  
12765 \end_layout
12766
12767 \begin_layout Standard
12768 One problem with the support for landscape foils is the requirement that
12769  you have to use the 
12770 \family typewriter
12771 dvips
12772 \family default
12773  driver to generate the PostScript output otherwise the foils won't be rotated.
12774  It is possible to get landscape foils even if you haven't got the 
12775 \family typewriter
12776 dvips
12777 \family default
12778  driver provided you can feed your foils sideways through your printer ;-)
12779 \end_layout
12780
12781 \begin_layout Subsubsection
12782 Theorems, Lemmas, Proofs and more
12783 \end_layout
12784
12785 \begin_layout Standard
12786 Due to a small bug in LyX you can't have two of the same type of these environme
12787 nts directly following each other.
12788  They must be separated by something.
12789  If you try, you will just be extending the previous environment as if you
12790  had merged the two environments together.
12791  So, how do you get around this problem? The simplest option is to insert
12792  some text between the two environments or add a 
12793 \family sans
12794 LaTeX
12795 \family default
12796  environment between the two with just a 
12797 \begin_inset Quotes eld
12798 \end_inset
12799
12800
12801 \family typewriter
12802 %
12803 \family default
12804
12805 \begin_inset Quotes erd
12806 \end_inset
12807
12808  in it.
12809  This will force LyX to produce two separate environments and hence the
12810  correct LaTeX output.
12811  An example is provided in the example file included with the LyX distribution.
12812  Remember, this problem only occurs if you are trying to place two of the
12813  same type of theorem-like environments one directly after the other.
12814 \end_layout
12815
12816 \begin_layout Subsubsection
12817 Lists
12818 \end_layout
12819
12820 \begin_layout Standard
12821 You get all the commonly supported list styles found in other classes as
12822  well as two new ones.
12823  I'll only describe the new ones here.
12824  If you want to find out more about the other list environments check out
12825  the 
12826 \emph on
12827 User's Guide.
12828
12829 \emph default
12830  If you intend to use itemized lists you might also want to read about the
12831  
12832 \family sans
12833 Itemize
12834 \begin_inset space ~
12835 \end_inset
12836
12837 Bullet
12838 \begin_inset space ~
12839 \end_inset
12840
12841 Selection
12842 \family default
12843  dialog described above in section
12844 \begin_inset space ~
12845 \end_inset
12846
12847
12848 \begin_inset CommandInset ref
12849 LatexCommand ref
12850 reference "sec:bullet"
12851
12852 \end_inset
12853
12854 .
12855 \end_layout
12856
12857 \begin_layout Standard
12858 The two new list styles, 
12859 \family sans
12860 TickList
12861 \family default
12862  and 
12863 \family sans
12864 CrossList
12865 \family default
12866 , are designed to make it easier for you to create lists of do's and don'ts
12867  or right and wrong by providing dedicated environments that use a tick
12868  or a cross as the label of the list.
12869  These lists are in fact dedicated variants of the 
12870 \family sans
12871 Itemize
12872 \family default
12873  environment.
12874  They do however require that you have the 
12875 \family typewriter
12876 psnfss
12877 \family default
12878  packages installed.
12879 \end_layout
12880
12881 \begin_layout Subsubsection
12882 Figures and Tables
12883 \end_layout
12884
12885 \begin_layout Standard
12886
12887 \family sans
12888 Foil
12889 \family default
12890 TeX redefines the floating tables and figures so that they appear exactly
12891  where they are in the text rather than pushing them to the top of the page
12892  or to some user specified location.
12893  In fact if you change the float placement settings they are simply ignored.
12894 \end_layout
12895
12896 \begin_layout Subsubsection
12897 Page Headers and Footers
12898 \begin_inset CommandInset label
12899 LatexCommand label
12900 name "sec:foilfoot"
12901
12902 \end_inset
12903
12904
12905 \end_layout
12906
12907 \begin_layout Standard
12908
12909 \family sans
12910 My
12911 \begin_inset space ~
12912 \end_inset
12913
12914 Logo
12915 \family default
12916  and 
12917 \family sans
12918 Restriction
12919 \family default
12920  are two commands used to control the left-footer text string.
12921  The first is meant to allow you to include a graphic logo on your foils
12922  and defaults to 
12923 \begin_inset Quotes eld
12924 \end_inset
12925
12926 -Typeset by 
12927 \family sans
12928 Foil
12929 \family default
12930 TeX-
12931 \begin_inset Quotes erd
12932 \end_inset
12933
12934 .
12935  While the second is meant to provide a classification for the audience,
12936  
12937 \emph on
12938 e.
12939 \begin_inset space \thinspace{}
12940 \end_inset
12941
12942 g.
12943 \emph default
12944
12945 \begin_inset space ~
12946 \end_inset
12947
12948 Confidential.
12949  It is empty by default.
12950 \end_layout
12951
12952 \begin_layout Standard
12953 The remaining page corners can be filled by 
12954 \family sans
12955 Right
12956 \begin_inset space ~
12957 \end_inset
12958
12959 Footer
12960 \family default
12961  (which defaults to page numbers), 
12962 \family sans
12963 Right
12964 \begin_inset space ~
12965 \end_inset
12966
12967 Header
12968 \family default
12969  (top right) and 
12970 \family sans
12971 Left
12972 \begin_inset space ~
12973 \end_inset
12974
12975 Header
12976 \family default
12977  (top left).
12978 \end_layout
12979
12980 \begin_layout Subsection
12981 Unsupported 
12982 \family sans
12983 Foil
12984 \family default
12985 TeX Goodies
12986 \begin_inset CommandInset label
12987 LatexCommand label
12988 name "sec:unsuppfoils"
12989
12990 \end_inset
12991
12992
12993 \end_layout
12994
12995 \begin_layout Standard
12996 All the commands mentioned below need to be set in a 
12997 \family sans
12998 LaTeX
12999 \family default
13000  environment or as 
13001 \family sans
13002 TeX
13003 \family default
13004  within another environment.
13005 \end_layout
13006
13007 \begin_layout Subsubsection
13008 Lengths
13009 \end_layout
13010
13011 \begin_layout Standard
13012 All lengths are adjusted using the 
13013 \family typewriter
13014
13015 \backslash
13016 setlength{
13017 \family default
13018 \emph on
13019 lengthname
13020 \family typewriter
13021 \emph default
13022 }{
13023 \family default
13024 \emph on
13025 newlength
13026 \family typewriter
13027 \emph default
13028 }
13029 \family default
13030  command.
13031  Where 
13032 \emph on
13033 lengthname
13034 \emph default
13035  should be replaced by the name given to the length you want to change and
13036  
13037 \emph on
13038 newlength
13039 \emph default
13040  is the length value.
13041  All lengths should be specified in units of length such as inches (
13042 \family typewriter
13043 in
13044 \family default
13045 ), millimeters (
13046 \family typewriter
13047 mm
13048 \family default
13049 ) or points (
13050 \family typewriter
13051 pt
13052 \family default
13053 ) or relative to some document or font-based length such as 
13054 \family typewriter
13055
13056 \backslash
13057 textwidth
13058 \family default
13059 .
13060  
13061 \end_layout
13062
13063 \begin_layout Standard
13064 It's possible to change the spacing between a foilhead and the body of the
13065  foil by adjusting the length specified by 
13066 \family typewriter
13067
13068 \backslash
13069 foilheadskip
13070 \family default
13071 .
13072  For example, to make 
13073 \emph on
13074 all
13075 \emph default
13076  foilheads 0.5 inches closer to their bodies put the following in the preamble:
13077  
13078 \family typewriter
13079
13080 \backslash
13081 setlength{
13082 \backslash
13083 foilheadskip}{-0.5in}
13084 \end_layout
13085
13086 \begin_layout Standard
13087 The spacings around floats can be adjusted by setting these lengths:
13088 \end_layout
13089
13090 \begin_layout Labeling
13091 \labelwidthstring MMMMMMMMMMM
13092
13093 \family typewriter
13094
13095 \backslash
13096 abovefloatskip
13097 \family default
13098  Separation between the text and the top of the float
13099 \end_layout
13100
13101 \begin_layout Labeling
13102 \labelwidthstring MMMMMMMMMMM
13103
13104 \family typewriter
13105
13106 \backslash
13107 abovecaptionskip
13108 \family default
13109  Separation between the float and the caption
13110 \end_layout
13111
13112 \begin_layout Labeling
13113 \labelwidthstring MMMMMMMMMMM
13114
13115 \family typewriter
13116
13117 \backslash
13118 belowcaptionskip
13119 \family default
13120  Separation between the caption and the following text
13121 \end_layout
13122
13123 \begin_layout Labeling
13124 \labelwidthstring MMMMMMMMMMM
13125
13126 \family typewriter
13127
13128 \backslash
13129 captionwidth
13130 \family default
13131  You can make the captions narrower than the surrounding text by adjusting
13132  this length.
13133  Best done relative to 
13134 \family typewriter
13135
13136 \backslash
13137 textwidth
13138 \family default
13139 .
13140 \end_layout
13141
13142 \begin_layout Standard
13143 There are also several title page related lengths that you may find useful
13144  if you have a long title or several authors:
13145 \end_layout
13146
13147 \begin_layout Labeling
13148 \labelwidthstring MMMMMMMMMMM
13149
13150 \family typewriter
13151
13152 \backslash
13153 abovetitleskip
13154 \family default
13155  Separation from headers to 
13156 \family sans
13157 Title
13158 \end_layout
13159
13160 \begin_layout Labeling
13161 \labelwidthstring MMMMMMMMMMM
13162
13163 \family typewriter
13164
13165 \backslash
13166 titleauthorskip
13167 \family default
13168  between 
13169 \family sans
13170 Title
13171 \family default
13172  and 
13173 \family sans
13174 Author
13175 \family default
13176  environments
13177 \end_layout
13178
13179 \begin_layout Labeling
13180 \labelwidthstring MMMMMMMMMMM
13181
13182 \family typewriter
13183
13184 \backslash
13185 authorauthorskip
13186 \family default
13187  between multiple 
13188 \family sans
13189 Author
13190 \family default
13191  lines
13192 \end_layout
13193
13194 \begin_layout Labeling
13195 \labelwidthstring MMMMMMMMMMM
13196
13197 \family typewriter
13198
13199 \backslash
13200 authordateskip
13201 \family default
13202  between the 
13203 \family sans
13204 Author
13205 \family default
13206  and the 
13207 \family sans
13208 Date
13209 \end_layout
13210
13211 \begin_layout Labeling
13212 \labelwidthstring MMMMMMMMMMM
13213
13214 \family typewriter
13215
13216 \backslash
13217 dateabstractskip
13218 \family default
13219  between the 
13220 \family sans
13221 Date
13222 \family default
13223  and the 
13224 \family sans
13225 Abstract
13226 \end_layout
13227
13228 \begin_layout Standard
13229 The last length related command affects all the list environments.
13230  If you place 
13231 \family typewriter
13232
13233 \backslash
13234 zerolistvertdimens
13235 \family default
13236  
13237 \emph on
13238 inside
13239 \emph default
13240  a list environment then all the vertical spacing between the list items
13241  is removed.
13242  Note that this is a command not a length so it doesn't require 
13243 \family typewriter
13244
13245 \backslash
13246 setlength
13247 \family default
13248  like the stuff mentioned above.
13249 \end_layout
13250
13251 \begin_layout Subsubsection
13252 Headers and Footers
13253 \end_layout
13254
13255 \begin_layout Standard
13256 The 
13257 \family typewriter
13258
13259 \backslash
13260 LogoOn
13261 \family default
13262  and 
13263 \family typewriter
13264
13265 \backslash
13266 LogoOff
13267 \family default
13268  commands control whether the logo in the 
13269 \family sans
13270 MyLogo
13271 \family default
13272  definition appear on a given page.
13273  If you put 
13274 \family typewriter
13275
13276 \backslash
13277 LogoOff
13278 \family default
13279  in the preamble then none of the foils will have the logo on them.
13280  If you don't want the logo on a particular page place the 
13281 \family typewriter
13282
13283 \backslash
13284 LogoOff
13285 \family default
13286  directly after the foilhead of that page and the 
13287 \family typewriter
13288
13289 \backslash
13290 LogoOn
13291 \family default
13292  directly after the next foilhead.
13293 \end_layout
13294
13295 \begin_layout Standard
13296 If you decide to use the 
13297 \family sans
13298 fancy
13299 \family default
13300  page style setting in the 
13301 \family sans
13302 Document
13303 \begin_inset space ~
13304 \end_inset
13305
13306 Layout
13307 \family default
13308  dialog you should probably add 
13309 \family typewriter
13310
13311 \backslash
13312 let
13313 \backslash
13314 headwidth
13315 \backslash
13316 textwidth
13317 \family default
13318  to your preamble so headers and footers on landscape pages are correctly
13319  placed when rotated.
13320  This is due to some clashes between the page layouts provided by the 
13321 \family sans
13322 fancyheadings
13323 \family default
13324  package and the 
13325 \family sans
13326 foils
13327 \family default
13328  class.
13329 \end_layout
13330
13331 \begin_layout Section
13332 Latex8 (IEEE Conference Papers)
13333 \end_layout
13334
13335 \begin_layout Standard
13336 by 
13337 \noun on
13338 Allan Rae
13339 \end_layout
13340
13341 \begin_layout Subsection
13342 Introduction
13343 \end_layout
13344
13345 \begin_layout Standard
13346 Since this class is specifically for writing submissions to IEEE sponsored
13347  conferences I strongly recommend that you get a copy of their Authors Kit.
13348  The 
13349 \family sans
13350 latex.sty
13351 \family default
13352  package and associated bibliography style file is included in the kit.
13353  The Authors Kit is usually sent out by email once your initial submission
13354  has been accepted.
13355  There is a lot of useful information in the Authors Kit explaining formatting
13356  restrictions and so on and I will assume you have read this since that
13357  means I don't have to repeat it all here.
13358 \end_layout
13359
13360 \begin_layout Subsection
13361 Getting Started
13362 \end_layout
13363
13364 \begin_layout Standard
13365 [AR\SpecialChar \@.
13366  more to come]
13367 \end_layout
13368
13369 \begin_layout Subsection
13370 Supported Environments
13371 \end_layout
13372
13373 \begin_layout Itemize
13374
13375 \family sans
13376 Standard
13377 \end_layout
13378
13379 \begin_layout Itemize
13380
13381 \family sans
13382 Title
13383 \end_layout
13384
13385 \begin_layout Itemize
13386
13387 \family sans
13388 Author
13389 \end_layout
13390
13391 \begin_layout Itemize
13392
13393 \family sans
13394 E-mail
13395 \end_layout
13396
13397 \begin_layout Itemize
13398
13399 \family sans
13400 Affiliation
13401 \end_layout
13402
13403 \begin_layout Itemize
13404
13405 \family sans
13406 Abstract
13407 \end_layout
13408
13409 \begin_layout Itemize
13410
13411 \family sans
13412 Section
13413 \end_layout
13414
13415 \begin_layout Itemize
13416
13417 \family sans
13418 SubSection
13419 \end_layout
13420
13421 \begin_layout Itemize
13422
13423 \family sans
13424 Caption
13425 \end_layout
13426
13427 \begin_layout Subsection
13428 Differences Between Screen and Paper
13429 \end_layout
13430
13431 \begin_layout Standard
13432 There are slight differences in appearance mainly with the presentation
13433  of section counters.
13434  On screen the trailing period of the section counter is missing but it
13435  will appear in the output so don't let this worry you.
13436 \end_layout
13437
13438 \begin_layout Section
13439 Hollywood (Hollywood spec scripts)
13440 \end_layout
13441
13442 \begin_layout Standard
13443 by 
13444 \shape smallcaps
13445 Garst Reese
13446 \end_layout
13447
13448 \begin_layout Subsection
13449 Introduction
13450 \end_layout
13451
13452 \begin_layout Standard
13453 Getting the format of a Hollywood script right is a 
13454 \begin_inset Quotes eld
13455 \end_inset
13456
13457 rite of passage.
13458 \begin_inset Quotes erd
13459 \end_inset
13460
13461  It is designed to make the readers focus on content and to be easy and
13462  familiar for the actors to read.
13463  Each page of a script should be one minute of film.
13464  Nothing goes in a script that you cannot see or hear on screen.
13465  The courier 12 pt font should be used throughout.
13466  No italics.
13467 \end_layout
13468
13469 \begin_layout Subsection
13470 Special problems
13471 \end_layout
13472
13473 \begin_layout Standard
13474 Speakers' lines should NEVER break in mid-sentence.
13475  If a speaker's lines continue over a page break, repeat the 
13476 \family sans
13477 Speaker
13478 \family default
13479  title followed by (Cont'd).
13480 \end_layout
13481
13482 \begin_layout Subsection
13483 Special features
13484 \end_layout
13485
13486 \begin_layout Standard
13487 Insert the 
13488 \family sans
13489 Speaker
13490 \family default
13491  names as labels then cross-reference the label to insert the name.
13492  The cross-reference dialog will show the current cast of characters.
13493  You can use this to insert the speaker name in narratives also.
13494 \end_layout
13495
13496 \begin_layout Subsection
13497 Paper size and Margins
13498 \end_layout
13499
13500 \begin_layout Standard
13501 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
13502 \end_layout
13503
13504 \begin_layout Subsection
13505 Environments
13506 \end_layout
13507
13508 \begin_layout Standard
13509 The following environments are available.
13510  You can use hollywood.bind to get the bind keys shown at the right.
13511 \end_layout
13512
13513 \begin_layout Itemize
13514
13515 \family sans
13516 Standard
13517 \begin_inset Newline newline
13518 \end_inset
13519
13520
13521 \family default
13522 Used where nothing else works.
13523  Try to avoid it.
13524 \end_layout
13525
13526 \begin_layout Itemize
13527
13528 \family sans
13529 FADE_IN
13530 \family default
13531 :
13532 \begin_inset space \hfill{}
13533 \end_inset
13534
13535
13536 \family sans
13537 M-z S-I
13538 \family default
13539
13540 \begin_inset Newline newline
13541 \end_inset
13542
13543 Usually followed by something like 
13544 \begin_inset Quotes eld
13545 \end_inset
13546
13547 on Sally waking up.
13548 \begin_inset Quotes erd
13549 \end_inset
13550
13551
13552 \end_layout
13553
13554 \begin_layout Itemize
13555
13556 \family sans
13557 INT:
13558 \begin_inset space \hfill{}
13559 \end_inset
13560
13561 M-z i
13562 \begin_inset Newline newline
13563 \end_inset
13564
13565
13566 \family default
13567 Introduces a new INTERIOR camera set-up.
13568  Always followed by DAY or NIGHT, or something similar to define the lighting
13569  required.
13570  Everthing on this line in CAPS.
13571 \end_layout
13572
13573 \begin_layout Itemize
13574
13575 \family sans
13576 EXT:
13577 \begin_inset space \hfill{}
13578 \end_inset
13579
13580 M-z e
13581 \begin_inset Newline newline
13582 \end_inset
13583
13584
13585 \family default
13586 Introduces a new EXTERIOR camera set-up.
13587  Everthing on this line in CAPS.
13588 \end_layout
13589
13590 \begin_layout Itemize
13591
13592 \family sans
13593 Speaker
13594 \begin_inset space \hfill{}
13595 \end_inset
13596
13597 M-z s
13598 \begin_inset Newline newline
13599 \end_inset
13600
13601
13602 \family default
13603 The character speaking.
13604 \end_layout
13605
13606 \begin_layout Itemize
13607
13608 \family sans
13609 Parenthetical
13610 \begin_inset space \hfill{}
13611 \end_inset
13612
13613 M-z p
13614 \begin_inset Newline newline
13615 \end_inset
13616
13617
13618 \family default
13619 Instructions to the speaker.
13620  The () are automatically inserted, but only the ( will show in LyX.
13621  Both will be printed.
13622 \end_layout
13623
13624 \begin_layout Itemize
13625
13626 \family sans
13627 Dialogue
13628 \begin_inset space \hfill{}
13629 \end_inset
13630
13631 M-z d
13632 \begin_inset Newline newline
13633 \end_inset
13634
13635
13636 \family default
13637 What the 
13638 \family sans
13639 Speaker
13640 \family default
13641  says.
13642 \end_layout
13643
13644 \begin_layout Itemize
13645
13646 \family sans
13647 Transition
13648 \begin_inset space \hfill{}
13649 \end_inset
13650
13651 M-z t
13652 \begin_inset Newline newline
13653 \end_inset
13654
13655
13656 \family default
13657 Camera movement instruction.
13658  e.
13659 \begin_inset space \thinspace{}
13660 \end_inset
13661
13662 g.
13663 \begin_inset space ~
13664 \end_inset
13665
13666 CUT TO:
13667 \end_layout
13668
13669 \begin_layout Itemize
13670
13671 \family sans
13672 FADE OUT:
13673 \begin_inset space \hfill{}
13674 \end_inset
13675
13676 M-z S-I
13677 \end_layout
13678
13679 \begin_layout Itemize
13680
13681 \family sans
13682 Author
13683 \begin_inset space \hfill{}
13684 \end_inset
13685
13686 M-z S-A
13687 \end_layout
13688
13689 \begin_layout Itemize
13690
13691 \family sans
13692 Title
13693 \begin_inset space \hfill{}
13694 \end_inset
13695
13696 M-z S-T
13697 \end_layout
13698
13699 \begin_layout Itemize
13700
13701 \family sans
13702 Right_Address
13703 \begin_inset space \hfill{}
13704 \end_inset
13705
13706 M-z r
13707 \end_layout
13708
13709 \begin_layout Subsection
13710 Script jargon
13711 \end_layout
13712
13713 \begin_layout Itemize
13714 (O.S) --- off screen
13715 \end_layout
13716
13717 \begin_layout Itemize
13718 (V.0) --- voice over
13719 \end_layout
13720
13721 \begin_layout Itemize
13722 b.g.
13723  --- background
13724 \end_layout
13725
13726 \begin_layout Itemize
13727 C.U.
13728  --- close-up
13729 \end_layout
13730
13731 \begin_layout Itemize
13732 PAN --- camera movement
13733 \end_layout
13734
13735 \begin_layout Itemize
13736 INSERT --- cut to close-up of
13737 \end_layout
13738
13739 \begin_layout Section
13740 Broadway
13741 \end_layout
13742
13743 \begin_layout Standard
13744 by 
13745 \shape smallcaps
13746 Garst Reese
13747 \end_layout
13748
13749 \begin_layout Subsection
13750 Introduction
13751 \end_layout
13752
13753 \begin_layout Standard
13754 Broadway is for writing plays.
13755  The format is more decorative than Hollywood, and much less standardized.
13756  This format should be suitable for workshops.
13757 \end_layout
13758
13759 \begin_layout Subsection
13760 Special problems
13761 \end_layout
13762
13763 \begin_layout Standard
13764 The same as in Hollywood.
13765 \end_layout
13766
13767 \begin_layout Subsection
13768 Special features
13769 \end_layout
13770
13771 \begin_layout Standard
13772 Insert the 
13773 \family sans
13774 Speaker
13775 \family default
13776  names as labels then cross-reference the label to insert the name.
13777  The cross-reference dialog will show the current cast of characters.
13778 \end_layout
13779
13780 \begin_layout Subsection
13781 Paper size and Margins
13782 \end_layout
13783
13784 \begin_layout Standard
13785 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
13786 \end_layout
13787
13788 \begin_layout Subsection
13789 Environments
13790 \end_layout
13791
13792 \begin_layout Standard
13793 The following environments are available.
13794  You can use broadway.bind to get the bind keys shown at the right.
13795 \end_layout
13796
13797 \begin_layout Itemize
13798
13799 \family sans
13800 Standard
13801 \begin_inset Newline newline
13802 \end_inset
13803
13804
13805 \family default
13806 You should not have to use this, but it is here for anything that does not
13807  fit otherwise.
13808 \end_layout
13809
13810 \begin_layout Itemize
13811
13812 \family sans
13813 Narrative
13814 \begin_inset space \hfill{}
13815 \end_inset
13816
13817 M-z n
13818 \begin_inset Newline newline
13819 \end_inset
13820
13821
13822 \family default
13823 Used to describe stage setting and the action.
13824  First use of speaker names in all CAPs.
13825 \end_layout
13826
13827 \begin_layout Itemize
13828
13829 \family sans
13830 ACT
13831 \begin_inset space \hfill{}
13832 \end_inset
13833
13834 M-z a
13835 \begin_inset Newline newline
13836 \end_inset
13837
13838
13839 \family default
13840 Automatically numbered.
13841  On screen it will be arabic, but will print as Roman.
13842 \end_layout
13843
13844 \begin_layout Itemize
13845
13846 \family sans
13847 ACT*
13848 \begin_inset space \hfill{}
13849 \end_inset
13850
13851 M-z S at
13852 \begin_inset Newline newline
13853 \end_inset
13854
13855
13856 \family default
13857 Subtitle for 
13858 \family sans
13859 ACT.
13860
13861 \family default
13862  It is just centered text.
13863 \end_layout
13864
13865 \begin_layout Itemize
13866
13867 \family sans
13868 SCENE
13869 \begin_inset space \hfill{}
13870 \end_inset
13871
13872 M-z S-S
13873 \begin_inset Newline newline
13874 \end_inset
13875
13876
13877 \family default
13878 Not automatically numbered.
13879  You supply the number.
13880  This is because I couldn't figure out how.
13881 \end_layout
13882
13883 \begin_layout Itemize
13884
13885 \family sans
13886 AT_RISE:
13887 \begin_inset space \hfill{}
13888 \end_inset
13889
13890 M-z S-R
13891 \begin_inset Newline newline
13892 \end_inset
13893
13894
13895 \family default
13896 A special case of Narrative to describe the setting and action as the curtain
13897  rises.
13898 \end_layout
13899
13900 \begin_layout Itemize
13901
13902 \family sans
13903 Speaker
13904 \begin_inset space \hfill{}
13905 \end_inset
13906
13907 M-z s
13908 \begin_inset Newline newline
13909 \end_inset
13910
13911
13912 \family default
13913 The speaker's (actor's) title, centered in all CAPS.
13914 \end_layout
13915
13916 \begin_layout Itemize
13917
13918 \family sans
13919 Parenthetical
13920 \begin_inset space \hfill{}
13921 \end_inset
13922
13923 M-z p
13924 \begin_inset Newline newline
13925 \end_inset
13926
13927
13928 \family default
13929 Instructions to the speaker.
13930  The parentheses are automatically inserted.
13931  The ( will appear on screen, but both will be in the printed play.
13932  This environment is only used within 
13933 \family sans
13934 Dialogue
13935 \family default
13936 .
13937 \end_layout
13938
13939 \begin_layout Itemize
13940
13941 \family sans
13942 Dialogue
13943 \begin_inset space \hfill{}
13944 \end_inset
13945
13946 M-z d
13947 \begin_inset Newline newline
13948 \end_inset
13949
13950
13951 \family default
13952 What the Speaker says.
13953 \end_layout
13954
13955 \begin_layout Itemize
13956
13957 \family sans
13958 CURTAIN
13959 \begin_inset space \hfill{}
13960 \end_inset
13961
13962 M-z S-C
13963 \begin_inset Newline newline
13964 \end_inset
13965
13966
13967 \family default
13968 The curtain comes down.
13969 \end_layout
13970
13971 \begin_layout Itemize
13972
13973 \family sans
13974 Title
13975 \begin_inset space \hfill{}
13976 \end_inset
13977
13978 M-z S-T
13979 \end_layout
13980
13981 \begin_layout Itemize
13982
13983 \family sans
13984 Author
13985 \begin_inset space \hfill{}
13986 \end_inset
13987
13988 M-z S-A
13989 \end_layout
13990
13991 \begin_layout Itemize
13992
13993 \family sans
13994 Right_Address
13995 \begin_inset space \hfill{}
13996 \end_inset
13997
13998 M-z r
13999 \end_layout
14000
14001 \begin_layout Standard
14002 Hello there.
14003 \end_layout
14004
14005 \begin_layout Section
14006 RevTeX4
14007 \end_layout
14008
14009 \begin_layout Standard
14010 by 
14011 \noun on
14012 Amir Karger
14013 \end_layout
14014
14015 \begin_layout Standard
14016 \begin_inset VSpace bigskip
14017 \end_inset
14018
14019
14020 \end_layout
14021
14022 \begin_layout Standard
14023 \noindent
14024 The 
14025 \family sans
14026 Revtex
14027 \begin_inset space ~
14028 \end_inset
14029
14030 4
14031 \family default
14032  textclass works with the American Physical Sociey's RevTeX 4.0 (the 
14033 \begin_inset Formula $\beta$
14034 \end_inset
14035
14036  release of May, 1999) class.
14037 \end_layout
14038
14039 \begin_layout Standard
14040 LyX has a 
14041 \family sans
14042 Revtex
14043 \family default
14044  textclass, which works with RevTeX 3.1.
14045  However, v3.1 is basically obsolete, as it works with LaTeX 2.09.
14046  That means that it doesn't interact very well with LyX, which requires
14047  LaTeX2e, although it has been kludged to work.
14048  Since RevTeX 4.0 has been designed to work much more cleanly with LaTeX2e,
14049  LyX with the 
14050 \family sans
14051 RevTeX
14052 \begin_inset space ~
14053 \end_inset
14054
14055 4
14056 \family default
14057  textclass should also be pretty easy to use.
14058 \end_layout
14059
14060 \begin_layout Standard
14061 These documents are supposed to be used in 
14062 \emph on
14063 addition
14064 \emph default
14065  to the RevTeX 4.0 documents, so we don't describe any of the special RevTeX
14066  macros, and assume you'll know what to put in the preamble if necessary.
14067 \end_layout
14068
14069 \begin_layout Subsection
14070 Installation
14071 \end_layout
14072
14073 \begin_layout Standard
14074 All you need to do is install RevTeX 4, as described in the package's README
14075  file.
14076  The package can be found at The RevTeX 4 Web Site 
14077 \begin_inset Flex URL
14078 status collapsed
14079
14080 \begin_layout Plain Layout
14081
14082 http://publish.aps.org/revtex4/
14083 \end_layout
14084
14085 \end_inset
14086
14087 .
14088  Install it somewhere that LaTeX can see it.
14089  Test it by trying to LaTeX a short RevTeX 4 document in some random directory
14090  (i.e., not the directory where you installed the class file.) Then, if you
14091  reconfigure LyX, it will find the class file and let you use the RevTeX4
14092  textclass.
14093 \end_layout
14094
14095 \begin_layout Standard
14096 Probably the easiest way to get started is either to import a RevTeX 4 document
14097  using 
14098 \family typewriter
14099 tex2lyx
14100 \family default
14101 , or to use the 
14102 \family sans
14103 Revtex
14104 \begin_inset space ~
14105 \end_inset
14106
14107 4
14108 \family default
14109  template, found in the templates directory.
14110 \end_layout
14111
14112 \begin_layout Subsection
14113 Preamble Matter
14114 \end_layout
14115
14116 \begin_layout Standard
14117 Optional arguments to 
14118 \family typewriter
14119
14120 \backslash
14121 documentclass
14122 \family default
14123 , like 
14124 \begin_inset Quotes eld
14125 \end_inset
14126
14127 preprint
14128 \begin_inset Quotes erd
14129 \end_inset
14130
14131  and 
14132 \begin_inset Quotes eld
14133 \end_inset
14134
14135 aps
14136 \begin_inset Quotes erd
14137 \end_inset
14138
14139 , go in the 
14140 \family sans
14141 E
14142 \bar under
14143 x
14144 \bar default
14145 tra
14146 \begin_inset space ~
14147 \end_inset
14148
14149 Options
14150 \family default
14151  field in the 
14152 \family sans
14153 Document
14154 \begin_inset space ~
14155 \end_inset
14156
14157 Layout
14158 \family default
14159  dialog, as usual.
14160  Remember that in RevTeX, at least one optional argument is required! 
14161 \end_layout
14162
14163 \begin_layout Standard
14164 Other preamble matter, like 
14165 \family typewriter
14166
14167 \backslash
14168 draft
14169 \family default
14170  etc.
14171 \begin_inset space ~
14172 \end_inset
14173
14174 goes in the 
14175 \family sans
14176 La
14177 \family default
14178 T
14179 \family sans
14180 eX
14181 \begin_inset space ~
14182 \end_inset
14183
14184 Preamble
14185 \family default
14186  dialog, also as usual.
14187 \end_layout
14188
14189 \begin_layout Subsection
14190 Layouts
14191 \end_layout
14192
14193 \begin_layout Standard
14194 The layouts basically correspond to the commands in RevTeX4.0.
14195  For example, the Email layout corresponds to 
14196 \family typewriter
14197
14198 \backslash
14199 email{}
14200 \family default
14201 .
14202  Note that (at least as of RevTeX 4.0 Beta), the 
14203 \family sans
14204 Address
14205 \family default
14206  and 
14207 \family sans
14208 Affiliation
14209 \family default
14210  layouts are exactly equivalent, so you shouldn't need to use both.
14211 \begin_inset Foot
14212 status collapsed
14213
14214 \begin_layout Plain Layout
14215 In case you're curious, both were included so that 
14216 \family typewriter
14217 tex2lyx
14218 \family default
14219  would be able to translate both 
14220 \family typewriter
14221
14222 \backslash
14223 address
14224 \family default
14225  and 
14226 \family typewriter
14227
14228 \backslash
14229 affiliation
14230 \family default
14231 .
14232 \end_layout
14233
14234 \end_inset
14235
14236
14237 \end_layout
14238
14239 \begin_layout Subsection
14240 Important Notes
14241 \end_layout
14242
14243 \begin_layout Standard
14244 There are a couple of important unique aspects of RevTeX 4 which might cause
14245  bugs that will be even more confusing in LyX.
14246 \end_layout
14247
14248 \begin_layout Standard
14249 In RevTeX, the 
14250 \family typewriter
14251
14252 \backslash
14253 thanks
14254 \family default
14255  command goes 
14256 \emph on
14257 outside
14258 \emph default
14259  the 
14260 \family typewriter
14261
14262 \backslash
14263 author
14264 \family default
14265  command.
14266  The LyX equivalent is that there is a separate Thanks layout.
14267  Do 
14268 \emph on
14269 not
14270 \emph default
14271  write footnotes in the 
14272 \family sans
14273 Author
14274 \family default
14275  layout, or weird things may happen.
14276  See the RevTeX 4 documentation for more details.
14277 \end_layout
14278
14279 \begin_layout Standard
14280 Also, the 
14281 \family sans
14282 Author
14283 \begin_inset space ~
14284 \end_inset
14285
14286 Email
14287 \family default
14288
14289 \family sans
14290 Author
14291 \begin_inset space ~
14292 \end_inset
14293
14294 URL
14295 \family default
14296 , and 
14297 \family sans
14298 Thanks
14299 \family default
14300  layouts must be placed 
14301 \emph on
14302 in between
14303 \emph default
14304  the 
14305 \family sans
14306 Author
14307 \family default
14308  layout and the corresponding 
14309 \family sans
14310 Address
14311 \family default
14312  (or equivalent 
14313 \family sans
14314 Affiliation
14315 \family default
14316 ) layout.
14317  If you put the 
14318 \family sans
14319 Thanks
14320 \family default
14321  after the 
14322 \family sans
14323 Address
14324 \family default
14325 , the LaTeX won't compile.
14326 \end_layout
14327
14328 \begin_layout Subsection
14329 Drawbacks
14330 \end_layout
14331
14332 \begin_layout Standard
14333 The main problem with this layout is that you can't use the optional arguments
14334  to layouts like Email and Title.
14335  (The problem is not unique to this layout; you can't use optional arguments
14336  to the Section layouts either.) This means that after you export that file
14337  to LaTeX (which you'll need to do eventually to send it in to APS), you'll
14338  need to edit the LaTeX file with a text editor to add the optional arguments
14339  to set, e.
14340 \begin_inset space \thinspace{}
14341 \end_inset
14342
14343 g., the running title for the page headers.
14344  Lacking these layouts makes the 
14345 \family typewriter
14346
14347 \backslash
14348 altaffiliation
14349 \family default
14350  (and the equivalent 
14351 \family typewriter
14352
14353 \backslash
14354 altaddress
14355 \family default
14356 ) useless, so the corresponding layouts don't exist, and will have to be
14357  added by hand.
14358 \begin_inset Foot
14359 status collapsed
14360
14361 \begin_layout Plain Layout
14362
14363 \emph on
14364 Note from JMarc:
14365 \emph default
14366  actually, LyX 1.3.0 supports some forms of optional arguments, but this layout
14367  has not been updated yet to take advantage of it.
14368 \end_layout
14369
14370 \end_inset
14371
14372  
14373 \end_layout
14374
14375 \begin_layout Section
14376 Article (mwart), book (mwbk) and report (mwrep)
14377 \begin_inset OptArg
14378 status collapsed
14379
14380 \begin_layout Plain Layout
14381 The 
14382 \family typewriter
14383 mw
14384 \family default
14385  Classes
14386 \end_layout
14387
14388 \end_inset
14389
14390
14391 \end_layout
14392
14393 \begin_layout Standard
14394 by 
14395 \noun on
14396 Tomasz Luczak
14397 \end_layout
14398
14399 \begin_layout Standard
14400 The LyX document classes 
14401 \emph on
14402 article (mwart)
14403 \emph default
14404
14405 \emph on
14406 report (mwrep)
14407 \emph default
14408  and 
14409 \emph on
14410 book
14411 \emph default
14412  
14413 \emph on
14414 (mwbk)
14415 \emph default
14416  correspond to the LaTeX document classes 
14417 \family typewriter
14418 mwart.cls
14419 \family default
14420
14421 \family typewriter
14422 mwrep.cls
14423 \family default
14424  and 
14425 \family typewriter
14426 mwbk.cls
14427 \family default
14428 , resp.
14429  They are replacements for the standard document classes 
14430 \family typewriter
14431 article.cls
14432 \family default
14433
14434 \family typewriter
14435 report.cls
14436 \family default
14437  and 
14438 \family typewriter
14439 book.cls
14440 \family default
14441 , resp., and fit better to Polish typography conventions in a number of points.
14442  
14443 \end_layout
14444
14445 \begin_layout Standard
14446 Basic differences:
14447 \end_layout
14448
14449 \begin_layout Itemize
14450 Unnumbered titles (with star, eg.
14451  
14452 \family sans
14453 Section*
14454 \family default
14455 ) are added into table of contents,
14456 \end_layout
14457
14458 \begin_layout Itemize
14459 Additional page styles:
14460 \end_layout
14461
14462 \begin_deeper
14463 \begin_layout Description
14464 uheadings header with separated lines,
14465 \end_layout
14466
14467 \begin_layout Description
14468 myheadings custom header, contents headers via commands: 
14469 \family typewriter
14470
14471 \backslash
14472 markright
14473 \family default
14474  and 
14475 \family typewriter
14476
14477 \backslash
14478 markboth
14479 \family default
14480 ,
14481 \end_layout
14482
14483 \begin_layout Description
14484 myuheadings custom header with separated lines,
14485 \end_layout
14486
14487 \begin_layout Description
14488 outer page number is placed on outer side of page
14489 \end_layout
14490
14491 \end_deeper
14492 \begin_layout Itemize
14493 Options 
14494 \end_layout
14495
14496 \begin_deeper
14497 \begin_layout Description
14498 rmheadings serif titles --- default,
14499 \end_layout
14500
14501 \begin_layout Description
14502 sfheadings sansserif titles,
14503 \end_layout
14504
14505 \begin_layout Description
14506 authortitle on title page first placed is author next title --- default,
14507 \end_layout
14508
14509 \begin_layout Description
14510 titleauthor on title page first placed is title next author,
14511 \end_layout
14512
14513 \begin_layout Description
14514 withmarginpar reserve place on page for margins.
14515 \end_layout
14516
14517 \end_deeper
14518 \begin_layout Section
14519 Elsevier Journals
14520 \end_layout
14521
14522 \begin_layout Standard
14523 By 
14524 \noun on
14525 Rod Pinna
14526 \end_layout
14527
14528 \begin_layout Standard
14529 Elsevier Science Publishers B.V.
14530  provides a standard LaTeX document class (
14531 \family typewriter
14532 elsart.cls
14533 \family default
14534 ) for submitting articles to their various journals.
14535  The style file can be downloaded directly from their web site: 
14536 \begin_inset Flex URL
14537 status collapsed
14538
14539 \begin_layout Plain Layout
14540
14541 http://authors.elsevier.com/
14542 \end_layout
14543
14544 \end_inset
14545
14546 .
14547  Instructions are supplied along with the class file, which details the
14548  requirements of the publishers.
14549  LyX includes package that allows for the use of this class, by a layout
14550  and a template file.
14551  Installation of the class file is the same as for any other LaTeX package;
14552  instructions are provided in the Elsevier documentation.
14553 \end_layout
14554
14555 \begin_layout Standard
14556 To make use of 
14557 \family typewriter
14558 elsart.cls
14559 \family default
14560 , a file 
14561 \family typewriter
14562 elsart.layout
14563 \family default
14564  is supplied.
14565  As the Elsevier class file is based mainly on the standard article class,
14566  most of the normal functionality is provided.
14567  The Elsevier class defines a number of mathematical environments, which
14568  are similar to the AMS environments.
14569  These commands are all described in the Elsevier documentation, and are
14570  available in LyX.
14571 \end_layout
14572
14573 \begin_layout Standard
14574 The easiest way to use the Elsevier style is to base documents on the included
14575  template file.
14576  It is best not to use options such as fancy headings or the geometry package,
14577  as elements such as these are defined by Elsevier in their style file.
14578  Ideally, no extra packages except those mentioned in the Elsevier documentation
14579  should be used.
14580  Essentially, Elsevier require as 
14581 \begin_inset Quotes eld
14582 \end_inset
14583
14584 clean
14585 \begin_inset Quotes erd
14586 \end_inset
14587
14588  a LaTeX file as possible, as their intention is to take the supplied file
14589  and replace the class file with one for the particular journal to which
14590  the paper has been submitted.
14591  This also means that not too much time should be spent on the formating
14592  of the document.
14593  When it comes to be published, this will change anyway.
14594  The rest of the usage for this layout is substantially the same as for
14595  the normal article class.
14596  For details of what Elsevier do and don't allow, refer to their documentation.
14597 \end_layout
14598
14599 \begin_layout Section
14600 Memoir
14601 \end_layout
14602
14603 \begin_layout Standard
14604 By 
14605 \noun on
14606 Jürgen Spitzmüller
14607 \end_layout
14608
14609 \begin_layout Subsection
14610 Overview
14611 \end_layout
14612
14613 \begin_layout Standard
14614 Memoir is a very powerful and constantly evolving class.
14615  It has been designed with regard to fictional and non-fictional literature.
14616  Its aim is to let the user have maximum control over the typesetting of
14617  his document.
14618  Memoir is based on the standard book class, but it can also emulate the
14619  article class (see below).
14620 \end_layout
14621
14622 \begin_layout Standard
14623 Peter Wilson, the developer of Memoir, is known as the author of lots of
14624  useful packages in the LaTeX world.
14625  Most of them have been merged with Memoir.
14626  Therefore, it is much easier to layout the table of contents, appendices,
14627  chapter designs and such.
14628  LyX, though, does not support all of these goodies natively.
14629  Some of them might be added to forthcoming releases
14630 \begin_inset Foot
14631 status collapsed
14632
14633 \begin_layout Plain Layout
14634 You are invited to send suggestions to 
14635 \begin_inset Flex URL
14636 status collapsed
14637
14638 \begin_layout Plain Layout
14639
14640 lyx-devel@lists.lyx.org
14641 \end_layout
14642
14643 \end_inset
14644
14645 .
14646 \end_layout
14647
14648 \end_inset
14649
14650 , lots will probably never, due to the limitations of LyX's framework.
14651  Of course you can still use all features with the help of some native LaTeX
14652  commands (ERT
14653 \begin_inset Foot
14654 status collapsed
14655
14656 \begin_layout Plain Layout
14657 Cf.
14658 \begin_inset ERT
14659 status collapsed
14660
14661 \begin_layout Plain Layout
14662
14663
14664 \backslash
14665  
14666 \end_layout
14667
14668 \end_inset
14669
14670 section
14671 \begin_inset space ~
14672 \end_inset
14673
14674
14675 \begin_inset CommandInset ref
14676 LatexCommand ref
14677 reference "sec:Inserting-LaTeX-Code"
14678
14679 \end_inset
14680
14681  for details.
14682 \end_layout
14683
14684 \end_inset
14685
14686 ).
14687  In this section, we can only list those features which are natively supported
14688  by LyX.
14689  For detailed descriptions (and for the rest of features) we are recommending
14690  to have a look at the detailed manual of the Memoir class
14691 \begin_inset Foot
14692 status collapsed
14693
14694 \begin_layout Plain Layout
14695 Cf.
14696 \begin_inset ERT
14697 status collapsed
14698
14699 \begin_layout Plain Layout
14700
14701
14702 \backslash
14703  
14704 \end_layout
14705
14706 \end_inset
14707
14708
14709 \begin_inset Flex URL
14710 status collapsed
14711
14712 \begin_layout Plain Layout
14713
14714 CTAN:/macros/latex/memoir/memman.pdf
14715 \end_layout
14716
14717 \end_inset
14718
14719 .
14720 \end_layout
14721
14722 \end_inset
14723
14724 , which is not only a user guide for the class, but also both a comprehensive
14725  description on good typesetting and a superb example for good typesetting
14726  itself.
14727 \end_layout
14728
14729 \begin_layout Subsection
14730 Basic features and restrictions
14731 \end_layout
14732
14733 \begin_layout Standard
14734 Memoir supports basically all features of the standard book classes.
14735  There are, however, some differences, as follows:
14736 \end_layout
14737
14738 \begin_layout Description
14739 Font
14740 \begin_inset space ~
14741 \end_inset
14742
14743 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
14744 \end_layout
14745
14746 \begin_layout Description
14747 Page
14748 \begin_inset space ~
14749 \end_inset
14750
14751 style: The fancy page style is not supported, due to a command clash between
14752  Memoir and the fancyhdr package (they are both defining a command with
14753  the same name, which confuses LaTeX).
14754  Instead, Memoir comes with a bunch of own page styles (see 
14755 \family sans
14756 Layout\SpecialChar \menuseparator
14757 Document\SpecialChar \menuseparator
14758 Page
14759 \begin_inset space ~
14760 \end_inset
14761
14762 Style
14763 \family default
14764 ).
14765  If you want to use these for the chapter pages, you have to use the command
14766  
14767 \family typewriter
14768
14769 \backslash
14770 chapterstyle
14771 \family default
14772  in the main text or in preamble (e.
14773 \begin_inset space \thinspace{}
14774 \end_inset
14775
14776 g.
14777 \begin_inset space ~
14778 \end_inset
14779
14780
14781 \family typewriter
14782
14783 \backslash
14784 chapterstyle{companion}
14785 \family default
14786 ).
14787 \end_layout
14788
14789 \begin_layout Description
14790 Sectioning: Sectionings (chapter, section, subsection etc.) are coming with
14791  an optional argument in the standard classes.
14792  With this, you can specify an alternative version of the title for the
14793  table of contents and the headers (for instance, if the title is too long).
14794  In LyX, you can do this via 
14795 \family sans
14796 Insert\SpecialChar \menuseparator
14797 Short
14798 \begin_inset space ~
14799 \end_inset
14800
14801 Title
14802 \family default
14803  at the beginning of a chapter/section.
14804  Memoir features a second optional argument and thus separates the table
14805  of contents from the header.
14806  You can define three variants of a title with this: one for the main text,
14807  one for the table of contents, and one for the headers.
14808  Simply insert two optional arguments if you need this feature, the first
14809  one containing the short title for the Table of Contents, the second one
14810  containing an alternative short title for the headers.
14811 \end_layout
14812
14813 \begin_layout Description
14814 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
14815  of contents, the list of figures and the list of table start a new page
14816  automatically.
14817  Memoir does not follow this route.
14818  You have to insert a page break yourself, if you want to have one.
14819 \end_layout
14820
14821 \begin_layout Description
14822 Titlepage: For some unknown reason, Memoir uses pagination on the title
14823  page (in the standard classes, title pages are 
14824 \begin_inset Quotes eld
14825 \end_inset
14826
14827 empty
14828 \begin_inset Quotes erd
14829 \end_inset
14830
14831 , i
14832 \begin_inset space \thinspace{}
14833 \end_inset
14834
14835 e.
14836 \begin_inset space ~
14837 \end_inset
14838
14839 without pagina).
14840  If you want an empty title page, type 
14841 \family typewriter
14842
14843 \backslash
14844 aliaspagestyle{title}{empty}
14845 \family default
14846  in the preamble.
14847 \end_layout
14848
14849 \begin_layout Description
14850 Article: With the class option 
14851 \emph on
14852 article
14853 \emph default
14854  (to be inserted in 
14855 \family sans
14856 Layout\SpecialChar \menuseparator
14857 Document\SpecialChar \menuseparator
14858 Extra
14859 \begin_inset space ~
14860 \end_inset
14861
14862 Options
14863 \family default
14864 ), you can emulate article style.
14865  That is, counters (footnotes, figures, tables etc.) will not be reset on
14866  new chapters, chapters don't start a new page (but are---in contrary to
14867  
14868 \begin_inset Quotes eld
14869 \end_inset
14870
14871 real
14872 \begin_inset Quotes erd
14873 \end_inset
14874
14875  article classes---still allowed), parts, though, use their own page, as
14876  in book.
14877 \end_layout
14878
14879 \begin_layout Description
14880 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
14881  font commands, which have been used in the old LaTeX version 2.09 (e.
14882 \begin_inset space \thinspace{}
14883 \end_inset
14884
14885 g.
14886 \begin_inset space ~
14887 \end_inset
14888
14889
14890 \family typewriter
14891
14892 \backslash
14893 rm
14894 \family default
14895
14896 \family typewriter
14897
14898 \backslash
14899 it
14900 \family default
14901 ).
14902  It produces an error and stops LaTeX whenever such a command appears.
14903  The class option 
14904 \emph on
14905 oldfontcommands
14906 \emph default
14907  reallows the commands and spits out warnings instead (which does at least
14908  not stop LaTeX).
14909  Since a lot of packages and particularly BibTeX style files are still using
14910  those commands, we have decided to use this option by default.
14911 \end_layout
14912
14913 \begin_layout Subsection
14914 Extra features
14915 \end_layout
14916
14917 \begin_layout Standard
14918 We will only describe the features supported by LyX (which is not much currently
14919 ).
14920  Please consult the Memoir manual
14921 \begin_inset Foot
14922 status collapsed
14923
14924 \begin_layout Plain Layout
14925 Cf.
14926 \begin_inset ERT
14927 status collapsed
14928
14929 \begin_layout Plain Layout
14930
14931
14932 \backslash
14933  
14934 \end_layout
14935
14936 \end_inset
14937
14938
14939 \begin_inset Flex URL
14940 status collapsed
14941
14942 \begin_layout Plain Layout
14943
14944 CTAN:/macros/latex/memoir/memman.pdf
14945 \end_layout
14946
14947 \end_inset
14948
14949 .
14950 \end_layout
14951
14952 \end_inset
14953
14954  for details.
14955 \end_layout
14956
14957 \begin_layout Description
14958 Abstract: You may wonder why an abstract is an extra feature.
14959  Well, it is in book class.
14960  Usually books don't have abstracts.
14961  Memoir, however, has.
14962  You can use it wherever and how often you like.
14963 \end_layout
14964
14965 \begin_layout Description
14966 Chapterprecis: You may know this from belletristic: The contents of a chapter
14967  is shortly described below the title and also in the table of contents
14968  (e.
14969 \begin_inset space \thinspace{}
14970 \end_inset
14971
14972 g.
14973 \begin_inset space ~
14974 \end_inset
14975
14976
14977 \emph on
14978 Our hero arrives in Troia; he loses some friends; he finds others
14979 \emph default
14980 ).
14981  Chapterprecis does exactly this.
14982  It is therefore only sensible below a chapter.
14983 \end_layout
14984
14985 \begin_layout Description
14986 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
14987  The epigraph environment provides an elegant way of typesetting such a
14988  motto.
14989  The motto itself (text) and its author (source) are divided by a short
14990  line.
14991  Unfortunately, we have to fool LyX a bit here again, since the environment
14992  needs two arguments (text and source).
14993  In this case, we have to use curly brackets (in TeX mode) between the two
14994  arguments: 
14995 \emph on
14996 <smart slogan>
14997 \emph default
14998  
14999 \family typewriter
15000 }{
15001 \family default
15002  
15003 \emph on
15004 <author of the slogan>.
15005 \end_layout
15006
15007 \begin_layout Description
15008 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15009  complex figurative poems).
15010  LyX can only support a few of them.
15011  One is poemtitle, which is a centered title for poems, which will also
15012  be added to the table of contents (verse is the standard environment for
15013  poems.
15014  Memoir has some enhanced versions of verse, but you need to use ERT, because
15015  they have to be nested inside regular verse environments, which is not
15016  possible with LyX).
15017 \end_layout
15018
15019 \begin_layout Description
15020 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15021 \end_layout
15022
15023 \begin_layout Chapter
15024 LyX Features needing Extra Software
15025 \end_layout
15026
15027 \begin_layout Section
15028 Checking TeX
15029 \end_layout
15030
15031 \begin_layout Standard
15032 by 
15033 \noun on
15034 Asger Alstrup
15035 \end_layout
15036
15037 \begin_layout Subsection
15038 Introduction
15039 \end_layout
15040
15041 \begin_layout Standard
15042 When you to have the 
15043 \family typewriter
15044 chktex
15045 \family default
15046  program installed, you'll find in the 
15047 \family sans
15048 Tools
15049 \family default
15050  menu the entry 
15051 \family sans
15052 Check
15053 \begin_inset space ~
15054 \end_inset
15055
15056 TeX
15057 \family default
15058  command.
15059  You can get 
15060 \family typewriter
15061 chktex
15062 \family default
15063  it from CTAN, 
15064 \begin_inset CommandInset href
15065 LatexCommand href
15066 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
15067
15068 \end_inset
15069
15070 .
15071 \end_layout
15072
15073 \begin_layout Standard
15074 The 
15075 \family sans
15076 ChkTeX
15077 \family default
15078  package is a program that was written by 
15079 \noun on
15080 Jens T.
15081  Berger Thielemann
15082 \noun default
15083  in frustration because some constructs in LaTeX are sometimes non-intuitive,
15084  and easy to forget.
15085  The program runs over your LaTeX file and checks the integrity of the file,
15086  and flags some common errors.
15087  In other technical words, it is 
15088 \family typewriter
15089 Lint
15090 \family default
15091  for LaTeX.
15092 \end_layout
15093
15094 \begin_layout Standard
15095 Well, what is a syntax checker doing in LyX which is supposed to produce
15096  correct LaTeX anyways? The answer is simple: Just as 
15097 \family typewriter
15098 Lint
15099 \family default
15100  not only checks the 
15101 \emph on
15102 syntax
15103 \emph default
15104  of C programs, but also does 
15105 \emph on
15106 semantic
15107 \emph default
15108  checks for type-errors, 
15109 \family sans
15110 ChkTeX
15111 \family default
15112  catches some common 
15113 \emph on
15114 typographic
15115 \emph default
15116  errors, in addition to the syntactical ones.
15117  Specifically, 
15118 \family sans
15119 ChkTeX
15120 \family default
15121  is capable of detecting several common errors, such as
15122 \end_layout
15123
15124 \begin_layout Itemize
15125 Ellipsis detection:
15126 \begin_inset Newline newline
15127 \end_inset
15128
15129 Use \SpecialChar \ldots{}
15130  instead of ...
15131 \end_layout
15132
15133 \begin_layout Itemize
15134 No space in front of/after parenthesis:
15135 \begin_inset Newline newline
15136 \end_inset
15137
15138 ( wrong spacing )
15139 \end_layout
15140
15141 \begin_layout Itemize
15142 Enforcement of normal space after common abbreviations:
15143 \begin_inset Newline newline
15144 \end_inset
15145
15146 e.
15147  g.
15148  is too wide spacing.
15149 \end_layout
15150
15151 \begin_layout Itemize
15152 Enforcement of end-of-sentence space when the last sentence ends with a
15153  capital letter:
15154 \begin_inset Newline newline
15155 \end_inset
15156
15157 This is a TEST.
15158  And this is wrong spacing.
15159 \end_layout
15160
15161 \begin_layout Itemize
15162 Space in front of labels and similar commands:
15163 \begin_inset Newline newline
15164 \end_inset
15165
15166 The label should stick right up to the text to avoid falling to a wrong
15167  page.
15168  
15169 \begin_inset CommandInset label
15170 LatexCommand label
15171 name "sec:chktex"
15172
15173 \end_inset
15174
15175  
15176 \begin_inset Foot
15177 status collapsed
15178
15179 \begin_layout Plain Layout
15180 This footnote is in danger of falling off to a wrong page
15181 \end_layout
15182
15183 \end_inset
15184
15185  The label is separated too much.
15186 \end_layout
15187
15188 \begin_layout Itemize
15189 Space in front of references, instead of hard spaces:
15190 \begin_inset Newline newline
15191 \end_inset
15192
15193 In you are in bad luck, the text will break right between the referenced
15194  text and reference number, and that's a pity.
15195  See section 
15196 \begin_inset CommandInset ref
15197 LatexCommand ref
15198 reference "sec:chktex"
15199
15200 \end_inset
15201
15202 .
15203 \end_layout
15204
15205 \begin_layout Itemize
15206 Use of 
15207 \begin_inset Quotes eld
15208 \end_inset
15209
15210 x
15211 \begin_inset Quotes erd
15212 \end_inset
15213
15214  instead of 
15215 \begin_inset Formula $\times$
15216 \end_inset
15217
15218  between numbers:
15219 \begin_inset Newline newline
15220 \end_inset
15221
15222 2x2 looks cheap compared to 
15223 \begin_inset Formula $2\times2$
15224 \end_inset
15225
15226 .
15227 \end_layout
15228
15229 \begin_layout Standard
15230 and more \SpecialChar \ldots{}
15231  It is an invaluable tool when you are 
15232 \begin_inset Quotes eld
15233 \end_inset
15234
15235 finishing up
15236 \begin_inset Quotes erd
15237 \end_inset
15238
15239  your document before printing, and you should run it right after the obligatory
15240  spelling check, and before you go fine tuning the typesetting.
15241 \end_layout
15242
15243 \begin_layout Subsection
15244 How to use it
15245 \end_layout
15246
15247 \begin_layout Standard
15248 If you have the program installed, usage is as simple as choosing 
15249 \family sans
15250 \bar under
15251 T
15252 \bar default
15253 ools\SpecialChar \menuseparator
15254
15255 \bar under
15256 C
15257 \bar default
15258 heck
15259 \begin_inset space ~
15260 \end_inset
15261
15262 TeX
15263 \family default
15264 .
15265  This will make LyX generate a LaTeX file of your document, start 
15266 \family sans
15267 ChkTeX
15268 \family default
15269  to check it, and then make LyX insert 
15270 \begin_inset Quotes eld
15271 \end_inset
15272
15273 error boxes
15274 \begin_inset Quotes erd
15275 \end_inset
15276
15277  with the warnings from 
15278 \family sans
15279 ChkTeX
15280 \family default
15281 , if there were any.
15282  The warnings will be placed close to the point of the mistake, and you
15283  can quickly find them by using the 
15284 \family sans
15285 \bar under
15286 N
15287 \bar default
15288 avigate\SpecialChar \menuseparator
15289
15290 \bar under
15291 E
15292 \bar default
15293 rror
15294 \family default
15295  menu item, or the shortcut key 
15296 \family sans
15297 C-g
15298 \family default
15299  from the default 
15300 \family typewriter
15301 cua
15302 \family default
15303  bind file.
15304  Open the error boxes by clicking on them with the mouse, or use the shortcut
15305  key 
15306 \family sans
15307 C-i
15308 \family default
15309  from 
15310 \family typewriter
15311 cua
15312 \family default
15313  bindings, or the corresponding 
15314 \family sans
15315 C-o
15316 \family default
15317  for the alternate 
15318 \family typewriter
15319 emacs
15320 \family default
15321  bind file.
15322  Read the warning and correct the mistake, if it is a mistake.
15323  If you have trouble understanding what the warning is about, you can safely
15324  ignore it.
15325  Remember that there is a hidden layer between the document on screen and
15326  the technical details in invoking 
15327 \family sans
15328 ChkTeX
15329 \family default
15330 , and this gap can make some warnings seem arcane or just right down plain
15331  silly.
15332 \end_layout
15333
15334 \begin_layout Standard
15335 This document is an excellent testing bed for the feature, and it should
15336  provide quite a few warnings for you to fiddle with.
15337  Since computers are only so smart, expect most of the warnings to be false
15338  alarms, though.
15339 \end_layout
15340
15341 \begin_layout Subsection
15342 How to fine tune it
15343 \end_layout
15344
15345 \begin_layout Standard
15346 Sometimes, you'll find that 
15347 \family sans
15348 ChkTeX
15349 \family default
15350  makes more noise than suits your mood.
15351  Then you can choose not to use it, wait until your mood changes, or try
15352  to customize 
15353 \family sans
15354 ChkTeX
15355 \family default
15356  to get better along with you.
15357  Another choice in the most desperate situations is to use 
15358 \family sans
15359 \bar under
15360 V
15361 \bar default
15362 iew\SpecialChar \menuseparator
15363
15364 \bar under
15365 R
15366 \bar default
15367 emove
15368 \begin_inset space ~
15369 \end_inset
15370
15371 All
15372 \begin_inset space ~
15373 \end_inset
15374
15375 Error
15376 \begin_inset space ~
15377 \end_inset
15378
15379 Boxes
15380 \family default
15381 , which will get rid of all warnings instantly.
15382 \end_layout
15383
15384 \begin_layout Standard
15385 Although 
15386 \family sans
15387 ChkTeX
15388 \family default
15389  
15390 \emph on
15391 is
15392 \emph default
15393  very configurable and extensible, you shouldn't expect to solve all problems
15394  with 
15395 \family sans
15396 ChkTeX
15397 \family default
15398  in LyX this way.
15399  Since LyX has to generate a somewhat special LaTeX file to be able to match
15400  the line numbers from the 
15401 \family sans
15402 ChkTeX
15403 \family default
15404  output
15405 \begin_inset Foot
15406 status collapsed
15407
15408 \begin_layout Plain Layout
15409 You can inspect the specific output from 
15410 \family sans
15411 chktex
15412 \family default
15413  by using 
15414 \family sans
15415 Edit\SpecialChar \menuseparator
15416 View
15417 \begin_inset space ~
15418 \end_inset
15419
15420 LaTeX
15421 \begin_inset space ~
15422 \end_inset
15423
15424 Log
15425 \family default
15426  right after a 
15427 \family sans
15428 chktex
15429 \family default
15430  run.
15431 \end_layout
15432
15433 \end_inset
15434
15435  to the internal document structure, some of the warnings will not seen
15436  to appear correctly.
15437  There are two things you can do about this:
15438 \end_layout
15439
15440 \begin_layout Itemize
15441 Fine tune the 
15442 \family sans
15443 ChkTeX
15444 \family default
15445  invocation command line in 
15446 \family sans
15447 Preferences
15448 \family default
15449  (tabs 
15450 \family sans
15451 Outputs
15452 \family default
15453
15454 \family sans
15455 Misc
15456 \family default
15457 ), or the global 
15458 \family sans
15459 ChkTeX
15460 \family default
15461  installation configuration file (usually with the file 
15462 \family typewriter
15463 chktexrc
15464 \family default
15465 ).
15466  See below to learn what warnings can be enabled and disabled on the command
15467  line.
15468  
15469 \end_layout
15470
15471 \begin_layout Itemize
15472 Export your document as a raw LaTeX file using 
15473 \family sans
15474 \bar under
15475 F
15476 \bar default
15477 ile\SpecialChar \menuseparator
15478
15479 \bar under
15480 E
15481 \bar default
15482 xport\SpecialChar \menuseparator
15483
15484 \bar under
15485 L
15486 \bar default
15487 aTeX
15488 \family default
15489  and run 
15490 \family typewriter
15491 chktex
15492 \family default
15493  manually on that.
15494  Invoked in this way, it can be a hassle to find the corresponding place
15495  in the document inside LyX, but with a little patience, you should be able
15496  to do it.
15497 \end_layout
15498
15499 \begin_layout Standard
15500 Here follows the warning messages that can be enabled and disabled in 
15501 \family sans
15502 Preferences
15503 \family default
15504 .
15505  Use 
15506 \family typewriter
15507 -n#
15508 \family default
15509  to disable a warning, and 
15510 \family typewriter
15511 -w#
15512 \family default
15513  to enable a warning.
15514  The emphasized entries are disabled by default, because the default is
15515  "
15516 \family typewriter
15517 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
15518 \family default
15519 ".
15520 \end_layout
15521
15522 \begin_layout Standard
15523 Notice that you should only use the options that enable and disable warnings,
15524  because LyX relies on some of the other command line parameters to be set
15525  in a specific way to have a chance to communicate with 
15526 \family typewriter
15527 chktex
15528 \family default
15529 .
15530 \end_layout
15531
15532 \begin_layout Enumerate
15533
15534 \size small
15535 \emph on
15536 Command terminated with space.
15537 \end_layout
15538
15539 \begin_layout Enumerate
15540
15541 \size small
15542 Non-breaking space (
15543 \begin_inset Quotes eld
15544 \end_inset
15545
15546
15547 \family typewriter
15548 ~
15549 \family default
15550
15551 \begin_inset Quotes erd
15552 \end_inset
15553
15554 ) should have been used.
15555 \end_layout
15556
15557 \begin_layout Enumerate
15558
15559 \size small
15560 \emph on
15561 You should enclose the previous parenthesis with 
15562 \begin_inset Quotes eld
15563 \end_inset
15564
15565
15566 \family typewriter
15567 {}
15568 \family default
15569
15570 \begin_inset Quotes erd
15571 \end_inset
15572
15573 .
15574 \end_layout
15575
15576 \begin_layout Enumerate
15577
15578 \size small
15579 Italic correction (
15580 \begin_inset Quotes eld
15581 \end_inset
15582
15583
15584 \family typewriter
15585
15586 \backslash
15587 /
15588 \family default
15589
15590 \begin_inset Quotes erd
15591 \end_inset
15592
15593 ) found in non-italic buffer.
15594 \end_layout
15595
15596 \begin_layout Enumerate
15597
15598 \size small
15599 Italic correction (
15600 \begin_inset Quotes eld
15601 \end_inset
15602
15603
15604 \family typewriter
15605
15606 \backslash
15607 /
15608 \family default
15609
15610 \begin_inset Quotes erd
15611 \end_inset
15612
15613 ) found more than once.
15614 \end_layout
15615
15616 \begin_layout Enumerate
15617
15618 \size small
15619 \emph on
15620 No italic correction (
15621 \begin_inset Quotes eld
15622 \end_inset
15623
15624
15625 \family typewriter
15626
15627 \backslash
15628 /
15629 \family default
15630
15631 \begin_inset Quotes erd
15632 \end_inset
15633
15634 ) found.
15635 \end_layout
15636
15637 \begin_layout Enumerate
15638
15639 \size small
15640 Accent command 
15641 \begin_inset Quotes eld
15642 \end_inset
15643
15644
15645 \family typewriter
15646 cmd
15647 \family default
15648
15649 \begin_inset Quotes erd
15650 \end_inset
15651
15652  needs use of 
15653 \begin_inset Quotes eld
15654 \end_inset
15655
15656
15657 \family typewriter
15658 cmd
15659 \family default
15660
15661 \begin_inset Quotes erd
15662 \end_inset
15663
15664 .
15665 \end_layout
15666
15667 \begin_layout Enumerate
15668
15669 \size small
15670 Wrong length of dash may have been used.
15671 \end_layout
15672
15673 \begin_layout Enumerate
15674
15675 \size small
15676 \emph on
15677 \begin_inset Quotes eld
15678 \end_inset
15679
15680
15681 \family typewriter
15682 %s
15683 \family default
15684
15685 \begin_inset Quotes erd
15686 \end_inset
15687
15688  expected, found 
15689 \begin_inset Quotes eld
15690 \end_inset
15691
15692
15693 \family typewriter
15694 %s
15695 \family default
15696
15697 \begin_inset Quotes erd
15698 \end_inset
15699
15700 .
15701 \end_layout
15702
15703 \begin_layout Enumerate
15704
15705 \size small
15706 Solo 
15707 \begin_inset Quotes eld
15708 \end_inset
15709
15710
15711 \family typewriter
15712 %s
15713 \family default
15714
15715 \begin_inset Quotes erd
15716 \end_inset
15717
15718  found.
15719 \end_layout
15720
15721 \begin_layout Enumerate
15722
15723 \size small
15724 You should use 
15725 \begin_inset Quotes eld
15726 \end_inset
15727
15728
15729 \family typewriter
15730 %s
15731 \family default
15732
15733 \begin_inset Quotes erd
15734 \end_inset
15735
15736  to achieve an ellipsis.
15737 \end_layout
15738
15739 \begin_layout Enumerate
15740
15741 \size small
15742 Inter-word spacing (
15743 \begin_inset Quotes eld
15744 \end_inset
15745
15746
15747 \family typewriter
15748
15749 \backslash
15750
15751 \family default
15752  
15753 \begin_inset Quotes eld
15754 \end_inset
15755
15756 ) should perhaps be used.
15757 \end_layout
15758
15759 \begin_layout Enumerate
15760
15761 \size small
15762 Inter-sentence spacing (
15763 \begin_inset Quotes eld
15764 \end_inset
15765
15766
15767 \family typewriter
15768
15769 \backslash
15770 @
15771 \family default
15772
15773 \begin_inset Quotes erd
15774 \end_inset
15775
15776 ) should perhaps be used.
15777 \end_layout
15778
15779 \begin_layout Enumerate
15780
15781 \size small
15782 Could not find argument for command.
15783 \end_layout
15784
15785 \begin_layout Enumerate
15786
15787 \size small
15788 No match found for 
15789 \begin_inset Quotes eld
15790 \end_inset
15791
15792
15793 \family typewriter
15794 %s
15795 \family default
15796
15797 \begin_inset Quotes erd
15798 \end_inset
15799
15800 .
15801 \end_layout
15802
15803 \begin_layout Enumerate
15804
15805 \size small
15806 Math mode still on at end of LaTeX file.
15807 \end_layout
15808
15809 \begin_layout Enumerate
15810
15811 \size small
15812 Number of 
15813 \begin_inset Quotes eld
15814 \end_inset
15815
15816
15817 \family typewriter
15818 char
15819 \family default
15820
15821 \begin_inset Quotes erd
15822 \end_inset
15823
15824  doesn't match the number of 
15825 \begin_inset Quotes eld
15826 \end_inset
15827
15828
15829 \family typewriter
15830 char
15831 \family default
15832
15833 \begin_inset Quotes erd
15834 \end_inset
15835
15836 .
15837 \end_layout
15838
15839 \begin_layout Enumerate
15840
15841 \size small
15842 You should use either 
15843 \family typewriter
15844
15845 \begin_inset Quotes eld
15846 \end_inset
15847
15848
15849 \family default
15850  or 
15851 \family typewriter
15852
15853 \begin_inset Quotes erd
15854 \end_inset
15855
15856
15857 \family default
15858  as an alternative to 
15859 \begin_inset Quotes eld
15860 \end_inset
15861
15862
15863 \family typewriter
15864 "
15865 \family default
15866
15867 \begin_inset Quotes erd
15868 \end_inset
15869
15870 .
15871 \end_layout
15872
15873 \begin_layout Enumerate
15874
15875 \size small
15876 You should use "
15877 \family typewriter
15878 '
15879 \family default
15880 " (ASCII 39) instead of "
15881 \family typewriter
15882 ´
15883 \family default
15884 " (ASCII 180).
15885 \end_layout
15886
15887 \begin_layout Enumerate
15888
15889 \size small
15890 User-specified pattern found.
15891 \end_layout
15892
15893 \begin_layout Enumerate
15894
15895 \size small
15896 This command might not be intended.
15897 \end_layout
15898
15899 \begin_layout Enumerate
15900
15901 \size small
15902 \emph on
15903 Comment displayed.
15904 \end_layout
15905
15906 \begin_layout Enumerate
15907
15908 \size small
15909 Either 
15910 \family typewriter
15911 ''
15912 \backslash
15913 ,'
15914 \family default
15915  or 
15916 \family typewriter
15917 '
15918 \backslash
15919 ,''
15920 \family default
15921  will look better.
15922 \end_layout
15923
15924 \begin_layout Enumerate
15925
15926 \size small
15927 Delete this space to maintain correct page references.
15928 \end_layout
15929
15930 \begin_layout Enumerate
15931
15932 \size small
15933 \emph on
15934 You might wish to put this between a pair of 
15935 \begin_inset Quotes eld
15936 \end_inset
15937
15938
15939 \family typewriter
15940 {}
15941 \family default
15942
15943 \begin_inset Quotes erd
15944 \end_inset
15945
15946 .
15947 \end_layout
15948
15949 \begin_layout Enumerate
15950
15951 \size small
15952 You ought to remove spaces in front of punctuation.
15953 \end_layout
15954
15955 \begin_layout Enumerate
15956
15957 \size small
15958 Could not execute LaTeX command.
15959 \end_layout
15960
15961 \begin_layout Enumerate
15962
15963 \size small
15964 Don't use 
15965 \family typewriter
15966
15967 \backslash
15968 /
15969 \family default
15970  in front of small punctuation.
15971 \end_layout
15972
15973 \begin_layout Enumerate
15974
15975 \family typewriter
15976 \size small
15977 $
15978 \backslash
15979 times$
15980 \family default
15981  may look prettier here.
15982 \end_layout
15983
15984 \begin_layout Enumerate
15985
15986 \size small
15987 \emph on
15988 Multiple spaces detected in output.
15989 \end_layout
15990
15991 \begin_layout Enumerate
15992
15993 \size small
15994 This text may be ignored.
15995 \end_layout
15996
15997 \begin_layout Enumerate
15998
15999 \size small
16000 Use 
16001 \family typewriter
16002
16003 \begin_inset Quotes eld
16004 \end_inset
16005
16006
16007 \family default
16008  to begin quotation, not 
16009 \family typewriter
16010 '
16011 \family default
16012 .
16013 \end_layout
16014
16015 \begin_layout Enumerate
16016
16017 \size small
16018 Use 
16019 \family typewriter
16020 '
16021 \family default
16022  to end quotation, not 
16023 \family typewriter
16024
16025 \begin_inset Quotes eld
16026 \end_inset
16027
16028
16029 \family default
16030 .
16031 \end_layout
16032
16033 \begin_layout Enumerate
16034
16035 \size small
16036 Don't mix quotes.
16037 \end_layout
16038
16039 \begin_layout Enumerate
16040
16041 \size small
16042 You should perhaps use 
16043 \begin_inset Quotes eld
16044 \end_inset
16045
16046
16047 \family typewriter
16048 cmd
16049 \family default
16050
16051 \begin_inset Quotes erd
16052 \end_inset
16053
16054  instead.
16055 \end_layout
16056
16057 \begin_layout Enumerate
16058
16059 \size small
16060 You should put a space in front of/after parenthesis.
16061 \end_layout
16062
16063 \begin_layout Enumerate
16064
16065 \size small
16066 You should avoid spaces in front of/after parenthesis.
16067 \end_layout
16068
16069 \begin_layout Enumerate
16070
16071 \size small
16072 \emph on
16073 You should not use punctuation in front of/after quotes.
16074 \end_layout
16075
16076 \begin_layout Enumerate
16077
16078 \size small
16079 Double space found.
16080 \end_layout
16081
16082 \begin_layout Enumerate
16083
16084 \size small
16085 You should put punctuation outside inner/inside display math mode.
16086 \end_layout
16087
16088 \begin_layout Enumerate
16089
16090 \size small
16091 You ought to not use primitive TeX in LaTeX code.
16092 \end_layout
16093
16094 \begin_layout Enumerate
16095
16096 \size small
16097 You should remove spaces in front of 
16098 \begin_inset Quotes eld
16099 \end_inset
16100
16101
16102 \family typewriter
16103 %s
16104 \family default
16105
16106 \begin_inset Quotes erd
16107 \end_inset
16108
16109
16110 \end_layout
16111
16112 \begin_layout Enumerate
16113
16114 \size small
16115 \begin_inset Quotes eld
16116 \end_inset
16117
16118
16119 \family typewriter
16120 %s
16121 \family default
16122
16123 \begin_inset Quotes erd
16124 \end_inset
16125
16126  is normally not followed by 
16127 \begin_inset Quotes eld
16128 \end_inset
16129
16130
16131 \family typewriter
16132 %c
16133 \family default
16134
16135 \begin_inset Quotes erd
16136 \end_inset
16137
16138 .
16139 \end_layout
16140
16141 \begin_layout Standard
16142 In later versions of LyX, we hope to provide a more complete interface to
16143  this tool (and it's smaller cousin 
16144 \family typewriter
16145 lacheck
16146 \family default
16147 ) to exploit the full power of it.
16148  But it's not exactly useless as it is now: go try it on one of your existing
16149  documents of a certain length and be surprised.
16150 \end_layout
16151
16152 \begin_layout Section
16153 Version Control in LyX
16154 \end_layout
16155
16156 \begin_layout Standard
16157 by
16158 \noun on
16159  Lars Gullik Bjønnes, 
16160 \noun default
16161 updated by 
16162 \noun on
16163 Pavel Sanda
16164 \end_layout
16165
16166 \begin_layout Subsection
16167 Introduction
16168 \end_layout
16169
16170 \begin_layout Standard
16171 A friend of mine wanted to try LyX for a group project.
16172  When he didn't find support for version control or file locking, he dropped
16173  it.
16174  This angered me a bit, so I thought that I should at least make support
16175  for RCS (with the possibility of CVS and/or SCCS as a future improvement.)
16176  This has now been done.
16177  LyX now supports some of the most basic RCS commands.
16178  If you need to something a bit more sophisticated you will have to do that
16179  manually in an xterm.
16180 \end_layout
16181
16182 \begin_layout Standard
16183 Before you begin to use the version control features in LyX, you should
16184  read 
16185 \begin_inset Quotes eld
16186 \end_inset
16187
16188 rcsintro
16189 \begin_inset Quotes erd
16190 \end_inset
16191
16192  (a man file, read it with 
16193 \family typewriter
16194 man rcsintro
16195 \family default
16196 ).
16197  This file describes all the basic features of RCS.
16198  You should especially notice the comment about a RCS directory, and the
16199  notion of a master RCS file (the file ending in 
16200 \family typewriter
16201 ,v
16202 \family default
16203 ).
16204 \end_layout
16205
16206 \begin_layout Standard
16207 Later basic CVS/SVN support was added.
16208  You should be familiar with CVS/SVN usage before start using it under LyX.
16209  Most of the log messages are not currently displayed after operations -
16210  you can check them in terminal window if unsure.
16211 \end_layout
16212
16213 \begin_layout Standard
16214 The implementation in LyX assumes a recent version of the GNU RCS or CVS/SVN
16215  package---no guarantees are made for older versions.
16216 \end_layout
16217
16218 \begin_layout Subsection
16219 RCS commands in LyX
16220 \end_layout
16221
16222 \begin_layout Standard
16223 The following sections describe the RCS commands supported by LyX.
16224  You can find them in the 
16225 \family sans
16226 \bar under
16227 F
16228 \bar default
16229 ile\SpecialChar \menuseparator
16230
16231 \bar under
16232 V
16233 \bar default
16234 ersion
16235 \begin_inset space ~
16236 \end_inset
16237
16238 Control
16239 \family default
16240  submenu.
16241 \end_layout
16242
16243 \begin_layout Subsubsection
16244
16245 \family sans
16246 Register
16247 \end_layout
16248
16249 \begin_layout Standard
16250 If your document is not under revision control, this is the only item shown
16251  in the menu.
16252  And if it is under revision control, the 
16253 \family sans
16254 \bar under
16255 R
16256 \bar default
16257 egister
16258 \family default
16259  item is not visible.
16260  
16261 \end_layout
16262
16263 \begin_layout Standard
16264 This command registers your document with RCS (unless you are under the
16265  directory managed by CVS)\SpecialChar \@.
16266  You are asked interactively to supply an initial
16267  description of the document.
16268  The document is now set in Read-Only mode and you have to 
16269 \family sans
16270 Check
16271 \begin_inset space ~
16272 \end_inset
16273
16274 Out
16275 \begin_inset space ~
16276 \end_inset
16277
16278 For
16279 \begin_inset space ~
16280 \end_inset
16281
16282 Edit
16283 \family default
16284 , before making any changes to it.
16285  A document under revision control has a 
16286 \begin_inset Quotes eld
16287 \end_inset
16288
16289 [RCS:<version> <locker>]
16290 \begin_inset Quotes erd
16291 \end_inset
16292
16293  item tagged to the filename in the minibuffer.
16294 \end_layout
16295
16296 \begin_layout Standard
16297 RCS command that is run: 
16298 \family typewriter
16299 ci -q -u -i -t-"<initial description>" <file-name>
16300 \end_layout
16301
16302 \begin_layout Standard
16303 Read 
16304 \family typewriter
16305 man ci
16306 \family default
16307  to understand the switches.
16308  
16309 \end_layout
16310
16311 \begin_layout Subsubsection
16312
16313 \family sans
16314 Check In Changes
16315 \end_layout
16316
16317 \begin_layout Standard
16318 When you are finished editing a file, you check in your changes.
16319  When you do this, you are asked for a description of the changes.
16320  This is stored in the history log.
16321  The version number is bumped, your changes are applied to the master RCS
16322  file, the document is unlocked and set to Read-Only mode.
16323  
16324 \end_layout
16325
16326 \begin_layout Standard
16327 RCS command: 
16328 \family typewriter
16329 ci -q -u -m"<description>" <file-name>
16330 \end_layout
16331
16332 \begin_layout Subsubsection
16333
16334 \family sans
16335 Check Out For Edit
16336 \end_layout
16337
16338 \begin_layout Standard
16339 By doing this you lock the document so that only you can edit it.
16340  This will also make the document Read-Write only for you.
16341  You will usually continue editing for a while and when you are finished
16342  you check in your changes.
16343  The status line is changed to reflect that you have locked the file.
16344  
16345 \end_layout
16346
16347 \begin_layout Standard
16348 RCS command: 
16349 \family typewriter
16350 co -q -l <file-name>
16351 \end_layout
16352
16353 \begin_layout Subsubsection
16354
16355 \family sans
16356 Revert To Repository Version
16357 \end_layout
16358
16359 \begin_layout Standard
16360 This will discard all changes made to the document since the last check
16361  in.
16362  You get a warning before changes are discarded.
16363 \end_layout
16364
16365 \begin_layout Standard
16366 RCS command: 
16367 \family typewriter
16368 co -f -u<version> <file-name>
16369 \end_layout
16370
16371 \begin_layout Subsubsection
16372
16373 \family sans
16374 Undo Last Checkin
16375 \end_layout
16376
16377 \begin_layout Standard
16378 This makes as if the last check in never happened.
16379  No changes are made to the document loaded into LyX, but the last version
16380  is removed from the master RCS file.
16381  
16382 \end_layout
16383
16384 \begin_layout Standard
16385 RCS command: 
16386 \family typewriter
16387 rcs -o<version> <file-name>
16388 \end_layout
16389
16390 \begin_layout Subsubsection
16391
16392 \family sans
16393 Show History
16394 \end_layout
16395
16396 \begin_layout Standard
16397 This show the complete history of the RCS document.
16398  The output of 
16399 \family typewriter
16400 rlog <file-name>
16401 \family default
16402  is shown in a browser.
16403  See 
16404 \family typewriter
16405 man rlog
16406 \family default
16407  for more info.
16408 \end_layout
16409
16410 \begin_layout Subsection
16411 CVS commands in LyX
16412 \end_layout
16413
16414 \begin_layout Standard
16415 CVS is now partially supported by LyX.
16416  You can find the commands in the 
16417 \family sans
16418 \bar under
16419 F
16420 \bar default
16421 ile\SpecialChar \menuseparator
16422
16423 \bar under
16424 V
16425 \bar default
16426 ersion
16427 \begin_inset space ~
16428 \end_inset
16429
16430 Control
16431 \family default
16432  submenu.
16433 \end_layout
16434
16435 \begin_layout Subsubsection
16436
16437 \family sans
16438 Register
16439 \end_layout
16440
16441 \begin_layout Standard
16442 If your document is not under revision control, this is the only item shown
16443  in the menu.
16444  And if it is under revision control, the 
16445 \family sans
16446 \bar under
16447 R
16448 \bar default
16449 egister
16450 \family default
16451  item is not visible.
16452  
16453 \end_layout
16454
16455 \begin_layout Standard
16456 This command registers in CVS your document ONLY in case you have already
16457  the documents directory under CVS control (in particular 
16458 \family typewriter
16459 CVS/Entries
16460 \family default
16461  file exists).
16462  This means you have to checkout the archive by yourself.
16463  
16464 \end_layout
16465
16466 \begin_layout Standard
16467 Then you are asked interactively to supply an initial description of the
16468  document.
16469  Don't forget that registered file is not yet commited.
16470 \end_layout
16471
16472 \begin_layout Standard
16473 CVS command that is run: 
16474 \family typewriter
16475 cvs -q add -m
16476 \begin_inset Quotes erd
16477 \end_inset
16478
16479 <entered message>" 
16480 \begin_inset Quotes eld
16481 \end_inset
16482
16483 <file-name>
16484 \begin_inset Quotes erd
16485 \end_inset
16486
16487
16488 \end_layout
16489
16490 \begin_layout Standard
16491 Read 
16492 \family typewriter
16493 man svn
16494 \family default
16495  to understand the switches.
16496  
16497 \end_layout
16498
16499 \begin_layout Subsubsection
16500
16501 \family sans
16502 Check In Changes
16503 \end_layout
16504
16505 \begin_layout Standard
16506 When you are finished editing a file, you commit your changes.
16507  When you do this, you are asked for a description of the changes.
16508  After that changes are commited.
16509 \end_layout
16510
16511 \begin_layout Standard
16512 CVS command: 
16513 \family typewriter
16514 cvs -q commit -m"<description>" <file-name>
16515 \end_layout
16516
16517 \begin_layout Subsubsection
16518
16519 \family sans
16520 Revert To Repository Version
16521 \end_layout
16522
16523 \begin_layout Standard
16524 This will discard all changes made to the document since the last check
16525  in.
16526  You get a warning before changes are discarded.
16527  Firstly the file is deleted, secondly CVS update command is run.
16528 \end_layout
16529
16530 \begin_layout Standard
16531 CVS command: 
16532 \family typewriter
16533 cvs update 
16534 \begin_inset Quotes eld
16535 \end_inset
16536
16537 <file-name>
16538 \begin_inset Quotes erd
16539 \end_inset
16540
16541
16542 \end_layout
16543
16544 \begin_layout Subsubsection
16545
16546 \family sans
16547 Show History
16548 \end_layout
16549
16550 \begin_layout Standard
16551 This show the complete history of the CVS document.
16552  The output of 
16553 \family typewriter
16554 cvs log 
16555 \begin_inset Quotes eld
16556 \end_inset
16557
16558 <file-name>
16559 \begin_inset Quotes erd
16560 \end_inset
16561
16562
16563 \family default
16564  is shown in a browser.
16565 \end_layout
16566
16567 \begin_layout Subsection
16568 SVN commands in LyX
16569 \end_layout
16570
16571 \begin_layout Standard
16572 SVN is now partially supported by LyX.
16573  You can find the commands in the 
16574 \family sans
16575 \bar under
16576 F
16577 \bar default
16578 ile\SpecialChar \menuseparator
16579
16580 \bar under
16581 V
16582 \bar default
16583 ersion
16584 \begin_inset space ~
16585 \end_inset
16586
16587 Control
16588 \family default
16589  submenu.
16590  Please note that if you use password protected access to repository via
16591  ssh, you will be asked in terminal window.
16592 \end_layout
16593
16594 \begin_layout Subsubsection
16595
16596 \family sans
16597 Register
16598 \end_layout
16599
16600 \begin_layout Standard
16601 If your document is not under revision control, this is the only item shown
16602  in the menu.
16603  And if it is under revision control, the 
16604 \family sans
16605 \bar under
16606 R
16607 \bar default
16608 egister
16609 \family default
16610  item is not visible.
16611  
16612 \end_layout
16613
16614 \begin_layout Standard
16615 This command registers in SVN your document ONLY in case you have already
16616  the documents directory under SVN control (in particular 
16617 \family typewriter
16618 .svn/entries
16619 \family default
16620  file exists).
16621  This means you have to checkout the archive by yourself.
16622  
16623 \end_layout
16624
16625 \begin_layout Standard
16626 Then you are asked interactively to supply an initial description of the
16627  document.
16628  Don't forget that registered file is not yet commited.
16629 \end_layout
16630
16631 \begin_layout Standard
16632 SVN command that is run: 
16633 \family typewriter
16634 snv add -q 
16635 \begin_inset Quotes eld
16636 \end_inset
16637
16638 <file-name>
16639 \begin_inset Quotes erd
16640 \end_inset
16641
16642
16643 \end_layout
16644
16645 \begin_layout Standard
16646 Read 
16647 \family typewriter
16648 man svn
16649 \family default
16650  to understand the switches.
16651  
16652 \end_layout
16653
16654 \begin_layout Subsubsection
16655
16656 \family sans
16657 Check In Changes
16658 \end_layout
16659
16660 \begin_layout Standard
16661 When you are finished editing a file, you commit your changes.
16662  When you do this, you are asked for a description of the changes.
16663  After that changes are commited.
16664 \end_layout
16665
16666 \begin_layout Standard
16667 SVN command: 
16668 \family typewriter
16669 svn commit -q -m"<description>" <file-name>
16670 \end_layout
16671
16672 \begin_layout Subsubsection
16673
16674 \family sans
16675 Check Out For Edit
16676 \end_layout
16677
16678 \begin_layout Standard
16679 Updates the changes of this file from the repository.
16680  Be sure you understand SVN merging and conflicts resolving before using
16681  this function, because all conflicts has to be done manually by you!
16682 \end_layout
16683
16684 \begin_layout Standard
16685 SVN command: 
16686 \family typewriter
16687 svn update 
16688 \begin_inset Quotes eld
16689 \end_inset
16690
16691 <file-name>
16692 \begin_inset Quotes erd
16693 \end_inset
16694
16695
16696 \end_layout
16697
16698 \begin_layout Subsubsection
16699
16700 \family sans
16701 Revert To Repository Version
16702 \end_layout
16703
16704 \begin_layout Standard
16705 This will discard all changes made to the document since the last check
16706  in.
16707  You get a warning before changes are discarded.
16708  
16709 \end_layout
16710
16711 \begin_layout Standard
16712 SVN command: 
16713 \family typewriter
16714 svn revert -q 
16715 \begin_inset Quotes eld
16716 \end_inset
16717
16718 <file-name>
16719 \begin_inset Quotes erd
16720 \end_inset
16721
16722
16723 \end_layout
16724
16725 \begin_layout Subsubsection
16726
16727 \family sans
16728 Show History
16729 \end_layout
16730
16731 \begin_layout Standard
16732 This show the complete history of the SVN document.
16733  The output of 
16734 \family typewriter
16735 svn log 
16736 \begin_inset Quotes eld
16737 \end_inset
16738
16739 <file-name>
16740 \begin_inset Quotes erd
16741 \end_inset
16742
16743
16744 \family default
16745  is shown in a browser.
16746 \end_layout
16747
16748 \begin_layout Section
16749 Literate Programming
16750 \end_layout
16751
16752 \begin_layout Standard
16753 Updated by 
16754 \noun on
16755 Kayvan Sylvan 
16756 \noun default
16757 (kayvan@sylvan.com)
16758 \noun on
16759
16760 \noun default
16761 original documentation written by 
16762 \noun on
16763 Edmar Wienskoski Jr.
16764
16765 \noun default
16766  (edmar-w-jr@technologist.com)
16767 \end_layout
16768
16769 \begin_layout Subsection
16770 Introduction
16771 \end_layout
16772
16773 \begin_layout Standard
16774 The main purpose of this documentation is to show you how to use LyX for
16775  literate programming.
16776  Where it is assumed that you are familiar with this programming technique,
16777  and know what 
16778 \begin_inset Quotes eld
16779 \end_inset
16780
16781 tangling
16782 \begin_inset Quotes erd
16783 \end_inset
16784
16785  and 
16786 \begin_inset Quotes eld
16787 \end_inset
16788
16789 weaving
16790 \begin_inset Quotes erd
16791 \end_inset
16792
16793  means.
16794  If that is not the case, please follow the web links provided in the following
16795  sections.
16796  There is a lot of good documentation out there covering old development
16797  history to the latest tools tips.
16798 \end_layout
16799
16800 \begin_layout Standard
16801 It is also assumed that you are familiar with LyX itself to a point that
16802  you are comfortable changing your LyX preferences, and X resources file.
16803  If that is not the case please refer to other LyX documentation to cover
16804  your specific needs.
16805 \end_layout
16806
16807 \begin_layout Subsection
16808 Literate Programming
16809 \end_layout
16810
16811 \begin_layout Standard
16812 From the Literate Programming FAQ: 
16813 \end_layout
16814
16815 \begin_layout Quotation
16816 Literate programming is the combination of documentation and source together
16817  in a fashion suited for reading by human beings.
16818  In fact, literate programs should be enjoyable reading, even inviting!
16819  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
16820  and documentation in a single file.
16821  Literate programming tools then parse the file to produce either readable
16822  documentation or compilable source.
16823  The WEB style of literate programming was created by D.E.
16824  Knuth during the development of his TeX typesetting software.
16825  
16826 \end_layout
16827
16828 \begin_layout Standard
16829 Another excerpt says:
16830 \end_layout
16831
16832 \begin_layout Quotation
16833
16834 \emph on
16835 How is literate programming different from verbose commenting?
16836 \end_layout
16837
16838 \begin_layout Quotation
16839 There are three distinguishing characteristics.
16840  In order of importance, they are: 
16841 \end_layout
16842
16843 \begin_deeper
16844 \begin_layout Itemize
16845 flexible order of elaboration 
16846 \end_layout
16847
16848 \begin_layout Itemize
16849 automatic support for browsing 
16850 \end_layout
16851
16852 \begin_layout Itemize
16853 typeset documentation, especially diagrams and mathematics 
16854 \end_layout
16855
16856 \end_deeper
16857 \begin_layout Standard
16858 Now that I sparked your curiosity, take a look in the references.
16859 \end_layout
16860
16861 \begin_layout Subsubsection
16862 References
16863 \end_layout
16864
16865 \begin_layout Standard
16866 The complete Literate Programming FAQ can be found at:
16867 \end_layout
16868
16869 \begin_layout Quote
16870 Literate Programming FAQ 
16871 \begin_inset Flex URL
16872 status collapsed
16873
16874 \begin_layout Plain Layout
16875
16876 http://shelob.ce.ttu.edu/daves/lpfaq/faq.html
16877 \end_layout
16878
16879 \end_inset
16880
16881
16882 \end_layout
16883
16884 \begin_layout Standard
16885 The FAQ lists 23 (twenty three!) different literate programming tools.
16886  Where some are specialized or 
16887 \begin_inset Quotes eld
16888 \end_inset
16889
16890 tailored
16891 \begin_inset Quotes erd
16892 \end_inset
16893
16894  for particular programming languages, while other have general scope.
16895  I selected 
16896 \noun on
16897 Noweb
16898 \noun default
16899  for my own use for several reasons:
16900 \end_layout
16901
16902 \begin_layout Itemize
16903 It can generate the documentation either in LaTeX or HTML.
16904 \end_layout
16905
16906 \begin_layout Itemize
16907 It has a open architecture, i.e., it is easy to plug in new filters and to
16908  perform special processing that you may need.
16909  
16910 \end_layout
16911
16912 \begin_layout Itemize
16913 There is a good selection of filters available already (the HTML is one
16914  of them).
16915 \end_layout
16916
16917 \begin_layout Itemize
16918 It is free.
16919 \end_layout
16920
16921 \begin_layout Standard
16922 The Noweb web page can be found at: 
16923 \end_layout
16924
16925 \begin_layout Quote
16926 Noweb home page 
16927 \begin_inset Flex URL
16928 status collapsed
16929
16930 \begin_layout Plain Layout
16931
16932 http://www.cs.virginia.edu/~nr/noweb/
16933 \end_layout
16934
16935 \end_inset
16936
16937
16938 \end_layout
16939
16940 \begin_layout Standard
16941 Starting from there you can reach many other interesting links and even
16942  some literate program examples.
16943 \end_layout
16944
16945 \begin_layout Subsection
16946 \begin_inset CommandInset label
16947 LatexCommand label
16948 name "sub:LyX-and-Literate"
16949
16950 \end_inset
16951
16952 LyX and Literate Programming
16953 \end_layout
16954
16955 \begin_layout Standard
16956 The LyX support for Literate Programming is provided by using the generic
16957  LyX convertors mechanism.
16958  This support is provided in a 
16959 \begin_inset Quotes eld
16960 \end_inset
16961
16962 Noweb independent
16963 \begin_inset Quotes erd
16964 \end_inset
16965
16966  way, i.e., you will be able to use this new LyX feature with some other literate
16967  programming tool of your choice by just changing your LyX preferences.
16968 \end_layout
16969
16970 \begin_layout Subsubsection
16971 Generating documents and code (weaving and tangling)
16972 \end_layout
16973
16974 \begin_layout Paragraph
16975 Selecting the document class
16976 \end_layout
16977
16978 \begin_layout Standard
16979 If you have installed Noweb and LyX successfully, whenever you open a new
16980  document or try to change the document class of an existing one, you will
16981  find that there are three new document classes available:
16982 \end_layout
16983
16984 \begin_layout Itemize
16985 Article (Noweb)
16986 \end_layout
16987
16988 \begin_layout Itemize
16989 Book (Noweb)
16990 \end_layout
16991
16992 \begin_layout Itemize
16993 Report (Noweb)
16994 \end_layout
16995
16996 \begin_layout Standard
16997 You must select one of them to create your literate documents from.
16998  
16999 \end_layout
17000
17001 \begin_layout Standard
17002 Note that literate documents are not limited to these three classes.
17003  New classes can be generated from other styles like letter or in combination
17004  with other class variations like Article (AMS).
17005  If you have special needs that cannot be covered by one of the existing
17006  classes, let the LyX developers list (lyx-devel@lists.lyx.org) know and we
17007  will arrange to insert a new entry, or teach you how to do it.
17008 \begin_inset Foot
17009 status collapsed
17010
17011 \begin_layout Plain Layout
17012 It is very simple, it involves the creation of a file with four lines, and
17013  re-running of the auto configuration.
17014 \end_layout
17015
17016 \end_inset
17017
17018  Moreover, if you use a literate tool other than Noweb you may need to create
17019  a new set of document classes for it.
17020 \end_layout
17021
17022 \begin_layout Paragraph
17023 Typing code in
17024 \end_layout
17025
17026 \begin_layout Standard
17027 LyX enables you to write code with a layout named 
17028 \noun on
17029 Scrap
17030 \noun default
17031 .
17032 \begin_inset Foot
17033 status collapsed
17034
17035 \begin_layout Plain Layout
17036 The equivalent Noweb term is 
17037 \begin_inset Quotes eld
17038 \end_inset
17039
17040 Chunk
17041 \begin_inset Quotes erd
17042 \end_inset
17043
17044 .
17045  For historical reasons, I got used to the term 
17046 \begin_inset Quotes eld
17047 \end_inset
17048
17049 scrap
17050 \begin_inset Quotes erd
17051 \end_inset
17052
17053  introduced by other literate tool named Nuweb, which I used for many years
17054  before rendering myself to Noweb.
17055 \end_layout
17056
17057 \end_inset
17058
17059  Noweb delimits scraps like this:
17060 \end_layout
17061
17062 \begin_layout LyX-Code
17063 <<My scrap>>=
17064 \end_layout
17065
17066 \begin_layout LyX-Code
17067   code
17068 \end_layout
17069
17070 \begin_layout LyX-Code
17071   more code
17072 \end_layout
17073
17074 \begin_layout LyX-Code
17075   even more code
17076 \end_layout
17077
17078 \begin_layout LyX-Code
17079   @
17080 \end_layout
17081
17082 \begin_layout Standard
17083 The problem is that whatever is written in between the << and the 
17084 \family typewriter
17085 @
17086 \family default
17087  must be taken literally, i.e., LyX should be prevented from making any special
17088  interpretation of what has been written.
17089  This is handled by a special layout named Scrap, that works like a normal
17090  paragraph but has a free spacing capability.
17091 \end_layout
17092
17093 \begin_layout Standard
17094 The down side of the Scrap paragraph layout is that consecutive paragraphs
17095  of code will be spaced with one empty line in the source code and also
17096  in the printed documentation.
17097  The work around is to enter each line of code within a single Scrap, with
17098  a newline (ctrl-return).
17099  The example above will look like this:
17100 \begin_inset Foot
17101 status collapsed
17102
17103 \begin_layout Plain Layout
17104 If you have a printed version of this document you will not see any difference
17105  between the previous example and this one.
17106 \end_layout
17107
17108 \end_inset
17109
17110
17111 \end_layout
17112
17113 \begin_layout LyX-Code
17114 <<My scrap>>=
17115 \begin_inset Newline newline
17116 \end_inset
17117
17118   code
17119 \begin_inset Newline newline
17120 \end_inset
17121
17122   more code
17123 \begin_inset Newline newline
17124 \end_inset
17125
17126   even more code
17127 \begin_inset Newline newline
17128 \end_inset
17129
17130   @
17131 \end_layout
17132
17133 \begin_layout Standard
17134 This layout works fine.
17135  The only real inconvenience is that you have to type ctrl-return instead
17136  of a plain return.
17137 \begin_inset Foot
17138 status collapsed
17139
17140 \begin_layout Plain Layout
17141 It is in my list of 
17142 \begin_inset Quotes eld
17143 \end_inset
17144
17145 improvements
17146 \begin_inset Quotes erd
17147 \end_inset
17148
17149  to fix that.
17150 \end_layout
17151
17152 \end_inset
17153
17154
17155 \end_layout
17156
17157 \begin_layout Standard
17158 As a special note, you can also use the 
17159 \begin_inset Quotes eld
17160 \end_inset
17161
17162 %def
17163 \begin_inset Quotes erd
17164 \end_inset
17165
17166  construct of Noweb in your scraps to add items to Noweb's identifier cross-refe
17167 rence:
17168 \end_layout
17169
17170 \begin_layout LyX-Code
17171 <<My scrap>>=
17172 \begin_inset Newline newline
17173 \end_inset
17174
17175   def some_function(args):
17176 \begin_inset Newline newline
17177 \end_inset
17178
17179     "This is the doc string for this function."
17180 \begin_inset Newline newline
17181 \end_inset
17182
17183     print "My args: ", args
17184 \end_layout
17185
17186 \begin_layout LyX-Code
17187 @ %def some_function
17188 \end_layout
17189
17190 \begin_layout Standard
17191 For an example of this usage and the resulting cross-reference output, look
17192  at the Literate python program in 
17193 \emph on
17194 LIBDIR/examples/listerrors.lyx
17195 \emph default
17196  which should make this all clear.
17197 \end_layout
17198
17199 \begin_layout Paragraph
17200 Generating the documentation
17201 \end_layout
17202
17203 \begin_layout Standard
17204 At this point you already have a new document file with a proper document
17205  class, and with some code and text on it.
17206  How do I print it? The answer is simple, you select 
17207 \family sans
17208 \bar under
17209 V
17210 \bar default
17211 iew\SpecialChar \menuseparator
17212
17213 \bar under
17214 D
17215 \bar default
17216 VI,
17217 \family default
17218  etc.
17219  Just like you would do for a plain document.
17220  No special procedure is required.
17221 \end_layout
17222
17223 \begin_layout Standard
17224 To help orientate you, I will now explain what happens inside LyX:
17225 \end_layout
17226
17227 \begin_layout Enumerate
17228 When the 
17229 \family sans
17230 \bar under
17231 U
17232 \bar default
17233 pdate\SpecialChar \menuseparator
17234
17235 \bar under
17236 D
17237 \bar default
17238 VI
17239 \family default
17240  menu option is chosen, a LaTeX file is generated.
17241  
17242 \end_layout
17243
17244 \begin_deeper
17245 \begin_layout Standard
17246 If the document is of any literate class the generated file will be named
17247  with an extension name defined by the 
17248 \begin_inset Quotes eld
17249 \end_inset
17250
17251 literate
17252 \begin_inset Quotes erd
17253 \end_inset
17254
17255  format (defined in the Preferences panel), otherwise the file will have
17256  the usual 
17257 \family typewriter
17258 .tex
17259 \family default
17260  extension.
17261 \end_layout
17262
17263 \end_deeper
17264 \begin_layout Enumerate
17265 Note that the only difference so far is in the name of the file, no special
17266  processing is required by LyX.
17267  Given that you formatted the code using the Scrap layout that, by itself,
17268  takes care of the business.
17269 \end_layout
17270
17271 \begin_layout Enumerate
17272 If the document is of any literate class LyX will then use the internal
17273  LyX to Noweb converter, followed by the Noweb to LaTeX converter
17274 \begin_inset Foot
17275 status collapsed
17276
17277 \begin_layout Plain Layout
17278 The converters are defined in the 
17279 \family sans
17280 \bar under
17281 T
17282 \bar default
17283 ools\SpecialChar \menuseparator
17284
17285 \bar under
17286 P
17287 \bar default
17288 references
17289 \family default
17290  panel, under the 
17291 \begin_inset Quotes eld
17292 \end_inset
17293
17294 Conversion
17295 \begin_inset Quotes erd
17296 \end_inset
17297
17298  tab.
17299  See section 
17300 \begin_inset CommandInset ref
17301 LatexCommand ref
17302 reference "sub:converters"
17303
17304 \end_inset
17305
17306  of the 
17307 \emph on
17308 Customization
17309 \emph default
17310  manual for general information about converters.
17311 \end_layout
17312
17313 \end_inset
17314
17315  to generate the LaTeX file.
17316 \end_layout
17317
17318 \begin_deeper
17319 \begin_layout Standard
17320 Otherwise it will just skip this step.
17321 \end_layout
17322
17323 \end_deeper
17324 \begin_layout Enumerate
17325 Finally, LaTeX is invoked and the regular post processing continues as in
17326  a plain document.
17327 \end_layout
17328
17329 \begin_layout Standard
17330 Independence from a particular 
17331 \begin_inset Quotes eld
17332 \end_inset
17333
17334 literate tool
17335 \begin_inset Quotes erd
17336 \end_inset
17337
17338  is easily achieved by changing the commands that are run by the various
17339  converters.
17340 \end_layout
17341
17342 \begin_layout Paragraph
17343 Generating the code
17344 \end_layout
17345
17346 \begin_layout Standard
17347 When the build menu option is chosen or the corresponding button in the
17348  toolbar is pressed, a LaTeX file is generated just like step 1 above.
17349  Next, LyX invokes the 
17350 \family typewriter
17351 Noweb->Program
17352 \family default
17353  converter.
17354  This converter needs to be defined by the user and is not installed by
17355  default, though the Program format is.
17356  This converter (like any other converter) will have two parts:
17357 \end_layout
17358
17359 \begin_layout Enumerate
17360 The converter program itself.
17361  This program performs the conversion from the one format to the other (in
17362  this case, from the Noweb format to the Program pseudo-format).
17363 \end_layout
17364
17365 \begin_layout Enumerate
17366 The error log parser.
17367  This is a program whose sole purpose is to rewrite error messages in a
17368  format that LyX understands.
17369  This makes it possible for LyX to place error boxes in the right places
17370  in the file buffer.
17371 \end_layout
17372
17373 \begin_layout Standard
17374 The first part, the 
17375 \begin_inset Quotes eld
17376 \end_inset
17377
17378 Converter
17379 \begin_inset Quotes erd
17380 \end_inset
17381
17382  setting, should be set to 
17383 \begin_inset Quotes eld
17384 \end_inset
17385
17386
17387 \family typewriter
17388 build-script $$i
17389 \family default
17390
17391 \begin_inset Quotes erd
17392 \end_inset
17393
17394 .
17395  This basically means that LyX will call 
17396 \begin_inset Quotes eld
17397 \end_inset
17398
17399 build-script
17400 \begin_inset Quotes erd
17401 \end_inset
17402
17403  (a program or script) with the name of the Noweb file (normally a file
17404  in the LyX temp directory).
17405  
17406 \end_layout
17407
17408 \begin_layout Standard
17409 This is an implementation of 
17410 \begin_inset Quotes eld
17411 \end_inset
17412
17413 build-script
17414 \begin_inset Quotes erd
17415 \end_inset
17416
17417  that you can place in a directory on your path:
17418 \end_layout
17419
17420 \begin_layout LyX-Code
17421 #!/bin/sh
17422 \end_layout
17423
17424 \begin_layout LyX-Code
17425 #
17426 \end_layout
17427
17428 \begin_layout LyX-Code
17429 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
17430 \end_layout
17431
17432 \begin_layout Standard
17433 The next part of the converter setting is the 
17434 \begin_inset Quotes eld
17435 \end_inset
17436
17437 Flags
17438 \begin_inset Quotes erd
17439 \end_inset
17440
17441  which is to be set to 
17442 \begin_inset Quotes eld
17443 \end_inset
17444
17445
17446 \family typewriter
17447 parselog=listerrors
17448 \family default
17449
17450 \begin_inset Quotes erd
17451 \end_inset
17452
17453 .
17454  This will run any errors that are generated by the 
17455 \begin_inset Quotes eld
17456 \end_inset
17457
17458 build-script
17459 \begin_inset Quotes erd
17460 \end_inset
17461
17462  process through the 
17463 \begin_inset Quotes eld
17464 \end_inset
17465
17466 listerrors
17467 \begin_inset Quotes erd
17468 \end_inset
17469
17470  program.
17471 \end_layout
17472
17473 \begin_layout Standard
17474 The converter code looks in 
17475 \emph on
17476 MYLYXDIR/scripts
17477 \emph default
17478  first, then in 
17479 \emph on
17480 LIBDIR/scripts
17481 \emph default
17482  then on the path for the 
17483 \begin_inset Quotes eld
17484 \end_inset
17485
17486 listerrors
17487 \begin_inset Quotes erd
17488 \end_inset
17489
17490  program.
17491 \end_layout
17492
17493 \begin_layout Standard
17494 The build will normally take place in LyX's temporary directory, so the
17495  files produced by the conversion will be in that directory.
17496  LyX will copy out what it regards as the `main' file, but the 
17497 \family typewriter
17498 Noweb->Program
17499 \family default
17500  conversion may produce several files, and so most of these would then be
17501  deleted when LyX was closed.
17502  The present solution is to use a `copier',
17503 \begin_inset Foot
17504 status collapsed
17505
17506 \begin_layout Plain Layout
17507 See section 
17508 \begin_inset CommandInset ref
17509 LatexCommand ref
17510 reference "sec:converters-etc"
17511
17512 \end_inset
17513
17514  of the 
17515 \emph on
17516 Customization
17517 \emph default
17518  manual for information on these.
17519 \end_layout
17520
17521 \end_inset
17522
17523  in this case, the 
17524 \family typewriter
17525 ext_copy.py
17526 \family default
17527  script in its default mode, so that the entire contents of the temporary
17528  directory is copied.
17529  More will get copied than is needed, to be sure, but nothing will be lost.
17530  If, however, you know what extensions the generated files will have, this
17531  can be improved by using the 
17532 \family typewriter
17533 -e
17534 \family default
17535  option to 
17536 \family typewriter
17537 ext_copy
17538 \family default
17539 .
17540  This option takes a comma-separated list of extensions to copy.
17541  So, for example, if the conversion will generate only files with the extensions
17542  
17543 \family typewriter
17544 .c
17545 \family default
17546  and 
17547 \family typewriter
17548 .h
17549 \family default
17550 , then the correct definition would be:
17551 \end_layout
17552
17553 \begin_layout LyX-Code
17554 python -tt $$s/scripts/ext_copy.py -e c,h $$i $$o
17555 \end_layout
17556
17557 \begin_layout Standard
17558 The result will be that only files with these two extensions will be copied
17559  out.
17560 \end_layout
17561
17562 \begin_layout Paragraph
17563 Build instructions in the document
17564 \end_layout
17565
17566 \begin_layout Standard
17567 The last piece of the integration between LyX and noweb is the 
17568 \begin_inset Quotes eld
17569 \end_inset
17570
17571 build-script
17572 \begin_inset Quotes erd
17573 \end_inset
17574
17575  scrap.
17576  Generally, the instructions for building your program should be embedded
17577  in a scrap of its own.
17578  The noweb-specific 
17579 \begin_inset Quotes eld
17580 \end_inset
17581
17582 build-script
17583 \begin_inset Quotes erd
17584 \end_inset
17585
17586  above uses the notangle command to look for this scrap (called 
17587 \begin_inset Quotes eld
17588 \end_inset
17589
17590 build-script
17591 \begin_inset Quotes erd
17592 \end_inset
17593
17594 ) and runs its contents through 
17595 \begin_inset Quotes eld
17596 \end_inset
17597
17598 sh
17599 \begin_inset Quotes erd
17600 \end_inset
17601
17602 .
17603 \end_layout
17604
17605 \begin_layout Standard
17606 Typically, such a scrap would look something like this:
17607 \end_layout
17608
17609 \begin_layout LyX-Code
17610 <<build-script>>=
17611 \begin_inset Newline newline
17612 \end_inset
17613
17614 #!/bin/sh
17615 \begin_inset Newline newline
17616 \end_inset
17617
17618
17619 \begin_inset Newline newline
17620 \end_inset
17621
17622 if [ -z "${NOWEB_SOURCE}" ]
17623 \begin_inset Newline newline
17624 \end_inset
17625
17626 then
17627 \begin_inset Newline newline
17628 \end_inset
17629
17630   NOWEB_SOURCE=myfile.nw
17631 \begin_inset Newline newline
17632 \end_inset
17633
17634 fi
17635 \begin_inset Newline newline
17636 \end_inset
17637
17638 [...
17639  code to extract files ...]
17640 \begin_inset Newline newline
17641 \end_inset
17642
17643 [...
17644  code to compile files ...]
17645 \begin_inset Newline newline
17646 \end_inset
17647
17648 @
17649 \end_layout
17650
17651 \begin_layout Standard
17652 Look in 
17653 \emph on
17654 LIBDIR/examples/listerrors.lyx
17655 \emph default
17656  or in 
17657 \emph on
17658 LIBDIR/examples/Literate.lyx
17659 \emph default
17660  which implement two versions of the 
17661 \begin_inset Quotes eld
17662 \end_inset
17663
17664 listerrors
17665 \begin_inset Quotes erd
17666 \end_inset
17667
17668  program for some illustrations of how all of these pieces go together or
17669  in 
17670 \emph on
17671 LIBDIR/examples/noweb2lyx.lyx.
17672
17673 \emph default
17674  Interestingly, these three files show off the language-indepence of the
17675  LyX literate programming support since they are written in Python, C and
17676  Perl respectively.
17677 \end_layout
17678
17679 \begin_layout Subsubsection
17680 Configuring LyX
17681 \end_layout
17682
17683 \begin_layout Standard
17684 All the Literate Programming support is configured by the 
17685 \family sans
17686 \bar under
17687 T
17688 \bar default
17689 ools\SpecialChar \menuseparator
17690
17691 \bar under
17692 P
17693 \bar default
17694 references
17695 \family default
17696  panel in the 
17697 \begin_inset Quotes eld
17698 \end_inset
17699
17700 Conversion
17701 \begin_inset Quotes erd
17702 \end_inset
17703
17704  tab.
17705  The important parts are:
17706 \end_layout
17707
17708 \begin_layout Description
17709 the
17710 \begin_inset space ~
17711 \end_inset
17712
17713
17714 \begin_inset Quotes eld
17715 \end_inset
17716
17717 literate
17718 \begin_inset Quotes erd
17719 \end_inset
17720
17721
17722 \begin_inset space ~
17723 \end_inset
17724
17725 format Set up via the Formats tab, this is where the Noweb-specific pieces
17726  are set up.
17727  The 
17728 \family sans
17729 GUI Name
17730 \family default
17731  is set to 
17732 \family typewriter
17733 NoWeb
17734 \family default
17735 , the file extension is set to 
17736 \family typewriter
17737 .nw
17738 \family default
17739 .
17740  This tells LyX to create a file with a 
17741 \family typewriter
17742 .nw
17743 \family default
17744  extension in the first step of the conversion process.
17745 \end_layout
17746
17747 \begin_layout Description
17748 the
17749 \begin_inset space ~
17750 \end_inset
17751
17752
17753 \family sans
17754 Program
17755 \family default
17756
17757 \begin_inset space ~
17758 \end_inset
17759
17760 format This is an empty format whose sole purpose is to be the endpoint
17761  of a conversion (which then allows us to set up a converter for it).
17762 \end_layout
17763
17764 \begin_layout Description
17765
17766 \family sans
17767 NoWeb
17768 \family default
17769 ->
17770 \family sans
17771 LaTeX
17772 \family default
17773  This converter performs the 
17774 \begin_inset Quotes eld
17775 \end_inset
17776
17777 weaving
17778 \begin_inset Quotes erd
17779 \end_inset
17780
17781  of the literate document.
17782  For Noweb, it is set to 
17783 \begin_inset Quotes eld
17784 \end_inset
17785
17786
17787 \family typewriter
17788 noweave -delay -index $$i > $$o
17789 \family default
17790
17791 \begin_inset Quotes erd
17792 \end_inset
17793
17794
17795 \end_layout
17796
17797 \begin_layout Description
17798
17799 \family sans
17800 NoWeb
17801 \family default
17802 ->
17803 \family sans
17804 Program
17805 \family default
17806  This performs the 
17807 \begin_inset Quotes eld
17808 \end_inset
17809
17810 tangling step
17811 \begin_inset Quotes erd
17812 \end_inset
17813
17814 .
17815  As stated above, the Converter is set to 
17816 \begin_inset Quotes eld
17817 \end_inset
17818
17819
17820 \family typewriter
17821 build-script $$i
17822 \family default
17823
17824 \begin_inset Quotes erd
17825 \end_inset
17826
17827 , with Flags set to 
17828 \begin_inset Quotes eld
17829 \end_inset
17830
17831
17832 \family typewriter
17833 originaldir,parselog=listerrors
17834 \family default
17835
17836 \begin_inset Quotes erd
17837 \end_inset
17838
17839 .
17840 \end_layout
17841
17842 \begin_layout Subsubsection
17843 Debug extensions
17844 \end_layout
17845
17846 \begin_layout Standard
17847 There is also a new function implemented in the LyX server, the 
17848 \begin_inset Quotes eld
17849 \end_inset
17850
17851 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
17852  
17853 \end_layout
17854
17855 \begin_layout Standard
17856 When debugging code with ddd/gdb, it is possible to invoke a text editor
17857  at the current execution position with a single key stroke.
17858  The default ddd configuration for that is shift-ctrl-V.
17859  It happens that you can define the editor command line invocation in ddd
17860  by accessing the 
17861 \family sans
17862 \bar under
17863 E
17864 \bar default
17865 dit\SpecialChar \menuseparator
17866
17867 \bar under
17868 P
17869 \bar default
17870 references\SpecialChar \menuseparator
17871
17872 \bar under
17873 H
17874 \bar default
17875 elpers
17876 \family default
17877  dialog and changing the "Edit Sources" entry.
17878 \end_layout
17879
17880 \begin_layout Standard
17881 I take advantage of the new created LyX server function and this ddd feature,
17882  and set 
17883 \begin_inset Quotes eld
17884 \end_inset
17885
17886 Edit Sources
17887 \begin_inset Quotes erd
17888 \end_inset
17889
17890  to:
17891 \end_layout
17892
17893 \begin_layout LyX-Code
17894 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
17895 \end_layout
17896
17897 \begin_layout Standard
17898 With this, whenever you are using ddd and find a point in the program that
17899  you want to edit, you just press shift-ctrl-V (in the ddd window), and
17900  ddd you forward this information to LyX through the LyX server and then
17901  the LyX window will show the same file with the cursor at the same position
17902  ddd was pointing to.
17903  No more guessing or long scrolling to locate a point in the program back
17904  from debugging !
17905 \end_layout
17906
17907 \begin_layout Standard
17908 Note however that you must enable the LyX server to get this feature working
17909  (it is disabled by default).
17910  You can enable it in 
17911 \family sans
17912 Preferences
17913 \family default
17914  (tabs 
17915 \family sans
17916 Inputs
17917 \family default
17918
17919 \family sans
17920 Paths
17921 \family default
17922 ) by entering in the 
17923 \family sans
17924 LyXserver pipe
17925 \family default
17926  a path like 
17927 \begin_inset Quotes eld
17928 \end_inset
17929
17930
17931 \family typewriter
17932 /home/<your-home-directory>/.lyx/lyxpipe
17933 \family default
17934
17935 \begin_inset Quotes erd
17936 \end_inset
17937
17938
17939 \end_layout
17940
17941 \begin_layout Standard
17942 Read the LyX server documentation in the 
17943 \emph on
17944 Customization Manual
17945 \emph default
17946  for further information.
17947 \end_layout
17948
17949 \begin_layout Subsubsection
17950 Toolbar extensions
17951 \end_layout
17952
17953 \begin_layout Standard
17954 There are six new buttons that can be added to your LyX toolbar.
17955  Five of these buttons are short cuts to layout styles: 
17956 \family sans
17957 Standard
17958 \family default
17959
17960 \family sans
17961 Section
17962 \family default
17963
17964 \family sans
17965 LaTeX
17966 \family default
17967
17968 \family sans
17969 LyX-Code
17970 \family default
17971 , and 
17972 \family sans
17973 Scrap
17974 \family default
17975 .
17976  The last one is a short cut to the 
17977 \begin_inset Quotes eld
17978 \end_inset
17979
17980 Build Program
17981 \begin_inset Quotes erd
17982 \end_inset
17983
17984  File menu entry.
17985  
17986 \end_layout
17987
17988 \begin_layout Standard
17989 LyX has a range of buttons that are available for tool bar customization.
17990  In my toolbar I like to combine the six short cuts above with two more:
17991  One for 
17992 \family sans
17993 \bar under
17994 V
17995 \bar default
17996 iew
17997 \family default
17998 \SpecialChar \menuseparator
17999
18000 \family sans
18001 \bar under
18002 U
18003 \bar default
18004 pdate
18005 \family default
18006 \SpecialChar \menuseparator
18007
18008 \family sans
18009 \bar under
18010 D
18011 \bar default
18012 VI
18013 \family default
18014  and the other for 
18015 \family sans
18016 \bar under
18017 V
18018 \bar default
18019 iew\SpecialChar \menuseparator
18020
18021 \bar under
18022 D
18023 \bar default
18024 VI
18025 \family default
18026  File menu entries.
18027  Here is how it looks like:
18028 \end_layout
18029
18030 \begin_layout LyX-Code
18031 Toolbar
18032 \end_layout
18033
18034 \begin_layout LyX-Code
18035   Layouts
18036 \end_layout
18037
18038 \begin_layout LyX-Code
18039   Icon "layout Standard"
18040 \end_layout
18041
18042 \begin_layout LyX-Code
18043   Icon "layout Section"
18044 \end_layout
18045
18046 \begin_layout LyX-Code
18047   Icon "layout LaTeX"
18048 \end_layout
18049
18050 \begin_layout LyX-Code
18051   Icon "layout LyX-Code"
18052 \end_layout
18053
18054 \begin_layout LyX-Code
18055   Icon "layout Scrap"
18056 \end_layout
18057
18058 \begin_layout LyX-Code
18059   Separator
18060 \end_layout
18061
18062 \begin_layout LyX-Code
18063   Icon "buffer-view"
18064 \end_layout
18065
18066 \begin_layout LyX-Code
18067   Icon "buffer-typeset"
18068 \end_layout
18069
18070 \begin_layout LyX-Code
18071   Icon "build-program"
18072 \end_layout
18073
18074 \begin_layout LyX-Code
18075   Separator
18076 \end_layout
18077
18078 \begin_layout LyX-Code
18079 .
18080 \end_layout
18081
18082 \begin_layout LyX-Code
18083 .
18084 \end_layout
18085
18086 \begin_layout LyX-Code
18087 .
18088 \end_layout
18089
18090 \begin_layout LyX-Code
18091 End
18092 \end_layout
18093
18094 \begin_layout Subsubsection
18095 Colors customization
18096 \end_layout
18097
18098 \begin_layout Standard
18099 There are a number of colors in LyX that can be customized in 
18100 \family sans
18101 Preferences
18102 \family default
18103 .
18104  One of the things that bothers people is the LaTeX font color.
18105  The default color is red, since the scraps uses LaTeX font, and there is
18106  a lot of scraps in literate documents, you may get tired of seeing everything
18107  in red.
18108  You can change it by going to the tabs 
18109 \family sans
18110 Look&Feel
18111 \family default
18112
18113 \family sans
18114 Colors.
18115 \end_layout
18116
18117 \begin_layout Standard
18118 The next thing is the visible presence of the newline character in the screen.
18119  You can choose the color of this particular character and make it blend
18120  in the background.
18121  I recommend you choosing a color that is close to the background but not
18122  equal, that way you still can see it is there, but it is not bothering
18123  you anymore.
18124  
18125 \end_layout
18126
18127 \begin_layout Chapter
18128 Secrets of the LaTeX Masters
18129 \begin_inset CommandInset label
18130 LatexCommand label
18131 name "cha:secrets"
18132
18133 \end_inset
18134
18135
18136 \end_layout
18137
18138 \begin_layout Standard
18139 Though LyX is a powerful tool, it cannot hope to support everything that
18140  can be done with pure TeX/LaTeX.
18141  However, many familiar dirty TeX and LaTeX tricks can be done within LyX,
18142  as long as you are not afraid to use that 
18143 \begin_inset Quotes eld
18144 \end_inset
18145
18146 TeX
18147 \begin_inset Quotes erd
18148 \end_inset
18149
18150  button on the toolbar or add things to the LaTeX preamble.
18151  This section lists some tips, tricks, and otherwise cool ideas to give
18152  your document that extra little flair.
18153  
18154 \emph on
18155 Do try this at home
18156 \emph default
18157 , just start with something a little smaller and less important than your
18158  dissertation!
18159 \end_layout
18160
18161 \begin_layout Standard
18162 Most ideas in this section require less common files in your LaTeX installation.
18163  If you have a system like teTeX, most will already be available.
18164  A few, however, will need to be downloaded from one of the CTAN archives.
18165  Often, there are several ways to do something, or several LaTeX style files
18166  which do the same thing.
18167  We do not endorse one choice over another, we simply claim that we have
18168  done a particular task with a particular file.
18169  Put on your wizard hat, keep an eye out for dragons, and let us begin.
18170 \end_layout
18171
18172 \begin_layout Section
18173 Multiple Columns
18174 \end_layout
18175
18176 \begin_layout Standard
18177 by 
18178 \noun on
18179 Lars Gullik Bjønnes
18180 \end_layout
18181
18182 \begin_layout Subsection
18183 Purpose
18184 \end_layout
18185
18186 \begin_layout Standard
18187 The aim for this chapter
18188 \begin_inset Foot
18189 status collapsed
18190
18191 \begin_layout Plain Layout
18192 Editor's note: Lars' original chapter was a masterful description of how
18193  to use the 
18194 \family typewriter
18195 multicol
18196 \family default
18197  package.
18198  However, it was too long to flow smoothly in this document.
18199  I have therefore chosen to excerpt the most important sections here (sorry,
18200  Lars); you can read the original chapter (and more of the story!) in the
18201  example file 
18202 \family typewriter
18203 examples/multicol.lyx
18204 \family default
18205 .
18206  --- mer
18207 \end_layout
18208
18209 \end_inset
18210
18211  is to show how the LaTeX package 
18212 \family typewriter
18213 multicol
18214 \family default
18215  can be used in a LyX document.
18216  As LyX doesn't support the 
18217 \family typewriter
18218 multicol
18219 \family default
18220  package natively yet, we have to use some small hacks.
18221  By reading this section it should be obvious how to do this.
18222 \end_layout
18223
18224 \begin_layout Subsection
18225 Limitations 
18226 \end_layout
18227
18228 \begin_layout Standard
18229 The 
18230 \family typewriter
18231 multicol
18232 \family default
18233  package allows switching between one and multicolumn format on the same
18234  page.
18235  Footnotes are handled correctly (for the most part), but will be placed
18236  at the bottom of the page and not under each column.
18237  LaTeX's float mechanism, however, is partly disabled in the current implementat
18238 ion.
18239  At the moment only page-wide floats can be used within the scope of the
18240  environment.
18241 \end_layout
18242
18243 \begin_layout Subsection
18244 Examples
18245 \end_layout
18246
18247 \begin_layout Subsubsection
18248 Two columns
18249 \end_layout
18250
18251 \begin_layout Standard
18252 If you want to have two columns in your text, you have use LaTeX mode to
18253  insert 
18254 \family typewriter
18255
18256 \backslash
18257 begin{multicols}{2}
18258 \family default
18259  at the point where you want the two column layout to start, and then 
18260 \family typewriter
18261
18262 \backslash
18263 end{multicols}
18264 \family default
18265  where you want it to end.
18266  Like this:
18267 \end_layout
18268
18269 \begin_layout Standard
18270 \begin_inset ERT
18271 status open
18272
18273 \begin_layout Plain Layout
18274
18275
18276 \backslash
18277 begin{multicols}{2}
18278 \end_layout
18279
18280 \end_inset
18281
18282
18283 \end_layout
18284
18285 \begin_layout Standard
18286 \noindent
18287
18288 \series bold
18289 \size small
18290 The Adventure of the Empty House
18291 \series default
18292
18293 \begin_inset Newline newline
18294 \end_inset
18295
18296 by 
18297 \noun on
18298 Sir Arthur Conan Doyle
18299 \end_layout
18300
18301 \begin_layout Standard
18302
18303 \size small
18304 It was in the spring of the year 1894 that all London was interested, and
18305  the fashionable world dismayed, by the murder of the Honourable Ronald
18306  Adair under most unusual and inexplicable circumstances.
18307  The public has already learned those particulars of the crime which came
18308  out in the police investigation, but a good deal was suppressed upon that
18309  occasion, since the case for the prosecution was so overwhelmingly strong
18310  that it was not necessary to bring forward all the facts.
18311  Only now, at the end of nearly ten years, am I allowed to supply those
18312  missing links which make up the whole of that remarkable chain.
18313  The crime was of interest in itself, but that interest was as nothing to
18314  me compared to the inconceivable sequel, which afforded me the greatest
18315  shock and surprise of any event in my adventurous life.
18316  Even now, after this long interval, I find myself thrilling as I think
18317  of it, and feeling once more that sudden flood of joy, amazement, and increduli
18318 ty which utterly submerged my mind.
18319  Let me say to that public, which has shown some interest in those glimpses
18320  which I have occasionally given them of the thoughts and actions of a very
18321  remarkable man, that they are not to blame me if I have not shared my knowledge
18322  with them, for I should have considered it my first duty to do so, had
18323  I not been barred by a positive prohibition from his own lips, which was
18324  only withdrawn upon the third of last month.
18325 \end_layout
18326
18327 \begin_layout Standard
18328 \begin_inset ERT
18329 status open
18330
18331 \begin_layout Plain Layout
18332
18333
18334 \backslash
18335 end{multicols}
18336 \end_layout
18337
18338 \end_inset
18339
18340
18341 \end_layout
18342
18343 \begin_layout Subsubsection
18344 Multiple columns
18345 \end_layout
18346
18347 \begin_layout Standard
18348 The same pattern is used when you want more than two columns:
18349 \end_layout
18350
18351 \begin_layout Standard
18352 \begin_inset ERT
18353 status open
18354
18355 \begin_layout Plain Layout
18356
18357
18358 \backslash
18359 begin{multicols}{3}
18360 \end_layout
18361
18362 \end_inset
18363
18364
18365 \end_layout
18366
18367 \begin_layout Standard
18368
18369 \size footnotesize
18370 It can be imagined that my close intimacy with Sherlock Holmes had interested
18371  me deeply in crime, and that after his disappearance I never failed to
18372  read with care the various problems which came before the public.
18373  And I even attempted, more than once, for my own private satisfaction,
18374  to employ his methods in their solution, though with indifferent success.
18375  There was none, however, which appealed to me like this tragedy of Ronald
18376  Adair.
18377  As I read the evidence at the inquest, which led up to a verdict of willful
18378  murder against some person or persons unknown, I realized more clearly
18379  than I had ever done the loss which the community had sustained by the
18380  death of Sherlock Holmes.
18381  There were points about this strange business which would, I was sure,
18382  have specially appealed to him, and the efforts of the police would have
18383  been supplemented, or more probably anticipated, by the trained observation
18384  and the alert mind of the first criminal agent in Europe.
18385  All day, as I drove upon my round, I turned over the case in my mind and
18386  found no explanation which appeared to me to be adequate.
18387  At the risk of telling a twice-told tale, I will recapitulate the facts
18388  as they were known to the public at the conclusion of the inquest.
18389 \end_layout
18390
18391 \begin_layout Standard
18392 \begin_inset ERT
18393 status open
18394
18395 \begin_layout Plain Layout
18396
18397
18398 \backslash
18399 end{multicols}
18400 \end_layout
18401
18402 \end_inset
18403
18404
18405 \end_layout
18406
18407 \begin_layout Standard
18408 You can have more than 3 columns if you want to, but that might not be very
18409  pleasant for the eye.
18410 \end_layout
18411
18412 \begin_layout Subsubsection
18413 Columns inside columns
18414 \end_layout
18415
18416 \begin_layout Standard
18417 You can even have columns inside columns:
18418 \end_layout
18419
18420 \begin_layout Standard
18421 \begin_inset ERT
18422 status open
18423
18424 \begin_layout Plain Layout
18425
18426
18427 \backslash
18428 begin{multicols}{2}
18429 \end_layout
18430
18431 \end_inset
18432
18433
18434 \end_layout
18435
18436 \begin_layout Standard
18437
18438 \size footnotesize
18439 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
18440  at that time governor of one of the Australian colonies.
18441  Adair's mother had returned from Australia to undergo the operation for
18442  cataract, and she, her son Ronald, and her daughter Hilda were living together
18443  at 427 Park Lane.
18444 \end_layout
18445
18446 \begin_layout Standard
18447 \begin_inset ERT
18448 status open
18449
18450 \begin_layout Plain Layout
18451
18452
18453 \backslash
18454 begin{multicols}{2}
18455 \end_layout
18456
18457 \end_inset
18458
18459
18460 \end_layout
18461
18462 \begin_layout Standard
18463
18464 \size footnotesize
18465 The youth moved in the best society--had, so far as was known, no enemies
18466  and no particular vices.
18467  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
18468  had been broken off by mutual consent some months before, and there was
18469  no sign that it had left any very profound feeling behind it.
18470  For the rest {sic} the man's life moved in a narrow and conventional circle,
18471  for his habits were quiet and his nature unemotional.
18472  Yet it was upon this easy-going young aristocrat that death came, in most
18473  strange and unexpected form, between the hours of ten and eleven-twenty
18474  on the night of March 30, 1894.
18475 \end_layout
18476
18477 \begin_layout Standard
18478 \begin_inset ERT
18479 status open
18480
18481 \begin_layout Plain Layout
18482
18483
18484 \backslash
18485 end{multicols}
18486 \end_layout
18487
18488 \end_inset
18489
18490
18491 \end_layout
18492
18493 \begin_layout Standard
18494
18495 \size footnotesize
18496 Ronald Adair was fond of cards--playing continually, but never for such
18497  stakes as would hurt him.
18498  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
18499  It was shown that, after dinner on the day of his death, he had played
18500  a rubber of whist at the latter club.
18501  He had also played there in the afternoon.
18502
18503 \size default
18504  
18505 \size footnotesize
18506 The evidence of those who had played with him-- Mr.
18507  Murray, Sir John Hardy, and Colonel Moran--showed that the game was whist,
18508  and that there was a fairly equal fall of the cards.
18509  Adair might have lost five pounds, but not more.
18510  His fortune was a considerable one, and such a loss could not in any way
18511  affect him.
18512  He had played nearly every day at one club or other, but he was a cautious
18513  player, and usually rose a winner.
18514  It came out in evidence that, in partnership with Colonel Moran, he had
18515  actually won as much as four hundred and twenty pounds in a sitting, some
18516  weeks before, from Godfrey Milner and Lord Balmoral.
18517  So much for his recent history as it came out at the inquest.
18518 \end_layout
18519
18520 \begin_layout Standard
18521 \begin_inset ERT
18522 status open
18523
18524 \begin_layout Plain Layout
18525
18526
18527 \backslash
18528 end{multicols}
18529 \end_layout
18530
18531 \end_inset
18532
18533
18534 \end_layout
18535
18536 \begin_layout Standard
18537 Please do read the file 
18538 \family typewriter
18539 examples/multicol.lyx
18540 \family default
18541  for more advanced examples including column and header spacing, vertical
18542  separator lines, and more.
18543 \end_layout
18544
18545 \begin_layout Section
18546 Numbering in the 
18547 \family sans
18548 Enumerate
18549 \family default
18550  Paragraph Environment
18551 \begin_inset OptArg
18552 status collapsed
18553
18554 \begin_layout Plain Layout
18555 Numbering in Enumerate
18556 \end_layout
18557
18558 \end_inset
18559
18560
18561 \end_layout
18562
18563 \begin_layout Standard
18564 by 
18565 \noun on
18566 John Weiss
18567 \end_layout
18568
18569 \begin_layout Standard
18570 \begin_inset VSpace bigskip
18571 \end_inset
18572
18573
18574 \end_layout
18575
18576 \begin_layout Standard
18577 \noindent
18578 The default numbering for the 
18579 \family sans
18580 Enumerate
18581 \family default
18582  paragraph environment begins with Arabic numbers and ends with uppercase
18583  letters.
18584  Suppose, however, you wanted a different type of numbering scheme.
18585  Here's a quickie example of how to change the numbering scheme:
18586 \end_layout
18587
18588 \begin_layout LyX-Code
18589
18590 \backslash
18591 renewcommand{
18592 \backslash
18593 labelenumi}{
18594 \backslash
18595 Roman{enumi}.}
18596 \end_layout
18597
18598 \begin_layout LyX-Code
18599
18600 \backslash
18601 renewcommand{
18602 \backslash
18603 labelenumii}{
18604 \backslash
18605 Alph{enumii}.}
18606 \end_layout
18607
18608 \begin_layout LyX-Code
18609
18610 \backslash
18611 renewcommand{
18612 \backslash
18613 labelenumiii}{
18614 \backslash
18615 arabic{enumiii}.}
18616 \end_layout
18617
18618 \begin_layout LyX-Code
18619
18620 \backslash
18621 renewcommand{
18622 \backslash
18623 labelenumiv}{
18624 \backslash
18625 alph{enumiv}.)}
18626 \end_layout
18627
18628 \begin_layout Standard
18629 \SpecialChar \ldots{}
18630  which changes the numbering scheme to uppercase Roman numerals, uppercase
18631  letters, Arabic numbers, and lowercase letter.
18632 \end_layout
18633
18634 \begin_layout Standard
18635 Additionally, the previous example also adds a little bit extra to the numbering
18636  scheme.
18637  For example, the first level label actually looks like: 
18638 \begin_inset Quotes eld
18639 \end_inset
18640
18641 I.
18642 \begin_inset Quotes erd
18643 \end_inset
18644
18645 .
18646  For ease of reading, we'll describe what the numbering schemes look like
18647  using a notation something like this: <
18648 \begin_inset Quotes eld
18649 \end_inset
18650
18651 I.
18652 \begin_inset Quotes erd
18653 \end_inset
18654
18655 ,
18656 \begin_inset space ~
18657 \end_inset
18658
18659
18660 \begin_inset Quotes erd
18661 \end_inset
18662
18663 A.
18664 \begin_inset Quotes erd
18665 \end_inset
18666
18667 ,
18668 \begin_inset space ~
18669 \end_inset
18670
18671
18672 \begin_inset Quotes erd
18673 \end_inset
18674
18675 1.
18676 \begin_inset Quotes erd
18677 \end_inset
18678
18679 ,
18680 \begin_inset space ~
18681 \end_inset
18682
18683
18684 \begin_inset Quotes eld
18685 \end_inset
18686
18687 a.)
18688 \begin_inset Quotes erd
18689 \end_inset
18690
18691 >.
18692  
18693 \end_layout
18694
18695 \begin_layout Standard
18696 As you can see in the example, there is a label command for each nesting
18697  level, 
18698 \family typewriter
18699
18700 \backslash
18701 labelenumi
18702 \family default
18703  \SpecialChar \ldots{}
18704  
18705 \family typewriter
18706
18707 \backslash
18708 labelenumiv
18709 \family default
18710 , as well as a counter, 
18711 \family typewriter
18712 enumi
18713 \family default
18714  \SpecialChar \ldots{}
18715  
18716 \family typewriter
18717 enumiv
18718 \family default
18719 .
18720  There are also five 
18721 \begin_inset Quotes eld
18722 \end_inset
18723
18724 number printing
18725 \begin_inset Quotes erd
18726 \end_inset
18727
18728  commands, 
18729 \family typewriter
18730
18731 \backslash
18732 arabic{}
18733 \family default
18734
18735 \family typewriter
18736
18737 \backslash
18738 roman{}
18739 \family default
18740
18741 \family typewriter
18742
18743 \backslash
18744 Roman{}
18745 \family default
18746
18747 \family typewriter
18748
18749 \backslash
18750 alph{}
18751 \family default
18752 , and 
18753 \family typewriter
18754
18755 \backslash
18756 Alph{}
18757 \family default
18758 , each of which take one counter as an argument.
18759  You can add characters before or after these, but there's no need to add
18760  spaces.
18761 \end_layout
18762
18763 \begin_layout Standard
18764 You can get really fancy with these.
18765  For example:
18766 \end_layout
18767
18768 \begin_layout LyX-Code
18769
18770 \backslash
18771 renewcommand{
18772 \backslash
18773 labelenumi}{
18774 \backslash
18775 #
18776 \backslash
18777 Alph{enumi}
18778 \backslash
18779 #}
18780 \end_layout
18781
18782 \begin_layout LyX-Code
18783
18784 \backslash
18785 renewcommand{
18786 \backslash
18787 labelenumii}{
18788 \backslash
18789 Alph{enumi}.
18790 \backslash
18791 arabic{enumii}}
18792 \end_layout
18793
18794 \begin_layout LyX-Code
18795
18796 \backslash
18797 renewcommand{
18798 \backslash
18799 labelenumiii}{
18800 \backslash
18801 alph{enumiii}+}
18802 \end_layout
18803
18804 \begin_layout LyX-Code
18805
18806 \backslash
18807 renewcommand{
18808 \backslash
18809 labelenumiv}{(
18810 \backslash
18811 roman{enumiv})}
18812 \end_layout
18813
18814 \begin_layout Standard
18815 produces the somewhat out of hand numbering scheme: <
18816 \begin_inset Quotes eld
18817 \end_inset
18818
18819 #A#
18820 \begin_inset Quotes erd
18821 \end_inset
18822
18823 ,
18824 \begin_inset space ~
18825 \end_inset
18826
18827
18828 \begin_inset Quotes erd
18829 \end_inset
18830
18831 A.1
18832 \begin_inset Quotes erd
18833 \end_inset
18834
18835 ,
18836 \begin_inset space ~
18837 \end_inset
18838
18839
18840 \begin_inset Quotes erd
18841 \end_inset
18842
18843 a+
18844 \begin_inset Quotes erd
18845 \end_inset
18846
18847 ,
18848 \begin_inset space ~
18849 \end_inset
18850
18851
18852 \begin_inset Quotes eld
18853 \end_inset
18854
18855 (i)
18856 \begin_inset Quotes erd
18857 \end_inset
18858
18859 >.
18860  
18861 \end_layout
18862
18863 \begin_layout Standard
18864
18865 \end_layout
18866
18867 \begin_layout Section
18868 Dropped Capitals
18869 \end_layout
18870
18871 \begin_layout Standard
18872 by 
18873 \noun on
18874 Mike Ressler
18875 \end_layout
18876
18877 \begin_layout Standard
18878 \begin_inset VSpace bigskip
18879 \end_inset
18880
18881
18882 \end_layout
18883
18884 \begin_layout Standard
18885 \noindent
18886 \begin_inset ERT
18887 status collapsed
18888
18889 \begin_layout Plain Layout
18890
18891
18892 \backslash
18893 newfont{
18894 \backslash
18895 tmpfont}{cmr17 scaled 2500}{
18896 \backslash
18897 tmpfont T}
18898 \backslash
18899 vspace*{-8.4ex}
18900 \end_layout
18901
18902 \end_inset
18903
18904
18905 \end_layout
18906
18907 \begin_layout Standard
18908 \noindent
18909 \begin_inset ERT
18910 status open
18911
18912 \begin_layout Plain Layout
18913
18914
18915 \backslash
18916 hangindent=3.3em 
18917 \backslash
18918 hangafter=-3
18919 \end_layout
18920
18921 \end_inset
18922
18923  hose of you who like the style of old books probably also like 
18924 \begin_inset Quotes eld
18925 \end_inset
18926
18927 dropped capitals
18928 \begin_inset Quotes erd
18929 \end_inset
18930
18931 ---those large capital letters which begin each new chapter or section.
18932  Implementing them with plain LyX/LaTeX is straightforward (assuming you
18933  know some plain TeX!) but does require a lot of work and many iterations,
18934  as you can see by all the ugly TeX-mode stuff at the beginning of this
18935  paragraph.
18936 \end_layout
18937
18938 \begin_layout Standard
18939 \begin_inset ERT
18940 status open
18941
18942 \begin_layout Plain Layout
18943
18944
18945 \backslash
18946 verb+
18947 \backslash
18948 bigdrop{-1em}{3}{ptmri}{T}+
18949 \end_layout
18950
18951 \end_inset
18952
18953 here is a much easier way of doing this, of course.
18954  The 
18955 \family typewriter
18956 dropcaps
18957 \family default
18958  (or the newer 
18959 \family typewriter
18960 dropping
18961 \family default
18962 ) package from CTAN allows a simple way to add such letters to your documents.
18963  Since this package is not a standard part of teTeX, I can't demonstrate
18964  it within this document, but if you copy this paragraph to a new document,
18965  delete the 
18966 \begin_inset Quotes eld
18967 \end_inset
18968
18969
18970 \family typewriter
18971
18972 \backslash
18973 verb
18974 \family default
18975
18976 \begin_inset Quotes erd
18977 \end_inset
18978
18979  and the pluses from the TeX code at the beginning of the paragraph, and
18980  add 
18981 \family typewriter
18982
18983 \backslash
18984 usepackage{dropcaps}
18985 \family default
18986  to your LaTeX preamble, you will get a nice Times Roman Italic 
18987 \begin_inset Quotes eld
18988 \end_inset
18989
18990 T
18991 \begin_inset Quotes erd
18992 \end_inset
18993
18994 , whose height is three lines of text and which protrudes 1 em into the
18995  margin.
18996  (Make certain you have copied 
18997 \begin_inset Quotes eld
18998 \end_inset
18999
19000
19001 \family typewriter
19002 dropcaps.sty
19003 \family default
19004
19005 \begin_inset Quotes erd
19006 \end_inset
19007
19008  into a directory where TeX can see it.) The first argument is the amount
19009  of indentation; in this case the negative sign moves it into the margin.
19010  The second argument is the height of the letter in number of lines of text.
19011  The third argument is the font name: virtually anything which has a tfm
19012  file should work (wade through the 
19013 \family typewriter
19014 .../texmf/fonts/tfm
19015 \family default
19016  directory for possibilities).
19017  My personal favorite is 
19018 \begin_inset Quotes eld
19019 \end_inset
19020
19021
19022 \family typewriter
19023 yinit
19024 \family default
19025
19026 \begin_inset Quotes erd
19027 \end_inset
19028
19029 , a fancy German font specifically designed for dropped capitals.
19030  The fourth argument is the letter (or letters) to be dropped.
19031  The 
19032 \family typewriter
19033 dropping
19034 \family default
19035  package also offers the 
19036 \family typewriter
19037
19038 \backslash
19039 bigdrop
19040 \family default
19041  command, as well as a slightly simplified 
19042 \family typewriter
19043
19044 \backslash
19045 dropping
19046 \family default
19047  command.
19048 \end_layout
19049
19050 \begin_layout Section
19051 Non-standard Paragraph Shapes
19052 \end_layout
19053
19054 \begin_layout Standard
19055 by 
19056 \noun on
19057 Mike Ressler
19058 \end_layout
19059
19060 \begin_layout Standard
19061 \begin_inset VSpace bigskip
19062 \end_inset
19063
19064
19065 \end_layout
19066
19067 \begin_layout Standard
19068 \begin_inset ERT
19069 status collapsed
19070
19071 \begin_layout Plain Layout
19072
19073
19074 \backslash
19075 begin{sloppypar}
19076 \end_layout
19077
19078 \end_inset
19079
19080
19081 \end_layout
19082
19083 \begin_layout Standard
19084 \begin_inset ERT
19085 status collapsed
19086
19087 \begin_layout Plain Layout
19088
19089
19090 \backslash
19091 newdimen
19092 \backslash
19093 varunit 
19094 \end_layout
19095
19096 \begin_layout Plain Layout
19097
19098
19099 \backslash
19100 setlength{
19101 \backslash
19102 varunit}{4.5in}
19103 \end_layout
19104
19105 \end_inset
19106
19107
19108 \end_layout
19109
19110 \begin_layout Standard
19111 \noindent
19112 \begin_inset ERT
19113 status collapsed
19114
19115 \begin_layout Plain Layout
19116
19117
19118 \backslash
19119 parshape 19 0.45
19120 \backslash
19121 varunit 0.332
19122 \backslash
19123 varunit
19124 \end_layout
19125
19126 \begin_layout Plain Layout
19127
19128 0.40
19129 \backslash
19130 varunit 0.300
19131 \backslash
19132 varunit
19133 \end_layout
19134
19135 \begin_layout Plain Layout
19136
19137 0.35
19138 \backslash
19139 varunit 0.293
19140 \backslash
19141 varunit
19142 \end_layout
19143
19144 \begin_layout Plain Layout
19145
19146 0.30
19147 \backslash
19148 varunit 0.300
19149 \backslash
19150 varunit
19151 \end_layout
19152
19153 \begin_layout Plain Layout
19154
19155 0.25
19156 \backslash
19157 varunit 0.317
19158 \backslash
19159 varunit
19160 \end_layout
19161
19162 \begin_layout Plain Layout
19163
19164 0.20
19165 \backslash
19166 varunit 0.342
19167 \backslash
19168 varunit
19169 \end_layout
19170
19171 \begin_layout Plain Layout
19172
19173 0.15
19174 \backslash
19175 varunit 0.373
19176 \backslash
19177 varunit
19178 \end_layout
19179
19180 \begin_layout Plain Layout
19181
19182 0.10
19183 \backslash
19184 varunit 0.410
19185 \backslash
19186 varunit
19187 \end_layout
19188
19189 \begin_layout Plain Layout
19190
19191 0.05
19192 \backslash
19193 varunit 0.453
19194 \backslash
19195 varunit
19196 \end_layout
19197
19198 \begin_layout Plain Layout
19199
19200 0.00
19201 \backslash
19202 varunit 0.500
19203 \backslash
19204 varunit
19205 \end_layout
19206
19207 \begin_layout Plain Layout
19208
19209 0.05
19210 \backslash
19211 varunit 0.453
19212 \backslash
19213 varunit
19214 \end_layout
19215
19216 \begin_layout Plain Layout
19217
19218 0.10
19219 \backslash
19220 varunit 0.410
19221 \backslash
19222 varunit
19223 \end_layout
19224
19225 \begin_layout Plain Layout
19226
19227 0.15
19228 \backslash
19229 varunit 0.373
19230 \backslash
19231 varunit
19232 \end_layout
19233
19234 \begin_layout Plain Layout
19235
19236 0.20
19237 \backslash
19238 varunit 0.342
19239 \backslash
19240 varunit
19241 \end_layout
19242
19243 \begin_layout Plain Layout
19244
19245 0.25
19246 \backslash
19247 varunit 0.317
19248 \backslash
19249 varunit
19250 \end_layout
19251
19252 \begin_layout Plain Layout
19253
19254 0.30
19255 \backslash
19256 varunit 0.300
19257 \backslash
19258 varunit
19259 \end_layout
19260
19261 \begin_layout Plain Layout
19262
19263 0.35
19264 \backslash
19265 varunit 0.293
19266 \backslash
19267 varunit
19268 \end_layout
19269
19270 \begin_layout Plain Layout
19271
19272 0.40
19273 \backslash
19274 varunit 0.300
19275 \backslash
19276 varunit
19277 \end_layout
19278
19279 \begin_layout Plain Layout
19280
19281 0.45
19282 \backslash
19283 varunit 0.332
19284 \backslash
19285 varunit
19286 \end_layout
19287
19288 \begin_layout Plain Layout
19289
19290 \end_layout
19291
19292 \end_inset
19293
19294 There are times when the tyranny of rectangular paragraphs must be overthrown.
19295  In such situations, a call to the delightful plain TeX command 
19296 \family typewriter
19297
19298 \backslash
19299 parshape
19300 \family default
19301  is called for.
19302  As you can see, completely arbitrary shapes can be laid out with a suitable
19303  set of linelength definitions.
19304  While this parshape may look a bit silly and useless, one could conceive
19305  of situations such as finely tuned dropped capitals, word wrapping around
19306  non-rectangular graphics, etc.
19307  which will benefit from such handcrafting.
19308 \end_layout
19309
19310 \begin_layout Standard
19311 \begin_inset VSpace bigskip
19312 \end_inset
19313
19314
19315 \end_layout
19316
19317 \begin_layout Standard
19318 The syntax is 
19319 \family typewriter
19320
19321 \backslash
19322 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
19323  #nindent #nlength
19324 \family default
19325 , where 
19326 \family typewriter
19327 numlines
19328 \family default
19329  is the number of lines of text which define the paragraph.
19330  If there turn out to be fewer lines, the shape is truncated; if there are
19331  more, the excess lines have the same dimensions as the last line of the
19332  definition.
19333  The 
19334 \family typewriter
19335 #nindent
19336 \family default
19337  and 
19338 \family typewriter
19339 #nlength
19340 \family default
19341  entries specify the indentation of the line from the left margin, and the
19342  length of the line as measured from that point.
19343  The shape applies only to the current paragraph; everything is reset to
19344  normal for the next paragraph.
19345 \end_layout
19346
19347 \begin_layout Standard
19348 \begin_inset ERT
19349 status collapsed
19350
19351 \begin_layout Plain Layout
19352
19353
19354 \backslash
19355 end{sloppypar}
19356 \end_layout
19357
19358 \end_inset
19359
19360
19361 \end_layout
19362
19363 \begin_layout Section
19364 Summary
19365 \end_layout
19366
19367 \begin_layout Standard
19368 As you can see, the examples in this section range from the useful to the
19369  whimsical.
19370  While I don't expect that anyone will ever need the paragraph shape demonstrate
19371 d in the last section, the important point is that you can do almost anything
19372  you want in LyX if you are willing to figure out how to do it in TeX and
19373  LaTeX.
19374  TeX is a fantastically powerful typesetting system and all that power is
19375  available to you since LyX uses it as its backend.
19376  Happy LyXing!
19377 \end_layout
19378
19379 \end_body
19380 \end_document