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