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