]> git.lyx.org Git - lyx.git/blob - lib/doc/Extended.lyx
Extended.lyx: remove some Linux-only path descriptions
[lyx.git] / lib / doc / Extended.lyx
1 #LyX 1.5.3svn 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 LyX's 
5613 \family typewriter
5614 layouts
5615 \family default
5616  folder
5617 \end_layout
5618
5619 \begin_layout Enumerate
5620 Rerun 
5621 \family sans
5622 \bar under
5623 T
5624 \bar default
5625 ools\SpecialChar \menuseparator
5626
5627 \bar under
5628 R
5629 \bar default
5630 econfigure
5631 \family default
5632  in LyX, then restart LyX.
5633 \end_layout
5634
5635 \begin_layout Enumerate
5636 Open a regular new file, not from a template.
5637  Does AASTeX appear in the class list in 
5638 \family sans
5639 \bar under
5640 D
5641 \bar default
5642 ocument\SpecialChar \menuseparator
5643
5644 \bar under
5645 S
5646 \bar default
5647 ettings
5648 \family default
5649 ?
5650 \end_layout
5651
5652 \begin_layout Standard
5653 If you get a warning from an existing AASTeX document about not being able
5654  to find the AASTeX layout or a message about 
5655 \begin_inset Quotes eld
5656 \end_inset
5657
5658 You should not mix title layouts with normal ones
5659 \begin_inset Quotes erd
5660 \end_inset
5661
5662 , things haven't been installed correctly.
5663 \end_layout
5664
5665 \begin_layout Subsubsection
5666 LaTeX error processing a table 
5667 \end_layout
5668
5669 \begin_layout Standard
5670 LyX, by default, attempts to center the table caption/title.
5671  This seems to produce a bad interaction in AASTeX so you should click somewhere
5672  in the caption/title, then select 
5673 \family sans
5674 \bar under
5675 E
5676 \bar default
5677 dit\SpecialChar \menuseparator
5678
5679 \bar under
5680 P
5681 \bar default
5682 aragraph\InsetSpace ~
5683 Settings
5684 \family default
5685 , then set the 
5686 \family sans
5687 Alignment
5688 \family default
5689  to 
5690 \family sans
5691 \bar under
5692 B
5693 \bar default
5694 lock
5695 \family default
5696 .
5697  This took care of it for me.
5698 \end_layout
5699
5700 \begin_layout Subsubsection
5701 References
5702 \begin_inset LatexCommand label
5703 name "cite"
5704
5705 \end_inset
5706
5707
5708 \end_layout
5709
5710 \begin_layout Standard
5711 A couple of things: 1) I have noticed some funny spacing in the reference
5712  entries in the text.
5713  When you enter the bibliography item data, make sure their is 
5714 \emph on
5715 no
5716 \emph default
5717  space between the last author and the parenthesis setting off the year;
5718  
5719 \emph on
5720 e.\InsetSpace \thinspace{}
5721 g.\InsetSpace ~
5722
5723 \emph default
5724 type 
5725 \family typewriter
5726 Ressler(1992)
5727 \family default
5728 , not 
5729 \family typewriter
5730 Ressler (1992)
5731 \family default
5732 .
5733  2) Entering the references at all is not obvious.
5734  The easiest thing is to start typing your first reference at the end of
5735  the document, then mark it as type 
5736 \family sans
5737 References
5738 \family default
5739 .
5740  That will put a small gray box in front of what you just typed.
5741  Click on the box to fill in the rest of the information.
5742  For new references, go to the end of an existing reference and press return.
5743  That will create a new line with its own box, etc.
5744 \end_layout
5745
5746 \begin_layout Subsubsection
5747 Including EPS files
5748 \end_layout
5749
5750 \begin_layout Standard
5751 Even though AASTeX provides its own figure commands (
5752 \family typewriter
5753
5754 \backslash
5755 plotone
5756 \family default
5757 , for example), I much prefer LaTeX's standard figure commands (with the
5758  default graphicx).
5759  You can insert the 
5760 \family typewriter
5761
5762 \backslash
5763 plotone
5764 \family default
5765 , etc.\InsetSpace ~
5766 commands as ERT into a Figure Float box if you desire, but I never
5767  have much luck getting the layout right.
5768  With the standard graphics, LyX will insert a 
5769 \family typewriter
5770
5771 \backslash
5772 usepackage{graphicx}
5773 \family default
5774  command into the LaTeX preamble and handle the figures in the standard
5775  LaTeX2e way, interspersing the figures in the text.
5776  I believe ApJ accepts figures exactly this way now; AJ might still use
5777  the 
5778 \begin_inset Quotes eld
5779 \end_inset
5780
5781 stack everything at the end
5782 \begin_inset Quotes erd
5783 \end_inset
5784
5785  technique.
5786 \end_layout
5787
5788 \begin_layout Subsubsection
5789 Things I could have done, but didn't
5790 \end_layout
5791
5792 \begin_layout Standard
5793 There are a few 
5794 \begin_inset Quotes eld
5795 \end_inset
5796
5797 pretty
5798 \begin_inset Quotes erd
5799 \end_inset
5800
5801  things I could have implemented, but chose not to.
5802  For instance, I saw no point in double-spacing the text in the LyX window,
5803  even though it is double-spaced in the paper manuscript.
5804  Also, I chose not to make separate layouts for the preprint and preprint2
5805  styles.
5806  Since I assume you will spend most of your time in the plain manuscript
5807  mode anyway, I decided not to chew up more disk space with this.
5808  
5809 \end_layout
5810
5811 \begin_layout Subsection
5812 Final Caveat
5813 \end_layout
5814
5815 \begin_layout Standard
5816 Your mileage may vary.
5817  I've now had papers published by both ApJ and AJ that have had 98% of the
5818  effort done in LyX; the last 2% was the LaTeX post-processing and a few
5819  cleanups.
5820  I have had no trouble with the submission process, and I'm sure the journals
5821  were never aware that there might be a difference.
5822  So, go forth and publish!
5823 \end_layout
5824
5825 \begin_layout Section
5826 ijmpc and ijmpd
5827 \end_layout
5828
5829 \begin_layout Standard
5830 by 
5831 \noun on
5832 Panayotis Papasotiriou
5833 \end_layout
5834
5835 \begin_layout Subsection
5836 Overview
5837 \end_layout
5838
5839 \begin_layout Standard
5840 The ijmpc package is a set of macros that facilitates electronic manuscript
5841  submission to the 
5842 \emph on
5843 International Journal of Modern Physics C
5844 \emph default
5845 .
5846  Similarly, the ijmpd package is for creating manuscripts to be submitted
5847  to the 
5848 \emph on
5849 International Journal of Modern Physics D
5850 \emph default
5851 .
5852  Both journals are published by World Scientific.
5853  The corresponding document classes are named 
5854 \family typewriter
5855 ws-ijmpc.cls
5856 \family default
5857  and 
5858 \family typewriter
5859 ws-ijmpd.cls
5860 \family default
5861 , respectively.
5862  These files, together with instructions for the authors, can be downloaded
5863  from the sites 
5864 \begin_inset LatexCommand url
5865 target "http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml"
5866
5867 \end_inset
5868
5869  and 
5870 \begin_inset LatexCommand url
5871 target "http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml"
5872
5873 \end_inset
5874
5875 .
5876  Both packages are modified versions of the standard 
5877 \begin_inset Quotes eld
5878 \end_inset
5879
5880 article
5881 \begin_inset Quotes erd
5882 \end_inset
5883
5884  package, and they are almost (but not exactly) identical.
5885  Most of their features are supported by LyX.
5886  I have used LyX successfully to write articles submitted to both journals
5887  without any problem.
5888 \end_layout
5889
5890 \begin_layout Subsection
5891 Writing a paper
5892 \end_layout
5893
5894 \begin_layout Standard
5895 As usual, the easiest way to write a paper is to start with a template.
5896  Click on 
5897 \family sans
5898 \bar under
5899 F
5900 \bar default
5901 ile\SpecialChar \menuseparator
5902 New from
5903 \family default
5904  
5905 \family sans
5906 \bar under
5907 T
5908 \bar default
5909 emplate
5910 \family default
5911 , then choose the 
5912 \family typewriter
5913 ijmpc.lyx
5914 \family default
5915  or 
5916 \family typewriter
5917 ijmpd.lyx
5918 \family default
5919  template.
5920  This will give an (almost) empty document that includes the most common
5921  fields found in a manuscript.
5922  Simply overwrite the existing text (including the brackets, 
5923 \family typewriter
5924 <>
5925 \family default
5926 ) with your text.
5927  You should keep in mind the following remarks.
5928 \end_layout
5929
5930 \begin_layout Enumerate
5931 LyX won't let you change the font size and the page style of the document,
5932  because such modifications are not allowed by both packages.
5933 \end_layout
5934
5935 \begin_layout Enumerate
5936 The language of the document should not be changed.
5937  Before previewing your paper, be sure that the babel package is not used.
5938  To do this, click on 
5939 \family sans
5940 \bar under
5941 T
5942 \bar default
5943 ools\SpecialChar \menuseparator
5944
5945 \bar under
5946 P
5947 \bar default
5948 references
5949 \family default
5950 , select the 
5951 \family sans
5952 Lang Opts
5953 \family default
5954  tab, deselect the 
5955 \family sans
5956 \bar under
5957 U
5958 \bar default
5959 se babel
5960 \family default
5961  checkbox in the language settings, and click on 
5962 \family sans
5963 \bar under
5964 A
5965 \bar default
5966 pply
5967 \family default
5968  (or 
5969 \family sans
5970 Save
5971 \family default
5972 , if you wish to make this change permanent).
5973 \end_layout
5974
5975 \begin_layout Enumerate
5976 The 
5977 \begin_inset Quotes eld
5978 \end_inset
5979
5980 Keywords
5981 \begin_inset Quotes erd
5982 \end_inset
5983
5984  style must be used to define keywords.
5985 \end_layout
5986
5987 \begin_layout Enumerate
5988 The ijmpc package provides a style named 
5989 \begin_inset Quotes eld
5990 \end_inset
5991
5992 Classification Codes
5993 \begin_inset Quotes erd
5994 \end_inset
5995
5996 , which can be used to define classification codes, such as PACS numbers.
5997  Note that this facility is not supported by the ijmpd package.
5998 \end_layout
5999
6000 \begin_layout Enumerate
6001 Several new environments are available: 
6002 \begin_inset Quotes eld
6003 \end_inset
6004
6005 Definition
6006 \begin_inset Quotes erd
6007 \end_inset
6008
6009
6010 \begin_inset Quotes eld
6011 \end_inset
6012
6013 Step
6014 \begin_inset Quotes erd
6015 \end_inset
6016
6017
6018 \begin_inset Quotes eld
6019 \end_inset
6020
6021 Example
6022 \begin_inset Quotes erd
6023 \end_inset
6024
6025
6026 \begin_inset Quotes eld
6027 \end_inset
6028
6029 Remark
6030 \begin_inset Quotes erd
6031 \end_inset
6032
6033
6034 \begin_inset Quotes eld
6035 \end_inset
6036
6037 Notation
6038 \begin_inset Quotes erd
6039 \end_inset
6040
6041
6042 \begin_inset Quotes eld
6043 \end_inset
6044
6045 Theorem
6046 \begin_inset Quotes erd
6047 \end_inset
6048
6049
6050 \begin_inset Quotes eld
6051 \end_inset
6052
6053 Proof
6054 \begin_inset Quotes erd
6055 \end_inset
6056
6057
6058 \begin_inset Quotes eld
6059 \end_inset
6060
6061 Corollary
6062 \begin_inset Quotes erd
6063 \end_inset
6064
6065
6066 \begin_inset Quotes eld
6067 \end_inset
6068
6069 Lemma
6070 \begin_inset Quotes erd
6071 \end_inset
6072
6073
6074 \begin_inset Quotes eld
6075 \end_inset
6076
6077 Proposition
6078 \begin_inset Quotes erd
6079 \end_inset
6080
6081
6082 \begin_inset Quotes eld
6083 \end_inset
6084
6085 Prop
6086 \begin_inset Quotes erd
6087 \end_inset
6088
6089
6090 \begin_inset Quotes eld
6091 \end_inset
6092
6093 Question
6094 \begin_inset Quotes erd
6095 \end_inset
6096
6097
6098 \begin_inset Quotes eld
6099 \end_inset
6100
6101 Claim
6102 \begin_inset Quotes erd
6103 \end_inset
6104
6105 , and 
6106 \begin_inset Quotes eld
6107 \end_inset
6108
6109 Conjecture
6110 \begin_inset Quotes erd
6111 \end_inset
6112
6113 .
6114  Their use is more or less obvious.
6115  LyX supports all these environments; it will use the proper label, text
6116  style, and numbering scheme for each of them.
6117 \end_layout
6118
6119 \begin_layout Enumerate
6120 Both packages use basic citations; the natbib package should not be used.
6121  In LyX, citation references are shown as usual; in the output, citations
6122  are shown as superscripts.
6123  If you want to use a citation as normal text, you should use the 
6124 \family typewriter
6125 refcite
6126 \family default
6127  command, e.\InsetSpace \thinspace{}
6128 g., 
6129 \begin_inset Quotes eld
6130 \end_inset
6131
6132 See Ref.\InsetSpace ~
6133
6134 \family typewriter
6135
6136 \backslash
6137 refcite{key}
6138 \family default
6139
6140 \begin_inset Quotes erd
6141 \end_inset
6142
6143 .
6144 \end_layout
6145
6146 \begin_layout Enumerate
6147 There is no 
6148 \begin_inset Quotes eld
6149 \end_inset
6150
6151 Acknowledgments
6152 \begin_inset Quotes erd
6153 \end_inset
6154
6155  section in both packages.
6156  To put acknowledgments, just use the 
6157 \begin_inset Quotes eld
6158 \end_inset
6159
6160 Section*
6161 \begin_inset Quotes erd
6162 \end_inset
6163
6164  environment.
6165 \end_layout
6166
6167 \begin_layout Enumerate
6168 Appendices may be added to the paper, 
6169 \emph on
6170 after
6171 \emph default
6172  the Acknowledgments and 
6173 \shape italic
6174 before
6175 \shape default
6176  the References.
6177  LyX provides a special environment, called 
6178 \begin_inset Quotes eld
6179 \end_inset
6180
6181 Appendices Section
6182 \begin_inset Quotes erd
6183 \end_inset
6184
6185  which marks the beginning of the appendices.
6186  This environment should be left blank; it just sends a LaTeX command, but
6187  nothing is really printed.
6188  In LyX, the word 
6189 \begin_inset Quotes eld
6190 \end_inset
6191
6192 Appendix
6193 \begin_inset Quotes erd
6194 \end_inset
6195
6196  is printed with blue letters, as a signal that all sections after that
6197  point are appendices.
6198  To write an appendix, use the 
6199 \begin_inset Quotes eld
6200 \end_inset
6201
6202 Appendix
6203 \begin_inset Quotes erd
6204 \end_inset
6205
6206  environment.
6207  LyX will number each appendix with capital letters, as required by both
6208  journals.
6209  Note that 
6210 \begin_inset Quotes eld
6211 \end_inset
6212
6213 Appendices Section
6214 \begin_inset Quotes erd
6215 \end_inset
6216
6217  
6218 \emph on
6219 must
6220 \emph default
6221  be present before the first appendix; if not, all appendices will be numbered
6222  as normal sections in the output.
6223 \end_layout
6224
6225 \begin_layout Enumerate
6226 The ijmpc and the ijmpd packages use the 
6227 \family typewriter
6228 tbl
6229 \family default
6230  command to implement table captions.
6231  As a result, a table created by LyX is printed correctly, but its caption
6232  is ignored.
6233  However, you can use some ERT to overpass this problem, so that captions
6234  are printed as expected.
6235  To do so, create a float table as usual, remove the caption, and replace
6236  it with the ERT 
6237 \family typewriter
6238
6239 \backslash
6240 tbl{
6241 \emph on
6242 your table caption
6243 \emph default
6244 }{
6245 \family default
6246  (sic); you must also the ERT 
6247 \family typewriter
6248 }
6249 \family default
6250  immediately after the tabular material.
6251  Study the example table included in the template files to see how this
6252  trick is implemented.
6253  Alternatively, If you need table captions, you should implement the whole
6254  table float in a 
6255 \family typewriter
6256 .tex
6257 \family default
6258  file, then include this file to the LyX document (
6259 \family sans
6260 \bar under
6261 I
6262 \bar default
6263 nsert\SpecialChar \menuseparator
6264 Fil
6265 \bar under
6266 e
6267 \bar default
6268 \SpecialChar \menuseparator
6269 Chil
6270 \bar under
6271 d
6272 \bar default
6273 \InsetSpace ~
6274 Document
6275 \family default
6276 ).
6277  Details on how to create a table float can be found in the files 
6278 \family typewriter
6279 ws-ijmpc.tex
6280 \family default
6281  and 
6282 \family typewriter
6283 ws-ijmpd.tex
6284 \family default
6285 , included in the corresponding packages.
6286 \end_layout
6287
6288 \begin_layout Subsection
6289 Preparing a paper for submission
6290 \end_layout
6291
6292 \begin_layout Standard
6293 Before you submit your paper you must export the LyX document as a LaTeX
6294  file (
6295 \family sans
6296 \bar under
6297 F
6298 \bar default
6299 ile\SpecialChar \menuseparator
6300
6301 \bar under
6302 E
6303 \bar default
6304 xport\SpecialChar \menuseparator
6305
6306 \bar under
6307 L
6308 \bar default
6309 a
6310 \family default
6311 T
6312 \family sans
6313 eX
6314 \family default
6315 )
6316 \begin_inset Foot
6317 status open
6318
6319 \begin_layout Standard
6320 Actually you have the choice between LaTeX (plain) and pdflatex.
6321  If you intend to use pdflatex to prepare the paper, you should use the
6322  pdflatex option so that included graphics are converted to PDF format,
6323  ready for use by pdflatex.
6324 \end_layout
6325
6326 \end_inset
6327
6328 , then make the following changes to the resulting 
6329 \family typewriter
6330 .tex
6331 \family default
6332  file.
6333 \end_layout
6334
6335 \begin_layout Enumerate
6336 Remove the comment lines before the 
6337 \family typewriter
6338
6339 \backslash
6340 documentclass
6341 \family default
6342  command.
6343 \end_layout
6344
6345 \begin_layout Enumerate
6346 Remove everything between (and including) the 
6347 \family typewriter
6348
6349 \backslash
6350 makeatletter
6351 \family default
6352  and 
6353 \family typewriter
6354
6355 \backslash
6356 makeatother
6357 \family default
6358  commands, except for any commands you specifically put into the LaTeX preamble.
6359 \end_layout
6360
6361 \begin_layout Standard
6362 The modified 
6363 \family typewriter
6364 .tex
6365 \family default
6366  file should be saved and processed through LaTeX as many times as necessary.
6367  You may also want to check the resulting 
6368 \family typewriter
6369 .dvi
6370 \family default
6371  document.
6372 \end_layout
6373
6374 \begin_layout Subsection
6375 Use of ERT
6376 \end_layout
6377
6378 \begin_layout Standard
6379 The use of ERT is reduced to two commands, which must be placed at the top
6380  of the document.
6381  If you started writing your paper by using the 
6382 \family typewriter
6383 ijmpc.lyx
6384 \family default
6385  or the 
6386 \family typewriter
6387 ijmpd.lyx
6388 \family default
6389  template, the ERT needed is already in its place; you usually don't need
6390  to delete it.
6391  You may only modify the first ERT to specify the information printed to
6392  the top of odd and even pages (authors' names and short paper's title,
6393  respectively).
6394  This ERT must have the form 
6395 \family typewriter
6396
6397 \backslash
6398 markboth{Authors' Names}{Short Paper's Title}
6399 \family default
6400 .
6401 \end_layout
6402
6403 \begin_layout Section
6404 iopart
6405 \end_layout
6406
6407 \begin_layout Standard
6408 by 
6409 \noun on
6410 Uwe Stöhr
6411 \end_layout
6412
6413 \begin_layout Subsection
6414 Overview
6415 \end_layout
6416
6417 \begin_layout Standard
6418 The iopart package provides a document class to create electronic manuscript
6419  submission to the journals published by the Institute of Physics.
6420  Instructions for the authors how to create a paper using the iopart class
6421  can be downloaded together with the iopart package from the site 
6422 \begin_inset LatexCommand url
6423 target "ftp://ftp.iop.org/pub/journals/latex2e"
6424
6425 \end_inset
6426
6427 .
6428 \end_layout
6429
6430 \begin_layout Subsection
6431 Writing a paper
6432 \end_layout
6433
6434 \begin_layout Standard
6435 The easiest way to write a paper is to start with the file 
6436 \emph on
6437 IOP-article.lyx
6438 \emph default
6439  that is available in LyX's examples files folder.
6440  Open this file, save it under a new name, and start writing.
6441  The example file explains how to use the special text environments.
6442  Here are the most important advices:
6443 \end_layout
6444
6445 \begin_layout Itemize
6446 To be able to compile your document to a PDF, PS, or DVI, assure that the
6447  two options 
6448 \family sans
6449 Use AMS math package
6450 \family default
6451  in the document settings under 
6452 \family sans
6453 Math Options
6454 \family default
6455  are not used!
6456 \end_layout
6457
6458 \begin_layout Itemize
6459
6460 \size normal
6461 The title environment defines the kind of your paper.
6462  So use one of the following environments for the title:
6463 \end_layout
6464
6465 \begin_deeper
6466 \begin_layout Itemize
6467
6468 \family sans
6469 \size normal
6470 Title
6471 \family default
6472  for a Paper
6473 \end_layout
6474
6475 \begin_layout Itemize
6476
6477 \family sans
6478 \size normal
6479 Review
6480 \family default
6481  for a Review
6482 \end_layout
6483
6484 \begin_layout Itemize
6485
6486 \family sans
6487 \size normal
6488 Topical
6489 \family default
6490  for a Topical review
6491 \end_layout
6492
6493 \begin_layout Itemize
6494
6495 \family sans
6496 \size normal
6497 Comment
6498 \family default
6499  for a Comment
6500 \end_layout
6501
6502 \begin_layout Itemize
6503
6504 \family sans
6505 \size normal
6506 Note
6507 \family default
6508  for a Note
6509 \end_layout
6510
6511 \begin_layout Itemize
6512
6513 \family sans
6514 \size normal
6515 Paper
6516 \family default
6517  for a Paper (same as Title)
6518 \end_layout
6519
6520 \begin_layout Itemize
6521
6522 \family sans
6523 \size normal
6524 Prelim
6525 \family default
6526  for a Preliminary communication
6527 \end_layout
6528
6529 \begin_layout Itemize
6530
6531 \family sans
6532 \size normal
6533 Rapid
6534 \family default
6535  for a Rapid communication
6536 \end_layout
6537
6538 \begin_layout Itemize
6539
6540 \family sans
6541 \size normal
6542 Letter
6543 \family default
6544  for a Letter to the editor
6545 \end_layout
6546
6547 \end_deeper
6548 \begin_layout Itemize
6549
6550 \size normal
6551 All title environments except of 
6552 \family sans
6553 Letter
6554 \family default
6555  can have an optional short title.
6556 \end_layout
6557
6558 \begin_layout Itemize
6559 There is a general title environment 
6560 \family sans
6561 Article
6562 \family default
6563  which is not directly supported by the LyX.
6564  This can be used as ERT when your document doesn't fit into one of the
6565  other title types.
6566 \end_layout
6567
6568 \begin_layout Standard
6569 For more informations like hints for special table and formula formatting,
6570  look at the IOP author guidelines.
6571 \end_layout
6572
6573 \begin_layout Section
6574 Kluwer
6575 \end_layout
6576
6577 \begin_layout Standard
6578 by 
6579 \noun on
6580 Panayotis Papasotiriou
6581 \end_layout
6582
6583 \begin_layout Subsection
6584 Overview
6585 \end_layout
6586
6587 \begin_layout Standard
6588 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
6589  that facilitates electronic manuscript submission to the journals they
6590  publish.
6591  Most known of them (at least in my domain of interest) are 
6592 \emph on
6593 Astrophysics and Space Science
6594 \emph default
6595  and 
6596 \emph on
6597 Solar Physics
6598 \emph default
6599 , but there are many others (see a complete list at 
6600 \begin_inset LatexCommand url
6601 target "http://www.wkap.nl/jrnllist.htm/JRNLHOME"
6602
6603 \end_inset
6604
6605 ).
6606  The Kluwer package may be downloaded from the site 
6607 \begin_inset LatexCommand url
6608 target "http://www.wkap.nl/kaphtml.htm/STYLEFILES"
6609
6610 \end_inset
6611
6612 .
6613  A complete user guide is contained in that package (but it can also be
6614  downloaded separately).
6615 \end_layout
6616
6617 \begin_layout Standard
6618 LyX supports many features of the package but not everything.
6619  However, the ERT needed is reduced to some 
6620 \begin_inset Quotes eld
6621 \end_inset
6622
6623 peculiar
6624 \begin_inset Quotes erd
6625 \end_inset
6626
6627  commands of the package (see\InsetSpace ~
6628
6629 \begin_inset LatexCommand ref
6630 reference "subsec:kluwer_peculiarities"
6631
6632 \end_inset
6633
6634 ).
6635  I have recently used LyX to write an article submitted to the 
6636 \emph on
6637 Astrophysics and Space Science
6638 \emph default
6639  without any problem.
6640 \end_layout
6641
6642 \begin_layout Subsection
6643 Writing a paper
6644 \end_layout
6645
6646 \begin_layout Standard
6647 The easiest way to write a paper is to start with the Kluwer template file.
6648  Click on 
6649 \family sans
6650 File\SpecialChar \menuseparator
6651 New from
6652 \family default
6653  
6654 \family sans
6655 \bar under
6656 T
6657 \bar default
6658 emplate
6659 \family default
6660 , then choose the 
6661 \family typewriter
6662 kluwer.lyx
6663 \family default
6664  template.
6665  This will give an (almost) empty document that includes the most common
6666  fields found in a manuscript and a short description of their use.
6667  As in most templates, simply overwrite the existing text (including the
6668  brackets, 
6669 \family typewriter
6670 <>
6671 \family default
6672 ) with the correct information.
6673 \end_layout
6674
6675 \begin_layout Subsection
6676 Preparing a paper for submission
6677 \end_layout
6678
6679 \begin_layout Standard
6680 As in the AASTeX package, before you submit your paper to a journal you
6681  must 
6682 \begin_inset Quotes eld
6683 \end_inset
6684
6685 postprocess
6686 \begin_inset Quotes erd
6687 \end_inset
6688
6689  it as follows.
6690 \end_layout
6691
6692 \begin_layout Enumerate
6693 Export your paper as a LaTeX file.
6694  To do this, click on 
6695 \family sans
6696 \bar under
6697 F
6698 \bar default
6699 ile\SpecialChar \menuseparator
6700
6701 \bar under
6702 E
6703 \bar default
6704 xport\SpecialChar \menuseparator
6705
6706 \bar under
6707 L
6708 \bar default
6709 aTeX
6710 \family default
6711 .
6712  
6713 \end_layout
6714
6715 \begin_layout Enumerate
6716 Edit the resulting 
6717 \family typewriter
6718 .tex
6719 \family default
6720  file with a text editor and make the following changes
6721 \end_layout
6722
6723 \begin_deeper
6724 \begin_layout Enumerate
6725 remove the comment lines before the 
6726 \family typewriter
6727
6728 \backslash
6729 documentclass
6730 \family default
6731  command,
6732 \end_layout
6733
6734 \begin_layout Enumerate
6735 remove everything between (and including) the 
6736 \family typewriter
6737
6738 \backslash
6739 makeatletter
6740 \family default
6741  and 
6742 \family typewriter
6743
6744 \backslash
6745 makeatother
6746 \family default
6747  commands, except for any commands you specifically put into the LaTeX preamble.
6748 \end_layout
6749
6750 \begin_layout Standard
6751 Save the resulting 
6752 \family typewriter
6753 .tex
6754 \family default
6755  file.
6756 \end_layout
6757
6758 \end_deeper
6759 \begin_layout Enumerate
6760 Run the 
6761 \family typewriter
6762 .tex
6763 \family default
6764  file through LaTeX as many times as necessary (usually up to three).
6765 \end_layout
6766
6767 \begin_layout Enumerate
6768 View the resulting 
6769 \family typewriter
6770 .dvi
6771 \family default
6772  document using, e.\InsetSpace \thinspace{}
6773 g., 
6774 \family sans
6775 xdvi
6776 \family default
6777 , and check if everything is OK (it should, if you didn't make any mistake).
6778 \end_layout
6779
6780 \begin_layout Subsection
6781 \begin_inset Quotes eld
6782 \end_inset
6783
6784 Peculiarities
6785 \begin_inset Quotes erd
6786 \end_inset
6787
6788  of the Kluwer package
6789 \begin_inset LatexCommand label
6790 name "subsec:kluwer_peculiarities"
6791
6792 \end_inset
6793
6794
6795 \end_layout
6796
6797 \begin_layout Standard
6798 The Kluwer package has the following 
6799 \begin_inset Quotes eld
6800 \end_inset
6801
6802 peculiarities
6803 \begin_inset Quotes erd
6804 \end_inset
6805
6806 .
6807 \end_layout
6808
6809 \begin_layout Enumerate
6810 It is possible to write multiple articles in the same LaTeX file
6811 \begin_inset Foot
6812 status collapsed
6813
6814 \begin_layout Standard
6815 I can't imagine any good reason to do this.
6816 \end_layout
6817
6818 \end_inset
6819
6820 .
6821  Each article must be included in the environment 
6822 \begin_inset Quotes eld
6823 \end_inset
6824
6825 article
6826 \begin_inset Quotes erd
6827 \end_inset
6828
6829 .
6830  Unfortunately, this environment cannot be omitted, even if you write just
6831  one article.
6832  Therefore, each article starts with the command 
6833 \family typewriter
6834
6835 \backslash
6836 begin{article}
6837 \family default
6838  and, obviously, ends with the command 
6839 \family typewriter
6840
6841 \backslash
6842 end{article}
6843 \family default
6844 .
6845  Although this can be implemented in LyX, I didn't included it, since it
6846  looks ugly and can confuse the novice user.
6847  Therefore, you need to enter them directly and mark them as LaTeX code
6848  (the well-known 
6849 \begin_inset Quotes eld
6850 \end_inset
6851
6852 ERT
6853 \begin_inset Quotes erd
6854 \end_inset
6855
6856 ).
6857 \end_layout
6858
6859 \begin_layout Enumerate
6860 Information given at the beginning of the article (i.e., title, subtitle,
6861  author, institution, running title, running author, abstract and keywords)
6862  must be included in an environment called 
6863 \begin_inset Quotes eld
6864 \end_inset
6865
6866 opening
6867 \begin_inset Quotes erd
6868 \end_inset
6869
6870 .
6871  This is not implemented in LyX, so you must enter title, subtitle etc.\InsetSpace ~
6872 between
6873  two ERT lines (
6874 \family typewriter
6875
6876 \backslash
6877 begin{opening}
6878 \family default
6879  and 
6880 \family typewriter
6881
6882 \backslash
6883 end{opening}
6884 \family default
6885 ).
6886 \end_layout
6887
6888 \begin_layout Enumerate
6889 According to the user manual, the label of each bibliography item must be
6890  written as 
6891 \family typewriter
6892
6893 \backslash
6894 protect
6895 \backslash
6896 citeauthoryear{
6897 \family default
6898 \emph on
6899 author(s)
6900 \family typewriter
6901 \emph default
6902 }{
6903 \family default
6904 \emph on
6905 year
6906 \family typewriter
6907 \emph default
6908 }
6909 \family default
6910 .
6911 \end_layout
6912
6913 \begin_layout Standard
6914 The 
6915 \family typewriter
6916 kluwer.lyx
6917 \family default
6918  template takes care of all these 
6919 \begin_inset Quotes eld
6920 \end_inset
6921
6922 peculiarities
6923 \begin_inset Quotes erd
6924 \end_inset
6925
6926 .
6927  If you start a new paper using this template you don't need to do anything
6928  special.
6929  Just 
6930 \end_layout
6931
6932 \begin_layout Enumerate
6933 don't delete the ERT included in the template, and
6934 \end_layout
6935
6936 \begin_layout Enumerate
6937 copy the example bibliography item included in the template and modify it
6938  as necessary to enter new bibliography items.
6939 \end_layout
6940
6941 \begin_layout Section
6942 Koma-Script
6943 \end_layout
6944
6945 \begin_layout Standard
6946 by 
6947 \noun on
6948 Bernd Rellermeyer
6949 \end_layout
6950
6951 \begin_layout Subsection
6952 Overview
6953 \end_layout
6954
6955 \begin_layout Standard
6956 The LyX document classes 
6957 \emph on
6958 article (koma-script)
6959 \emph default
6960
6961 \emph on
6962 report (koma-script)
6963 \emph default
6964
6965 \emph on
6966 book
6967 \emph default
6968  
6969 \emph on
6970 (koma-script)
6971 \emph default
6972 , and 
6973 \emph on
6974 letter
6975 \emph default
6976  
6977 \emph on
6978 (koma-script)
6979 \emph default
6980  correspond to the LaTeX document classes 
6981 \family typewriter
6982 scrartcl.cls
6983 \family default
6984
6985 \family typewriter
6986 scrreprt.cls
6987 \family default
6988
6989 \family typewriter
6990 scrbook.cls
6991 \family default
6992 , and 
6993 \family typewriter
6994 scrlettr.cls
6995 \family default
6996 , resp.\InsetSpace ~
6997 of the Koma-Script family.
6998  They are replacements for the standard document classes 
6999 \family typewriter
7000 article.cls
7001 \family default
7002
7003 \family typewriter
7004 report.cls
7005 \family default
7006
7007 \family typewriter
7008 book.cls
7009 \family default
7010  and 
7011 \family typewriter
7012 letter.cls
7013 \family default
7014 , resp., and fit better to European typography conventions in a number of
7015  points.
7016 \end_layout
7017
7018 \begin_layout Itemize
7019 Standard character size is 11pt in 
7020 \emph on
7021 article (koma-script)
7022 \emph default
7023
7024 \emph on
7025 report (koma-script)
7026 \emph default
7027 , and 
7028 \emph on
7029 book (koma-script)
7030 \emph default
7031 , and 12pt in 
7032 \emph on
7033 letter (koma-script)
7034 \emph default
7035 .
7036 \end_layout
7037
7038 \begin_layout Itemize
7039 Headings, labels of the description environment, and a number of elements
7040  of the 
7041 \emph on
7042 letter (koma-script)
7043 \emph default
7044  document class are set in a bold sans serif font.
7045 \begin_inset Foot
7046 status collapsed
7047
7048 \begin_layout Standard
7049 There is a big difference between the bold sans serif old cm fonts and new
7050  ec fonts, especially in the appearance of headings.
7051  In comparison, the ec bold sans serif fonts look a bit thin.
7052  Here the LaTeX package 
7053 \family typewriter
7054 cmsd.sty by
7055 \family default
7056  
7057 \shape smallcaps
7058 Walter Schmidt
7059 \shape default
7060  helps to produce the 
7061 \begin_inset Quotes eld
7062 \end_inset
7063
7064 usual
7065 \begin_inset Quotes erd
7066 \end_inset
7067
7068  appearance when using the ec fonts.
7069 \end_layout
7070
7071 \end_inset
7072
7073  The numbering of chapter headings is made in the same way as the numbering
7074  of section headings, that is without the extra line 
7075 \begin_inset Quotes eld
7076 \end_inset
7077
7078 Chapter\SpecialChar \ldots{}
7079
7080 \begin_inset Quotes erd
7081 \end_inset
7082
7083 .
7084  In addition, the appearance of the headings can be modified by using a
7085  number of options (in LyX to be entered in the field 
7086 \family sans
7087 E
7088 \bar under
7089 x
7090 \bar default
7091 tra\InsetSpace ~
7092 Options
7093 \family default
7094  of the dialog 
7095 \family sans
7096 \bar under
7097 L
7098 \bar default
7099 ayout\SpecialChar \menuseparator
7100
7101 \bar under
7102 D
7103 \bar default
7104 ocument
7105 \family default
7106 ).
7107  A detailed German description of these options can be found in the Koma-Script
7108  documentation 
7109 \emph on
7110 scrguide
7111 \emph default
7112 .
7113 \end_layout
7114
7115 \begin_layout Itemize
7116 The main means in the Koma-Script document classes to design the type area
7117  are the options 
7118 \family sans
7119 BCOR
7120 \family default
7121  and 
7122 \family sans
7123 DIV
7124 \family default
7125  (in LyX to be entered in the extra class options field in the dialog 
7126 \family sans
7127 \bar under
7128 D
7129 \bar default
7130 ocument\SpecialChar \menuseparator
7131
7132 \bar under
7133 S
7134 \bar default
7135 ettings
7136 \family default
7137 ).
7138  They make a clearer modification of page margins possible as do the options
7139  of the dialog 
7140 \family sans
7141 \bar under
7142 D
7143 \bar default
7144 ocument\SpecialChar \menuseparator
7145
7146 \bar under
7147 S
7148 \bar default
7149 ettings
7150 \family default
7151 .
7152  A detailed German description of these and other type area options can
7153  be found in the Koma-Script documentation 
7154 \emph on
7155 scrguide
7156 \emph default
7157 .
7158 \end_layout
7159
7160 \begin_layout Itemize
7161 The LaTeX document classes of the Koma-Script family define a number of
7162  additional commands.
7163  Those part of it which makes sense in LyX is implemented in corresponding
7164  paragraph types.
7165 \end_layout
7166
7167 \begin_layout Standard
7168 A detailed German description of the LaTeX document classes of the Koma-Script
7169  family can be found in the Koma-Script documentation 
7170 \emph on
7171 scrguide
7172 \emph default
7173 .
7174 \begin_inset Foot
7175 status collapsed
7176
7177 \begin_layout Standard
7178 There is an English translation 
7179 \emph on
7180 screnggu
7181 \emph default
7182 , but it is not a complete one.
7183 \end_layout
7184
7185 \end_inset
7186
7187  The following sections describe only those aspects, which are relevant
7188  in LyX.
7189 \end_layout
7190
7191 \begin_layout Subsection
7192 article (koma-script), report (koma-script), and book (koma-script)
7193 \end_layout
7194
7195 \begin_layout Standard
7196 The document classes 
7197 \emph on
7198 article (koma-script)
7199 \emph default
7200
7201 \emph on
7202 report (koma-script)
7203 \emph default
7204 , and 
7205 \emph on
7206 book
7207 \emph default
7208  
7209 \emph on
7210 (koma-script)
7211 \emph default
7212  are implemented in the layout files 
7213 \family typewriter
7214 scrartcl.layout
7215 \family default
7216
7217 \family typewriter
7218 scrreprt.layout
7219 \family default
7220 , and 
7221 \family typewriter
7222 scrbook.layout
7223 \family default
7224 , resp.
7225  They contain all the paragraph types of the corresponding standard document
7226  classes 
7227 \emph on
7228 article
7229 \emph default
7230
7231 \emph on
7232 report
7233 \emph default
7234 , and 
7235 \emph on
7236 book
7237 \emph default
7238 , resp., partly modified, with the exception of the LyX specific 
7239 \family sans
7240 List
7241 \family default
7242 -type, which is replaced by the new 
7243 \family sans
7244 Labeling
7245 \family default
7246 -type having the same functionality.
7247  Beside the 
7248 \family sans
7249 Labeling
7250 \family default
7251 -Type there is a number of new paragraph types added.
7252  They are 
7253 \emph on
7254 not
7255 \emph default
7256  part of 
7257 \emph on
7258 letter (koma-script)
7259 \emph default
7260 .
7261 \end_layout
7262
7263 \begin_layout Itemize
7264
7265 \family sans
7266 Addpart, Addchap
7267 \family default
7268
7269 \family sans
7270 Addsec
7271 \family default
7272 : are equivalents to 
7273 \family sans
7274 Part*, Chapter*
7275 \family default
7276  and 
7277 \family sans
7278 Section*
7279 \family default
7280 , resp., additionally inserting an entry in the table of contents.
7281  
7282 \family sans
7283 Addpart
7284 \family default
7285  and 
7286 \family sans
7287 Addchap
7288 \family default
7289  are not contained in 
7290 \emph on
7291 article (koma-script)
7292 \emph default
7293 .
7294 \end_layout
7295
7296 \begin_layout Itemize
7297
7298 \family sans
7299 Addchap*
7300 \family default
7301
7302 \family sans
7303 Addsec*
7304 \family default
7305 : behave exactly as 
7306 \family sans
7307 Addchap
7308 \family default
7309  and 
7310 \family sans
7311 Addsec
7312 \family default
7313 , resp., additionally clearing running heads.
7314  
7315 \family sans
7316 Addchap*
7317 \family default
7318  is not contained in 
7319 \emph on
7320 article (koma-script)
7321 \emph default
7322 .
7323 \begin_inset Foot
7324 status collapsed
7325
7326 \begin_layout Standard
7327 There is also an 
7328 \family typewriter
7329
7330 \backslash
7331 addpart*
7332 \family default
7333  command in 
7334 \emph on
7335 book (koma-script)
7336 \emph default
7337  and in 
7338 \emph on
7339 report (koma-script)
7340 \emph default
7341 , but since this is identical to 
7342 \family sans
7343 Part*
7344 \family default
7345 , is has not been implemented in LyX.
7346 \end_layout
7347
7348 \end_inset
7349
7350
7351 \end_layout
7352
7353 \begin_layout Itemize
7354
7355 \family sans
7356 Minisec
7357 \family default
7358 : generates a heading directly above the following paragraph in the standard
7359  character size without affecting the structure of the document.
7360 \end_layout
7361
7362 \begin_layout Itemize
7363
7364 \family sans
7365 Captionabove
7366 \family default
7367  and 
7368 \family sans
7369 Captionbelow
7370 \family default
7371  are special captions which respect the different space settings needed
7372  for captions placed above or below an element (if you follow strict typographic
7373  rules, you might want to place table captions always above the table).
7374  You can also use the class option 
7375 \family typewriter
7376 tablecaptionsabove
7377 \family default
7378 , which will switch 
7379 \family sans
7380 caption
7381 \family default
7382  to 
7383 \family sans
7384 captionabove
7385 \family default
7386  for tables and 
7387 \family sans
7388 captionbelow
7389 \family default
7390  for figures.
7391  You need at least Koma-Script version 2.8q to use this.
7392 \end_layout
7393
7394 \begin_layout Itemize
7395
7396 \family sans
7397 Dictum
7398 \family default
7399 : can be used to set a bonmot, e.
7400 \begin_inset ERT
7401 status collapsed
7402
7403 \begin_layout Standard
7404
7405
7406 \backslash
7407 ,
7408 \end_layout
7409
7410 \end_inset
7411
7412 g.
7413 \begin_inset ERT
7414 status collapsed
7415
7416 \begin_layout Standard
7417
7418
7419 \backslash
7420  
7421 \end_layout
7422
7423 \end_inset
7424
7425 at the beginning of a chapter.
7426  If you use the optional argument (
7427 \family sans
7428 \bar under
7429 I
7430 \bar default
7431 nsert\SpecialChar \menuseparator
7432 Short\InsetSpace ~
7433 Title
7434 \family default
7435 ), you can insert the dictum's author there.
7436  Dictum and author are separated by a line.
7437  You need at least Koma-Script version 2.8q to use this.
7438  
7439 \family sans
7440 Dictum
7441 \family default
7442  is not contained in 
7443 \emph on
7444 article (koma-script)
7445 \emph default
7446 .
7447 \end_layout
7448
7449 \begin_layout Standard
7450 The following types, together with the standard types 
7451 \family sans
7452 Title
7453 \family default
7454
7455 \family sans
7456 Author
7457 \family default
7458 , and 
7459 \family sans
7460 Date
7461 \family default
7462 , form the title area of the document.
7463  They must be entered ahead of the first 
7464 \begin_inset Quotes eld
7465 \end_inset
7466
7467 ordinary
7468 \begin_inset Quotes erd
7469 \end_inset
7470
7471  paragraph.
7472 \begin_inset Foot
7473 status collapsed
7474
7475 \begin_layout Standard
7476 The corresponding LaTeX commands must appear before the 
7477 \family typewriter
7478
7479 \backslash
7480 maketitle
7481 \family default
7482  command.
7483 \end_layout
7484
7485 \end_inset
7486
7487  When such a type is used more than once, the latter usage overwrites the
7488  former one, that means, for every type only the latest usage is valid.
7489  The order of the different types however has, like 
7490 \family sans
7491 Title
7492 \family default
7493
7494 \family sans
7495 Author
7496 \family default
7497 , and 
7498 \family sans
7499 Date
7500 \family default
7501 , no effect on the appearance of the produced document.
7502 \end_layout
7503
7504 \begin_layout Itemize
7505
7506 \family sans
7507 Subject
7508 \family default
7509 : produces a centered paragraph above the ordinary title (
7510 \family sans
7511 Title
7512 \family default
7513
7514 \family sans
7515 Author
7516 \family default
7517
7518 \family sans
7519 Date
7520 \family default
7521 ) for the subject of the document.
7522 \end_layout
7523
7524 \begin_layout Itemize
7525
7526 \family sans
7527 Publishers
7528 \family default
7529 : produces a centered paragraph below the ordinary title (
7530 \family sans
7531 Title
7532 \family default
7533
7534 \family sans
7535 Author
7536 \family default
7537
7538 \family sans
7539 Date
7540 \family default
7541 ) for the publishers' name.
7542 \end_layout
7543
7544 \begin_layout Itemize
7545
7546 \family sans
7547 Dedication
7548 \family default
7549 : in 
7550 \emph on
7551 report (koma-script)
7552 \emph default
7553  and 
7554 \emph on
7555 book (koma-script)
7556 \emph default
7557  produces a centered paragraph on its own page behind the title page, or
7558  in 
7559 \emph on
7560 article (koma-script)
7561 \emph default
7562  produces a centered paragraph below the ordinary title (
7563 \family sans
7564 Title
7565 \family default
7566
7567 \family sans
7568 Author
7569 \family default
7570
7571 \family sans
7572 Date
7573 \family default
7574
7575 \family sans
7576 Publishers
7577 \family default
7578 ) for a dedication.
7579 \end_layout
7580
7581 \begin_layout Itemize
7582
7583 \family sans
7584 Titlehead
7585 \family default
7586 : produces a left aligned paragraph above the ordinary title (
7587 \family sans
7588 Title
7589 \family default
7590
7591 \family sans
7592 Author
7593 \family default
7594
7595 \family sans
7596 Date
7597 \family default
7598
7599 \family sans
7600 Subject
7601 \family default
7602 ) for a document`s head.
7603 \end_layout
7604
7605 \begin_layout Itemize
7606
7607 \family sans
7608 Uppertitleback
7609 \family default
7610 : produces in a double-sided print in 
7611 \emph on
7612 report (koma-script)
7613 \emph default
7614  and 
7615 \emph on
7616 book (koma-script)
7617 \emph default
7618  a left-aligned paragraph at the top of the title page`s back or has no
7619  effect in a single-sided print or in 
7620 \emph on
7621 article (koma-script)
7622 \emph default
7623 .
7624 \end_layout
7625
7626 \begin_layout Itemize
7627
7628 \family sans
7629 Lowertitleback
7630 \family default
7631 : produces in a double-sided print in 
7632 \emph on
7633 report (koma-script)
7634 \emph default
7635  and 
7636 \emph on
7637 book (koma-script)
7638 \emph default
7639  a left-aligned paragraph at the bottom of the title page`s back or has
7640  no effect in a single-sided print or in 
7641 \emph on
7642 article (koma-script)
7643 \emph default
7644 .
7645 \end_layout
7646
7647 \begin_layout Itemize
7648
7649 \family sans
7650 Extratitle
7651 \family default
7652 : produces a special 
7653 \begin_inset Quotes eld
7654 \end_inset
7655
7656 dirty
7657 \begin_inset Quotes erd
7658 \end_inset
7659
7660  page ahead of the actual document containing a paragraph without special
7661  formatting.
7662 \end_layout
7663
7664 \begin_layout Standard
7665 The layout files for the document classes 
7666 \emph on
7667 article (koma-script)
7668 \emph default
7669
7670 \emph on
7671 report (koma-script)
7672 \emph default
7673 , and 
7674 \emph on
7675 book (koma-script)
7676 \emph default
7677  do include the file 
7678 \family typewriter
7679 scrmacros.inc
7680 \family default
7681 .
7682  This is thought of as a place to define your own types.
7683  Copy s
7684 \family typewriter
7685 crmacros.inc
7686 \family default
7687  in your personal layout directory and edit the file!
7688 \end_layout
7689
7690 \begin_layout Subsection
7691 letter (koma-script)
7692 \end_layout
7693
7694 \begin_layout Standard
7695 \begin_inset ERT
7696 status inlined
7697
7698 \begin_layout Standard
7699
7700
7701 \backslash
7702 begin{sloppypar}
7703 \end_layout
7704
7705 \end_inset
7706
7707
7708 \end_layout
7709
7710 \begin_layout Standard
7711 \noindent
7712 The document class 
7713 \emph on
7714 letter (koma-script)
7715 \emph default
7716  is implemented in the layout file 
7717 \family typewriter
7718 scrlettr.layout
7719 \family default
7720 .
7721  It contains all the paragraph types of the corresponding standard document
7722  class 
7723 \emph on
7724 letter
7725 \emph default
7726 , partly modified, with the exception of the LyX specific types 
7727 \family sans
7728 LyX-Code
7729 \family default
7730  and 
7731 \family sans
7732 Comment
7733 \family default
7734  and the 
7735 \family sans
7736 List
7737 \family default
7738  type, which is replaced by the new 
7739 \family sans
7740 Labeling
7741 \family default
7742  type.
7743  In addition, it contains, in contrast to the standard document class, the
7744  standard types 
7745 \family sans
7746 LaTeX
7747 \family default
7748
7749 \family sans
7750 Quotation
7751 \family default
7752
7753 \family sans
7754 Quote
7755 \family default
7756 , and 
7757 \family sans
7758 Verse
7759 \family default
7760 .
7761  Furthermore, there are a number of new letter specific types.
7762 \end_layout
7763
7764 \begin_layout Standard
7765 \begin_inset ERT
7766 status inlined
7767
7768 \begin_layout Standard
7769
7770
7771 \backslash
7772 end{sloppypar}
7773 \end_layout
7774
7775 \end_inset
7776
7777
7778 \end_layout
7779
7780 \begin_layout Standard
7781 The appearance of the letter produced by this document class can be controlled
7782  by a number of LaTeX commands, which you can put in the LaTeX preamble.
7783 \begin_inset Foot
7784 status collapsed
7785
7786 \begin_layout Standard
7787 For example, the standard appearance of the letter`s heading, consisting
7788  of name and address, is quite self-willed.
7789  An 
7790 \begin_inset Quotes eld
7791 \end_inset
7792
7793 ordinary
7794 \begin_inset Quotes erd
7795 \end_inset
7796
7797  heading is produced by the following LaTeX commands in the preamble:
7798 \end_layout
7799
7800 \begin_layout LyX-Code
7801
7802 \backslash
7803 firsthead{
7804 \backslash
7805 parbox[b]{
7806 \backslash
7807 textwidth}
7808 \end_layout
7809
7810 \begin_layout LyX-Code
7811   {
7812 \backslash
7813 ignorespaces 
7814 \backslash
7815 fromname
7816 \backslash
7817
7818 \backslash
7819  
7820 \backslash
7821 ignorespaces 
7822 \backslash
7823 fromaddress}} 
7824 \end_layout
7825
7826 \begin_layout LyX-Code
7827
7828 \backslash
7829 nexthead{
7830 \backslash
7831 parbox[b]{
7832 \backslash
7833 textwidth}
7834 \end_layout
7835
7836 \begin_layout LyX-Code
7837   {
7838 \backslash
7839 ignorespaces 
7840 \backslash
7841 fromname 
7842 \backslash
7843 hfill 
7844 \backslash
7845 ignorespaces 
7846 \backslash
7847 pagename
7848 \backslash
7849  
7850 \backslash
7851 thepage}}
7852 \end_layout
7853
7854 \end_inset
7855
7856  A detailed German description of such LaTeX commands can be found in the
7857  Koma-Script documentation 
7858 \emph on
7859 scrguide
7860 \emph default
7861 .
7862  With it, the letter's author can produce his personal letter layout.
7863 \end_layout
7864
7865 \begin_layout Standard
7866 The types 
7867 \family sans
7868 Letter
7869 \family default
7870  and 
7871 \family sans
7872 Opening
7873 \family default
7874  define the beginning of the letter and must be used in every letter.
7875  To emphasize them in the LyX document class, they are marked with the letter
7876  
7877 \shape italic
7878 L
7879 \shape default
7880  or 
7881 \shape italic
7882 O
7883 \shape default
7884 , resp.\InsetSpace ~
7885 in the left margin.
7886  It is possible to write any number of letters in one file.
7887  An 
7888 \family sans
7889 Opening
7890 \family default
7891  type produces a new letter using the same addressee and a 
7892 \family sans
7893 Letter
7894 \family default
7895  type produces a new addressee.
7896  The types 
7897 \family sans
7898 Closing
7899 \family default
7900
7901 \family sans
7902 PS
7903 \family default
7904
7905 \family sans
7906 CC
7907 \family default
7908 , and 
7909 \family sans
7910 Encl
7911 \family default
7912  are ordinary paragraph types and can also be used several times in one
7913  and the same letter.
7914 \end_layout
7915
7916 \begin_layout Itemize
7917
7918 \family sans
7919 Letter
7920 \family default
7921 : produces a paragraph for the addressee and implicitly defines the beginning
7922  of the letter.
7923 \end_layout
7924
7925 \begin_layout Itemize
7926
7927 \family sans
7928 Opening
7929 \family default
7930 : produces a paragraph for the form of address and implicitly produces a
7931  new letter.
7932 \end_layout
7933
7934 \begin_layout Itemize
7935
7936 \family sans
7937 Closing
7938 \family default
7939 : produces a paragraph for a close.
7940 \end_layout
7941
7942 \begin_layout Itemize
7943
7944 \family sans
7945 PS
7946 \family default
7947 : produces a paragraph for a postscript.
7948 \end_layout
7949
7950 \begin_layout Itemize
7951
7952 \family sans
7953 CC
7954 \family default
7955 : produces a paragraph for a distribution list.
7956 \end_layout
7957
7958 \begin_layout Itemize
7959
7960 \family sans
7961 Encl
7962 \family default
7963 : produces a paragraph for enclosures.
7964 \end_layout
7965
7966 \begin_layout Standard
7967 The types 
7968 \family sans
7969 Name
7970 \family default
7971
7972 \family sans
7973 Signature
7974 \family default
7975
7976 \family sans
7977 Address
7978 \family default
7979
7980 \family sans
7981 Telephone
7982 \family default
7983
7984 \family sans
7985 Place
7986 \family default
7987
7988 \family sans
7989 Backaddress
7990 \family default
7991
7992 \family sans
7993 Specialmail
7994 \family default
7995
7996 \family sans
7997 Location
7998 \family default
7999
8000 \family sans
8001 Title
8002 \family default
8003 , and 
8004 \family sans
8005 Subject
8006 \family default
8007  are input types provided with a label to enter information, which will
8008  be processed by the document class.
8009 \begin_inset Foot
8010 status open
8011
8012 \begin_layout Standard
8013 It could be seen as a matter of inconsequence, that the types 
8014 \family sans
8015 Letter
8016 \family default
8017  and 
8018 \family sans
8019 Opening
8020 \family default
8021  described above are not such input types as well.
8022  Because of the special meaning of those types, however, I have implemented
8023  them as ordinary paragraph types with a one letter mark in the left margin.
8024  Moreover, it would affect my feeling of symmetry, if the 
8025 \family sans
8026 Opening
8027 \family default
8028  type and the 
8029 \family sans
8030 Closing
8031 \family default
8032  type had such a serious different appearance.
8033 \end_layout
8034
8035 \end_inset
8036
8037  The types must be used ahead of the corresponding 
8038 \family sans
8039 Opening
8040 \family default
8041  type.
8042 \end_layout
8043
8044 \begin_layout Standard
8045 An implementation of these types in a WYSIWYG fashion does not seem to make
8046  sense, because the real appearance of the produced letter does not only
8047  depend on the usage of the particular type, but also on other factors.
8048  For example, a signature entered in the 
8049 \family sans
8050 Signature
8051 \family default
8052  type will in the standard behavior appear in the produced letter only,
8053  when in the same letter also a 
8054 \family sans
8055 Closing
8056 \family default
8057  type is used.
8058  The entered value of the 
8059 \family sans
8060 Telephone
8061 \family default
8062  type will in the standard behavior not appear in the produced letter at
8063  all.
8064  The possibility to design the letter`s heading freely is already indicated
8065  in a footnote above.
8066 \end_layout
8067
8068 \begin_layout Standard
8069 The input types can also be used as empty paragraphs.
8070  This makes sense e.\InsetSpace \thinspace{}
8071 g.\InsetSpace ~
8072 for the 
8073 \family sans
8074 Signature
8075 \family default
8076  type.
8077  If the 
8078 \family sans
8079 Signature
8080 \family default
8081  type is not used at all, in the standard behavior the value of the 
8082 \family sans
8083 Name
8084 \family default
8085  type is used as signature, whereas if an empty 
8086 \family sans
8087 Signature
8088 \family default
8089  type is used, no signature value is defined.
8090 \end_layout
8091
8092 \begin_layout Standard
8093 By using the input types it is possible to write a letter template, containing
8094  filled input types with your personal dates (name, address, etc.) and empty
8095  input types for other dates you want to enter.
8096 \end_layout
8097
8098 \begin_layout Itemize
8099
8100 \family sans
8101 Name
8102 \family default
8103 : sender's name, in the standard behavior appears as a centered paragraph
8104  in small caps in the letter`s heading.
8105 \end_layout
8106
8107 \begin_layout Itemize
8108
8109 \family sans
8110 Signature
8111 \family default
8112 : sender's signature, in the standard behavior appears below the 
8113 \family sans
8114 Closing
8115 \family default
8116  type.
8117  If no 
8118 \family sans
8119 Signature
8120 \family default
8121  type is used, the value of the 
8122 \family sans
8123 Name
8124 \family default
8125  type appears instead.
8126 \end_layout
8127
8128 \begin_layout Itemize
8129
8130 \family sans
8131 Address
8132 \family default
8133 : sender's address, in the standard behavior appears in a centered paragraph
8134  in the letter`s heading below the sender's name.
8135 \end_layout
8136
8137 \begin_layout Itemize
8138
8139 \family sans
8140 Telephone
8141 \family default
8142 : sender's telephone number, in the standard behavior only sets the LaTeX
8143  variable 
8144 \family typewriter
8145
8146 \backslash
8147 telephonenum
8148 \family default
8149 .
8150 \end_layout
8151
8152 \begin_layout Itemize
8153
8154 \family sans
8155 Place
8156 \family default
8157 : place of the letter`s making.
8158 \end_layout
8159
8160 \begin_layout Itemize
8161
8162 \family sans
8163 Date
8164 \family default
8165 : date of the letter`s making.
8166  
8167 \family sans
8168 Place
8169 \family default
8170  and 
8171 \family sans
8172 Date
8173 \family default
8174 , in the standard behavior, produce the place and the date in a right-aligned
8175  line below the addressee's field.
8176  If an empty 
8177 \family sans
8178 Date
8179 \family default
8180  type is used, neither place nor date appear, independent of the value of
8181  the 
8182 \family sans
8183 Place
8184 \family default
8185  type.
8186  If no 
8187 \family sans
8188 Date
8189 \family default
8190  type is used, the date of the letter `s production is used.
8191 \end_layout
8192
8193 \begin_layout Itemize
8194
8195 \family sans
8196 Backaddress
8197 \family default
8198 : sender`s back address, in the standard behavior appears above the addressee's
8199  field in a small sans serif font.
8200 \end_layout
8201
8202 \begin_layout Itemize
8203
8204 \family sans
8205 Specialmail
8206 \family default
8207 : special mail information, in the standard behavior appears underlined
8208  above the addressee's field below the back address.
8209 \end_layout
8210
8211 \begin_layout Itemize
8212
8213 \family sans
8214 Location
8215 \family default
8216 : additional information, in the standard behavior appears on right side
8217  below the addressee`s field.
8218 \end_layout
8219
8220 \begin_layout Itemize
8221
8222 \family sans
8223 Title
8224 \family default
8225 : the letter's title, in the standard behavior appears in a big, bold, sans
8226  serif font above the subject.
8227 \end_layout
8228
8229 \begin_layout Itemize
8230
8231 \family sans
8232 Subject
8233 \family default
8234 : the letter's subject, in the standard behavior appears in a bold font
8235  above the 
8236 \family sans
8237 Opening
8238 \family default
8239  paragraph.
8240 \end_layout
8241
8242 \begin_layout Standard
8243 The types 
8244 \family sans
8245 Yourref
8246 \family default
8247
8248 \family sans
8249 Yourmail
8250 \family default
8251
8252 \family sans
8253 Myref
8254 \family default
8255
8256 \family sans
8257 Customer
8258 \family default
8259 , and 
8260 \family sans
8261 Invoice
8262 \family default
8263  produce a business letter like line above the 
8264 \family sans
8265 Title
8266 \family default
8267  line containing the fields 
8268 \begin_inset Quotes eld
8269 \end_inset
8270
8271 Your ref.
8272 \begin_inset Quotes erd
8273 \end_inset
8274
8275
8276 \begin_inset Quotes eld
8277 \end_inset
8278
8279 Your letter of
8280 \begin_inset Quotes erd
8281 \end_inset
8282
8283
8284 \begin_inset Quotes eld
8285 \end_inset
8286
8287 Our ref.
8288 \begin_inset Quotes erd
8289 \end_inset
8290
8291
8292 \begin_inset Quotes eld
8293 \end_inset
8294
8295 Customer no.
8296 \begin_inset Quotes erd
8297 \end_inset
8298
8299
8300 \begin_inset Quotes eld
8301 \end_inset
8302
8303 Invoice no.
8304 \begin_inset Quotes erd
8305 \end_inset
8306
8307 , and 
8308 \begin_inset Quotes eld
8309 \end_inset
8310
8311 Date
8312 \begin_inset Quotes erd
8313 \end_inset
8314
8315 .
8316  For the date field, the value of the 
8317 \family sans
8318 Date
8319 \family default
8320  type is used.
8321  If one of these 
8322 \begin_inset Quotes eld
8323 \end_inset
8324
8325 business letter types
8326 \begin_inset Quotes erd
8327 \end_inset
8328
8329  is used, the value of the 
8330 \family sans
8331 Place
8332 \family default
8333  type however does not appear, but only the LaTeX variable 
8334 \family typewriter
8335
8336 \backslash
8337 fromplace
8338 \family default
8339  is set.
8340  The ordinary output of place and date in a right-aligned line below the
8341  addressee`s field is suppressed.
8342  The types are implemented as input types provided with a label and must
8343  be used ahead of the corresponding 
8344 \family sans
8345 Opening
8346 \family default
8347  type.
8348 \end_layout
8349
8350 \begin_layout Itemize
8351
8352 \family sans
8353 Yourref
8354 \family default
8355 : Your ref.
8356 \end_layout
8357
8358 \begin_layout Itemize
8359
8360 \family sans
8361 Yourmail
8362 \family default
8363 : Your letter of.
8364 \end_layout
8365
8366 \begin_layout Itemize
8367
8368 \family sans
8369 Myref
8370 \family default
8371 : Our ref.
8372 \end_layout
8373
8374 \begin_layout Itemize
8375
8376 \family sans
8377 Customer
8378 \family default
8379 : Customer no.
8380 \end_layout
8381
8382 \begin_layout Itemize
8383
8384 \family sans
8385 Invoice
8386 \family default
8387 : Invoice no.
8388 \end_layout
8389
8390 \begin_layout Subsection
8391 The new letter class: letter (koma-script v.2)
8392 \end_layout
8393
8394 \begin_layout Standard
8395 by 
8396 \noun on
8397 Jürgen Spitzmüller
8398 \end_layout
8399
8400 \begin_layout Standard
8401 \begin_inset VSpace medskip
8402 \end_inset
8403
8404
8405 \end_layout
8406
8407 \begin_layout Standard
8408 \noindent
8409 Koma-Script version 2.8 has introduced a new letter class 
8410 \family typewriter
8411 scrlttr2
8412 \family default
8413  which supersedes the now unsupported 
8414 \family typewriter
8415 scrlettr
8416 \family default
8417 .
8418  It has --- on the LaTeX side --- a completely new interface and is not
8419  compatible with the old class.
8420  Therefore, LyX supports both, though it is recommended to use the new class.
8421 \end_layout
8422
8423 \begin_layout Standard
8424 This class covers the same functionality as 
8425 \emph on
8426 letter (koma-script),
8427 \emph default
8428  and a few more.
8429  The basic items are 
8430 \family sans
8431 Address
8432 \family default
8433  (receiver's address, same as 
8434 \family sans
8435 Letter
8436 \family default
8437  in the old layout), 
8438 \family sans
8439 Opening
8440 \family default
8441 , and 
8442 \family sans
8443 Closing
8444 \family default
8445 .
8446  
8447 \family sans
8448 NextAddress
8449 \family default
8450  will start a new letter (i.
8451 \begin_inset ERT
8452 status collapsed
8453
8454 \begin_layout Standard
8455
8456
8457 \backslash
8458 ,
8459 \end_layout
8460
8461 \end_inset
8462
8463 e.
8464 \begin_inset ERT
8465 status collapsed
8466
8467 \begin_layout Standard
8468
8469
8470 \backslash
8471  
8472 \end_layout
8473
8474 \end_inset
8475
8476 you can write several letters per document).
8477  New elements are sender's 
8478 \family sans
8479 E-Mail
8480 \family default
8481
8482 \family sans
8483 URL
8484 \family default
8485
8486 \family sans
8487 Fax
8488 \family default
8489
8490 \family sans
8491 Bank
8492 \family default
8493  and the possibility to use a 
8494 \family sans
8495 Logo
8496 \family default
8497  (via 
8498 \family sans
8499 \bar under
8500 I
8501 \bar default
8502 nsert\SpecialChar \menuseparator
8503
8504 \bar under
8505 G
8506 \bar default
8507 raphics
8508 \family default
8509 ) in the header.
8510 \end_layout
8511
8512 \begin_layout Standard
8513 The biggest improvement is, though, that the letter's layout is configurable
8514  at almost any needs.
8515  This can be done via the preamble or with a special style file (Letter
8516  Class Option, extension 
8517 \family typewriter
8518 *.lco
8519 \family default
8520 ), that will be read in as a class option.
8521 \begin_inset Foot
8522 status collapsed
8523
8524 \begin_layout Standard
8525 The KOMA package comes with some default 
8526 \family typewriter
8527 *.lco
8528 \family default
8529  files.
8530  There is, for instance, a 
8531 \family typewriter
8532 DIN.lco
8533 \family default
8534  file that follows german typesetting rules, or a 
8535 \family typewriter
8536 KOMAold.lco
8537 \family default
8538  that provides the default layout of the old 
8539 \family typewriter
8540 scrlettr
8541 \family default
8542  class.
8543  The latter can be loaded with the class option 
8544 \family typewriter
8545 KOMAold
8546 \family default
8547 , inserted via the 
8548 \family sans
8549 \bar under
8550 L
8551 \bar default
8552 ayout\SpecialChar \menuseparator
8553
8554 \bar under
8555 D
8556 \bar default
8557 ocument\SpecialChar \menuseparator
8558 Extra Options
8559 \family default
8560  field.
8561 \end_layout
8562
8563 \end_inset
8564
8565  Have a look at the 
8566 \emph on
8567 koma-letter2
8568 \emph default
8569  template that is included in LyX for examples.
8570  A detailed description is to be found in the Koma-Script documentation
8571  (
8572 \emph on
8573 scrguide
8574 \emph default
8575 ).
8576 \end_layout
8577
8578 \begin_layout Subsection
8579 Problems
8580 \end_layout
8581
8582 \begin_layout Standard
8583 Visualizing the Koma-Script document classes in LyX, the LyX internals cause
8584  some problems.
8585 \end_layout
8586
8587 \begin_layout Itemize
8588 The chapter number of a 
8589 \family sans
8590 Chapter
8591 \family default
8592  type appears on a line of its own above the chapter heading instead of
8593  appearing in the same line ahead of it.
8594  The cause for that is the LyX internal behavior for the labeltype 
8595 \family sans
8596 Counter_Chapter
8597 \family default
8598  in the layout file.
8599 \end_layout
8600
8601 \begin_layout Itemize
8602 The headings of the types 
8603 \family sans
8604 Addchap
8605 \family default
8606  and 
8607 \family sans
8608 Addsec
8609 \family default
8610  are only put in the 
8611 \begin_inset Quotes eld
8612 \end_inset
8613
8614 true
8615 \begin_inset Quotes erd
8616 \end_inset
8617
8618  LaTeX table of contents, but not in the LyX table of contents (
8619 \family sans
8620 \bar under
8621 D
8622 \bar default
8623 ocument\SpecialChar \menuseparator
8624
8625 \bar under
8626 T
8627 \bar default
8628 able\InsetSpace ~
8629 of\InsetSpace ~
8630 Contents
8631 \family default
8632 ).
8633 \end_layout
8634
8635 \begin_layout Itemize
8636 The paragraphs in a 
8637 \emph on
8638 letter
8639 \emph default
8640  document class appear in a skip separation mode, not indented.
8641  This is the standard behavior, no special LaTeX commands are needed for
8642  that.
8643  But in the 
8644 \family sans
8645 \bar under
8646 D
8647 \bar default
8648 ocument\SpecialChar \menuseparator
8649
8650 \bar under
8651 S
8652 \bar default
8653 ettings
8654 \family default
8655  dialog the corresponding radio button indicates 
8656 \family sans
8657 \bar under
8658 I
8659 \bar default
8660 ndent
8661 \family default
8662 .
8663  A 
8664 \family sans
8665 S
8666 \bar under
8667 k
8668 \bar default
8669 ip
8670 \family default
8671  value always has the effect that extra LaTeX commands are inserted in the
8672  document to produce the gap, which is not what is wanted in this case.
8673 \end_layout
8674
8675 \begin_layout Section
8676 Springer Journals (
8677 \family sans
8678 svjour
8679 \family default
8680 )
8681 \end_layout
8682
8683 \begin_layout Standard
8684 by 
8685 \noun on
8686 Martin Vermeer
8687 \end_layout
8688
8689 \begin_layout Subsection
8690 Description
8691 \end_layout
8692
8693 \begin_layout Standard
8694 These are the layout files for some of the journal formats used by Springer
8695  Verlag and listed on 
8696 \begin_inset LatexCommand url
8697 target "http://www.springer.de/author/tex/help-journals.html"
8698
8699 \end_inset
8700
8701 , where you should also go to fetch the class files (yes, these are LaTeX2e
8702  now!).
8703  It is a modular system: the things common to all journals are implemented
8704  in 
8705 \family typewriter
8706 svjour.inc
8707 \family default
8708 , which journal-specific layout files (such as, e.\InsetSpace \thinspace{}
8709 g., 
8710 \family typewriter
8711 svjog.layout
8712 \family default
8713  for Journal of Geodesy) can include.
8714 \end_layout
8715
8716 \begin_layout Standard
8717 This means that implementing support for any other Springer journal on this
8718  list is as simple as writing your own 
8719 \family typewriter
8720 sv
8721 \family default
8722 <myjournal>
8723 \family typewriter
8724 .layout
8725 \family default
8726  file following the outline given in 
8727 \family typewriter
8728 svjog.layout
8729 \family default
8730 .
8731  
8732 \end_layout
8733
8734 \begin_layout Standard
8735 It is reasonably well tested only for the Journal of Geodesy.
8736  
8737 \family typewriter
8738 svjour
8739 \family default
8740  and 
8741 \family typewriter
8742 svjog
8743 \family default
8744  come with the standard LyX distribution.
8745  Install the relevant class file (downloaded from Springer) in a proper
8746  directory, reconfigure LaTeX (in the teTeX case by running 
8747 \family typewriter
8748 texhash
8749 \family default
8750 , as root if necessary --- doesn't LyX take care of this?), reconfigure
8751  LyX and it should work.
8752 \end_layout
8753
8754 \begin_layout Subsection
8755 New styles
8756 \end_layout
8757
8758 \begin_layout Standard
8759 A large number of theorem-like styles --- 
8760 \family sans
8761 Claim, Conjecture,
8762 \family default
8763  
8764 \family sans
8765 \SpecialChar \ldots{}
8766 Theorem
8767 \family default
8768 .
8769 \end_layout
8770
8771 \begin_layout Standard
8772
8773 \family sans
8774 Headnote, Dedication, Subtitle, Running_LaTeX_Title, Author_Running, Institute,
8775  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
8776 \family default
8777 .
8778  See the Springer class file documentation for details.
8779 \end_layout
8780
8781 \begin_layout Subsection
8782 Supported journals
8783 \end_layout
8784
8785 \begin_layout Itemize
8786
8787 \emph on
8788 Journal of Geodesy
8789 \emph default
8790
8791 \family typewriter
8792 svjog.layout
8793 \family default
8794  --- Martin Vermeer
8795 \end_layout
8796
8797 \begin_layout Itemize
8798
8799 \emph on
8800 Probability Theory and Related Fields
8801 \emph default
8802
8803 \family typewriter
8804 svprobth.layout
8805 \family default
8806  --- Jean-Marc Lasgouttes
8807 \end_layout
8808
8809 \begin_layout Standard
8810 Add your own, it isn't so hard!
8811 \end_layout
8812
8813 \begin_layout Subsection
8814 Credits
8815 \end_layout
8816
8817 \begin_layout Standard
8818 These files are partly based on the older 
8819 \family typewriter
8820 ejour2.layout
8821 \family default
8822 , which was again based on a tinkered-with version of an old LaTeX 2.09 style
8823  file from Springer.
8824  All this, and the 
8825 \family typewriter
8826 ejour2
8827 \family default
8828  layout, are now defunct.
8829  Jean-Marc Lasgouttes helped out big in making me find my way around the
8830  LyX layout file mechanism.
8831 \end_layout
8832
8833 \begin_layout Subsection
8834 Bugs
8835 \end_layout
8836
8837 \begin_layout Standard
8838 Probably.
8839  But probably less than in the old hacked-LaTeX 
8840 \family typewriter
8841 ejour2
8842 \family default
8843 .
8844 \end_layout
8845
8846 \begin_layout Standard
8847 Limitations e.\InsetSpace \thinspace{}
8848 g.: does not display the number for theorem-like layouts, just
8849  #.
8850 \end_layout
8851
8852 \begin_layout Section
8853 AGU journals (
8854 \family sans
8855 aguplus
8856 \family default
8857 )
8858 \end_layout
8859
8860 \begin_layout Standard
8861 by 
8862 \shape smallcaps
8863 Martin Vermeer
8864 \end_layout
8865
8866 \begin_layout Subsection
8867 Description
8868 \end_layout
8869
8870 \begin_layout Standard
8871 These are the layout files for some of the journals of the American Geophysical
8872  Society.
8873  It is assumed that you have both the AGU's own class files and AGUplus
8874  installed (everything to be found at
8875 \begin_inset LatexCommand url
8876 target "ftp://ftp.agu.org/journals/latex/journals"
8877
8878 \end_inset
8879
8880 ).
8881 \end_layout
8882
8883 \begin_layout Subsection
8884 New styles
8885 \end_layout
8886
8887 \begin_layout Standard
8888 Redefined are 
8889 \family sans
8890 Paragraph
8891 \family default
8892
8893 \family sans
8894 Paragraph*
8895 \family default
8896 .
8897  They are still called this in the LyX GUI, though their LaTeX equivalents
8898  in the AGU classes are 
8899 \family sans
8900 Subsubsubsection
8901 \family default
8902  and 
8903 \family sans
8904 Subsubsubsection*
8905 \family default
8906 .
8907 \end_layout
8908
8909 \begin_layout Standard
8910 Newly defined styles are 
8911 \family sans
8912 Left_Header
8913 \family default
8914
8915 \family sans
8916 Right_Header
8917 \family default
8918
8919 \family sans
8920 Received
8921 \family default
8922
8923 \family sans
8924 Revised
8925 \family default
8926
8927 \family sans
8928 Accepted
8929 \family default
8930
8931 \family sans
8932 CCC
8933 \family default
8934
8935 \family sans
8936 PaperId
8937 \family default
8938
8939 \family sans
8940 AuthorAddr
8941 \family default
8942
8943 \family sans
8944 SlugComment
8945 \family default
8946 .
8947  These are mostly manuscript attributes and defined in the AGU class documentati
8948 on.
8949 \end_layout
8950
8951 \begin_layout Standard
8952 I suspect this is still badly incomplete.
8953 \end_layout
8954
8955 \begin_layout Subsection
8956 New floats
8957 \end_layout
8958
8959 \begin_layout Standard
8960
8961 \family sans
8962 Planotable
8963 \family default
8964  and 
8965 \family sans
8966 Plate
8967 \family default
8968 .
8969  We also have a new 
8970 \family sans
8971 Table_Caption
8972 \family default
8973 .
8974 \end_layout
8975
8976 \begin_layout Subsection
8977 Supported journals
8978 \end_layout
8979
8980 \begin_layout Itemize
8981
8982 \emph on
8983 Journal of Geophysical Research
8984 \emph default
8985
8986 \family typewriter
8987 jgrga.layout
8988 \family default
8989  --- Martin Vermeer
8990 \end_layout
8991
8992 \begin_layout Standard
8993 Add your own, it isn't so hard! Look at the 
8994 \family typewriter
8995 jgrga.layout
8996 \family default
8997  example and 
8998 \family typewriter
8999 aguplus.inc
9000 \family default
9001 .
9002 \end_layout
9003
9004 \begin_layout Subsection
9005 Bugs and things to remember
9006 \end_layout
9007
9008 \begin_layout Standard
9009 In order to use the new layouts, you must remember to do the following for
9010  a new document:
9011 \end_layout
9012
9013 \begin_layout Enumerate
9014
9015 \emph on
9016 Turn off babel
9017 \emph default
9018 .
9019  This can be done in the 
9020 \family sans
9021 layout\SpecialChar \menuseparator
9022 document
9023 \family default
9024  or 
9025 \family sans
9026 document\SpecialChar \menuseparator
9027 settings
9028 \family default
9029  menu item.
9030  (AGU articles are always in English, right? So 
9031 \emph on
9032 don't
9033 \emph default
9034  choose a language.)
9035 \end_layout
9036
9037 \begin_layout Enumerate
9038 Enter 
9039 \family typewriter
9040 jgrga
9041 \family default
9042  into the document's 
9043 \family sans
9044 Extra Options
9045 \family default
9046  field.
9047  (Yes, this is a bug.)
9048 \end_layout
9049
9050 \begin_layout Enumerate
9051 Make sure you use the 
9052 \family typewriter
9053 agu.bst
9054 \family default
9055  bibliography style, by entering 
9056 \family sans
9057 agu
9058 \family default
9059  into the second field of the BibTeX inset.
9060  None of the standard styles will do.
9061 \end_layout
9062
9063 \begin_layout Section
9064 EGS journals (
9065 \family sans
9066 egs
9067 \family default
9068 )
9069 \end_layout
9070
9071 \begin_layout Standard
9072 by 
9073 \shape smallcaps
9074 Martin Vermeer
9075 \end_layout
9076
9077 \begin_layout Subsection
9078 Description
9079 \end_layout
9080
9081 \begin_layout Standard
9082 This is the layout file for the European Geophysical Society journals.
9083  The needed 
9084 \family typewriter
9085 egs.cls
9086 \family default
9087  can be downloaded from the web site of the EGS under 
9088 \begin_inset LatexCommand url
9089 target "www.copernicus.org"
9090
9091 \end_inset
9092
9093 .
9094 \end_layout
9095
9096 \begin_layout Subsection
9097 New styles
9098 \end_layout
9099
9100 \begin_layout Standard
9101
9102 \family sans
9103 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
9104  Accepted
9105 \family default
9106
9107 \family sans
9108 Offsets
9109 \family default
9110 .
9111  The current layout file is unfortunately very unmodular and would benefit
9112  from using the various 
9113 \family typewriter
9114 std*.inc
9115 \family default
9116  file inclusions.
9117 \end_layout
9118
9119 \begin_layout Section
9120 Slides [aka 
9121 \noun on
9122 Sli
9123 \noun default
9124 TeX]
9125 \begin_inset LatexCommand label
9126 name "sec:slitex"
9127
9128 \end_inset
9129
9130
9131 \end_layout
9132
9133 \begin_layout Standard
9134 by 
9135 \noun on
9136 John Weiss
9137 \noun default
9138  
9139 \end_layout
9140
9141 \begin_layout Subsection
9142 Introduction
9143 \end_layout
9144
9145 \begin_layout Standard
9146 This section describes how to use LyX to make slides for overhead projectors.
9147  There are two document classes that can do this: the default slides class
9148  and the 
9149 \family sans
9150 Foil
9151 \family default
9152 TeX slides class.
9153  This section documents the former.
9154 \end_layout
9155
9156 \begin_layout Standard
9157 I'm going to say this again, nice and clear, so that there's no misunderstanding
9158 :
9159 \end_layout
9160
9161 \begin_layout Standard
9162 \begin_inset VSpace bigskip
9163 \end_inset
9164
9165
9166 \end_layout
9167
9168 \begin_layout Standard
9169 \align center
9170
9171 \size large
9172 This section documents the class 
9173 \begin_inset Quotes eld
9174 \end_inset
9175
9176
9177 \family sans
9178 slides (default)
9179 \family default
9180
9181 \begin_inset Quotes erd
9182 \end_inset
9183
9184  
9185 \emph on
9186 only.
9187 \end_layout
9188
9189 \begin_layout Standard
9190 \begin_inset VSpace bigskip
9191 \end_inset
9192
9193
9194 \end_layout
9195
9196 \begin_layout Standard
9197 If you're looking for the documentation for 
9198 \begin_inset Quotes eld
9199 \end_inset
9200
9201
9202 \family sans
9203 slides (FoilTeX)
9204 \family default
9205
9206 \begin_inset Quotes erd
9207 \end_inset
9208
9209 , check out section\InsetSpace ~
9210
9211 \begin_inset LatexCommand ref
9212 reference "sec:foiltex"
9213
9214 \end_inset
9215
9216 .
9217  The 
9218 \family sans
9219 foils
9220 \family default
9221  class [
9222 \begin_inset Quotes eld
9223 \end_inset
9224
9225
9226 \family sans
9227 slides (FoilTeX)
9228 \family default
9229
9230 \begin_inset Quotes erd
9231 \end_inset
9232
9233 ] is actually somewhat better than the default 
9234 \family sans
9235 slides
9236 \family default
9237  class,
9238 \begin_inset Foot
9239 status collapsed
9240
9241 \begin_layout Standard
9242 \SpecialChar \ldots{}
9243 or so I've been told repeatedly by its advocates.
9244  Having never used it, I have no idea if this claim is true or not.
9245 \end_layout
9246
9247 \end_inset
9248
9249  which this section documents.
9250 \end_layout
9251
9252 \begin_layout Standard
9253 This class is the LaTeX2e improvement of the old 
9254 \noun on
9255 Sli
9256 \noun default
9257 TeX package.
9258  Every LaTeX2e distribution includes this class [which I'll just refer to
9259  as 
9260 \begin_inset Quotes eld
9261 \end_inset
9262
9263
9264 \family sans
9265 slides
9266 \family default
9267
9268 \begin_inset Quotes erd
9269 \end_inset
9270
9271  from now on], so you're bound to have it.
9272  As I noted earlier, there are other classes, such as 
9273 \family sans
9274 foils
9275 \family default
9276 , which also produce slides for overhead projectors and do a better job
9277  at it.
9278  However, there are some things which 
9279 \family sans
9280 slides
9281 \family default
9282  can do which the others can't, such as generate overlays.
9283  Read on to learn more!
9284 \end_layout
9285
9286 \begin_layout Subsection
9287 Getting Started
9288 \begin_inset LatexCommand label
9289 name "sec:slidesetup"
9290
9291 \end_inset
9292
9293
9294 \end_layout
9295
9296 \begin_layout Standard
9297 Obviously, to use this document class, you need to select 
9298 \begin_inset Quotes eld
9299 \end_inset
9300
9301
9302 \family sans
9303 slides (default)
9304 \family default
9305
9306 \begin_inset Quotes erd
9307 \end_inset
9308
9309  from the class list in the 
9310 \family sans
9311 \bar under
9312 D
9313 \bar default
9314 ocument\SpecialChar \menuseparator
9315
9316 \bar under
9317 S
9318 \bar default
9319 ettings
9320 \family default
9321  dialog.
9322  There are some other special things you should know about this class:
9323 \end_layout
9324
9325 \begin_layout Itemize
9326 Don't bother changing the options 
9327 \family sans
9328 Sides and Columns
9329 \family default
9330 .
9331  They're not supported by the 
9332 \family sans
9333 slides
9334 \family default
9335  class, anyways.
9336 \end_layout
9337
9338 \begin_layout Itemize
9339 The option 
9340 \family sans
9341 \bar under
9342 P
9343 \bar default
9344 age\InsetSpace ~
9345 style
9346 \family default
9347  behaves a bit differently for this class.
9348  The possible choices and what they do are as follows:
9349 \end_layout
9350
9351 \begin_deeper
9352 \begin_layout Description
9353
9354 \family sans
9355 plain
9356 \family default
9357  The final output contains page numbers in the lower right corner.
9358 \end_layout
9359
9360 \begin_layout Description
9361
9362 \family sans
9363 headings
9364 \family default
9365  Like 
9366 \family sans
9367 plain
9368 \family default
9369 , but also prints out any time markers you've put in.
9370  This is the default.
9371 \end_layout
9372
9373 \begin_layout Description
9374
9375 \family sans
9376 empty
9377 \family default
9378  The final output contains no page numbers, time markers, or alignment markers.
9379 \end_layout
9380
9381 \end_deeper
9382 \begin_layout Itemize
9383 The 
9384 \family sans
9385 slides
9386 \family default
9387  class has an extra option: 
9388 \family typewriter
9389 clock
9390 \family default
9391 .
9392  To use it, put 
9393 \begin_inset Quotes eld
9394 \end_inset
9395
9396
9397 \family typewriter
9398 clock
9399 \family default
9400
9401 \begin_inset Quotes erd
9402 \end_inset
9403
9404  in the extra class options.
9405 \end_layout
9406
9407 \begin_deeper
9408 \begin_layout Standard
9409 Using this options allows you to add time markers to 
9410 \family sans
9411 Note
9412 \family default
9413 s.
9414  See section\InsetSpace ~
9415
9416 \begin_inset LatexCommand ref
9417 reference "sec:slideNote"
9418
9419 \end_inset
9420
9421  for more details.
9422 \end_layout
9423
9424 \end_deeper
9425 \begin_layout Standard
9426 You can also use the template file 
9427 \begin_inset Quotes eld
9428 \end_inset
9429
9430
9431 \family typewriter
9432 slides.lyx
9433 \family default
9434
9435 \begin_inset Quotes erd
9436 \end_inset
9437
9438  to automatically set up a document to use the 
9439 \family sans
9440 slides
9441 \family default
9442  class [using 
9443 \family sans
9444 \bar under
9445 F
9446 \bar default
9447 ile\SpecialChar \menuseparator
9448 New\InsetSpace ~
9449 from\InsetSpace ~
9450
9451 \bar under
9452 T
9453 \bar default
9454 emplate
9455 \family default
9456  to open your new document].
9457  The template file also contains some examples of the special paragraph
9458  environments used by this class.
9459  I'll describe those next.
9460 \end_layout
9461
9462 \begin_layout Subsection
9463 Paragraph Environments
9464 \end_layout
9465
9466 \begin_layout Subsubsection
9467 Supported Environments
9468 \end_layout
9469
9470 \begin_layout Standard
9471 The first thing you'll notice when you start up a new 
9472 \family sans
9473 slides
9474 \family default
9475  document is the font size and type: it's the equivalent of the size 
9476 \begin_inset Quotes eld
9477 \end_inset
9478
9479
9480 \family sans
9481 Largest
9482 \family default
9483
9484 \begin_inset Quotes erd
9485 \end_inset
9486
9487  in the 
9488 \family sans
9489 Sans\InsetSpace ~
9490 Serif
9491 \family default
9492  font.
9493  This is also what's used in the output.
9494  Think of this as a 
9495 \begin_inset Quotes eld
9496 \end_inset
9497
9498 visual cue
9499 \begin_inset Quotes erd
9500 \end_inset
9501
9502  to remind you that this is a slide.
9503  Your final slides will use a larger font; ergo, you'll have less space.
9504  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
9505 \end_layout
9506
9507 \begin_layout Standard
9508 The next thing that becomes obvious is the changes to the paragraph environment
9509  pull-down box [at the far-left end of the toolbar].
9510  Most of the paragraph environments you're used to seeing are missing.
9511  There are also five new ones.
9512  That's because the 
9513 \family sans
9514 slides
9515 \family default
9516  class itself only supports certain paragraph environments:
9517 \end_layout
9518
9519 \begin_layout Itemize
9520
9521 \family sans
9522 Standard
9523 \end_layout
9524
9525 \begin_layout Itemize
9526
9527 \family sans
9528 Itemize
9529 \end_layout
9530
9531 \begin_layout Itemize
9532
9533 \family sans
9534 Enumerate
9535 \end_layout
9536
9537 \begin_layout Itemize
9538
9539 \family sans
9540 Description
9541 \end_layout
9542
9543 \begin_layout Itemize
9544
9545 \family sans
9546 List
9547 \end_layout
9548
9549 \begin_layout Itemize
9550
9551 \family sans
9552 Quotation
9553 \end_layout
9554
9555 \begin_layout Itemize
9556
9557 \family sans
9558 Quote
9559 \end_layout
9560
9561 \begin_layout Itemize
9562
9563 \family sans
9564 Verse
9565 \end_layout
9566
9567 \begin_layout Itemize
9568
9569 \family sans
9570 Caption
9571 \end_layout
9572
9573 \begin_layout Itemize
9574
9575 \family sans
9576 LyX-Code
9577 \end_layout
9578
9579 \begin_layout Itemize
9580
9581 \family sans
9582 Comment
9583 \end_layout
9584
9585 \begin_layout Standard
9586 All of the other standard environments, including the section-heading environmen
9587 ts, aren't used in the 
9588 \family sans
9589 slides
9590 \family default
9591  class.
9592 \end_layout
9593
9594 \begin_layout Standard
9595 On the other hand, you'll notice the following new environments:
9596 \end_layout
9597
9598 \begin_layout Itemize
9599
9600 \family sans
9601 Slide
9602 \end_layout
9603
9604 \begin_layout Itemize
9605
9606 \family sans
9607 Overlay
9608 \end_layout
9609
9610 \begin_layout Itemize
9611
9612 \family sans
9613 Note
9614 \end_layout
9615
9616 \begin_layout Itemize
9617
9618 \family sans
9619 InvisibleText
9620 \end_layout
9621
9622 \begin_layout Itemize
9623
9624 \family sans
9625 VisibleText
9626 \end_layout
9627
9628 \begin_layout Standard
9629 These five are kind of quirky, due to a 
9630 \begin_inset Quotes eld
9631 \end_inset
9632
9633 feature
9634 \begin_inset Quotes erd
9635 \end_inset
9636
9637  in LyX.
9638  You see, LyX doesn't permit you to nest any other paragraph environment
9639  into an empty environment.
9640  Now, that's fine and dandy, but it means that you wouldn't be able to start
9641  a slide with anything except plain text.
9642  To deal with this, I've performed a little 
9643 \begin_inset Quotes eld
9644 \end_inset
9645
9646 LaTeX magic.
9647 \begin_inset Quotes erd
9648 \end_inset
9649
9650  
9651 \end_layout
9652
9653 \begin_layout Subsubsection
9654 Quirks of the New Environments
9655 \begin_inset LatexCommand label
9656 name "sec:slideQuirk"
9657
9658 \end_inset
9659
9660
9661 \end_layout
9662
9663 \begin_layout Standard
9664 All five of the new paragraph environments are somewhat quirky due to inherent
9665  limitiations in the current version of LyX.
9666  As I just mentioned, LyX forbids environments that begin with another environme
9667 nt.
9668  To get around this, the 
9669 \family sans
9670 Slide
9671 \family default
9672  environment isn't a paragraph environment as described in the 
9673 \emph on
9674 User's Guide
9675 \emph default
9676 .
9677  
9678 \end_layout
9679
9680 \begin_layout Standard
9681 You should consider 
9682 \family sans
9683 Slide
9684 \family default
9685
9686 \family sans
9687 Overlay
9688 \family default
9689 , and 
9690 \family sans
9691 Note
9692 \family default
9693  to be 
9694 \begin_inset Quotes eld
9695 \end_inset
9696
9697 pseudo-environments.
9698 \begin_inset Quotes erd
9699 \end_inset
9700
9701  They look like a section heading or a 
9702 \begin_inset Quotes eld
9703 \end_inset
9704
9705
9706 \family sans
9707 Caption
9708 \family default
9709 ,
9710 \begin_inset Quotes erd
9711 \end_inset
9712
9713  but really begin a [and, if necessary, end the previous] paragraph environment.
9714  Likewise, treat 
9715 \family sans
9716 InvisibleText
9717 \family default
9718  and 
9719 \family sans
9720 VisibleText
9721 \family default
9722  as 
9723 \begin_inset Quotes eld
9724 \end_inset
9725
9726 pseudo-commands.
9727 \begin_inset Quotes erd
9728 \end_inset
9729
9730  These two perform some action.
9731 \end_layout
9732
9733 \begin_layout Standard
9734 A common feature of all five environments, 
9735 \family sans
9736 Slide
9737 \family default
9738
9739 \family sans
9740 Overlay
9741 \family default
9742
9743 \family sans
9744 Note
9745 \family default
9746
9747 \family sans
9748 InvisibleText
9749 \family default
9750  and 
9751 \family sans
9752 VisibleText
9753 \family default
9754 , is a rather long-ish label.
9755  The text following this label --- ordinarily the contents of the paragraph
9756  environment --- is utterly irrelevant for 
9757 \family sans
9758 Slide
9759 \family default
9760
9761 \family sans
9762 Overlay
9763 \family default
9764
9765 \family sans
9766 Note
9767 \family default
9768
9769 \family sans
9770 InvisibleText
9771 \family default
9772  and 
9773 \family sans
9774 VisibleText
9775 \family default
9776 .
9777  LyX completely ignores it.
9778  In fact, you can leave these five environments completely empty.
9779  
9780 \end_layout
9781
9782 \begin_layout Standard
9783 While you don't 
9784 \emph on
9785 have
9786 \emph default
9787  to put any text after the rather long-ish label, you might want to.
9788  This could be a short description of the contents of the 
9789 \family sans
9790 Slide
9791 \family default
9792 , for example.
9793  In that case, enter in your descriptive comment and hit 
9794 \family sans
9795 Return
9796 \family default
9797  as you normally would.
9798 \end_layout
9799
9800 \begin_layout Standard
9801 If, on the other hand, you don't want to enter in any descriptive text,
9802  you'll hit another LyX quirk.
9803  LyX, like nature, abhors a vacuum, and will not let you start a new paragraph
9804  environment until you put something in the old one.
9805  So, do this:
9806 \end_layout
9807
9808 \begin_layout Itemize
9809 Start entering the text that will 
9810 \emph on
9811 follow
9812 \emph default
9813  the new 
9814 \family sans
9815 Slide
9816 \family default
9817
9818 \family sans
9819 Overlay
9820 \family default
9821
9822 \family sans
9823 Note
9824 \family default
9825
9826 \family sans
9827 InvisibleText
9828 \family default
9829  or 
9830 \family sans
9831 VisibleText
9832 \family default
9833 .
9834  
9835 \end_layout
9836
9837 \begin_layout Itemize
9838 Now move to the beginning of that paragraph.
9839  
9840 \end_layout
9841
9842 \begin_layout Itemize
9843 Next, hit 
9844 \family sans
9845 Return
9846 \family default
9847 .
9848  
9849 \end_layout
9850
9851 \begin_layout Itemize
9852 Finally, change this new, empty paragraph to a 
9853 \family sans
9854 Slide
9855 \family default
9856
9857 \family sans
9858 Overlay
9859 \family default
9860
9861 \family sans
9862 Note
9863 \family default
9864
9865 \family sans
9866 InvisibleText
9867 \family default
9868  or 
9869 \family sans
9870 VisibleText
9871 \family default
9872 .
9873  
9874 \end_layout
9875
9876 \begin_layout Standard
9877 Some future version of LyX will, hopefully, resolve this quirkiness\SpecialChar \ldots{}
9878
9879 \end_layout
9880
9881 \begin_layout Subsection
9882 Making a Presentation with 
9883 \family sans
9884 Slide
9885 \family default
9886
9887 \family sans
9888 Overlay
9889 \family default
9890  and 
9891 \family sans
9892 Note
9893 \end_layout
9894
9895 \begin_layout Subsubsection
9896 Using the 
9897 \family sans
9898 Slide
9899 \family default
9900  Environment
9901 \end_layout
9902
9903 \begin_layout Standard
9904 If you're expecting this section to teach you how to actually make a presentatio
9905 n, you'll be sorely disappointed.
9906  Naturally, I'll describe all of the ways the 
9907 \family sans
9908 slides
9909 \family default
9910  class can assist you in preparing the materials for a presentation.
9911  Filling in the contents, however, is up to you.
9912  [Then again, that 
9913 \emph on
9914 is
9915 \emph default
9916  the LyX philosophy.]
9917 \end_layout
9918
9919 \begin_layout Standard
9920 Choosing the 
9921 \family sans
9922 Slide
9923 \family default
9924  environment [in the manner described in section\InsetSpace ~
9925
9926 \begin_inset LatexCommand ref
9927 reference "sec:slideQuirk"
9928
9929 \end_inset
9930
9931 ] tells LyX to begin a new slide [duh].
9932  The label for this environment/
9933 \begin_inset Quotes erd
9934 \end_inset
9935
9936 pseudo-command
9937 \begin_inset Quotes erd
9938 \end_inset
9939
9940  is an 
9941 \begin_inset Quotes eld
9942 \end_inset
9943
9944 ASCII line,
9945 \begin_inset Quotes erd
9946 \end_inset
9947
9948  in cool blue, followed by the label, 
9949 \begin_inset Quotes eld
9950 \end_inset
9951
9952 NewSlide:
9953 \begin_inset Quotes erd
9954 \end_inset
9955
9956 .
9957  Any text or paragraph environments that follow this one go on the new slide.
9958  It's that simple.
9959 \end_layout
9960
9961 \begin_layout Standard
9962 Slides are probably the only time you'll need to forcibly end pages in LyX
9963  (this can be specified in the 
9964 \family sans
9965 Paragraph Layout
9966 \family default
9967  dialog).
9968  In fact, you'll want to, once you finish entering the contents of one slide.
9969  If you've entered more text than can physically fit on a slide, the extra
9970  overflows onto a new slide.
9971  I don't recommend doing this, however, since the overflow slide won't have
9972  any page number on it.
9973  Furthermore, it may interfere with any 
9974 \family sans
9975 Overlay
9976 \family default
9977  you've made to accompany the oversized 
9978 \family sans
9979 Slide
9980 \family default
9981 .
9982 \end_layout
9983
9984 \begin_layout Standard
9985 The 
9986 \family sans
9987 Overlay
9988 \family default
9989  and 
9990 \family sans
9991 Note
9992 \family default
9993  environments work the same way as the 
9994 \family sans
9995 Slide
9996 \family default
9997  environment.
9998  They both create an 
9999 \begin_inset Quotes eld
10000 \end_inset
10001
10002 ASCII line
10003 \begin_inset Quotes erd
10004 \end_inset
10005
10006  followed by a label [
10007 \begin_inset Quotes eld
10008 \end_inset
10009
10010 NewOverlay:
10011 \begin_inset Quotes erd
10012 \end_inset
10013
10014  and 
10015 \begin_inset Quotes eld
10016 \end_inset
10017
10018 NewNote:
10019 \begin_inset Quotes erd
10020 \end_inset
10021
10022 , respectively].
10023  The color is a stunning magenta instead of blue, and the 
10024 \begin_inset Quotes eld
10025 \end_inset
10026
10027 ASCII line
10028 \begin_inset Quotes erd
10029 \end_inset
10030
10031  will look different, in style and in length.
10032  The label fonts of all three also differ from one another.
10033 \end_layout
10034
10035 \begin_layout Standard
10036 As with a 
10037 \family sans
10038 Slide
10039 \family default
10040 , if the contents of a 
10041 \family sans
10042 Note
10043 \family default
10044  or 
10045 \family sans
10046 Overlay
10047 \family default
10048  exceed the physical size of a slide or sheet of paper, the extra will overflow
10049  onto a new sheet.
10050  Again, you should avoid this.
10051  It defeats the whole purpose of 
10052 \family sans
10053 Note
10054 \family default
10055 s and 
10056 \family sans
10057 Overlay
10058 \family default
10059 s.
10060 \end_layout
10061
10062 \begin_layout Subsubsection
10063 Using 
10064 \family sans
10065 Overlay
10066 \family default
10067  with 
10068 \family sans
10069 Slide
10070 \end_layout
10071
10072 \begin_layout Standard
10073 The idea behind an 
10074 \family sans
10075 Overlay
10076 \family default
10077  is a slide that sits atop another slide.
10078  Perhaps you wish to discuss a figure on the main 
10079 \family sans
10080 Slide
10081 \family default
10082  before displaying the text associated with it.
10083  One way to accomplish this is tape a flap of dark paper over the part of
10084  the 
10085 \family sans
10086 Slide
10087 \family default
10088  you want to display later.
10089  This method fails, however, if you wish to overlap one graph with another,
10090  for example.
10091  You would then have to fumble while speaking to align the two separate,
10092  overlapping 
10093 \family sans
10094 Slide
10095 \family default
10096 s to align the two graphs.
10097  The use of an 
10098 \family sans
10099 Overlay
10100 \family default
10101  environment in both cases makes life much easier.
10102 \end_layout
10103
10104 \begin_layout Standard
10105 Each 
10106 \family sans
10107 Overlay
10108 \family default
10109  receives the page number of its 
10110 \begin_inset Quotes eld
10111 \end_inset
10112
10113 parent
10114 \begin_inset Quotes erd
10115 \end_inset
10116
10117  
10118 \family sans
10119 Slide
10120 \family default
10121 , appended by 
10122 \begin_inset Quotes eld
10123 \end_inset
10124
10125
10126 \family typewriter
10127 -a
10128 \family default
10129
10130 \begin_inset Quotes erd
10131 \end_inset
10132
10133 .
10134 \begin_inset Foot
10135 status collapsed
10136
10137 \begin_layout Standard
10138 Presumably, mutliple 
10139 \family sans
10140 Overlay
10141 \family default
10142 s would have 
10143 \begin_inset Quotes eld
10144 \end_inset
10145
10146
10147 \family typewriter
10148 -a
10149 \family default
10150
10151 \begin_inset Quotes erd
10152 \end_inset
10153
10154
10155 \begin_inset Quotes eld
10156 \end_inset
10157
10158
10159 \family typewriter
10160 -b
10161 \family default
10162
10163 \begin_inset Quotes erd
10164 \end_inset
10165
10166
10167 \begin_inset Quotes eld
10168 \end_inset
10169
10170
10171 \family typewriter
10172 -c
10173 \family default
10174
10175 \begin_inset Quotes erd
10176 \end_inset
10177
10178 , etc.\InsetSpace ~
10179 appended to the page number of the parent 
10180 \family sans
10181 Slide
10182 \family default
10183 .
10184  
10185 \end_layout
10186
10187 \end_inset
10188
10189  Clearly, you want the contents of both the 
10190 \family sans
10191 Slide
10192 \family default
10193  and the 
10194 \family sans
10195 Overlay
10196 \family default
10197  to each fit on a single physical slide! You should probably consider an
10198  
10199 \family sans
10200 Overlay
10201 \family default
10202  as 
10203 \begin_inset Quotes eld
10204 \end_inset
10205
10206 part of
10207 \begin_inset Quotes erd
10208 \end_inset
10209
10210  a 
10211 \family sans
10212 Slide
10213 \family default
10214 .
10215  Indeed, the LyX 
10216 \family sans
10217 slides
10218 \family default
10219  class provides a visual cue for this: the label at the start of an 
10220 \family sans
10221 Overlay
10222 \family default
10223  is shorter than that at the start of a 
10224 \family sans
10225 Slide
10226 \family default
10227 .
10228  Lastly, when you generate printable output, you'll find alignment markers
10229  in all four corners of both the 
10230 \family sans
10231 Overlay
10232 \family default
10233  page and its parent 
10234 \family sans
10235 Slide
10236 \family default
10237 .
10238  These will assist you in lining up the two physical slides.
10239 \end_layout
10240
10241 \begin_layout Standard
10242 The major problem in overlaying two slides is aligning the contents of the
10243  two transparencies.
10244  How much space should you leave for that graph on the second slide? Worse
10245  still, what if you want a graph and a sentence on second slide, but there
10246  is text on the main transparency that goes in between them? You could try
10247  and insert vertical space of the right size.
10248  The better way is to use 
10249 \family sans
10250 InvisibleText
10251 \family default
10252  and 
10253 \family sans
10254 VisibleText
10255 \family default
10256 .
10257 \end_layout
10258
10259 \begin_layout Standard
10260 As their names imply, 
10261 \family sans
10262 InvisibleText
10263 \family default
10264  and 
10265 \family sans
10266 VisibleText
10267 \family default
10268  are two command-like paragraph environments that make all subsequent text
10269  invisible and visible, respectively.
10270  Note from section\InsetSpace ~
10271
10272 \begin_inset LatexCommand ref
10273 reference "sec:slideQuirk"
10274
10275 \end_inset
10276
10277  that you don't place anything 
10278 \emph on
10279 into
10280 \emph default
10281  these two environments, however.
10282  When you create an 
10283 \family sans
10284 InvisibleText
10285 \family default
10286 , it inserts a centered, sky-blue label into the page reading 
10287 \begin_inset Quotes eld
10288 \end_inset
10289
10290 <Invisible Text Follows>
10291 \begin_inset Quotes erd
10292 \end_inset
10293
10294 .
10295  For paragraphs following this label, the parts of the 
10296 \family sans
10297 Slide
10298 \family default
10299  [or 
10300 \family sans
10301 Overlay
10302 \family default
10303 ; it doesn't matter which] where they would be contain instead blank space.
10304  
10305 \end_layout
10306
10307 \begin_layout Standard
10308 For 
10309 \family sans
10310 VisibleText
10311 \family default
10312 , the corresponding centered label is 
10313 \begin_inset Quotes eld
10314 \end_inset
10315
10316 <Visible Text Follows>
10317 \begin_inset Quotes erd
10318 \end_inset
10319
10320  in blazing green.
10321  Paragraphs following this label behave normally.
10322  Note that the beginning of a new 
10323 \family sans
10324 Slide
10325 \family default
10326
10327 \family sans
10328 Overlay
10329 \family default
10330 , or 
10331 \family sans
10332 Note
10333 \family default
10334  automatically shuts off an 
10335 \family sans
10336 InvisibleText
10337 \family default
10338 .
10339  It's therefore not necessary to use 
10340 \family sans
10341 VisibleText
10342 \family default
10343  at the end of a 
10344 \family sans
10345 Slide
10346 \family default
10347 .
10348 \end_layout
10349
10350 \begin_layout Standard
10351 By now, it should be obvious how to create overlay transparencies using
10352  the proper combination of 
10353 \family sans
10354 InvisibleText
10355 \family default
10356  and 
10357 \family sans
10358 VisibleText
10359 \family default
10360  on a 
10361 \family sans
10362 Slide
10363 \family default
10364  and 
10365 \family sans
10366 Overlay
10367 \family default
10368 :
10369 \end_layout
10370
10371 \begin_layout Enumerate
10372 Create a 
10373 \family sans
10374 Slide
10375 \family default
10376 , including everything that will appear on it, whether on the main slide
10377  or on the 
10378 \family sans
10379 Overlay
10380 \family default
10381 .
10382 \end_layout
10383
10384 \begin_layout Enumerate
10385 Before each figure or paragraph that will appear only on the 
10386 \family sans
10387 Overlay
10388 \family default
10389 , insert an 
10390 \family sans
10391 InvisibleText
10392 \family default
10393  environment.
10394  If necessary, insert a 
10395 \family sans
10396 VisibleText
10397 \family default
10398  environment after the 
10399 \family sans
10400 Overlay
10401 \family default
10402 -only text.
10403 \end_layout
10404
10405 \begin_layout Enumerate
10406 Start an 
10407 \family sans
10408 Overlay
10409 \family default
10410  immediately following the 
10411 \family sans
10412 Slide
10413 \family default
10414 .
10415 \end_layout
10416
10417 \begin_layout Enumerate
10418 Copy the contents of this 
10419 \family sans
10420 Slide
10421 \family default
10422  into the 
10423 \family sans
10424 Overlay
10425 \family default
10426 .
10427 \end_layout
10428
10429 \begin_layout Enumerate
10430 Within the 
10431 \family sans
10432 Overlay
10433 \family default
10434 , change all of the 
10435 \family sans
10436 InvisibleText
10437 \family default
10438  lines to 
10439 \family sans
10440 VisibleText
10441 \family default
10442  and vice-versa.
10443 \end_layout
10444
10445 \begin_layout Standard
10446 That's it.
10447  You've just made an 
10448 \family sans
10449 Overlay
10450 \family default
10451 .
10452 \end_layout
10453
10454 \begin_layout Standard
10455 There's one problem with the way I've designed the LyX 
10456 \family sans
10457 slides
10458 \family default
10459  class: you can't make text in the middle of a paragraph invisible, nor
10460  make text in the middle of an invisible paragraph visible again.
10461  To accomplish this feat, you'll need to use some inlined LaTeX codes.
10462 \begin_inset Foot
10463 status collapsed
10464
10465 \begin_layout Standard
10466 The commands of interest are: 
10467 \end_layout
10468
10469 \begin_layout Itemize
10470
10471 \family typewriter
10472 {
10473 \backslash
10474 invisible \SpecialChar \ldots{}
10475  }
10476 \end_layout
10477
10478 \begin_layout Itemize
10479
10480 \family typewriter
10481 {
10482 \backslash
10483 visible \SpecialChar \ldots{}
10484  }
10485 \end_layout
10486
10487 \begin_layout Standard
10488 \SpecialChar \ldots{}
10489 and need to be marked as TeX.
10490  The text whose 
10491 \begin_inset Quotes eld
10492 \end_inset
10493
10494 visibility
10495 \begin_inset Quotes erd
10496 \end_inset
10497
10498  you wish to change goes in between the brackets [and after the 
10499 \family typewriter
10500
10501 \backslash
10502 invisible
10503 \family default
10504  or 
10505 \family typewriter
10506
10507 \backslash
10508 visible
10509 \family default
10510  command].
10511  If you don't know how to mark text as TeX, see the appropriate section
10512  of the 
10513 \emph on
10514 User's Guide
10515 \emph default
10516 .
10517 \end_layout
10518
10519 \end_inset
10520
10521
10522 \end_layout
10523
10524 \begin_layout Subsubsection
10525 Using 
10526 \family sans
10527 Note
10528 \family default
10529  with 
10530 \family sans
10531 Slide
10532 \family default
10533
10534 \begin_inset LatexCommand label
10535 name "sec:slideNote"
10536
10537 \end_inset
10538
10539
10540 \end_layout
10541
10542 \begin_layout Standard
10543 Like an 
10544 \family sans
10545 Overlay
10546 \family default
10547 , a 
10548 \family sans
10549 Note
10550 \family default
10551  is associated with a 
10552 \begin_inset Quotes eld
10553 \end_inset
10554
10555 parent
10556 \begin_inset Quotes erd
10557 \end_inset
10558
10559  
10560 \family sans
10561 Slide
10562 \family default
10563 .
10564  Here, too, the LyX 
10565 \family sans
10566 slides
10567 \family default
10568  class provides visual cues.
10569  The label for a 
10570 \family sans
10571 Note
10572 \family default
10573  is shorter than that of a 
10574 \family sans
10575 Slide
10576 \family default
10577  [yet longer than that of an 
10578 \family sans
10579 Overlay
10580 \family default
10581 ] and, like the label of an 
10582 \family sans
10583 Overlay
10584 \family default
10585  is shockingly magenta.
10586  Additionally, the printed 
10587 \family sans
10588 Note
10589 \family default
10590  has the page number of its 
10591 \begin_inset Quotes eld
10592 \end_inset
10593
10594 parent
10595 \begin_inset Quotes erd
10596 \end_inset
10597
10598  
10599 \family sans
10600 Slide
10601 \family default
10602 , appended by 
10603 \begin_inset Quotes eld
10604 \end_inset
10605
10606
10607 \family typewriter
10608 -
10609 \family default
10610 1
10611 \begin_inset Quotes erd
10612 \end_inset
10613
10614
10615 \begin_inset Quotes eld
10616 \end_inset
10617
10618
10619 \family typewriter
10620 -
10621 \family default
10622 2
10623 \begin_inset Quotes erd
10624 \end_inset
10625
10626
10627 \begin_inset Quotes eld
10628 \end_inset
10629
10630
10631 \family typewriter
10632 -
10633 \family default
10634 3
10635 \begin_inset Quotes erd
10636 \end_inset
10637
10638 , etc.
10639  You can have multiple 
10640 \family sans
10641 Note
10642 \family default
10643 s associated with a single 
10644 \family sans
10645 Slide
10646 \family default
10647 , and, as with 
10648 \family sans
10649 Slide
10650 \family default
10651  and 
10652 \family sans
10653 Overlay
10654 \family default
10655 , you'll probably want to break up long 
10656 \family sans
10657 Note
10658 \family default
10659 s so that they fit on a single sheet of paper.
10660 \end_layout
10661
10662 \begin_layout Standard
10663 The purpose of a 
10664 \family sans
10665 Note
10666 \family default
10667  is obvious: it contains anything additional you might want to say about
10668  a 
10669 \family sans
10670 Slide
10671 \family default
10672 .
10673  It could also be used as a sheet of reminders for a particular 
10674 \family sans
10675 Slide
10676 \family default
10677 .
10678  In the case of the latter, you might want to make use of time markers.
10679  Currently, the LyX 
10680 \family sans
10681 slides
10682 \family default
10683  class has no 
10684 \begin_inset Quotes eld
10685 \end_inset
10686
10687 native
10688 \begin_inset Quotes erd
10689 \end_inset
10690
10691  support for time markers, a 
10692 \noun on
10693 Sli
10694 \noun default
10695 TeX feature.
10696  So, you'll have to resort to using the LaTeX codes.
10697 \end_layout
10698
10699 \begin_layout Standard
10700 To use time markers, you'll need to specify the extra class option 
10701 \begin_inset Quotes eld
10702 \end_inset
10703
10704
10705 \family typewriter
10706 clock
10707 \family default
10708
10709 \begin_inset Quotes erd
10710 \end_inset
10711
10712  [see section\InsetSpace ~
10713
10714 \begin_inset LatexCommand ref
10715 reference "sec:slidesetup"
10716
10717 \end_inset
10718
10719 ].
10720  This option turns on timing marks, which will appear in the lower-left-hand
10721  corner of every 
10722 \family sans
10723 Note
10724 \family default
10725  you generate.
10726  To set what appears in the time marker, you use the LaTeX commands 
10727 \begin_inset Quotes eld
10728 \end_inset
10729
10730
10731 \family typewriter
10732
10733 \backslash
10734 settime{}
10735 \family default
10736
10737 \begin_inset Quotes erd
10738 \end_inset
10739
10740  and 
10741 \begin_inset Quotes eld
10742 \end_inset
10743
10744
10745 \family typewriter
10746
10747 \backslash
10748 addtime{}
10749 \family default
10750
10751 \begin_inset Quotes erd
10752 \end_inset
10753
10754 .
10755  The arguments of both commands are time measured in seconds.
10756  
10757 \begin_inset Quotes eld
10758 \end_inset
10759
10760
10761 \family typewriter
10762
10763 \backslash
10764 settime{}
10765 \family default
10766
10767 \begin_inset Quotes erd
10768 \end_inset
10769
10770  sets the time marker to a given time.
10771  
10772 \begin_inset Quotes eld
10773 \end_inset
10774
10775
10776 \family typewriter
10777
10778 \backslash
10779 addtime{}
10780 \family default
10781
10782 \begin_inset Quotes erd
10783 \end_inset
10784
10785  increments the time marker by the specified amount.
10786  Using time markers and 
10787 \family sans
10788 Note
10789 \family default
10790 s in this fashion, you can remind yourself how much time to spend on a particula
10791
10792 \family sans
10793 Slide
10794 \family default
10795 .
10796 \end_layout
10797
10798 \begin_layout Standard
10799 There's one last feature to describe.
10800  Clearly, you'd like to print out all of your 
10801 \family sans
10802 Slide
10803 \family default
10804 s and 
10805 \family sans
10806 Overlay
10807 \family default
10808 s on transparencies while printing all of your 
10809 \family sans
10810 Note
10811 \family default
10812 s on plain paper.
10813  However, a 
10814 \family sans
10815 Note
10816 \family default
10817  
10818 \emph on
10819 must
10820 \emph default
10821  follow the 
10822 \family sans
10823 Slide
10824 \family default
10825  with which it is associated.
10826  What's a person to do?
10827 \end_layout
10828
10829 \begin_layout Standard
10830 Luckily, there are two LaTeX commands that allow you to select what to print
10831  out.
10832  Both must be placed into the preamble of your document.
10833  The command 
10834 \begin_inset Quotes eld
10835 \end_inset
10836
10837
10838 \family typewriter
10839
10840 \backslash
10841 onlyslides{
10842 \backslash
10843 slides}
10844 \family default
10845
10846 \begin_inset Quotes erd
10847 \end_inset
10848
10849  will cause the output to contain only the 
10850 \family sans
10851 Slide
10852 \family default
10853 s and 
10854 \family sans
10855 Overlay
10856 \family default
10857 s.
10858  Correspondingly, the command 
10859 \begin_inset Quotes eld
10860 \end_inset
10861
10862
10863 \family typewriter
10864
10865 \backslash
10866 onlynotes{
10867 \backslash
10868 notes}
10869 \family default
10870
10871 \begin_inset Quotes erd
10872 \end_inset
10873
10874  prevents the output of anything but 
10875 \family sans
10876 Note
10877 \family default
10878 s.
10879  I'd advise placing both commands in the preamble and initially comment
10880  both out.
10881  You can then preview your entire presentation as you write.
10882  When you're done writing, you can then uncomment one of the two to select
10883  what you want to print.
10884  I like to uncomment 
10885 \begin_inset Quotes eld
10886 \end_inset
10887
10888
10889 \family typewriter
10890
10891 \backslash
10892 onlyslides{
10893 \backslash
10894 slides}
10895 \family default
10896
10897 \begin_inset Quotes erd
10898 \end_inset
10899
10900  , print to a file with 
10901 \begin_inset Quotes eld
10902 \end_inset
10903
10904
10905 \family typewriter
10906 -slides
10907 \family default
10908
10909 \begin_inset Quotes erd
10910 \end_inset
10911
10912  in its name, comment it back out, then uncomment 
10913 \begin_inset Quotes eld
10914 \end_inset
10915
10916
10917 \family typewriter
10918
10919 \backslash
10920 onlynotes{
10921 \backslash
10922 notes}
10923 \family default
10924
10925 \begin_inset Quotes erd
10926 \end_inset
10927
10928  and print to a 
10929 \begin_inset Quotes eld
10930 \end_inset
10931
10932
10933 \family typewriter
10934 *-notes.ps
10935 \family default
10936
10937 \begin_inset Quotes erd
10938 \end_inset
10939
10940  file.
10941  I can then send either file to a printer, loading transparencies or plain
10942  paper as appropriate.
10943 \end_layout
10944
10945 \begin_layout Standard
10946 You can also provide other arguments to the 
10947 \begin_inset Quotes eld
10948 \end_inset
10949
10950
10951 \family typewriter
10952
10953 \backslash
10954 onlyslides{}
10955 \family default
10956
10957 \begin_inset Quotes erd
10958 \end_inset
10959
10960  and 
10961 \begin_inset Quotes eld
10962 \end_inset
10963
10964
10965 \family typewriter
10966
10967 \backslash
10968 onlynotes{}
10969 \family default
10970
10971 \begin_inset Quotes erd
10972 \end_inset
10973
10974  commands.
10975  See a good LaTeX book for details.
10976 \end_layout
10977
10978 \begin_layout Subsection
10979 The 
10980 \family sans
10981 slides
10982 \family default
10983  Class Template File
10984 \end_layout
10985
10986 \begin_layout Standard
10987 I have also provided a template file, 
10988 \begin_inset Quotes eld
10989 \end_inset
10990
10991
10992 \family typewriter
10993 slides.lyx
10994 \family default
10995
10996 \begin_inset Quotes erd
10997 \end_inset
10998
10999 , with the 
11000 \family sans
11001 slides
11002 \family default
11003  class.
11004  To use it, begin your new presentation with 
11005 \family sans
11006 \bar under
11007 F
11008 \bar default
11009 ile\SpecialChar \menuseparator
11010 New\InsetSpace ~
11011 from\InsetSpace ~
11012
11013 \bar under
11014 T
11015 \bar default
11016 emplate
11017 \family default
11018 .
11019  Your new LyX presentation file will contain an example 
11020 \family sans
11021 Slide
11022 \family default
11023  -- 
11024 \family sans
11025 Overlay
11026 \family default
11027  -- 
11028 \family sans
11029 Note
11030 \family default
11031  triplet.
11032  The 
11033 \family sans
11034 Slide
11035 \family default
11036  and 
11037 \family sans
11038 Overlay
11039 \family default
11040  additionally contain an example of the use of 
11041 \family sans
11042 InvisibleText
11043 \family default
11044  and 
11045 \family sans
11046 VisibleText
11047 \family default
11048 .
11049  Lastly, the preamble will contain:
11050 \end_layout
11051
11052 \begin_layout LyX-Code
11053 % Uncomment to print out only slides and overlays
11054 \end_layout
11055
11056 \begin_layout LyX-Code
11057 %
11058 \end_layout
11059
11060 \begin_layout LyX-Code
11061 %
11062 \backslash
11063 onlyslides{
11064 \backslash
11065 slides}
11066 \newline
11067  
11068 \end_layout
11069
11070 \begin_layout LyX-Code
11071 % Uncomment to print out only notes
11072 \end_layout
11073
11074 \begin_layout LyX-Code
11075 %
11076 \end_layout
11077
11078 \begin_layout LyX-Code
11079 %
11080 \backslash
11081 onlynotes{
11082 \backslash
11083 notes}
11084 \end_layout
11085
11086 \begin_layout Standard
11087 One final thing: I created this class to support the LaTeX2e 
11088 \begin_inset Quotes eld
11089 \end_inset
11090
11091
11092 \noun on
11093 Sli
11094 \noun default
11095 TeX emulation
11096 \begin_inset Quotes erd
11097 \end_inset
11098
11099  class, one of the built-in LaTeX2e classes.
11100  Neither I nor the rest of the LyX Team endorse or oppose the use of this
11101  built-in slide class.
11102  It's here if you want it or need it.
11103  There exist other LaTeX2e classes for creating presentations, such as the
11104  
11105 \family sans
11106 Foils
11107 \family default
11108  class [see section\InsetSpace ~
11109
11110 \begin_inset LatexCommand ref
11111 reference "sec:foiltex"
11112
11113 \end_inset
11114
11115 ] or the 
11116 \begin_inset Quotes eld
11117 \end_inset
11118
11119
11120 \family typewriter
11121 seminar
11122 \family default
11123
11124 \begin_inset Quotes erd
11125 \end_inset
11126
11127  package [present on some TeX distributions].
11128  The latter is not yet supported under LyX.
11129 \begin_inset Foot
11130 status collapsed
11131
11132 \begin_layout Standard
11133 Perhaps you can take on the task\SpecialChar \ldots{}
11134
11135 \end_layout
11136
11137 \end_inset
11138
11139  I know nothing about these other classes.
11140  Try them out to see what sort of alternative they provide.
11141 \end_layout
11142
11143 \begin_layout Section
11144 Foils [aka 
11145 \family sans
11146 Foil
11147 \family default
11148 \noun on
11149 TeX
11150 \noun default
11151 ]
11152 \begin_inset LatexCommand label
11153 name "sec:foiltex"
11154
11155 \end_inset
11156
11157
11158 \end_layout
11159
11160 \begin_layout Standard
11161 by 
11162 \noun on
11163 Allan Rae
11164 \end_layout
11165
11166 \begin_layout Subsection
11167 Introduction
11168 \end_layout
11169
11170 \begin_layout Standard
11171 This section describes how to use LyX to make slides for overhead projectors.
11172  There are two document classes that can do this: the default slides class
11173  and the 
11174 \family sans
11175 Foil
11176 \family default
11177 TeX slides class.
11178  This section documents the latter.
11179 \end_layout
11180
11181 \begin_layout Standard
11182 I'm going to say this again, nice and clear, so that there's no misunderstanding
11183 :
11184 \end_layout
11185
11186 \begin_layout Standard
11187 \begin_inset VSpace bigskip
11188 \end_inset
11189
11190
11191 \end_layout
11192
11193 \begin_layout Standard
11194 \align center
11195
11196 \size large
11197 This section documents the class 
11198 \begin_inset Quotes eld
11199 \end_inset
11200
11201
11202 \family sans
11203 slides (FoilTeX)
11204 \family default
11205
11206 \begin_inset Quotes erd
11207 \end_inset
11208
11209  
11210 \emph on
11211 only.
11212 \end_layout
11213
11214 \begin_layout Standard
11215 \begin_inset VSpace bigskip
11216 \end_inset
11217
11218
11219 \end_layout
11220
11221 \begin_layout Standard
11222 If you're looking for the documentation for 
11223 \begin_inset Quotes eld
11224 \end_inset
11225
11226
11227 \family sans
11228 slides (default)
11229 \family default
11230
11231 \begin_inset Quotes erd
11232 \end_inset
11233
11234 , check out section\InsetSpace ~
11235
11236 \begin_inset LatexCommand ref
11237 reference "sec:slitex"
11238
11239 \end_inset
11240
11241 .
11242  If your machine doesn't have the 
11243 \family sans
11244 foils
11245 \family default
11246  class [
11247 \begin_inset Quotes eld
11248 \end_inset
11249
11250
11251 \family sans
11252 slides (FoilTeX)
11253 \family default
11254
11255 \begin_inset Quotes erd
11256 \end_inset
11257
11258 ] installed, you'll probably have to use the default 
11259 \family sans
11260 slides
11261 \family default
11262  class, which isn't quite as good as 
11263 \family sans
11264 foils.
11265 \end_layout
11266
11267 \begin_layout Standard
11268 The 
11269 \family sans
11270 foils
11271 \family default
11272  class is designed for use with version 2.1 of the 
11273 \family sans
11274 foils.cls
11275 \family default
11276  LaTeX class file which is now an integral part of LaTeX2e.
11277 \end_layout
11278
11279 \begin_layout Subsection
11280 Getting Started
11281 \end_layout
11282
11283 \begin_layout Standard
11284 Obviously, to use this document class, you need to select 
11285 \begin_inset Quotes eld
11286 \end_inset
11287
11288
11289 \family sans
11290 slides (FoilTeX)
11291 \family default
11292
11293 \begin_inset Quotes erd
11294 \end_inset
11295
11296  from the 
11297 \family sans
11298 \bar under
11299 C
11300 \bar default
11301 lass
11302 \family default
11303  entry in the 
11304 \family sans
11305 Document\InsetSpace ~
11306 Layout
11307 \family default
11308  dialog.
11309  There are some settings in the 
11310 \family sans
11311 Document\InsetSpace ~
11312 Layout
11313 \family default
11314  dialog that you should know about that are specific to this class:
11315 \end_layout
11316
11317 \begin_layout Itemize
11318 Don't change the options 
11319 \family sans
11320 Sides
11321 \family default
11322  and 
11323 \family sans
11324 Columns
11325 \family default
11326  on the 
11327 \family sans
11328 Document\InsetSpace ~
11329 Layout
11330 \family default
11331  dialog.
11332  They're ignored by the 
11333 \family sans
11334 foils
11335 \family default
11336  class.
11337 \end_layout
11338
11339 \begin_layout Itemize
11340 The default font size is 20pt with the other options being 17pt, 25pt and
11341  30pt.
11342 \end_layout
11343
11344 \begin_layout Itemize
11345 The default font is 
11346 \family sans
11347 sans
11348 \family default
11349  
11350 \family sans
11351 serif
11352 \family default
11353  but all math equations are still typeset in the usual roman font.
11354 \end_layout
11355
11356 \begin_layout Itemize
11357
11358 \family sans
11359 Foil
11360 \family default
11361 TeX supports A4 and Letter paper sizes as well as a special size for working
11362  with 35mm slides.
11363  It doesn't support A5, B5, legal or executive paper sizes.
11364 \end_layout
11365
11366 \begin_layout Itemize
11367 Don't bother changing the 
11368 \family sans
11369 Float Placement
11370 \family default
11371  settings because they are ignored anyway.
11372  All floats appear where they are defined in the text.
11373 \end_layout
11374
11375 \begin_layout Itemize
11376 The 
11377 \family sans
11378 \bar under
11379 P
11380 \bar default
11381 agestyle
11382 \family default
11383  setting behaves a bit differently for this class.
11384  
11385 \family sans
11386 Foil
11387 \family default
11388 TeX provides extensive footer and header capabilities including a user-defined
11389  logo.
11390  See section\InsetSpace ~
11391
11392 \begin_inset LatexCommand ref
11393 reference "sec:foilfoot"
11394
11395 \end_inset
11396
11397  for more details.
11398  The title page is treated differently to all other pages in the document
11399  and is 
11400 \emph on
11401 always
11402 \emph default
11403  unnumbered and 
11404 \emph on
11405 always
11406 \emph default
11407  has the logo centered at the bottom of the page (if one is defined).
11408  The possible page style choices and what they do are as follows:
11409 \end_layout
11410
11411 \begin_deeper
11412 \begin_layout List
11413 \labelwidthstring MMMMMMM
11414
11415 \family sans
11416 \series bold
11417 empty
11418 \family default
11419 \series default
11420  The final output contains no page numbers, or other headers or footers
11421  (except footnotes of course).
11422  
11423 \end_layout
11424
11425 \begin_layout List
11426 \labelwidthstring MMMMMMM
11427
11428 \family sans
11429 \series bold
11430 plain
11431 \family default
11432 \series default
11433  The final output contains page numbers centered at the bottom of the page.
11434  No other headings or footers (other than footnotes).
11435 \end_layout
11436
11437 \begin_layout List
11438 \labelwidthstring MMMMMMM
11439
11440 \series bold
11441 foilheadings
11442 \series default
11443  Page numbers in lower right corner.
11444  Additional headers and footers are also shown.
11445  This is also the default.
11446 \end_layout
11447
11448 \begin_layout List
11449 \labelwidthstring MMMMMMM
11450
11451 \series bold
11452 fancy
11453 \series default
11454  Gives you access to the 
11455 \family sans
11456 fancyheadings
11457 \family default
11458  package although its use with 
11459 \family sans
11460 Foil
11461 \family default
11462 TeX is discouraged by the writer of the 
11463 \family sans
11464 Foil
11465 \family default
11466 TeX package because of some potential page layout clashes.
11467 \end_layout
11468
11469 \end_deeper
11470 \begin_layout Subsubsection
11471 Extra Options
11472 \end_layout
11473
11474 \begin_layout Standard
11475 The following options may be used in the extra class options in the 
11476 \family sans
11477 \bar under
11478 D
11479 \bar default
11480 ocument\SpecialChar \menuseparator
11481
11482 \bar under
11483 S
11484 \bar default
11485 ettings
11486 \family default
11487  dialog.
11488 \end_layout
11489
11490 \begin_layout List
11491 \labelwidthstring MMMMMMx
11492
11493 \series bold
11494 35mmSlide
11495 \series default
11496  This sets up the page layout for 7.33in by 11in paper, which is about the
11497  same aspect ratio as a 35mm slide, making it a bit easier to work with
11498  this medium.
11499 \end_layout
11500
11501 \begin_layout List
11502 \labelwidthstring MMMMMMx
11503
11504 \series bold
11505 headrule
11506 \series default
11507  Places a rule across the page below the header on every page except the
11508  title page.
11509 \end_layout
11510
11511 \begin_layout List
11512 \labelwidthstring MMMMMMx
11513
11514 \series bold
11515 footrule
11516 \series default
11517  Places a rule across the page above the footer on every page except the
11518  title page.
11519 \end_layout
11520
11521 \begin_layout List
11522 \labelwidthstring MMMMMMx
11523
11524 \series bold
11525 dvips
11526 \series default
11527  This is automatically set each time you create a new 
11528 \family sans
11529 foils
11530 \family default
11531  document.
11532  This option tells 
11533 \family sans
11534 Foil
11535 \family default
11536 TeX to use the dvips driver to rotate those pages that are set as landscape
11537  foils.
11538 \end_layout
11539
11540 \begin_layout List
11541 \labelwidthstring MMMMMMx
11542
11543 \series bold
11544 landscape
11545 \series default
11546  Simply changes the page dimensions to those of a landscape page but doesn't
11547  do any rotation.
11548  Thus if you use this option you need to use an external program to rotate
11549  each page or feed your paper through your printer as landscape.
11550  Note that this option effectively reverses the roles of the 
11551 \family sans
11552 Foilhead
11553 \family default
11554  and 
11555 \family sans
11556 Rotatefoilhead
11557 \family default
11558  environments (don't worry these are described in the next section).
11559 \end_layout
11560
11561 \begin_layout List
11562 \labelwidthstring MMMMMMx
11563
11564 \series bold
11565 leqno
11566 \series default
11567  Equation numbers on the left.
11568 \end_layout
11569
11570 \begin_layout List
11571 \labelwidthstring MMMMMMx
11572
11573 \series bold
11574 fleqn
11575 \series default
11576  Flush-left equations.
11577 \end_layout
11578
11579 \begin_layout Subsection
11580 Supported Environments
11581 \end_layout
11582
11583 \begin_layout Standard
11584 Most of the environments commonly supported in other classes are also supported
11585  by the 
11586 \family sans
11587 foils
11588 \family default
11589  class.
11590  There are several additional environments provided by 
11591 \family sans
11592 Foil
11593 \family default
11594 TeX as well as a couple added by LyX.
11595  The following environments are shared with other classes:
11596 \end_layout
11597
11598 \begin_layout Standard
11599 \begin_inset ERT
11600 status inlined
11601
11602 \begin_layout Standard
11603
11604
11605 \backslash
11606 begin{multicols}{2}
11607 \end_layout
11608
11609 \end_inset
11610
11611
11612 \end_layout
11613
11614 \begin_layout Itemize
11615
11616 \family sans
11617 Standard
11618 \end_layout
11619
11620 \begin_layout Itemize
11621
11622 \family sans
11623 Itemize
11624 \end_layout
11625
11626 \begin_layout Itemize
11627
11628 \family sans
11629 Enumerate
11630 \end_layout
11631
11632 \begin_layout Itemize
11633
11634 \family sans
11635 Description
11636 \end_layout
11637
11638 \begin_layout Itemize
11639
11640 \family sans
11641 List
11642 \end_layout
11643
11644 \begin_layout Itemize
11645
11646 \family sans
11647 LyX-Code
11648 \end_layout
11649
11650 \begin_layout Itemize
11651
11652 \family sans
11653 Verse
11654 \end_layout
11655
11656 \begin_layout Itemize
11657
11658 \family sans
11659 Quote
11660 \end_layout
11661
11662 \begin_layout Itemize
11663
11664 \family sans
11665 Quotation
11666 \end_layout
11667
11668 \begin_layout Itemize
11669
11670 \family sans
11671 Title
11672 \end_layout
11673
11674 \begin_layout Itemize
11675
11676 \family sans
11677 Author
11678 \end_layout
11679
11680 \begin_layout Itemize
11681
11682 \family sans
11683 Date
11684 \end_layout
11685
11686 \begin_layout Itemize
11687
11688 \family sans
11689 Abstract
11690 \end_layout
11691
11692 \begin_layout Itemize
11693
11694 \family sans
11695 Bibliography
11696 \end_layout
11697
11698 \begin_layout Itemize
11699
11700 \family sans
11701 Address
11702 \end_layout
11703
11704 \begin_layout Itemize
11705
11706 \family sans
11707 RightAddress
11708 \end_layout
11709
11710 \begin_layout Itemize
11711
11712 \family sans
11713 Caption
11714 \end_layout
11715
11716 \begin_layout Itemize
11717
11718 \family sans
11719 Comment
11720 \end_layout
11721
11722 \begin_layout Standard
11723 \begin_inset ERT
11724 status inlined
11725
11726 \begin_layout Standard
11727
11728
11729 \backslash
11730 end{multicols}
11731 \end_layout
11732
11733 \end_inset
11734
11735
11736 \end_layout
11737
11738 \begin_layout Standard
11739 That is, all the major environments apart from the sectioning environments.
11740  Since foils are essentially self-contained sections, with a title and body,
11741  
11742 \family sans
11743 Foil
11744 \family default
11745 TeX provides specific commands for starting new foils and these are:
11746 \end_layout
11747
11748 \begin_layout Itemize
11749
11750 \family sans
11751 Foilhead
11752 \end_layout
11753
11754 \begin_layout Itemize
11755
11756 \family sans
11757 Rotatefoilhead
11758 \end_layout
11759
11760 \begin_layout Standard
11761 LyX also provides slightly modified versions of these two environments called:
11762 \end_layout
11763
11764 \begin_layout Itemize
11765
11766 \family sans
11767 ShortFoilhead
11768 \end_layout
11769
11770 \begin_layout Itemize
11771
11772 \family sans
11773 ShortRotatefoilhead
11774 \end_layout
11775
11776 \begin_layout Standard
11777 and the differences will be explained in the next section.
11778 \end_layout
11779
11780 \begin_layout Standard
11781 Since foils are often used in presenting ideas or new theorems and such
11782  
11783 \family sans
11784 Foil
11785 \family default
11786 TeX also provides a comprehensive box of goodies for presenting them:
11787 \end_layout
11788
11789 \begin_layout Standard
11790 \begin_inset ERT
11791 status inlined
11792
11793 \begin_layout Standard
11794
11795
11796 \backslash
11797 begin{multicols}{2}
11798 \end_layout
11799
11800 \end_inset
11801
11802
11803 \end_layout
11804
11805 \begin_layout Itemize
11806
11807 \family sans
11808 Theorem
11809 \end_layout
11810
11811 \begin_layout Itemize
11812
11813 \family sans
11814 Lemma
11815 \end_layout
11816
11817 \begin_layout Itemize
11818
11819 \family sans
11820 Corollary
11821 \end_layout
11822
11823 \begin_layout Itemize
11824
11825 \family sans
11826 Proposition
11827 \end_layout
11828
11829 \begin_layout Itemize
11830
11831 \family sans
11832 Definition
11833 \end_layout
11834
11835 \begin_layout Itemize
11836
11837 \family sans
11838 Proof
11839 \end_layout
11840
11841 \begin_layout Itemize
11842
11843 \family sans
11844 Theorem*
11845 \end_layout
11846
11847 \begin_layout Itemize
11848
11849 \family sans
11850 Lemma*
11851 \end_layout
11852
11853 \begin_layout Itemize
11854
11855 \family sans
11856 Corollary*
11857 \end_layout
11858
11859 \begin_layout Itemize
11860
11861 \family sans
11862 Proposition*
11863 \end_layout
11864
11865 \begin_layout Itemize
11866
11867 \family sans
11868 Definition*
11869 \end_layout
11870
11871 \begin_layout Standard
11872 \begin_inset ERT
11873 status inlined
11874
11875 \begin_layout Standard
11876
11877
11878 \backslash
11879 end{multicols}
11880 \end_layout
11881
11882 \end_inset
11883
11884
11885 \end_layout
11886
11887 \begin_layout Standard
11888 The starred versions are unnumbered while the unstarred versions are numbered.
11889  There are also two list environments added by LyX and these are:
11890 \end_layout
11891
11892 \begin_layout Itemize
11893
11894 \family sans
11895 TickList
11896 \end_layout
11897
11898 \begin_layout Itemize
11899
11900 \family sans
11901 CrossList
11902 \end_layout
11903
11904 \begin_layout Standard
11905
11906 \family sans
11907 Foil
11908 \family default
11909 TeX provides some powerful header and footer capabilities that are best
11910  set in the preamble although they may be set at any point in a document.
11911  If you want to change these settings in your document the best place to
11912  do so is at the very top of a foil, 
11913 \emph on
11914 i.e.
11915
11916 \emph default
11917  straight after the foilhead.
11918 \end_layout
11919
11920 \begin_layout Standard
11921 For this purpose, the following command styles are provided [
11922 \shape smallcaps
11923 Martin Vermeer
11924 \shape default
11925 ]:
11926 \end_layout
11927
11928 \begin_layout Standard
11929 \begin_inset ERT
11930 status inlined
11931
11932 \begin_layout Standard
11933
11934
11935 \backslash
11936 begin{multicols}{2}
11937 \end_layout
11938
11939 \end_inset
11940
11941
11942 \end_layout
11943
11944 \begin_layout Itemize
11945
11946 \family sans
11947 My\InsetSpace ~
11948 Logo
11949 \end_layout
11950
11951 \begin_layout Itemize
11952
11953 \family sans
11954 Restriction
11955 \end_layout
11956
11957 \begin_layout Itemize
11958
11959 \family sans
11960 Right\InsetSpace ~
11961 Footer
11962 \end_layout
11963
11964 \begin_layout Itemize
11965
11966 \family sans
11967 Right\InsetSpace ~
11968 Header
11969 \end_layout
11970
11971 \begin_layout Itemize
11972
11973 \family sans
11974 Left\InsetSpace ~
11975 Header
11976 \end_layout
11977
11978 \begin_deeper
11979 \begin_layout Standard
11980 \InsetSpace ~
11981
11982 \end_layout
11983
11984 \end_deeper
11985 \begin_layout Standard
11986 \begin_inset ERT
11987 status inlined
11988
11989 \begin_layout Standard
11990
11991
11992 \backslash
11993 end{multicols}
11994 \end_layout
11995
11996 \end_inset
11997
11998
11999 \end_layout
12000
12001 \begin_layout Standard
12002 There are also a few commands provided by 
12003 \family sans
12004 Foil
12005 \family default
12006 TeX that aren't directly supported by LyX but I'll tell you what they do
12007  and how to use them in section\InsetSpace ~
12008
12009 \begin_inset LatexCommand ref
12010 reference "sec:unsuppfoils"
12011
12012 \end_inset
12013
12014 .
12015 \end_layout
12016
12017 \begin_layout Subsection
12018 Building a Set of Foils
12019 \end_layout
12020
12021 \begin_layout Standard
12022 This section will give a simple introduction to using the different environments
12023  to build a set of foils.
12024  If you want to see an example set of foils take a look at the 
12025 \family typewriter
12026 Foils.lyx
12027 \family default
12028  file accessible from the 
12029 \family sans
12030 \bar under
12031 F
12032 \bar default
12033 ile\SpecialChar \menuseparator
12034
12035 \bar under
12036 O
12037 \bar default
12038 pen\SpecialChar \ldots{}
12039
12040 \family default
12041  dialog under the 
12042 \family sans
12043 Examples
12044 \family default
12045  button.
12046  
12047 \end_layout
12048
12049 \begin_layout Subsubsection
12050 Give It a Title Page
12051 \end_layout
12052
12053 \begin_layout Standard
12054 Unlike other classes that provide 
12055 \family sans
12056 Title
12057 \family default
12058
12059 \family sans
12060 Author
12061 \family default
12062
12063 \family sans
12064 Date
12065 \family default
12066  and 
12067 \family sans
12068 Abstract
12069 \family default
12070  environments, 
12071 \family sans
12072 foils
12073 \family default
12074  creates the title on a page of its own.
12075  If you leave out the 
12076 \family sans
12077 Date
12078 \family default
12079  environment LaTeX will substitute the current date (every time you regenerate
12080  the output).
12081 \end_layout
12082
12083 \begin_layout Subsubsection
12084 Start a New Foil
12085 \end_layout
12086
12087 \begin_layout Standard
12088 As I mentioned earlier, there are four ways of starting a new foil.
12089  For portrait foils you should use 
12090 \family sans
12091 Foilhead
12092 \family default
12093  or 
12094 \family sans
12095 ShortFoilhead.
12096
12097 \family default
12098  The difference between these two environments is the amount of space between
12099  the title of the foil (the foilhead) and the body of the foil.
12100 \end_layout
12101
12102 \begin_layout Standard
12103 Landscape foils are generated using the 
12104 \family sans
12105 Rotatefoilhead
12106 \family default
12107  and 
12108 \family sans
12109 ShortRotatefoilhead
12110 \family default
12111  environments.
12112  Again the only difference is the spacing between foilhead and body.
12113  Both of the short versions have 0.5 inches less separation between the foilhead
12114  and the body.
12115  
12116 \end_layout
12117
12118 \begin_layout Standard
12119 One problem with the support for landscape foils is the requirement that
12120  you have to use the 
12121 \family typewriter
12122 dvips
12123 \family default
12124  driver to generate the PostScript output otherwise the foils won't be rotated.
12125  It is possible to get landscape foils even if you haven't got the 
12126 \family typewriter
12127 dvips
12128 \family default
12129  driver provided you can feed your foils sideways through your printer ;-)
12130 \end_layout
12131
12132 \begin_layout Subsubsection
12133 Theorems, Lemmas, Proofs and more
12134 \end_layout
12135
12136 \begin_layout Standard
12137 Due to a small bug in LyX you can't have two of the same type of these environme
12138 nts directly following each other.
12139  They must be separated by something.
12140  If you try, you will just be extending the previous environment as if you
12141  had merged the two environments together.
12142  So, how do you get around this problem? The simplest option is to insert
12143  some text between the two environments or add a 
12144 \family sans
12145 LaTeX
12146 \family default
12147  environment between the two with just a 
12148 \begin_inset Quotes eld
12149 \end_inset
12150
12151
12152 \family typewriter
12153 %
12154 \family default
12155
12156 \begin_inset Quotes erd
12157 \end_inset
12158
12159  in it.
12160  This will force LyX to produce two separate environments and hence the
12161  correct LaTeX output.
12162  An example is provided in the example file included with the LyX distribution.
12163  Remember, this problem only occurs if you are trying to place two of the
12164  same type of theorem-like environments one directly after the other.
12165 \end_layout
12166
12167 \begin_layout Subsubsection
12168 Lists
12169 \end_layout
12170
12171 \begin_layout Standard
12172 You get all the commonly supported list styles found in other classes as
12173  well as two new ones.
12174  I'll only describe the new ones here.
12175  If you want to find out more about the other list environments check out
12176  the 
12177 \emph on
12178 User's Guide.
12179
12180 \emph default
12181  If you intend to use itemized lists you might also want to read about the
12182  
12183 \family sans
12184 Itemize\InsetSpace ~
12185 Bullet\InsetSpace ~
12186 Selection
12187 \family default
12188  dialog described above in section\InsetSpace ~
12189
12190 \begin_inset LatexCommand ref
12191 reference "sec:bullet"
12192
12193 \end_inset
12194
12195 .
12196 \end_layout
12197
12198 \begin_layout Standard
12199 The two new list styles, 
12200 \family sans
12201 TickList
12202 \family default
12203  and 
12204 \family sans
12205 CrossList
12206 \family default
12207 , are designed to make it easier for you to create lists of do's and don'ts
12208  or right and wrong by providing dedicated environments that use a tick
12209  or a cross as the label of the list.
12210  These lists are in fact dedicated variants of the 
12211 \family sans
12212 Itemize
12213 \family default
12214  environment.
12215  They do however require that you have the 
12216 \family typewriter
12217 psnfss
12218 \family default
12219  packages installed.
12220 \end_layout
12221
12222 \begin_layout Subsubsection
12223 Figures and Tables
12224 \end_layout
12225
12226 \begin_layout Standard
12227
12228 \family sans
12229 Foil
12230 \family default
12231 TeX redefines the floating tables and figures so that they appear exactly
12232  where they are in the text rather than pushing them to the top of the page
12233  or to some user specified location.
12234  In fact if you change the float placement settings they are simply ignored.
12235 \end_layout
12236
12237 \begin_layout Subsubsection
12238 Page Headers and Footers
12239 \begin_inset LatexCommand label
12240 name "sec:foilfoot"
12241
12242 \end_inset
12243
12244
12245 \end_layout
12246
12247 \begin_layout Standard
12248
12249 \family sans
12250 My\InsetSpace ~
12251 Logo
12252 \family default
12253  and 
12254 \family sans
12255 Restriction
12256 \family default
12257  are two commands used to control the left-footer text string.
12258  The first is meant to allow you to include a graphic logo on your foils
12259  and defaults to 
12260 \begin_inset Quotes eld
12261 \end_inset
12262
12263 -Typeset by 
12264 \family sans
12265 Foil
12266 \family default
12267 TeX-
12268 \begin_inset Quotes erd
12269 \end_inset
12270
12271 .
12272  While the second is meant to provide a classification for the audience,
12273  
12274 \emph on
12275 e.\InsetSpace \thinspace{}
12276 g.
12277 \emph default
12278 \InsetSpace ~
12279 Confidential.
12280  It is empty by default.
12281 \end_layout
12282
12283 \begin_layout Standard
12284 The remaining page corners can be filled by 
12285 \family sans
12286 Right\InsetSpace ~
12287 Footer
12288 \family default
12289  (which defaults to page numbers), 
12290 \family sans
12291 Right\InsetSpace ~
12292 Header
12293 \family default
12294  (top right) and 
12295 \family sans
12296 Left\InsetSpace ~
12297 Header
12298 \family default
12299  (top left).
12300 \end_layout
12301
12302 \begin_layout Subsection
12303 Unsupported 
12304 \family sans
12305 Foil
12306 \family default
12307 TeX Goodies
12308 \begin_inset LatexCommand label
12309 name "sec:unsuppfoils"
12310
12311 \end_inset
12312
12313
12314 \end_layout
12315
12316 \begin_layout Standard
12317 All the commands mentioned below need to be set in a 
12318 \family sans
12319 LaTeX
12320 \family default
12321  environment or as 
12322 \family sans
12323 TeX
12324 \family default
12325  within another environment.
12326 \end_layout
12327
12328 \begin_layout Subsubsection
12329 Lengths
12330 \end_layout
12331
12332 \begin_layout Standard
12333 All lengths are adjusted using the 
12334 \family typewriter
12335
12336 \backslash
12337 setlength{
12338 \family default
12339 \emph on
12340 lengthname
12341 \family typewriter
12342 \emph default
12343 }{
12344 \family default
12345 \emph on
12346 newlength
12347 \family typewriter
12348 \emph default
12349 }
12350 \family default
12351  command.
12352  Where 
12353 \emph on
12354 lengthname
12355 \emph default
12356  should be replaced by the name given to the length you want to change and
12357  
12358 \emph on
12359 newlength
12360 \emph default
12361  is the length value.
12362  All lengths should be specified in units of length such as inches (
12363 \family typewriter
12364 in
12365 \family default
12366 ), millimeters (
12367 \family typewriter
12368 mm
12369 \family default
12370 ) or points (
12371 \family typewriter
12372 pt
12373 \family default
12374 ) or relative to some document or font-based length such as 
12375 \family typewriter
12376
12377 \backslash
12378 textwidth
12379 \family default
12380 .
12381  
12382 \end_layout
12383
12384 \begin_layout Standard
12385 It's possible to change the spacing between a foilhead and the body of the
12386  foil by adjusting the length specified by 
12387 \family typewriter
12388
12389 \backslash
12390 foilheadskip
12391 \family default
12392 .
12393  For example, to make 
12394 \emph on
12395 all
12396 \emph default
12397  foilheads 0.5 inches closer to their bodies put the following in the preamble:
12398  
12399 \family typewriter
12400
12401 \backslash
12402 setlength{
12403 \backslash
12404 foilheadskip}{-0.5in}
12405 \end_layout
12406
12407 \begin_layout Standard
12408 The spacings around floats can be adjusted by setting these lengths:
12409 \end_layout
12410
12411 \begin_layout List
12412 \labelwidthstring MMMMMMMMMMM
12413
12414 \family typewriter
12415
12416 \backslash
12417 abovefloatskip
12418 \family default
12419  Separation between the text and the top of the float
12420 \end_layout
12421
12422 \begin_layout List
12423 \labelwidthstring MMMMMMMMMMM
12424
12425 \family typewriter
12426
12427 \backslash
12428 abovecaptionskip
12429 \family default
12430  Separation between the float and the caption
12431 \end_layout
12432
12433 \begin_layout List
12434 \labelwidthstring MMMMMMMMMMM
12435
12436 \family typewriter
12437
12438 \backslash
12439 belowcaptionskip
12440 \family default
12441  Separation between the caption and the following text
12442 \end_layout
12443
12444 \begin_layout List
12445 \labelwidthstring MMMMMMMMMMM
12446
12447 \family typewriter
12448
12449 \backslash
12450 captionwidth
12451 \family default
12452  You can make the captions narrower than the surrounding text by adjusting
12453  this length.
12454  Best done relative to 
12455 \family typewriter
12456
12457 \backslash
12458 textwidth
12459 \family default
12460 .
12461 \end_layout
12462
12463 \begin_layout Standard
12464 There are also several title page related lengths that you may find useful
12465  if you have a long title or several authors:
12466 \end_layout
12467
12468 \begin_layout List
12469 \labelwidthstring MMMMMMMMMMM
12470
12471 \family typewriter
12472
12473 \backslash
12474 abovetitleskip
12475 \family default
12476  Separation from headers to 
12477 \family sans
12478 Title
12479 \end_layout
12480
12481 \begin_layout List
12482 \labelwidthstring MMMMMMMMMMM
12483
12484 \family typewriter
12485
12486 \backslash
12487 titleauthorskip
12488 \family default
12489  between 
12490 \family sans
12491 Title
12492 \family default
12493  and 
12494 \family sans
12495 Author
12496 \family default
12497  environments
12498 \end_layout
12499
12500 \begin_layout List
12501 \labelwidthstring MMMMMMMMMMM
12502
12503 \family typewriter
12504
12505 \backslash
12506 authorauthorskip
12507 \family default
12508  between multiple 
12509 \family sans
12510 Author
12511 \family default
12512  lines
12513 \end_layout
12514
12515 \begin_layout List
12516 \labelwidthstring MMMMMMMMMMM
12517
12518 \family typewriter
12519
12520 \backslash
12521 authordateskip
12522 \family default
12523  between the 
12524 \family sans
12525 Author
12526 \family default
12527  and the 
12528 \family sans
12529 Date
12530 \end_layout
12531
12532 \begin_layout List
12533 \labelwidthstring MMMMMMMMMMM
12534
12535 \family typewriter
12536
12537 \backslash
12538 dateabstractskip
12539 \family default
12540  between the 
12541 \family sans
12542 Date
12543 \family default
12544  and the 
12545 \family sans
12546 Abstract
12547 \end_layout
12548
12549 \begin_layout Standard
12550 The last length related command affects all the list environments.
12551  If you place 
12552 \family typewriter
12553
12554 \backslash
12555 zerolistvertdimens
12556 \family default
12557  
12558 \emph on
12559 inside
12560 \emph default
12561  a list environment then all the vertical spacing between the list items
12562  is removed.
12563  Note that this is a command not a length so it doesn't require 
12564 \family typewriter
12565
12566 \backslash
12567 setlength
12568 \family default
12569  like the stuff mentioned above.
12570 \end_layout
12571
12572 \begin_layout Subsubsection
12573 Headers and Footers
12574 \end_layout
12575
12576 \begin_layout Standard
12577 The 
12578 \family typewriter
12579
12580 \backslash
12581 LogoOn
12582 \family default
12583  and 
12584 \family typewriter
12585
12586 \backslash
12587 LogoOff
12588 \family default
12589  commands control whether the logo in the 
12590 \family sans
12591 MyLogo
12592 \family default
12593  definition appear on a given page.
12594  If you put 
12595 \family typewriter
12596
12597 \backslash
12598 LogoOff
12599 \family default
12600  in the preamble then none of the foils will have the logo on them.
12601  If you don't want the logo on a particular page place the 
12602 \family typewriter
12603
12604 \backslash
12605 LogoOff
12606 \family default
12607  directly after the foilhead of that page and the 
12608 \family typewriter
12609
12610 \backslash
12611 LogoOn
12612 \family default
12613  directly after the next foilhead.
12614 \end_layout
12615
12616 \begin_layout Standard
12617 If you decide to use the 
12618 \family sans
12619 fancy
12620 \family default
12621  page style setting in the 
12622 \family sans
12623 Document\InsetSpace ~
12624 Layout
12625 \family default
12626  dialog you should probably add 
12627 \family typewriter
12628
12629 \backslash
12630 let
12631 \backslash
12632 headwidth
12633 \backslash
12634 textwidth
12635 \family default
12636  to your preamble so headers and footers on landscape pages are correctly
12637  placed when rotated.
12638  This is due to some clashes between the page layouts provided by the 
12639 \family sans
12640 fancyheadings
12641 \family default
12642  package and the 
12643 \family sans
12644 foils
12645 \family default
12646  class.
12647 \end_layout
12648
12649 \begin_layout Section
12650 Latex8 (IEEE Conference Papers)
12651 \end_layout
12652
12653 \begin_layout Standard
12654 by 
12655 \noun on
12656 Allan Rae
12657 \end_layout
12658
12659 \begin_layout Subsection
12660 Introduction
12661 \end_layout
12662
12663 \begin_layout Standard
12664 Since this class is specifically for writing submissions to IEEE sponsored
12665  conferences I strongly recommend that you get a copy of their Authors Kit.
12666  The 
12667 \family sans
12668 latex.sty
12669 \family default
12670  package and associated bibliography style file is included in the kit.
12671  The Authors Kit is usually sent out by email once your initial submission
12672  has been accepted.
12673  There is a lot of useful information in the Authors Kit explaining formatting
12674  restrictions and so on and I will assume you have read this since that
12675  means I don't have to repeat it all here.
12676 \end_layout
12677
12678 \begin_layout Subsection
12679 Getting Started
12680 \end_layout
12681
12682 \begin_layout Standard
12683 [AR\SpecialChar \@.
12684  more to come]
12685 \end_layout
12686
12687 \begin_layout Subsection
12688 Supported Environments
12689 \end_layout
12690
12691 \begin_layout Itemize
12692
12693 \family sans
12694 Standard
12695 \end_layout
12696
12697 \begin_layout Itemize
12698
12699 \family sans
12700 Title
12701 \end_layout
12702
12703 \begin_layout Itemize
12704
12705 \family sans
12706 Author
12707 \end_layout
12708
12709 \begin_layout Itemize
12710
12711 \family sans
12712 E-mail
12713 \end_layout
12714
12715 \begin_layout Itemize
12716
12717 \family sans
12718 Affiliation
12719 \end_layout
12720
12721 \begin_layout Itemize
12722
12723 \family sans
12724 Abstract
12725 \end_layout
12726
12727 \begin_layout Itemize
12728
12729 \family sans
12730 Section
12731 \end_layout
12732
12733 \begin_layout Itemize
12734
12735 \family sans
12736 SubSection
12737 \end_layout
12738
12739 \begin_layout Itemize
12740
12741 \family sans
12742 Caption
12743 \end_layout
12744
12745 \begin_layout Subsection
12746 Differences Between Screen and Paper
12747 \end_layout
12748
12749 \begin_layout Standard
12750 There are slight differences in appearance mainly with the presentation
12751  of section counters.
12752  On screen the trailing period of the section counter is missing but it
12753  will appear in the output so don't let this worry you.
12754 \end_layout
12755
12756 \begin_layout Section
12757 Hollywood (Hollywood spec scripts)
12758 \end_layout
12759
12760 \begin_layout Standard
12761 by 
12762 \shape smallcaps
12763 Garst Reese
12764 \end_layout
12765
12766 \begin_layout Subsection
12767 Introduction
12768 \end_layout
12769
12770 \begin_layout Standard
12771 Getting the format of a Hollywood script right is a 
12772 \begin_inset Quotes eld
12773 \end_inset
12774
12775 rite of passage.
12776 \begin_inset Quotes erd
12777 \end_inset
12778
12779  It is designed to make the readers focus on content and to be easy and
12780  familiar for the actors to read.
12781  Each page of a script should be one minute of film.
12782  Nothing goes in a script that you cannot see or hear on screen.
12783  The courier 12 pt font should be used throughout.
12784  No italics.
12785 \end_layout
12786
12787 \begin_layout Subsection
12788 Special problems
12789 \end_layout
12790
12791 \begin_layout Standard
12792 Speakers' lines should NEVER break in mid-sentence.
12793  If a speaker's lines continue over a page break, repeat the 
12794 \family sans
12795 Speaker
12796 \family default
12797  title followed by (Cont'd).
12798 \end_layout
12799
12800 \begin_layout Subsection
12801 Special features
12802 \end_layout
12803
12804 \begin_layout Standard
12805 Insert the 
12806 \family sans
12807 Speaker
12808 \family default
12809  names as labels then cross-reference the label to insert the name.
12810  The cross-reference dialog will show the current cast of characters.
12811  You can use this to insert the speaker name in narratives also.
12812 \end_layout
12813
12814 \begin_layout Subsection
12815 Paper size and Margins
12816 \end_layout
12817
12818 \begin_layout Standard
12819 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12820 \end_layout
12821
12822 \begin_layout Subsection
12823 Environments
12824 \end_layout
12825
12826 \begin_layout Standard
12827 The following environments are available.
12828  You can use hollywood.bind to get the bind keys shown at the right.
12829 \end_layout
12830
12831 \begin_layout Itemize
12832
12833 \family sans
12834 Standard
12835 \newline
12836
12837 \family default
12838 Used where nothing else works.
12839  Try to avoid it.
12840 \end_layout
12841
12842 \begin_layout Itemize
12843
12844 \family sans
12845 FADE_IN
12846 \family default
12847 :
12848 \hfill
12849
12850 \family sans
12851 M-z S-I
12852 \family default
12853
12854 \newline
12855 Usually followed by something like 
12856 \begin_inset Quotes eld
12857 \end_inset
12858
12859 on Sally waking up.
12860 \begin_inset Quotes erd
12861 \end_inset
12862
12863
12864 \end_layout
12865
12866 \begin_layout Itemize
12867
12868 \family sans
12869 INT:
12870 \hfill
12871 M-z i
12872 \newline
12873
12874 \family default
12875 Introduces a new INTERIOR camera set-up.
12876  Always followed by DAY or NIGHT, or something similar to define the lighting
12877  required.
12878  Everthing on this line in CAPS.
12879 \end_layout
12880
12881 \begin_layout Itemize
12882
12883 \family sans
12884 EXT:
12885 \hfill
12886 M-z e
12887 \newline
12888
12889 \family default
12890 Introduces a new EXTERIOR camera set-up.
12891  Everthing on this line in CAPS.
12892 \end_layout
12893
12894 \begin_layout Itemize
12895
12896 \family sans
12897 Speaker
12898 \hfill
12899 M-z s
12900 \newline
12901
12902 \family default
12903 The character speaking.
12904 \end_layout
12905
12906 \begin_layout Itemize
12907
12908 \family sans
12909 Parenthetical
12910 \hfill
12911 M-z p
12912 \newline
12913
12914 \family default
12915 Instructions to the speaker.
12916  The () are automatically inserted, but only the ( will show in LyX.
12917  Both will be printed.
12918 \end_layout
12919
12920 \begin_layout Itemize
12921
12922 \family sans
12923 Dialogue
12924 \hfill
12925 M-z d
12926 \newline
12927
12928 \family default
12929 What the 
12930 \family sans
12931 Speaker
12932 \family default
12933  says.
12934 \end_layout
12935
12936 \begin_layout Itemize
12937
12938 \family sans
12939 Transition
12940 \hfill
12941 M-z t
12942 \newline
12943
12944 \family default
12945 Camera movement instruction.
12946  e.\InsetSpace \thinspace{}
12947 g.\InsetSpace ~
12948 CUT TO:
12949 \end_layout
12950
12951 \begin_layout Itemize
12952
12953 \family sans
12954 FADE OUT:
12955 \hfill
12956 M-z S-I
12957 \end_layout
12958
12959 \begin_layout Itemize
12960
12961 \family sans
12962 Author
12963 \hfill
12964 M-z S-A
12965 \end_layout
12966
12967 \begin_layout Itemize
12968
12969 \family sans
12970 Title
12971 \hfill
12972 M-z S-T
12973 \end_layout
12974
12975 \begin_layout Itemize
12976
12977 \family sans
12978 Right_Address
12979 \hfill
12980 M-z r
12981 \end_layout
12982
12983 \begin_layout Subsection
12984 Script jargon
12985 \end_layout
12986
12987 \begin_layout Itemize
12988 (O.S) --- off screen
12989 \end_layout
12990
12991 \begin_layout Itemize
12992 (V.0) --- voice over
12993 \end_layout
12994
12995 \begin_layout Itemize
12996 b.g.
12997  --- background
12998 \end_layout
12999
13000 \begin_layout Itemize
13001 C.U.
13002  --- close-up
13003 \end_layout
13004
13005 \begin_layout Itemize
13006 PAN --- camera movement
13007 \end_layout
13008
13009 \begin_layout Itemize
13010 INSERT --- cut to close-up of
13011 \end_layout
13012
13013 \begin_layout Section
13014 Broadway
13015 \end_layout
13016
13017 \begin_layout Standard
13018 by 
13019 \shape smallcaps
13020 Garst Reese
13021 \end_layout
13022
13023 \begin_layout Subsection
13024 Introduction
13025 \end_layout
13026
13027 \begin_layout Standard
13028 Broadway is for writing plays.
13029  The format is more decorative than Hollywood, and much less standardized.
13030  This format should be suitable for workshops.
13031 \end_layout
13032
13033 \begin_layout Subsection
13034 Special problems
13035 \end_layout
13036
13037 \begin_layout Standard
13038 The same as in Hollywood.
13039 \end_layout
13040
13041 \begin_layout Subsection
13042 Special features
13043 \end_layout
13044
13045 \begin_layout Standard
13046 Insert the 
13047 \family sans
13048 Speaker
13049 \family default
13050  names as labels then cross-reference the label to insert the name.
13051  The cross-reference dialog will show the current cast of characters.
13052 \end_layout
13053
13054 \begin_layout Subsection
13055 Paper size and Margins
13056 \end_layout
13057
13058 \begin_layout Standard
13059 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
13060 \end_layout
13061
13062 \begin_layout Subsection
13063 Environments
13064 \end_layout
13065
13066 \begin_layout Standard
13067 The following environments are available.
13068  You can use broadway.bind to get the bind keys shown at the right.
13069 \end_layout
13070
13071 \begin_layout Itemize
13072
13073 \family sans
13074 Standard
13075 \newline
13076
13077 \family default
13078 You should not have to use this, but it is here for anything that does not
13079  fit otherwise.
13080 \end_layout
13081
13082 \begin_layout Itemize
13083
13084 \family sans
13085 Narrative
13086 \hfill
13087 M-z n
13088 \newline
13089
13090 \family default
13091 Used to describe stage setting and the action.
13092  First use of speaker names in all CAPs.
13093 \end_layout
13094
13095 \begin_layout Itemize
13096
13097 \family sans
13098 ACT
13099 \hfill
13100 M-z a
13101 \newline
13102
13103 \family default
13104 Automatically numbered.
13105  On screen it will be arabic, but will print as Roman.
13106 \end_layout
13107
13108 \begin_layout Itemize
13109
13110 \family sans
13111 ACT*
13112 \hfill
13113 M-z S at
13114 \newline
13115
13116 \family default
13117 Subtitle for 
13118 \family sans
13119 ACT.
13120
13121 \family default
13122  It is just centered text.
13123 \end_layout
13124
13125 \begin_layout Itemize
13126
13127 \family sans
13128 SCENE
13129 \hfill
13130 M-z S-S
13131 \newline
13132
13133 \family default
13134 Not automatically numbered.
13135  You supply the number.
13136  This is because I couldn't figure out how.
13137 \end_layout
13138
13139 \begin_layout Itemize
13140
13141 \family sans
13142 AT_RISE:
13143 \hfill
13144 M-z S-R
13145 \newline
13146
13147 \family default
13148 A special case of Narrative to describe the setting and action as the curtain
13149  rises.
13150 \end_layout
13151
13152 \begin_layout Itemize
13153
13154 \family sans
13155 Speaker
13156 \hfill
13157 M-z s
13158 \newline
13159
13160 \family default
13161 The speaker's (actor's) title, centered in all CAPS.
13162 \end_layout
13163
13164 \begin_layout Itemize
13165
13166 \family sans
13167 Parenthetical
13168 \hfill
13169 M-z p
13170 \newline
13171
13172 \family default
13173 Instructions to the speaker.
13174  The parentheses are automatically inserted.
13175  The ( will appear on screen, but both will be in the printed play.
13176  This environment is only used within 
13177 \family sans
13178 Dialogue
13179 \family default
13180 .
13181 \end_layout
13182
13183 \begin_layout Itemize
13184
13185 \family sans
13186 Dialogue
13187 \hfill
13188 M-z d
13189 \newline
13190
13191 \family default
13192 What the Speaker says.
13193 \end_layout
13194
13195 \begin_layout Itemize
13196
13197 \family sans
13198 CURTAIN
13199 \hfill
13200 M-z S-C
13201 \newline
13202
13203 \family default
13204 The curtain comes down.
13205 \end_layout
13206
13207 \begin_layout Itemize
13208
13209 \family sans
13210 Title
13211 \hfill
13212 M-z S-T
13213 \end_layout
13214
13215 \begin_layout Itemize
13216
13217 \family sans
13218 Author
13219 \hfill
13220 M-z S-A
13221 \end_layout
13222
13223 \begin_layout Itemize
13224
13225 \family sans
13226 Right_Address
13227 \hfill
13228 M-z r
13229 \end_layout
13230
13231 \begin_layout Standard
13232 Hello there.
13233 \end_layout
13234
13235 \begin_layout Section
13236 RevTeX4
13237 \end_layout
13238
13239 \begin_layout Standard
13240 by 
13241 \noun on
13242 Amir Karger
13243 \end_layout
13244
13245 \begin_layout Standard
13246 \begin_inset VSpace bigskip
13247 \end_inset
13248
13249
13250 \end_layout
13251
13252 \begin_layout Standard
13253 \noindent
13254 The 
13255 \family sans
13256 Revtex\InsetSpace ~
13257 4
13258 \family default
13259  textclass works with the American Physical Sociey's RevTeX 4.0 (the 
13260 \begin_inset Formula $\beta$
13261 \end_inset
13262
13263  release of May, 1999) class.
13264 \end_layout
13265
13266 \begin_layout Standard
13267 LyX has a 
13268 \family sans
13269 Revtex
13270 \family default
13271  textclass, which works with RevTeX 3.1.
13272  However, v3.1 is basically obsolete, as it works with LaTeX 2.09.
13273  That means that it doesn't interact very well with LyX, which requires
13274  LaTeX2e, although it has been kludged to work.
13275  Since RevTeX 4.0 has been designed to work much more cleanly with LaTeX2e,
13276  LyX with the 
13277 \family sans
13278 RevTeX\InsetSpace ~
13279 4
13280 \family default
13281  textclass should also be pretty easy to use.
13282 \end_layout
13283
13284 \begin_layout Standard
13285 These documents are supposed to be used in 
13286 \emph on
13287 addition
13288 \emph default
13289  to the RevTeX 4.0 documents, so we don't describe any of the special RevTeX
13290  macros, and assume you'll know what to put in the preamble if necessary.
13291 \end_layout
13292
13293 \begin_layout Subsection
13294 Installation
13295 \end_layout
13296
13297 \begin_layout Standard
13298 All you need to do is install RevTeX 4, as described in the package's README
13299  file.
13300  The package can be found at 
13301 \begin_inset LatexCommand url
13302 name "The RevTeX 4 Web Site"
13303 target "http://publish.aps.org/revtex4/"
13304
13305 \end_inset
13306
13307 .
13308  Install it somewhere that LaTeX can see it.
13309  Test it by trying to LaTeX a short RevTeX 4 document in some random directory
13310  (i.e., not the directory where you installed the class file.) Then, if you
13311  reconfigure LyX, it will find the class file and let you use the RevTeX4
13312  textclass.
13313 \end_layout
13314
13315 \begin_layout Standard
13316 Probably the easiest way to get started is either to import a RevTeX 4 document
13317  using 
13318 \family typewriter
13319 tex2lyx
13320 \family default
13321 , or to use the 
13322 \family sans
13323 Revtex\InsetSpace ~
13324 4
13325 \family default
13326  template, found in the templates directory.
13327 \end_layout
13328
13329 \begin_layout Subsection
13330 Preamble Matter
13331 \end_layout
13332
13333 \begin_layout Standard
13334 Optional arguments to 
13335 \family typewriter
13336
13337 \backslash
13338 documentclass
13339 \family default
13340 , like 
13341 \begin_inset Quotes eld
13342 \end_inset
13343
13344 preprint
13345 \begin_inset Quotes erd
13346 \end_inset
13347
13348  and 
13349 \begin_inset Quotes eld
13350 \end_inset
13351
13352 aps
13353 \begin_inset Quotes erd
13354 \end_inset
13355
13356 , go in the 
13357 \family sans
13358 E
13359 \bar under
13360 x
13361 \bar default
13362 tra\InsetSpace ~
13363 Options
13364 \family default
13365  field in the 
13366 \family sans
13367 Document\InsetSpace ~
13368 Layout
13369 \family default
13370  dialog, as usual.
13371  Remember that in RevTeX, at least one optional argument is required! 
13372 \end_layout
13373
13374 \begin_layout Standard
13375 Other preamble matter, like 
13376 \family typewriter
13377
13378 \backslash
13379 draft
13380 \family default
13381  etc.\InsetSpace ~
13382 goes in the 
13383 \family sans
13384 La
13385 \family default
13386 T
13387 \family sans
13388 eX\InsetSpace ~
13389 Preamble
13390 \family default
13391  dialog, also as usual.
13392 \end_layout
13393
13394 \begin_layout Subsection
13395 Layouts
13396 \end_layout
13397
13398 \begin_layout Standard
13399 The layouts basically correspond to the commands in RevTeX4.0.
13400  For example, the Email layout corresponds to 
13401 \family typewriter
13402
13403 \backslash
13404 email{}
13405 \family default
13406 .
13407  Note that (at least as of RevTeX 4.0 Beta), the 
13408 \family sans
13409 Address
13410 \family default
13411  and 
13412 \family sans
13413 Affiliation
13414 \family default
13415  layouts are exactly equivalent, so you shouldn't need to use both.
13416 \begin_inset Foot
13417 status collapsed
13418
13419 \begin_layout Standard
13420 In case you're curious, both were included so that 
13421 \family typewriter
13422 tex2lyx
13423 \family default
13424  would be able to translate both 
13425 \family typewriter
13426
13427 \backslash
13428 address
13429 \family default
13430  and 
13431 \family typewriter
13432
13433 \backslash
13434 affiliation
13435 \family default
13436 .
13437 \end_layout
13438
13439 \end_inset
13440
13441
13442 \end_layout
13443
13444 \begin_layout Subsection
13445 Important Notes
13446 \end_layout
13447
13448 \begin_layout Standard
13449 There are a couple of important unique aspects of RevTeX 4 which might cause
13450  bugs that will be even more confusing in LyX.
13451 \end_layout
13452
13453 \begin_layout Standard
13454 In RevTeX, the 
13455 \family typewriter
13456
13457 \backslash
13458 thanks
13459 \family default
13460  command goes 
13461 \emph on
13462 outside
13463 \emph default
13464  the 
13465 \family typewriter
13466
13467 \backslash
13468 author
13469 \family default
13470  command.
13471  The LyX equivalent is that there is a separate Thanks layout.
13472  Do 
13473 \emph on
13474 not
13475 \emph default
13476  write footnotes in the 
13477 \family sans
13478 Author
13479 \family default
13480  layout, or weird things may happen.
13481  See the RevTeX 4 documentation for more details.
13482 \end_layout
13483
13484 \begin_layout Standard
13485 Also, the 
13486 \family sans
13487 Author\InsetSpace ~
13488 Email
13489 \family default
13490
13491 \family sans
13492 Author\InsetSpace ~
13493 URL
13494 \family default
13495 , and 
13496 \family sans
13497 Thanks
13498 \family default
13499  layouts must be placed 
13500 \emph on
13501 in between
13502 \emph default
13503  the 
13504 \family sans
13505 Author
13506 \family default
13507  layout and the corresponding 
13508 \family sans
13509 Address
13510 \family default
13511  (or equivalent 
13512 \family sans
13513 Affiliation
13514 \family default
13515 ) layout.
13516  If you put the 
13517 \family sans
13518 Thanks
13519 \family default
13520  after the 
13521 \family sans
13522 Address
13523 \family default
13524 , the LaTeX won't compile.
13525 \end_layout
13526
13527 \begin_layout Subsection
13528 Drawbacks
13529 \end_layout
13530
13531 \begin_layout Standard
13532 The main problem with this layout is that you can't use the optional arguments
13533  to layouts like Email and Title.
13534  (The problem is not unique to this layout; you can't use optional arguments
13535  to the Section layouts either.) This means that after you export that file
13536  to LaTeX (which you'll need to do eventually to send it in to APS), you'll
13537  need to edit the LaTeX file with a text editor to add the optional arguments
13538  to set, e.\InsetSpace \thinspace{}
13539 g., the running title for the page headers.
13540  Lacking these layouts makes the 
13541 \family typewriter
13542
13543 \backslash
13544 altaffiliation
13545 \family default
13546  (and the equivalent 
13547 \family typewriter
13548
13549 \backslash
13550 altaddress
13551 \family default
13552 ) useless, so the corresponding layouts don't exist, and will have to be
13553  added by hand.
13554 \begin_inset Foot
13555 status collapsed
13556
13557 \begin_layout Standard
13558
13559 \emph on
13560 Note from JMarc:
13561 \emph default
13562  actually, LyX 1.3.0 supports some forms of optional arguments, but this layout
13563  has not been updated yet to take advantage of it.
13564 \end_layout
13565
13566 \end_inset
13567
13568  
13569 \end_layout
13570
13571 \begin_layout Section
13572 Article (mwart), book (mwbk) and report (mwrep)
13573 \begin_inset OptArg
13574 status collapsed
13575
13576 \begin_layout Standard
13577 The 
13578 \family typewriter
13579 mw
13580 \family default
13581  Classes
13582 \end_layout
13583
13584 \end_inset
13585
13586
13587 \end_layout
13588
13589 \begin_layout Standard
13590 by 
13591 \noun on
13592 Tomasz Luczak
13593 \end_layout
13594
13595 \begin_layout Standard
13596 The LyX document classes 
13597 \emph on
13598 article (mwart)
13599 \emph default
13600
13601 \emph on
13602 report (mwrep)
13603 \emph default
13604  and 
13605 \emph on
13606 book
13607 \emph default
13608  
13609 \emph on
13610 (mwbk)
13611 \emph default
13612  correspond to the LaTeX document classes 
13613 \family typewriter
13614 mwart.cls
13615 \family default
13616
13617 \family typewriter
13618 mwrep.cls
13619 \family default
13620  and 
13621 \family typewriter
13622 mwbk.cls
13623 \family default
13624 , resp.
13625  They are replacements for the standard document classes 
13626 \family typewriter
13627 article.cls
13628 \family default
13629
13630 \family typewriter
13631 report.cls
13632 \family default
13633  and 
13634 \family typewriter
13635 book.cls
13636 \family default
13637 , resp., and fit better to Polish typography conventions in a number of points.
13638  
13639 \end_layout
13640
13641 \begin_layout Standard
13642 Basic differences:
13643 \end_layout
13644
13645 \begin_layout Itemize
13646 Unnumbered titles (with star, eg.
13647  
13648 \family sans
13649 Section*
13650 \family default
13651 ) are added into table of contents,
13652 \end_layout
13653
13654 \begin_layout Itemize
13655 Additional page styles:
13656 \end_layout
13657
13658 \begin_deeper
13659 \begin_layout Description
13660 uheadings header with separated lines,
13661 \end_layout
13662
13663 \begin_layout Description
13664 myheadings custom header, contents headers via commands: 
13665 \family typewriter
13666
13667 \backslash
13668 markright
13669 \family default
13670  and 
13671 \family typewriter
13672
13673 \backslash
13674 markboth
13675 \family default
13676 ,
13677 \end_layout
13678
13679 \begin_layout Description
13680 myuheadings custom header with separated lines,
13681 \end_layout
13682
13683 \begin_layout Description
13684 outer page number is placed on outer side of page
13685 \end_layout
13686
13687 \end_deeper
13688 \begin_layout Itemize
13689 Options 
13690 \end_layout
13691
13692 \begin_deeper
13693 \begin_layout Description
13694 rmheadings serif titles --- default,
13695 \end_layout
13696
13697 \begin_layout Description
13698 sfheadings sansserif titles,
13699 \end_layout
13700
13701 \begin_layout Description
13702 authortitle on title page first placed is author next title --- default,
13703 \end_layout
13704
13705 \begin_layout Description
13706 titleauthor on title page first placed is title next author,
13707 \end_layout
13708
13709 \begin_layout Description
13710 withmarginpar reserve place on page for margins.
13711 \end_layout
13712
13713 \end_deeper
13714 \begin_layout Section
13715 Elsevier Journals
13716 \end_layout
13717
13718 \begin_layout Standard
13719 By 
13720 \noun on
13721 Rod Pinna
13722 \end_layout
13723
13724 \begin_layout Standard
13725 Elsevier Science Publishers B.V.
13726  provides a standard LaTeX document class (
13727 \family typewriter
13728 elsart.cls
13729 \family default
13730 ) for submitting articles to their various journals.
13731  The style file can be downloaded directly from their web site: 
13732 \begin_inset LatexCommand url
13733 target "http://authors.elsevier.com/"
13734
13735 \end_inset
13736
13737 .
13738  Instructions are supplied along with the class file, which details the
13739  requirements of the publishers.
13740  LyX includes package that allows for the use of this class, by a layout
13741  and a template file.
13742  Installation of the class file is the same as for any other LaTeX package;
13743  instructions are provided in the Elsevier documentation.
13744 \end_layout
13745
13746 \begin_layout Standard
13747 To make use of 
13748 \family typewriter
13749 elsart.cls
13750 \family default
13751 , a file 
13752 \family typewriter
13753 elsart.layout
13754 \family default
13755  is supplied.
13756  As the Elsevier class file is based mainly on the standard article class,
13757  most of the normal functionality is provided.
13758  The Elsevier class defines a number of mathematical environments, which
13759  are similar to the AMS environments.
13760  These commands are all described in the Elsevier documentation, and are
13761  available in LyX.
13762 \end_layout
13763
13764 \begin_layout Standard
13765 The easiest way to use the Elsevier style is to base documents on the included
13766  template file.
13767  It is best not to use options such as fancy headings or the geometry package,
13768  as elements such as these are defined by Elsevier in their style file.
13769  Ideally, no extra packages except those mentioned in the Elsevier documentation
13770  should be used.
13771  Essentially, Elsevier require as 
13772 \begin_inset Quotes eld
13773 \end_inset
13774
13775 clean
13776 \begin_inset Quotes erd
13777 \end_inset
13778
13779  a 
13780 \begin_inset ERT
13781 status collapsed
13782
13783 \begin_layout Standard
13784
13785
13786 \backslash
13787 LaTeX
13788 \end_layout
13789
13790 \end_inset
13791
13792  file as possible, as their intention is to take the supplied file and replace
13793  the class file with one for the particular journal to which the paper has
13794  been submitted.
13795  This also means that not too much time should be spent on the formating
13796  of the document.
13797  When it comes to be published, this will change anyway.
13798  The rest of the usage for this layout is substantially the same as for
13799  the normal article class.
13800  For details of what Elsevier do and don't allow, refer to their documentation.
13801 \end_layout
13802
13803 \begin_layout Section
13804 Memoir
13805 \end_layout
13806
13807 \begin_layout Standard
13808 By 
13809 \noun on
13810 Jürgen Spitzmüller
13811 \end_layout
13812
13813 \begin_layout Subsection
13814 Overview
13815 \end_layout
13816
13817 \begin_layout Standard
13818 Memoir is a very powerful and constantly evolving class.
13819  It has been designed with regard to fictional and non-fictional literature.
13820  Its aim is to let the user have maximum control over the typesetting of
13821  his document.
13822  Memoir is based on the standard book class, but it can also emulate the
13823  article class (see below).
13824 \end_layout
13825
13826 \begin_layout Standard
13827 Peter Wilson, the developer of Memoir, is known as the author of lots of
13828  useful packages in the LaTeX world.
13829  Most of them have been merged with Memoir.
13830  Therefore, it is much easier to layout the table of contents, appendices,
13831  chapter designs and such.
13832  LyX, though, does not support all of these goodies natively.
13833  Some of them might be added to forthcoming releases
13834 \begin_inset Foot
13835 status collapsed
13836
13837 \begin_layout Standard
13838 You are invited to send suggestions to 
13839 \begin_inset LatexCommand url
13840 target "lyx-devel@lists.lyx.org"
13841
13842 \end_inset
13843
13844 .
13845 \end_layout
13846
13847 \end_inset
13848
13849 , lots will probably never, due to the limitations of LyX's framework.
13850  Of course you can still use all features with the help of some native LaTeX
13851  commands (ERT
13852 \begin_inset Foot
13853 status collapsed
13854
13855 \begin_layout Standard
13856 Cf.
13857 \begin_inset ERT
13858 status collapsed
13859
13860 \begin_layout Standard
13861
13862
13863 \backslash
13864  
13865 \end_layout
13866
13867 \end_inset
13868
13869 section\InsetSpace ~
13870
13871 \begin_inset LatexCommand ref
13872 reference "sec:Inserting-LaTeX-Code"
13873
13874 \end_inset
13875
13876  for details.
13877 \end_layout
13878
13879 \end_inset
13880
13881 ).
13882  In this section, we can only list those features which are natively supported
13883  by LyX.
13884  For detailed descriptions (and for the rest of features) we are recommending
13885  to have a look at the detailed manual of the Memoir class
13886 \begin_inset Foot
13887 status collapsed
13888
13889 \begin_layout Standard
13890 Cf.
13891 \begin_inset ERT
13892 status collapsed
13893
13894 \begin_layout Standard
13895
13896
13897 \backslash
13898  
13899 \end_layout
13900
13901 \end_inset
13902
13903
13904 \begin_inset LatexCommand url
13905 target "CTAN:/macros/latex/memoir/memman.pdf"
13906
13907 \end_inset
13908
13909 .
13910 \end_layout
13911
13912 \end_inset
13913
13914 , which is not only a user guide for the class, but also both a comprehensive
13915  description on good typesetting and a superb example for good typesetting
13916  itself.
13917 \end_layout
13918
13919 \begin_layout Subsection
13920 Basic features and restrictions
13921 \end_layout
13922
13923 \begin_layout Standard
13924 Memoir supports basically all features of the standard book classes.
13925  There are, however, some differences, as follows:
13926 \end_layout
13927
13928 \begin_layout Description
13929 Font\InsetSpace ~
13930 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14,
13931  17
13932 \end_layout
13933
13934 \begin_layout Description
13935 Page\InsetSpace ~
13936 style: The fancy page style is not supported, due to a command clash
13937  between Memoir and the fancyhdr package (they are both defining a command
13938  with the same name, which confuses LaTeX).
13939  Instead, Memoir comes with a bunch of own page styles (see 
13940 \family sans
13941 Layout\SpecialChar \menuseparator
13942 Document\SpecialChar \menuseparator
13943 Page\InsetSpace ~
13944 Style
13945 \family default
13946 ).
13947  If you want to use these for the chapter pages, you have to use the command
13948  
13949 \family typewriter
13950
13951 \backslash
13952 chapterstyle
13953 \family default
13954  in the main text or in preamble (e.
13955 \begin_inset ERT
13956 status collapsed
13957
13958 \begin_layout Standard
13959
13960
13961 \backslash
13962 ,
13963 \end_layout
13964
13965 \end_inset
13966
13967 g.
13968 \begin_inset ERT
13969 status collapsed
13970
13971 \begin_layout Standard
13972
13973
13974 \backslash
13975  
13976 \end_layout
13977
13978 \end_inset
13979
13980
13981 \family typewriter
13982
13983 \backslash
13984 chapterstyle{companion}
13985 \family default
13986 ).
13987 \end_layout
13988
13989 \begin_layout Description
13990 Sectioning: Sectionings (chapter, section, subsection etc.) are coming with
13991  an optional argument in the standard classes.
13992  With this, you can specify an alternative version of the title for the
13993  table of contents and the headers (for instance, if the title is too long).
13994  In LyX, you can do this via 
13995 \family sans
13996 Insert\SpecialChar \menuseparator
13997 Short\InsetSpace ~
13998 Title
13999 \family default
14000  at the beginning of a chapter/section.
14001  Memoir features a second optional argument and thus separates the table
14002  of contents from the header.
14003  You can define three variants of a title with this: one for the main text,
14004  one for the table of contents, and one for the headers.
14005  Simply insert two optional arguments if you need this feature, the first
14006  one containing the short title for the Table of Contents, the second one
14007  containing an alternative short title for the headers.
14008 \end_layout
14009
14010 \begin_layout Description
14011 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
14012  of contents, the list of figures and the list of table start a new page
14013  automatically.
14014  Memoir does not follow this route.
14015  You have to insert a page break yourself, if you want to have one.
14016 \end_layout
14017
14018 \begin_layout Description
14019 Titlepage: For some unknown reason, Memoir uses pagination on the title
14020  page (in the standard classes, title pages are 
14021 \begin_inset Quotes eld
14022 \end_inset
14023
14024 empty
14025 \begin_inset Quotes erd
14026 \end_inset
14027
14028 , i.
14029 \begin_inset ERT
14030 status collapsed
14031
14032 \begin_layout Standard
14033
14034
14035 \backslash
14036 ,
14037 \end_layout
14038
14039 \end_inset
14040
14041 e.
14042 \begin_inset ERT
14043 status collapsed
14044
14045 \begin_layout Standard
14046
14047
14048 \backslash
14049  
14050 \end_layout
14051
14052 \end_inset
14053
14054 without pagina).
14055  If you want an empty title page, type 
14056 \family typewriter
14057
14058 \backslash
14059 aliaspagestyle{title}{empty}
14060 \family default
14061  in the preamble.
14062 \end_layout
14063
14064 \begin_layout Description
14065 Article: With the class option 
14066 \emph on
14067 article
14068 \emph default
14069  (to be inserted in 
14070 \family sans
14071 Layout\SpecialChar \menuseparator
14072 Document\SpecialChar \menuseparator
14073 Extra\InsetSpace ~
14074 Options
14075 \family default
14076 ), you can emulate article style.
14077  That is, counters (footnotes, figures, tables etc.) will not be reset on
14078  new chapters, chapters don't start a new page (but are---in contrary to
14079  
14080 \begin_inset Quotes eld
14081 \end_inset
14082
14083 real
14084 \begin_inset Quotes erd
14085 \end_inset
14086
14087  article classes---still allowed), parts, though, use their own page, as
14088  in book.
14089 \end_layout
14090
14091 \begin_layout Description
14092 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
14093  font commands, which have been used in the old LaTeX version 2.09 (e.
14094 \begin_inset ERT
14095 status collapsed
14096
14097 \begin_layout Standard
14098
14099
14100 \backslash
14101 ,
14102 \end_layout
14103
14104 \end_inset
14105
14106 g.
14107 \begin_inset ERT
14108 status collapsed
14109
14110 \begin_layout Standard
14111
14112
14113 \backslash
14114  
14115 \end_layout
14116
14117 \end_inset
14118
14119
14120 \family typewriter
14121
14122 \backslash
14123 rm
14124 \family default
14125
14126 \family typewriter
14127
14128 \backslash
14129 it
14130 \family default
14131 ).
14132  It produces an error and stops LaTeX whenever such a command appears.
14133  The class option 
14134 \emph on
14135 oldfontcommands
14136 \emph default
14137  reallows the commands and spits out warnings instead (which does at least
14138  not stop LaTeX).
14139  Since a lot of packages and particularly BibTeX style files are still using
14140  those commands, we have decided to use this option by default.
14141 \end_layout
14142
14143 \begin_layout Subsection
14144 Extra features
14145 \end_layout
14146
14147 \begin_layout Standard
14148 We will only describe the features supported by LyX (which is not much currently
14149 ).
14150  Please consult the Memoir manual
14151 \begin_inset Foot
14152 status collapsed
14153
14154 \begin_layout Standard
14155 Cf.
14156 \begin_inset ERT
14157 status collapsed
14158
14159 \begin_layout Standard
14160
14161
14162 \backslash
14163  
14164 \end_layout
14165
14166 \end_inset
14167
14168
14169 \begin_inset LatexCommand url
14170 target "CTAN:/macros/latex/memoir/memman.pdf"
14171
14172 \end_inset
14173
14174 .
14175 \end_layout
14176
14177 \end_inset
14178
14179  for details.
14180 \end_layout
14181
14182 \begin_layout Description
14183 Abstract: You may wonder why an abstract is an extra feature.
14184  Well, it is in book class.
14185  Usually books don't have abstracts.
14186  Memoir, however, has.
14187  You can use it wherever and how often you like.
14188 \end_layout
14189
14190 \begin_layout Description
14191 Chapterprecis: You may know this from belletristic: The contents of a chapter
14192  is shortly described below the title and also in the table of contents
14193  (e.
14194 \begin_inset ERT
14195 status collapsed
14196
14197 \begin_layout Standard
14198
14199
14200 \backslash
14201 ,
14202 \end_layout
14203
14204 \end_inset
14205
14206 g.
14207 \begin_inset ERT
14208 status collapsed
14209
14210 \begin_layout Standard
14211
14212
14213 \backslash
14214  
14215 \end_layout
14216
14217 \end_inset
14218
14219
14220 \emph on
14221 Our hero arrives in Troia; he loses some friends; he finds others
14222 \emph default
14223 ).
14224  Chapterprecis does exactly this.
14225  It is therefore only sensible below a chapter.
14226 \end_layout
14227
14228 \begin_layout Description
14229 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
14230  The epigraph environment provides an elegant way of typesetting such a
14231  motto.
14232  The motto itself (text) and its author (source) are divided by a short
14233  line.
14234  Unfortunately, we have to fool LyX a bit here again, since the environment
14235  needs two arguments (text and source).
14236  In this case, we have to use curly brackets (in TeX mode) between the two
14237  arguments: 
14238 \emph on
14239 <smart slogan>
14240 \emph default
14241  
14242 \family typewriter
14243 }{
14244 \family default
14245  
14246 \emph on
14247 <author of the slogan>.
14248 \end_layout
14249
14250 \begin_layout Description
14251 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
14252  complex figurative poems).
14253  LyX can only support a few of them.
14254  One is poemtitle, which is a centered title for poems, which will also
14255  be added to the table of contents (verse is the standard environment for
14256  poems.
14257  Memoir has some enhanced versions of verse, but you need to use ERT, because
14258  they have to be nested inside regular verse environments, which is not
14259  possible with LyX).
14260 \end_layout
14261
14262 \begin_layout Description
14263 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
14264 \end_layout
14265
14266 \begin_layout Chapter
14267 Importing and Exporting Alternate File Formats
14268 \begin_inset OptArg
14269 status collapsed
14270
14271 \begin_layout Standard
14272 Importing and Exporting
14273 \end_layout
14274
14275 \end_inset
14276
14277
14278 \end_layout
14279
14280 \begin_layout Section
14281 Considerations
14282 \end_layout
14283
14284 \begin_layout Standard
14285 Importing and exporting LyX documents from/to other formats has been touched
14286  on briefly in the 
14287 \emph on
14288 User Guide
14289 \emph default
14290 .
14291  Here we describe more of the gory details needed to understand just what
14292  is going on when you click on the 
14293 \family sans
14294 \bar under
14295 F
14296 \bar default
14297 ile\SpecialChar \menuseparator
14298
14299 \bar under
14300 I
14301 \bar default
14302 mport
14303 \family default
14304  and 
14305 \family sans
14306 \bar under
14307 F
14308 \bar default
14309 ile\SpecialChar \menuseparator
14310 E
14311 \bar under
14312 x
14313 \bar default
14314 port
14315 \family default
14316  menu items.
14317  
14318 \end_layout
14319
14320 \begin_layout Section
14321 Importing Other Formats
14322 \end_layout
14323
14324 \begin_layout Subsection
14325 LaTeX
14326 \end_layout
14327
14328 \begin_layout Standard
14329 Translating from LaTeX into LyX is performed by a converter program called
14330  
14331 \family typewriter
14332 tex2lyx
14333 \family default
14334 .
14335  Although it is a standalone program which can be called from the command
14336  line, LyX will call it automatically when a LaTeX document is imported.
14337  See section\InsetSpace ~
14338
14339 \begin_inset LatexCommand ref
14340 reference "sec:Translating-LaTeX-files"
14341
14342 \end_inset
14343
14344  for a complete description.
14345 \end_layout
14346
14347 \begin_layout Subsection
14348 ASCII Text
14349 \end_layout
14350
14351 \begin_layout Standard
14352 When importing plain ASCII text, there are two methods of reading the file.
14353  Importing 
14354 \begin_inset Quotes eld
14355 \end_inset
14356
14357 as lines
14358 \begin_inset Quotes erd
14359 \end_inset
14360
14361  preserves all the linebreaks in the ASCII; to LyX, then, each line looks
14362  like a paragraph.
14363  Importing 
14364 \begin_inset Quotes eld
14365 \end_inset
14366
14367 as paragraphs
14368 \begin_inset Quotes erd
14369 \end_inset
14370
14371  assumes that consecutive lines separated by only a single linebreak form
14372  a single paragraph.
14373  Successive linebreaks with no intervening text are thus assumed to be paragraph
14374  delimiters.
14375 \end_layout
14376
14377 \begin_layout Subsection
14378 Noweb
14379 \end_layout
14380
14381 \begin_layout Standard
14382
14383 \emph on
14384 [Editor's note: Needs to be written, obviously - any volunteers? --- mer]
14385 \end_layout
14386
14387 \begin_layout Section
14388 Exporting Other Formats
14389 \end_layout
14390
14391 \begin_layout Standard
14392 The output formats listed here in the following are also explained concerning
14393  possible graphics formats in the 
14394 \emph on
14395 Embedded Objects
14396 \emph default
14397  manual.
14398 \end_layout
14399
14400 \begin_layout Subsection
14401 LaTeX
14402 \end_layout
14403
14404 \begin_layout Standard
14405 LyX generates two types of LaTeX files: stripped down versions for the normal
14406  processing (
14407 \family sans
14408 View DVI
14409 \family default
14410 , etc.) which one normally never sees
14411 \begin_inset Foot
14412 status collapsed
14413
14414 \begin_layout Standard
14415 The resulting file is a perfectly valid LaTeX file, though the preamble
14416  might look a bit strange since it includes some definitions used by LyX
14417  which wouldn't show up in most human-written files.
14418 \end_layout
14419
14420 \end_inset
14421
14422 , and human readable forms which are suitable for exchanging with your colleague
14423 s.
14424  The only settable option for the translation is the line length of the
14425  output file.
14426  The default is 65 characters, but it can be set in 
14427 \family sans
14428 \bar under
14429 T
14430 \bar default
14431 ools
14432 \family default
14433 \SpecialChar \menuseparator
14434
14435 \family sans
14436 \bar under
14437 P
14438 \bar default
14439 references
14440 \family default
14441  using the 
14442 \family sans
14443 \bar under
14444 A
14445 \bar default
14446 scii\InsetSpace ~
14447 line\InsetSpace ~
14448 length
14449 \family default
14450  field.
14451  
14452 \end_layout
14453
14454 \begin_layout Subsection
14455 Device Independent Files
14456 \end_layout
14457
14458 \begin_layout Standard
14459 Device Independent files (DVI files) are produced by running LaTeX on your
14460  document.
14461  There are no user settable options.
14462 \end_layout
14463
14464 \begin_layout Subsection
14465 PostScript
14466 \end_layout
14467
14468 \begin_layout Standard
14469 The next step in the conversion chain is converting a DVI file into Postscript.
14470  You can either use 
14471 \family sans
14472 \bar under
14473 F
14474 \bar default
14475 ile
14476 \family default
14477 \SpecialChar \menuseparator
14478
14479 \family sans
14480 \bar under
14481 E
14482 \bar default
14483 xport
14484 \family default
14485 \SpecialChar \menuseparator
14486
14487 \family sans
14488 Pos
14489 \bar under
14490 t
14491 \bar default
14492 script
14493 \family default
14494  or, if you need more control on the result, 
14495 \family sans
14496 \bar under
14497 F
14498 \bar default
14499 ile
14500 \family default
14501 \SpecialChar \menuseparator
14502
14503 \family sans
14504 \bar under
14505 P
14506 \bar default
14507 rint
14508 \family default
14509 .
14510  If you use the later, note that it is possible to configure, in 
14511 \family sans
14512 \bar under
14513 T
14514 \bar default
14515 ools
14516 \family default
14517 \SpecialChar \menuseparator
14518
14519 \family sans
14520 \bar under
14521 P
14522 \bar default
14523 references
14524 \family default
14525 , the options passed to the dvips program to achieve different effects.
14526 \end_layout
14527
14528 \begin_layout Subsection
14529 ASCII text
14530 \end_layout
14531
14532 \begin_layout Standard
14533 Exporting as ASCII attempts to preserve the 
14534 \begin_inset Quotes eld
14535 \end_inset
14536
14537 shape
14538 \begin_inset Quotes erd
14539 \end_inset
14540
14541  of the document as well as possible, but things like centering and indentation
14542  are thrown out; paragraphs are separated by blank lines.
14543  Section numbering and cross-references are done correctly, so the resulting
14544  text files is remarkably readable.
14545  The only changeable option is the length of lines, as for LaTeX output.
14546 \end_layout
14547
14548 \begin_layout Subsection
14549 HTML
14550 \end_layout
14551
14552 \begin_layout Standard
14553 LyX documents can be converted to hypertext markup, usually by converting
14554  to LaTeX first, then converting that to HTML\SpecialChar \@.
14555  Four LaTeX
14556 \begin_inset Formula $\rightarrow$
14557 \end_inset
14558
14559 HTML converters are currently known to LyX: 
14560 \family typewriter
14561 tth
14562 \family default
14563
14564 \family typewriter
14565 latex2html
14566 \family default
14567
14568 \family typewriter
14569 hevea
14570 \family default
14571  and 
14572 \family typewriter
14573 htlatex
14574 \family default
14575 .
14576  Though they are autodetected, you can overide the selection in preferences.
14577  You can also include further command line options in this dialog.
14578  
14579 \end_layout
14580
14581 \begin_layout Subsection
14582 PDF
14583 \end_layout
14584
14585 \begin_layout Standard
14586 by 
14587 \noun on
14588 Dekel Tsur
14589 \noun default
14590  (mostly)
14591 \end_layout
14592
14593 \begin_layout Standard
14594 \begin_inset VSpace bigskip
14595 \end_inset
14596
14597
14598 \end_layout
14599
14600 \begin_layout Standard
14601 The fastest way to generate a basic PDF file (no tags, links, etc.) with
14602  any version of LyX is to save the document as a Postscript file, then run
14603  the 
14604 \family typewriter
14605 ps2pdf
14606 \family default
14607  command on it.
14608  Starting with version 1.1.6, the menu item 
14609 \family sans
14610 File->Export->PDF
14611 \family default
14612  will do all this for you.
14613  There are some issues with fonts that you need to pay attention to: see
14614  Section\InsetSpace ~
14615
14616 \begin_inset LatexCommand ref
14617 reference "sec:badfonts"
14618
14619 \end_inset
14620
14621 .
14622  Also, as of version 1.1.6, there is a better method that will generate much
14623  more sophisticated files.
14624 \end_layout
14625
14626 \begin_layout Subsubsection
14627 Use pdfLaTeX
14628 \end_layout
14629
14630 \begin_layout Standard
14631 With pdfLaTeX you cannot use pstricks.
14632  On the other hand, with pdfLaTeX it is possible to insert directly images
14633  in JPEG, PDF or PNG format, use TrueType fonts, and more.
14634 \end_layout
14635
14636 \begin_layout Subsubsection
14637 Why does the text look so bad when viewed with Acrobat Reader?
14638 \begin_inset LatexCommand label
14639 name "sec:badfonts"
14640
14641 \end_inset
14642
14643
14644 \begin_inset OptArg
14645 status collapsed
14646
14647 \begin_layout Standard
14648 Bad Fonts in Acrobat Reader
14649 \end_layout
14650
14651 \end_inset
14652
14653
14654 \end_layout
14655
14656 \begin_layout Standard
14657 The problem is that bitmap fonts are displayed poorly by Acrobat Reader.
14658  When creating a PDF from the LyX file, you need to use outline font instead
14659  of the default bitmap fonts (in fact, you should also use outline fonts
14660  for Postscript files).
14661  Recent LaTeX distributions come with Postscript Type 1 version of the standard
14662  (Computer Modern) fonts.
14663  pdfLaTeX uses these font by default.
14664  Dvips doesn't use these fonts by default, so to make it use them, add the
14665  following to lines to your 
14666 \family typewriter
14667 ~/.dvipsrc
14668 \family default
14669  file
14670 \end_layout
14671
14672 \begin_layout LyX-Code
14673 p+ psfonts.cmz
14674 \end_layout
14675
14676 \begin_layout LyX-Code
14677 p+ psfonts.amz
14678 \end_layout
14679
14680 \begin_layout Standard
14681 If the default LaTeX font encoding (OT1) is used, nothing else need to be
14682  done.
14683  However, if the T1 font encoding is used, then LaTeX uses the newer EC
14684  fonts, for which there are no Type1 version.
14685  The solution is to use the ae package which emulates T1 coded fonts using
14686  the standard CM fonts.
14687  This is done by adding 
14688 \family typewriter
14689
14690 \backslash
14691 usepackage{ae,aecompl}
14692 \family default
14693  to the preamble of the LyX file.
14694  However, some glyphs are missing from the CM fonts (e.\InsetSpace \thinspace{}
14695 g.\InsetSpace ~
14696 eth, thorn), and
14697  they are taken from the EC fonts.
14698  Therefore you get these glyphs as bitmaps.
14699 \end_layout
14700
14701 \begin_layout Standard
14702 Note: LyX uses by default the T1 font encoding.
14703  If you wish to use the default font encoding (this is not recommended,
14704  unless you only write English documents), clear the field 
14705 \family sans
14706 \bar under
14707 T
14708 \bar default
14709 eX\InsetSpace ~
14710 encoding
14711 \family default
14712  in preferences (tabs 
14713 \family sans
14714 Outputs
14715 \family default
14716
14717 \family sans
14718 Misc
14719 \family default
14720 ).
14721  
14722 \end_layout
14723
14724 \begin_layout Standard
14725 An alternate option is to use the standard Postscript fonts instead of the
14726  Computer Modern fonts.
14727  To do that, you need to select 
14728 \family sans
14729 pslatex
14730 \family default
14731  as the global font in the document layout dialog.
14732  When using the Postscript fonts, the result PDF file is smaller as the
14733  fonts are not saved into the file.
14734  Furthermore, the Postscript fonts include all T1 glyphs.
14735  On the other hand, the Postscript fonts have no bold symbol font, so poor
14736  man's bold must be used (see Section\InsetSpace ~
14737
14738 \begin_inset LatexCommand ref
14739 reference "sec:pdfbold"
14740
14741 \end_inset
14742
14743 ).
14744  The Postscript fonts also look different from the Computer Modern fonts.
14745 \end_layout
14746
14747 \begin_layout Standard
14748 To sum up, both the Computer Modern and the Postscript fonts gives good
14749  results (with few exceptions).
14750  The decision of which one to use is a matter of taste.
14751 \end_layout
14752
14753 \begin_layout Subsubsection
14754 Why doesn't the 
14755 \backslash
14756 boldsymbol{} command work when I use pslatex?
14757 \begin_inset LatexCommand label
14758 name "sec:pdfbold"
14759
14760 \end_inset
14761
14762
14763 \begin_inset OptArg
14764 status collapsed
14765
14766 \begin_layout Standard
14767
14768 \family typewriter
14769
14770 \backslash
14771 boldsymbol{}
14772 \family default
14773  and 
14774 \family typewriter
14775 pslatex
14776 \end_layout
14777
14778 \end_inset
14779
14780
14781 \end_layout
14782
14783 \begin_layout Standard
14784 The Postscript fonts do not have a bold symbol font.
14785  The solution is to use the 
14786 \family typewriter
14787
14788 \backslash
14789 pmb{}
14790 \family default
14791  (poor man's bold) command.
14792 \end_layout
14793
14794 \begin_layout Standard
14795 It is possible to redefine the 
14796 \family typewriter
14797
14798 \backslash
14799 boldsymbol
14800 \family default
14801  command to use 
14802 \family typewriter
14803
14804 \backslash
14805 pmb
14806 \family default
14807  by putting
14808 \end_layout
14809
14810 \begin_layout LyX-Code
14811
14812 \backslash
14813 renewcommand{
14814 \backslash
14815 boldsymbol}[1]{
14816 \backslash
14817 pmb{#1}}
14818 \end_layout
14819
14820 \begin_layout Standard
14821 in the preamble.
14822 \end_layout
14823
14824 \begin_layout Subsubsection
14825 Is it possible to do write LaTeX-code which is processed only when running
14826  pdfLaTeX?
14827 \begin_inset OptArg
14828 status collapsed
14829
14830 \begin_layout Standard
14831 Conditionals with pdfLaTeX
14832 \end_layout
14833
14834 \end_inset
14835
14836
14837 \end_layout
14838
14839 \begin_layout Standard
14840 Yes you can do this with the 
14841 \family typewriter
14842 ifpdf.sty
14843 \family default
14844  package.
14845  Here is an example:
14846 \end_layout
14847
14848 \begin_layout LyX-Code
14849
14850 \end_layout
14851
14852 \begin_layout LyX-Code
14853
14854 \backslash
14855 usepackage{ifpdf}
14856 \end_layout
14857
14858 \begin_layout LyX-Code
14859
14860 \backslash
14861 ifpdf
14862 \end_layout
14863
14864 \begin_layout LyX-Code
14865    
14866 \backslash
14867 pdfinfo { /Author (your name and e-mail address)
14868 \end_layout
14869
14870 \begin_layout LyX-Code
14871       /Title (official title -- i.e., title element)
14872 \end_layout
14873
14874 \begin_layout LyX-Code
14875       /Subject (one line description of the document)
14876 \end_layout
14877
14878 \begin_layout LyX-Code
14879    }
14880 \end_layout
14881
14882 \begin_layout LyX-Code
14883    
14884 \backslash
14885 pdfcatalog { /PageMode (/UseNone)
14886 \end_layout
14887
14888 \begin_layout LyX-Code
14889    % /OpenAction (fitbh)
14890 \end_layout
14891
14892 \begin_layout LyX-Code
14893    }
14894 \end_layout
14895
14896 \begin_layout LyX-Code
14897    
14898 \backslash
14899 usepackage[pdftex]{hyperref}
14900 \end_layout
14901
14902 \begin_layout LyX-Code
14903
14904 \backslash
14905 else
14906 \end_layout
14907
14908 \begin_layout LyX-Code
14909    
14910 \backslash
14911 usepackage[ps2pdf]{hyperref}
14912 \end_layout
14913
14914 \begin_layout LyX-Code
14915
14916 \backslash
14917 fi
14918 \end_layout
14919
14920 \begin_layout Subsubsection
14921 How can I make URLs clickable?
14922 \end_layout
14923
14924 \begin_layout Standard
14925 See the references here:
14926 \end_layout
14927
14928 \begin_layout Standard
14929 \begin_inset LatexCommand url
14930 target "http://wiki.lyx.org/pmwiki.php/FAQ/PDF"
14931
14932 \end_inset
14933
14934
14935 \end_layout
14936
14937 \begin_layout Subsection
14938 Custom
14939 \end_layout
14940
14941 \begin_layout Standard
14942 Custom exports are possible if you have some particularly weird format you
14943  wish to convert to, assuming you have the relevant converter, of course.
14944  The format of the 
14945 \emph on
14946 input
14947 \emph default
14948  file can be chosen in the 
14949 \family sans
14950 \bar under
14951 F
14952 \bar default
14953 ile\SpecialChar \menuseparator
14954
14955 \bar under
14956 E
14957 \bar default
14958 xport\SpecialChar \menuseparator
14959
14960 \bar under
14961 C
14962 \bar default
14963 ustom
14964 \family default
14965  dialog; LyX will automatically convert the file to this point, then feed
14966  it to your custom converter.
14967  The possible values are all formats that LyX can produce from its own documents.
14968  
14969 \end_layout
14970
14971 \begin_layout Standard
14972 The converter command is also specified in the dialog.
14973  It should be a completely qualified command line which uses the variable
14974  
14975 \family typewriter
14976 $$FName
14977 \family default
14978  to specify the name of the file.
14979  If this variable is not given, then the file will be sent to the standard
14980  input of your command.
14981  You may have to apply a bit of ingenuity to escape this sequence correctly
14982  so that it is compatible with your shell.
14983  
14984 \end_layout
14985
14986 \begin_layout Standard
14987 While it is not possible to save this command using the 
14988 \family sans
14989 Preferences
14990 \family default
14991  dialog, you can manually edit your 
14992 \family typewriter
14993 .lyx/preferences
14994 \family default
14995  to add a line like
14996 \end_layout
14997
14998 \begin_layout LyX-Code
14999
15000 \backslash
15001 custom_export_command "mycommand $$FName"
15002 \end_layout
15003
15004 \begin_layout Chapter
15005 LyX Features needing Extra Software
15006 \end_layout
15007
15008 \begin_layout Section
15009 Checking TeX
15010 \end_layout
15011
15012 \begin_layout Standard
15013 by 
15014 \noun on
15015 Asger Alstrup
15016 \end_layout
15017
15018 \begin_layout Subsection
15019 Introduction
15020 \end_layout
15021
15022 \begin_layout Standard
15023 Under the 
15024 \family sans
15025 \bar under
15026 T
15027 \bar default
15028 ools
15029 \family default
15030  menu, you'll find a 
15031 \family sans
15032 \bar under
15033 C
15034 \bar default
15035 heck\InsetSpace ~
15036 TeX
15037 \family default
15038  command.
15039  This feature requires you to have the 
15040 \family typewriter
15041 chktex
15042 \family default
15043  program installed, and is grayed out if you don't have it.
15044  You can get it from your nearest CTAN mirror, or over the Web from 
15045 \begin_inset LatexCommand url
15046 target "http://www.ifi.uio.no/~jensthi/chktex/"
15047
15048 \end_inset
15049
15050 .
15051 \end_layout
15052
15053 \begin_layout Standard
15054 The 
15055 \family sans
15056 ChkTeX
15057 \family default
15058  package is a program that was written by 
15059 \noun on
15060 Jens T.
15061  Berger Thielemann
15062 \noun default
15063  in frustration because some constructs in LaTeX are sometimes non-intuitive,
15064  and easy to forget.
15065  The program runs over your LaTeX file and checks the integrity of the file,
15066  and flags some common errors.
15067  In other technical words, it is 
15068 \family typewriter
15069 Lint
15070 \family default
15071  for LaTeX.
15072 \end_layout
15073
15074 \begin_layout Standard
15075 Well, what is a syntax checker doing in LyX which is supposed to produce
15076  correct LaTeX anyways? The answer is simple: Just as 
15077 \family typewriter
15078 Lint
15079 \family default
15080  not only checks the 
15081 \emph on
15082 syntax
15083 \emph default
15084  of C programs, but also does 
15085 \emph on
15086 semantic
15087 \emph default
15088  checks for type-errors, 
15089 \family sans
15090 ChkTeX
15091 \family default
15092  catches some common 
15093 \emph on
15094 typographic
15095 \emph default
15096  errors, in addition to the syntactical ones.
15097  Specifically, 
15098 \family sans
15099 ChkTeX
15100 \family default
15101  is capable of detecting several common errors, such as
15102 \end_layout
15103
15104 \begin_layout Itemize
15105 Ellipsis detection:
15106 \newline
15107 Use \SpecialChar \ldots{}
15108  instead of ...
15109 \end_layout
15110
15111 \begin_layout Itemize
15112 No space in front of/after parenthesis:
15113 \newline
15114 ( wrong spacing )
15115 \end_layout
15116
15117 \begin_layout Itemize
15118 Enforcement of normal space after common abbreviations:
15119 \newline
15120 e.
15121  g.
15122  is too wide spacing.
15123 \end_layout
15124
15125 \begin_layout Itemize
15126 Enforcement of end-of-sentence space when the last sentence ends with a
15127  capital letter:
15128 \newline
15129 This is a TEST.
15130  And this is wrong spacing.
15131 \end_layout
15132
15133 \begin_layout Itemize
15134 Space in front of labels and similar commands:
15135 \newline
15136 The label should stick right
15137  up to the text to avoid falling to a wrong page.
15138  
15139 \begin_inset LatexCommand label
15140 name "sec:chktex"
15141
15142 \end_inset
15143
15144  
15145 \begin_inset Foot
15146 status collapsed
15147
15148 \begin_layout Standard
15149 This footnote is in danger of falling off to a wrong page
15150 \end_layout
15151
15152 \end_inset
15153
15154  The label is separated too much.
15155 \end_layout
15156
15157 \begin_layout Itemize
15158 Space in front of references, instead of hard spaces:
15159 \newline
15160 In you are in bad luck,
15161  the text will break right between the referenced text and reference number,
15162  and that's a pity.
15163  See section 
15164 \begin_inset LatexCommand ref
15165 reference "sec:chktex"
15166
15167 \end_inset
15168
15169 .
15170 \end_layout
15171
15172 \begin_layout Itemize
15173 Use of 
15174 \begin_inset Quotes eld
15175 \end_inset
15176
15177 x
15178 \begin_inset Quotes erd
15179 \end_inset
15180
15181  instead of 
15182 \begin_inset Formula $\times$
15183 \end_inset
15184
15185  between numbers:
15186 \newline
15187 2x2 looks cheap compared to 
15188 \begin_inset Formula $2\times2$
15189 \end_inset
15190
15191 .
15192 \end_layout
15193
15194 \begin_layout Standard
15195 and more \SpecialChar \ldots{}
15196  It is an invaluable tool when you are 
15197 \begin_inset Quotes eld
15198 \end_inset
15199
15200 finishing up
15201 \begin_inset Quotes erd
15202 \end_inset
15203
15204  your document before printing, and you should run it right after the obligatory
15205  spelling check, and before you go fine tuning the typesetting.
15206 \end_layout
15207
15208 \begin_layout Subsection
15209 How to use it
15210 \end_layout
15211
15212 \begin_layout Standard
15213 If you have the program installed, usage is as simple as choosing 
15214 \family sans
15215 \bar under
15216 T
15217 \bar default
15218 ools\SpecialChar \menuseparator
15219
15220 \bar under
15221 C
15222 \bar default
15223 heck\InsetSpace ~
15224 TeX
15225 \family default
15226 .
15227  This will make LyX generate a LaTeX file of your document, start 
15228 \family sans
15229 ChkTeX
15230 \family default
15231  to check it, and then make LyX insert 
15232 \begin_inset Quotes eld
15233 \end_inset
15234
15235 error boxes
15236 \begin_inset Quotes erd
15237 \end_inset
15238
15239  with the warnings from 
15240 \family sans
15241 ChkTeX
15242 \family default
15243 , if there were any.
15244  The warnings will be placed close to the point of the mistake, and you
15245  can quickly find them by using the 
15246 \family sans
15247 \bar under
15248 N
15249 \bar default
15250 avigate\SpecialChar \menuseparator
15251
15252 \bar under
15253 E
15254 \bar default
15255 rror
15256 \family default
15257  menu item, or the shortcut key 
15258 \family sans
15259 C-g
15260 \family default
15261  from the default 
15262 \family typewriter
15263 cua
15264 \family default
15265  bind file.
15266  Open the error boxes by clicking on them with the mouse, or use the shortcut
15267  key 
15268 \family sans
15269 C-i
15270 \family default
15271  from 
15272 \family typewriter
15273 cua
15274 \family default
15275  bindings, or the corresponding 
15276 \family sans
15277 C-o
15278 \family default
15279  for the alternate 
15280 \family typewriter
15281 emacs
15282 \family default
15283  bind file.
15284  Read the warning and correct the mistake, if it is a mistake.
15285  If you have trouble understanding what the warning is about, you can safely
15286  ignore it.
15287  Remember that there is a hidden layer between the document on screen and
15288  the technical details in invoking 
15289 \family sans
15290 ChkTeX
15291 \family default
15292 , and this gap can make some warnings seem arcane or just right down plain
15293  silly.
15294 \end_layout
15295
15296 \begin_layout Standard
15297 This document is an excellent testing bed for the feature, and it should
15298  provide quite a few warnings for you to fiddle with.
15299  Since computers are only so smart, expect most of the warnings to be false
15300  alarms, though.
15301 \end_layout
15302
15303 \begin_layout Subsection
15304 How to fine tune it
15305 \end_layout
15306
15307 \begin_layout Standard
15308 Sometimes, you'll find that 
15309 \family sans
15310 ChkTeX
15311 \family default
15312  makes more noise than suits your mood.
15313  Then you can choose not to use it, wait until your mood changes, or try
15314  to customize 
15315 \family sans
15316 ChkTeX
15317 \family default
15318  to get better along with you.
15319  Another choice in the most desperate situations is to use 
15320 \family sans
15321 \bar under
15322 V
15323 \bar default
15324 iew\SpecialChar \menuseparator
15325
15326 \bar under
15327 R
15328 \bar default
15329 emove\InsetSpace ~
15330 All\InsetSpace ~
15331 Error\InsetSpace ~
15332 Boxes
15333 \family default
15334 , which will get rid of all warnings instantly.
15335 \end_layout
15336
15337 \begin_layout Standard
15338 Although 
15339 \family sans
15340 ChkTeX
15341 \family default
15342  
15343 \emph on
15344 is
15345 \emph default
15346  very configurable and extensible, you shouldn't expect to solve all problems
15347  with 
15348 \family sans
15349 ChkTeX
15350 \family default
15351  in LyX this way.
15352  Since LyX has to generate a somewhat special LaTeX file to be able to match
15353  the line numbers from the 
15354 \family sans
15355 ChkTeX
15356 \family default
15357  output
15358 \begin_inset Foot
15359 status collapsed
15360
15361 \begin_layout Standard
15362 You can inspect the specific output from 
15363 \family sans
15364 chktex
15365 \family default
15366  by using 
15367 \family sans
15368 Edit\SpecialChar \menuseparator
15369 View\InsetSpace ~
15370 LaTeX\InsetSpace ~
15371 Log
15372 \family default
15373  right after a 
15374 \family sans
15375 chktex
15376 \family default
15377  run.
15378 \end_layout
15379
15380 \end_inset
15381
15382  to the internal document structure, some of the warnings will not seen
15383  to appear correctly.
15384  There are two things you can do about this:
15385 \end_layout
15386
15387 \begin_layout Itemize
15388 Fine tune the 
15389 \family sans
15390 ChkTeX
15391 \family default
15392  invocation command line in 
15393 \family sans
15394 Preferences
15395 \family default
15396  (tabs 
15397 \family sans
15398 Outputs
15399 \family default
15400
15401 \family sans
15402 Misc
15403 \family default
15404 ), or the global 
15405 \family sans
15406 ChkTeX
15407 \family default
15408  installation configuration file (usually with the file 
15409 \family typewriter
15410 chktexrc
15411 \family default
15412 ).
15413  See below to learn what warnings can be enabled and disabled on the command
15414  line.
15415  
15416 \end_layout
15417
15418 \begin_layout Itemize
15419 Export your document as a raw LaTeX file using 
15420 \family sans
15421 \bar under
15422 F
15423 \bar default
15424 ile\SpecialChar \menuseparator
15425
15426 \bar under
15427 E
15428 \bar default
15429 xport\SpecialChar \menuseparator
15430
15431 \bar under
15432 L
15433 \bar default
15434 aTeX
15435 \family default
15436  and run 
15437 \family typewriter
15438 chktex
15439 \family default
15440  manually on that.
15441  Invoked in this way, it can be a hassle to find the corresponding place
15442  in the document inside LyX, but with a little patience, you should be able
15443  to do it.
15444 \end_layout
15445
15446 \begin_layout Standard
15447 Here follows the warning messages that can be enabled and disabled in 
15448 \family sans
15449 Preferences
15450 \family default
15451 .
15452  Use 
15453 \family typewriter
15454 -n#
15455 \family default
15456  to disable a warning, and 
15457 \family typewriter
15458 -w#
15459 \family default
15460  to enable a warning.
15461  The emphasized entries are disabled by default, because the default is
15462  "
15463 \family typewriter
15464 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
15465 \family default
15466 ".
15467 \end_layout
15468
15469 \begin_layout Standard
15470 Notice that you should only use the options that enable and disable warnings,
15471  because LyX relies on some of the other command line parameters to be set
15472  in a specific way to have a chance to communicate with 
15473 \family typewriter
15474 chktex
15475 \family default
15476 .
15477 \end_layout
15478
15479 \begin_layout Enumerate
15480
15481 \size small
15482 \emph on
15483 Command terminated with space.
15484 \end_layout
15485
15486 \begin_layout Enumerate
15487
15488 \size small
15489 Non-breaking space (
15490 \begin_inset Quotes eld
15491 \end_inset
15492
15493
15494 \family typewriter
15495 ~
15496 \family default
15497
15498 \begin_inset Quotes erd
15499 \end_inset
15500
15501 ) should have been used.
15502 \end_layout
15503
15504 \begin_layout Enumerate
15505
15506 \size small
15507 \emph on
15508 You should enclose the previous parenthesis with 
15509 \begin_inset Quotes eld
15510 \end_inset
15511
15512
15513 \family typewriter
15514 {}
15515 \family default
15516
15517 \begin_inset Quotes erd
15518 \end_inset
15519
15520 .
15521 \end_layout
15522
15523 \begin_layout Enumerate
15524
15525 \size small
15526 Italic correction (
15527 \begin_inset Quotes eld
15528 \end_inset
15529
15530
15531 \family typewriter
15532
15533 \backslash
15534 /
15535 \family default
15536
15537 \begin_inset Quotes erd
15538 \end_inset
15539
15540 ) found in non-italic buffer.
15541 \end_layout
15542
15543 \begin_layout Enumerate
15544
15545 \size small
15546 Italic correction (
15547 \begin_inset Quotes eld
15548 \end_inset
15549
15550
15551 \family typewriter
15552
15553 \backslash
15554 /
15555 \family default
15556
15557 \begin_inset Quotes erd
15558 \end_inset
15559
15560 ) found more than once.
15561 \end_layout
15562
15563 \begin_layout Enumerate
15564
15565 \size small
15566 \emph on
15567 No italic correction (
15568 \begin_inset Quotes eld
15569 \end_inset
15570
15571
15572 \family typewriter
15573
15574 \backslash
15575 /
15576 \family default
15577
15578 \begin_inset Quotes erd
15579 \end_inset
15580
15581 ) found.
15582 \end_layout
15583
15584 \begin_layout Enumerate
15585
15586 \size small
15587 Accent command 
15588 \begin_inset Quotes eld
15589 \end_inset
15590
15591
15592 \family typewriter
15593 cmd
15594 \family default
15595
15596 \begin_inset Quotes erd
15597 \end_inset
15598
15599  needs use of 
15600 \begin_inset Quotes eld
15601 \end_inset
15602
15603
15604 \family typewriter
15605 cmd
15606 \family default
15607
15608 \begin_inset Quotes erd
15609 \end_inset
15610
15611 .
15612 \end_layout
15613
15614 \begin_layout Enumerate
15615
15616 \size small
15617 Wrong length of dash may have been used.
15618 \end_layout
15619
15620 \begin_layout Enumerate
15621
15622 \size small
15623 \emph on
15624 \begin_inset Quotes eld
15625 \end_inset
15626
15627
15628 \family typewriter
15629 %s
15630 \family default
15631
15632 \begin_inset Quotes erd
15633 \end_inset
15634
15635  expected, found 
15636 \begin_inset Quotes eld
15637 \end_inset
15638
15639
15640 \family typewriter
15641 %s
15642 \family default
15643
15644 \begin_inset Quotes erd
15645 \end_inset
15646
15647 .
15648 \end_layout
15649
15650 \begin_layout Enumerate
15651
15652 \size small
15653 Solo 
15654 \begin_inset Quotes eld
15655 \end_inset
15656
15657
15658 \family typewriter
15659 %s
15660 \family default
15661
15662 \begin_inset Quotes erd
15663 \end_inset
15664
15665  found.
15666 \end_layout
15667
15668 \begin_layout Enumerate
15669
15670 \size small
15671 You should use 
15672 \begin_inset Quotes eld
15673 \end_inset
15674
15675
15676 \family typewriter
15677 %s
15678 \family default
15679
15680 \begin_inset Quotes erd
15681 \end_inset
15682
15683  to achieve an ellipsis.
15684 \end_layout
15685
15686 \begin_layout Enumerate
15687
15688 \size small
15689 Inter-word spacing (
15690 \begin_inset Quotes eld
15691 \end_inset
15692
15693
15694 \family typewriter
15695
15696 \backslash
15697
15698 \family default
15699  
15700 \begin_inset Quotes eld
15701 \end_inset
15702
15703 ) should perhaps be used.
15704 \end_layout
15705
15706 \begin_layout Enumerate
15707
15708 \size small
15709 Inter-sentence spacing (
15710 \begin_inset Quotes eld
15711 \end_inset
15712
15713
15714 \family typewriter
15715
15716 \backslash
15717 @
15718 \family default
15719
15720 \begin_inset Quotes erd
15721 \end_inset
15722
15723 ) should perhaps be used.
15724 \end_layout
15725
15726 \begin_layout Enumerate
15727
15728 \size small
15729 Could not find argument for command.
15730 \end_layout
15731
15732 \begin_layout Enumerate
15733
15734 \size small
15735 No match found for 
15736 \begin_inset Quotes eld
15737 \end_inset
15738
15739
15740 \family typewriter
15741 %s
15742 \family default
15743
15744 \begin_inset Quotes erd
15745 \end_inset
15746
15747 .
15748 \end_layout
15749
15750 \begin_layout Enumerate
15751
15752 \size small
15753 Math mode still on at end of LaTeX file.
15754 \end_layout
15755
15756 \begin_layout Enumerate
15757
15758 \size small
15759 Number of 
15760 \begin_inset Quotes eld
15761 \end_inset
15762
15763
15764 \family typewriter
15765 char
15766 \family default
15767
15768 \begin_inset Quotes erd
15769 \end_inset
15770
15771  doesn't match the number of 
15772 \begin_inset Quotes eld
15773 \end_inset
15774
15775
15776 \family typewriter
15777 char
15778 \family default
15779
15780 \begin_inset Quotes erd
15781 \end_inset
15782
15783 .
15784 \end_layout
15785
15786 \begin_layout Enumerate
15787
15788 \size small
15789 You should use either 
15790 \family typewriter
15791
15792 \begin_inset Quotes eld
15793 \end_inset
15794
15795
15796 \family default
15797  or 
15798 \family typewriter
15799
15800 \begin_inset Quotes erd
15801 \end_inset
15802
15803
15804 \family default
15805  as an alternative to 
15806 \begin_inset Quotes eld
15807 \end_inset
15808
15809
15810 \family typewriter
15811 "
15812 \family default
15813
15814 \begin_inset Quotes erd
15815 \end_inset
15816
15817 .
15818 \end_layout
15819
15820 \begin_layout Enumerate
15821
15822 \size small
15823 You should use "
15824 \family typewriter
15825 '
15826 \family default
15827 " (ASCII 39) instead of "
15828 \family typewriter
15829 ´
15830 \family default
15831 " (ASCII 180).
15832 \end_layout
15833
15834 \begin_layout Enumerate
15835
15836 \size small
15837 User-specified pattern found.
15838 \end_layout
15839
15840 \begin_layout Enumerate
15841
15842 \size small
15843 This command might not be intended.
15844 \end_layout
15845
15846 \begin_layout Enumerate
15847
15848 \size small
15849 \emph on
15850 Comment displayed.
15851 \end_layout
15852
15853 \begin_layout Enumerate
15854
15855 \size small
15856 Either 
15857 \family typewriter
15858 ''
15859 \backslash
15860 ,'
15861 \family default
15862  or 
15863 \family typewriter
15864 '
15865 \backslash
15866 ,''
15867 \family default
15868  will look better.
15869 \end_layout
15870
15871 \begin_layout Enumerate
15872
15873 \size small
15874 Delete this space to maintain correct page references.
15875 \end_layout
15876
15877 \begin_layout Enumerate
15878
15879 \size small
15880 \emph on
15881 You might wish to put this between a pair of 
15882 \begin_inset Quotes eld
15883 \end_inset
15884
15885
15886 \family typewriter
15887 {}
15888 \family default
15889
15890 \begin_inset Quotes erd
15891 \end_inset
15892
15893 .
15894 \end_layout
15895
15896 \begin_layout Enumerate
15897
15898 \size small
15899 You ought to remove spaces in front of punctuation.
15900 \end_layout
15901
15902 \begin_layout Enumerate
15903
15904 \size small
15905 Could not execute LaTeX command.
15906 \end_layout
15907
15908 \begin_layout Enumerate
15909
15910 \size small
15911 Don't use 
15912 \family typewriter
15913
15914 \backslash
15915 /
15916 \family default
15917  in front of small punctuation.
15918 \end_layout
15919
15920 \begin_layout Enumerate
15921
15922 \family typewriter
15923 \size small
15924 $
15925 \backslash
15926 times$
15927 \family default
15928  may look prettier here.
15929 \end_layout
15930
15931 \begin_layout Enumerate
15932
15933 \size small
15934 \emph on
15935 Multiple spaces detected in output.
15936 \end_layout
15937
15938 \begin_layout Enumerate
15939
15940 \size small
15941 This text may be ignored.
15942 \end_layout
15943
15944 \begin_layout Enumerate
15945
15946 \size small
15947 Use 
15948 \family typewriter
15949
15950 \begin_inset Quotes eld
15951 \end_inset
15952
15953
15954 \family default
15955  to begin quotation, not 
15956 \family typewriter
15957 '
15958 \family default
15959 .
15960 \end_layout
15961
15962 \begin_layout Enumerate
15963
15964 \size small
15965 Use 
15966 \family typewriter
15967 '
15968 \family default
15969  to end quotation, not 
15970 \family typewriter
15971
15972 \begin_inset Quotes eld
15973 \end_inset
15974
15975
15976 \family default
15977 .
15978 \end_layout
15979
15980 \begin_layout Enumerate
15981
15982 \size small
15983 Don't mix quotes.
15984 \end_layout
15985
15986 \begin_layout Enumerate
15987
15988 \size small
15989 You should perhaps use 
15990 \begin_inset Quotes eld
15991 \end_inset
15992
15993
15994 \family typewriter
15995 cmd
15996 \family default
15997
15998 \begin_inset Quotes erd
15999 \end_inset
16000
16001  instead.
16002 \end_layout
16003
16004 \begin_layout Enumerate
16005
16006 \size small
16007 You should put a space in front of/after parenthesis.
16008 \end_layout
16009
16010 \begin_layout Enumerate
16011
16012 \size small
16013 You should avoid spaces in front of/after parenthesis.
16014 \end_layout
16015
16016 \begin_layout Enumerate
16017
16018 \size small
16019 \emph on
16020 You should not use punctuation in front of/after quotes.
16021 \end_layout
16022
16023 \begin_layout Enumerate
16024
16025 \size small
16026 Double space found.
16027 \end_layout
16028
16029 \begin_layout Enumerate
16030
16031 \size small
16032 You should put punctuation outside inner/inside display math mode.
16033 \end_layout
16034
16035 \begin_layout Enumerate
16036
16037 \size small
16038 You ought to not use primitive TeX in LaTeX code.
16039 \end_layout
16040
16041 \begin_layout Enumerate
16042
16043 \size small
16044 You should remove spaces in front of 
16045 \begin_inset Quotes eld
16046 \end_inset
16047
16048
16049 \family typewriter
16050 %s
16051 \family default
16052
16053 \begin_inset Quotes erd
16054 \end_inset
16055
16056
16057 \end_layout
16058
16059 \begin_layout Enumerate
16060
16061 \size small
16062 \begin_inset Quotes eld
16063 \end_inset
16064
16065
16066 \family typewriter
16067 %s
16068 \family default
16069
16070 \begin_inset Quotes erd
16071 \end_inset
16072
16073  is normally not followed by 
16074 \begin_inset Quotes eld
16075 \end_inset
16076
16077
16078 \family typewriter
16079 %c
16080 \family default
16081
16082 \begin_inset Quotes erd
16083 \end_inset
16084
16085 .
16086 \end_layout
16087
16088 \begin_layout Standard
16089 In later versions of LyX, we hope to provide a more complete interface to
16090  this tool (and it's smaller cousin 
16091 \family typewriter
16092 lacheck
16093 \family default
16094 ) to exploit the full power of it.
16095  But it's not exactly useless as it is now: go try it on one of your existing
16096  documents of a certain length and be surprised.
16097 \end_layout
16098
16099 \begin_layout Section
16100 Version Control in LyX
16101 \end_layout
16102
16103 \begin_layout Standard
16104 by
16105 \noun on
16106  Lars Gullik Bjønnes
16107 \end_layout
16108
16109 \begin_layout Subsection
16110 Introduction
16111 \end_layout
16112
16113 \begin_layout Standard
16114 A friend of mine wanted to try LyX for a group project.
16115  When he didn't find support for version control or file locking, he dropped
16116  it.
16117  This angered me a bit, so I thought that I should at least make support
16118  for RCS (with the possibility of CVS and/or SCCS as a future improvement.)
16119  This has now been done.
16120  LyX now supports some of the most basic RCS commands.
16121  If you need to something a bit more sophisticated you will have to do that
16122  manually in an xterm.
16123 \end_layout
16124
16125 \begin_layout Standard
16126 Before you begin to use the version control features in LyX, you should
16127  read 
16128 \begin_inset Quotes eld
16129 \end_inset
16130
16131 rcsintro
16132 \begin_inset Quotes erd
16133 \end_inset
16134
16135  (a man file, read it with 
16136 \family typewriter
16137 man rcsintro
16138 \family default
16139 ).
16140  This file describes all the basic features of RCS.
16141  You should especially notice the comment about a RCS directory, and the
16142  notion of a master RCS file (the file ending in 
16143 \family typewriter
16144 ,v
16145 \family default
16146 ).
16147 \end_layout
16148
16149 \begin_layout Standard
16150 The implementation in LyX assumes a recent version of the GNU RCS package---no
16151  guarantees are made for older versions.
16152 \end_layout
16153
16154 \begin_layout Subsection
16155 RCS commands in LyX
16156 \end_layout
16157
16158 \begin_layout Standard
16159 The following sections describe the RCS commands supported by LyX.
16160  You can find them in the 
16161 \family sans
16162 \bar under
16163 F
16164 \bar default
16165 ile\SpecialChar \menuseparator
16166
16167 \bar under
16168 V
16169 \bar default
16170 ersion\InsetSpace ~
16171 Control
16172 \family default
16173  submenu.
16174 \end_layout
16175
16176 \begin_layout Subsubsection
16177
16178 \family sans
16179 Register
16180 \end_layout
16181
16182 \begin_layout Standard
16183 If your document is not under revision control, this is the only item shown
16184  in the menu.
16185  And if it is under revision control, the 
16186 \family sans
16187 \bar under
16188 R
16189 \bar default
16190 egister
16191 \family default
16192  item is grayed out.
16193  
16194 \end_layout
16195
16196 \begin_layout Standard
16197 This command registers your document with RCS\SpecialChar \@.
16198  You are asked interactively
16199  to supply an initial description of the document.
16200  The document is now set in Read-Only mode and you have to 
16201 \family sans
16202 Check\InsetSpace ~
16203 Out\InsetSpace ~
16204 For\InsetSpace ~
16205 Edit
16206 \family default
16207 , before making any changes to it.
16208  A document under revision control has a 
16209 \begin_inset Quotes eld
16210 \end_inset
16211
16212 [RCS:<version> <locker>]
16213 \begin_inset Quotes erd
16214 \end_inset
16215
16216  item tagged to the filename in the minibuffer.
16217 \end_layout
16218
16219 \begin_layout Standard
16220 RCS command that is run: 
16221 \family typewriter
16222 ci -q -u -i -t-"<initial description>" <file-name>
16223 \end_layout
16224
16225 \begin_layout Standard
16226 Read 
16227 \family typewriter
16228 man ci
16229 \family default
16230  to understand the switches.
16231  
16232 \end_layout
16233
16234 \begin_layout Subsubsection
16235
16236 \family sans
16237 Check In Changes
16238 \end_layout
16239
16240 \begin_layout Standard
16241 When you are finished editing a file, you check in your changes.
16242  When you do this, you are asked for a description of the changes.
16243  This is stored in the history log.
16244  The version number is bumped, your changes are applied to the master RCS
16245  file, the document is unlocked and set to Read-Only mode.
16246  
16247 \end_layout
16248
16249 \begin_layout Standard
16250 RCS command: 
16251 \family typewriter
16252 ci -q -u -m"<description>" <file-name>
16253 \end_layout
16254
16255 \begin_layout Subsubsection
16256
16257 \family sans
16258 Check Out For Edit
16259 \end_layout
16260
16261 \begin_layout Standard
16262 By doing this you lock the document so that only you can edit it.
16263  This will also make the document Read-Write only for you.
16264  You will usually continue editing for a while and when you are finished
16265  you check in your changes.
16266  The status line is changed to reflect that you have locked the file.
16267  
16268 \end_layout
16269
16270 \begin_layout Standard
16271 RCS command: 
16272 \family typewriter
16273 co -q -l <file-name>
16274 \end_layout
16275
16276 \begin_layout Subsubsection
16277
16278 \family sans
16279 Revert To Last Version
16280 \end_layout
16281
16282 \begin_layout Standard
16283 This will discard all changes made to the document since the last check
16284  in.
16285  You get a warning before changes are discarded.
16286 \end_layout
16287
16288 \begin_layout Standard
16289 RCS command: 
16290 \family typewriter
16291 co -f -u<version> <file-name>
16292 \end_layout
16293
16294 \begin_layout Subsubsection
16295
16296 \family sans
16297 Undo Last Checkin
16298 \end_layout
16299
16300 \begin_layout Standard
16301 This makes as if the last check in never happened.
16302  No changes are made to the document loaded into LyX, but the last version
16303  is removed from the master RCS file.
16304  
16305 \end_layout
16306
16307 \begin_layout Standard
16308 RCS command: 
16309 \family typewriter
16310 rcs -o<version> <file-name>
16311 \end_layout
16312
16313 \begin_layout Subsubsection
16314
16315 \family sans
16316 Show History
16317 \end_layout
16318
16319 \begin_layout Standard
16320 This show the complete history of the RCS document.
16321  The output of 
16322 \family typewriter
16323 rlog <file-name>
16324 \family default
16325  is shown in a browser.
16326  See 
16327 \family typewriter
16328 man rlog
16329 \family default
16330  for more info.
16331 \end_layout
16332
16333 \begin_layout Section
16334 Literate Programming
16335 \end_layout
16336
16337 \begin_layout Standard
16338 Updated by 
16339 \noun on
16340 Kayvan Sylvan 
16341 \noun default
16342 (kayvan@sylvan.com)
16343 \noun on
16344
16345 \noun default
16346 original documentation written by 
16347 \noun on
16348 Edmar Wienskoski Jr.
16349
16350 \noun default
16351  (edmar-w-jr@technologist.com)
16352 \end_layout
16353
16354 \begin_layout Subsection
16355 Introduction
16356 \end_layout
16357
16358 \begin_layout Standard
16359 The main purpose of this documentation is to show you how to use LyX for
16360  literate programming.
16361  Where it is assumed that you are familiar with this programming technique,
16362  and know what 
16363 \begin_inset Quotes eld
16364 \end_inset
16365
16366 tangling
16367 \begin_inset Quotes erd
16368 \end_inset
16369
16370  and 
16371 \begin_inset Quotes eld
16372 \end_inset
16373
16374 weaving
16375 \begin_inset Quotes erd
16376 \end_inset
16377
16378  means.
16379  If that is not the case, please follow the web links provided in the following
16380  sections.
16381  There is a lot of good documentation out there covering old development
16382  history to the latest tools tips.
16383 \end_layout
16384
16385 \begin_layout Standard
16386 It is also assumed that you are familiar with LyX itself to a point that
16387  you are comfortable changing your LyX preferences, and X resources file.
16388  If that is not the case please refer to other LyX documentation to cover
16389  your specific needs.
16390 \end_layout
16391
16392 \begin_layout Subsection
16393 Literate Programming
16394 \end_layout
16395
16396 \begin_layout Standard
16397 From the Literate Programming FAQ: 
16398 \end_layout
16399
16400 \begin_layout Quotation
16401 Literate programming is the combination of documentation and source together
16402  in a fashion suited for reading by human beings.
16403  In fact, literate programs should be enjoyable reading, even inviting!
16404  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
16405  and documentation in a single file.
16406  Literate programming tools then parse the file to produce either readable
16407  documentation or compilable source.
16408  The WEB style of literate programming was created by D.E.
16409  Knuth during the development of his TeX typesetting software.
16410  
16411 \end_layout
16412
16413 \begin_layout Standard
16414 Another excerpt says:
16415 \end_layout
16416
16417 \begin_layout Quotation
16418
16419 \emph on
16420 How is literate programming different from verbose commenting?
16421 \end_layout
16422
16423 \begin_layout Quotation
16424 There are three distinguishing characteristics.
16425  In order of importance, they are: 
16426 \end_layout
16427
16428 \begin_deeper
16429 \begin_layout Itemize
16430 flexible order of elaboration 
16431 \end_layout
16432
16433 \begin_layout Itemize
16434 automatic support for browsing 
16435 \end_layout
16436
16437 \begin_layout Itemize
16438 typeset documentation, especially diagrams and mathematics 
16439 \end_layout
16440
16441 \end_deeper
16442 \begin_layout Standard
16443 Now that I sparked your curiosity, take a look in the references.
16444 \end_layout
16445
16446 \begin_layout Subsubsection
16447 References
16448 \end_layout
16449
16450 \begin_layout Standard
16451 The complete Literate Programming FAQ can be found at:
16452 \end_layout
16453
16454 \begin_layout Quote
16455 \begin_inset LatexCommand url
16456 name "Literate Programming FAQ"
16457 target "http://shelob.ce.ttu.edu/daves/lpfaq/faq.html"
16458
16459 \end_inset
16460
16461
16462 \end_layout
16463
16464 \begin_layout Standard
16465 The FAQ lists 23 (twenty three!) different literate programming tools.
16466  Where some are specialized or 
16467 \begin_inset Quotes eld
16468 \end_inset
16469
16470 tailored
16471 \begin_inset Quotes erd
16472 \end_inset
16473
16474  for particular programming languages, while other have general scope.
16475  I selected 
16476 \noun on
16477 Noweb
16478 \noun default
16479  for my own use for several reasons:
16480 \end_layout
16481
16482 \begin_layout Itemize
16483 It can generate the documentation either in LaTeX or HTML.
16484 \end_layout
16485
16486 \begin_layout Itemize
16487 It has a open architecture, i.e., it is easy to plug in new filters and to
16488  perform special processing that you may need.
16489  
16490 \end_layout
16491
16492 \begin_layout Itemize
16493 There is a good selection of filters available already (the HTML is one
16494  of them).
16495 \end_layout
16496
16497 \begin_layout Itemize
16498 It is free.
16499 \end_layout
16500
16501 \begin_layout Standard
16502 The Noweb web page can be found at: 
16503 \end_layout
16504
16505 \begin_layout Quote
16506 \begin_inset LatexCommand url
16507 name "Noweb home page"
16508 target "http://www.cs.virginia.edu/~nr/noweb/"
16509
16510 \end_inset
16511
16512
16513 \end_layout
16514
16515 \begin_layout Standard
16516 Starting from there you can reach many other interesting links and even
16517  some literate program examples.
16518 \end_layout
16519
16520 \begin_layout Subsection
16521 \begin_inset LatexCommand label
16522 name "sub:LyX-and-Literate"
16523
16524 \end_inset
16525
16526 LyX and Literate Programming
16527 \end_layout
16528
16529 \begin_layout Standard
16530 The LyX support for Literate Programming is provided by using the generic
16531  LyX convertors mechanism.
16532  This support is provided in a 
16533 \begin_inset Quotes eld
16534 \end_inset
16535
16536 Noweb independent
16537 \begin_inset Quotes erd
16538 \end_inset
16539
16540  way, i.e., you will be able to use this new LyX feature with some other literate
16541  programming tool of your choice by just changing your LyX preferences.
16542 \end_layout
16543
16544 \begin_layout Subsubsection
16545 Generating documents and code (weaving and tangling)
16546 \end_layout
16547
16548 \begin_layout Paragraph
16549 Selecting the document class
16550 \end_layout
16551
16552 \begin_layout Standard
16553 If you have installed Noweb and LyX successfully, whenever you open a new
16554  document or try to change the document class of an existing one, you will
16555  find that there are three new document classes available:
16556 \end_layout
16557
16558 \begin_layout Itemize
16559 Article (Noweb)
16560 \end_layout
16561
16562 \begin_layout Itemize
16563 Book (Noweb)
16564 \end_layout
16565
16566 \begin_layout Itemize
16567 Report (Noweb)
16568 \end_layout
16569
16570 \begin_layout Standard
16571 You must select one of them to create your literate documents from.
16572  
16573 \end_layout
16574
16575 \begin_layout Standard
16576 Note that literate documents are not limited to these three classes.
16577  New classes can be generated from other styles like letter or in combination
16578  with other class variations like Article (AMS).
16579  If you have special needs that cannot be covered by one of the existing
16580  classes, let the LyX developers list (lyx-devel@lists.lyx.org) know and we
16581  will arrange to insert a new entry, or teach you how to do it.
16582 \begin_inset Foot
16583 status collapsed
16584
16585 \begin_layout Standard
16586 It is very simple, it involves the creation of a file with four lines, and
16587  re-running of the auto configuration.
16588 \end_layout
16589
16590 \end_inset
16591
16592  Moreover, if you use a literate tool other than Noweb you may need to create
16593  a new set of document classes for it.
16594 \end_layout
16595
16596 \begin_layout Paragraph
16597 Typing code in
16598 \end_layout
16599
16600 \begin_layout Standard
16601 LyX enables you to write code with a layout named 
16602 \noun on
16603 Scrap
16604 \noun default
16605 .
16606 \begin_inset Foot
16607 status collapsed
16608
16609 \begin_layout Standard
16610 The equivalent Noweb term is 
16611 \begin_inset Quotes eld
16612 \end_inset
16613
16614 Chunk
16615 \begin_inset Quotes erd
16616 \end_inset
16617
16618 .
16619  For historical reasons, I got used to the term 
16620 \begin_inset Quotes eld
16621 \end_inset
16622
16623 scrap
16624 \begin_inset Quotes erd
16625 \end_inset
16626
16627  introduced by other literate tool named Nuweb, which I used for many years
16628  before rendering myself to Noweb.
16629 \end_layout
16630
16631 \end_inset
16632
16633  Noweb delimits scraps like this:
16634 \end_layout
16635
16636 \begin_layout LyX-Code
16637 <<My scrap>>=
16638 \end_layout
16639
16640 \begin_layout LyX-Code
16641   code
16642 \end_layout
16643
16644 \begin_layout LyX-Code
16645   more code
16646 \end_layout
16647
16648 \begin_layout LyX-Code
16649   even more code
16650 \end_layout
16651
16652 \begin_layout LyX-Code
16653   @
16654 \end_layout
16655
16656 \begin_layout Standard
16657 The problem is that whatever is written in between the << and the 
16658 \family typewriter
16659 @
16660 \family default
16661  must be taken literally, i.e., LyX should be prevented from making any special
16662  interpretation of what has been written.
16663  This is handled by a special layout named Scrap, that works like a normal
16664  paragraph but has a free spacing capability.
16665 \end_layout
16666
16667 \begin_layout Standard
16668 The down side of the Scrap paragraph layout is that consecutive paragraphs
16669  of code will be spaced with one empty line in the source code and also
16670  in the printed documentation.
16671  The work around is to enter each line of code within a single Scrap, with
16672  a newline (ctrl-return).
16673  The example above will look like this:
16674 \begin_inset Foot
16675 status collapsed
16676
16677 \begin_layout Standard
16678 If you have a printed version of this document you will not see any difference
16679  between the previous example and this one.
16680 \end_layout
16681
16682 \end_inset
16683
16684
16685 \end_layout
16686
16687 \begin_layout LyX-Code
16688 <<My scrap>>=
16689 \newline
16690   code
16691 \newline
16692   more code
16693 \newline
16694   even more code
16695 \newline
16696   @
16697 \end_layout
16698
16699 \begin_layout Standard
16700 This layout works fine.
16701  The only real inconvenience is that you have to type ctrl-return instead
16702  of a plain return.
16703 \begin_inset Foot
16704 status collapsed
16705
16706 \begin_layout Standard
16707 It is in my list of 
16708 \begin_inset Quotes eld
16709 \end_inset
16710
16711 improvements
16712 \begin_inset Quotes erd
16713 \end_inset
16714
16715  to fix that.
16716 \end_layout
16717
16718 \end_inset
16719
16720
16721 \end_layout
16722
16723 \begin_layout Standard
16724 As a special note, you can also use the 
16725 \begin_inset Quotes eld
16726 \end_inset
16727
16728 %def
16729 \begin_inset Quotes erd
16730 \end_inset
16731
16732  construct of Noweb in your scraps to add items to Noweb's identifier cross-refe
16733 rence:
16734 \end_layout
16735
16736 \begin_layout LyX-Code
16737 <<My scrap>>=
16738 \newline
16739   def some_function(args):
16740 \newline
16741     "This is the doc string for this
16742  function."
16743 \newline
16744     print "My args: ", args
16745 \end_layout
16746
16747 \begin_layout LyX-Code
16748 @ %def some_function
16749 \end_layout
16750
16751 \begin_layout Standard
16752 For an example of this usage and the resulting cross-reference output, look
16753  at the Literate python program in 
16754 \emph on
16755 LIBDIR/examples/listerrors.lyx
16756 \emph default
16757  which should make this all clear.
16758 \end_layout
16759
16760 \begin_layout Paragraph
16761 Generating the documentation
16762 \end_layout
16763
16764 \begin_layout Standard
16765 At this point you already have a new document file with a proper document
16766  class, and with some code and text on it.
16767  How do I print it? The answer is simple, you select 
16768 \family sans
16769 \bar under
16770 V
16771 \bar default
16772 iew\SpecialChar \menuseparator
16773
16774 \bar under
16775 D
16776 \bar default
16777 VI,
16778 \family default
16779  etc.
16780  Just like you would do for a plain document.
16781  No special procedure is required.
16782 \end_layout
16783
16784 \begin_layout Standard
16785 To help orientate you, I will now explain what happens inside LyX:
16786 \end_layout
16787
16788 \begin_layout Enumerate
16789 When the 
16790 \family sans
16791 \bar under
16792 U
16793 \bar default
16794 pdate\SpecialChar \menuseparator
16795
16796 \bar under
16797 D
16798 \bar default
16799 VI
16800 \family default
16801  menu option is chosen, a LaTeX file is generated.
16802  
16803 \end_layout
16804
16805 \begin_deeper
16806 \begin_layout Standard
16807 If the document is of any literate class the generated file will be named
16808  with an extension name defined by the 
16809 \begin_inset Quotes eld
16810 \end_inset
16811
16812 literate
16813 \begin_inset Quotes erd
16814 \end_inset
16815
16816  format (defined in the Preferences panel), otherwise the file will have
16817  the usual 
16818 \family typewriter
16819 .tex
16820 \family default
16821  extension.
16822 \end_layout
16823
16824 \end_deeper
16825 \begin_layout Enumerate
16826 Note that the only difference so far is in the name of the file, no special
16827  processing is required by LyX.
16828  Given that you formatted the code using the Scrap layout that, by itself,
16829  takes care of the business.
16830 \end_layout
16831
16832 \begin_layout Enumerate
16833 If the document is of any literate class LyX will then use the internal
16834  LyX to Noweb converter, followed by the Noweb to LaTeX converter
16835 \begin_inset Foot
16836 status collapsed
16837
16838 \begin_layout Standard
16839 The converters are defined in the 
16840 \family sans
16841 \bar under
16842 T
16843 \bar default
16844 ools\SpecialChar \menuseparator
16845
16846 \bar under
16847 P
16848 \bar default
16849 references
16850 \family default
16851  panel, under the 
16852 \begin_inset Quotes eld
16853 \end_inset
16854
16855 Conversion
16856 \begin_inset Quotes erd
16857 \end_inset
16858
16859  tab.
16860  See section 
16861 \begin_inset LatexCommand ref
16862 reference "sub:converters"
16863
16864 \end_inset
16865
16866  of the 
16867 \emph on
16868 Customization
16869 \emph default
16870  manual for general information about converters.
16871 \end_layout
16872
16873 \end_inset
16874
16875  to generate the LaTeX file.
16876 \end_layout
16877
16878 \begin_deeper
16879 \begin_layout Standard
16880 Otherwise it will just skip this step.
16881 \end_layout
16882
16883 \end_deeper
16884 \begin_layout Enumerate
16885 Finally, LaTeX is invoked and the regular post processing continues as in
16886  a plain document.
16887 \end_layout
16888
16889 \begin_layout Standard
16890 Independence from a particular 
16891 \begin_inset Quotes eld
16892 \end_inset
16893
16894 literate tool
16895 \begin_inset Quotes erd
16896 \end_inset
16897
16898  is easily achieved by changing the commands that are run by the various
16899  converters.
16900 \end_layout
16901
16902 \begin_layout Paragraph
16903 Generating the code
16904 \end_layout
16905
16906 \begin_layout Standard
16907 When the build menu option is chosen or the corresponding button in the
16908  toolbar is pressed, a LaTeX file is generated just like step 1 above.
16909  Next, LyX invokes the 
16910 \family typewriter
16911 Noweb->Program
16912 \family default
16913  converter.
16914  This converter needs to be defined by the user and is not installed by
16915  default, though the Program format is.
16916  This converter (like any other converter) will have two parts:
16917 \end_layout
16918
16919 \begin_layout Enumerate
16920 The converter program itself.
16921  This program performs the conversion from the one format to the other (in
16922  this case, from the Noweb format to the Program pseudo-format).
16923 \end_layout
16924
16925 \begin_layout Enumerate
16926 The error log parser.
16927  This is a program whose sole purpose is to rewrite error messages in a
16928  format that LyX understands.
16929  This makes it possible for LyX to place error boxes in the right places
16930  in the file buffer.
16931 \end_layout
16932
16933 \begin_layout Standard
16934 The first part, the 
16935 \begin_inset Quotes eld
16936 \end_inset
16937
16938 Converter
16939 \begin_inset Quotes erd
16940 \end_inset
16941
16942  setting, should be set to 
16943 \begin_inset Quotes eld
16944 \end_inset
16945
16946
16947 \family typewriter
16948 build-script $$i
16949 \family default
16950
16951 \begin_inset Quotes erd
16952 \end_inset
16953
16954 .
16955  This basically means that LyX will call 
16956 \begin_inset Quotes eld
16957 \end_inset
16958
16959 build-script
16960 \begin_inset Quotes erd
16961 \end_inset
16962
16963  (a program or script) with the name of the Noweb file (normally a file
16964  in the LyX temp directory).
16965  
16966 \end_layout
16967
16968 \begin_layout Standard
16969 This is an implementation of 
16970 \begin_inset Quotes eld
16971 \end_inset
16972
16973 build-script
16974 \begin_inset Quotes erd
16975 \end_inset
16976
16977  that you can place in a directory on your path:
16978 \end_layout
16979
16980 \begin_layout LyX-Code
16981 #!/bin/sh
16982 \end_layout
16983
16984 \begin_layout LyX-Code
16985 #
16986 \end_layout
16987
16988 \begin_layout LyX-Code
16989 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
16990 \end_layout
16991
16992 \begin_layout Standard
16993 The next part of the converter setting is the 
16994 \begin_inset Quotes eld
16995 \end_inset
16996
16997 Flags
16998 \begin_inset Quotes erd
16999 \end_inset
17000
17001  which is to be set to 
17002 \begin_inset Quotes eld
17003 \end_inset
17004
17005
17006 \family typewriter
17007 parselog=listerrors
17008 \family default
17009
17010 \begin_inset Quotes erd
17011 \end_inset
17012
17013 .
17014  This will run any errors that are generated by the 
17015 \begin_inset Quotes eld
17016 \end_inset
17017
17018 build-script
17019 \begin_inset Quotes erd
17020 \end_inset
17021
17022  process through the 
17023 \begin_inset Quotes eld
17024 \end_inset
17025
17026 listerrors
17027 \begin_inset Quotes erd
17028 \end_inset
17029
17030  program.
17031 \end_layout
17032
17033 \begin_layout Standard
17034 The converter code looks in 
17035 \emph on
17036 MYLYXDIR/scripts
17037 \emph default
17038  first, then in 
17039 \emph on
17040 LIBDIR/scripts
17041 \emph default
17042  then on the path for the 
17043 \begin_inset Quotes eld
17044 \end_inset
17045
17046 listerrors
17047 \begin_inset Quotes erd
17048 \end_inset
17049
17050  program.
17051 \end_layout
17052
17053 \begin_layout Standard
17054 The build will normally take place in LyX's temporary directory, so the
17055  files produced by the conversion will be in that directory.
17056  LyX will copy out what it regards as the `main' file, but the 
17057 \family typewriter
17058 Noweb->Program
17059 \family default
17060  conversion may produce several files, and so most of these would then be
17061  deleted when LyX was closed.
17062  The present solution is to use a `copier',
17063 \begin_inset Foot
17064 status collapsed
17065
17066 \begin_layout Standard
17067 See section 
17068 \begin_inset LatexCommand ref
17069 reference "sec:converters-etc"
17070
17071 \end_inset
17072
17073  of the 
17074 \emph on
17075 Customization
17076 \emph default
17077  manual for information on these.
17078 \end_layout
17079
17080 \end_inset
17081
17082  in this case, the 
17083 \family typewriter
17084 ext_copy.py
17085 \family default
17086  script in its default mode, so that the entire contents of the temporary
17087  directory is copied.
17088  More will get copied than is needed, to be sure, but nothing will be lost.
17089  If, however, you know what extensions the generated files will have, this
17090  can be improved by using the 
17091 \family typewriter
17092 -e
17093 \family default
17094  option to 
17095 \family typewriter
17096 ext_copy
17097 \family default
17098 .
17099  This option takes a comma-separated list of extensions to copy.
17100  So, for example, if the conversion will generate only files with the extensions
17101  
17102 \family typewriter
17103 .c
17104 \family default
17105  and 
17106 \family typewriter
17107 .h
17108 \family default
17109 , then the correct definition would be:
17110 \end_layout
17111
17112 \begin_layout LyX-Code
17113 python -tt $$s/scripts/ext_copy.py -e c,h $$i $$o
17114 \end_layout
17115
17116 \begin_layout Standard
17117 The result will be that only files with these two extensions will be copied
17118  out.
17119 \end_layout
17120
17121 \begin_layout Paragraph
17122 Build instructions in the document
17123 \end_layout
17124
17125 \begin_layout Standard
17126 The last piece of the integration between LyX and noweb is the 
17127 \begin_inset Quotes eld
17128 \end_inset
17129
17130 build-script
17131 \begin_inset Quotes erd
17132 \end_inset
17133
17134  scrap.
17135  Generally, the instructions for building your program should be embedded
17136  in a scrap of its own.
17137  The noweb-specific 
17138 \begin_inset Quotes eld
17139 \end_inset
17140
17141 build-script
17142 \begin_inset Quotes erd
17143 \end_inset
17144
17145  above uses the notangle command to look for this scrap (called 
17146 \begin_inset Quotes eld
17147 \end_inset
17148
17149 build-script
17150 \begin_inset Quotes erd
17151 \end_inset
17152
17153 ) and runs its contents through 
17154 \begin_inset Quotes eld
17155 \end_inset
17156
17157 sh
17158 \begin_inset Quotes erd
17159 \end_inset
17160
17161 .
17162 \end_layout
17163
17164 \begin_layout Standard
17165 Typically, such a scrap would look something like this:
17166 \end_layout
17167
17168 \begin_layout LyX-Code
17169 <<build-script>>=
17170 \newline
17171 #!/bin/sh
17172 \newline
17173
17174 \newline
17175 if [ -z "${NOWEB_SOURCE}" ]
17176 \newline
17177 then
17178 \newline
17179   NOWEB_SOURCE=myfile.nw
17180 \newline
17181
17182 fi
17183 \newline
17184 [...
17185  code to extract files ...]
17186 \newline
17187 [...
17188  code to compile files ...]
17189 \newline
17190 @
17191 \end_layout
17192
17193 \begin_layout Standard
17194 Look in 
17195 \emph on
17196 LIBDIR/examples/listerrors.lyx
17197 \emph default
17198  or in 
17199 \emph on
17200 LIBDIR/examples/Literate.lyx
17201 \emph default
17202  which implement two versions of the 
17203 \begin_inset Quotes eld
17204 \end_inset
17205
17206 listerrors
17207 \begin_inset Quotes erd
17208 \end_inset
17209
17210  program for some illustrations of how all of these pieces go together or
17211  in 
17212 \emph on
17213 LIBDIR/examples/noweb2lyx.lyx.
17214
17215 \emph default
17216  Interestingly, these three files show off the language-indepence of the
17217  LyX literate programming support since they are written in Python, C and
17218  Perl respectively.
17219 \end_layout
17220
17221 \begin_layout Subsubsection
17222 Configuring LyX
17223 \end_layout
17224
17225 \begin_layout Standard
17226 All the Literate Programming support is configured by the 
17227 \family sans
17228 \bar under
17229 T
17230 \bar default
17231 ools\SpecialChar \menuseparator
17232
17233 \bar under
17234 P
17235 \bar default
17236 references
17237 \family default
17238  panel in the 
17239 \begin_inset Quotes eld
17240 \end_inset
17241
17242 Conversion
17243 \begin_inset Quotes erd
17244 \end_inset
17245
17246  tab.
17247  The important parts are:
17248 \end_layout
17249
17250 \begin_layout Description
17251 the\InsetSpace ~
17252
17253 \begin_inset Quotes eld
17254 \end_inset
17255
17256 literate
17257 \begin_inset Quotes erd
17258 \end_inset
17259
17260 \InsetSpace ~
17261 format Set up via the Formats tab, this is where the Noweb-specific pieces
17262  are set up.
17263  The 
17264 \family sans
17265 GUI Name
17266 \family default
17267  is set to 
17268 \family typewriter
17269 NoWeb
17270 \family default
17271 , the file extension is set to 
17272 \family typewriter
17273 .nw
17274 \family default
17275 .
17276  This tells LyX to create a file with a 
17277 \family typewriter
17278 .nw
17279 \family default
17280  extension in the first step of the conversion process.
17281 \end_layout
17282
17283 \begin_layout Description
17284 the\InsetSpace ~
17285
17286 \family sans
17287 Program
17288 \family default
17289 \InsetSpace ~
17290 format This is an empty format whose sole purpose is to be the endpoint
17291  of a conversion (which then allows us to set up a converter for it).
17292 \end_layout
17293
17294 \begin_layout Description
17295
17296 \family sans
17297 NoWeb
17298 \family default
17299 ->
17300 \family sans
17301 LaTeX
17302 \family default
17303  This converter performs the 
17304 \begin_inset Quotes eld
17305 \end_inset
17306
17307 weaving
17308 \begin_inset Quotes erd
17309 \end_inset
17310
17311  of the literate document.
17312  For Noweb, it is set to 
17313 \begin_inset Quotes eld
17314 \end_inset
17315
17316
17317 \family typewriter
17318 noweave -delay -index $$i > $$o
17319 \family default
17320
17321 \begin_inset Quotes erd
17322 \end_inset
17323
17324
17325 \end_layout
17326
17327 \begin_layout Description
17328
17329 \family sans
17330 NoWeb
17331 \family default
17332 ->
17333 \family sans
17334 Program
17335 \family default
17336  This performs the 
17337 \begin_inset Quotes eld
17338 \end_inset
17339
17340 tangling step
17341 \begin_inset Quotes erd
17342 \end_inset
17343
17344 .
17345  As stated above, the Converter is set to 
17346 \begin_inset Quotes eld
17347 \end_inset
17348
17349
17350 \family typewriter
17351 build-script $$i
17352 \family default
17353
17354 \begin_inset Quotes erd
17355 \end_inset
17356
17357 , with Flags set to 
17358 \begin_inset Quotes eld
17359 \end_inset
17360
17361
17362 \family typewriter
17363 originaldir,parselog=listerrors
17364 \family default
17365
17366 \begin_inset Quotes erd
17367 \end_inset
17368
17369 .
17370 \end_layout
17371
17372 \begin_layout Subsubsection
17373 Debug extensions
17374 \end_layout
17375
17376 \begin_layout Standard
17377 There is also a new function implemented in the LyX server, the 
17378 \begin_inset Quotes eld
17379 \end_inset
17380
17381 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
17382  
17383 \end_layout
17384
17385 \begin_layout Standard
17386 When debugging code with ddd/gdb, it is possible to invoke a text editor
17387  at the current execution position with a single key stroke.
17388  The default ddd configuration for that is shift-ctrl-V.
17389  It happens that you can define the editor command line invocation in ddd
17390  by accessing the 
17391 \family sans
17392 \bar under
17393 E
17394 \bar default
17395 dit\SpecialChar \menuseparator
17396
17397 \bar under
17398 P
17399 \bar default
17400 references\SpecialChar \menuseparator
17401
17402 \bar under
17403 H
17404 \bar default
17405 elpers
17406 \family default
17407  dialog and changing the "Edit Sources" entry.
17408 \end_layout
17409
17410 \begin_layout Standard
17411 I take advantage of the new created LyX server function and this ddd feature,
17412  and set 
17413 \begin_inset Quotes eld
17414 \end_inset
17415
17416 Edit Sources
17417 \begin_inset Quotes erd
17418 \end_inset
17419
17420  to:
17421 \end_layout
17422
17423 \begin_layout LyX-Code
17424 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
17425 \end_layout
17426
17427 \begin_layout Standard
17428 With this, whenever you are using ddd and find a point in the program that
17429  you want to edit, you just press shift-ctrl-V (in the ddd window), and
17430  ddd you forward this information to LyX through the LyX server and then
17431  the LyX window will show the same file with the cursor at the same position
17432  ddd was pointing to.
17433  No more guessing or long scrolling to locate a point in the program back
17434  from debugging !
17435 \end_layout
17436
17437 \begin_layout Standard
17438 Note however that you must enable the LyX server to get this feature working
17439  (it is disabled by default).
17440  You can enable it in 
17441 \family sans
17442 Preferences
17443 \family default
17444  (tabs 
17445 \family sans
17446 Inputs
17447 \family default
17448
17449 \family sans
17450 Paths
17451 \family default
17452 ) by entering in the 
17453 \family sans
17454 LyXserver pipe
17455 \family default
17456  a path like 
17457 \begin_inset Quotes eld
17458 \end_inset
17459
17460
17461 \family typewriter
17462 /home/<your-home-directory>/.lyx/lyxpipe
17463 \family default
17464
17465 \begin_inset Quotes erd
17466 \end_inset
17467
17468
17469 \end_layout
17470
17471 \begin_layout Standard
17472 Read the LyX server documentation in the 
17473 \emph on
17474 Customization Manual
17475 \emph default
17476  for further information.
17477 \end_layout
17478
17479 \begin_layout Subsubsection
17480 Toolbar extensions
17481 \end_layout
17482
17483 \begin_layout Standard
17484 There are six new buttons that can be added to your LyX toolbar.
17485  Five of these buttons are short cuts to layout styles: 
17486 \family sans
17487 Standard
17488 \family default
17489
17490 \family sans
17491 Section
17492 \family default
17493
17494 \family sans
17495 LaTeX
17496 \family default
17497
17498 \family sans
17499 LyX-Code
17500 \family default
17501 , and 
17502 \family sans
17503 Scrap
17504 \family default
17505 .
17506  The last one is a short cut to the 
17507 \begin_inset Quotes eld
17508 \end_inset
17509
17510 Build Program
17511 \begin_inset Quotes erd
17512 \end_inset
17513
17514  File menu entry.
17515  
17516 \end_layout
17517
17518 \begin_layout Standard
17519 LyX has a range of buttons that are available for tool bar customization.
17520  In my toolbar I like to combine the six short cuts above with two more:
17521  One for 
17522 \family sans
17523 \bar under
17524 V
17525 \bar default
17526 iew
17527 \family default
17528 \SpecialChar \menuseparator
17529
17530 \family sans
17531 \bar under
17532 U
17533 \bar default
17534 pdate
17535 \family default
17536 \SpecialChar \menuseparator
17537
17538 \family sans
17539 \bar under
17540 D
17541 \bar default
17542 VI
17543 \family default
17544  and the other for 
17545 \family sans
17546 \bar under
17547 V
17548 \bar default
17549 iew\SpecialChar \menuseparator
17550
17551 \bar under
17552 D
17553 \bar default
17554 VI
17555 \family default
17556  File menu entries.
17557  Here is how it looks like:
17558 \end_layout
17559
17560 \begin_layout LyX-Code
17561 Toolbar
17562 \end_layout
17563
17564 \begin_layout LyX-Code
17565   Layouts
17566 \end_layout
17567
17568 \begin_layout LyX-Code
17569   Icon "layout Standard"
17570 \end_layout
17571
17572 \begin_layout LyX-Code
17573   Icon "layout Section"
17574 \end_layout
17575
17576 \begin_layout LyX-Code
17577   Icon "layout LaTeX"
17578 \end_layout
17579
17580 \begin_layout LyX-Code
17581   Icon "layout LyX-Code"
17582 \end_layout
17583
17584 \begin_layout LyX-Code
17585   Icon "layout Scrap"
17586 \end_layout
17587
17588 \begin_layout LyX-Code
17589   Separator
17590 \end_layout
17591
17592 \begin_layout LyX-Code
17593   Icon "buffer-view"
17594 \end_layout
17595
17596 \begin_layout LyX-Code
17597   Icon "buffer-typeset"
17598 \end_layout
17599
17600 \begin_layout LyX-Code
17601   Icon "build-program"
17602 \end_layout
17603
17604 \begin_layout LyX-Code
17605   Separator
17606 \end_layout
17607
17608 \begin_layout LyX-Code
17609 .
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 End
17622 \end_layout
17623
17624 \begin_layout Subsubsection
17625 Colors customization
17626 \end_layout
17627
17628 \begin_layout Standard
17629 There are a number of colors in LyX that can be customized in 
17630 \family sans
17631 Preferences
17632 \family default
17633 .
17634  One of the things that bothers people is the LaTeX font color.
17635  The default color is red, since the scraps uses LaTeX font, and there is
17636  a lot of scraps in literate documents, you may get tired of seeing everything
17637  in red.
17638  You can change it by going to the tabs 
17639 \family sans
17640 Look&Feel
17641 \family default
17642
17643 \family sans
17644 Colors.
17645 \end_layout
17646
17647 \begin_layout Standard
17648 The next thing is the visible presence of the newline character in the screen.
17649  You can choose the color of this particular character and make it blend
17650  in the background.
17651  I recommend you choosing a color that is close to the background but not
17652  equal, that way you still can see it is there, but it is not bothering
17653  you anymore.
17654  
17655 \end_layout
17656
17657 \begin_layout Chapter
17658 Secrets of the LaTeX Masters
17659 \begin_inset LatexCommand label
17660 name "cha:secrets"
17661
17662 \end_inset
17663
17664
17665 \end_layout
17666
17667 \begin_layout Standard
17668 Though LyX is a powerful tool, it cannot hope to support everything that
17669  can be done with pure TeX/LaTeX.
17670  However, many familiar dirty TeX and LaTeX tricks can be done within LyX,
17671  as long as you are not afraid to use that 
17672 \begin_inset Quotes eld
17673 \end_inset
17674
17675 TeX
17676 \begin_inset Quotes erd
17677 \end_inset
17678
17679  button on the toolbar or add things to the LaTeX preamble.
17680  This section lists some tips, tricks, and otherwise cool ideas to give
17681  your document that extra little flair.
17682  
17683 \emph on
17684 Do try this at home
17685 \emph default
17686 , just start with something a little smaller and less important than your
17687  dissertation!
17688 \end_layout
17689
17690 \begin_layout Standard
17691 Most ideas in this section require less common files in your LaTeX installation.
17692  If you have a system like teTeX, most will already be available.
17693  A few, however, will need to be downloaded from one of the CTAN archives.
17694  Often, there are several ways to do something, or several LaTeX style files
17695  which do the same thing.
17696  We do not endorse one choice over another, we simply claim that we have
17697  done a particular task with a particular file.
17698  Put on your wizard hat, keep an eye out for dragons, and let us begin.
17699 \end_layout
17700
17701 \begin_layout Section
17702 Multiple Columns
17703 \end_layout
17704
17705 \begin_layout Standard
17706 by 
17707 \noun on
17708 Lars Gullik Bjønnes
17709 \end_layout
17710
17711 \begin_layout Subsection
17712 Purpose
17713 \end_layout
17714
17715 \begin_layout Standard
17716 The aim for this chapter
17717 \begin_inset Foot
17718 status collapsed
17719
17720 \begin_layout Standard
17721 Editor's note: Lars' original chapter was a masterful description of how
17722  to use the 
17723 \family typewriter
17724 multicol
17725 \family default
17726  package.
17727  However, it was too long to flow smoothly in this document.
17728  I have therefore chosen to excerpt the most important sections here (sorry,
17729  Lars); you can read the original chapter (and more of the story!) in the
17730  example file 
17731 \family typewriter
17732 examples/multicol.lyx
17733 \family default
17734 .
17735  --- mer
17736 \end_layout
17737
17738 \end_inset
17739
17740  is to show how the LaTeX package 
17741 \family typewriter
17742 multicol
17743 \family default
17744  can be used in a LyX document.
17745  As LyX doesn't support the 
17746 \family typewriter
17747 multicol
17748 \family default
17749  package natively yet, we have to use some small hacks.
17750  By reading this section it should be obvious how to do this.
17751 \end_layout
17752
17753 \begin_layout Subsection
17754 Limitations 
17755 \end_layout
17756
17757 \begin_layout Standard
17758 The 
17759 \family typewriter
17760 multicol
17761 \family default
17762  package allows switching between one and multicolumn format on the same
17763  page.
17764  Footnotes are handled correctly (for the most part), but will be placed
17765  at the bottom of the page and not under each column.
17766  LaTeX's float mechanism, however, is partly disabled in the current implementat
17767 ion.
17768  At the moment only page-wide floats can be used within the scope of the
17769  environment.
17770 \end_layout
17771
17772 \begin_layout Subsection
17773 Examples
17774 \end_layout
17775
17776 \begin_layout Subsubsection
17777 Two columns
17778 \end_layout
17779
17780 \begin_layout Standard
17781 If you want to have two columns in your text, you have use LaTeX mode to
17782  insert 
17783 \family typewriter
17784
17785 \backslash
17786 begin{multicols}{2}
17787 \family default
17788  at the point where you want the two column layout to start, and then 
17789 \family typewriter
17790
17791 \backslash
17792 end{multicols}
17793 \family default
17794  where you want it to end.
17795  Like this:
17796 \end_layout
17797
17798 \begin_layout Standard
17799 \begin_inset ERT
17800 status inlined
17801
17802 \begin_layout Standard
17803
17804
17805 \backslash
17806 begin{multicols}{2}
17807 \end_layout
17808
17809 \end_inset
17810
17811
17812 \end_layout
17813
17814 \begin_layout Standard
17815 \noindent
17816
17817 \series bold
17818 \size small
17819 The Adventure of the Empty House
17820 \series default
17821
17822 \newline
17823 by 
17824 \noun on
17825 Sir Arthur Conan Doyle
17826 \end_layout
17827
17828 \begin_layout Standard
17829
17830 \size small
17831 It was in the spring of the year 1894 that all London was interested, and
17832  the fashionable world dismayed, by the murder of the Honourable Ronald
17833  Adair under most unusual and inexplicable circumstances.
17834  The public has already learned those particulars of the crime which came
17835  out in the police investigation, but a good deal was suppressed upon that
17836  occasion, since the case for the prosecution was so overwhelmingly strong
17837  that it was not necessary to bring forward all the facts.
17838  Only now, at the end of nearly ten years, am I allowed to supply those
17839  missing links which make up the whole of that remarkable chain.
17840  The crime was of interest in itself, but that interest was as nothing to
17841  me compared to the inconceivable sequel, which afforded me the greatest
17842  shock and surprise of any event in my adventurous life.
17843  Even now, after this long interval, I find myself thrilling as I think
17844  of it, and feeling once more that sudden flood of joy, amazement, and increduli
17845 ty which utterly submerged my mind.
17846  Let me say to that public, which has shown some interest in those glimpses
17847  which I have occasionally given them of the thoughts and actions of a very
17848  remarkable man, that they are not to blame me if I have not shared my knowledge
17849  with them, for I should have considered it my first duty to do so, had
17850  I not been barred by a positive prohibition from his own lips, which was
17851  only withdrawn upon the third of last month.
17852 \end_layout
17853
17854 \begin_layout Standard
17855 \begin_inset ERT
17856 status inlined
17857
17858 \begin_layout Standard
17859
17860
17861 \backslash
17862 end{multicols}
17863 \end_layout
17864
17865 \end_inset
17866
17867
17868 \end_layout
17869
17870 \begin_layout Subsubsection
17871 Multiple columns
17872 \end_layout
17873
17874 \begin_layout Standard
17875 The same pattern is used when you want more than two columns:
17876 \end_layout
17877
17878 \begin_layout Standard
17879 \begin_inset ERT
17880 status inlined
17881
17882 \begin_layout Standard
17883
17884
17885 \backslash
17886 begin{multicols}{3}
17887 \end_layout
17888
17889 \end_inset
17890
17891
17892 \end_layout
17893
17894 \begin_layout Standard
17895
17896 \size footnotesize
17897 It can be imagined that my close intimacy with Sherlock Holmes had interested
17898  me deeply in crime, and that after his disappearance I never failed to
17899  read with care the various problems which came before the public.
17900  And I even attempted, more than once, for my own private satisfaction,
17901  to employ his methods in their solution, though with indifferent success.
17902  There was none, however, which appealed to me like this tragedy of Ronald
17903  Adair.
17904  As I read the evidence at the inquest, which led up to a verdict of willful
17905  murder against some person or persons unknown, I realized more clearly
17906  than I had ever done the loss which the community had sustained by the
17907  death of Sherlock Holmes.
17908  There were points about this strange business which would, I was sure,
17909  have specially appealed to him, and the efforts of the police would have
17910  been supplemented, or more probably anticipated, by the trained observation
17911  and the alert mind of the first criminal agent in Europe.
17912  All day, as I drove upon my round, I turned over the case in my mind and
17913  found no explanation which appeared to me to be adequate.
17914  At the risk of telling a twice-told tale, I will recapitulate the facts
17915  as they were known to the public at the conclusion of the inquest.
17916 \end_layout
17917
17918 \begin_layout Standard
17919 \begin_inset ERT
17920 status inlined
17921
17922 \begin_layout Standard
17923
17924
17925 \backslash
17926 end{multicols}
17927 \end_layout
17928
17929 \end_inset
17930
17931
17932 \end_layout
17933
17934 \begin_layout Standard
17935 You can have more than 3 columns if you want to, but that might not be very
17936  pleasant for the eye.
17937 \end_layout
17938
17939 \begin_layout Subsubsection
17940 Columns inside columns
17941 \end_layout
17942
17943 \begin_layout Standard
17944 You can even have columns inside columns:
17945 \end_layout
17946
17947 \begin_layout Standard
17948 \begin_inset ERT
17949 status inlined
17950
17951 \begin_layout Standard
17952
17953
17954 \backslash
17955 begin{multicols}{2}
17956 \end_layout
17957
17958 \end_inset
17959
17960
17961 \end_layout
17962
17963 \begin_layout Standard
17964
17965 \size footnotesize
17966 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
17967  at that time governor of one of the Australian colonies.
17968  Adair's mother had returned from Australia to undergo the operation for
17969  cataract, and she, her son Ronald, and her daughter Hilda were living together
17970  at 427 Park Lane.
17971 \end_layout
17972
17973 \begin_layout Standard
17974 \begin_inset ERT
17975 status inlined
17976
17977 \begin_layout Standard
17978
17979
17980 \backslash
17981 begin{multicols}{2}
17982 \end_layout
17983
17984 \end_inset
17985
17986
17987 \end_layout
17988
17989 \begin_layout Standard
17990
17991 \size footnotesize
17992 The youth moved in the best society--had, so far as was known, no enemies
17993  and no particular vices.
17994  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
17995  had been broken off by mutual consent some months before, and there was
17996  no sign that it had left any very profound feeling behind it.
17997  For the rest {sic} the man's life moved in a narrow and conventional circle,
17998  for his habits were quiet and his nature unemotional.
17999  Yet it was upon this easy-going young aristocrat that death came, in most
18000  strange and unexpected form, between the hours of ten and eleven-twenty
18001  on the night of March 30, 1894.
18002 \end_layout
18003
18004 \begin_layout Standard
18005 \begin_inset ERT
18006 status inlined
18007
18008 \begin_layout Standard
18009
18010
18011 \backslash
18012 end{multicols}
18013 \end_layout
18014
18015 \end_inset
18016
18017
18018 \end_layout
18019
18020 \begin_layout Standard
18021
18022 \size footnotesize
18023 Ronald Adair was fond of cards--playing continually, but never for such
18024  stakes as would hurt him.
18025  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
18026  It was shown that, after dinner on the day of his death, he had played
18027  a rubber of whist at the latter club.
18028  He had also played there in the afternoon.
18029
18030 \size default
18031  
18032 \size footnotesize
18033 The evidence of those who had played with him-- Mr.
18034  Murray, Sir John Hardy, and Colonel Moran--showed that the game was whist,
18035  and that there was a fairly equal fall of the cards.
18036  Adair might have lost five pounds, but not more.
18037  His fortune was a considerable one, and such a loss could not in any way
18038  affect him.
18039  He had played nearly every day at one club or other, but he was a cautious
18040  player, and usually rose a winner.
18041  It came out in evidence that, in partnership with Colonel Moran, he had
18042  actually won as much as four hundred and twenty pounds in a sitting, some
18043  weeks before, from Godfrey Milner and Lord Balmoral.
18044  So much for his recent history as it came out at the inquest.
18045 \end_layout
18046
18047 \begin_layout Standard
18048 \begin_inset ERT
18049 status inlined
18050
18051 \begin_layout Standard
18052
18053
18054 \backslash
18055 end{multicols}
18056 \end_layout
18057
18058 \end_inset
18059
18060
18061 \end_layout
18062
18063 \begin_layout Standard
18064 Please do read the file 
18065 \family typewriter
18066 examples/multicol.lyx
18067 \family default
18068  for more advanced examples including column and header spacing, vertical
18069  separator lines, and more.
18070 \end_layout
18071
18072 \begin_layout Section
18073 Numbering in the 
18074 \family sans
18075 Enumerate
18076 \family default
18077  Paragraph Environment
18078 \begin_inset OptArg
18079 status collapsed
18080
18081 \begin_layout Standard
18082 Numbering in Enumerate
18083 \end_layout
18084
18085 \end_inset
18086
18087
18088 \end_layout
18089
18090 \begin_layout Standard
18091 by 
18092 \noun on
18093 John Weiss
18094 \end_layout
18095
18096 \begin_layout Standard
18097 \begin_inset VSpace bigskip
18098 \end_inset
18099
18100
18101 \end_layout
18102
18103 \begin_layout Standard
18104 \noindent
18105 The default numbering for the 
18106 \family sans
18107 Enumerate
18108 \family default
18109  paragraph environment begins with Arabic numbers and ends with uppercase
18110  letters.
18111  Suppose, however, you wanted a different type of numbering scheme.
18112  Here's a quickie example of how to change the numbering scheme:
18113 \end_layout
18114
18115 \begin_layout LyX-Code
18116
18117 \backslash
18118 renewcommand{
18119 \backslash
18120 labelenumi}{
18121 \backslash
18122 Roman{enumi}.}
18123 \end_layout
18124
18125 \begin_layout LyX-Code
18126
18127 \backslash
18128 renewcommand{
18129 \backslash
18130 labelenumii}{
18131 \backslash
18132 Alph{enumii}.}
18133 \end_layout
18134
18135 \begin_layout LyX-Code
18136
18137 \backslash
18138 renewcommand{
18139 \backslash
18140 labelenumiii}{
18141 \backslash
18142 arabic{enumiii}.}
18143 \end_layout
18144
18145 \begin_layout LyX-Code
18146
18147 \backslash
18148 renewcommand{
18149 \backslash
18150 labelenumiv}{
18151 \backslash
18152 alph{enumiv}.)}
18153 \end_layout
18154
18155 \begin_layout Standard
18156 \SpecialChar \ldots{}
18157  which changes the numbering scheme to uppercase Roman numerals, uppercase
18158  letters, Arabic numbers, and lowercase letter.
18159 \end_layout
18160
18161 \begin_layout Standard
18162 Additionally, the previous example also adds a little bit extra to the numbering
18163  scheme.
18164  For example, the first level label actually looks like: 
18165 \begin_inset Quotes eld
18166 \end_inset
18167
18168 I.
18169 \begin_inset Quotes erd
18170 \end_inset
18171
18172 .
18173  For ease of reading, we'll describe what the numbering schemes look like
18174  using a notation something like this: <
18175 \begin_inset Quotes eld
18176 \end_inset
18177
18178 I.
18179 \begin_inset Quotes erd
18180 \end_inset
18181
18182 ,\InsetSpace ~
18183
18184 \begin_inset Quotes erd
18185 \end_inset
18186
18187 A.
18188 \begin_inset Quotes erd
18189 \end_inset
18190
18191 ,\InsetSpace ~
18192
18193 \begin_inset Quotes erd
18194 \end_inset
18195
18196 1.
18197 \begin_inset Quotes erd
18198 \end_inset
18199
18200 ,\InsetSpace ~
18201
18202 \begin_inset Quotes eld
18203 \end_inset
18204
18205 a.)
18206 \begin_inset Quotes erd
18207 \end_inset
18208
18209 >.
18210  
18211 \end_layout
18212
18213 \begin_layout Standard
18214 As you can see in the example, there is a label command for each nesting
18215  level, 
18216 \family typewriter
18217
18218 \backslash
18219 labelenumi
18220 \family default
18221  \SpecialChar \ldots{}
18222  
18223 \family typewriter
18224
18225 \backslash
18226 labelenumiv
18227 \family default
18228 , as well as a counter, 
18229 \family typewriter
18230 enumi
18231 \family default
18232  \SpecialChar \ldots{}
18233  
18234 \family typewriter
18235 enumiv
18236 \family default
18237 .
18238  There are also five 
18239 \begin_inset Quotes eld
18240 \end_inset
18241
18242 number printing
18243 \begin_inset Quotes erd
18244 \end_inset
18245
18246  commands, 
18247 \family typewriter
18248
18249 \backslash
18250 arabic{}
18251 \family default
18252
18253 \family typewriter
18254
18255 \backslash
18256 roman{}
18257 \family default
18258
18259 \family typewriter
18260
18261 \backslash
18262 Roman{}
18263 \family default
18264
18265 \family typewriter
18266
18267 \backslash
18268 alph{}
18269 \family default
18270 , and 
18271 \family typewriter
18272
18273 \backslash
18274 Alph{}
18275 \family default
18276 , each of which take one counter as an argument.
18277  You can add characters before or after these, but there's no need to add
18278  spaces.
18279 \end_layout
18280
18281 \begin_layout Standard
18282 You can get really fancy with these.
18283  For example:
18284 \end_layout
18285
18286 \begin_layout LyX-Code
18287
18288 \backslash
18289 renewcommand{
18290 \backslash
18291 labelenumi}{
18292 \backslash
18293 #
18294 \backslash
18295 Alph{enumi}
18296 \backslash
18297 #}
18298 \end_layout
18299
18300 \begin_layout LyX-Code
18301
18302 \backslash
18303 renewcommand{
18304 \backslash
18305 labelenumii}{
18306 \backslash
18307 Alph{enumi}.
18308 \backslash
18309 arabic{enumii}}
18310 \end_layout
18311
18312 \begin_layout LyX-Code
18313
18314 \backslash
18315 renewcommand{
18316 \backslash
18317 labelenumiii}{
18318 \backslash
18319 alph{enumiii}+}
18320 \end_layout
18321
18322 \begin_layout LyX-Code
18323
18324 \backslash
18325 renewcommand{
18326 \backslash
18327 labelenumiv}{(
18328 \backslash
18329 roman{enumiv})}
18330 \end_layout
18331
18332 \begin_layout Standard
18333 produces the somewhat out of hand numbering scheme: <
18334 \begin_inset Quotes eld
18335 \end_inset
18336
18337 #A#
18338 \begin_inset Quotes erd
18339 \end_inset
18340
18341 ,\InsetSpace ~
18342
18343 \begin_inset Quotes erd
18344 \end_inset
18345
18346 A.1
18347 \begin_inset Quotes erd
18348 \end_inset
18349
18350 ,\InsetSpace ~
18351
18352 \begin_inset Quotes erd
18353 \end_inset
18354
18355 a+
18356 \begin_inset Quotes erd
18357 \end_inset
18358
18359 ,\InsetSpace ~
18360
18361 \begin_inset Quotes eld
18362 \end_inset
18363
18364 (i)
18365 \begin_inset Quotes erd
18366 \end_inset
18367
18368 >.
18369  
18370 \end_layout
18371
18372 \begin_layout Standard
18373
18374 \end_layout
18375
18376 \begin_layout Section
18377 Dropped Capitals
18378 \end_layout
18379
18380 \begin_layout Standard
18381 by 
18382 \noun on
18383 Mike Ressler
18384 \end_layout
18385
18386 \begin_layout Standard
18387 \begin_inset VSpace bigskip
18388 \end_inset
18389
18390
18391 \end_layout
18392
18393 \begin_layout Standard
18394 \noindent
18395 \begin_inset ERT
18396 status collapsed
18397
18398 \begin_layout Standard
18399
18400
18401 \backslash
18402 newfont{
18403 \backslash
18404 tmpfont}{cmr17 scaled 2500}{
18405 \backslash
18406 tmpfont T}
18407 \backslash
18408 vspace*{-8.4ex}
18409 \end_layout
18410
18411 \end_inset
18412
18413
18414 \end_layout
18415
18416 \begin_layout Standard
18417 \noindent
18418 \begin_inset ERT
18419 status inlined
18420
18421 \begin_layout Standard
18422
18423
18424 \backslash
18425 hangindent=3.3em 
18426 \backslash
18427 hangafter=-3
18428 \end_layout
18429
18430 \end_inset
18431
18432  hose of you who like the style of old books probably also like 
18433 \begin_inset Quotes eld
18434 \end_inset
18435
18436 dropped capitals
18437 \begin_inset Quotes erd
18438 \end_inset
18439
18440 ---those large capital letters which begin each new chapter or section.
18441  Implementing them with plain LyX/LaTeX is straightforward (assuming you
18442  know some plain TeX!) but does require a lot of work and many iterations,
18443  as you can see by all the ugly TeX-mode stuff at the beginning of this
18444  paragraph.
18445 \end_layout
18446
18447 \begin_layout Standard
18448 \begin_inset ERT
18449 status inlined
18450
18451 \begin_layout Standard
18452
18453
18454 \backslash
18455 verb+
18456 \backslash
18457 bigdrop{-1em}{3}{ptmri}{T}+
18458 \end_layout
18459
18460 \end_inset
18461
18462 here is a much easier way of doing this, of course.
18463  The 
18464 \family typewriter
18465 dropcaps
18466 \family default
18467  (or the newer 
18468 \family typewriter
18469 dropping
18470 \family default
18471 ) package from CTAN allows a simple way to add such letters to your documents.
18472  Since this package is not a standard part of teTeX, I can't demonstrate
18473  it within this document, but if you copy this paragraph to a new document,
18474  delete the 
18475 \begin_inset Quotes eld
18476 \end_inset
18477
18478
18479 \family typewriter
18480
18481 \backslash
18482 verb
18483 \family default
18484
18485 \begin_inset Quotes erd
18486 \end_inset
18487
18488  and the pluses from the TeX code at the beginning of the paragraph, and
18489  add 
18490 \family typewriter
18491
18492 \backslash
18493 usepackage{dropcaps}
18494 \family default
18495  to your LaTeX preamble, you will get a nice Times Roman Italic 
18496 \begin_inset Quotes eld
18497 \end_inset
18498
18499 T
18500 \begin_inset Quotes erd
18501 \end_inset
18502
18503 , whose height is three lines of text and which protrudes 1 em into the
18504  margin.
18505  (Make certain you have copied 
18506 \begin_inset Quotes eld
18507 \end_inset
18508
18509
18510 \family typewriter
18511 dropcaps.sty
18512 \family default
18513
18514 \begin_inset Quotes erd
18515 \end_inset
18516
18517  into a directory where TeX can see it.) The first argument is the amount
18518  of indentation; in this case the negative sign moves it into the margin.
18519  The second argument is the height of the letter in number of lines of text.
18520  The third argument is the font name: virtually anything which has a tfm
18521  file should work (wade through the 
18522 \family typewriter
18523 .../texmf/fonts/tfm
18524 \family default
18525  directory for possibilities).
18526  My personal favorite is 
18527 \begin_inset Quotes eld
18528 \end_inset
18529
18530
18531 \family typewriter
18532 yinit
18533 \family default
18534
18535 \begin_inset Quotes erd
18536 \end_inset
18537
18538 , a fancy German font specifically designed for dropped capitals.
18539  The fourth argument is the letter (or letters) to be dropped.
18540  The 
18541 \family typewriter
18542 dropping
18543 \family default
18544  package also offers the 
18545 \family typewriter
18546
18547 \backslash
18548 bigdrop
18549 \family default
18550  command, as well as a slightly simplified 
18551 \family typewriter
18552
18553 \backslash
18554 dropping
18555 \family default
18556  command.
18557 \end_layout
18558
18559 \begin_layout Section
18560 Non-standard Paragraph Shapes
18561 \end_layout
18562
18563 \begin_layout Standard
18564 by 
18565 \noun on
18566 Mike Ressler
18567 \end_layout
18568
18569 \begin_layout Standard
18570 \begin_inset VSpace bigskip
18571 \end_inset
18572
18573
18574 \end_layout
18575
18576 \begin_layout Standard
18577 \begin_inset ERT
18578 status inlined
18579
18580 \begin_layout Standard
18581
18582
18583 \backslash
18584 begin{sloppypar}
18585 \end_layout
18586
18587 \end_inset
18588
18589
18590 \end_layout
18591
18592 \begin_layout Standard
18593 \begin_inset ERT
18594 status collapsed
18595
18596 \begin_layout Standard
18597
18598
18599 \backslash
18600 newdimen
18601 \backslash
18602 varunit 
18603 \end_layout
18604
18605 \begin_layout Standard
18606
18607
18608 \backslash
18609 setlength{
18610 \backslash
18611 varunit}{4.5in}
18612 \end_layout
18613
18614 \end_inset
18615
18616
18617 \end_layout
18618
18619 \begin_layout Standard
18620 \noindent
18621 \begin_inset ERT
18622 status collapsed
18623
18624 \begin_layout Standard
18625
18626
18627 \backslash
18628 parshape 19 0.45
18629 \backslash
18630 varunit 0.332
18631 \backslash
18632 varunit
18633 \end_layout
18634
18635 \begin_layout Standard
18636
18637 0.40
18638 \backslash
18639 varunit 0.300
18640 \backslash
18641 varunit
18642 \end_layout
18643
18644 \begin_layout Standard
18645
18646 0.35
18647 \backslash
18648 varunit 0.293
18649 \backslash
18650 varunit
18651 \end_layout
18652
18653 \begin_layout Standard
18654
18655 0.30
18656 \backslash
18657 varunit 0.300
18658 \backslash
18659 varunit
18660 \end_layout
18661
18662 \begin_layout Standard
18663
18664 0.25
18665 \backslash
18666 varunit 0.317
18667 \backslash
18668 varunit
18669 \end_layout
18670
18671 \begin_layout Standard
18672
18673 0.20
18674 \backslash
18675 varunit 0.342
18676 \backslash
18677 varunit
18678 \end_layout
18679
18680 \begin_layout Standard
18681
18682 0.15
18683 \backslash
18684 varunit 0.373
18685 \backslash
18686 varunit
18687 \end_layout
18688
18689 \begin_layout Standard
18690
18691 0.10
18692 \backslash
18693 varunit 0.410
18694 \backslash
18695 varunit
18696 \end_layout
18697
18698 \begin_layout Standard
18699
18700 0.05
18701 \backslash
18702 varunit 0.453
18703 \backslash
18704 varunit
18705 \end_layout
18706
18707 \begin_layout Standard
18708
18709 0.00
18710 \backslash
18711 varunit 0.500
18712 \backslash
18713 varunit
18714 \end_layout
18715
18716 \begin_layout Standard
18717
18718 0.05
18719 \backslash
18720 varunit 0.453
18721 \backslash
18722 varunit
18723 \end_layout
18724
18725 \begin_layout Standard
18726
18727 0.10
18728 \backslash
18729 varunit 0.410
18730 \backslash
18731 varunit
18732 \end_layout
18733
18734 \begin_layout Standard
18735
18736 0.15
18737 \backslash
18738 varunit 0.373
18739 \backslash
18740 varunit
18741 \end_layout
18742
18743 \begin_layout Standard
18744
18745 0.20
18746 \backslash
18747 varunit 0.342
18748 \backslash
18749 varunit
18750 \end_layout
18751
18752 \begin_layout Standard
18753
18754 0.25
18755 \backslash
18756 varunit 0.317
18757 \backslash
18758 varunit
18759 \end_layout
18760
18761 \begin_layout Standard
18762
18763 0.30
18764 \backslash
18765 varunit 0.300
18766 \backslash
18767 varunit
18768 \end_layout
18769
18770 \begin_layout Standard
18771
18772 0.35
18773 \backslash
18774 varunit 0.293
18775 \backslash
18776 varunit
18777 \end_layout
18778
18779 \begin_layout Standard
18780
18781 0.40
18782 \backslash
18783 varunit 0.300
18784 \backslash
18785 varunit
18786 \end_layout
18787
18788 \begin_layout Standard
18789
18790 0.45
18791 \backslash
18792 varunit 0.332
18793 \backslash
18794 varunit
18795 \end_layout
18796
18797 \begin_layout Standard
18798
18799 \end_layout
18800
18801 \end_inset
18802
18803 There are times when the tyranny of rectangular paragraphs must be overthrown.
18804  In such situations, a call to the delightful plain TeX command 
18805 \family typewriter
18806
18807 \backslash
18808 parshape
18809 \family default
18810  is called for.
18811  As you can see, completely arbitrary shapes can be laid out with a suitable
18812  set of linelength definitions.
18813  While this parshape may look a bit silly and useless, one could conceive
18814  of situations such as finely tuned dropped capitals, word wrapping around
18815  non-rectangular graphics, etc.
18816  which will benefit from such handcrafting.
18817 \end_layout
18818
18819 \begin_layout Standard
18820 \begin_inset VSpace bigskip
18821 \end_inset
18822
18823
18824 \end_layout
18825
18826 \begin_layout Standard
18827 The syntax is 
18828 \family typewriter
18829
18830 \backslash
18831 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
18832  #nindent #nlength
18833 \family default
18834 , where 
18835 \family typewriter
18836 numlines
18837 \family default
18838  is the number of lines of text which define the paragraph.
18839  If there turn out to be fewer lines, the shape is truncated; if there are
18840  more, the excess lines have the same dimensions as the last line of the
18841  definition.
18842  The 
18843 \family typewriter
18844 #nindent
18845 \family default
18846  and 
18847 \family typewriter
18848 #nlength
18849 \family default
18850  entries specify the indentation of the line from the left margin, and the
18851  length of the line as measured from that point.
18852  The shape applies only to the current paragraph; everything is reset to
18853  normal for the next paragraph.
18854 \end_layout
18855
18856 \begin_layout Standard
18857 \begin_inset ERT
18858 status inlined
18859
18860 \begin_layout Standard
18861
18862
18863 \backslash
18864 end{sloppypar}
18865 \end_layout
18866
18867 \end_inset
18868
18869
18870 \end_layout
18871
18872 \begin_layout Section
18873 Summary
18874 \end_layout
18875
18876 \begin_layout Standard
18877 As you can see, the examples in this section range from the useful to the
18878  whimsical.
18879  While I don't expect that anyone will ever need the paragraph shape demonstrate
18880 d in the last section, the important point is that you can do almost anything
18881  you want in LyX if you are willing to figure out how to do it in TeX and
18882  LaTeX.
18883  TeX is a fantastically powerful typesetting system and all that power is
18884  available to you since LyX uses it as its backend.
18885  Happy LyXing!
18886 \end_layout
18887
18888 \end_body
18889 \end_document