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