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