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