]> git.lyx.org Git - lyx.git/blob - lib/doc/Extended.lyx
documentation update (bibtex extensions, space inset, quotation marks)
[lyx.git] / lib / doc / Extended.lyx
1 #LyX 1.4.0cvs created this file. For more info see http://www.lyx.org/
2 \lyxformat 243
3 \begin_document
4 \begin_header
5 \textclass book
6 \begin_preamble
7 \usepackage{multicol}
8 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
9 \end_preamble
10 \language english
11 \inputencoding latin1
12 \fontscheme default
13 \graphics default
14 \paperfontsize default
15 \spacing single
16 \papersize default
17 \use_geometry false
18 \use_amsmath 0
19 \cite_engine basic
20 \use_bibtopic false
21 \paperorientation portrait
22 \secnumdepth 3
23 \tocdepth 3
24 \paragraph_separation indent
25 \defskip medskip
26 \quotes_language english
27 \quotes_times 2
28 \papercolumns 1
29 \papersides 2
30 \paperpagestyle headings
31 \tracking_changes false
32 \output_changes true
33 \end_header
34
35 \begin_body
36
37 \begin_layout Title
38 Extended LyX Features
39 \end_layout
40
41 \begin_layout Author
42 by the LyX Team
43 \begin_inset Foot
44 status collapsed
45
46 \begin_layout Standard
47 \noindent
48 Principal maintainer of this file is
49 \noun on
50  Mike Ressler
51 \noun default
52 .
53  If you have comments or error corrections, please send them to the LyX
54  Documentation mailing list, <lyx-docs@lists.lyx.org>.
55 \end_layout
56
57 \end_inset
58
59  
60 \end_layout
61
62 \begin_layout Standard
63 \begin_inset LatexCommand \tableofcontents{}
64
65 \end_inset
66
67
68 \end_layout
69
70 \begin_layout Chapter
71 Introduction
72 \end_layout
73
74 \begin_layout Standard
75 The 
76 \emph on
77 Extended LyX Features
78 \emph default
79  manual, which you are now reading, is essentially Part II of the 
80 \emph on
81 User's Guide\SpecialChar \@.
82
83 \emph default
84  The reason for splitting this document is simple: the 
85 \emph on
86 User's Guide
87 \emph default
88  is already huge, and it contains all of the basic features one needs to
89  know in order to prepare most documents.
90  However, the LyX Team has a long-term goal of making LyX extensible through
91  various configuration files and external packages.
92  That means that if you want to support the Fizzwizzle LaTeX package, you
93  can create a layout file for it without having to alter LyX itself.
94  We've already had contributions of several new features this way.
95  This is the place where all of that gets documented.
96 \end_layout
97
98 \begin_layout Standard
99 This manual also documents some special features, like fax support, version
100  control, and SGML support, which require additional software to work properly.
101  Lastly, there's a chapter of LaTeX tools and tips, things you can use to
102  spruce up your documents by directly using the powerful features of LaTeX.
103  After all, LyX 
104 \emph on
105 is
106 \emph default
107  only WYSIWYM, and will only ever interface to certain LaTeX features.
108 \end_layout
109
110 \begin_layout Standard
111 Of course, with all of this extra documentation, 
112 \emph on
113 Extended LyX Features
114 \emph default
115  may itself grow too big for its britches.
116  In that case, you can just call it the 
117 \begin_inset Quotes eld
118 \end_inset
119
120 Overextended Manual
121 \begin_inset Quotes erd
122 \end_inset
123
124  for fun!
125 \end_layout
126
127 \begin_layout Standard
128 If you haven't read the 
129 \emph on
130 Introduction 
131 \emph default
132 yet, you are definitely in the wrong manual.
133  The 
134 \emph on
135 Introduction
136 \emph default
137  is the first place to go, since it will direct you to the correct manual,
138  and it also describes the notation and format of all of the manuals.
139  You should also be thoroughly familiar with the 
140 \emph on
141 User's Guide
142 \emph default
143  and all of the basic features of LyX.
144  
145 \end_layout
146
147 \begin_layout Standard
148 In this document, many sections are independent articles contributed by
149  an individual and are noted as such.
150  This person is generally whoever wrote the layout file for the new document
151  class or LaTeX package, or implemented the feature.
152  If there is no mention of an author to a chapter [or chapter sections],
153  that means it was written by the LyX Documentation Team.
154 \end_layout
155
156 \begin_layout Standard
157 Since all the topics in this manual depend heavily on LyX's interaction
158  with LaTeX, this first chapter covers
159 \emph on
160  
161 \emph default
162 the inner workings of LyX and how to direct LyX to generate exactly the
163  LaTeX code you want.
164  It is obviously for more seasoned LyX users.
165 \end_layout
166
167 \begin_layout Chapter
168 LyX and LaTeX
169 \end_layout
170
171 \begin_layout Section
172 How LyX Uses LaTeX
173 \end_layout
174
175 \begin_layout Standard
176 \begin_inset LatexCommand \label{sec:lyxandlatex}
177
178 \end_inset
179
180 This chapter is for both TeX-nicians and the LaTeX-curious.
181  In it, we'll explain how LyX and LaTeX work together to produce printable
182  output.
183  This is the only place in any of the manuals where we assume you know something
184  about LaTeX.
185 \end_layout
186
187 \begin_layout Standard
188 At one time, we called LyX a 
189 \begin_inset Quotes eld
190 \end_inset
191
192 WYSIWYM frontend to LaTeX,
193 \begin_inset Quotes erd
194 \end_inset
195
196  but that's no longer true.
197  There are frontends to LaTeX out there.
198  They are basically editors with the ability to run LaTeX and mark any errors
199  in the file you're editing.
200  Although LyX 
201 \emph on
202 is
203 \emph default
204  an editor, and it 
205 \emph on
206 does
207 \emph default
208  run LaTeX, and it also marks errors in the file, it also does much, much
209  more.
210  Thanks to the WYSIWYM concept, you don't need LaTeX to use LyX effectively.
211  LyX has also added a few extensions to LaTeX.
212  Try the following sometime: select 
213 \family sans
214 Export\SpecialChar \menuseparator
215 LaTeX
216 \family default
217  from the 
218 \family sans
219 \bar under
220 F
221 \bar default
222 ile
223 \family default
224  menu, then look at the preamble of the resulting 
225 \family typewriter
226 .tex
227 \family default
228  file.
229  You'll notice a variety of new macros defined specifically by LyX.
230  These macros are defined automatically, according to the features you use
231  in the document.
232 \end_layout
233
234 \begin_layout Standard
235 There are several commands that automatically invoke LaTeX.
236  They are:
237 \end_layout
238
239 \begin_layout Itemize
240
241 \family sans
242 \bar under
243 V
244 \bar default
245 iew\SpecialChar \menuseparator
246 View\InsetSpace ~
247
248 \emph on
249 Format
250 \end_layout
251
252 \begin_layout Itemize
253
254 \family sans
255 \bar under
256 V
257 \bar default
258 iew\SpecialChar \menuseparator
259
260 \bar under
261 U
262 \bar default
263 pdate\SpecialChar \menuseparator
264
265 \emph on
266 Format
267 \end_layout
268
269 \begin_layout Itemize
270
271 \family sans
272 \bar under
273 F
274 \bar default
275 ile
276 \bar under
277 \SpecialChar \menuseparator
278 P
279 \bar default
280 rint
281 \end_layout
282
283 \begin_layout Itemize
284
285 \family sans
286 \bar under
287 F
288 \bar default
289 ile
290 \bar under
291 \SpecialChar \menuseparator
292 F
293 \bar default
294 ax
295 \end_layout
296
297 \begin_layout Standard
298 They will only invoke LaTeX if the file has changed since the last time
299  LaTeX was run.
300  
301 \end_layout
302
303 \begin_layout Standard
304 When you run LaTeX on the file you're editing, LyX performs these steps:
305 \end_layout
306
307 \begin_layout Enumerate
308 Convert the document to LaTeX and save to a file with the extension 
309 \family typewriter
310 .tex
311 \family default
312  in place of 
313 \family typewriter
314 .lyx
315 \family default
316 .
317 \end_layout
318
319 \begin_layout Enumerate
320 Run LaTeX on the 
321 \family typewriter
322 .tex
323 \family default
324  file (maybe several times).
325 \end_layout
326
327 \begin_layout Enumerate
328 If there are any errors, insert error boxes in the document to mark where
329  they are.
330  These boxes are transient and are not saved along with the document.
331 \end_layout
332
333 \begin_layout Standard
334 If you've run LaTeX using 
335 \family sans
336 View\InsetSpace ~
337 DVI
338 \family default
339 , LyX then executes 
340 \family typewriter
341 xdvi
342 \family default
343  on the Dvi file.
344  If you've used 
345 \family sans
346 View\InsetSpace ~
347 PostScript
348 \family default
349  or 
350 \family sans
351 \bar under
352 P
353 \bar default
354 rint
355 \family default
356 , LyX performs two more steps:
357 \end_layout
358
359 \begin_layout Itemize
360 Run 
361 \family typewriter
362 dvips
363 \family default
364  to convert the Dvi file to PostScript®:
365 \end_layout
366
367 \begin_deeper
368 \begin_layout Itemize
369 For 
370 \family sans
371 View\InsetSpace ~
372 PostScript
373 \family default
374 , the output file has the extension 
375 \family typewriter
376 .ps_tmp
377 \end_layout
378
379 \begin_layout Itemize
380 For 
381 \family sans
382 \bar under
383 P
384 \bar default
385 rint
386 \family default
387 \InsetSpace ~
388 , the output file has the extension 
389 \family typewriter
390 .ps
391 \family default
392 , as expected.
393 \end_layout
394
395 \end_deeper
396 \begin_layout Itemize
397 Execute 
398 \family typewriter
399 ghostview
400 \family default
401  or send the PostScript® file to the printer.
402 \end_layout
403
404 \begin_layout Section
405 \begin_inset Quotes eld
406 \end_inset
407
408 Help! LyX generated an unreadable 
409 \family typewriter
410 .tex
411 \family default
412  file!
413 \begin_inset Quotes erd
414 \end_inset
415
416
417 \end_layout
418
419 \begin_layout Standard
420 Die-hard LaTeX users will scream and howl this into the night, then declare
421  LyX useless, simply because they didn't RTFM.
422 \end_layout
423
424 \begin_layout Standard
425 We're going to set the record straight.
426  LyX produces two kinds of LaTeX files.
427  One is human readable.
428  The other is LyX readable.
429  Every time LyX executes LaTeX, it produces a LaTeX file that it can easily
430  scan for errors.
431  The resulting 
432 \family typewriter
433 .tex
434 \family default
435  file is not human readable.
436  Don't even try to read it.
437  If you want a 
438 \family typewriter
439 .tex
440 \family default
441  file that you can send to a colleague, select 
442 \family sans
443 \bar under
444 E
445 \bar default
446 xport\SpecialChar \menuseparator
447
448 \bar under
449 L
450 \bar default
451 aTeX
452 \family default
453  from the 
454 \family sans
455 \bar under
456 F
457 \bar default
458 ile
459 \family default
460  menu.
461 \end_layout
462
463 \begin_layout Section
464 Translating LaTeX files into LyX
465 \end_layout
466
467 \begin_layout Standard
468 You can import a LaTeX file into LyX by using the 
469 \family sans
470 \bar under
471 F
472 \bar default
473 ile\SpecialChar \menuseparator
474
475 \bar under
476 I
477 \bar default
478 mport\SpecialChar \menuseparator
479
480 \bar under
481 L
482 \bar default
483 aTeX
484 \family default
485  command in LyX.
486  This will call a Perl script named 
487 \family typewriter
488 reLyX
489 \family default
490 ---which will create a file 
491 \family typewriter
492 foo.lyx
493 \family default
494  from the file 
495 \family typewriter
496 foo.tex
497 \family default
498 ---and then open that file.
499  If the translation doesn't work, you can try calling 
500 \family typewriter
501 reLyX
502 \family default
503  from the command line, possibly using fancier options.
504 \end_layout
505
506 \begin_layout Standard
507
508 \family typewriter
509 reLyX
510 \family default
511  will translate most legal LaTeX, but not everything.
512  It will leave things it doesn't understand in TeX mode, so after translating
513  a file with 
514 \family typewriter
515 reLyX
516 \family default
517 , you can look for red text and hand-edit it to look right.
518 \end_layout
519
520 \begin_layout Standard
521
522 \family typewriter
523 reLyX
524 \family default
525  has its own section in the 
526 \emph on
527 Extended Features
528 \emph default
529  manual (as well as a Unix manpage equivalent), which you should read to
530  find out about what LaTeX isn't supported, bugs (and how to get around
531  them), and how to use the various options.
532 \end_layout
533
534 \begin_layout Standard
535 If you can't get 
536 \family typewriter
537 reLyX
538 \family default
539  to work, or you just want to put a piece of LaTeX code into a LyX file,
540  see Section
541 \begin_inset LatexCommand \ref{sec:latexcodes}
542
543 \end_inset
544
545 .
546 \end_layout
547
548 \begin_layout Section
549 Inserting LaTeX Code into LyX Documents 
550 \begin_inset LatexCommand \label{sec:Inserting-LaTeX-Code}
551
552 \end_inset
553
554
555 \end_layout
556
557 \begin_layout Standard
558 \begin_inset LatexCommand \label{sec:latexcodes}
559
560 \end_inset
561
562  This is a rather important point: You can always insert LaTeX code into
563  any LyX document.
564  LyX simply cannot, and will probably never be able to, display every possible
565  LaTeX construct.
566  If ever you need to insert LaTeX commands into your LyX document, you can
567  use the ERT box, which you can insert into your document with 
568 \family sans
569 \bar under
570 I
571 \bar default
572 nsert\SpecialChar \menuseparator
573
574 \bar under
575 T
576 \bar default
577 eX
578 \family default
579 .
580  The ERT box comes in three forms: collapsed, open, and inlined.
581  The first two are used just like any other collapsable (foldable) box (such
582  as footnotes), and are useful for significant amounts of LaTeX commands.
583  An 
584 \begin_inset Quotes eld
585 \end_inset
586
587 inlined
588 \begin_inset Quotes erd
589 \end_inset
590
591  ERT box displays its content as part of the button, and is useful for very
592  short sections of LaTeX commands.
593  
594 \begin_inset ERT
595 status inlined
596
597 \begin_layout Standard
598 % like this
599 \end_layout
600
601 \end_inset
602
603
604 \end_layout
605
606 \begin_layout Standard
607 You can switch between all three by right-clicking on the ERT.
608  Note that if you want more than one line of LaTeX commands, you cannot
609  use the inlined mode.
610 \end_layout
611
612 \begin_layout Standard
613 Here's an example of inserting LaTeX commands in a LyX document.
614  The code looks like this:
615 \end_layout
616
617 \begin_layout LyX-Code
618
619 \backslash
620 begin{tabular}{ll}
621 \newline
622
623 \backslash
624 begin{minipage}{5cm}
625 \newline
626 This is an example for a minipage environment.
627  You 
628 \newline
629 can put nearly everything in it, even (non-floating) 
630 \newline
631 figures and tables.
632  
633 \newline
634
635 \backslash
636 end{minipage}
637 \newline
638 &
639 \newline
640
641 \backslash
642 begin{minipage}{5cm}
643 \newline
644
645 \backslash
646 begin{verbatim}
647 \newline
648
649 \backslash
650 begin{minipage}{5cm}
651 \newline
652 This ...
653  
654 \newline
655
656 \backslash
657 end{minipage}
658 \newline
659
660 \backslash
661 end{verbatim}
662 \newline
663
664 \backslash
665 end{minipage}
666 \newline
667
668 \backslash
669 end{tabular}
670 \end_layout
671
672 \begin_layout LyX-Code
673
674 \end_layout
675
676 \begin_layout Standard
677 The ERT box containing this text is directly after this paragraph.
678  Those of you reading the manual online will only see a bunch of funky text
679  in red.
680  Those reading a printed version of the manuals will see the actual results:
681 \end_layout
682
683 \begin_layout Standard
684 \begin_inset ERT
685 status collapsed
686
687 \begin_layout Standard
688
689 \backslash
690 begin{tabular}{ll}
691 \end_layout
692
693 \begin_layout Standard
694
695 \backslash
696 begin{minipage}{5cm}
697 \end_layout
698
699 \begin_layout Standard
700 This is an example for a minipage environment.
701  You can put nearly everything in it, even (non-floating) figures and tables.
702  
703 \end_layout
704
705 \begin_layout Standard
706
707 \backslash
708 end{minipage}
709 \end_layout
710
711 \begin_layout Standard
712 &
713 \end_layout
714
715 \begin_layout Standard
716
717 \backslash
718 begin{minipage}{5cm}
719 \end_layout
720
721 \begin_layout Standard
722
723 \backslash
724 begin{verbatim}
725 \end_layout
726
727 \begin_layout Standard
728
729 \backslash
730 begin{minipage}{5cm}
731 \end_layout
732
733 \begin_layout Standard
734 This ...
735  
736 \end_layout
737
738 \begin_layout Standard
739
740 \backslash
741 end{minipage}
742 \end_layout
743
744 \begin_layout Standard
745
746 \backslash
747 end{verbatim}
748 \end_layout
749
750 \begin_layout Standard
751
752 \backslash
753 end{minipage}
754 \end_layout
755
756 \begin_layout Standard
757
758 \backslash
759 end{tabular}
760 \end_layout
761
762 \end_inset
763
764
765 \end_layout
766
767 \begin_layout Standard
768 In addition to these two methods, you can also create a separate file containing
769  some complex LaTeX structure.
770  You can then use 
771 \family sans
772 \bar under
773 I
774 \bar default
775 nsert\SpecialChar \menuseparator
776 Chil
777 \bar under
778 d
779 \bar default
780 \InsetSpace ~
781 Document
782 \family default
783  to include your file (you should select the type 
784 \family sans
785 Input
786 \family default
787 ).
788  We recommend that you only do this if you have a 
789 \family typewriter
790 .tex
791 \family default
792  file which you 
793 \emph on
794 know
795 \emph default
796  works already.
797  Otherwise, you'll have a big job tracking down LaTeX errors\SpecialChar \ldots{}
798
799 \end_layout
800
801 \begin_layout Standard
802 There are a few last notes to emphasize:
803 \end_layout
804
805 \begin_layout Itemize
806 Inside of LyX, LaTeX code appears 
807 \emph on
808 in red
809 \end_layout
810
811 \begin_layout Itemize
812 LyX 
813 \emph on
814 does not
815 \emph default
816  check if your LaTeX code is correct.
817 \end_layout
818
819 \begin_layout Itemize
820 Beware reinventing the wheel.
821 \end_layout
822
823 \begin_layout Standard
824 That last note refers to two things.
825  First, LyX does have quite a few features tucked into it, and more are
826  coming.
827  Be sure to check the manuals to make sure that LyX doesn't have such-and-such
828  feature before you go off merrily coding LaTeX.
829  Second, there are numerous LaTeX packages out there to do all sorts of
830  things, from labels to envelopes to fancy multipage tables.
831  Check out a CTAN site for details (see Section 
832 \begin_inset Quotes eld
833 \end_inset
834
835 Requirements
836 \begin_inset Quotes erd
837 \end_inset
838
839  of the 
840 \emph on
841 User's Guide
842 \emph default
843 ).
844 \begin_inset Foot
845 status open
846
847 \begin_layout Standard
848 Note from 
849 \noun on
850 John Weiss
851 \noun default
852 : I seem to do this an awful lot.
853  Sat down and merrily began coding something to print out labels, only to
854  learn that there were already 2 different LaTeX packages to do this.
855  Worse yet --- I had them already!
856 \end_layout
857
858 \end_inset
859
860
861 \end_layout
862
863 \begin_layout Standard
864 If you do need to do some wild and fancy things within your document, be
865  sure to check out a good LaTeX book for assistance.
866  There are a number of them listed in the bibliography of the 
867 \emph on
868 User's Guide
869 \emph default
870 .
871 \end_layout
872
873 \begin_layout Standard
874 There are a number of LaTeX commands which have to be placed before the
875  beginning of the actual text.
876  They go into the preamble, and this is explained in the next section.
877 \end_layout
878
879 \begin_layout Section
880 LyX and the LaTeX Preamble
881 \end_layout
882
883 \begin_layout Subsection
884 About the LaTeX Preamble
885 \end_layout
886
887 \begin_layout Standard
888 \begin_inset LatexCommand \label{sec:preamble}
889
890 \end_inset
891
892 If you already know LaTeX, there is no need to explain here what the preamble
893  is good for.
894  If you don't, the following will give you some ideas --- we recommend again
895  that you consult a LaTeX book for further information.
896  In any case, you should read the points below, because they explain what
897  you can do and what you don't need to do in the LaTeX preamble of a LyX
898  document.
899 \end_layout
900
901 \begin_layout Standard
902 The LaTeX preamble comes at the very beginning of a document, 
903 \emph on
904 before 
905 \emph default
906 the text.
907  It serves to:
908 \end_layout
909
910 \begin_layout Itemize
911 declare the document class.
912  LyX already does this for you.
913 \end_layout
914
915 \begin_deeper
916 \begin_layout Standard
917 If you're a seasoned LaTeX-nician, and you have some custom document class
918  you want to use, check out the 
919 \emph on
920 Customization Manual
921 \emph default
922  for information on how to make LyX interface to it.
923  Be sure to submit your efforts to the LyX Team for inclusion in future
924  versions!
925 \end_layout
926
927 \end_deeper
928 \begin_layout Itemize
929 declare the usage of packages.
930  LaTeX packages provide special commands, which are only available within
931  a document when the package has been declared in the preamble.
932  For example, the
933 \family typewriter
934  
935 \family default
936 package 
937 \family typewriter
938 indentfirst
939 \family default
940  forces all paragraphs to be indented.
941  There are other packages for labels, envelopes, margins, etc.
942  
943 \end_layout
944
945 \begin_layout Itemize
946 set counters, variables, lengths and widths.
947  There are several LaTeX counters and variables which 
948 \emph on
949 must
950 \emph default
951  be set globally from within the preamble in order to have the desired effect.
952  [There are other variables which you can set and reset inside the document,
953  too.] Margins are a good example of something which must be set in the preamble.
954  Another example is the label format for lists.
955  You can actually set these just about anywhere, but it's best to do it
956  just once, inside the preamble.
957 \end_layout
958
959 \begin_layout Itemize
960 declare user defined commands [with 
961 \family typewriter
962
963 \backslash
964 newcommand 
965 \family default
966 or 
967 \family typewriter
968
969 \backslash
970 renewcommand
971 \family default
972 ], mostly abbreviations for LaTeX commands which appear very often inside
973  a document.
974  Although the preamble is a good place to declare such commands, they 
975 \emph on
976 can
977 \emph default
978  be declared anywhere else [but 
979 \emph on
980 before
981 \emph default
982  they are used for the first time, of course\SpecialChar \ldots{}
983 ].
984  This can be useful if there is a lot of raw LaTeX code in your document,
985  which normally should not be the case.
986 \end_layout
987
988 \begin_layout Standard
989 LyX adds its own set of definitions to the preamble of the 
990 \family typewriter
991 .tex
992 \family default
993  file it produces.
994  This makes LaTeX files generated by LyX portable.
995 \end_layout
996
997 \begin_layout Subsection
998 Changing the Preamble
999 \end_layout
1000
1001 \begin_layout Standard
1002 The commands which LyX adds to the preamble of a LaTeX file are fixed; you
1003  can't change them without patching LyX itself.
1004  You can, however, add your own stuff to the preamble.
1005  There are two ways to do this:
1006 \end_layout
1007
1008 \begin_layout Enumerate
1009 Select 
1010 \family sans
1011 \bar under
1012 L
1013 \bar default
1014 aTeX\InsetSpace ~
1015
1016 \bar under
1017 P
1018 \bar default
1019 reamble
1020 \family default
1021  from the 
1022 \family sans
1023 \bar under
1024 D
1025 \bar default
1026 ocument
1027 \family default
1028  menu, or via the 
1029 \family sans
1030 \bar under
1031 D
1032 \bar default
1033 ocument
1034 \family default
1035 \SpecialChar \menuseparator
1036
1037 \family sans
1038 \bar under
1039 S
1040 \bar default
1041 ettings
1042 \family default
1043  dialog, depending on your frontend.
1044  Note that the LyX keybindings will not work in this dialog, alas.
1045 \end_layout
1046
1047 \begin_layout Enumerate
1048 Use the preamble contents you've added as your default template (see 
1049 \begin_inset Quotes eld
1050 \end_inset
1051
1052 Basic LyX Setup
1053 \begin_inset Quotes erd
1054 \end_inset
1055
1056  in the 
1057 \emph on
1058 User's Guide
1059 \emph default
1060 ), so that it will be the default preamble for any file you create.
1061 \end_layout
1062
1063 \begin_layout Standard
1064 LyX adds anything in the 
1065 \family sans
1066 \bar under
1067 P
1068 \bar default
1069 reamble
1070 \family default
1071  dialog to its own built-in preamble.
1072  Before adding your own declarations in the preamble, you should make sure
1073  that LyX doesn't already support what you want to do (remember what we
1074  said about reinventing the wheel?).
1075  Also, 
1076 \emph on
1077 make sure your preamble code is correct
1078 \emph default
1079 .
1080  LyX doesn't check it.
1081 \end_layout
1082
1083 \begin_layout Subsection
1084 Examples
1085 \end_layout
1086
1087 \begin_layout Standard
1088 Here are some examples of what you can add to a preamble, and what they
1089  do:
1090 \end_layout
1091
1092 \begin_layout Subsubsection
1093 Example #1: Offsets
1094 \end_layout
1095
1096 \begin_layout Standard
1097 There are two variables under LaTeX that control page position: 
1098 \family typewriter
1099
1100 \backslash
1101 hoffset
1102 \family default
1103  and 
1104 \family typewriter
1105
1106 \backslash
1107 voffset
1108 \family default
1109 .
1110  Their names should be self-explanatory.
1111  These variables are useful if you think for a moment about computer labels.
1112  Sometimes, the size of a print medium and the area of the medium that you
1113  can actually print on aren't the same.
1114  This is where 
1115 \family typewriter
1116
1117 \backslash
1118 hoffset
1119 \family default
1120  and 
1121 \family typewriter
1122
1123 \backslash
1124 voffset
1125 \family default
1126  come in.
1127 \end_layout
1128
1129 \begin_layout Standard
1130 The default values for 
1131 \family typewriter
1132
1133 \backslash
1134 hoffset
1135 \family default
1136  and 
1137 \family typewriter
1138
1139 \backslash
1140 voffset
1141 \family default
1142  are both 0 pt.,\InsetSpace ~
1143 i.\InsetSpace ~
1144 e.\InsetSpace ~
1145 the page isn't shifted.
1146 \end_layout
1147
1148 \begin_layout Standard
1149 Unfortunately, some DVI drivers always seem to shift the page.
1150  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1151  If you're using LyX on a system that you don't personally maintain, and
1152  your sysadmin is a doofus, 
1153 \family typewriter
1154
1155 \backslash
1156 hoffset
1157 \family default
1158  and 
1159 \family typewriter
1160
1161 \backslash
1162 voffset
1163 \family default
1164  can save the day.
1165  Suppose you're left and top margins are always 0.5 inches too big.
1166  You can add this to the preamble:
1167 \end_layout
1168
1169 \begin_layout LyX-Code
1170
1171 \backslash
1172 setlength{
1173 \backslash
1174 hoffset}{-0.5 in}
1175 \end_layout
1176
1177 \begin_layout LyX-Code
1178
1179 \backslash
1180 setlength{
1181 \backslash
1182 voffset}{-0.5 in}
1183 \end_layout
1184
1185 \begin_layout Standard
1186 \SpecialChar \ldots{}
1187 and your margins should now be correct.
1188 \end_layout
1189
1190 \begin_layout Subsubsection
1191 Example #2: Labels
1192 \end_layout
1193
1194 \begin_layout Standard
1195 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1196  There's a rather nice package, available at your nearest CTAN archive,
1197  for printing sheets of labels, called 
1198 \family typewriter
1199 labels.sty
1200 \family default
1201 .
1202  Now, your system may not have this package installed by default.
1203  We leave that up to you to check.
1204  You'll also want to read the documentation for it; we're not going to do
1205  that for you.
1206  Since this is an example, however, we'll give you an example of how you
1207  use this package.
1208 \end_layout
1209
1210 \begin_layout Standard
1211 First, make sure you're using the 
1212 \family sans
1213 article 
1214 \family default
1215 document class.
1216  Next, you need to put the following in your preamble:
1217 \end_layout
1218
1219 \begin_layout LyX-Code
1220
1221 \backslash
1222 usepackage{labels}
1223 \end_layout
1224
1225 \begin_layout LyX-Code
1226
1227 \backslash
1228 LabelCols=3
1229 \end_layout
1230
1231 \begin_layout LyX-Code
1232
1233 \backslash
1234 LabelRows=7
1235 \end_layout
1236
1237 \begin_layout LyX-Code
1238
1239 \backslash
1240 LeftBorder=8mm
1241 \end_layout
1242
1243 \begin_layout LyX-Code
1244
1245 \backslash
1246 RightBorder=8mm
1247 \end_layout
1248
1249 \begin_layout LyX-Code
1250
1251 \backslash
1252 TopBorder=9mm
1253 \end_layout
1254
1255 \begin_layout LyX-Code
1256
1257 \backslash
1258 BottomBorder=2mm
1259 \end_layout
1260
1261 \begin_layout Standard
1262 This sets things up for Avery® label sheets, stock #5360.
1263  You're now ready to print labels, but you'll need to insert LaTeX code,
1264  placing the commands 
1265 \family typewriter
1266
1267 \backslash
1268 begin{labels}
1269 \family default
1270  and 
1271 \family typewriter
1272
1273 \backslash
1274 end{labels}
1275 \family default
1276  around each label text.
1277  This and other special features of 
1278 \family typewriter
1279 labels.sty
1280 \family default
1281  are explained in its documentation.
1282 \end_layout
1283
1284 \begin_layout Standard
1285 Someday, someone may write a LyX layout file to support this package directly.
1286  Maybe that someone is you.
1287 \end_layout
1288
1289 \begin_layout Subsubsection
1290 Example #3: Paragraph Indentation
1291 \end_layout
1292
1293 \begin_layout Standard
1294 Americans are trained to indent the first line of 
1295 \emph on
1296 every
1297 \emph default
1298  paragraph.
1299  As with all of their other weird quirks, most Americans will whine and
1300  moan until they can have their way and indent the first line of all paragraphs.
1301 \begin_inset Foot
1302 status collapsed
1303
1304 \begin_layout Standard
1305 Note from 
1306 \noun on
1307 John Weiss
1308 \noun default
1309 : This was written by an American --- 
1310 \emph on
1311 me
1312 \emph default
1313 ! It's my perception of my fellow countrymen.
1314  Tough if you don't like it.
1315  Thpbpbpbpbpbpbpbp!
1316 \end_layout
1317
1318 \end_inset
1319
1320
1321 \end_layout
1322
1323 \begin_layout Standard
1324 Of course, this behavior isn't standard typography.
1325  In books, you typically only indent the first line of a paragraph 
1326 \emph on
1327 if
1328 \emph default
1329  it follows another one.
1330  The idea behind indenting the first line of a paragraph is to distinguish
1331  neighboring paragraphs from one another.
1332  If there is no previous paragraph, for example, it follows a figure, or
1333  is the first paragraph in a section, then there is no special indentation.
1334  
1335 \end_layout
1336
1337 \begin_layout Standard
1338 If you're a typical American, though, you don't care about such esoteric
1339  things; you want your indentation! Add this to the preamble:
1340 \end_layout
1341
1342 \begin_layout LyX-Code
1343
1344 \backslash
1345 usepackage{indentfirst}
1346 \end_layout
1347
1348 \begin_layout Standard
1349 If your TeX distribution isn't a braindead one, you'll have this package,
1350  and all of your paragraphs will get the indentation you think they deserve.
1351 \end_layout
1352
1353 \begin_layout Subsubsection
1354 Example #4: This Document
1355 \end_layout
1356
1357 \begin_layout Standard
1358 You can also check out the preamble of this document to get an idea of some
1359  of the advanced things you can do.
1360  You'll probably need to make the 
1361 \family sans
1362 \bar under
1363 P
1364 \bar default
1365 reamble\SpecialChar \ldots{}
1366
1367 \family default
1368  dialog full-screen to see most of it.
1369  Also, there are more examples and an assortment of LaTeX 
1370 \begin_inset Quotes eld
1371 \end_inset
1372
1373 dirty tricks
1374 \begin_inset Quotes erd
1375 \end_inset
1376
1377  given in Chapter\InsetSpace ~
1378
1379 \begin_inset LatexCommand \ref{cha:secrets}
1380
1381 \end_inset
1382
1383 .
1384  
1385 \end_layout
1386
1387 \begin_layout Section
1388 LyX and LaTeX Errors
1389 \end_layout
1390
1391 \begin_layout Standard
1392 When LyX calls LaTeX, it tells LaTeX to blithely ignore any errors and keep
1393  going.
1394  It then uses the log-file from the LaTeX run to do a post-mortem.
1395  As we stated earlier in the chapter, LyX generates two kinds of 
1396 \family typewriter
1397 .tex
1398 \family default
1399  files, one of which it uses to locate errors in the document.
1400  If there was an error someplace, LyX will put a box with the word 
1401 \begin_inset Quotes eld
1402 \end_inset
1403
1404 Error
1405 \begin_inset Quotes erd
1406 \end_inset
1407
1408  at the appropriate place in the document.
1409 \begin_inset Foot
1410 status collapsed
1411
1412 \begin_layout Standard
1413 LyX will occasionally misguess where the error was.
1414  This will typically happen with tables, figures, math, and the preamble.
1415 \end_layout
1416
1417 \end_inset
1418
1419  It will also display a message alerting you to the fact that there were
1420  errors.
1421 \end_layout
1422
1423 \begin_layout Standard
1424 You can navigate through the errors by using 
1425 \family sans
1426 \bar under
1427 E
1428 \bar default
1429 rror
1430 \family default
1431  in the 
1432 \family sans
1433 \bar under
1434 N
1435 \bar default
1436 avigate
1437 \family default
1438  menu.
1439  You can 
1440 \begin_inset Quotes eld
1441 \end_inset
1442
1443 open
1444 \begin_inset Quotes erd
1445 \end_inset
1446
1447  the error-boxes and view the error message LaTeX produced by clicking on
1448  it.
1449 \end_layout
1450
1451 \begin_layout Standard
1452 Some folks also like to look at the log file directly, accessible from
1453 \family sans
1454  
1455 \bar under
1456 D
1457 \bar default
1458 ocument\SpecialChar \menuseparator
1459
1460 \bar under
1461 L
1462 \bar default
1463 aTeX\InsetSpace ~
1464 Log\InsetSpace ~
1465 File
1466 \family default
1467 .
1468  There are some fairly common error messages and warnings.
1469  We'll cover those here.
1470  You should look at a good LaTeX book for a complete listing.
1471 \end_layout
1472
1473 \begin_layout Itemize
1474 \begin_inset Quotes eld
1475 \end_inset
1476
1477
1478 \family typewriter
1479 LaTeX Warning:
1480 \family default
1481
1482 \begin_inset Quotes eld
1483 \end_inset
1484
1485
1486 \end_layout
1487
1488 \begin_deeper
1489 \begin_layout Standard
1490 Anything beginning with these word is a warning message for the purpose
1491  of 
1492 \begin_inset Quotes eld
1493 \end_inset
1494
1495 debugging
1496 \begin_inset Quotes erd
1497 \end_inset
1498
1499  the LaTeX code itself.
1500  You'll get messages like this if you added or changed cross-references
1501  or bibliography entries, in which case, LaTeX is trying to tell you that
1502  you need to make another run.
1503 \end_layout
1504
1505 \begin_layout Standard
1506 You can by-and-large ignore these.
1507 \end_layout
1508
1509 \end_deeper
1510 \begin_layout Itemize
1511 \begin_inset Quotes eld
1512 \end_inset
1513
1514
1515 \family typewriter
1516 LaTeX Font Warning:
1517 \family default
1518
1519 \begin_inset Quotes erd
1520 \end_inset
1521
1522
1523 \end_layout
1524
1525 \begin_deeper
1526 \begin_layout Standard
1527 Another warning message, this time about fonts which LaTeX couldn't find.
1528  The rest of the message will often say something about a replacement font
1529  that LaTeX used.
1530 \end_layout
1531
1532 \begin_layout Standard
1533 You can safely ignore these.
1534 \end_layout
1535
1536 \end_deeper
1537 \begin_layout Itemize
1538 \begin_inset Quotes eld
1539 \end_inset
1540
1541
1542 \family typewriter
1543 Overfull 
1544 \backslash
1545 hbox
1546 \family default
1547
1548 \begin_inset Quotes erd
1549 \end_inset
1550
1551
1552 \end_layout
1553
1554 \begin_deeper
1555 \begin_layout Standard
1556 LaTeX absolutely 
1557 \emph on
1558 loves
1559 \emph default
1560  to spew these out.
1561  They are warning you about lines that were too long and run past the right
1562  margin.
1563  Almost always, this is unnoticeable in the final output.
1564  Or, only one or two characters extend past the margin.
1565  LaTeX seems to generate at least one of these messages for just about any
1566  document you write.
1567 \end_layout
1568
1569 \begin_layout Standard
1570 You can ignore these stupid messages.
1571  Your eyes will tell you if there's a problem with something that's too
1572  wide; just look at the output.
1573 \end_layout
1574
1575 \end_deeper
1576 \begin_layout Itemize
1577 \begin_inset Quotes eld
1578 \end_inset
1579
1580
1581 \family typewriter
1582 Underfull 
1583 \backslash
1584 hbox
1585 \family default
1586
1587 \begin_inset Quotes erd
1588 \end_inset
1589
1590
1591 \end_layout
1592
1593 \begin_deeper
1594 \begin_layout Standard
1595 Not quite as common as its cousin.
1596  LaTeX seems to like to print lines that are a bit too wide as opposed to
1597  ones that are a bit too narrow.
1598  We have no idea why.
1599 \end_layout
1600
1601 \begin_layout Standard
1602 You can ignore these, too.
1603 \end_layout
1604
1605 \end_deeper
1606 \begin_layout Itemize
1607 \begin_inset Quotes eld
1608 \end_inset
1609
1610
1611 \family typewriter
1612 Overfull 
1613 \backslash
1614 vbox
1615 \family default
1616
1617 \begin_inset Quotes erd
1618 \end_inset
1619
1620  and 
1621 \begin_inset Quotes eld
1622 \end_inset
1623
1624
1625 \family typewriter
1626 Underfull 
1627 \backslash
1628 vbox
1629 \family default
1630
1631 \begin_inset Quotes erd
1632 \end_inset
1633
1634
1635 \end_layout
1636
1637 \begin_deeper
1638 \begin_layout Standard
1639 Warnings about troubles breaking the page.
1640  Once again, just look at the output.
1641  Your eyes will tell you where something has gone wrong.
1642 \end_layout
1643
1644 \end_deeper
1645 \begin_layout Itemize
1646 \begin_inset Quotes eld
1647 \end_inset
1648
1649  
1650 \family typewriter
1651 LaTeX Error: File 
1652 \begin_inset Quotes els
1653 \end_inset
1654
1655 Xxxx
1656 \begin_inset Quotes ers
1657 \end_inset
1658
1659  not found
1660 \family default
1661
1662 \begin_inset Quotes erd
1663 \end_inset
1664
1665  
1666 \end_layout
1667
1668 \begin_deeper
1669 \begin_layout Standard
1670 The file 
1671 \begin_inset Quotes eld
1672 \end_inset
1673
1674 Xxxx
1675 \begin_inset Quotes erd
1676 \end_inset
1677
1678  isn't installed on this system.
1679  This usually appears because some package your document needs isn't installed.
1680  If you didn't touch the preamble or didn't use the 
1681 \family typewriter
1682
1683 \backslash
1684 usepackage{}
1685 \family default
1686  command, then one of the packages LyX tried to load is missing.
1687  Use 
1688 \family sans
1689 \bar under
1690 H
1691 \bar default
1692 elp\SpecialChar \menuseparator
1693 L
1694 \bar under
1695 a
1696 \bar default
1697 TeX Configuration
1698 \family default
1699 , to get a list of packages that LyX knows about.
1700  This file is updated whenever you reconfigure LyX (using 
1701 \family sans
1702 \bar under
1703 T
1704 \bar default
1705 ools
1706 \bar under
1707 \SpecialChar \menuseparator
1708 R
1709 \bar default
1710 econfigure
1711 \family default
1712 ) and tells you which packages have been detected and what they do.
1713 \end_layout
1714
1715 \begin_layout Standard
1716 If you 
1717 \emph on
1718 did
1719 \emph default
1720  use the 
1721 \family typewriter
1722
1723 \backslash
1724 usepackage{}
1725 \family default
1726  command, and the package in question isn't installed, you'll need to install
1727  it yourself.
1728 \end_layout
1729
1730 \end_deeper
1731 \begin_layout Itemize
1732 \begin_inset Quotes eld
1733 \end_inset
1734
1735
1736 \family typewriter
1737 LaTeX Error: Unknown option
1738 \family default
1739
1740 \begin_inset Quotes erd
1741 \end_inset
1742
1743
1744 \end_layout
1745
1746 \begin_deeper
1747 \begin_layout Standard
1748 Error messages beginning with this are trying to tell you that you specified
1749  a bad or undefined option to a package.
1750  Check the package's documentation.
1751 \end_layout
1752
1753 \end_deeper
1754 \begin_layout Itemize
1755 \begin_inset Quotes eld
1756 \end_inset
1757
1758
1759 \family typewriter
1760 Undefined control sequence
1761 \family default
1762
1763 \begin_inset Quotes erd
1764 \end_inset
1765
1766
1767 \end_layout
1768
1769 \begin_deeper
1770 \begin_layout Standard
1771 If you've inserted LaTeX code into your document, but made a typo, you'll
1772  get one of these.
1773  You may have forgotten to load a package.
1774  In any case, this error message usually means that you used an undefined
1775  command.
1776 \end_layout
1777
1778 \end_deeper
1779 \begin_layout Standard
1780 There are other error and warning messages.
1781  Some are self-explanatory.
1782  These are usually LaTeX messages.
1783  Others are downright cryptic.
1784  These are actually TeX error messages, and we really have 
1785 \emph on
1786 no clue
1787 \emph default
1788  what they mean or how to decipher them.
1789 \end_layout
1790
1791 \begin_layout Standard
1792 There's a general sequence you should follow if you get error messages:
1793 \end_layout
1794
1795 \begin_layout Enumerate
1796 Look at the LaTeX code you inserted for typos.
1797 \end_layout
1798
1799 \begin_layout Enumerate
1800 If there are no typos, check and see that you used the command(s) correctly.
1801 \end_layout
1802
1803 \begin_layout Enumerate
1804 If you get a bunch of error boxes piled up at the very top of the document,
1805  it means that there are errors in the preamble.
1806  Start debugging your preamble.
1807 \end_layout
1808
1809 \begin_layout Enumerate
1810 If you didn't add anything to the preamble and didn't add any LaTeX code
1811  to the document, the first suspect is your LaTeX distribution itself.
1812  Check for missing packages and install them.
1813 \end_layout
1814
1815 \begin_layout Enumerate
1816 Okay, so there are no missing packages.
1817  Did you use any of the fine-tuning options in LyX? Specifically, did you
1818  
1819 \emph on
1820 misuse
1821 \emph default
1822  any of them, like trying to manually insert lots of 
1823 \family sans
1824 Protected\InsetSpace ~
1825 Blank
1826 \family default
1827 s, 
1828 \family sans
1829 Linebreak
1830 \family default
1831 s, or 
1832 \family sans
1833 Pagebreak
1834 \family default
1835 s? Did you try to kludge something together with these instead of using
1836  the appropriate paragraph environment?
1837 \end_layout
1838
1839 \begin_layout Enumerate
1840 All right, you didn't use any of the fine-tuning options, you played by
1841  the rules.
1842  Did you try to pull a fancy maneuver? Did you do something funky inside
1843  a table or an equation, like inserting a graphic into a table cell?
1844 \end_layout
1845
1846 \begin_layout Enumerate
1847 Do you have long sections of text where LaTeX cannot find a place to break
1848  a line? By default, LaTeX is rather strict about how much extra inter-word
1849  spacing it will add in order to break a line.
1850  Preferrably, you should rework the paragraph to avoid the problem.
1851  If this isn't an option, you can wrap your text in 
1852 \family typewriter
1853
1854 \backslash
1855 sloppypar
1856 \family default
1857  to make LaTeX's line breaking more, well, sloppy.
1858 \end_layout
1859
1860 \begin_layout Enumerate
1861 Did you go overboard with the nesting? LyX (currently) doesn't check to
1862  make sure you're in the limits for nesting environments.
1863  If you nested a bunch of environments to the 
1864 \begin_inset Formula $17^{\mathrm{th}}$
1865 \end_inset
1866
1867  level, that's the problem.
1868 \end_layout
1869
1870 \begin_layout Enumerate
1871 Okay, you didn't get any error messages, but your output looks whacked.
1872  If you have a table or figure that's too wide or long for the page, you
1873  need to:
1874 \end_layout
1875
1876 \begin_deeper
1877 \begin_layout Enumerate
1878 rescale the figure so it fits.
1879 \end_layout
1880
1881 \begin_layout Enumerate
1882 trim down the table so it fits.
1883 \end_layout
1884
1885 \begin_layout Standard
1886 If something else is wrong with the output, and you didn't try to pull anything
1887  fancy or kludge the fine-tuning options, we're not sure what's wrong.
1888 \end_layout
1889
1890 \end_deeper
1891 \begin_layout Standard
1892 If all this doesn't help --- well, then 
1893 \emph on
1894 perhaps
1895 \emph default
1896  you might have found a bug in LyX\SpecialChar \ldots{}
1897
1898 \end_layout
1899
1900 \begin_layout Chapter
1901 Supplemental Tools
1902 \end_layout
1903
1904 \begin_layout Section
1905 Preparing a Bibliography with BibTeX
1906 \begin_inset LatexCommand \label{sec:Preparing-a-Bibliography}
1907
1908 \end_inset
1909
1910
1911 \end_layout
1912
1913 \begin_layout Standard
1914 by 
1915 \noun on
1916 Mike Ressler
1917 \noun default
1918  and 
1919 \noun on
1920 Jürgen Spitzmüller
1921 \end_layout
1922
1923 \begin_layout Standard
1924 \begin_inset VSpace bigskip
1925 \end_inset
1926
1927
1928 \end_layout
1929
1930 \begin_layout Standard
1931 \noindent
1932 STOP! If you don't know what BibTeX is, or have a reasonably good idea of
1933  how to use it (
1934 \emph on
1935 e.g.
1936
1937 \emph default
1938  setting up your own bibliographic databases), 
1939 \emph on
1940 run
1941 \emph default
1942 , do not walk, to your nearest copy of the 2nd edition of Lamport's 
1943 \emph on
1944 LaTeX: A Document Preparation System
1945 \emph default
1946 , particularly Appendix B.
1947  The rest of this discussion assumes you have created a correct bibliography
1948  file, that you have all relevant environment variables set correctly (esp.
1949  
1950 \family typewriter
1951 BIBINPUTS
1952 \family default
1953
1954 \family typewriter
1955 BSTINPUTS
1956 \family default
1957 , and 
1958 \family typewriter
1959 TEXINPUTS
1960 \family default
1961 ), and that if sufficiently desperate, you could create and 
1962 \begin_inset Quotes eld
1963 \end_inset
1964
1965 TeX
1966 \begin_inset Quotes erd
1967 \end_inset
1968
1969  a LaTeX file with a BibTeX database.
1970  
1971 \end_layout
1972
1973 \begin_layout Standard
1974 For those who don't know what BibTeX is, it is a system for creating a large
1975  database of your most used journal references.
1976  For all future articles you write, you only need to include this standard
1977  database and reference the appropriate key to each reference.
1978  Even if you write only a few papers with handful of references each, it
1979  is well worth your time to examine BibTeX and decide whether it will be
1980  useful to you.
1981 \end_layout
1982
1983 \begin_layout Standard
1984 To use BibTeX with LyX, first read the 
1985 \emph on
1986 User Guide
1987 \emph default
1988  where it describes how to insert citations.
1989  The basic mechanism for inserting BibTeX references is the same.
1990  Then, at the very end of your document, select 
1991 \family sans
1992 Insert\SpecialChar \menuseparator
1993 List
1994 \family default
1995  / 
1996 \family sans
1997 TOC\SpecialChar \menuseparator
1998 BibTeX Reference
1999 \family default
2000 .
2001  In the resulting dialog, fill out the dialog boxes as follows: 
2002 \end_layout
2003
2004 \begin_layout Description
2005 Database: enter the name of your 
2006 \family typewriter
2007 .bib
2008 \family default
2009  file 
2010 \emph on
2011 without
2012 \emph default
2013  the 
2014 \family typewriter
2015 .bib
2016 \family default
2017  extension.
2018  For searching multiple 
2019 \family typewriter
2020 .bib
2021 \family default
2022  files, just enter them in the desired order, separated by commas.
2023  
2024 \end_layout
2025
2026 \begin_layout Description
2027 Style: enter the name of your BibTeX style file *without* the 
2028 \family typewriter
2029 .bst
2030 \family default
2031  extension.
2032  The default style is 
2033 \family typewriter
2034 plain
2035 \family default
2036  (which should be included in your LaTeX distribution, so you don't have
2037  to worry about creating it).
2038 \end_layout
2039
2040 \begin_layout Standard
2041 For each citation, assuming that the source is in the 
2042 \family typewriter
2043 .bib
2044 \family default
2045  file, just call 
2046 \family sans
2047 \bar under
2048 I
2049 \bar default
2050 nsert\SpecialChar \menuseparator
2051
2052 \bar under
2053 C
2054 \bar default
2055 itation Reference
2056 \family default
2057  at the correct location in the text, and enter the appropriate reference
2058  key.
2059  Nothing else is required; when invoking 
2060 \family sans
2061 \bar under
2062 V
2063 \bar default
2064 iew\SpecialChar \menuseparator
2065
2066 \bar under
2067 D
2068 \bar default
2069 VI
2070 \family default
2071 , for example, you should see that BibTex and LaTeX are invoked as needed,
2072  including multiple invocations of LaTeX.
2073  
2074 \end_layout
2075
2076 \begin_layout Subsection
2077 Alternative Citation Styles
2078 \end_layout
2079
2080 \begin_layout Standard
2081 Standard BibTeX uses numbers (e.\InsetSpace \,
2082 g.\InsetSpace \space
2083
2084 \begin_inset Quotes eld
2085 \end_inset
2086
2087 [12]
2088 \begin_inset Quotes erd
2089 \end_inset
2090
2091 ) to refer to a cited work.
2092  However, in many scientific disciplines, other citation styles are in use.
2093  The most common one is the author-year style (e.\InsetSpace \,
2094 g.\InsetSpace \space
2095
2096 \begin_inset Quotes eld
2097 \end_inset
2098
2099 Knuth 1984a
2100 \begin_inset Quotes erd
2101 \end_inset
2102
2103 ).
2104  LyX supports two packages that provide this style, 
2105 \family typewriter
2106 natbib
2107 \family default
2108  and 
2109 \family typewriter
2110 jurabib
2111 \family default
2112 .
2113  Both packages have their own pros and cons, which cannot be listed in detail.
2114  If you only want to have simple author-year (or author-numerical) style
2115  or if you want to use one of the countless style files for natbib, than
2116  the established 
2117 \family typewriter
2118 natbib
2119 \family default
2120  package is probably your choice.
2121  If you need special features like short title references, ibidem etc., you
2122  might consider the fairly new 
2123 \family typewriter
2124 jurabib
2125 \family default
2126  package.
2127 \end_layout
2128
2129 \begin_layout Standard
2130 The handling of both packages in LyX is basically the same.
2131  Go to 
2132 \family sans
2133 \bar under
2134 D
2135 \bar default
2136 ocument\SpecialChar \menuseparator
2137
2138 \bar under
2139 S
2140 \bar default
2141 ettings 
2142 \family default
2143 and select the 
2144 \family sans
2145 Bibliography
2146 \family default
2147  pane (with the xforms frontend: the 
2148 \family sans
2149 Extras
2150 \family default
2151  tab).
2152  Then select 
2153 \family sans
2154 Natbib
2155 \family default
2156  or 
2157 \family sans
2158 Jurabib
2159 \family default
2160 .
2161  With both packages, you will get some extra features in the citation dialog
2162  and you can select the style of the reference (
2163 \begin_inset Quotes eld
2164 \end_inset
2165
2166 Knuth 1984
2167 \begin_inset Quotes erd
2168 \end_inset
2169
2170
2171 \begin_inset Quotes eld
2172 \end_inset
2173
2174 Knuth (1984)
2175 \begin_inset Quotes erd
2176 \end_inset
2177
2178
2179 \begin_inset Quotes eld
2180 \end_inset
2181
2182 Knuth, 1984
2183 \begin_inset Quotes erd
2184 \end_inset
2185
2186
2187 \begin_inset Quotes eld
2188 \end_inset
2189
2190 1984
2191 \begin_inset Quotes erd
2192 \end_inset
2193
2194  etc.).
2195  Note that both packages need specifically designed style files (they both
2196  ship their own, while there are lots of additional style files and even
2197  an interactive style file builder
2198 \begin_inset Foot
2199 status collapsed
2200
2201 \begin_layout Standard
2202 See 
2203 \begin_inset LatexCommand \url{ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/}
2204
2205 \end_inset
2206
2207
2208 \end_layout
2209
2210 \end_inset
2211
2212  for 
2213 \family typewriter
2214 natbib
2215 \family default
2216  available).
2217 \end_layout
2218
2219 \begin_layout Subsection
2220 Sectionated Bibliographies
2221 \begin_inset LatexCommand \label{sub:Sectionated-Bibliographies}
2222
2223 \end_inset
2224
2225
2226 \end_layout
2227
2228 \begin_layout Standard
2229 Sometimes you might need to divide your bibliography into several sections.
2230  If you are, for instance, a historian, the possibility to separate sources
2231  and scientific works is most likely a 
2232 \begin_inset Quotes eld
2233 \end_inset
2234
2235 must have
2236 \begin_inset Quotes erd
2237 \end_inset
2238
2239 .
2240  Unfortunately, BibTeX itself does not allow you to do this.
2241  The good news is, though: With the help of some LaTeX packages, BibTeX
2242  can be extended to fit your historical needs.
2243 \end_layout
2244
2245 \begin_layout Standard
2246 As of version 1.4, LyX provides native support for one of these packages,
2247  Stefan Ulrich's 
2248 \family typewriter
2249 bibtopic
2250 \family default
2251 .
2252 \begin_inset Foot
2253 status collapsed
2254
2255 \begin_layout Standard
2256 Available from 
2257 \begin_inset LatexCommand \url{ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/}
2258
2259 \end_inset
2260
2261
2262 \end_layout
2263
2264 \end_inset
2265
2266  The advantage of this package (compared to other packages like 
2267 \family typewriter
2268 multibib
2269 \family default
2270 ) is that you don't need to define new citation commands.
2271  Instead, you need to prepare different bibliographic databases which include
2272  the entries for the different sections of the bibliography.
2273  For example: If you want to divide your bibliography into the sections
2274  
2275 \begin_inset Quotes eld
2276 \end_inset
2277
2278 Sources
2279 \begin_inset Quotes erd
2280 \end_inset
2281
2282  and 
2283 \begin_inset Quotes eld
2284 \end_inset
2285
2286 Scientific works
2287 \begin_inset Quotes erd
2288 \end_inset
2289
2290 , you first need to create two bibliographic databases, e.\InsetSpace \,
2291 g.\InsetSpace \space
2292
2293 \family typewriter
2294 sources.bib
2295 \family default
2296  and 
2297 \family typewriter
2298 scientific.bib
2299 \family default
2300 .
2301  
2302 \end_layout
2303
2304 \begin_layout Standard
2305 In LyX, go to 
2306 \family sans
2307 \bar under
2308 D
2309 \bar default
2310 ocument\SpecialChar \menuseparator
2311
2312 \bar under
2313 S
2314 \bar default
2315 ettings 
2316 \family default
2317 and select the 
2318 \family sans
2319 Bibliography
2320 \family default
2321  pane (with the xforms frontend: the 
2322 \family sans
2323 Extras
2324 \family default
2325  tab).
2326  Check 
2327 \family sans
2328 Sectionated\InsetSpace ~
2329 bibliography
2330 \family default
2331 .
2332  Now you can insert multiple BibTeX references (as described in section\InsetSpace ~
2333
2334 \begin_inset LatexCommand \ref{sec:Preparing-a-Bibliography}
2335
2336 \end_inset
2337
2338 ), one for each section of your bibliography.
2339  Returning to our example: Insert a BibTeX reference for the database 
2340 \family typewriter
2341 sources.bib
2342 \family default
2343  and a second one for the database 
2344 \family typewriter
2345 scientific.bib
2346 \family default
2347 .
2348  You are free to use the same or different styles for each section.
2349  Additionally, you can chose if the bibliography section should contain
2350  
2351 \begin_inset Quotes eld
2352 \end_inset
2353
2354 all cited references
2355 \begin_inset Quotes erd
2356 \end_inset
2357
2358  of the specified database(s) (which is the default), 
2359 \begin_inset Quotes eld
2360 \end_inset
2361
2362 all uncited references
2363 \begin_inset Quotes erd
2364 \end_inset
2365
2366  or even 
2367 \begin_inset Quotes eld
2368 \end_inset
2369
2370 all references
2371 \begin_inset Quotes erd
2372 \end_inset
2373
2374 .
2375  This might be useful if you would like to separate your bibliography into
2376  three sections: 
2377 \begin_inset Quotes eld
2378 \end_inset
2379
2380 Cited sources
2381 \begin_inset Quotes erd
2382 \end_inset
2383
2384
2385 \begin_inset Quotes eld
2386 \end_inset
2387
2388 Uncited sources
2389 \begin_inset Quotes erd
2390 \end_inset
2391
2392 , and 
2393 \begin_inset Quotes eld
2394 \end_inset
2395
2396 Scientific works
2397 \begin_inset Quotes erd
2398 \end_inset
2399
2400 .
2401  The titles for the sections can be added as ordinary sections or subsections.
2402  Since 
2403 \family typewriter
2404 bibtopic
2405 \family default
2406  removes the bibliography title, you have manually re-add that, too (as
2407  a chapter* or section*, for instance).
2408 \end_layout
2409
2410 \begin_layout Subsection
2411 Multiple Bibliographies
2412 \end_layout
2413
2414 \begin_layout Standard
2415 Multiple bibliographies, e.\InsetSpace \,
2416 g.\InsetSpace \space
2417 a bibliography for each section or chapter of
2418  the document, are not supported by BibTeX itself.
2419  But the 
2420 \family typewriter
2421 bibtopic
2422 \family default
2423  package, which is used for the creation of sectionated bibliographies in
2424  LyX (cf.\InsetSpace ~
2425 section\InsetSpace ~
2426
2427 \begin_inset LatexCommand \ref{sub:Sectionated-Bibliographies}
2428
2429 \end_inset
2430
2431 ), provides an easy way to solve this task, if you are willing to use some
2432  LaTeX-Code (ERT, cf.\InsetSpace ~
2433 section\InsetSpace ~
2434
2435 \begin_inset LatexCommand \ref{sec:Inserting-LaTeX-Code}
2436
2437 \end_inset
2438
2439 ).
2440 \begin_inset Foot
2441 status collapsed
2442
2443 \begin_layout Standard
2444 An alternative approach is to use the 
2445 \family typewriter
2446 chapterbib
2447 \family default
2448  or 
2449 \family typewriter
2450 bibunits
2451 \family default
2452  package, respectively.
2453 \end_layout
2454
2455 \end_inset
2456
2457
2458 \end_layout
2459
2460 \begin_layout Standard
2461 First, go to 
2462 \family sans
2463 \bar under
2464 D
2465 \bar default
2466 ocument\SpecialChar \menuseparator
2467
2468 \bar under
2469 S
2470 \bar default
2471 ettings 
2472 \family default
2473 and select the 
2474 \family sans
2475 Bibliography
2476 \family default
2477  pane (with the xforms frontend: the 
2478 \family sans
2479 Extras
2480 \family default
2481  tab).
2482  Check 
2483 \family sans
2484 Sectionated\InsetSpace ~
2485 bibliography
2486 \family default
2487 .
2488  In the document, you have to enclose the sections, which shall contain
2489  their own bibliography (including the BibTeX reference itself), between
2490  
2491 \family typewriter
2492
2493 \backslash
2494 begin{btUnit}
2495 \family default
2496  and 
2497 \family typewriter
2498
2499 \backslash
2500 end{btUnit}
2501 \family default
2502  (those commands have to be inserted as ERT).
2503  The bibliography will contain all references which have been cited in the
2504  current btUnit.
2505  N.\InsetSpace 
2506 B.: If you are using this approach, then 
2507 \emph on
2508 every
2509 \emph default
2510  citation reference has to be inside some btUnit.
2511  Also, the btUnits cannot be nested.
2512 \end_layout
2513
2514 \begin_layout Section
2515 Making an Index
2516 \end_layout
2517
2518 \begin_layout Standard
2519 A good index is one of the hardest things to make in a lengthy document,
2520  but LyX helps make things a bit simpler by interfacing to the 
2521 \family typewriter
2522 makeindex
2523 \family default
2524  program which is found in most recent LaTeX distributions.
2525 \begin_inset Foot
2526 status collapsed
2527
2528 \begin_layout Standard
2529
2530 \family roman
2531 \series medium
2532 \shape up
2533 \size normal
2534 \emph off
2535 \bar no
2536 \noun off
2537 \color none
2538 In the 
2539 \family sans
2540 \series default
2541 \shape default
2542 \size default
2543 \emph default
2544 \bar default
2545 \noun default
2546 \color default
2547 Outputs\SpecialChar \menuseparator
2548 LaT\SpecialChar \textcompwordmark{}
2549 eX
2550 \family roman
2551 \series medium
2552 \shape up
2553 \size normal
2554 \emph off
2555 \bar no
2556 \noun off
2557 \color none
2558  section of the preferences dialog, however, you can customize the index
2559  command, if you prefer an alternative program like 
2560 \family typewriter
2561 \series default
2562 \shape default
2563 \size default
2564 \emph default
2565 \bar default
2566 \noun default
2567 \color default
2568 xindy
2569 \family roman
2570 \series medium
2571 \shape up
2572 \size normal
2573 \emph off
2574 \bar no
2575 \noun off
2576 \color none
2577 .
2578 \end_layout
2579
2580 \end_inset
2581
2582  Inserting an index and marking words to include in it works much the same
2583  way as preparing a bibliography as mentioned in the last section.
2584 \end_layout
2585
2586 \begin_layout Standard
2587 First, go to the end of your file and select 
2588 \family sans
2589 \bar under
2590 I
2591 \bar default
2592 nsert\SpecialChar \menuseparator
2593 List
2594 \family default
2595 \InsetSpace ~
2596 /\InsetSpace ~
2597
2598 \family sans
2599 T
2600 \bar under
2601 O
2602 \bar default
2603 C\SpecialChar \menuseparator
2604
2605 \bar under
2606 I
2607 \bar default
2608 ndex
2609 \family default
2610 \InsetSpace ~
2611
2612 \family sans
2613 List
2614 \family default
2615 .
2616  Then, for each word you would like to include in the index, go to the end
2617  of that word and click on 
2618 \family sans
2619 \bar under
2620 I
2621 \bar default
2622 nsert\SpecialChar \menuseparator
2623
2624 \bar under
2625 I
2626 \bar default
2627 ndex
2628 \family default
2629 \InsetSpace ~
2630
2631 \family sans
2632 Entry
2633 \family default
2634 .
2635  This will insert a tag showing the word as it will appear in the index.
2636  That's all there is to it; LyX will automatically call 
2637 \family typewriter
2638 makeindex
2639 \family default
2640  for you and create the index itself.
2641  The text in the dialog available from right-clicking on the index button
2642  accepts LaTeX, so you'll need to be careful to avoid using any special
2643  characters.
2644  On the positive side, you can use the advanced options - have a look at
2645  the documentation which comes with your LaTeX distribution to find out
2646  how to do things like 
2647 \begin_inset Quotes eld
2648 \end_inset
2649
2650 nested entries
2651 \begin_inset Quotes erd
2652 \end_inset
2653
2654 , etc.
2655 \end_layout
2656
2657 \begin_layout Standard
2658 Be careful not to put spaces between the word in the text and the index
2659  marker; apparently the wrong page number can be produced if this happens.
2660 \end_layout
2661
2662 \begin_layout Section
2663 Multipart Documents
2664 \end_layout
2665
2666 \begin_layout Subsection
2667 General Operation
2668 \end_layout
2669
2670 \begin_layout Standard
2671 When you are working on a large file with many sections, it is often convenient
2672  to break up the document into several files, or perhaps you have something
2673  where a table may change from time to time, but the preceding text does
2674  not.
2675  In these cases, you should seriously consider using multipart documents.
2676  For example, scientific papers often have five major sections: the introduction
2677 , observations, results, discussion, and conclusion.
2678  Each of these could be its own separate LyX file, with one 
2679 \begin_inset Quotes eld
2680 \end_inset
2681
2682 master
2683 \begin_inset Quotes erd
2684 \end_inset
2685
2686  file which contains the title, authors, abstract, references, etc., plus
2687  the five included files.
2688  It is important to note that each of these files is a full LyX file which
2689  can be formatted and printed on its own, as well as included in a master
2690  file.
2691  Each of these files must have the same document class, however--- don't
2692  attempt to mix book classes with article classes.
2693  You may also include LaTeX files; however, these files must not have their
2694  own preamble 
2695 \emph on
2696 (i.e.
2697
2698 \emph default
2699  everything up to and including the 
2700 \family typewriter
2701
2702 \backslash
2703 begin{document}
2704 \family default
2705  line as well as the 
2706 \family typewriter
2707
2708 \backslash
2709 end{document}
2710 \family default
2711  line must be deleted) or else errors will be generated when you try to
2712  make a DVI file.
2713 \end_layout
2714
2715 \begin_layout Standard
2716 LyX allows you to include files quite easily with 
2717 \family sans
2718 \bar under
2719 I
2720 \bar default
2721 nsert\SpecialChar \menuseparator
2722 ChiI
2723 \bar under
2724 d
2725 \bar default
2726 \InsetSpace ~
2727 Document
2728 \family default
2729 .
2730  When you click on this selection a small box is inserted into the file
2731  at the current cursor location.
2732  Clicking on the box raises a dialog which allows you to select the file
2733  to be included, and the method of its inclusion.
2734  
2735 \end_layout
2736
2737 \begin_layout Standard
2738 The file selection box should by now be obvious.
2739  The three inclusion methods are 
2740 \begin_inset Quotes eld
2741 \end_inset
2742
2743 include
2744 \begin_inset Quotes erd
2745 \end_inset
2746
2747
2748 \begin_inset Quotes eld
2749 \end_inset
2750
2751 input
2752 \begin_inset Quotes erd
2753 \end_inset
2754
2755 , and 
2756 \begin_inset Quotes eld
2757 \end_inset
2758
2759 verbatim
2760 \begin_inset Quotes erd
2761 \end_inset
2762
2763 .
2764  The difference between 
2765 \begin_inset Quotes eld
2766 \end_inset
2767
2768 include
2769 \begin_inset Quotes erd
2770 \end_inset
2771
2772  and 
2773 \begin_inset Quotes eld
2774 \end_inset
2775
2776 input
2777 \begin_inset Quotes erd
2778 \end_inset
2779
2780  is really only meaningful to LaTeXperts, but the practical difference is
2781  that files which are 
2782 \begin_inset Quotes eld
2783 \end_inset
2784
2785 included
2786 \begin_inset Quotes erd
2787 \end_inset
2788
2789  are typeset beginning on a new page, while files which are 
2790 \begin_inset Quotes eld
2791 \end_inset
2792
2793 inputted
2794 \begin_inset Quotes erd
2795 \end_inset
2796
2797  are typeset starting on the current page.
2798  Perhaps the labeling in LyX will be changed someday to reflect this.
2799 \end_layout
2800
2801 \begin_layout Standard
2802 Generally, the master file is converted into a full LaTeX file before typesettin
2803 g, while the included files are converted to LaTeX files which do not have
2804  all the preamble information.
2805  Checking the 
2806 \family sans
2807 Don't
2808 \family default
2809 \InsetSpace ~
2810
2811 \family sans
2812 typeset
2813 \family default
2814  button prevents this conversion.
2815 \end_layout
2816
2817 \begin_layout Standard
2818
2819 \begin_inset Quotes eld
2820 \end_inset
2821
2822 verbatim
2823 \begin_inset Quotes erd
2824 \end_inset
2825
2826  included file allows you to include a file typeset exactly as it appears
2827  in the file, i.e.\InsetSpace ~
2828 verbatim mode, with the characters set in a fixed-width
2829  typewriter font.
2830  Normally, spaces in this file are invisible, though two consecutive spaces
2831  are conserved, unlike LyX's normal treatment of spaces.
2832  However, setting the 
2833 \family sans
2834 \bar under
2835 M
2836 \bar default
2837 ark\InsetSpace ~
2838 spaces\InsetSpace ~
2839 in\InsetSpace ~
2840 output
2841 \family default
2842  checkbox typesets a mark to unambiguously define the presence of a space.
2843
2844 \emph on
2845  
2846 \end_layout
2847
2848 \begin_layout Subsection
2849 Cross-References Between Files
2850 \end_layout
2851
2852 \begin_layout Standard
2853 It is possible to set up cross-references between the different files.
2854  First, open all the files in question: let's call them A and B in a two
2855  file example, where B is included in A.
2856  Let's say you insert a label in A, then want to reference it in B.
2857  Open the cross-reference dialog in whilst in document B, and you can select
2858  the 
2859 \begin_inset Quotes eld
2860 \end_inset
2861
2862 buffer
2863 \begin_inset Quotes erd
2864 \end_inset
2865
2866  to use.
2867 \end_layout
2868
2869 \begin_layout Section
2870 Algorithms
2871 \end_layout
2872
2873 \begin_layout Standard
2874 The package 
2875 \family sans
2876 algorithm
2877 \family default
2878  is needed by LyX to be able to output algorithm floats.
2879  These are useful in placing short algorithms across page breaks and support
2880  an index of algorithms too.
2881 \end_layout
2882
2883 \begin_layout Section
2884 Subfigures
2885 \end_layout
2886
2887 \begin_layout Standard
2888 The package
2889 \family sans
2890  subfigure 
2891 \family default
2892 is used by LyX when you select ``subfigure'' in the graphics dialog and
2893  enter the subfigure caption.
2894  Several figures marked in this way can be packed into a single float with
2895  individual sub-captions.
2896 \end_layout
2897
2898 \begin_layout Section
2899 Fancy Headers and Footers
2900 \end_layout
2901
2902 \begin_layout Standard
2903 The default page layout is rather plain; for an article document class,
2904  all you get is a centered page number at the bottom of the page.
2905  This document is the book class, so it appears to be a bit fancier, but
2906  to really put on a show, you need to set the document page style to 
2907 \begin_inset Quotes eld
2908 \end_inset
2909
2910 fancy
2911 \begin_inset Quotes erd
2912 \end_inset
2913
2914 , as mentioned in the 
2915 \family sans
2916 User\InsetSpace ~
2917 Guide
2918 \family default
2919 .
2920  This section describes the LaTeX codes you need to insert in your LaTeX
2921  preamble or the text in order to get the desired effects.
2922 \end_layout
2923
2924 \begin_layout Standard
2925 The page header is divided into three fields, not surprisingly labeled 
2926 \begin_inset Quotes eld
2927 \end_inset
2928
2929 left
2930 \begin_inset Quotes erd
2931 \end_inset
2932
2933
2934 \begin_inset Quotes eld
2935 \end_inset
2936
2937 center
2938 \begin_inset Quotes erd
2939 \end_inset
2940
2941 , and 
2942 \begin_inset Quotes eld
2943 \end_inset
2944
2945 right
2946 \begin_inset Quotes erd
2947 \end_inset
2948
2949 .
2950  The footer is also divided into these three fields.
2951  The LaTeX commands to set these fields in the simplest manner are 
2952 \family typewriter
2953
2954 \backslash
2955 lhead
2956 \family default
2957
2958 \family typewriter
2959
2960 \backslash
2961 chead
2962 \family default
2963
2964 \family typewriter
2965
2966 \backslash
2967 rhead
2968 \family default
2969
2970 \family typewriter
2971
2972 \backslash
2973 lfoot
2974 \family default
2975 , etc.
2976  Suppose you wish to put your name in the upper left hand corner of each
2977  page.
2978  Simply insert the following command in the preamble: 
2979 \end_layout
2980
2981 \begin_layout Standard
2982
2983 \family typewriter
2984
2985 \backslash
2986 lhead{John Q.
2987  DocWriter}
2988 \end_layout
2989
2990 \begin_layout Standard
2991 You will now see your name in the upper left.
2992  If a field has a default entry that you would like to get rid of (often
2993  the page number appears in the central footer, simply include a command
2994  with a blank argument, e.g.
2995 \end_layout
2996
2997 \begin_layout Standard
2998
2999 \family typewriter
3000
3001 \backslash
3002 cfoot{}
3003 \end_layout
3004
3005 \begin_layout Standard
3006 Let's get really fancy: lets put the section number with the word 
3007 \begin_inset Quotes eld
3008 \end_inset
3009
3010 Section
3011 \begin_inset Quotes erd
3012 \end_inset
3013
3014  (e.g.
3015  Section 3) in the upper left, the page number (e.g.
3016  Page 4) in the upper right, your name in the lower left, and the date in
3017  the lower right.
3018  The following commands should now appear in the preamble:
3019 \end_layout
3020
3021 \begin_layout Standard
3022
3023 \family typewriter
3024
3025 \backslash
3026 lhead{Section 
3027 \backslash
3028 thesection}
3029 \end_layout
3030
3031 \begin_layout Standard
3032
3033 \family typewriter
3034
3035 \backslash
3036 chead{}
3037 \end_layout
3038
3039 \begin_layout Standard
3040
3041 \family typewriter
3042
3043 \backslash
3044 rhead{Page 
3045 \backslash
3046 thepage}
3047 \end_layout
3048
3049 \begin_layout Standard
3050
3051 \family typewriter
3052
3053 \backslash
3054 lfoot{John Q.
3055  DocWriter}
3056 \end_layout
3057
3058 \begin_layout Standard
3059
3060 \family typewriter
3061
3062 \backslash
3063 cfoot{}
3064 \end_layout
3065
3066 \begin_layout Standard
3067
3068 \family typewriter
3069
3070 \backslash
3071 rfoot{
3072 \backslash
3073 today}
3074 \end_layout
3075
3076 \begin_layout Standard
3077 The codes 
3078 \family typewriter
3079
3080 \backslash
3081 thesection
3082 \family default
3083  and 
3084 \family typewriter
3085
3086 \backslash
3087 thepage
3088 \family default
3089  access LaTeX's section and page counters, and so print out the current
3090  section and page numbers.
3091  
3092 \family typewriter
3093
3094 \backslash
3095 today
3096 \family default
3097  simply prints out today's date.
3098 \end_layout
3099
3100 \begin_layout Standard
3101 The thicknesses of the horizontal rules drawn beneath the header and above
3102  the footer can also be modified.
3103  If you don't want one of the headers, set its thickness to 0.
3104  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3105  Use the commands, e.g.
3106  
3107 \family typewriter
3108
3109 \backslash
3110 renewcommand{
3111 \backslash
3112 headrulewidth}{0.4pt}
3113 \family default
3114  and 
3115 \family typewriter
3116
3117 \backslash
3118 renewcommand{
3119 \backslash
3120 footrulewidth}{0.4pt}
3121 \family default
3122  to set the thicknesses.
3123 \end_layout
3124
3125 \begin_layout Standard
3126 You can switch the header/footer settings on and off for individual pages
3127  using commands like 
3128 \family typewriter
3129
3130 \backslash
3131 thispagestyle{empty}
3132 \family default
3133
3134 \family typewriter
3135
3136 \backslash
3137 thispagestyle{plain}
3138 \family default
3139 , and 
3140 \family typewriter
3141
3142 \backslash
3143 thispagestyle{fancy}
3144 \family default
3145 .
3146  Simply insert them in the text on the page you want changed and mark them
3147  as TeX code.
3148  In fact, title pages are marked as plain by default, while following pages
3149  are marked fancy when using the global fancy setting.
3150 \end_layout
3151
3152 \begin_layout Standard
3153 There are more complex commands which will let you insert things in the
3154  upper left on odd numbered pages, etc., but I will refer you to the 
3155 \family typewriter
3156 fancyhdr
3157 \family default
3158  package documentation for more descriptions.
3159  For example, if you have a teTeX installation, look for 
3160 \family typewriter
3161 /usr/share/texmf/doc/latex/fancyhdr/\SpecialChar \-
3162 fancyhdr.dvi
3163 \family default
3164 .
3165 \end_layout
3166
3167 \begin_layout Standard
3168 As a final example, it is possible to include an Encapsulated PostScript®
3169  file in the header or footer.
3170  Suppose you want to put a company logo in the upper lefthand corner.
3171  You might try something like
3172 \end_layout
3173
3174 \begin_layout Standard
3175
3176 \family typewriter
3177
3178 \backslash
3179 lhead{
3180 \backslash
3181 resizebox{1in}{!}{
3182 \backslash
3183 includegraphics{logo.eps}}}
3184 \end_layout
3185
3186 \begin_layout Standard
3187 \noindent
3188 (you may need to preface this with 
3189 \family typewriter
3190
3191 \backslash
3192 usepackage{graphics}
3193 \family default
3194  if you don't include EPS files elsewhere in your document).
3195 \end_layout
3196
3197 \begin_layout Section
3198 Minipages
3199 \end_layout
3200
3201 \begin_layout Standard
3202 LaTeX provides a mechanism to produce essentially a page within a page,
3203  called minipages.
3204  Within a minipage, all the usual rules of indentation, line wrapping, etc.\InsetSpace ~
3205 apply.
3206  LyX also provides some of the minipage capability.
3207 \end_layout
3208
3209 \begin_layout Standard
3210 Minipages in LyX have their own collapsable box; insert one via 
3211 \family sans
3212 \bar under
3213 I
3214 \bar default
3215 nsert\SpecialChar \menuseparator
3216 Mini
3217 \bar under
3218 p
3219 \bar default
3220 age
3221 \family default
3222 .
3223  Right-clicking on the box allows you to alter the minipage's width and
3224  alignment within the page.
3225  Warning: if the minipage is too long to fit on a page, it is truncated,
3226  not wrapped onto the next page.
3227 \end_layout
3228
3229 \begin_layout Standard
3230 If you place two minipages side-by-side, you can use 
3231 \family sans
3232 \bar under
3233 I
3234 \bar default
3235 nsert\SpecialChar \menuseparator
3236
3237 \bar under
3238 S
3239 \bar default
3240 pecial\InsetSpace ~
3241 Character
3242 \family default
3243  to insert a special instruction known in the LaTeX world as an 
3244 \family typewriter
3245 hfill
3246 \family default
3247  to put a maximum amount of space between them; it forces one minipage to
3248  the left edge, the other to the right edge.
3249  The examples below show the difference.
3250 \end_layout
3251
3252 \begin_layout Standard
3253 \begin_inset Box Frameless
3254 position "t"
3255 hor_pos "c"
3256 has_inner_box 1
3257 inner_pos "c"
3258 use_parbox 0
3259 width "1.5in"
3260 special "none"
3261 height "1pt"
3262 height_special "totalheight"
3263 status open
3264
3265 \begin_layout Standard
3266 This is a minipage which does not use hfill.
3267  This is the second sentence of a minipage which does not use hfill.
3268 \end_layout
3269
3270 \end_inset
3271
3272
3273 \end_layout
3274
3275 \begin_layout Standard
3276 \begin_inset Box Frameless
3277 position "t"
3278 hor_pos "c"
3279 has_inner_box 1
3280 inner_pos "c"
3281 use_parbox 0
3282 width "1.5in"
3283 special "none"
3284 height "1pt"
3285 height_special "totalheight"
3286 status open
3287
3288 \begin_layout Standard
3289 This is a second minipage which does not use hfill.
3290  This is the second sentence of a second minipage which does not use hfill.
3291 \end_layout
3292
3293 \end_inset
3294
3295
3296 \end_layout
3297
3298 \begin_layout Standard
3299 \begin_inset VSpace medskip
3300 \end_inset
3301
3302
3303 \end_layout
3304
3305 \begin_layout Standard
3306 Here is some normal text to separate the two examples.
3307 \end_layout
3308
3309 \begin_layout Standard
3310 \begin_inset VSpace medskip
3311 \end_inset
3312
3313
3314 \end_layout
3315
3316 \begin_layout Standard
3317 \begin_inset Box Frameless
3318 position "t"
3319 hor_pos "c"
3320 has_inner_box 1
3321 inner_pos "c"
3322 use_parbox 0
3323 width "1.5in"
3324 special "none"
3325 height "1pt"
3326 height_special "totalheight"
3327 status open
3328
3329 \begin_layout Standard
3330 This is a minipage which does use hfill.
3331  This is the second sentence of a minipage which does use hfill.
3332 \end_layout
3333
3334 \end_inset
3335
3336
3337 \hfill
3338
3339 \begin_inset Box Frameless
3340 position "t"
3341 hor_pos "c"
3342 has_inner_box 1
3343 inner_pos "c"
3344 use_parbox 0
3345 width "1.5in"
3346 special "none"
3347 height "1pt"
3348 height_special "totalheight"
3349 status open
3350
3351 \begin_layout Standard
3352 This is a second minipage which does use hfill.
3353  This is the second sentence of a second minipage which does use hfill.
3354 \end_layout
3355
3356 \end_inset
3357
3358
3359 \end_layout
3360
3361 \begin_layout Section
3362 Wrapping Text Around Figures
3363 \begin_inset LatexCommand \label{sec:floatflt}
3364
3365 \end_inset
3366
3367
3368 \end_layout
3369
3370 \begin_layout Standard
3371 \begin_inset Wrap figure
3372 placement r
3373 width "6cm"
3374 status open
3375
3376 \begin_layout Standard
3377 \begin_inset Graphics
3378         filename mobius.eps
3379         display color
3380         width 40col%
3381         rotateOrigin center
3382
3383 \end_inset
3384
3385
3386 \end_layout
3387
3388 \begin_layout Caption
3389 This is a wrapped figure, and this is the brilliant caption that describes
3390  it
3391 \end_layout
3392
3393 \end_inset
3394
3395
3396 \end_layout
3397
3398 \begin_layout Standard
3399 A very frequently asked question is whether text can be made to 
3400 \begin_inset Quotes eld
3401 \end_inset
3402
3403 wrap
3404 \begin_inset Quotes erd
3405 \end_inset
3406
3407  around figures so that a figure occupies some fraction of the column width
3408  and text fills the rest.
3409  If you have the LaTeX package 
3410 \family typewriter
3411 floatflt
3412 \family default
3413  installed (you can find out about it in the 
3414 \emph on
3415 LaTeX Configuration
3416 \emph default
3417  manual) you can do this.
3418 \end_layout
3419
3420 \begin_layout Standard
3421 At the right is a figure of a mobius strip---you should have already seen
3422  this in the 
3423 \emph on
3424 User's Guide
3425 \emph default
3426 .
3427  To wrap the text like this insert a wrap box via 
3428 \family sans
3429 \bar under
3430 I
3431 \bar default
3432 nsert\SpecialChar \menuseparator
3433 Flo
3434 \bar under
3435 a
3436 \bar default
3437 ts\SpecialChar \menuseparator
3438 Floatflt Figure
3439 \family default
3440 .
3441 \end_layout
3442
3443 \begin_layout Standard
3444 Note: this package is very fragile! For example, having a figure too close
3445  to the bottom of the page will mess things up, as will having two figures
3446  close together.
3447  Use this package sparingly and do read the documentation that came with
3448  it (which will also tell you how to wrap text around tables).
3449 \end_layout
3450
3451 \begin_layout Section
3452 Extra Table Options
3453 \end_layout
3454
3455 \begin_layout Standard
3456 While the standard table layout will suffice in 99% of all tables you generate,
3457  occasionally you will run into one which requires a bit of extra tweaking.
3458  The table dialog which appears on a right-click of a table allows these
3459  tweaks to be made.
3460  It will give you access to some extra column alignment parameters.
3461  A little bit of LaTeX background is useful here: when you set up a table
3462  in LaTeX, each column is given an alignment type.
3463  For example, you would give it 
3464 \begin_inset Quotes eld
3465 \end_inset
3466
3467
3468 \family typewriter
3469 l
3470 \family default
3471
3472 \begin_inset Quotes erd
3473 \end_inset
3474
3475
3476 \begin_inset Quotes eld
3477 \end_inset
3478
3479
3480 \family typewriter
3481 c
3482 \family default
3483
3484 \begin_inset Quotes erd
3485 \end_inset
3486
3487 , or 
3488 \begin_inset Quotes eld
3489 \end_inset
3490
3491
3492 \family typewriter
3493 r
3494 \family default
3495
3496 \begin_inset Quotes erd
3497 \end_inset
3498
3499  for left-aligned, centered, and right-aligned columns respectively (which
3500  appear as the left/center/right radio buttons in LyX).
3501  A fourth type is 
3502 \begin_inset Quotes eld
3503 \end_inset
3504
3505
3506 \family typewriter
3507 p
3508 \family default
3509
3510 \begin_inset Quotes erd
3511 \end_inset
3512
3513 , which will make a column of a specified width (the width box in LyX),
3514  and will wrap text within that box.
3515  A fifth type is 
3516 \begin_inset Quotes eld
3517 \end_inset
3518
3519
3520 \family typewriter
3521 |
3522 \family default
3523
3524 \begin_inset Quotes erd
3525 \end_inset
3526
3527  (vertical bar) which rather than making a column will make a vertical rule
3528  at that point; this manifests itself in LyX as the 
3529 \begin_inset Quotes eld
3530 \end_inset
3531
3532 borders
3533 \begin_inset Quotes erd
3534 \end_inset
3535
3536  buttons.
3537  Finally, there is a type 
3538 \begin_inset Quotes eld
3539 \end_inset
3540
3541
3542 \family typewriter
3543 @
3544 \family default
3545
3546 \begin_inset Quotes erd
3547 \end_inset
3548
3549 , which allows you to use whatever is enclosed in the accompanying braces
3550  as the column separator, including a null argument.
3551  The reasons for doing this may not be obvious, but they can be very powerful.
3552  They are best demonstrated by example.
3553 \end_layout
3554
3555 \begin_layout Subsection
3556 Removing Extra Column Space
3557 \end_layout
3558
3559 \begin_layout Standard
3560 Here is a standard table:
3561 \end_layout
3562
3563 \begin_layout Standard
3564 \align center
3565 \begin_inset Tabular
3566 <lyxtabular version="3" rows="3" columns="2">
3567 <features>
3568 <column alignment="left" valignment="top" width="0pt">
3569 <column alignment="left" valignment="top" leftline="true" width="0pt">
3570 <row bottomline="true">
3571 <cell alignment="left" valignment="top" topline="true" usebox="none">
3572 \begin_inset Text
3573
3574 \begin_layout Standard
3575
3576 \family roman
3577 \series medium
3578 \shape up
3579 \size normal
3580 \emph off
3581 \bar no
3582 \noun off
3583 \color none
3584 Type
3585 \end_layout
3586
3587 \end_inset
3588 </cell>
3589 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
3590 \begin_inset Text
3591
3592 \begin_layout Standard
3593
3594 \family roman
3595 \series medium
3596 \shape up
3597 \size normal
3598 \emph off
3599 \bar no
3600 \noun off
3601 \color none
3602 Example
3603 \end_layout
3604
3605 \end_inset
3606 </cell>
3607 </row>
3608 <row>
3609 <cell alignment="left" valignment="top" topline="true" usebox="none">
3610 \begin_inset Text
3611
3612 \begin_layout Standard
3613
3614 \family roman
3615 \series medium
3616 \shape up
3617 \size normal
3618 \emph off
3619 \bar no
3620 \noun off
3621 \color none
3622 Rock
3623 \end_layout
3624
3625 \end_inset
3626 </cell>
3627 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3628 \begin_inset Text
3629
3630 \begin_layout Standard
3631
3632 \family roman
3633 \series medium
3634 \shape up
3635 \size normal
3636 \emph off
3637 \bar no
3638 \noun off
3639 \color none
3640 Granite
3641 \end_layout
3642
3643 \end_inset
3644 </cell>
3645 </row>
3646 <row>
3647 <cell alignment="center" valignment="top" topline="true" usebox="none">
3648 \begin_inset Text
3649
3650 \begin_layout Standard
3651
3652 \family roman
3653 \series medium
3654 \shape up
3655 \size normal
3656 \emph off
3657 \bar no
3658 \noun off
3659 \color none
3660 Mineral
3661 \end_layout
3662
3663 \end_inset
3664 </cell>
3665 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3666 \begin_inset Text
3667
3668 \begin_layout Standard
3669
3670 \family roman
3671 \series medium
3672 \shape up
3673 \size normal
3674 \emph off
3675 \bar no
3676 \noun off
3677 \color none
3678 Quartz
3679 \end_layout
3680
3681 \end_inset
3682 </cell>
3683 </row>
3684 </lyxtabular>
3685
3686 \end_inset
3687
3688
3689 \end_layout
3690
3691 \begin_layout Standard
3692 Notice that the horizontal rule extends a bit past the text on both sides.
3693  If you wanted the line to end even with the text, we can put a null separator
3694  on the ends to get rid of the bit of extra space LaTeX adds by default.
3695  Here is the example:
3696 \end_layout
3697
3698 \begin_layout Standard
3699 \align center
3700 \begin_inset Tabular
3701 <lyxtabular version="3" rows="3" columns="2">
3702 <features>
3703 <column alignment="left" valignment="top" width="0pt" special="@{} l">
3704 <column alignment="left" valignment="top" leftline="true" width="0pt" special="l @{}">
3705 <row bottomline="true">
3706 <cell alignment="left" valignment="top" topline="true" usebox="none">
3707 \begin_inset Text
3708
3709 \begin_layout Standard
3710
3711 \family roman
3712 \series medium
3713 \shape up
3714 \size normal
3715 \emph off
3716 \bar no
3717 \noun off
3718 \color none
3719 Type
3720 \end_layout
3721
3722 \end_inset
3723 </cell>
3724 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
3725 \begin_inset Text
3726
3727 \begin_layout Standard
3728
3729 \family roman
3730 \series medium
3731 \shape up
3732 \size normal
3733 \emph off
3734 \bar no
3735 \noun off
3736 \color none
3737 Example
3738 \end_layout
3739
3740 \end_inset
3741 </cell>
3742 </row>
3743 <row>
3744 <cell alignment="left" valignment="top" topline="true" usebox="none">
3745 \begin_inset Text
3746
3747 \begin_layout Standard
3748
3749 \family roman
3750 \series medium
3751 \shape up
3752 \size normal
3753 \emph off
3754 \bar no
3755 \noun off
3756 \color none
3757 Rock
3758 \end_layout
3759
3760 \end_inset
3761 </cell>
3762 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3763 \begin_inset Text
3764
3765 \begin_layout Standard
3766
3767 \family roman
3768 \series medium
3769 \shape up
3770 \size normal
3771 \emph off
3772 \bar no
3773 \noun off
3774 \color none
3775 Granite
3776 \end_layout
3777
3778 \end_inset
3779 </cell>
3780 </row>
3781 <row>
3782 <cell alignment="center" valignment="top" topline="true" usebox="none">
3783 \begin_inset Text
3784
3785 \begin_layout Standard
3786
3787 \family roman
3788 \series medium
3789 \shape up
3790 \size normal
3791 \emph off
3792 \bar no
3793 \noun off
3794 \color none
3795 Mineral
3796 \end_layout
3797
3798 \end_inset
3799 </cell>
3800 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3801 \begin_inset Text
3802
3803 \begin_layout Standard
3804
3805 \family roman
3806 \series medium
3807 \shape up
3808 \size normal
3809 \emph off
3810 \bar no
3811 \noun off
3812 \color none
3813 Quartz
3814 \end_layout
3815
3816 \end_inset
3817 </cell>
3818 </row>
3819 </lyxtabular>
3820
3821 \end_inset
3822
3823
3824 \end_layout
3825
3826 \begin_layout Standard
3827 In this case, the column specifier for the left column was set to 
3828 \begin_inset Quotes eld
3829 \end_inset
3830
3831
3832 \family typewriter
3833 @{} l
3834 \family default
3835
3836 \begin_inset Quotes erd
3837 \end_inset
3838
3839 , while the right column was set to 
3840 \begin_inset Quotes eld
3841 \end_inset
3842
3843
3844 \family typewriter
3845 l @{}
3846 \family default
3847
3848 \begin_inset Quotes erd
3849 \end_inset
3850
3851 , in order to put the null characters on the edges.
3852  
3853 \end_layout
3854
3855 \begin_layout Subsection
3856 Changing the Column Separator Character
3857 \end_layout
3858
3859 \begin_layout Standard
3860 Now suppose you really wanted, for reasons that are completely opaque, to
3861  use 
3862 \begin_inset Formula $\sqrt{\pi}$
3863 \end_inset
3864
3865  with some space around it for the column separator.
3866  Simply turn off the vertical border, then set the right column specifier
3867  to 
3868 \begin_inset Quotes eld
3869 \end_inset
3870
3871
3872 \family typewriter
3873 @{~$
3874 \backslash
3875 sqrt{
3876 \backslash
3877 pi}$~} l
3878 \family default
3879
3880 \begin_inset Quotes erd
3881 \end_inset
3882
3883 .
3884  You could now make a table like this:
3885 \end_layout
3886
3887 \begin_layout Standard
3888 \align center
3889 \begin_inset Tabular
3890 <lyxtabular version="3" rows="3" columns="2">
3891 <features>
3892 <column alignment="left" valignment="top" width="0pt">
3893 <column alignment="left" valignment="top" width="0in" special="@{~$\sqrt{\pi}$~}l">
3894 <row bottomline="true">
3895 <cell alignment="left" valignment="top" topline="true" usebox="none">
3896 \begin_inset Text
3897
3898 \begin_layout Standard
3899
3900 \family roman
3901 \series medium
3902 \shape up
3903 \size normal
3904 \emph off
3905 \bar no
3906 \noun off
3907 \color none
3908 Type
3909 \end_layout
3910
3911 \end_inset
3912 </cell>
3913 <cell alignment="left" valignment="top" topline="true" usebox="none">
3914 \begin_inset Text
3915
3916 \begin_layout Standard
3917
3918 \family roman
3919 \series medium
3920 \shape up
3921 \size normal
3922 \emph off
3923 \bar no
3924 \noun off
3925 \color none
3926 Example
3927 \end_layout
3928
3929 \end_inset
3930 </cell>
3931 </row>
3932 <row>
3933 <cell alignment="left" valignment="top" topline="true" usebox="none">
3934 \begin_inset Text
3935
3936 \begin_layout Standard
3937
3938 \family roman
3939 \series medium
3940 \shape up
3941 \size normal
3942 \emph off
3943 \bar no
3944 \noun off
3945 \color none
3946 Rock
3947 \end_layout
3948
3949 \end_inset
3950 </cell>
3951 <cell alignment="center" valignment="top" topline="true" usebox="none">
3952 \begin_inset Text
3953
3954 \begin_layout Standard
3955
3956 \family roman
3957 \series medium
3958 \shape up
3959 \size normal
3960 \emph off
3961 \bar no
3962 \noun off
3963 \color none
3964 Granite
3965 \end_layout
3966
3967 \end_inset
3968 </cell>
3969 </row>
3970 <row>
3971 <cell alignment="center" valignment="top" topline="true" usebox="none">
3972 \begin_inset Text
3973
3974 \begin_layout Standard
3975
3976 \family roman
3977 \series medium
3978 \shape up
3979 \size normal
3980 \emph off
3981 \bar no
3982 \noun off
3983 \color none
3984 Mineral
3985 \end_layout
3986
3987 \end_inset
3988 </cell>
3989 <cell alignment="center" valignment="top" topline="true" usebox="none">
3990 \begin_inset Text
3991
3992 \begin_layout Standard
3993
3994 \family roman
3995 \series medium
3996 \shape up
3997 \size normal
3998 \emph off
3999 \bar no
4000 \noun off
4001 \color none
4002 Quartz
4003 \end_layout
4004
4005 \end_inset
4006 </cell>
4007 </row>
4008 </lyxtabular>
4009
4010 \end_inset
4011
4012
4013 \end_layout
4014
4015 \begin_layout Subsection
4016 Making a Decimal Point Aligned Column
4017 \end_layout
4018
4019 \begin_layout Standard
4020 Okay, that last example was very silly, but here is one that is not.
4021  Suppose you want to make a table that has a column which is aligned on
4022  a decimal point.
4023  A standard LaTeX trick to do this is to set the whole number part in a
4024  right-aligned column, use a decimal point for the column separator, then
4025  set the fractional part as a left-aligned column.
4026  A variation on this is to include the decimal point explicitly with the
4027  whole part, then use just a null separator in between.
4028  The latter variation is demonstrated here:
4029 \end_layout
4030
4031 \begin_layout Standard
4032 \align center
4033 \begin_inset Tabular
4034 <lyxtabular version="3" rows="5" columns="3">
4035 <features>
4036 <column alignment="center" valignment="top" width="0pt">
4037 <column alignment="right" valignment="top" leftline="true" width="0pt">
4038 <column alignment="center" valignment="top" width="0pt" special="@{} l">
4039 <row bottomline="true">
4040 <cell alignment="center" valignment="top" topline="true" usebox="none">
4041 \begin_inset Text
4042
4043 \begin_layout Standard
4044
4045 \family roman
4046 \series medium
4047 \shape up
4048 \size normal
4049 \emph off
4050 \bar no
4051 \noun off
4052 \color none
4053 Expression
4054 \end_layout
4055
4056 \end_inset
4057 </cell>
4058 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4059 \begin_inset Text
4060
4061 \begin_layout Standard
4062
4063 \family roman
4064 \series medium
4065 \shape up
4066 \size normal
4067 \emph off
4068 \bar no
4069 \noun off
4070 \color none
4071 Value 
4072 \end_layout
4073
4074 \end_inset
4075 </cell>
4076 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4077 \begin_inset Text
4078
4079 \begin_layout Standard
4080
4081 \end_layout
4082
4083 \end_inset
4084 </cell>
4085 </row>
4086 <row>
4087 <cell alignment="center" valignment="top" topline="true" usebox="none">
4088 \begin_inset Text
4089
4090 \begin_layout Standard
4091
4092 \family roman
4093 \series medium
4094 \shape up
4095 \size normal
4096 \emph off
4097 \bar no
4098 \noun off
4099 \color none
4100 \begin_inset Formula $\pi$
4101 \end_inset
4102
4103
4104 \end_layout
4105
4106 \end_inset
4107 </cell>
4108 <cell alignment="right" valignment="top" topline="true" leftline="true" usebox="none">
4109 \begin_inset Text
4110
4111 \begin_layout Standard
4112
4113 \family roman
4114 \series medium
4115 \shape up
4116 \size normal
4117 \emph off
4118 \bar no
4119 \noun off
4120 \color none
4121 3.
4122 \end_layout
4123
4124 \end_inset
4125 </cell>
4126 <cell alignment="center" valignment="top" topline="true" usebox="none">
4127 \begin_inset Text
4128
4129 \begin_layout Standard
4130
4131 \family roman
4132 \series medium
4133 \shape up
4134 \size normal
4135 \emph off
4136 \bar no
4137 \noun off
4138 \color none
4139 1416
4140 \end_layout
4141
4142 \end_inset
4143 </cell>
4144 </row>
4145 <row>
4146 <cell alignment="center" valignment="top" topline="true" usebox="none">
4147 \begin_inset Text
4148
4149 \begin_layout Standard
4150
4151 \family roman
4152 \series medium
4153 \shape up
4154 \size normal
4155 \emph off
4156 \bar no
4157 \noun off
4158 \color none
4159 \begin_inset Formula $\pi^{\pi}$
4160 \end_inset
4161
4162
4163 \end_layout
4164
4165 \end_inset
4166 </cell>
4167 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4168 \begin_inset Text
4169
4170 \begin_layout Standard
4171
4172 \family roman
4173 \series medium
4174 \shape up
4175 \size normal
4176 \emph off
4177 \bar no
4178 \noun off
4179 \color none
4180 36.
4181 \end_layout
4182
4183 \end_inset
4184 </cell>
4185 <cell alignment="center" valignment="top" topline="true" usebox="none">
4186 \begin_inset Text
4187
4188 \begin_layout Standard
4189
4190 \family roman
4191 \series medium
4192 \shape up
4193 \size normal
4194 \emph off
4195 \bar no
4196 \noun off
4197 \color none
4198 462
4199 \end_layout
4200
4201 \end_inset
4202 </cell>
4203 </row>
4204 <row>
4205 <cell alignment="center" valignment="top" topline="true" usebox="none">
4206 \begin_inset Text
4207
4208 \begin_layout Standard
4209
4210 \family roman
4211 \series medium
4212 \shape up
4213 \size normal
4214 \emph off
4215 \bar no
4216 \noun off
4217 \color none
4218 \begin_inset Formula $(\pi^{\pi})^{\pi}$
4219 \end_inset
4220
4221
4222 \end_layout
4223
4224 \end_inset
4225 </cell>
4226 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4227 \begin_inset Text
4228
4229 \begin_layout Standard
4230
4231 \family roman
4232 \series medium
4233 \shape up
4234 \size normal
4235 \emph off
4236 \bar no
4237 \noun off
4238 \color none
4239 80663.
4240 \end_layout
4241
4242 \end_inset
4243 </cell>
4244 <cell alignment="center" valignment="top" topline="true" usebox="none">
4245 \begin_inset Text
4246
4247 \begin_layout Standard
4248
4249 \end_layout
4250
4251 \end_inset
4252 </cell>
4253 </row>
4254 <row>
4255 <cell alignment="center" valignment="top" topline="true" usebox="none">
4256 \begin_inset Text
4257
4258 \begin_layout Standard
4259
4260 \family roman
4261 \series medium
4262 \shape up
4263 \size normal
4264 \emph off
4265 \bar no
4266 \noun off
4267 \color none
4268 \begin_inset Formula $\pi^{\pi^{\pi}}$
4269 \end_inset
4270
4271
4272 \end_layout
4273
4274 \end_inset
4275 </cell>
4276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4277 \begin_inset Text
4278
4279 \begin_layout Standard
4280
4281 \family roman
4282 \series medium
4283 \shape up
4284 \size normal
4285 \emph off
4286 \bar no
4287 \noun off
4288 \color none
4289 1.
4290 \end_layout
4291
4292 \end_inset
4293 </cell>
4294 <cell alignment="center" valignment="top" topline="true" usebox="none">
4295 \begin_inset Text
4296
4297 \begin_layout Standard
4298
4299 \family roman
4300 \series medium
4301 \shape up
4302 \size normal
4303 \emph off
4304 \bar no
4305 \noun off
4306 \color none
4307 3402
4308 \begin_inset Formula $\times10^{18}$
4309 \end_inset
4310
4311
4312 \end_layout
4313
4314 \end_inset
4315 </cell>
4316 </row>
4317 </lyxtabular>
4318
4319 \end_inset
4320
4321
4322 \end_layout
4323
4324 \begin_layout Standard
4325 Though it appears a bit funny in LyX, on paper it will produce what appears
4326  to be a 2-column table in which the right column is aligned on the decimal
4327  point and the header appears to be centered over it.
4328 \end_layout
4329
4330 \begin_layout Standard
4331 Perhaps it is best if I described just what I did: first, create a 3
4332 \begin_inset Formula $\times$
4333 \end_inset
4334
4335 3 table and remove all the borders.
4336  Then re-add a bottom border to the top row, and a right border to the first
4337  column.
4338  Type in the values for the first column and set its alignment to 
4339 \family sans
4340 center
4341 \family default
4342 .
4343  Type in the 
4344 \family typewriter
4345 3.
4346 \family default
4347
4348 \family typewriter
4349 36.
4350 \family default
4351
4352 \family typewriter
4353 80663.
4354 \family default
4355 , and 
4356 \family typewriter
4357 1.
4358
4359 \family default
4360  and set that column's alignment to 
4361 \family sans
4362 right
4363 \family default
4364 .
4365  Type in the 
4366 \family typewriter
4367 1416
4368 \family default
4369
4370 \family typewriter
4371 462
4372 \family default
4373 , and 
4374 \family typewriter
4375 3402
4376 \begin_inset Formula $\times10^{18}$
4377 \end_inset
4378
4379
4380 \family default
4381  and set the extra column alignment to 
4382 \family typewriter
4383 @{} l
4384 \family default
4385 .
4386  Finally type in the word 
4387 \family typewriter
4388 Value
4389 \family default
4390  in the middle column, highlight it and the blank entry to its right, and
4391  check the 
4392 \family sans
4393 Special Cell
4394 \family default
4395  entry 
4396 \family sans
4397 multicolumn
4398 \family default
4399 .
4400  Easy, right? 
4401 \end_layout
4402
4403 \begin_layout Subsection
4404 A Better Decimal-Alignment Solution
4405 \end_layout
4406
4407 \begin_layout Standard
4408 An alternative way to have decimal alignment in tables is through the 
4409 \family typewriter
4410 dcolumn
4411 \family default
4412  package.
4413  Add the following to the LateX preamble:
4414 \end_layout
4415
4416 \begin_layout LyX-Code
4417
4418 \backslash
4419 usepackage{dcolumn}
4420 \end_layout
4421
4422 \begin_layout LyX-Code
4423
4424 \backslash
4425 newcolumntype{d}[1]{D{.}{.}{#1}}
4426 \end_layout
4427
4428 \begin_layout Standard
4429 To have a column decimally aligned, enter in the 
4430 \family sans
4431 Special Column Alignment
4432 \family default
4433  box of the 
4434 \family sans
4435 Table
4436 \family default
4437  dialog the following:
4438 \end_layout
4439
4440 \begin_layout LyX-Code
4441 d{number of decimals of the data}
4442 \end_layout
4443
4444 \begin_layout Standard
4445 To create extra column space just increase the number of decimals in 
4446 \family typewriter
4447 d{}
4448 \family default
4449 .
4450  Setting the multicolumn attribute for a single cell makes it insensitive
4451  to the decimal alignment which comes in handy as well.
4452  A drawback of this method is that math mode is not allowed in a column
4453  with decimal alignment except if the multicolumn attribute is set.
4454 \end_layout
4455
4456 \begin_layout Standard
4457 This method offers the same flexibility as the 
4458 \family typewriter
4459 dcolumn
4460 \family default
4461  package.
4462  One could, for example, change the alignment separator, and have different
4463  alignment separators for different columns by defining multiple column
4464  types in the preamble.
4465  The syntax is as follows: 
4466 \end_layout
4467
4468 \begin_layout LyX-Code
4469 D{inputsep}{outputsep}{decimal places}
4470 \end_layout
4471
4472 \begin_layout Standard
4473 The interested reader is directed towards the 
4474 \family typewriter
4475 dcolumn
4476 \family default
4477  package documentation for more details.
4478 \end_layout
4479
4480 \begin_layout Section
4481 Itemize Bullet Selection
4482 \begin_inset LatexCommand \label{sec:bullet}
4483
4484 \end_inset
4485
4486
4487 \end_layout
4488
4489 \begin_layout Standard
4490 by
4491 \noun on
4492  Allan Rae
4493 \end_layout
4494
4495 \begin_layout Subsection
4496 Introduction
4497 \end_layout
4498
4499 \begin_layout Standard
4500 LyX provides 216 bullet shapes that can be accessed from a simple dialog.
4501  Using this dialog you can easily specify what bullet shape to use at each
4502  level of an itemized list.
4503  These settings are document-wide so you won't be able to specify different
4504  sets of bullets for different paragraphs
4505 \begin_inset Foot
4506 status collapsed
4507
4508 \begin_layout Standard
4509 Well, actually you can but you'll have to do it by hand.
4510 \end_layout
4511
4512 \end_inset
4513
4514 .
4515 \end_layout
4516
4517 \begin_layout Subsection
4518 How it looks
4519 \end_layout
4520
4521 \begin_layout Standard
4522 Open the dialog by selecting the 
4523 \family sans
4524 \bar under
4525 D
4526 \bar default
4527 ocument\SpecialChar \menuseparator
4528
4529 \bar under
4530 S
4531 \bar default
4532 ettings
4533 \family default
4534  menu item and then select the 
4535 \family sans
4536 \bar under
4537 B
4538 \bar default
4539 ullets
4540 \family default
4541  tab.
4542 \end_layout
4543
4544 \begin_layout Standard
4545 The dialog provides you with a table of bullet shapes.
4546  A column of buttons on the left of the table provides access to the six
4547  different panels of bullet shapes.
4548  The row of buttons across the top is used to select which bullet depth
4549  you are changing.
4550  A text entry under the table shows the currently selected bullet shape's
4551  LaTeX equivalent and this can be edited if desired.
4552  If you do modify the text you will also need to specify any needed packages
4553  in the LaTeX preamble.
4554 \end_layout
4555
4556 \begin_layout Standard
4557 The six panels are divided up by the packages they require.
4558  The following table shows the mappings from button name to LaTeX packages.
4559 \end_layout
4560
4561 \begin_layout Standard
4562 \align center
4563 \begin_inset Tabular
4564 <lyxtabular version="3" rows="7" columns="2">
4565 <features>
4566 <column alignment="center" valignment="top" leftline="true" width="0pt">
4567 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
4568 <row topline="true" bottomline="true">
4569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4570 \begin_inset Text
4571
4572 \begin_layout Standard
4573
4574 \family roman
4575 \series medium
4576 \shape up
4577 \size normal
4578 \emph off
4579 \bar no
4580 \noun off
4581 \color none
4582 Button
4583 \end_layout
4584
4585 \end_inset
4586 </cell>
4587 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4588 \begin_inset Text
4589
4590 \begin_layout Standard
4591
4592 \family roman
4593 \series medium
4594 \shape up
4595 \size normal
4596 \emph off
4597 \bar no
4598 \noun off
4599 \color none
4600 Packages Required
4601 \end_layout
4602
4603 \end_inset
4604 </cell>
4605 </row>
4606 <row topline="true">
4607 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4608 \begin_inset Text
4609
4610 \begin_layout Standard
4611
4612 \family sans
4613 \series medium
4614 \shape up
4615 \size normal
4616 \emph off
4617 \bar no
4618 \noun off
4619 \color none
4620 Standard
4621 \end_layout
4622
4623 \end_inset
4624 </cell>
4625 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4626 \begin_inset Text
4627
4628 \begin_layout Standard
4629
4630 \series medium
4631 \shape up
4632 \size normal
4633 \emph off
4634 \bar no
4635 \noun off
4636 \color none
4637 base LaTeX
4638 \end_layout
4639
4640 \end_inset
4641 </cell>
4642 </row>
4643 <row topline="true">
4644 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4645 \begin_inset Text
4646
4647 \begin_layout Standard
4648
4649 \family sans
4650 \series medium
4651 \shape up
4652 \size normal
4653 \emph off
4654 \bar no
4655 \noun off
4656 \color none
4657 Maths
4658 \end_layout
4659
4660 \end_inset
4661 </cell>
4662 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4663 \begin_inset Text
4664
4665 \begin_layout Standard
4666
4667 \family typewriter
4668 \series medium
4669 \shape up
4670 \size normal
4671 \emph off
4672 \bar no
4673 \noun off
4674 \color none
4675 amssymb.sty
4676 \end_layout
4677
4678 \end_inset
4679 </cell>
4680 </row>
4681 <row topline="true">
4682 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4683 \begin_inset Text
4684
4685 \begin_layout Standard
4686
4687 \family sans
4688 \series medium
4689 \shape up
4690 \size normal
4691 \emph off
4692 \bar no
4693 \noun off
4694 \color none
4695 Ding1
4696 \end_layout
4697
4698 \end_inset
4699 </cell>
4700 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4701 \begin_inset Text
4702
4703 \begin_layout Standard
4704
4705 \family typewriter
4706 \series medium
4707 \shape up
4708 \size normal
4709 \emph off
4710 \bar no
4711 \noun off
4712 \color none
4713 pifont.sty
4714 \end_layout
4715
4716 \end_inset
4717 </cell>
4718 </row>
4719 <row topline="true">
4720 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4721 \begin_inset Text
4722
4723 \begin_layout Standard
4724
4725 \family sans
4726 \series medium
4727 \shape up
4728 \size normal
4729 \emph off
4730 \bar no
4731 \noun off
4732 \color none
4733 Ding2
4734 \end_layout
4735
4736 \end_inset
4737 </cell>
4738 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4739 \begin_inset Text
4740
4741 \begin_layout Standard
4742
4743 \family typewriter
4744 \series medium
4745 \shape up
4746 \size normal
4747 \emph off
4748 \bar no
4749 \noun off
4750 \color none
4751 pifont.sty
4752 \end_layout
4753
4754 \end_inset
4755 </cell>
4756 </row>
4757 <row topline="true">
4758 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4759 \begin_inset Text
4760
4761 \begin_layout Standard
4762
4763 \family sans
4764 \series medium
4765 \shape up
4766 \size normal
4767 \emph off
4768 \bar no
4769 \noun off
4770 \color none
4771 Ding3
4772 \end_layout
4773
4774 \end_inset
4775 </cell>
4776 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4777 \begin_inset Text
4778
4779 \begin_layout Standard
4780
4781 \family typewriter
4782 \series medium
4783 \shape up
4784 \size normal
4785 \emph off
4786 \bar no
4787 \noun off
4788 \color none
4789 pifont.sty
4790 \end_layout
4791
4792 \end_inset
4793 </cell>
4794 </row>
4795 <row topline="true" bottomline="true">
4796 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4797 \begin_inset Text
4798
4799 \begin_layout Standard
4800
4801 \family sans
4802 \series medium
4803 \shape up
4804 \size normal
4805 \emph off
4806 \bar no
4807 \noun off
4808 \color none
4809 Ding4
4810 \end_layout
4811
4812 \end_inset
4813 </cell>
4814 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4815 \begin_inset Text
4816
4817 \begin_layout Standard
4818
4819 \family typewriter
4820 \series medium
4821 \shape up
4822 \size normal
4823 \emph off
4824 \bar no
4825 \noun off
4826 \color none
4827 pifont.sty
4828 \end_layout
4829
4830 \end_inset
4831 </cell>
4832 </row>
4833 </lyxtabular>
4834
4835 \end_inset
4836
4837
4838 \end_layout
4839
4840 \begin_layout Standard
4841 LyX doesn't stop you using bullets from packages you don't have.
4842  If you get errors from LaTeX when you try to view or print the file then
4843  its likely you are missing a package.
4844  LyX doesn't restrict your use since you may be editing locally and exporting
4845  elsewhere.
4846 \end_layout
4847
4848 \begin_layout Subsection
4849 How to use it
4850 \end_layout
4851
4852 \begin_layout Standard
4853 Select which bullet depth you want to change then select the bullet shape
4854  and size.
4855
4856 \family sans
4857  
4858 \family default
4859 Any changes will not be visible in LyX, but are visible when viewing the
4860  document using xdvi or ghostview.
4861 \end_layout
4862
4863 \begin_layout Standard
4864 You can reset a bullet shape to the default simply by clicking your right
4865  mouse button on the appropriate bullet depth button.
4866 \end_layout
4867
4868 \begin_layout Standard
4869 If you 
4870 \emph on
4871 really
4872 \emph default
4873  want to have multiple sets of paragraphs with different sets of bullets
4874  in each then you're going to have to get your hands dirty.
4875  The itemize bullet selection dialog can help though because it provides
4876  you with the LaTeX code for a wide range of bullet shapes.
4877  To make your own custom paragraphs you have the following options:
4878 \end_layout
4879
4880 \begin_layout Standard
4881 \begin_inset ERT
4882 status inlined
4883
4884 \begin_layout Standard
4885
4886 \backslash
4887 let
4888 \backslash
4889 savelabelitemi=
4890 \backslash
4891 labelitemi
4892 \end_layout
4893
4894 \end_inset
4895
4896
4897 \end_layout
4898
4899 \begin_layout Standard
4900 \begin_inset ERT
4901 status inlined
4902
4903 \begin_layout Standard
4904
4905 \backslash
4906 renewcommand
4907 \backslash
4908 labelitemi[0]{
4909 \backslash
4910 small
4911 \backslash
4912 (
4913 \backslash
4914 sharp
4915 \backslash
4916 )}
4917 \end_layout
4918
4919 \end_inset
4920
4921
4922 \end_layout
4923
4924 \begin_layout Itemize
4925 Use the LaTeX command 
4926 \family typewriter
4927
4928 \backslash
4929 renewcommand{}{}
4930 \family default
4931  to specify a new bullet shape for a given depth.
4932  You'll also need to save the current bullet shape so you can restore it
4933  again afterwards.
4934  In this itemized list the following LaTeX code was used to change the bullet
4935  used for the first depth.
4936 \newline
4937
4938 \family typewriter
4939
4940 \backslash
4941 let
4942 \backslash
4943 savelabelitemi=
4944 \backslash
4945 labelitemi
4946 \family default
4947  
4948 \family typewriter
4949
4950 \newline
4951
4952 \backslash
4953 renewcommand
4954 \backslash
4955 labelitemi[0]{
4956 \backslash
4957 small
4958 \backslash
4959 (
4960 \backslash
4961 sharp
4962 \backslash
4963 )}
4964 \newline
4965
4966 \family default
4967 Note that the itemize depth is specified in Roman numerals as part of the
4968  
4969 \family typewriter
4970
4971 \backslash
4972 labelitem
4973 \family default
4974  command.
4975 \end_layout
4976
4977 \begin_layout Itemize
4978 \begin_inset ERT
4979 status inlined
4980
4981 \begin_layout Standard
4982 [
4983 \backslash
4984 (
4985 \backslash
4986 star
4987 \backslash
4988 )]
4989 \end_layout
4990
4991 \end_inset
4992
4993  Specify each individual entry by starting each item with the bullet shape
4994  enclosed in square brackets and set as TeX.
4995  For example, this item was started with 
4996 \family typewriter
4997 [
4998 \backslash
4999 (
5000 \backslash
5001 star
5002 \backslash
5003 )]
5004 \family default
5005 .
5006 \end_layout
5007
5008 \begin_layout Standard
5009 \begin_inset ERT
5010 status inlined
5011
5012 \begin_layout Standard
5013
5014 \backslash
5015 renewcommand
5016 \backslash
5017 labelitemi[0]{
5018 \backslash
5019 savelabelitemi}
5020 \end_layout
5021
5022 \end_inset
5023
5024
5025 \end_layout
5026
5027 \begin_layout Standard
5028 You'll also need to revert the labelitem back to its previous setting for
5029  the global bullet shape settings to remain in effect.
5030  The way used here was:
5031 \newline
5032
5033 \family typewriter
5034
5035 \backslash
5036 renewcommand
5037 \backslash
5038 labelitemi[0]{
5039 \backslash
5040 savelabelitemi}
5041 \end_layout
5042
5043 \begin_layout Chapter
5044 Special Document Classes
5045 \end_layout
5046
5047 \begin_layout Section
5048 AMS LaTeX
5049 \end_layout
5050
5051 \begin_layout Standard
5052 by 
5053 \noun on
5054 David Johnson
5055 \end_layout
5056
5057 \begin_layout Standard
5058 \begin_inset VSpace bigskip
5059 \end_inset
5060
5061
5062 \end_layout
5063
5064 \begin_layout Standard
5065 \noindent
5066 The AMS LaTeX layouts are set up to conform to suggested styles for mathematical
5067  papers to be submitted to American Mathematical Society publications.
5068  The layouts are not tailored to a specific journal, but easily can be.
5069  You should refer to the AMS documentation for specific instructions for
5070  each journal (usually it will entail only changing a single line in the
5071  TeX output).
5072  That documentation is available on the Web at 
5073 \begin_inset LatexCommand \url{http://www.ams.org}
5074
5075 \end_inset
5076
5077  or by ftp at 
5078 \begin_inset LatexCommand \url{ftp://ftp.ams.org/pub/tex/amslatex/}
5079
5080 \end_inset
5081
5082 .These layouts are appropriate, and useful, for any mathematical writing.
5083  There are currently 4 distinct AMS LaTeX layouts: 
5084 \end_layout
5085
5086 \begin_layout Enumerate
5087 amsart: The standard AMS-article format.
5088  All results and similar statements are numbered as 
5089 \begin_inset Formula $(n.m)$
5090 \end_inset
5091
5092 , where the first number refers to the section, and the second refers to
5093  the total number of results (Theorems, Corollaries, Propositions, Definitions
5094  and Remarks, etc.) in that section.
5095  There are also many (but not all) environments available unnumbered, which
5096  is occasionally needed.
5097  Unnumbered environments indicated by an asterisk at the end.
5098 \end_layout
5099
5100 \begin_layout Enumerate
5101 amsart-seq: Here, numbering for each type of statement is in its own sequence,
5102  with no reference to the section number.
5103  There are also many (but not all) environments available unnumbered, which
5104  is occasionally needed.
5105  Unnumbered environments indicated by an asterisk at the end.
5106 \end_layout
5107
5108 \begin_layout Enumerate
5109 amsart-plain: This one is even more terse, since all the environments are
5110  unnumbered.
5111 \end_layout
5112
5113 \begin_layout Enumerate
5114 amsbook: the standard AMS book (really, monograph) format.
5115  Numbering is similar to the amsart layout, except that all numbering is
5116  by 
5117 \begin_inset Formula $(n.m.p)$
5118 \end_inset
5119
5120 , where the first number refers to the chapter, the second to the section,
5121  and the third is the number of the results (Theorems, Corollaries, Propositions
5122 , Definitions and Remarks, etc.) in that section.
5123  There are also many (but not all) environments available unnumbered, which
5124  is occasionally needed.
5125  Unnumbered environments indicated by an asterisk at the end.
5126 \end_layout
5127
5128 \begin_layout Standard
5129 Any AMS LyX file can be converted to either of the numbering schemes by
5130  simply changing the document class in the 
5131 \family sans
5132 \bar under
5133 D
5134 \bar default
5135 ocument\SpecialChar \menuseparator
5136
5137 \bar under
5138 S
5139 \bar default
5140 ettings
5141 \family default
5142  dialog.
5143  
5144 \end_layout
5145
5146 \begin_layout Subsection
5147 What these layouts provide
5148 \end_layout
5149
5150 \begin_layout Standard
5151 There is a long list of included environments provided by these layouts.
5152  Most mathematical papers or books will set as special statements most of
5153  these environments, in AMS-LaTeX there is an opportunity to define an unlimited
5154  variety of such declarations.
5155  However, the AMS recommends the environments that are available in LyX.
5156  The list of environments (not counting the standard environments such as
5157  
5158 \family sans
5159 sections, bibliography, title, author, date
5160 \family default
5161 ), is:
5162 \end_layout
5163
5164 \begin_layout Description
5165 Theorem This is typically used for the statements of major results.
5166  The word 
5167 \begin_inset Quotes eld
5168 \end_inset
5169
5170
5171 \family sans
5172 Theorem
5173 \family default
5174
5175 \begin_inset Quotes erd
5176 \end_inset
5177
5178  appears in bold type, along with an automatically-determined number (an
5179  unnumbered version, 
5180 \family sans
5181 Theorem*
5182 \family default
5183 , is also available).
5184  The text is italicized.
5185 \end_layout
5186
5187 \begin_layout Description
5188 Corollary This is used for statements which follow fairly directly from
5189  previous statements.
5190  Again, these can be major results.
5191  Unnumbered version 
5192 \family sans
5193 Corollary*
5194 \family default
5195  is available.
5196 \end_layout
5197
5198 \begin_layout Description
5199 Lemma These are smaller results needed to prove other statements.
5200 \end_layout
5201
5202 \begin_layout Description
5203 Proposition These are less major results which (hopefully) add to the general
5204  theory being discussed.
5205 \end_layout
5206
5207 \begin_layout Description
5208 Conjecture These are statements provided without justification, which the
5209  author does not know how to prove, but which seem to be true (to the author,
5210  at least).
5211 \end_layout
5212
5213 \begin_layout Description
5214 Criterion A required condition.
5215 \end_layout
5216
5217 \begin_layout Description
5218 Algorithm A general procedure to be used.
5219 \end_layout
5220
5221 \begin_layout Description
5222 Axiom This is a property or statement taken as true within the system being
5223  discussed.
5224 \end_layout
5225
5226 \begin_layout Description
5227 Definition Guess what this is for.
5228  The font, both on-screen and in the output, is different for this environment
5229  than for the previous ones.
5230  The heading (
5231 \begin_inset Quotes eld
5232 \end_inset
5233
5234 definition
5235 \begin_inset Quotes erd
5236 \end_inset
5237
5238 ) is still set in boldface, along with the number, if any, but the rest
5239  is set upright.
5240 \end_layout
5241
5242 \begin_layout Description
5243 Example Typeset similarly to Definition.
5244 \end_layout
5245
5246 \begin_layout Description
5247 Condition
5248 \end_layout
5249
5250 \begin_layout Description
5251 Problem
5252 \end_layout
5253
5254 \begin_layout Description
5255 Exercise
5256 \end_layout
5257
5258 \begin_layout Description
5259 Remark This environment is also a new type of theorem.
5260  This is set with the word Remark in italics, and the rest upright.
5261 \end_layout
5262
5263 \begin_layout Description
5264 Note Set similarly to the Remark environment.
5265 \end_layout
5266
5267 \begin_layout Description
5268 Notation
5269 \end_layout
5270
5271 \begin_layout Description
5272 Claim
5273 \end_layout
5274
5275 \begin_layout Description
5276 Summary
5277 \end_layout
5278
5279 \begin_layout Description
5280 Acknowledgement
5281 \end_layout
5282
5283 \begin_layout Description
5284 Case Generally, these are used to break up long arguments, using specific
5285  instances of some condition.
5286  The numbering scheme for cases is on its own, not together with other numbered
5287  statements.
5288  
5289 \end_layout
5290
5291 \begin_layout Description
5292 Conclusion
5293 \end_layout
5294
5295 \begin_layout Description
5296 Fact 
5297 \end_layout
5298
5299 \begin_layout Description
5300 Proof The word 
5301 \begin_inset Quotes eld
5302 \end_inset
5303
5304
5305 \shape italic
5306 Proof
5307 \shape default
5308
5309 \begin_inset Quotes erd
5310 \end_inset
5311
5312  is set in italics, but the rest is set upright.
5313  At the end of this environment (other environments can be nested within
5314  this one, of course) a QED symbol (usually a square, but it can vary with
5315  different styles) is placed.
5316 \end_layout
5317
5318 \begin_layout Description
5319 Address This should be the author's permanent address.
5320 \end_layout
5321
5322 \begin_layout Description
5323 Current\InsetSpace ~
5324 Address This should be the author's temporary address at the time
5325  of submission, if different from the Address.
5326 \end_layout
5327
5328 \begin_layout Description
5329 Email Author's e-mail address
5330 \end_layout
5331
5332 \begin_layout Description
5333 URL Author's Web address, if desired.
5334 \end_layout
5335
5336 \begin_layout Description
5337 Keywords Key words or phrases used to identify specific topics discussed
5338  in the paper.
5339 \end_layout
5340
5341 \begin_layout Description
5342 Subjectclass These refer to the AMS Subject Classifications, published and
5343  described in 
5344 \emph on
5345 Mathematical Reviews
5346 \emph default
5347 .
5348  These are also available online at the AMS cites listed above.
5349 \end_layout
5350
5351 \begin_layout Description
5352 Thanks
5353 \end_layout
5354
5355 \begin_layout Description
5356 Dedicatory
5357 \end_layout
5358
5359 \begin_layout Description
5360 Translator
5361 \end_layout
5362
5363 \begin_layout Standard
5364 In addition, these environments automatically provide the AMS LaTeX and
5365  AMS fonts packages.
5366  They need to be available on your system in order to use these environments.
5367 \end_layout
5368
5369 \begin_layout Section
5370 Dinbrief
5371 \end_layout
5372
5373 \begin_layout Standard
5374 The document class 
5375 \family sans
5376 dinbrief
5377 \family default
5378  can be used to type letters according to German conventions.
5379  A template file is included in 
5380 \family typewriter
5381 .../lyx/share/templates
5382 \family default
5383  for you to use as a starting point.
5384 \end_layout
5385
5386 \begin_layout Section
5387 Paper
5388 \end_layout
5389
5390 \begin_layout Standard
5391 The document class 
5392 \family sans
5393 paper
5394 \family default
5395  provides an alternative to the standard 
5396 \family sans
5397 article
5398 \family default
5399  class.
5400  It provides similar functionality, but you might prefer this layout with
5401  sans serif sections, headings, and more.
5402 \end_layout
5403
5404 \begin_layout Section
5405 A&A Paper
5406 \end_layout
5407
5408 \begin_layout Standard
5409 by 
5410 \noun on
5411 Peter Sütterlin
5412 \end_layout
5413
5414 \begin_layout Subsection
5415 Introduction
5416 \end_layout
5417
5418 \begin_layout Standard
5419 This section describes how LyX can be used to write articles for submission
5420  to the scientific journal 
5421 \emph on
5422 Astronomy and Astrophysics
5423 \emph default
5424  (
5425 \begin_inset LatexCommand \url[www.edpsciences.fr/aa/]{http://www.edpsciences.fr/aa/}
5426
5427 \end_inset
5428
5429 )
5430 \emph on
5431  
5432 \emph default
5433 using
5434 \emph on
5435  
5436 \emph default
5437 Version 5.01 of the document class 
5438 \family typewriter
5439 aa.cls
5440 \family default
5441 .
5442  This package can be downloaded from the ftp site
5443 \end_layout
5444
5445 \begin_layout Standard
5446 \begin_inset VSpace medskip
5447 \end_inset
5448
5449
5450 \end_layout
5451
5452 \begin_layout Standard
5453 \align center
5454 \begin_inset LatexCommand \url{ftp://ftp.edpsciences.org/pub/aa/readme.html}
5455
5456 \end_inset
5457
5458
5459 \end_layout
5460
5461 \begin_layout Standard
5462 \begin_inset VSpace medskip
5463 \end_inset
5464
5465
5466 \end_layout
5467
5468 \begin_layout Standard
5469 A manual comes together with that package, and this text is not meant to
5470  replace the original manual but merely a short guide how to realize the
5471  correct form of your paper.
5472  
5473 \end_layout
5474
5475 \begin_layout Standard
5476 Please note that the publisher of the journal was changed from Springer
5477  to EDP Sciences starting January 1, 2001.
5478  That change implicated also some slight changes of the style files, namely
5479  the removal of the thesaurus command.
5480  The LyX class aa supports the newest version of these style files, V 5.01.
5481  If you have an older version installed, please upgrade.
5482  For compatibility, the old (version 4) layout has been kept as 
5483 \family sans
5484 article (A&A V4)
5485 \family default
5486 .
5487  Please refer to the comments in 
5488 \family typewriter
5489 LyXDir/layouts/aapaper.layout
5490 \family default
5491 .
5492 \end_layout
5493
5494 \begin_layout Subsection
5495 Getting started
5496 \end_layout
5497
5498 \begin_layout Standard
5499 It is recommended you start from the example template distributed with LyX.
5500  If you are not using a template, note the following settings:
5501 \end_layout
5502
5503 \begin_layout Itemize
5504 Select 
5505 \family sans
5506 article (A&A)
5507 \family default
5508  in the 
5509 \family sans
5510 \bar under
5511 D
5512 \bar default
5513 ocument\SpecialChar \menuseparator
5514
5515 \bar under
5516 S
5517 \bar default
5518 ettings
5519 \family default
5520  dialog (OK, that one was obvious).
5521 \end_layout
5522
5523 \begin_layout Itemize
5524 Don't change the option 
5525 \family sans
5526 Page\InsetSpace ~
5527 style
5528 \family default
5529 : Leave it set to 
5530 \family sans
5531 default
5532 \family default
5533 .
5534  The whole layout is done by the macros, you shouldn't change anything.
5535 \end_layout
5536
5537 \begin_layout Subsection
5538 The header block
5539 \end_layout
5540
5541 \begin_layout Standard
5542 First thing to enter is the header information.
5543  It consists of seven entries, of which some are optional.
5544  They are
5545 \end_layout
5546
5547 \begin_layout Itemize
5548
5549 \family sans
5550 Title
5551 \family default
5552 : [required] 
5553 \end_layout
5554
5555 \begin_layout Itemize
5556
5557 \family sans
5558 Subtitle
5559 \family default
5560 : [optional] 
5561 \end_layout
5562
5563 \begin_layout Itemize
5564
5565 \family sans
5566 Author
5567 \family default
5568 : [required]
5569 \end_layout
5570
5571 \begin_layout Itemize
5572
5573 \family sans
5574 Address
5575 \family default
5576 : [required]
5577 \end_layout
5578
5579 \begin_layout Itemize
5580
5581 \family sans
5582 Offprints
5583 \family default
5584 : [optional] if more than one author: whom to contact for offprint requests.
5585 \end_layout
5586
5587 \begin_layout Itemize
5588
5589 \family sans
5590 Mail
5591 \family default
5592 : [optional] mail address for contacts.
5593 \end_layout
5594
5595 \begin_layout Itemize
5596
5597 \family sans
5598 Date
5599 \family default
5600 : [required].
5601  Suggested format is 
5602 \family typewriter
5603 Received: <date>; Accepted <date> 
5604 \end_layout
5605
5606 \begin_layout Standard
5607 There is no need to issue the 
5608 \family typewriter
5609
5610 \backslash
5611 maketitle
5612 \family default
5613  command, this is done automatically by LyX when the header is finished.
5614  Although the order of the single header entries doesn't matter it is advised
5615  to keep the above sequence, just to get the best optics and meets the layout
5616  of the real document.
5617 \end_layout
5618
5619 \begin_layout Standard
5620 If you want to place footnotes in the header block, e.g.
5621 \begin_inset ERT
5622 status collapsed
5623
5624 \begin_layout Standard
5625
5626 \backslash
5627  
5628 \end_layout
5629
5630 \end_inset
5631
5632 to state your present address, just use the standard footnote via 
5633 \family sans
5634 \bar under
5635 I
5636 \bar default
5637 nsert\SpecialChar \menuseparator
5638
5639 \bar under
5640 F
5641 \bar default
5642 ootnote.
5643  
5644 \family default
5645 LyX will automagically use the term 
5646 \family typewriter
5647
5648 \backslash
5649 thanks{}
5650 \family default
5651  in that case.
5652 \end_layout
5653
5654 \begin_layout Standard
5655 In addition to these topics, the macros use three additional LaTeX commands
5656  that have no counterpart in LyX:
5657 \end_layout
5658
5659 \begin_layout Itemize
5660
5661 \family typewriter
5662
5663 \backslash
5664 and
5665 \family default
5666  to separate different names for more than one author and institute, respectivel
5667 y.
5668 \end_layout
5669
5670 \begin_layout Itemize
5671
5672 \family typewriter
5673
5674 \backslash
5675 inst{<nr>}
5676 \family default
5677 to mark corresponding author/institute pairs.
5678  The institutes are numbered sequentially as they appear in the 
5679 \family sans
5680 Address
5681 \family default
5682  field, so you have to put a marker to each author.
5683 \end_layout
5684
5685 \begin_layout Itemize
5686
5687 \family typewriter
5688
5689 \backslash
5690 email{address}
5691 \family default
5692  to supply an email address for fast contact.
5693 \end_layout
5694
5695 \begin_layout Standard
5696 In all cases, the appropriate command has to be entered in LyX an marked
5697  as LaTeX code.
5698  See the examples.
5699  
5700 \end_layout
5701
5702 \begin_layout Subsection
5703 The abstract
5704 \end_layout
5705
5706 \begin_layout Standard
5707 The abstract should immediately follow the header block.
5708  With version 5 the abstract environment was changed to a command, and there
5709  is now a resctriction to only one paragraph.
5710  In addition, it should contain an entry with the keywords.
5711  This is not yet implemented for LyX, therefore you have to enter the LaTeX
5712  command 
5713 \family typewriter
5714
5715 \backslash
5716 keywords{}
5717 \family default
5718  by hand and mark it as LaTeX code.
5719  Refer to the example paper.
5720 \end_layout
5721
5722 \begin_layout Subsection
5723 Supported environments
5724 \end_layout
5725
5726 \begin_layout Standard
5727 The A&A paper layout supports the following environments for structuring
5728  your text:
5729 \end_layout
5730
5731 \begin_layout Itemize
5732
5733 \family sans
5734 Standard
5735 \end_layout
5736
5737 \begin_layout Itemize
5738
5739 \family sans
5740 Section
5741 \end_layout
5742
5743 \begin_layout Itemize
5744
5745 \family sans
5746 Subsection
5747 \end_layout
5748
5749 \begin_layout Itemize
5750
5751 \family sans
5752 Subsubsection
5753 \end_layout
5754
5755 \begin_layout Itemize
5756
5757 \family sans
5758 Itemize
5759 \end_layout
5760
5761 \begin_layout Itemize
5762
5763 \family sans
5764 Enumerate
5765 \end_layout
5766
5767 \begin_layout Itemize
5768
5769 \family sans
5770 Description
5771 \end_layout
5772
5773 \begin_layout Itemize
5774
5775 \family sans
5776 Caption
5777 \end_layout
5778
5779 \begin_layout Itemize
5780
5781 \family sans
5782 Abstract
5783 \end_layout
5784
5785 \begin_layout Itemize
5786
5787 \family sans
5788 Acknowledgment
5789 \end_layout
5790
5791 \begin_layout Itemize
5792
5793 \family sans
5794 Bibliography
5795 \end_layout
5796
5797 \begin_layout Itemize
5798
5799 \family sans
5800 LaTeX
5801 \end_layout
5802
5803 \begin_layout Subsection
5804 Commands not supported by LyX
5805 \end_layout
5806
5807 \begin_layout Standard
5808 Some commands are not yet supported by the 
5809 \family sans
5810 paper (A&A)
5811 \family default
5812  layout for LyX.
5813  Some have already been mentioned.
5814  For the sake of completeness, they are listed all together here:
5815 \end_layout
5816
5817 \begin_layout Itemize
5818
5819 \family typewriter
5820
5821 \backslash
5822 and
5823 \end_layout
5824
5825 \begin_layout Itemize
5826
5827 \family typewriter
5828
5829 \backslash
5830 email
5831 \end_layout
5832
5833 \begin_layout Itemize
5834
5835 \family typewriter
5836
5837 \backslash
5838 appendix
5839 \end_layout
5840
5841 \begin_layout Itemize
5842
5843 \family typewriter
5844
5845 \backslash
5846 authorrunning
5847 \end_layout
5848
5849 \begin_layout Itemize
5850
5851 \family typewriter
5852
5853 \backslash
5854 inst{}
5855 \end_layout
5856
5857 \begin_layout Itemize
5858
5859 \family typewriter
5860
5861 \backslash
5862 keywords{}
5863 \end_layout
5864
5865 \begin_layout Itemize
5866
5867 \family typewriter
5868
5869 \backslash
5870 object{}
5871 \end_layout
5872
5873 \begin_layout Itemize
5874
5875 \family typewriter
5876
5877 \backslash
5878 titlerunning{}
5879 \end_layout
5880
5881 \begin_layout Standard
5882 If you want to use any of these commands, you have to enter them yourself.
5883  
5884 \series bold
5885 Do not forget to mark them as LaTeX code!
5886 \end_layout
5887
5888 \begin_layout Subsection
5889 Figure and Table Floats
5890 \end_layout
5891
5892 \begin_layout Standard
5893 LyX provides support for the necessary float environments 
5894 \family sans
5895 figure, figure*, table 
5896 \family default
5897 and 
5898 \family sans
5899 table*
5900 \family default
5901 , therefore we won't tell much about it here.
5902  Refer to the 
5903 \emph on
5904 User's\InsetSpace ~
5905 Guide
5906 \emph default
5907 .
5908  Just remember that tables should be left-aligned.
5909  For that, select the table and change the alignment in 
5910 \family sans
5911 \bar under
5912 E
5913 \bar default
5914 dit\SpecialChar \menuseparator
5915
5916 \bar under
5917 P
5918 \bar default
5919 aragraph\InsetSpace ~
5920 Settings.
5921 \end_layout
5922
5923 \begin_layout Standard
5924 There is
5925 \family sans
5926  
5927 \family default
5928 only one special thing: the figures with caption besides the figure.
5929  To create such a figure, you have to do the following:
5930 \end_layout
5931
5932 \begin_layout Enumerate
5933 Create a wide figure float: 
5934 \family sans
5935 \bar under
5936 I
5937 \bar default
5938 nsert\SpecialChar \menuseparator
5939 Flo
5940 \bar under
5941 a
5942 \bar default
5943 t\SpecialChar \menuseparator
5944 Figure
5945 \family default
5946 , then right click in the figure and select
5947 \family sans
5948  
5949 \bar under
5950 S
5951 \bar default
5952 pan\InsetSpace ~
5953 columns
5954 \family default
5955 .
5956 \end_layout
5957
5958 \begin_layout Enumerate
5959 Enter your caption text.
5960 \end_layout
5961
5962 \begin_layout Enumerate
5963 Press 
5964 \family sans
5965 Return
5966 \family default
5967  to move the cursor above the caption.
5968 \end_layout
5969
5970 \begin_layout Enumerate
5971 Insert your figure
5972 \end_layout
5973
5974 \begin_layout Enumerate
5975 Position the cursor behind the figure and insert a horizontal fill: 
5976 \family sans
5977 \bar under
5978 I
5979 \bar default
5980 nsert\SpecialChar \menuseparator
5981
5982 \bar under
5983 S
5984 \bar default
5985 pecial\InsetSpace ~
5986 Character
5987 \bar under
5988 \SpecialChar \menuseparator
5989 H
5990 \bar default
5991 orizontal\InsetSpace ~
5992 Fill
5993 \family default
5994 .
5995 \end_layout
5996
5997 \begin_layout Enumerate
5998 Switch to LaTeX mode: 
5999 \family sans
6000 M-c\InsetSpace ~
6001 t
6002 \family default
6003 .
6004 \end_layout
6005
6006 \begin_layout Enumerate
6007 Enter 
6008 \family typewriter
6009
6010 \backslash
6011 parbox[b]{55mm}{
6012 \family default
6013 .
6014  
6015 \series bold
6016 Do not close the brace!
6017 \end_layout
6018
6019 \begin_layout Enumerate
6020 Position the cursor behind the caption text, switch to LaTeX mode and insert
6021  the closing brace: 
6022 \family sans
6023 M-c\InsetSpace ~
6024
6025 \family typewriter
6026 }
6027 \family default
6028 .
6029 \end_layout
6030
6031 \begin_layout Standard
6032 Also, refer to the figures in the example paper.
6033 \end_layout
6034
6035 \begin_layout Subsection
6036 Referee layout
6037 \end_layout
6038
6039 \begin_layout Standard
6040 For submission, the paper has to be formated in a special double-spacing
6041  layout.
6042  For this purpose, you have to give the option 
6043 \family typewriter
6044 referee
6045 \family default
6046  to the documentclass.
6047  This must be done using the extra class options field in the 
6048 \family sans
6049 \bar under
6050 D
6051 \bar default
6052 ocument\SpecialChar \menuseparator
6053
6054 \bar under
6055 S
6056 \bar default
6057 ettings
6058 \family default
6059  dialog.
6060  Just enter the string 
6061 \family typewriter
6062 referee
6063 \family default
6064  there.
6065 \end_layout
6066
6067 \begin_layout Subsection
6068 The example paper
6069 \end_layout
6070
6071 \begin_layout Standard
6072 The 
6073 \family sans
6074 Examples
6075 \family default
6076  directory contains an example paper written with LyX.
6077  It is the example paper from the original macro package, translated to
6078  LyX.
6079  Use it for inspiration, and compare the original LaTeX code with LyX way
6080  of writing.
6081 \end_layout
6082
6083 \begin_layout Section
6084 AASTeX
6085 \end_layout
6086
6087 \begin_layout Standard
6088 by 
6089 \noun on
6090 Mike Ressler
6091 \end_layout
6092
6093 \begin_layout Subsection
6094 Introduction
6095 \end_layout
6096
6097 \begin_layout Standard
6098 AASTeX is a set of macros produced by the American Astronomical Society
6099  to facilitate electronic manuscript submission to the three journals they
6100  publish: the Astrophysical Journal (including the Letters and Supplement),
6101  the Astronomical Journal, and the Publications of the Astronomical Society
6102  of the Pacific.
6103  LyX has proven to be an excellent tool for generating these documents,
6104  especially given its equation, citation, and figure handling capabilities.
6105  LyX requires version 5.0 (or higher) of these macros; preferably 5.2, which
6106  is the version described here, or higher.
6107  Versions prior to 5.0 are intended for use with LaTeX2.09 and are fundamentally
6108  incompatible with LyX.
6109  The AASTeX package may be downloaded from the AASTeX Web site
6110 \end_layout
6111
6112 \begin_layout Standard
6113 \begin_inset VSpace medskip
6114 \end_inset
6115
6116
6117 \end_layout
6118
6119 \begin_layout Standard
6120 \align center
6121 \begin_inset LatexCommand \url{http://www.journals.uchicago.edu/AAS/AASTeX}
6122
6123 \end_inset
6124
6125
6126 \end_layout
6127
6128 \begin_layout Standard
6129 \begin_inset VSpace medskip
6130 \end_inset
6131
6132
6133 \end_layout
6134
6135 \begin_layout Standard
6136 A complete user guide is contained in that package and you should familiarize
6137  yourself with it thoroughly before embarking on writing a paper in LyX.
6138  LyX will not reduce the need to figure out all the AASTeX commands, it
6139  will only reduce the drudgery of typing everything in.
6140  It is your responsibility to ensure that the final exported LaTeX document
6141  conforms completely to the requirements of the journal to which you are
6142  submitting your paper.
6143 \end_layout
6144
6145 \begin_layout Subsection
6146 Starting a New Paper
6147 \end_layout
6148
6149 \begin_layout Standard
6150 I strongly suggest that you start with the AASTeX template file.
6151  Click on 
6152 \family sans
6153 \bar under
6154 F
6155 \bar default
6156 ile\SpecialChar \menuseparator
6157 New from 
6158 \bar under
6159 T
6160 \bar default
6161 emplate
6162 \family default
6163 , enter the new file name, then choose the 
6164 \family typewriter
6165 aastex.lyx
6166 \family default
6167  template.
6168  This will show the most common fields found in a manuscript.
6169  Simply overwrite the existing text (including the brackets, 
6170 \family typewriter
6171 <>
6172 \family default
6173 ) with the correct information.
6174  Many of the AASTeX commands and environments can be implemented directly
6175  in LyX, but some cannot: most noticeably 
6176 \family typewriter
6177
6178 \backslash
6179 altaffilmark
6180 \family default
6181  and 
6182 \family typewriter
6183
6184 \backslash
6185 altaffiltext
6186 \family default
6187 , which should stick out like a sore thumb if you actually just opened the
6188  template file.
6189  For commands such as these, the LaTeX code must be entered directly and
6190  marked as such.
6191  Such commands are referred to as ERT, or Evil Red Text.
6192  I tried to minimize the amount of ERT needed in an AASTeX document, but
6193  there is still a bit more required than any of us would like.
6194 \end_layout
6195
6196 \begin_layout Subsection
6197 Finishing Your Paper
6198 \end_layout
6199
6200 \begin_layout Standard
6201 When the paper is finished to your satisfaction and previews/prints correctly,
6202  there are a few 
6203 \begin_inset Quotes eld
6204 \end_inset
6205
6206 postprocessing
6207 \begin_inset Quotes erd
6208 \end_inset
6209
6210  actions which need to be done before you submit it to the journals.
6211  
6212 \end_layout
6213
6214 \begin_layout Enumerate
6215 Export your paper as a LaTeX file (
6216 \family sans
6217 \bar under
6218 F
6219 \bar default
6220 ile\SpecialChar \menuseparator
6221
6222 \bar under
6223 E
6224 \bar default
6225 xport\SpecialChar \menuseparator
6226
6227 \bar under
6228 L
6229 \bar default
6230 aTeX
6231 \family default
6232 ).
6233  
6234 \end_layout
6235
6236 \begin_layout Enumerate
6237 Edit the resulting 
6238 \family typewriter
6239 .tex
6240 \family default
6241  file with your favorite text editor
6242 \end_layout
6243
6244 \begin_deeper
6245 \begin_layout Enumerate
6246 remove the comment lines before the 
6247 \family typewriter
6248
6249 \backslash
6250 documentclass
6251 \family default
6252  command
6253 \end_layout
6254
6255 \begin_layout Enumerate
6256 remove the 
6257 \family typewriter
6258
6259 \backslash
6260 usepackage...{fontenc}
6261 \family default
6262  line if it appears (usually just after 
6263 \family typewriter
6264
6265 \backslash
6266 documentclass
6267 \family default
6268 }; also remove the 
6269 \family typewriter
6270
6271 \backslash
6272 secnumdepth
6273 \family default
6274  line if it appears.
6275 \end_layout
6276
6277 \begin_layout Enumerate
6278 remove everything between (and including) the 
6279 \family typewriter
6280
6281 \backslash
6282 makeatletter
6283 \family default
6284  and 
6285 \family typewriter
6286
6287 \backslash
6288 makeatother
6289 \family default
6290  commands, except for any commands you specifically put into the LaTeX preamble
6291  (which should appear immediately after the 
6292 \begin_inset Quotes eld
6293 \end_inset
6294
6295 User specified LaTeX commands
6296 \begin_inset Quotes erd
6297 \end_inset
6298
6299  comment in the 
6300 \family typewriter
6301 .tex
6302 \family default
6303  file).
6304 \end_layout
6305
6306 \end_deeper
6307 \begin_layout Enumerate
6308 Run the resulting file through LaTeX to make sure it still processes correctly.
6309 \end_layout
6310
6311 \begin_layout Enumerate
6312 Reread the journal requirements to make sure your filenames and formats
6313  are correct.
6314 \end_layout
6315
6316 \begin_layout Enumerate
6317 Submit it.
6318 \end_layout
6319
6320 \begin_layout Subsection
6321 Comments On Specific Commands
6322 \end_layout
6323
6324 \begin_layout Standard
6325 I will not describe the detailed usage of the individual AASTeX commands:
6326  the AASTeX User Guide (
6327 \family typewriter
6328 aasguide.tex
6329 \family default
6330 ) gives a good description of each.
6331  Thus it's probably easiest for me to go down the list as found in the guide
6332  and offer comments where necessary.
6333  So let's begin \SpecialChar \ldots{}
6334
6335 \end_layout
6336
6337 \begin_layout Subsubsection
6338 Things that work as expected
6339 \end_layout
6340
6341 \begin_layout Standard
6342 \begin_inset ERT
6343 status inlined
6344
6345 \begin_layout Standard
6346
6347 \backslash
6348 begin{sloppypar}
6349 \end_layout
6350
6351 \end_inset
6352
6353
6354 \end_layout
6355
6356 \begin_layout Standard
6357 Because they work as you might expect, I simply list them and the section
6358  they are found in: 
6359 \family typewriter
6360
6361 \backslash
6362 documentclass
6363 \family default
6364  (2.1.1), 
6365 \family typewriter
6366
6367 \backslash
6368 begin{document}
6369 \family default
6370  (2.2), 
6371 \family typewriter
6372
6373 \backslash
6374 title
6375 \family default
6376  (2.3), 
6377 \family typewriter
6378
6379 \backslash
6380 author
6381 \family default
6382  (2.3), 
6383 \family typewriter
6384
6385 \backslash
6386 affil
6387 \family default
6388  (2.3), 
6389 \family typewriter
6390
6391 \backslash
6392 abstract
6393 \family default
6394  (2.4), 
6395 \family typewriter
6396
6397 \backslash
6398 keywords
6399 \family default
6400  (2.5), 
6401 \family typewriter
6402
6403 \backslash
6404 section
6405 \family default
6406  (2.7), 
6407 \family typewriter
6408
6409 \backslash
6410 subsection
6411 \family default
6412  (2.7), 
6413 \family typewriter
6414
6415 \backslash
6416 subsubsection
6417 \family default
6418  (2.7), 
6419 \family typewriter
6420
6421 \backslash
6422 paragraph
6423 \family default
6424  (2.7),
6425 \family typewriter
6426  
6427 \backslash
6428 facility
6429 \family default
6430  (2.10), 
6431 \family typewriter
6432
6433 \backslash
6434 begin{displaymath}
6435 \family default
6436  (2.12), 
6437 \family typewriter
6438
6439 \backslash
6440 begin{equation}
6441 \family default
6442  (2.12), 
6443 \family typewriter
6444
6445 \backslash
6446 begin{eqnarray}
6447 \family default
6448  (2.12), 
6449 \family typewriter
6450
6451 \backslash
6452 begin{mathletters}
6453 \family default
6454  (2.12), 
6455 \family typewriter
6456
6457 \backslash
6458 begin{thebibliography}
6459 \family default
6460  (2.13.1), 
6461 \family typewriter
6462
6463 \backslash
6464 bibitem
6465 \family default
6466  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6467  graphicx figure commands (2.14.1),
6468 \family typewriter
6469  
6470 \backslash
6471 begin{table}
6472 \family default
6473  (2.15.4), 
6474 \family typewriter
6475
6476 \backslash
6477 begin{tabular}
6478 \family default
6479  (2.15.4), 
6480 \family typewriter
6481
6482 \backslash
6483 caption
6484 \family default
6485  (2.15.4), 
6486 \family typewriter
6487
6488 \backslash
6489 label
6490 \family default
6491  (2.15.4, amongst other places), 
6492 \family typewriter
6493
6494 \backslash
6495 tablerefs
6496 \family default
6497  (2.15.5), 
6498 \family typewriter
6499
6500 \backslash
6501 tablecomments
6502 \family default
6503  (2.15.5), 
6504 \family typewriter
6505
6506 \backslash
6507 url
6508 \family default
6509  (2.17.4), 
6510 \family typewriter
6511
6512 \backslash
6513 end{document}
6514 \family default
6515  (2.18).
6516 \end_layout
6517
6518 \begin_layout Standard
6519 The following style options also work correctly: 
6520 \family typewriter
6521 longabstract
6522 \family default
6523  (2.4), 
6524 \family typewriter
6525 preprint
6526 \family default
6527  (3.2.1), 
6528 \family typewriter
6529 preprint2
6530 \family default
6531  (3.2.2), 
6532 \family typewriter
6533 eqsecnum
6534 \family default
6535  (3.3), 
6536 \family typewriter
6537 flushrt
6538 \family default
6539  (3.4).
6540  Simply put them in the 
6541 \family sans
6542 Options
6543 \family default
6544  box in 
6545 \family sans
6546 Layout\SpecialChar \menuseparator
6547 Document
6548 \family default
6549 .
6550 \end_layout
6551
6552 \begin_layout Standard
6553 \begin_inset ERT
6554 status inlined
6555
6556 \begin_layout Standard
6557
6558 \backslash
6559 end{sloppypar}
6560 \end_layout
6561
6562 \end_inset
6563
6564
6565 \end_layout
6566
6567 \begin_layout Subsubsection
6568 Things that work, but require more comment
6569 \end_layout
6570
6571 \begin_layout Standard
6572 The following items work, but require a little more discussion:
6573 \end_layout
6574
6575 \begin_layout Itemize
6576 These items are reserved for use by the journal editors, but you can put
6577  them into the LaTeX preamble if you feel compelled to do so: 
6578 \family typewriter
6579
6580 \backslash
6581 received
6582 \family default
6583
6584 \family typewriter
6585
6586 \backslash
6587 revised
6588 \family default
6589
6590 \family typewriter
6591
6592 \backslash
6593 accepted
6594 \family default
6595
6596 \family typewriter
6597
6598 \backslash
6599 ccc
6600 \family default
6601
6602 \family typewriter
6603
6604 \backslash
6605 cpright
6606 \family default
6607  (all from 2.1.3)
6608 \end_layout
6609
6610 \begin_layout Itemize
6611 These items may be placed in the LaTeX preamble, and are included as blanks
6612  in the template file: 
6613 \family typewriter
6614
6615 \backslash
6616 slugcomment
6617 \family default
6618  (2.1.4), 
6619 \family typewriter
6620
6621 \backslash
6622 shorttitle
6623 \family default
6624  (2.1.5), 
6625 \family typewriter
6626
6627 \backslash
6628 shortauthors
6629 \family default
6630  (2.1.5)
6631 \end_layout
6632
6633 \begin_layout Itemize
6634
6635 \family typewriter
6636
6637 \backslash
6638 email
6639 \family default
6640  (2.3) -- can only be used 
6641 \begin_inset Quotes eld
6642 \end_inset
6643
6644 standalone
6645 \begin_inset Quotes erd
6646 \end_inset
6647
6648 , not in the middle of a paragraph.
6649  Use ERT if you need to embed it.
6650 \end_layout
6651
6652 \begin_layout Itemize
6653
6654 \family typewriter
6655
6656 \backslash
6657 and
6658 \family default
6659  (2.3) -- will have extra {} after it.
6660  This should not cause an error.
6661 \end_layout
6662
6663 \begin_layout Itemize
6664
6665 \family typewriter
6666
6667 \backslash
6668 notetoeditor
6669 \family default
6670  (2.6) -- can only be used 
6671 \begin_inset Quotes eld
6672 \end_inset
6673
6674 standalone
6675 \begin_inset Quotes erd
6676 \end_inset
6677
6678 , not in the middle of a paragraph.
6679  Use ERT if you need to embed it.
6680 \end_layout
6681
6682 \begin_layout Itemize
6683
6684 \family typewriter
6685
6686 \backslash
6687 placetable
6688 \family default
6689  (2.8) -- can't insert a cross-reference tag, you must type the tag name
6690  by hand
6691 \end_layout
6692
6693 \begin_layout Itemize
6694
6695 \family typewriter
6696
6697 \backslash
6698 placefigure
6699 \family default
6700  (2.8) -- same as for 
6701 \family typewriter
6702
6703 \backslash
6704 placetable
6705 \end_layout
6706
6707 \begin_layout Itemize
6708
6709 \family typewriter
6710
6711 \backslash
6712 acknowledgements
6713 \family default
6714  (2.9) -- will have extra {} after it.
6715  This should not cause an error.
6716 \end_layout
6717
6718 \begin_layout Itemize
6719
6720 \family typewriter
6721
6722 \backslash
6723 appendix
6724 \family default
6725  (2.11) -- will have extra {} after it.
6726  This should not cause an error.
6727 \end_layout
6728
6729 \begin_layout Itemize
6730
6731 \family typewriter
6732
6733 \backslash
6734 figcaption
6735 \family default
6736  (2.14.2) -- you can insert an optional filename argument by placing the cursor
6737  at the beginning of the text and selecting 
6738 \family sans
6739 Insert\SpecialChar \menuseparator
6740 Short Title
6741 \family default
6742 .
6743  
6744 \begin_inset Quotes eld
6745 \end_inset
6746
6747 Short Title
6748 \begin_inset Quotes erd
6749 \end_inset
6750
6751  inserts an optional argument of the type needed by 
6752 \family typewriter
6753
6754 \backslash
6755 figcaption
6756 \family default
6757 .
6758  Hopefully it will be renamed someday.
6759 \end_layout
6760
6761 \begin_layout Itemize
6762
6763 \family typewriter
6764
6765 \backslash
6766 objectname
6767 \family default
6768  (2.17.1) -- same as 
6769 \family typewriter
6770
6771 \backslash
6772 figcaption
6773 \family default
6774  for the catalog ID optional parameter
6775 \end_layout
6776
6777 \begin_layout Itemize
6778
6779 \family typewriter
6780
6781 \backslash
6782 dataset
6783 \family default
6784  (2.17.1) -- same as 
6785 \family typewriter
6786
6787 \backslash
6788 figcaption
6789 \family default
6790  for the catalog ID optional parameter
6791 \end_layout
6792
6793 \begin_layout Subsubsection
6794 Things not implemented, use ERT
6795 \end_layout
6796
6797 \begin_layout Standard
6798 \begin_inset ERT
6799 status inlined
6800
6801 \begin_layout Standard
6802
6803 \backslash
6804 begin{sloppypar}
6805 \end_layout
6806
6807 \end_inset
6808
6809
6810 \end_layout
6811
6812 \begin_layout Standard
6813
6814 \family typewriter
6815
6816 \backslash
6817 altaffilmark
6818 \family default
6819  (2.3), 
6820 \family typewriter
6821
6822 \backslash
6823 altaffiltext
6824 \family default
6825  (2.3), 
6826 \family typewriter
6827
6828 \backslash
6829 eqnum
6830 \family default
6831  (2.12), 
6832 \family typewriter
6833
6834 \backslash
6835 setcounter{equation}
6836 \family default
6837  (2.12), Journal name abbreviations (2.13.4), 
6838 \family typewriter
6839
6840 \backslash
6841 figurenum
6842 \family default
6843  (2.14.1), 
6844 \family typewriter
6845
6846 \backslash
6847 epsscale
6848 \family default
6849  (2.14.1), 
6850 \family typewriter
6851
6852 \backslash
6853 plotone
6854 \family default
6855  (2.14.1), 
6856 \family typewriter
6857
6858 \backslash
6859 plottwo
6860 \family default
6861  (2.14.1), 
6862 \family typewriter
6863
6864 \backslash
6865 tablenum
6866 \family default
6867  (2.15.4), 
6868 \family typewriter
6869
6870 \backslash
6871 tableline
6872 \family default
6873  (2.15.4, insert it as the first element in the lefthand cell after where
6874  you want it.
6875  Don't use any of LyX's rules in the table), 
6876 \family typewriter
6877
6878 \backslash
6879 tablenotemark
6880 \family default
6881  (2.15.5), 
6882 \family typewriter
6883
6884 \backslash
6885 tablenotetext
6886 \family default
6887  (2.15.5), much of Misc (2.17, except 
6888 \family typewriter
6889
6890 \backslash
6891 objectname
6892 \family default
6893 ,
6894 \family typewriter
6895  
6896 \backslash
6897 dataset
6898 \family default
6899 ,
6900 \family typewriter
6901  
6902 \backslash
6903 url
6904 \family default
6905 , and 
6906 \family typewriter
6907
6908 \backslash
6909 email
6910 \family default
6911 ; see above), 
6912 \family typewriter
6913
6914 \backslash
6915 singlespace
6916 \family default
6917  (3.1), 
6918 \family typewriter
6919
6920 \backslash
6921 doublespace
6922 \family default
6923  (3.1), 
6924 \family typewriter
6925
6926 \backslash
6927 onecolumn
6928 \family default
6929  (3.2), 
6930 \family typewriter
6931
6932 \backslash
6933 twocolumn
6934 \family default
6935  (3.2)
6936 \end_layout
6937
6938 \begin_layout Standard
6939 \begin_inset ERT
6940 status inlined
6941
6942 \begin_layout Standard
6943
6944 \backslash
6945 end{sloppypar}
6946 \end_layout
6947
6948 \end_inset
6949
6950
6951 \end_layout
6952
6953 \begin_layout Subsubsection
6954 Things that cannot be implemented
6955 \end_layout
6956
6957 \begin_layout Standard
6958 \SpecialChar \ldots{}
6959  at least in any meaningful sort of way, so I suggest ignoring them.
6960  They are the references environment (2.13.3), and the deluxetable environment
6961  (2.15).
6962  If you really, really need to use deluxetable, I suggest editing it in
6963  a separate file with a text editor, then using 
6964 \family sans
6965 \bar under
6966 I
6967 \bar default
6968 nsert\SpecialChar \menuseparator
6969 Chil
6970 \bar under
6971 d
6972 \bar default
6973 \InsetSpace ~
6974 Document
6975 \family default
6976  to include it in your LyX document.
6977  See the 
6978 \family typewriter
6979 aas_sample.lyx
6980 \family default
6981  file to see an example of this.
6982 \end_layout
6983
6984 \begin_layout Subsection
6985 FAQs, Tips, Tricks, and Other Ruminations
6986 \end_layout
6987
6988 \begin_layout Subsubsection
6989 Getting LyX and AASTeX to cooperate
6990 \end_layout
6991
6992 \begin_layout Standard
6993 It can be a bit tricky to get LyX to recognize a new layout and document
6994  class.
6995  When all else fails, do this:
6996 \end_layout
6997
6998 \begin_layout Enumerate
6999 Make certain that LaTeX can find AASTeX.
7000  Copy sample.tex (and perhaps table.tex) from the AASTeX distribution into
7001  a directory completely unrelated to LaTeX or AASTeX and run LaTeX on 
7002 \family typewriter
7003 sample.tex
7004 \family default
7005 .
7006 \end_layout
7007
7008 \begin_layout Enumerate
7009 Make certain that 
7010 \family typewriter
7011 aastex.layout
7012 \family default
7013  appears in 
7014 \family typewriter
7015 /usr/.../share/lyx/layouts
7016 \family default
7017  or 
7018 \family typewriter
7019 ~/.lyx/layouts
7020 \family default
7021 .
7022 \end_layout
7023
7024 \begin_layout Enumerate
7025 Rerun 
7026 \family sans
7027 \bar under
7028 T
7029 \bar default
7030 ools\SpecialChar \menuseparator
7031
7032 \bar under
7033 R
7034 \bar default
7035 econfigure
7036 \family default
7037  in LyX, then restart LyX.
7038 \end_layout
7039
7040 \begin_layout Enumerate
7041 Open a regular new file, not from a template.
7042  Does AASTeX appear in the class list in 
7043 \family sans
7044 \bar under
7045 D
7046 \bar default
7047 ocument\SpecialChar \menuseparator
7048
7049 \bar under
7050 S
7051 \bar default
7052 ettings
7053 \family default
7054 ?
7055 \end_layout
7056
7057 \begin_layout Standard
7058 If you get a warning from an existing AASTeX document about not being able
7059  to find the AASTeX layout or a message about 
7060 \begin_inset Quotes eld
7061 \end_inset
7062
7063 You should not mix title layouts with normal ones
7064 \begin_inset Quotes erd
7065 \end_inset
7066
7067 , things haven't been installed correctly.
7068 \end_layout
7069
7070 \begin_layout Subsubsection
7071 LaTeX error processing a table 
7072 \end_layout
7073
7074 \begin_layout Standard
7075 LyX, by default, attempts to center the table caption/title.
7076  This seems to produce a bad interaction in AASTeX so you should click somewhere
7077  in the caption/title, then select 
7078 \family sans
7079 \bar under
7080 E
7081 \bar default
7082 dit\SpecialChar \menuseparator
7083
7084 \bar under
7085 P
7086 \bar default
7087 aragraph\InsetSpace ~
7088 Settings
7089 \family default
7090 , then set the 
7091 \family sans
7092 Alignment
7093 \family default
7094  to 
7095 \family sans
7096 \bar under
7097 B
7098 \bar default
7099 lock
7100 \family default
7101 .
7102  This took care of it for me.
7103 \end_layout
7104
7105 \begin_layout Subsubsection
7106 References
7107 \begin_inset LatexCommand \label{cite}
7108
7109 \end_inset
7110
7111
7112 \end_layout
7113
7114 \begin_layout Standard
7115 A couple of things: 1) I have noticed some funny spacing in the reference
7116  entries in the text.
7117  When you enter the bibliography item data, make sure their is 
7118 \emph on
7119 no
7120 \emph default
7121  space between the last author and the parenthesis setting off the year;
7122  
7123 \emph on
7124 e.g.
7125  
7126 \emph default
7127 type
7128 \family typewriter
7129  Ressler(1992)
7130 \family default
7131 , not 
7132 \family typewriter
7133 Ressler (1992)
7134 \family default
7135 .
7136  2) Entering the references at all is not obvious.
7137  The easiest thing is to start typing your first reference at the end of
7138  the document, then mark it as type 
7139 \family sans
7140 References
7141 \family default
7142 .
7143  That will put a small gray box in front of what you just typed.
7144  Click on the box to fill in the rest of the information.
7145  For new references, go to the end of an existing reference and press return.
7146  That will create a new line with its own box, etc.
7147 \end_layout
7148
7149 \begin_layout Subsubsection
7150 Including EPS files
7151 \end_layout
7152
7153 \begin_layout Standard
7154 Even though AASTeX provides its own figure commands (
7155 \family typewriter
7156
7157 \backslash
7158 plotone
7159 \family default
7160 , for example), I much prefer LaTeX's standard figure commands (with the
7161  default graphicx).
7162  You can insert the 
7163 \family typewriter
7164
7165 \backslash
7166 plotone
7167 \family default
7168 , etc.\InsetSpace ~
7169 commands as ERT into a Figure Float box if you desire, but I never
7170  have much luck getting the layout right.
7171  With the standard graphics, LyX will insert a 
7172 \family typewriter
7173
7174 \backslash
7175 usepackage{graphicx}
7176 \family default
7177  command into the LaTeX preamble and handle the figures in the standard
7178  LaTeX2e way, interspersing the figures in the text.
7179  I believe ApJ accepts figures exactly this way now; AJ might still use
7180  the 
7181 \begin_inset Quotes eld
7182 \end_inset
7183
7184 stack everything at the end
7185 \begin_inset Quotes erd
7186 \end_inset
7187
7188  technique.
7189 \end_layout
7190
7191 \begin_layout Subsubsection
7192 Things I could have done, but didn't
7193 \end_layout
7194
7195 \begin_layout Standard
7196 There are a few 
7197 \begin_inset Quotes eld
7198 \end_inset
7199
7200 pretty
7201 \begin_inset Quotes erd
7202 \end_inset
7203
7204  things I could have implemented, but chose not to.
7205  For instance, I saw no point in double-spacing the text in the LyX window,
7206  even though it is double-spaced in the paper manuscript.
7207  Also, I chose not to make separate layouts for the preprint and preprint2
7208  styles.
7209  Since I assume you will spend most of your time in the plain manuscript
7210  mode anyway, I decided not to chew up more disk space with this.
7211  
7212 \end_layout
7213
7214 \begin_layout Subsection
7215 Final Caveat
7216 \end_layout
7217
7218 \begin_layout Standard
7219 Your mileage may vary.
7220  I've now had papers published by both ApJ and AJ that have had 98% of the
7221  effort done in LyX; the last 2% was the LaTeX post-processing and a few
7222  cleanups.
7223  I have had no trouble with the submission process, and I'm sure the journals
7224  were never aware that there might be a difference.
7225  So, go forth and publish!
7226 \end_layout
7227
7228 \begin_layout Section
7229 ijmpd
7230 \end_layout
7231
7232 \begin_layout Standard
7233 by 
7234 \noun on
7235 Panayotis Papasotiriou
7236 \end_layout
7237
7238 \begin_layout Subsection
7239 Overview
7240 \end_layout
7241
7242 \begin_layout Standard
7243 The ijmpd package is a set of macros that facilitates electronic manuscript
7244  submission to the 
7245 \emph on
7246 International Journal of Modern Physics D
7247 \emph default
7248  published by World Scientific.
7249  The name of the document class is 
7250 \family typewriter
7251 ws-ijmpd.cls
7252 \family default
7253 .
7254  This file, together with instructions for the authors, can be downloaded
7255  from the site 
7256 \begin_inset LatexCommand \url{http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml}
7257
7258 \end_inset
7259
7260 .
7261  The ijmpd package is a modified version of the standard 
7262 \begin_inset Quotes eld
7263 \end_inset
7264
7265 article
7266 \begin_inset Quotes erd
7267 \end_inset
7268
7269  package.
7270  Most of its features are supported by LyX.
7271  I have recently used LyX successfully to write an article submitted to
7272  the 
7273 \emph on
7274 International Journal of Modern Physics D
7275 \emph default
7276 .
7277 \end_layout
7278
7279 \begin_layout Subsection
7280 Writing a paper
7281 \end_layout
7282
7283 \begin_layout Standard
7284 As usual, the easiest way to write a paper is to start with a template.
7285  Click on 
7286 \family sans
7287 \bar under
7288 F
7289 \bar default
7290 ile\SpecialChar \menuseparator
7291 New from 
7292 \bar under
7293 T
7294 \bar default
7295 emplate
7296 \family default
7297 , then choose the 
7298 \family typewriter
7299 ijmpd.lyx
7300 \family default
7301  template.
7302  This will give an (almost) empty document that includes the most common
7303  fields found in a manuscript.
7304  Simply overwrite the existing text (including the brackets, 
7305 \family typewriter
7306 <>
7307 \family default
7308 ) with the correct information.
7309  You should keep in mind the following remarks.
7310 \end_layout
7311
7312 \begin_layout Enumerate
7313 LyX won't let you change the font size and the page style of the document,
7314  because the ijmpd package does not allow such modifications.
7315 \end_layout
7316
7317 \begin_layout Enumerate
7318 The ijmpd package requires that the language of the document should not
7319  be changed.
7320  Before previewing your paper, be sure that the babel package is not used.
7321  To do this, click on 
7322 \family sans
7323 \bar under
7324 T
7325 \bar default
7326 ools\SpecialChar \menuseparator
7327
7328 \bar under
7329 P
7330 \bar default
7331 references
7332 \family default
7333 , deselect the 
7334 \family sans
7335 \bar under
7336 U
7337 \bar default
7338 se babel
7339 \family default
7340  checkbox in the language settings, and click on 
7341 \family sans
7342 \bar under
7343 A
7344 \bar default
7345 pply
7346 \family default
7347  (or 
7348 \family sans
7349 Save
7350 \family default
7351 , if you wish to make this change permanent).
7352 \end_layout
7353
7354 \begin_layout Enumerate
7355 Two new environments, named 
7356 \begin_inset Quotes eld
7357 \end_inset
7358
7359 Theorem
7360 \begin_inset Quotes erd
7361 \end_inset
7362
7363  and 
7364 \begin_inset Quotes eld
7365 \end_inset
7366
7367 Proof
7368 \begin_inset Quotes erd
7369 \end_inset
7370
7371  are available (their use is obvious).
7372 \end_layout
7373
7374 \begin_layout Enumerate
7375 Appendices may be added to the paper.
7376  LyX offers a special environment, called 
7377 \begin_inset Quotes eld
7378 \end_inset
7379
7380 Appendix
7381 \begin_inset Quotes erd
7382 \end_inset
7383
7384  which marks the beginning of the appendix.
7385  An appendix can contain normal sections, subsections, or subsubsections.
7386 \end_layout
7387
7388 \begin_layout Enumerate
7389 The ijmpd package implements table captions quite differently than LyX does.
7390  As a result, a table created by LyX is printed correctly, but its caption
7391  is ignored.
7392  If you need table captions, you should implement the whole table float
7393  in a 
7394 \family typewriter
7395 .tex
7396 \family default
7397  file, then include this file to the LyX document (
7398 \family sans
7399 \bar under
7400 I
7401 \bar default
7402 nsert\SpecialChar \menuseparator
7403 Chil
7404 \bar under
7405 d
7406 \bar default
7407 \InsetSpace ~
7408 Document
7409 \family default
7410 ).
7411  Details on how to create an ijmpd table float can be found in the file
7412  
7413 \family typewriter
7414 ws-ijmpd.tex
7415 \family default
7416 , which is included in the ijmpd package.
7417 \end_layout
7418
7419 \begin_layout Subsection
7420 Preparing a paper for submission
7421 \end_layout
7422
7423 \begin_layout Standard
7424 Before you submit your paper you must export the LyX document as a LaTeX
7425  file (
7426 \family sans
7427 \bar under
7428 F
7429 \bar default
7430 ile\SpecialChar \menuseparator
7431
7432 \bar under
7433 E
7434 \bar default
7435 xport\SpecialChar \menuseparator
7436
7437 \bar under
7438 L
7439 \bar default
7440 ateX
7441 \family default
7442 ), then make the following changes to the resulting 
7443 \family typewriter
7444 .tex
7445 \family default
7446  file.
7447 \end_layout
7448
7449 \begin_layout Enumerate
7450 Remove the comment lines before the 
7451 \family typewriter
7452
7453 \backslash
7454 documentclass
7455 \family default
7456  command.
7457 \end_layout
7458
7459 \begin_layout Enumerate
7460 Remove everything between (and including) the 
7461 \family typewriter
7462
7463 \backslash
7464 makeatletter
7465 \family default
7466  and 
7467 \family typewriter
7468
7469 \backslash
7470 makeatother
7471 \family default
7472  commands, except for any commands you specifically put into the LaTeX preamble.
7473 \end_layout
7474
7475 \begin_layout Standard
7476 The modified 
7477 \family typewriter
7478 .tex
7479 \family default
7480  file should be saved and processed through LaTeX as many times as necessary.
7481  You may also want to check the resulting 
7482 \family typewriter
7483 .dvi
7484 \family default
7485  document.
7486 \end_layout
7487
7488 \begin_layout Subsection
7489 Use of ERT
7490 \end_layout
7491
7492 \begin_layout Standard
7493 The use of ERT is optional, and is reduced to three commands, which affect
7494  the look of the page.
7495  If you started writing your paper by using the 
7496 \family typewriter
7497 ijmpd.lyx
7498 \family default
7499  template, the ERT needed is already in its place; you usually don't need
7500  to delete it.
7501  You may only change the first ERT to specify the information printed to
7502  the top of odd and even pages (authors' names and short paper's title,
7503  respectively).
7504  This ERT must have the form 
7505 \family typewriter
7506
7507 \backslash
7508 markboth{Authors' Names}{Short Paper's Title}
7509 \family default
7510 .
7511 \end_layout
7512
7513 \begin_layout Section
7514 Kluwer
7515 \end_layout
7516
7517 \begin_layout Standard
7518 by 
7519 \noun on
7520 Panayotis Papasotiriou
7521 \end_layout
7522
7523 \begin_layout Subsection
7524 Overview
7525 \end_layout
7526
7527 \begin_layout Standard
7528 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
7529  that facilitates electronic manuscript submission to the journals they
7530  publish.
7531  Most known of them (at least in my domain of interest) are 
7532 \emph on
7533 Astrophysics and Space Science
7534 \emph default
7535  and 
7536 \emph on
7537 Solar Physics
7538 \emph default
7539 , but there are many others (see a complete list at 
7540 \begin_inset LatexCommand \url{http://www.wkap.nl/jrnllist.htm/JRNLHOME}
7541
7542 \end_inset
7543
7544 ).
7545  The Kluwer package may be downloaded from the site 
7546 \begin_inset LatexCommand \url{http://www.wkap.nl/kaphtml.htm/STYLEFILES}
7547
7548 \end_inset
7549
7550 .
7551  A complete user guide is contained in that package (but it can also be
7552  downloaded separately).
7553 \end_layout
7554
7555 \begin_layout Standard
7556 LyX supports many features of the package but not everything.
7557  However, the ERT needed is reduced to some 
7558 \begin_inset Quotes eld
7559 \end_inset
7560
7561 peculiar
7562 \begin_inset Quotes erd
7563 \end_inset
7564
7565  commands of the package (see\InsetSpace ~
7566
7567 \begin_inset LatexCommand \ref{subsec:kluwer_peculiarities}
7568
7569 \end_inset
7570
7571 ).
7572  I have recently used LyX to write an article submitted to the 
7573 \emph on
7574 Astrophysics and Space Science
7575 \emph default
7576  without any problem.
7577 \end_layout
7578
7579 \begin_layout Subsection
7580 Writing a paper
7581 \end_layout
7582
7583 \begin_layout Standard
7584 The easiest way to write a paper is to start with the Kluwer template file.
7585  Click on 
7586 \family sans
7587 File\SpecialChar \menuseparator
7588 New from 
7589 \bar under
7590 T
7591 \bar default
7592 emplate
7593 \family default
7594 , then choose the 
7595 \family typewriter
7596 kluwer.lyx
7597 \family default
7598  template.
7599  This will give an (almost) empty document that includes the most common
7600  fields found in a manuscript and a short description of their use.
7601  As in most templates, simply overwrite the existing text (including the
7602  brackets, 
7603 \family typewriter
7604 <>
7605 \family default
7606 ) with the correct information.
7607 \end_layout
7608
7609 \begin_layout Subsection
7610 Preparing a paper for submission
7611 \end_layout
7612
7613 \begin_layout Standard
7614 As in the AASTeX package, before you submit your paper to a journal you
7615  must 
7616 \begin_inset Quotes eld
7617 \end_inset
7618
7619 postprocess
7620 \begin_inset Quotes erd
7621 \end_inset
7622
7623  it as follows.
7624 \end_layout
7625
7626 \begin_layout Enumerate
7627 Export your paper as a LaTeX file.
7628  To do this, click on 
7629 \family sans
7630 \bar under
7631 F
7632 \bar default
7633 ile\SpecialChar \menuseparator
7634
7635 \bar under
7636 E
7637 \bar default
7638 xport\SpecialChar \menuseparator
7639
7640 \bar under
7641 L
7642 \bar default
7643 ateX
7644 \family default
7645 .
7646  
7647 \end_layout
7648
7649 \begin_layout Enumerate
7650 Edit the resulting 
7651 \family typewriter
7652 .tex
7653 \family default
7654  file with a text editor and make the following changes
7655 \end_layout
7656
7657 \begin_deeper
7658 \begin_layout Enumerate
7659 remove the comment lines before the 
7660 \family typewriter
7661
7662 \backslash
7663 documentclass
7664 \family default
7665  command,
7666 \end_layout
7667
7668 \begin_layout Enumerate
7669 remove everything between (and including) the 
7670 \family typewriter
7671
7672 \backslash
7673 makeatletter
7674 \family default
7675  and 
7676 \family typewriter
7677
7678 \backslash
7679 makeatother
7680 \family default
7681  commands, except for any commands you specifically put into the LaTeX preamble.
7682 \end_layout
7683
7684 \begin_layout Standard
7685 Save the resulting 
7686 \family typewriter
7687 .tex
7688 \family default
7689  file.
7690 \end_layout
7691
7692 \end_deeper
7693 \begin_layout Enumerate
7694 Run the 
7695 \family typewriter
7696 .tex
7697 \family default
7698  file through LaTeX as many times as necessary (usually up to three).
7699 \end_layout
7700
7701 \begin_layout Enumerate
7702 View the resulting 
7703 \family typewriter
7704 .dvi
7705 \family default
7706  document using, e.g., 
7707 \family sans
7708 xdvi
7709 \family default
7710 , and check if everything is ok (it should, if you didn't make any mistake).
7711 \end_layout
7712
7713 \begin_layout Subsection
7714 \begin_inset Quotes eld
7715 \end_inset
7716
7717 Peculiarities
7718 \begin_inset Quotes erd
7719 \end_inset
7720
7721  of the Kluwer package
7722 \begin_inset LatexCommand \label{subsec:kluwer_peculiarities}
7723
7724 \end_inset
7725
7726
7727 \end_layout
7728
7729 \begin_layout Standard
7730 The Kluwer package has the following 
7731 \begin_inset Quotes eld
7732 \end_inset
7733
7734 peculiarities
7735 \begin_inset Quotes erd
7736 \end_inset
7737
7738 .
7739 \end_layout
7740
7741 \begin_layout Enumerate
7742 It is possible to write multiple articles in the same LaTeX file
7743 \begin_inset Foot
7744 status collapsed
7745
7746 \begin_layout Standard
7747 I can't imagine any good reason to do this.
7748 \end_layout
7749
7750 \end_inset
7751
7752 .
7753  Each article must be included in the environment 
7754 \begin_inset Quotes eld
7755 \end_inset
7756
7757 article
7758 \begin_inset Quotes erd
7759 \end_inset
7760
7761 .
7762  Unfortunately, this environment cannot be omitted, even if you write just
7763  one article.
7764  Therefore, each article starts with the command 
7765 \family typewriter
7766
7767 \backslash
7768 begin{article}
7769 \family default
7770  and, obviously, ends with the command 
7771 \family typewriter
7772
7773 \backslash
7774 end{article}
7775 \family default
7776 .
7777  Although this can be implemented in LyX, I didn't included it, since it
7778  looks ugly and can confuse the novice user.
7779  Therefore, you need to enter them directly and mark them as LaTeX code
7780  (the well-known 
7781 \begin_inset Quotes eld
7782 \end_inset
7783
7784 ERT
7785 \begin_inset Quotes erd
7786 \end_inset
7787
7788 ).
7789 \end_layout
7790
7791 \begin_layout Enumerate
7792 Information given at the beginning of the article (i.e., title, subtitle,
7793  author, institution, running title, running author, abstract and keywords)
7794  must be included in an environment called 
7795 \begin_inset Quotes eld
7796 \end_inset
7797
7798 opening
7799 \begin_inset Quotes erd
7800 \end_inset
7801
7802 .
7803  This is not implemented in LyX, so you must enter title, subtitle etc.
7804  between two ERT lines (
7805 \family typewriter
7806
7807 \backslash
7808 begin{opening}
7809 \family default
7810  and 
7811 \family typewriter
7812
7813 \backslash
7814 end{opening}
7815 \family default
7816 ).
7817 \end_layout
7818
7819 \begin_layout Enumerate
7820 According to the user manual, the label of each bibliography item must be
7821  written as 
7822 \family typewriter
7823
7824 \backslash
7825 protect
7826 \backslash
7827 citeauthoryear{
7828 \family default
7829 \emph on
7830 author(s)
7831 \family typewriter
7832 \emph default
7833 }{
7834 \family default
7835 \emph on
7836 year
7837 \family typewriter
7838 \emph default
7839 }
7840 \family default
7841 .
7842 \end_layout
7843
7844 \begin_layout Standard
7845 The 
7846 \family typewriter
7847 kluwer.lyx
7848 \family default
7849  template takes care of all these 
7850 \begin_inset Quotes eld
7851 \end_inset
7852
7853 peculiarities
7854 \begin_inset Quotes erd
7855 \end_inset
7856
7857 .
7858  If you start a new paper using this template you don't need to do anything
7859  special.
7860  Just 
7861 \end_layout
7862
7863 \begin_layout Enumerate
7864 don't delete the ERT included in the template, and
7865 \end_layout
7866
7867 \begin_layout Enumerate
7868 copy the example bibliography item included in the template and modify it
7869  as necessary to enter new bibliography items.
7870 \end_layout
7871
7872 \begin_layout Section
7873 Koma-Script
7874 \end_layout
7875
7876 \begin_layout Standard
7877 by 
7878 \noun on
7879 Bernd Rellermeyer
7880 \end_layout
7881
7882 \begin_layout Subsection
7883 Overview
7884 \end_layout
7885
7886 \begin_layout Standard
7887 The LyX document classes
7888 \emph on
7889  article (koma-script)
7890 \emph default
7891
7892 \emph on
7893 report (koma-script)
7894 \emph default
7895
7896 \emph on
7897 book
7898 \emph default
7899  
7900 \emph on
7901 (koma-script)
7902 \emph default
7903 , and 
7904 \emph on
7905 letter
7906 \emph default
7907  
7908 \emph on
7909 (koma-script)
7910 \emph default
7911  correspond to the LaTeX document classes 
7912 \family typewriter
7913 scrartcl.cls
7914 \family default
7915
7916 \family typewriter
7917 scrreprt.cls
7918 \family default
7919
7920 \family typewriter
7921 scrbook.cls
7922 \family default
7923 , and 
7924 \family typewriter
7925 scrlettr.cls
7926 \family default
7927 , resp.
7928  of the Koma-Script family.
7929  They are replacements for the standard document classes 
7930 \family typewriter
7931 article.cls
7932 \family default
7933
7934 \family typewriter
7935 report.cls
7936 \family default
7937
7938 \family typewriter
7939 book.cls
7940 \family default
7941  and 
7942 \family typewriter
7943 letter.cls
7944 \family default
7945 , resp., and fit better to European typography conventions in a number of
7946  points.
7947 \end_layout
7948
7949 \begin_layout Itemize
7950 Standard character size is 11pt in 
7951 \emph on
7952 article (koma-script)
7953 \emph default
7954
7955 \emph on
7956 report (koma-script)
7957 \emph default
7958 , and 
7959 \emph on
7960 book (koma-script)
7961 \emph default
7962 , and 12pt in 
7963 \emph on
7964 letter (koma-script)
7965 \emph default
7966 .
7967 \end_layout
7968
7969 \begin_layout Itemize
7970 Headings, labels of the description environment, and a number of elements
7971  of the 
7972 \emph on
7973 letter (koma-script) 
7974 \emph default
7975 document class are set in a bold sans serif font.
7976 \begin_inset Foot
7977 status collapsed
7978
7979 \begin_layout Standard
7980 There is a big difference between the bold sans serif old cm fonts and new
7981  ec fonts, especially in the appearance of headings.
7982  In comparison, the ec bold sans serif fonts look a bit thin.
7983  Here the LaTeX package 
7984 \family typewriter
7985 cmsd.sty by 
7986 \family default
7987 \shape smallcaps
7988 Walter Schmidt
7989 \shape default
7990  helps to produce the 
7991 \begin_inset Quotes eld
7992 \end_inset
7993
7994 usual
7995 \begin_inset Quotes erd
7996 \end_inset
7997
7998  appearance when using the ec fonts.
7999 \end_layout
8000
8001 \end_inset
8002
8003  The numbering of chapter headings is made in the same way as the numbering
8004  of section headings, that is without the extra line 
8005 \begin_inset Quotes eld
8006 \end_inset
8007
8008 Chapter\SpecialChar \ldots{}
8009
8010 \begin_inset Quotes erd
8011 \end_inset
8012
8013 .
8014  In addition, the appearance of the headings can be modified by using a
8015  number of options (in LyX to be entered in the field 
8016 \family sans
8017 E
8018 \bar under
8019 x
8020 \bar default
8021 tra\InsetSpace ~
8022 Options
8023 \family default
8024  of the dialog 
8025 \family sans
8026 \bar under
8027 L
8028 \bar default
8029 ayout\SpecialChar \menuseparator
8030
8031 \bar under
8032 D
8033 \bar default
8034 ocument
8035 \family default
8036 ).
8037  A detailed German description of these options can be found in the Koma-Script
8038  documentation 
8039 \emph on
8040 scrguide
8041 \emph default
8042 .
8043 \end_layout
8044
8045 \begin_layout Itemize
8046 The main means in the Koma-Script document classes to design the type area
8047  are the options 
8048 \family sans
8049 BCOR
8050 \family default
8051  and 
8052 \family sans
8053 DIV
8054 \family default
8055  (in LyX to be entered in the extra class options field in the dialog 
8056 \family sans
8057 \bar under
8058 D
8059 \bar default
8060 ocument\SpecialChar \menuseparator
8061
8062 \bar under
8063 S
8064 \bar default
8065 ettings
8066 \family default
8067 ).
8068  They make a clearer modification of page margins possible as do the options
8069  of the dialog 
8070 \family sans
8071 \bar under
8072 D
8073 \bar default
8074 ocument\SpecialChar \menuseparator
8075
8076 \bar under
8077 S
8078 \bar default
8079 ettings
8080 \family default
8081 .
8082  A detailed German description of these and other type area options can
8083  be found in the Koma-Script documentation 
8084 \emph on
8085 scrguide
8086 \emph default
8087 .
8088 \end_layout
8089
8090 \begin_layout Itemize
8091 The LaTeX document classes of the Koma-Script family define a number of
8092  additional commands.
8093  Those part of it which makes sense in LyX is implemented in corresponding
8094  paragraph types.
8095 \end_layout
8096
8097 \begin_layout Standard
8098 A detailed German description of the LaTeX document classes of the Koma-Script
8099  family can be found in the Koma-Script documentation 
8100 \emph on
8101 scrguide
8102 \emph default
8103 .
8104 \begin_inset Foot
8105 status collapsed
8106
8107 \begin_layout Standard
8108 There is an English translation 
8109 \emph on
8110 screnggu
8111 \emph default
8112 , but it is not a complete one.
8113 \end_layout
8114
8115 \end_inset
8116
8117  The following sections describe only those aspects, which are relevant
8118  in LyX.
8119 \end_layout
8120
8121 \begin_layout Subsection
8122 article (koma-script), report (koma-script), and book (koma-script)
8123 \end_layout
8124
8125 \begin_layout Standard
8126 The document classes 
8127 \emph on
8128 article (koma-script)
8129 \emph default
8130
8131 \emph on
8132 report (koma-script)
8133 \emph default
8134 , and 
8135 \emph on
8136 book
8137 \emph default
8138  
8139 \emph on
8140 (koma-script)
8141 \emph default
8142  are implemented in the layout files 
8143 \family typewriter
8144 scrartcl.layout
8145 \family default
8146
8147 \family typewriter
8148 scrreprt.layout
8149 \family default
8150 , and 
8151 \family typewriter
8152 scrbook.layout
8153 \family default
8154 , resp.
8155  They contain all the paragraph types of the corresponding standard document
8156  classes 
8157 \emph on
8158 article
8159 \emph default
8160
8161 \emph on
8162 report
8163 \emph default
8164 , and 
8165 \emph on
8166 book
8167 \emph default
8168 , resp., partly modified, with the exception of the LyX specific 
8169 \family sans
8170 List
8171 \family default
8172 -type, which is replaced by the new 
8173 \family sans
8174 Labeling
8175 \family default
8176 -type having the same functionality.
8177  Beside the 
8178 \family sans
8179 Labeling
8180 \family default
8181 -Type there is a number of new paragraph types added.
8182  They are 
8183 \emph on
8184 not
8185 \emph default
8186  part of 
8187 \emph on
8188 letter (koma-script)
8189 \emph default
8190 .
8191 \end_layout
8192
8193 \begin_layout Itemize
8194
8195 \family sans
8196 Addpart, Addchap
8197 \family default
8198
8199 \family sans
8200 Addsec
8201 \family default
8202 : are equivalents to 
8203 \family sans
8204 Part*, Chapter*
8205 \family default
8206  and 
8207 \family sans
8208 Section*
8209 \family default
8210 , resp., additionally inserting an entry in the table of contents.
8211  
8212 \family sans
8213 Addpart 
8214 \family default
8215 and
8216 \family sans
8217  Addchap
8218 \family default
8219  are not contained in 
8220 \emph on
8221 article (koma-script)
8222 \emph default
8223 .
8224 \end_layout
8225
8226 \begin_layout Itemize
8227
8228 \family sans
8229 Addchap*
8230 \family default
8231
8232 \family sans
8233 Addsec*
8234 \family default
8235 : behave exactly as 
8236 \family sans
8237 Addchap
8238 \family default
8239  and 
8240 \family sans
8241 Addsec
8242 \family default
8243 , resp., additionally clearing running heads.
8244
8245 \family sans
8246  Addchap*
8247 \family default
8248  is not contained in 
8249 \emph on
8250 article (koma-script)
8251 \emph default
8252 .
8253 \begin_inset Foot
8254 status collapsed
8255
8256 \begin_layout Standard
8257 There is also an 
8258 \family typewriter
8259
8260 \backslash
8261 addpart*
8262 \family default
8263  command in 
8264 \emph on
8265 book (koma-script)
8266 \emph default
8267  and in 
8268 \emph on
8269 report (koma-script)
8270 \emph default
8271 , but since this is identical to 
8272 \family sans
8273 Part*
8274 \family default
8275 , is has not been implemented in LyX.
8276 \end_layout
8277
8278 \end_inset
8279
8280
8281 \end_layout
8282
8283 \begin_layout Itemize
8284
8285 \family sans
8286 Minisec
8287 \family default
8288 : generates a heading directly above the following paragraph in the standard
8289  character size without affecting the structure of the document.
8290 \end_layout
8291
8292 \begin_layout Itemize
8293
8294 \family sans
8295 Captionabove
8296 \family default
8297  and 
8298 \family sans
8299 Captionbelow 
8300 \family default
8301 are special captions which respect the different space settings needed for
8302  captions placed above or below an element (if you follow strict typographic
8303  rules, you might want to place table captions always above the table).
8304  You can also use the class option 
8305 \family typewriter
8306 tablecaptionsabove
8307 \family default
8308 , which will switch 
8309 \family sans
8310 caption
8311 \family default
8312  to 
8313 \family sans
8314 captionabove
8315 \family default
8316  for tables and 
8317 \family sans
8318 captionbelow
8319 \family default
8320  for figures.
8321  You need at least Koma-Script version 2.8q to use this.
8322 \end_layout
8323
8324 \begin_layout Itemize
8325
8326 \family sans
8327 Dictum
8328 \family default
8329 : can be used to set a bonmot, e.
8330 \begin_inset ERT
8331 status collapsed
8332
8333 \begin_layout Standard
8334
8335 \backslash
8336 ,
8337 \end_layout
8338
8339 \end_inset
8340
8341 g.
8342 \begin_inset ERT
8343 status collapsed
8344
8345 \begin_layout Standard
8346
8347 \backslash
8348  
8349 \end_layout
8350
8351 \end_inset
8352
8353 at the beginning of a chapter.
8354  If you use the optional argument (
8355 \family sans
8356 \bar under
8357 I
8358 \bar default
8359 nsert\SpecialChar \menuseparator
8360 Short\InsetSpace ~
8361 Title
8362 \family default
8363 ), you can insert the dictum's author there.
8364  Dictum and author are separated by a line.
8365  You need at least Koma-Script version 2.8q to use this.
8366  
8367 \family sans
8368 Dictum
8369 \family default
8370  is not contained in 
8371 \emph on
8372 article (koma-script)
8373 \emph default
8374 .
8375 \end_layout
8376
8377 \begin_layout Standard
8378 The following types, together with the standard types 
8379 \family sans
8380 Title
8381 \family default
8382
8383 \family sans
8384 Author
8385 \family default
8386 , and 
8387 \family sans
8388 Date
8389 \family default
8390 , form the title area of the document.
8391  They must be entered ahead of the first 
8392 \begin_inset Quotes eld
8393 \end_inset
8394
8395 ordinary
8396 \begin_inset Quotes erd
8397 \end_inset
8398
8399  paragraph.
8400 \begin_inset Foot
8401 status collapsed
8402
8403 \begin_layout Standard
8404 The corresponding LaTeX commands must appear before the 
8405 \family typewriter
8406
8407 \backslash
8408 maketitle
8409 \family default
8410  command.
8411 \end_layout
8412
8413 \end_inset
8414
8415  When such a type is used more than once, the latter usage overwrites the
8416  former one, that means, for every type only the latest usage is valid.
8417  The order of the different types however has, like 
8418 \family sans
8419 Title
8420 \family default
8421
8422 \family sans
8423 Author
8424 \family default
8425 , and 
8426 \family sans
8427 Date
8428 \family default
8429 , no effect on the appearance of the produced document.
8430 \end_layout
8431
8432 \begin_layout Itemize
8433
8434 \family sans
8435 Subject
8436 \family default
8437 : produces a centered paragraph above the ordinary title (
8438 \family sans
8439 Title
8440 \family default
8441
8442 \family sans
8443 Author
8444 \family default
8445
8446 \family sans
8447 Date
8448 \family default
8449 ) for the subject of the document.
8450 \end_layout
8451
8452 \begin_layout Itemize
8453
8454 \family sans
8455 Publishers
8456 \family default
8457 : produces a centered paragraph below the ordinary title (
8458 \family sans
8459 Title
8460 \family default
8461
8462 \family sans
8463 Author
8464 \family default
8465
8466 \family sans
8467 Date
8468 \family default
8469 ) for the publishers' name.
8470 \end_layout
8471
8472 \begin_layout Itemize
8473
8474 \family sans
8475 Dedication
8476 \family default
8477 : in 
8478 \emph on
8479 report (koma-script)
8480 \emph default
8481  and 
8482 \emph on
8483 book (koma-script)
8484 \emph default
8485  produces a centered paragraph on its own page behind the title page, or
8486  in 
8487 \emph on
8488 article (koma-script)
8489 \emph default
8490  produces a centered paragraph below the ordinary title (
8491 \family sans
8492 Title
8493 \family default
8494
8495 \family sans
8496 Author
8497 \family default
8498
8499 \family sans
8500 Date
8501 \family default
8502
8503 \family sans
8504 Publishers
8505 \family default
8506 ) for a dedication.
8507 \end_layout
8508
8509 \begin_layout Itemize
8510
8511 \family sans
8512 Titlehead
8513 \family default
8514 : produces a left aligned paragraph above the ordinary title (
8515 \family sans
8516 Title
8517 \family default
8518
8519 \family sans
8520 Author
8521 \family default
8522
8523 \family sans
8524 Date
8525 \family default
8526
8527 \family sans
8528 Subject
8529 \family default
8530 ) for a document`s head.
8531 \end_layout
8532
8533 \begin_layout Itemize
8534
8535 \family sans
8536 Uppertitleback
8537 \family default
8538 : produces in a double-sided print in 
8539 \emph on
8540 report (koma-script)
8541 \emph default
8542  and 
8543 \emph on
8544 book (koma-script)
8545 \emph default
8546  a left-aligned paragraph at the top of the title page`s back or has no
8547  effect in a single-sided print or in 
8548 \emph on
8549 article (koma-script)
8550 \emph default
8551 .
8552 \end_layout
8553
8554 \begin_layout Itemize
8555
8556 \family sans
8557 Lowertitleback
8558 \family default
8559 : produces in a double-sided print in 
8560 \emph on
8561 report (koma-script)
8562 \emph default
8563  and 
8564 \emph on
8565 book (koma-script)
8566 \emph default
8567  a left-aligned paragraph at the bottom of the title page`s back or has
8568  no effect in a single-sided print or in 
8569 \emph on
8570 article (koma-script)
8571 \emph default
8572 .
8573 \end_layout
8574
8575 \begin_layout Itemize
8576
8577 \family sans
8578 Extratitle
8579 \family default
8580 : produces a special 
8581 \begin_inset Quotes eld
8582 \end_inset
8583
8584 dirty
8585 \begin_inset Quotes erd
8586 \end_inset
8587
8588  page ahead of the actual document containing a paragraph without special
8589  formatting.
8590 \end_layout
8591
8592 \begin_layout Standard
8593 The layout files for the document classes 
8594 \emph on
8595 article (koma-script)
8596 \emph default
8597
8598 \emph on
8599 report (koma-script)
8600 \emph default
8601 , and 
8602 \emph on
8603 book (koma-script)
8604 \emph default
8605  do include the file 
8606 \family typewriter
8607 scrmacros.inc
8608 \family default
8609 .
8610  This is thought of as a place to define your own types.
8611  Copy s
8612 \family typewriter
8613 crmacros.inc
8614 \family default
8615  in your personal layout directory and edit the file!
8616 \end_layout
8617
8618 \begin_layout Subsection
8619 letter (koma-script)
8620 \end_layout
8621
8622 \begin_layout Standard
8623 \begin_inset ERT
8624 status inlined
8625
8626 \begin_layout Standard
8627
8628 \backslash
8629 begin{sloppypar}
8630 \end_layout
8631
8632 \end_inset
8633
8634
8635 \end_layout
8636
8637 \begin_layout Standard
8638 \noindent
8639 The document class 
8640 \emph on
8641 letter (koma-script)
8642 \emph default
8643  is implemented in the layout file 
8644 \family typewriter
8645 scrlettr.layout
8646 \family default
8647 .
8648  It contains all the paragraph types of the corresponding standard document
8649  class 
8650 \emph on
8651 letter
8652 \emph default
8653 , partly modified, with the exception of the LyX specific types 
8654 \family sans
8655 LyX-Code
8656 \family default
8657  and 
8658 \family sans
8659 Comment
8660 \family default
8661  and the 
8662 \family sans
8663 List
8664 \family default
8665  type, which is replaced by the new 
8666 \family sans
8667 Labeling
8668 \family default
8669  type.
8670  In addition, it contains, in contrast to the standard document class, the
8671  standard types 
8672 \family sans
8673 LaTeX
8674 \family default
8675
8676 \family sans
8677 Quotation
8678 \family default
8679
8680 \family sans
8681 Quote
8682 \family default
8683 , and 
8684 \family sans
8685 Verse
8686 \family default
8687 .
8688  Furthermore, there are a number of new letter specific types.
8689 \end_layout
8690
8691 \begin_layout Standard
8692 \begin_inset ERT
8693 status inlined
8694
8695 \begin_layout Standard
8696
8697 \backslash
8698 end{sloppypar}
8699 \end_layout
8700
8701 \end_inset
8702
8703
8704 \end_layout
8705
8706 \begin_layout Standard
8707 The appearance of the letter produced by this document class can be controlled
8708  by a number of LaTeX commands, which you can put in the LaTeX preamble.
8709 \begin_inset Foot
8710 status collapsed
8711
8712 \begin_layout Standard
8713 For example, the standard appearance of the letter`s heading, consisting
8714  of name and address, is quite self-willed.
8715  An 
8716 \begin_inset Quotes eld
8717 \end_inset
8718
8719 ordinary
8720 \begin_inset Quotes erd
8721 \end_inset
8722
8723  heading is produced by the following LaTeX commands in the preamble:
8724 \end_layout
8725
8726 \begin_layout LyX-Code
8727
8728 \backslash
8729 firsthead{
8730 \backslash
8731 parbox[b]{
8732 \backslash
8733 textwidth}
8734 \end_layout
8735
8736 \begin_layout LyX-Code
8737   {
8738 \backslash
8739 ignorespaces 
8740 \backslash
8741 fromname
8742 \backslash
8743
8744 \backslash
8745  
8746 \backslash
8747 ignorespaces 
8748 \backslash
8749 fromaddress}} 
8750 \end_layout
8751
8752 \begin_layout LyX-Code
8753
8754 \backslash
8755 nexthead{
8756 \backslash
8757 parbox[b]{
8758 \backslash
8759 textwidth}
8760 \end_layout
8761
8762 \begin_layout LyX-Code
8763   {
8764 \backslash
8765 ignorespaces 
8766 \backslash
8767 fromname 
8768 \backslash
8769 hfill 
8770 \backslash
8771 ignorespaces 
8772 \backslash
8773 pagename
8774 \backslash
8775  
8776 \backslash
8777 thepage}}
8778 \end_layout
8779
8780 \end_inset
8781
8782  A detailed German description of such LaTeX commands can be found in the
8783  Koma-Script documentation 
8784 \emph on
8785 scrguide
8786 \emph default
8787 .
8788  With it, the letter's author can produce his personal letter layout.
8789 \end_layout
8790
8791 \begin_layout Standard
8792 The types 
8793 \family sans
8794 Letter 
8795 \family default
8796 and 
8797 \family sans
8798 Opening
8799 \family default
8800  define the beginning of the letter and must be used in every letter.
8801  To emphasize them in the LyX document class, they are marked with the letter
8802  
8803 \shape italic
8804 L
8805 \shape default
8806  or 
8807 \shape italic
8808 O
8809 \shape default
8810 , resp.
8811  in the left margin.
8812  It is possible to write any number of letters in one file.
8813  An 
8814 \family sans
8815 Opening
8816 \family default
8817  type produces a new letter using the same addressee and a 
8818 \family sans
8819 Letter
8820 \family default
8821  type produces a new addressee.
8822  The types 
8823 \family sans
8824 Closing
8825 \family default
8826
8827 \family sans
8828 PS
8829 \family default
8830
8831 \family sans
8832 CC
8833 \family default
8834 , and 
8835 \family sans
8836 Encl
8837 \family default
8838  are ordinary paragraph types and can also be used several times in one
8839  and the same letter.
8840 \end_layout
8841
8842 \begin_layout Itemize
8843
8844 \family sans
8845 Letter
8846 \family default
8847 : produces a paragraph for the addressee and implicitly defines the beginning
8848  of the letter.
8849 \end_layout
8850
8851 \begin_layout Itemize
8852
8853 \family sans
8854 Opening
8855 \family default
8856 : produces a paragraph for the form of address and implicitly produces a
8857  new letter.
8858 \end_layout
8859
8860 \begin_layout Itemize
8861
8862 \family sans
8863 Closing
8864 \family default
8865 : produces a paragraph for a close.
8866 \end_layout
8867
8868 \begin_layout Itemize
8869
8870 \family sans
8871 PS
8872 \family default
8873 : produces a paragraph for a postscript.
8874 \end_layout
8875
8876 \begin_layout Itemize
8877
8878 \family sans
8879 CC
8880 \family default
8881 : produces a paragraph for a distribution list.
8882 \end_layout
8883
8884 \begin_layout Itemize
8885
8886 \family sans
8887 Encl
8888 \family default
8889 : produces a paragraph for enclosures.
8890 \end_layout
8891
8892 \begin_layout Standard
8893 The types 
8894 \family sans
8895 Name
8896 \family default
8897
8898 \family sans
8899 Signature
8900 \family default
8901
8902 \family sans
8903 Address
8904 \family default
8905 ,
8906 \family sans
8907  Telephone
8908 \family default
8909
8910 \family sans
8911 Place
8912 \family default
8913
8914 \family sans
8915 Backaddress
8916 \family default
8917
8918 \family sans
8919 Specialmail
8920 \family default
8921
8922 \family sans
8923 Location
8924 \family default
8925
8926 \family sans
8927 Title
8928 \family default
8929 , and 
8930 \family sans
8931 Subject
8932 \family default
8933  are input types provided with a label to enter information, which will
8934  be processed by the document class.
8935 \begin_inset Foot
8936 status collapsed
8937
8938 \begin_layout Standard
8939 It could be seen as a matter of inconsequence, that the types 
8940 \family sans
8941 Letter
8942 \family default
8943  and 
8944 \family sans
8945 Opening
8946 \family default
8947  described above are not such input types as well.
8948  Because of the special meaning of those types, however, I have implemented
8949  them as ordinary paragraph types with a one letter mark in the left margin.
8950  Moreover, it would affect my feeling of symmetry, if the 
8951 \family sans
8952 Opening
8953 \family default
8954  type and the 
8955 \family sans
8956 Closing
8957 \family default
8958  type had such a serious different appearance.
8959 \end_layout
8960
8961 \end_inset
8962
8963  The types must be used ahead of the corresponding 
8964 \family sans
8965 Opening
8966 \family default
8967  type.
8968 \end_layout
8969
8970 \begin_layout Standard
8971 An implementation of these types in a WYSIWYG fashion does not seem to make
8972  sense, because the real appearance of the produced letter does not only
8973  depend on the usage of the particular type, but also on other factors.
8974  For example, a signature entered in the 
8975 \family sans
8976 Signature
8977 \family default
8978  type will in the standard behavior appear in the produced letter only,
8979  when in the same letter also a 
8980 \family sans
8981 Closing
8982 \family default
8983  type is used.
8984  The entered value of the 
8985 \family sans
8986 Telephone
8987 \family default
8988  type will in the standard behavior not appear in the produced letter at
8989  all.
8990  The possibility to design the letter`s heading freely is already indicated
8991  in a footnote above.
8992 \end_layout
8993
8994 \begin_layout Standard
8995 The input types can also be used as empty paragraphs.
8996  This makes sense e.\InsetSpace ~
8997 g.
8998  for the 
8999 \family sans
9000 Signature
9001 \family default
9002  type.
9003  If the 
9004 \family sans
9005 Signature
9006 \family default
9007  type is not used at all, in the standard behavior the value of the 
9008 \family sans
9009 Name
9010 \family default
9011  type is used as signature, whereas if an empty 
9012 \family sans
9013 Signature
9014 \family default
9015  type is used, no signature value is defined.
9016 \end_layout
9017
9018 \begin_layout Standard
9019 By using the input types it is possible to write a letter template, containing
9020  filled input types with your personal dates (name, address, etc.) and empty
9021  input types for other dates you want to enter.
9022 \end_layout
9023
9024 \begin_layout Itemize
9025
9026 \family sans
9027 Name
9028 \family default
9029 : sender's name, in the standard behavior appears as a centered paragraph
9030  in small caps in the letter`s heading.
9031 \end_layout
9032
9033 \begin_layout Itemize
9034
9035 \family sans
9036 Signature
9037 \family default
9038 : sender's signature, in the standard behavior appears below the 
9039 \family sans
9040 Closing
9041 \family default
9042  type.
9043  If no 
9044 \family sans
9045 Signature
9046 \family default
9047  type is used, the value of the 
9048 \family sans
9049 Name
9050 \family default
9051  type appears instead.
9052 \end_layout
9053
9054 \begin_layout Itemize
9055
9056 \family sans
9057 Address
9058 \family default
9059 : sender's address, in the standard behavior appears in a centered paragraph
9060  in the letter`s heading below the sender's name.
9061 \end_layout
9062
9063 \begin_layout Itemize
9064
9065 \family sans
9066 Telephone
9067 \family default
9068 : sender's telephone number, in the standard behavior only sets the LaTeX
9069  variable 
9070 \family typewriter
9071
9072 \backslash
9073 telephonenum
9074 \family default
9075 .
9076 \end_layout
9077
9078 \begin_layout Itemize
9079
9080 \family sans
9081 Place
9082 \family default
9083 : place of the letter`s making.
9084 \end_layout
9085
9086 \begin_layout Itemize
9087
9088 \family sans
9089 Date
9090 \family default
9091 : date of the letter`s making.
9092  
9093 \family sans
9094 Place
9095 \family default
9096  and 
9097 \family sans
9098 Date
9099 \family default
9100 , in the standard behavior, produce the place and the date in a right-aligned
9101  line below the addressee's field.
9102  If an empty 
9103 \family sans
9104 Date
9105 \family default
9106  type is used, neither place nor date appear, independent of the value of
9107  the 
9108 \family sans
9109 Place
9110 \family default
9111  type.
9112  If no 
9113 \family sans
9114 Date
9115 \family default
9116  type is used, the date of the letter `s production is used.
9117 \end_layout
9118
9119 \begin_layout Itemize
9120
9121 \family sans
9122 Backaddress
9123 \family default
9124 : sender`s back address, in the standard behavior appears above the addressee's
9125  field in a small sans serif font.
9126 \end_layout
9127
9128 \begin_layout Itemize
9129
9130 \family sans
9131 Specialmail
9132 \family default
9133 : special mail information, in the standard behavior appears underlined
9134  above the addressee's field below the back address.
9135 \end_layout
9136
9137 \begin_layout Itemize
9138
9139 \family sans
9140 Location
9141 \family default
9142 : additional information, in the standard behavior appears on right side
9143  below the addressee`s field.
9144 \end_layout
9145
9146 \begin_layout Itemize
9147
9148 \family sans
9149 Title
9150 \family default
9151 : the letter's title, in the standard behavior appears in a big, bold, sans
9152  serif font above the subject.
9153 \end_layout
9154
9155 \begin_layout Itemize
9156
9157 \family sans
9158 Subject
9159 \family default
9160 : the letter's subject, in the standard behavior appears in a bold font
9161  above the 
9162 \family sans
9163 Opening
9164 \family default
9165  paragraph.
9166 \end_layout
9167
9168 \begin_layout Standard
9169 The types 
9170 \family sans
9171 Yourref
9172 \family default
9173
9174 \family sans
9175 Yourmail
9176 \family default
9177
9178 \family sans
9179 Myref
9180 \family default
9181
9182 \family sans
9183 Customer
9184 \family default
9185 , and 
9186 \family sans
9187 Invoice
9188 \family default
9189  produce a business letter like line above the 
9190 \family sans
9191 Title
9192 \family default
9193  line containing the fields 
9194 \begin_inset Quotes eld
9195 \end_inset
9196
9197 Your ref.
9198 \begin_inset Quotes erd
9199 \end_inset
9200
9201
9202 \begin_inset Quotes eld
9203 \end_inset
9204
9205 Your letter of
9206 \begin_inset Quotes erd
9207 \end_inset
9208
9209
9210 \begin_inset Quotes eld
9211 \end_inset
9212
9213 Our ref.
9214 \begin_inset Quotes erd
9215 \end_inset
9216
9217
9218 \begin_inset Quotes eld
9219 \end_inset
9220
9221 Customer no.
9222 \begin_inset Quotes erd
9223 \end_inset
9224
9225
9226 \begin_inset Quotes eld
9227 \end_inset
9228
9229 Invoice no.
9230 \begin_inset Quotes erd
9231 \end_inset
9232
9233 , and 
9234 \begin_inset Quotes eld
9235 \end_inset
9236
9237 Date
9238 \begin_inset Quotes erd
9239 \end_inset
9240
9241 .
9242  For the date field, the value of the 
9243 \family sans
9244 Date
9245 \family default
9246  type is used.
9247  If one of these 
9248 \begin_inset Quotes eld
9249 \end_inset
9250
9251 business letter types
9252 \begin_inset Quotes erd
9253 \end_inset
9254
9255  is used, the value of the 
9256 \family sans
9257 Place
9258 \family default
9259  type however does not appear, but only the LaTeX variable 
9260 \family typewriter
9261
9262 \backslash
9263 fromplace
9264 \family default
9265  is set.
9266  The ordinary output of place and date in a right-aligned line below the
9267  addressee`s field is suppressed.
9268  The types are implemented as input types provided with a label and must
9269  be used ahead of the corresponding 
9270 \family sans
9271 Opening
9272 \family default
9273  type.
9274 \end_layout
9275
9276 \begin_layout Itemize
9277
9278 \family sans
9279 Yourref
9280 \family default
9281 : Your ref.
9282 \end_layout
9283
9284 \begin_layout Itemize
9285
9286 \family sans
9287 Yourmail
9288 \family default
9289 : Your letter of.
9290 \end_layout
9291
9292 \begin_layout Itemize
9293
9294 \family sans
9295 Myref
9296 \family default
9297 : Our ref.
9298 \end_layout
9299
9300 \begin_layout Itemize
9301
9302 \family sans
9303 Customer
9304 \family default
9305 : Customer no.
9306 \end_layout
9307
9308 \begin_layout Itemize
9309
9310 \family sans
9311 Invoice
9312 \family default
9313 : Invoice no.
9314 \end_layout
9315
9316 \begin_layout Subsection
9317 The new letter class: letter (koma-script v.2)
9318 \end_layout
9319
9320 \begin_layout Standard
9321 by 
9322 \noun on
9323 Jürgen Spitzmüller
9324 \end_layout
9325
9326 \begin_layout Standard
9327 \begin_inset VSpace medskip
9328 \end_inset
9329
9330
9331 \end_layout
9332
9333 \begin_layout Standard
9334 \noindent
9335 Koma-Script version 2.8 has introduced a new letter class 
9336 \family typewriter
9337 scrlttr2
9338 \family default
9339  which superceeds the now unsupported 
9340 \family typewriter
9341 scrlettr
9342 \family default
9343 .
9344  It has --- on the LaTeX side --- a completely new interface and is not
9345  compatible with the old class.
9346  Therefore, LyX supports both, though it is recommended to use the new class.
9347 \end_layout
9348
9349 \begin_layout Standard
9350 This class covers the same functionality as 
9351 \emph on
9352 letter (koma-script),
9353 \emph default
9354  and a few more.
9355  The basic items are 
9356 \family sans
9357 Address
9358 \family default
9359  (receiver's address, same as 
9360 \family sans
9361 Letter
9362 \family default
9363  in the old layout), 
9364 \family sans
9365 Opening
9366 \family default
9367 , and 
9368 \family sans
9369 Closing
9370 \family default
9371 .
9372  
9373 \family sans
9374 NextAddress
9375 \family default
9376  will start a new letter (i.
9377 \begin_inset ERT
9378 status collapsed
9379
9380 \begin_layout Standard
9381
9382 \backslash
9383 ,
9384 \end_layout
9385
9386 \end_inset
9387
9388 e.
9389 \begin_inset ERT
9390 status collapsed
9391
9392 \begin_layout Standard
9393
9394 \backslash
9395  
9396 \end_layout
9397
9398 \end_inset
9399
9400 you can write several letters per document).
9401  New elements are sender's 
9402 \family sans
9403 E-Mail
9404 \family default
9405
9406 \family sans
9407 URL
9408 \family default
9409
9410 \family sans
9411 Fax
9412 \family default
9413
9414 \family sans
9415 Bank
9416 \family default
9417  and the possibility to use a 
9418 \family sans
9419 Logo
9420 \family default
9421  (via 
9422 \family sans
9423 \bar under
9424 I
9425 \bar default
9426 nsert\SpecialChar \menuseparator
9427
9428 \bar under
9429 G
9430 \bar default
9431 raphics
9432 \family default
9433 ) in the header.
9434 \end_layout
9435
9436 \begin_layout Standard
9437 The biggest improvement is, though, that the letter's layout is configurable
9438  at almost any needs.
9439  This can be done via the preamble or with a special style file (Letter
9440  Class Option, extension 
9441 \family typewriter
9442 *.lco
9443 \family default
9444 ), that will be read in as a class option.
9445 \begin_inset Foot
9446 status collapsed
9447
9448 \begin_layout Standard
9449 The KOMA package comes with some default 
9450 \family typewriter
9451 *.lco
9452 \family default
9453  files.
9454  There is, for instance, a 
9455 \family typewriter
9456 DIN.lco
9457 \family default
9458  file that follows german typesetting rules, or a 
9459 \family typewriter
9460 KOMAold.lco
9461 \family default
9462  that provides the default layout of the old 
9463 \family typewriter
9464 scrlettr
9465 \family default
9466  class.
9467  The latter can be loaded with the class option 
9468 \family typewriter
9469 KOMAold
9470 \family default
9471 , inserted via the 
9472 \family sans
9473 \bar under
9474 L
9475 \bar default
9476 ayout\SpecialChar \menuseparator
9477
9478 \bar under
9479 D
9480 \bar default
9481 ocument\SpecialChar \menuseparator
9482 Extra Options 
9483 \family default
9484 field.
9485 \end_layout
9486
9487 \end_inset
9488
9489  Have a look at the 
9490 \emph on
9491 koma-letter2
9492 \emph default
9493  template that is included in LyX for examples.
9494  A detailed description is to be found in the Koma-Script documentation
9495  (
9496 \emph on
9497 scrguide
9498 \emph default
9499 ).
9500 \end_layout
9501
9502 \begin_layout Subsection
9503 Problems
9504 \end_layout
9505
9506 \begin_layout Standard
9507 Visualizing the Koma-Script document classes in LyX, the LyX internals cause
9508  some problems.
9509 \end_layout
9510
9511 \begin_layout Itemize
9512 The chapter number of a 
9513 \family sans
9514 Chapter
9515 \family default
9516  type appears on a line of its own above the chapter heading instead of
9517  appearing in the same line ahead of it.
9518  The cause for that is the LyX internal behavior for the labeltype 
9519 \family sans
9520 Counter_Chapter
9521 \family default
9522  in the layout file.
9523 \end_layout
9524
9525 \begin_layout Itemize
9526 The headings of the types 
9527 \family sans
9528 Addchap
9529 \family default
9530  and 
9531 \family sans
9532 Addsec
9533 \family default
9534  are only put in the 
9535 \begin_inset Quotes eld
9536 \end_inset
9537
9538 true
9539 \begin_inset Quotes erd
9540 \end_inset
9541
9542  LaTeX table of contents, but not in the LyX table of contents (
9543 \family sans
9544 \bar under
9545 D
9546 \bar default
9547 ocument\SpecialChar \menuseparator
9548
9549 \bar under
9550 T
9551 \bar default
9552 able\InsetSpace ~
9553 of\InsetSpace ~
9554 Contents
9555 \family default
9556 ).
9557 \end_layout
9558
9559 \begin_layout Itemize
9560 The paragraphs in a 
9561 \emph on
9562 letter
9563 \emph default
9564  document class appear in a skip separation mode, not indented.
9565  This is the standard behavior, no special LaTeX commands are needed for
9566  that.
9567  But in the 
9568 \family sans
9569 \bar under
9570 D
9571 \bar default
9572 ocument\SpecialChar \menuseparator
9573
9574 \bar under
9575 S
9576 \bar default
9577 ettings
9578 \family default
9579  dialog the corresponding radio button indicates 
9580 \family sans
9581 \bar under
9582 I
9583 \bar default
9584 ndent
9585 \family default
9586 .
9587  A 
9588 \family sans
9589 S
9590 \bar under
9591 k
9592 \bar default
9593 ip
9594 \family default
9595  value always has the effect that extra LaTeX commands are inserted in the
9596  document to produce the gap, which is not what is wanted in this case.
9597 \end_layout
9598
9599 \begin_layout Section
9600 Springer Journals (
9601 \family sans
9602 svjour
9603 \family default
9604 )
9605 \end_layout
9606
9607 \begin_layout Standard
9608 by 
9609 \noun on
9610 Martin Vermeer
9611 \end_layout
9612
9613 \begin_layout Subsection
9614 Description
9615 \end_layout
9616
9617 \begin_layout Standard
9618 These are the layout files for some of the journal formats used by Springer
9619  Verlag and listed on 
9620 \begin_inset LatexCommand \url{http://www.springer.de/author/tex/help-journals.html}
9621
9622 \end_inset
9623
9624 , where you should also go to fetch the class files (yes, these are LaTeX2e
9625  now!).
9626  It is a modular system: the things common to all journals are implemented
9627  in 
9628 \family typewriter
9629 svjour.inc
9630 \family default
9631 , which journal-specific layout files (such as, e.g., 
9632 \family typewriter
9633 svjog.layout
9634 \family default
9635  for Journal of Geodesy) can include.
9636 \end_layout
9637
9638 \begin_layout Standard
9639 This means that implementing support for any other Springer journal on this
9640  list is as simple as writing your own 
9641 \family typewriter
9642 sv
9643 \family default
9644 <myjournal>
9645 \family typewriter
9646 .layout
9647 \family default
9648  file following the outline given in 
9649 \family typewriter
9650 svjog.layout
9651 \family default
9652 .
9653  
9654 \end_layout
9655
9656 \begin_layout Standard
9657 It is reasonably well tested only for the Journal of Geodesy.
9658  
9659 \family typewriter
9660 svjour
9661 \family default
9662  and 
9663 \family typewriter
9664 svjog
9665 \family default
9666  come with the standard LyX distribution.
9667  Install the relevant class file (downloaded from Springer) in a proper
9668  directory, reconfigure LaTeX (in the teTeX case by running 
9669 \family typewriter
9670 texhash
9671 \family default
9672 , as root if necessary --- doesn't LyX take care of this?), reconfigure
9673  LyX and it should work.
9674 \end_layout
9675
9676 \begin_layout Subsection
9677 New styles
9678 \end_layout
9679
9680 \begin_layout Standard
9681 A large number of theorem-like styles --- 
9682 \family sans
9683 Claim, Conjecture,
9684 \family default
9685  
9686 \family sans
9687 \SpecialChar \ldots{}
9688 Theorem
9689 \family default
9690 .
9691 \end_layout
9692
9693 \begin_layout Standard
9694
9695 \family sans
9696 Headnote, Dedication, Subtitle, Running_LaTeX_Title, Author_Running, Institute,
9697  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
9698 \family default
9699 .
9700  See the Springer class file documentation for details.
9701 \end_layout
9702
9703 \begin_layout Subsection
9704 Supported journals
9705 \end_layout
9706
9707 \begin_layout Itemize
9708
9709 \emph on
9710 Journal of Geodesy
9711 \emph default
9712
9713 \family typewriter
9714 svjog.layout 
9715 \family default
9716 --- Martin Vermeer
9717 \end_layout
9718
9719 \begin_layout Itemize
9720
9721 \emph on
9722 Probability Theory and Related Fields
9723 \emph default
9724
9725 \family typewriter
9726 svprobth.layout
9727 \family default
9728  --- Jean-Marc Lasgouttes
9729 \end_layout
9730
9731 \begin_layout Standard
9732 Add your own, it isn't so hard!
9733 \end_layout
9734
9735 \begin_layout Subsection
9736 Credits
9737 \end_layout
9738
9739 \begin_layout Standard
9740 These files are partly based on the older 
9741 \family typewriter
9742 ejour2.layout
9743 \family default
9744 , which was again based on a tinkered-with version of an old LaTeX 2.09 style
9745  file from Springer.
9746  All this, and the 
9747 \family typewriter
9748 ejour2
9749 \family default
9750  layout, are now defunct.
9751  Jean-Marc Lasgouttes helped out big in making me find my way around the
9752  LyX layout file mechanism.
9753 \end_layout
9754
9755 \begin_layout Subsection
9756 Bugs
9757 \end_layout
9758
9759 \begin_layout Standard
9760 Probably.
9761  But probably less than in the old hacked-LaTeX 
9762 \family typewriter
9763 ejour2
9764 \family default
9765 .
9766 \end_layout
9767
9768 \begin_layout Standard
9769 Limitations e.g.: does not display the number for theorem-like layouts, just
9770  #.
9771 \end_layout
9772
9773 \begin_layout Section
9774 AGU journals (
9775 \family sans
9776 aguplus
9777 \family default
9778 )
9779 \end_layout
9780
9781 \begin_layout Standard
9782 by 
9783 \shape smallcaps
9784 Martin Vermeer
9785 \end_layout
9786
9787 \begin_layout Subsection
9788 Description
9789 \end_layout
9790
9791 \begin_layout Standard
9792 These are the layout files for some of the journals of the American Geophysical
9793  Society.
9794  It is assumed that you have both the AGU's own class files and AGUplus
9795  installed (everything to be found at
9796 \begin_inset LatexCommand \url{ftp://ftp.agu.org/journals/latex/journals}
9797
9798 \end_inset
9799
9800 ).
9801 \end_layout
9802
9803 \begin_layout Subsection
9804 New styles
9805 \end_layout
9806
9807 \begin_layout Standard
9808 Redefined are 
9809 \family sans
9810 Paragraph
9811 \family default
9812
9813 \family sans
9814 Paragraph*
9815 \family default
9816 .
9817  They are still called this in the LyX GUI, though their LaTeX equivalents
9818  in the AGU classes are 
9819 \family sans
9820 Subsubsubsection
9821 \family default
9822  and 
9823 \family sans
9824 Subsubsubsection*
9825 \family default
9826 .
9827 \end_layout
9828
9829 \begin_layout Standard
9830 Newly defined styles are 
9831 \family sans
9832 Left_Header
9833 \family default
9834
9835 \family sans
9836 Right_Header
9837 \family default
9838
9839 \family sans
9840 Received
9841 \family default
9842
9843 \family sans
9844 Revised
9845 \family default
9846
9847 \family sans
9848 Accepted
9849 \family default
9850
9851 \family sans
9852 CCC
9853 \family default
9854
9855 \family sans
9856 PaperId
9857 \family default
9858
9859 \family sans
9860 AuthorAddr
9861 \family default
9862
9863 \family sans
9864 SlugComment
9865 \family default
9866 .
9867  These are mostly manuscript attributes and defined in the AGU class documentati
9868 on.
9869 \end_layout
9870
9871 \begin_layout Standard
9872 I suspect this is still badly incomplete.
9873 \end_layout
9874
9875 \begin_layout Subsection
9876 New floats
9877 \end_layout
9878
9879 \begin_layout Standard
9880
9881 \family sans
9882 Planotable
9883 \family default
9884  and 
9885 \family sans
9886 Plate
9887 \family default
9888 .
9889  We also have a new 
9890 \family sans
9891 Table_Caption
9892 \family default
9893 .
9894 \end_layout
9895
9896 \begin_layout Subsection
9897 Supported journals
9898 \end_layout
9899
9900 \begin_layout Itemize
9901
9902 \emph on
9903 Journal of Geophysical Research
9904 \emph default
9905
9906 \family typewriter
9907 jgrga.layout 
9908 \family default
9909 --- Martin Vermeer
9910 \end_layout
9911
9912 \begin_layout Standard
9913 Add your own, it isn't so hard! Look at the 
9914 \family typewriter
9915 jgrga.layout
9916 \family default
9917  example and 
9918 \family typewriter
9919 aguplus.inc
9920 \family default
9921 .
9922 \end_layout
9923
9924 \begin_layout Subsection
9925 Bugs and things to remember
9926 \end_layout
9927
9928 \begin_layout Standard
9929 In order to use the new layouts, you must remember to do the following for
9930  a new document:
9931 \end_layout
9932
9933 \begin_layout Enumerate
9934
9935 \emph on
9936 Turn off babel
9937 \emph default
9938 .
9939  This can be done in the 
9940 \family sans
9941 layout\SpecialChar \menuseparator
9942 document
9943 \family default
9944  or 
9945 \family sans
9946 document\SpecialChar \menuseparator
9947 settings
9948 \family default
9949  menu item.
9950  (AGU articles are always in English, right? So 
9951 \emph on
9952 don't
9953 \emph default
9954  choose a language.)
9955 \end_layout
9956
9957 \begin_layout Enumerate
9958 Enter 
9959 \family typewriter
9960 jgrga
9961 \family default
9962  into the document's 
9963 \family sans
9964 Extra Options
9965 \family default
9966  field.
9967  (Yes, this is a bug.)
9968 \end_layout
9969
9970 \begin_layout Enumerate
9971 Make sure you use the 
9972 \family typewriter
9973 agu.bst
9974 \family default
9975  bibliography style, by entering 
9976 \family sans
9977 agu
9978 \family default
9979  into the second field of the BibTeX inset.
9980  None of the standard styles will do.
9981 \end_layout
9982
9983 \begin_layout Section
9984 EGS journals (
9985 \family sans
9986 egs
9987 \family default
9988 )
9989 \end_layout
9990
9991 \begin_layout Standard
9992 by 
9993 \shape smallcaps
9994 Martin Vermeer
9995 \end_layout
9996
9997 \begin_layout Subsection
9998 Description
9999 \end_layout
10000
10001 \begin_layout Standard
10002 This is the layout file for the European Geophysical Society journals.
10003  The needed 
10004 \family typewriter
10005 egs.cls
10006 \family default
10007  can be downloaded from the web site of the EGS under 
10008 \begin_inset LatexCommand \url{www.copernicus.org}
10009
10010 \end_inset
10011
10012 .
10013 \end_layout
10014
10015 \begin_layout Subsection
10016 New styles
10017 \end_layout
10018
10019 \begin_layout Standard
10020
10021 \family sans
10022 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10023  Accepted
10024 \family default
10025
10026 \family sans
10027 Offsets
10028 \family default
10029 .
10030  The current layout file is unfortunately very unmodular and would benefit
10031  from using the various 
10032 \family typewriter
10033 std*.inc
10034 \family default
10035  file inclusions.
10036 \end_layout
10037
10038 \begin_layout Section
10039 Slides [aka 
10040 \noun on
10041 Sli
10042 \noun default
10043 TeX]
10044 \begin_inset LatexCommand \label{sec:slitex}
10045
10046 \end_inset
10047
10048
10049 \end_layout
10050
10051 \begin_layout Standard
10052 by 
10053 \noun on
10054 John Weiss
10055 \noun default
10056  
10057 \end_layout
10058
10059 \begin_layout Subsection
10060 Introduction
10061 \end_layout
10062
10063 \begin_layout Standard
10064 This section describes how to use LyX to make slides for overhead projectors.
10065  There are two document classes that can do this: the default slides class
10066  and the 
10067 \family sans
10068 Foil
10069 \family default
10070 TeX slides class.
10071  This section documents the former.
10072 \end_layout
10073
10074 \begin_layout Standard
10075 I'm going to say this again, nice and clear, so that there's no misunderstanding
10076 :
10077 \end_layout
10078
10079 \begin_layout Standard
10080 \begin_inset VSpace bigskip
10081 \end_inset
10082
10083
10084 \end_layout
10085
10086 \begin_layout Standard
10087 \align center
10088
10089 \size large
10090 This section documents the class 
10091 \begin_inset Quotes eld
10092 \end_inset
10093
10094
10095 \family sans
10096 slides (default)
10097 \family default
10098
10099 \begin_inset Quotes erd
10100 \end_inset
10101
10102  
10103 \emph on
10104 only.
10105 \end_layout
10106
10107 \begin_layout Standard
10108 \begin_inset VSpace bigskip
10109 \end_inset
10110
10111
10112 \end_layout
10113
10114 \begin_layout Standard
10115 If you're looking for the documentation for 
10116 \begin_inset Quotes eld
10117 \end_inset
10118
10119
10120 \family sans
10121 slides (FoilTeX)
10122 \family default
10123
10124 \begin_inset Quotes erd
10125 \end_inset
10126
10127 , check out section\InsetSpace ~
10128
10129 \begin_inset LatexCommand \ref{sec:foiltex}
10130
10131 \end_inset
10132
10133 .
10134  The 
10135 \family sans
10136 foils 
10137 \family default
10138 class [
10139 \begin_inset Quotes eld
10140 \end_inset
10141
10142
10143 \family sans
10144 slides (FoilTeX)
10145 \family default
10146
10147 \begin_inset Quotes erd
10148 \end_inset
10149
10150 ] is actually somewhat better than the default 
10151 \family sans
10152 slides
10153 \family default
10154  class,
10155 \begin_inset Foot
10156 status collapsed
10157
10158 \begin_layout Standard
10159 \SpecialChar \ldots{}
10160 or so I've been told repeatedly by its advocates.
10161  Having never used it, I have no idea if this claim is true or not.
10162 \end_layout
10163
10164 \end_inset
10165
10166  which this section documents.
10167 \end_layout
10168
10169 \begin_layout Standard
10170 This class is the LaTeX2e improvement of the old 
10171 \noun on
10172 Sli
10173 \noun default
10174 TeX package.
10175  Every LaTeX2e distribution includes this class [which I'll just refer to
10176  as 
10177 \begin_inset Quotes eld
10178 \end_inset
10179
10180
10181 \family sans
10182 slides
10183 \family default
10184
10185 \begin_inset Quotes erd
10186 \end_inset
10187
10188  from now on], so you're bound to have it.
10189  As I noted earlier, there are other classes, such as 
10190 \family sans
10191 foils
10192 \family default
10193 , which also produce slides for overhead projectors and do a better job
10194  at it.
10195  However, there are some things which 
10196 \family sans
10197 slides
10198 \family default
10199  can do which the others can't, such as generate overlays.
10200  Read on to learn more!
10201 \end_layout
10202
10203 \begin_layout Subsection
10204 Getting Started
10205 \begin_inset LatexCommand \label{sec:slidesetup}
10206
10207 \end_inset
10208
10209
10210 \end_layout
10211
10212 \begin_layout Standard
10213 Obviously, to use this document class, you need to select 
10214 \begin_inset Quotes eld
10215 \end_inset
10216
10217
10218 \family sans
10219 slides (default)
10220 \family default
10221
10222 \begin_inset Quotes erd
10223 \end_inset
10224
10225  from the class list in the 
10226 \family sans
10227 \bar under
10228 D
10229 \bar default
10230 ocument\SpecialChar \menuseparator
10231
10232 \bar under
10233 S
10234 \bar default
10235 ettings
10236 \family default
10237  dialog.
10238  There are some other special things you should know about this class:
10239 \end_layout
10240
10241 \begin_layout Itemize
10242 Don't bother changing the options 
10243 \family sans
10244 Sides and Columns
10245 \family default
10246 .
10247  They're not supported by the 
10248 \family sans
10249 slides
10250 \family default
10251  class, anyways.
10252 \end_layout
10253
10254 \begin_layout Itemize
10255 The option 
10256 \family sans
10257 \bar under
10258 P
10259 \bar default
10260 age\InsetSpace ~
10261 style
10262 \family default
10263  behaves a bit differently for this class.
10264  The possible choices and what they do are as follows:
10265 \end_layout
10266
10267 \begin_deeper
10268 \begin_layout Description
10269
10270 \family sans
10271 plain
10272 \family default
10273  The final output contains page numbers in the lower right corner.
10274 \end_layout
10275
10276 \begin_layout Description
10277
10278 \family sans
10279 headings
10280 \family default
10281  Like 
10282 \family sans
10283 plain
10284 \family default
10285 , but also prints out any time markers you've put in.
10286  This is the default.
10287 \end_layout
10288
10289 \begin_layout Description
10290
10291 \family sans
10292 empty
10293 \family default
10294  The final output contains no page numbers, time markers, or alignment markers.
10295 \end_layout
10296
10297 \end_deeper
10298 \begin_layout Itemize
10299 The 
10300 \family sans
10301 slides
10302 \family default
10303  class has an extra option: 
10304 \family typewriter
10305 clock
10306 \family default
10307 .
10308  To use it, put 
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  in the extra class options.
10321 \end_layout
10322
10323 \begin_deeper
10324 \begin_layout Standard
10325 Using this options allows you to add time markers to 
10326 \family sans
10327 Note
10328 \family default
10329 s.
10330  See section\InsetSpace ~
10331
10332 \begin_inset LatexCommand \ref{sec:slideNote}
10333
10334 \end_inset
10335
10336  for more details.
10337 \end_layout
10338
10339 \end_deeper
10340 \begin_layout Standard
10341 You can also use the template file 
10342 \begin_inset Quotes eld
10343 \end_inset
10344
10345
10346 \family typewriter
10347 slides.lyx
10348 \family default
10349
10350 \begin_inset Quotes erd
10351 \end_inset
10352
10353  to automatically set up a document to use the 
10354 \family sans
10355 slides 
10356 \family default
10357 class [using 
10358 \family sans
10359 \bar under
10360 F
10361 \bar default
10362 ile\SpecialChar \menuseparator
10363 New\InsetSpace ~
10364 from\InsetSpace ~
10365
10366 \bar under
10367 T
10368 \bar default
10369 emplate
10370 \family default
10371  to open your new document].
10372  The template file also contains some examples of the special paragraph
10373  environments used by this class.
10374  I'll describe those next.
10375 \end_layout
10376
10377 \begin_layout Subsection
10378 Paragraph Environments
10379 \end_layout
10380
10381 \begin_layout Subsubsection
10382 Supported Environments
10383 \end_layout
10384
10385 \begin_layout Standard
10386 The first thing you'll notice when you start up a new 
10387 \family sans
10388 slides 
10389 \family default
10390 document is the font size and type: it's the equivalent of the size 
10391 \begin_inset Quotes eld
10392 \end_inset
10393
10394
10395 \family sans
10396 Largest
10397 \family default
10398
10399 \begin_inset Quotes erd
10400 \end_inset
10401
10402  in the 
10403 \family sans
10404 Sans\InsetSpace ~
10405 Serif
10406 \family default
10407  font.
10408  This is also what's used in the output.
10409  Think of this as a 
10410 \begin_inset Quotes eld
10411 \end_inset
10412
10413 visual cue
10414 \begin_inset Quotes erd
10415 \end_inset
10416
10417  to remind you that this is a slide.
10418  Your final slides will use a larger font; ergo, you'll have less space.
10419  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
10420 \end_layout
10421
10422 \begin_layout Standard
10423 The next thing that becomes obvious is the changes to the paragraph environment
10424  pull-down box [at the far-left end of the toolbar].
10425  Most of the paragraph environments you're used to seeing are missing.
10426  There are also five new ones.
10427  That's because the 
10428 \family sans
10429 slides
10430 \family default
10431  class itself only supports certain paragraph environments:
10432 \end_layout
10433
10434 \begin_layout Itemize
10435
10436 \family sans
10437 Standard
10438 \end_layout
10439
10440 \begin_layout Itemize
10441
10442 \family sans
10443 Itemize
10444 \end_layout
10445
10446 \begin_layout Itemize
10447
10448 \family sans
10449 Enumerate
10450 \end_layout
10451
10452 \begin_layout Itemize
10453
10454 \family sans
10455 Description
10456 \end_layout
10457
10458 \begin_layout Itemize
10459
10460 \family sans
10461 List
10462 \end_layout
10463
10464 \begin_layout Itemize
10465
10466 \family sans
10467 Quotation
10468 \end_layout
10469
10470 \begin_layout Itemize
10471
10472 \family sans
10473 Quote
10474 \end_layout
10475
10476 \begin_layout Itemize
10477
10478 \family sans
10479 Verse
10480 \end_layout
10481
10482 \begin_layout Itemize
10483
10484 \family sans
10485 Caption
10486 \end_layout
10487
10488 \begin_layout Itemize
10489
10490 \family sans
10491 LyX-Code
10492 \end_layout
10493
10494 \begin_layout Itemize
10495
10496 \family sans
10497 Comment
10498 \end_layout
10499
10500 \begin_layout Standard
10501 All of the other standard environments, including the section-heading environmen
10502 ts, aren't used in the 
10503 \family sans
10504 slides
10505 \family default
10506  class.
10507 \end_layout
10508
10509 \begin_layout Standard
10510 On the other hand, you'll notice the following new environments:
10511 \end_layout
10512
10513 \begin_layout Itemize
10514
10515 \family sans
10516 Slide
10517 \end_layout
10518
10519 \begin_layout Itemize
10520
10521 \family sans
10522 Overlay
10523 \end_layout
10524
10525 \begin_layout Itemize
10526
10527 \family sans
10528 Note
10529 \end_layout
10530
10531 \begin_layout Itemize
10532
10533 \family sans
10534 InvisibleText
10535 \end_layout
10536
10537 \begin_layout Itemize
10538
10539 \family sans
10540 VisibleText
10541 \end_layout
10542
10543 \begin_layout Standard
10544 These five are kind of quirky, due to a 
10545 \begin_inset Quotes eld
10546 \end_inset
10547
10548 feature
10549 \begin_inset Quotes erd
10550 \end_inset
10551
10552  in LyX.
10553  You see, LyX doesn't permit you to nest any other paragraph environment
10554  into an empty environment.
10555  Now, that's fine and dandy, but it means that you wouldn't be able to start
10556  a slide with anything except plain text.
10557  To deal with this, I've performed a little 
10558 \begin_inset Quotes eld
10559 \end_inset
10560
10561 LaTeX magic.
10562 \begin_inset Quotes erd
10563 \end_inset
10564
10565  
10566 \end_layout
10567
10568 \begin_layout Subsubsection
10569 Quirks of the New Environments
10570 \begin_inset LatexCommand \label{sec:slideQuirk}
10571
10572 \end_inset
10573
10574
10575 \end_layout
10576
10577 \begin_layout Standard
10578 All five of the new paragraph environments are somewhat quirky due to inherent
10579  limitiations in the current version of LyX.
10580  As I just mentioned, LyX forbids environments that begin with another environme
10581 nt.
10582  To get around this, the 
10583 \family sans
10584 Slide
10585 \family default
10586  environment isn't a paragraph environment as described in the 
10587 \emph on
10588 User's Guide
10589 \emph default
10590 .
10591  
10592 \end_layout
10593
10594 \begin_layout Standard
10595 You should consider 
10596 \family sans
10597 Slide
10598 \family default
10599
10600 \family sans
10601 Overlay
10602 \family default
10603 , and 
10604 \family sans
10605 Note
10606 \family default
10607  to be 
10608 \begin_inset Quotes eld
10609 \end_inset
10610
10611 pseudo-environments.
10612 \begin_inset Quotes erd
10613 \end_inset
10614
10615  They look like a section heading or a 
10616 \begin_inset Quotes eld
10617 \end_inset
10618
10619
10620 \family sans
10621 Caption
10622 \family default
10623 ,
10624 \begin_inset Quotes erd
10625 \end_inset
10626
10627  but really begin a [and, if necessary, end the previous] paragraph environment.
10628  Likewise, treat 
10629 \family sans
10630 InvisibleText
10631 \family default
10632  and 
10633 \family sans
10634 VisibleText
10635 \family default
10636  as 
10637 \begin_inset Quotes eld
10638 \end_inset
10639
10640 pseudo-commands.
10641 \begin_inset Quotes erd
10642 \end_inset
10643
10644  These two perform some action.
10645 \end_layout
10646
10647 \begin_layout Standard
10648 A common feature of all five environments, 
10649 \family sans
10650 Slide
10651 \family default
10652
10653 \family sans
10654 Overlay
10655 \family default
10656
10657 \family sans
10658 Note
10659 \family default
10660
10661 \family sans
10662 InvisibleText
10663 \family default
10664  and 
10665 \family sans
10666 VisibleText
10667 \family default
10668 , is a rather long-ish label.
10669  The text following this label --- ordinarily the contents of the paragraph
10670  environment --- is utterly irrelevant for 
10671 \family sans
10672 Slide
10673 \family default
10674
10675 \family sans
10676 Overlay
10677 \family default
10678
10679 \family sans
10680 Note
10681 \family default
10682
10683 \family sans
10684 InvisibleText
10685 \family default
10686  and 
10687 \family sans
10688 VisibleText
10689 \family default
10690 .
10691  LyX completely ignores it.
10692  In fact, you can leave these five environments completely empty.
10693  
10694 \end_layout
10695
10696 \begin_layout Standard
10697 While you don't 
10698 \emph on
10699 have
10700 \emph default
10701  to put any text after the rather long-ish label, you might want to.
10702  This could be a short description of the contents of the 
10703 \family sans
10704 Slide
10705 \family default
10706 , for example.
10707  In that case, enter in your descriptive comment and hit 
10708 \family sans
10709 Return
10710 \family default
10711  as you normally would.
10712 \end_layout
10713
10714 \begin_layout Standard
10715 If, on the other hand, you don't want to enter in any descriptive text,
10716  you'll hit another LyX quirk.
10717  LyX, like nature, abhors a vacuum, and will not let you start a new paragraph
10718  environment until you put something in the old one.
10719  So, do this:
10720 \end_layout
10721
10722 \begin_layout Itemize
10723 Start entering the text that will 
10724 \emph on
10725 follow
10726 \emph default
10727  the new 
10728 \family sans
10729 Slide
10730 \family default
10731
10732 \family sans
10733 Overlay
10734 \family default
10735
10736 \family sans
10737 Note
10738 \family default
10739
10740 \family sans
10741 InvisibleText
10742 \family default
10743  or 
10744 \family sans
10745 VisibleText
10746 \family default
10747 .
10748  
10749 \end_layout
10750
10751 \begin_layout Itemize
10752 Now move to the beginning of that paragraph.
10753  
10754 \end_layout
10755
10756 \begin_layout Itemize
10757 Next, hit 
10758 \family sans
10759 Return
10760 \family default
10761 .
10762  
10763 \end_layout
10764
10765 \begin_layout Itemize
10766 Finally, change this new, empty paragraph to a 
10767 \family sans
10768 Slide
10769 \family default
10770
10771 \family sans
10772 Overlay
10773 \family default
10774
10775 \family sans
10776 Note
10777 \family default
10778
10779 \family sans
10780 InvisibleText
10781 \family default
10782  or 
10783 \family sans
10784 VisibleText
10785 \family default
10786 .
10787  
10788 \end_layout
10789
10790 \begin_layout Standard
10791 Some future version of LyX will, hopefully, resolve this quirkiness\SpecialChar \ldots{}
10792
10793 \end_layout
10794
10795 \begin_layout Subsection
10796 Making a Presentation with 
10797 \family sans
10798 Slide
10799 \family default
10800 ,
10801 \family sans
10802  Overlay
10803 \family default
10804  and 
10805 \family sans
10806 Note
10807 \end_layout
10808
10809 \begin_layout Subsubsection
10810 Using the 
10811 \family sans
10812 Slide
10813 \family default
10814  Environment
10815 \end_layout
10816
10817 \begin_layout Standard
10818 If you're expecting this section to teach you how to actually make a presentatio
10819 n, you'll be sorely disappointed.
10820  Naturally, I'll describe all of the ways the 
10821 \family sans
10822 slides
10823 \family default
10824  class can assist you in preparing the materials for a presentation.
10825  Filling in the contents, however, is up to you.
10826  [Then again, that 
10827 \emph on
10828 is
10829 \emph default
10830  the LyX philosophy.]
10831 \end_layout
10832
10833 \begin_layout Standard
10834 Choosing the 
10835 \family sans
10836 Slide
10837 \family default
10838  environment [in the manner described in section\InsetSpace ~
10839
10840 \begin_inset LatexCommand \ref{sec:slideQuirk}
10841
10842 \end_inset
10843
10844 ] tells LyX to begin a new slide [duh].
10845  The label for this environment/
10846 \begin_inset Quotes erd
10847 \end_inset
10848
10849 pseudo-command
10850 \begin_inset Quotes erd
10851 \end_inset
10852
10853  is an 
10854 \begin_inset Quotes eld
10855 \end_inset
10856
10857 ASCII line,
10858 \begin_inset Quotes erd
10859 \end_inset
10860
10861  in cool blue, followed by the label, 
10862 \begin_inset Quotes eld
10863 \end_inset
10864
10865 NewSlide:
10866 \begin_inset Quotes erd
10867 \end_inset
10868
10869 .
10870  Any text or paragraph environments that follow this one go on the new slide.
10871  It's that simple.
10872 \end_layout
10873
10874 \begin_layout Standard
10875 Slides are probably the only time you'll need to forcibly end pages in LyX
10876  (this can be specified in the 
10877 \family sans
10878 Paragraph Layout
10879 \family default
10880  dialog).
10881  In fact, you'll want to, once you finish entering the contents of one slide.
10882  If you've entered more text than can physically fit on a slide, the extra
10883  overflows onto a new slide.
10884  I don't recommend doing this, however, since the overflow slide won't have
10885  any page number on it.
10886  Furthermore, it may interfere with any 
10887 \family sans
10888 Overlay
10889 \family default
10890  you've made to accompany the oversized 
10891 \family sans
10892 Slide
10893 \family default
10894 .
10895 \end_layout
10896
10897 \begin_layout Standard
10898 The 
10899 \family sans
10900 Overlay
10901 \family default
10902  and 
10903 \family sans
10904 Note
10905 \family default
10906  environments work the same way as the 
10907 \family sans
10908 Slide 
10909 \family default
10910 environment.
10911  They both create an 
10912 \begin_inset Quotes eld
10913 \end_inset
10914
10915 ASCII line
10916 \begin_inset Quotes erd
10917 \end_inset
10918
10919  followed by a label [
10920 \begin_inset Quotes eld
10921 \end_inset
10922
10923 NewOverlay:
10924 \begin_inset Quotes erd
10925 \end_inset
10926
10927  and 
10928 \begin_inset Quotes eld
10929 \end_inset
10930
10931 NewNote:
10932 \begin_inset Quotes erd
10933 \end_inset
10934
10935 , respectively].
10936  The color is a stunning magenta instead of blue, and the 
10937 \begin_inset Quotes eld
10938 \end_inset
10939
10940 ASCII line
10941 \begin_inset Quotes erd
10942 \end_inset
10943
10944  will look different, in style and in length.
10945  The label fonts of all three also differ from one another.
10946 \end_layout
10947
10948 \begin_layout Standard
10949 As with a 
10950 \family sans
10951 Slide
10952 \family default
10953 , if the contents of a 
10954 \family sans
10955 Note
10956 \family default
10957  or 
10958 \family sans
10959 Overlay
10960 \family default
10961  exceed the physical size of a slide or sheet of paper, the extra will overflow
10962  onto a new sheet.
10963  Again, you should avoid this.
10964  It defeats the whole purpose of 
10965 \family sans
10966 Note
10967 \family default
10968 s and 
10969 \family sans
10970 Overlay
10971 \family default
10972 s.
10973 \end_layout
10974
10975 \begin_layout Subsubsection
10976 Using 
10977 \family sans
10978 Overlay
10979 \family default
10980  with 
10981 \family sans
10982 Slide
10983 \end_layout
10984
10985 \begin_layout Standard
10986 The idea behind an 
10987 \family sans
10988 Overlay
10989 \family default
10990  is a slide that sits atop another slide.
10991  Perhaps you wish to discuss a figure on the main 
10992 \family sans
10993 Slide
10994 \family default
10995  before displaying the text associated with it.
10996  One way to accomplish this is tape a flap of dark paper over the part of
10997  the 
10998 \family sans
10999 Slide
11000 \family default
11001  you want to display later.
11002  This method fails, however, if you wish to overlap one graph with another,
11003  for example.
11004  You would then have to fumble while speaking to align the two separate,
11005  overlapping 
11006 \family sans
11007 Slide
11008 \family default
11009 s to align the two graphs.
11010  The use of an 
11011 \family sans
11012 Overlay
11013 \family default
11014  environment in both cases makes life much easier.
11015 \end_layout
11016
11017 \begin_layout Standard
11018 Each 
11019 \family sans
11020 Overlay
11021 \family default
11022  receives the page number of its 
11023 \begin_inset Quotes eld
11024 \end_inset
11025
11026 parent
11027 \begin_inset Quotes erd
11028 \end_inset
11029
11030  
11031 \family sans
11032 Slide
11033 \family default
11034 , appended by 
11035 \begin_inset Quotes eld
11036 \end_inset
11037
11038
11039 \family typewriter
11040 -a
11041 \family default
11042
11043 \begin_inset Quotes erd
11044 \end_inset
11045
11046 .
11047 \begin_inset Foot
11048 status collapsed
11049
11050 \begin_layout Standard
11051 Presumably, mutliple 
11052 \family sans
11053 Overlay
11054 \family default
11055 s would have 
11056 \begin_inset Quotes eld
11057 \end_inset
11058
11059
11060 \family typewriter
11061 -a
11062 \family default
11063
11064 \begin_inset Quotes erd
11065 \end_inset
11066
11067
11068 \begin_inset Quotes eld
11069 \end_inset
11070
11071
11072 \family typewriter
11073 -b
11074 \family default
11075
11076 \begin_inset Quotes erd
11077 \end_inset
11078
11079
11080 \begin_inset Quotes eld
11081 \end_inset
11082
11083
11084 \family typewriter
11085 -c
11086 \family default
11087
11088 \begin_inset Quotes erd
11089 \end_inset
11090
11091 , etc.\InsetSpace ~
11092 appended to the page number of the parent 
11093 \family sans
11094 Slide
11095 \family default
11096 .
11097  
11098 \end_layout
11099
11100 \end_inset
11101
11102  Clearly, you want the contents of both the 
11103 \family sans
11104 Slide
11105 \family default
11106  and the 
11107 \family sans
11108 Overlay
11109 \family default
11110  to each fit on a single physical slide! You should probably consider an
11111  
11112 \family sans
11113 Overlay
11114 \family default
11115  as 
11116 \begin_inset Quotes eld
11117 \end_inset
11118
11119 part of
11120 \begin_inset Quotes erd
11121 \end_inset
11122
11123  a 
11124 \family sans
11125 Slide
11126 \family default
11127 .
11128  Indeed, the LyX 
11129 \family sans
11130 slides
11131 \family default
11132  class provides a visual cue for this: the label at the start of an 
11133 \family sans
11134 Overlay
11135 \family default
11136  is shorter than that at the start of a 
11137 \family sans
11138 Slide
11139 \family default
11140 .
11141  Lastly, when you generate printable output, you'll find alignment markers
11142  in all four corners of both the 
11143 \family sans
11144 Overlay
11145 \family default
11146  page and its parent 
11147 \family sans
11148 Slide
11149 \family default
11150 .
11151  These will assist you in lining up the two physical slides.
11152 \end_layout
11153
11154 \begin_layout Standard
11155 The major problem in overlaying two slides is aligning the contents of the
11156  two transparencies.
11157  How much space should you leave for that graph on the second slide? Worse
11158  still, what if you want a graph and a sentence on second slide, but there
11159  is text on the main transparency that goes in between them? You could try
11160  and insert vertical space of the right size.
11161  The better way is to use 
11162 \family sans
11163 InvisibleText
11164 \family default
11165  and 
11166 \family sans
11167 VisibleText
11168 \family default
11169 .
11170 \end_layout
11171
11172 \begin_layout Standard
11173 As their names imply, 
11174 \family sans
11175 InvisibleText
11176 \family default
11177  and 
11178 \family sans
11179 VisibleText
11180 \family default
11181  are two command-like paragraph environments that make all subsequent text
11182  invisible and visible, respectively.
11183  Note from section\InsetSpace ~
11184
11185 \begin_inset LatexCommand \ref{sec:slideQuirk}
11186
11187 \end_inset
11188
11189  that you don't place anything 
11190 \emph on
11191 into
11192 \emph default
11193  these two environments, however.
11194  When you create an 
11195 \family sans
11196 InvisibleText
11197 \family default
11198 , it inserts a centered, sky-blue label into the page reading 
11199 \begin_inset Quotes eld
11200 \end_inset
11201
11202 <Invisible Text Follows>
11203 \begin_inset Quotes erd
11204 \end_inset
11205
11206 .
11207  For paragraphs following this label, the parts of the 
11208 \family sans
11209 Slide
11210 \family default
11211  [or 
11212 \family sans
11213 Overlay
11214 \family default
11215 ; it doesn't matter which] where they would be contain instead blank space.
11216  
11217 \end_layout
11218
11219 \begin_layout Standard
11220 For 
11221 \family sans
11222 VisibleText
11223 \family default
11224 , the corresponding centered label is 
11225 \begin_inset Quotes eld
11226 \end_inset
11227
11228 <Visible Text Follows>
11229 \begin_inset Quotes erd
11230 \end_inset
11231
11232  in blazing green.
11233  Paragraphs following this label behave normally.
11234  Note that the beginning of a new 
11235 \family sans
11236 Slide
11237 \family default
11238
11239 \family sans
11240 Overlay
11241 \family default
11242 , or 
11243 \family sans
11244 Note
11245 \family default
11246  automatically shuts off an 
11247 \family sans
11248 InvisibleText
11249 \family default
11250 .
11251  It's therefore not necessary to use 
11252 \family sans
11253 VisibleText
11254 \family default
11255  at the end of a 
11256 \family sans
11257 Slide
11258 \family default
11259 .
11260 \end_layout
11261
11262 \begin_layout Standard
11263 By now, it should be obvious how to create overlay transparencies using
11264  the proper combination of 
11265 \family sans
11266 InvisibleText
11267 \family default
11268  and 
11269 \family sans
11270 VisibleText
11271 \family default
11272  on a 
11273 \family sans
11274 Slide
11275 \family default
11276  and 
11277 \family sans
11278 Overlay
11279 \family default
11280 :
11281 \end_layout
11282
11283 \begin_layout Enumerate
11284 Create a 
11285 \family sans
11286 Slide
11287 \family default
11288 , including everything that will appear on it, whether on the main slide
11289  or on the 
11290 \family sans
11291 Overlay
11292 \family default
11293 .
11294 \end_layout
11295
11296 \begin_layout Enumerate
11297 Before each figure or paragraph that will appear only on the 
11298 \family sans
11299 Overlay
11300 \family default
11301 , insert an 
11302 \family sans
11303 InvisibleText
11304 \family default
11305  environment.
11306  If necessary, insert a 
11307 \family sans
11308 VisibleText
11309 \family default
11310  environment after the 
11311 \family sans
11312 Overlay
11313 \family default
11314 -only text.
11315 \end_layout
11316
11317 \begin_layout Enumerate
11318 Start an 
11319 \family sans
11320 Overlay
11321 \family default
11322  immediately following the 
11323 \family sans
11324 Slide
11325 \family default
11326 .
11327 \end_layout
11328
11329 \begin_layout Enumerate
11330 Copy the contents of this 
11331 \family sans
11332 Slide
11333 \family default
11334  into the 
11335 \family sans
11336 Overlay
11337 \family default
11338 .
11339 \end_layout
11340
11341 \begin_layout Enumerate
11342 Within the 
11343 \family sans
11344 Overlay
11345 \family default
11346 , change all of the 
11347 \family sans
11348 InvisibleText
11349 \family default
11350  lines to 
11351 \family sans
11352 VisibleText
11353 \family default
11354  and vice-versa.
11355 \end_layout
11356
11357 \begin_layout Standard
11358 That's it.
11359  You've just made an 
11360 \family sans
11361 Overlay
11362 \family default
11363 .
11364 \end_layout
11365
11366 \begin_layout Standard
11367 There's one problem with the way I've designed the LyX 
11368 \family sans
11369 slides
11370 \family default
11371  class: you can't make text in the middle of a paragraph invisible, nor
11372  make text in the middle of an invisible paragraph visible again.
11373  To accomplish this feat, you'll need to use some inlined LaTeX codes.
11374 \begin_inset Foot
11375 status collapsed
11376
11377 \begin_layout Standard
11378 The commands of interest are: 
11379 \end_layout
11380
11381 \begin_layout Itemize
11382
11383 \family typewriter
11384 {
11385 \backslash
11386 invisible \SpecialChar \ldots{}
11387  }
11388 \end_layout
11389
11390 \begin_layout Itemize
11391
11392 \family typewriter
11393 {
11394 \backslash
11395 visible \SpecialChar \ldots{}
11396  }
11397 \end_layout
11398
11399 \begin_layout Standard
11400 \SpecialChar \ldots{}
11401 and need to be marked as TeX.
11402  The text whose 
11403 \begin_inset Quotes eld
11404 \end_inset
11405
11406 visibility
11407 \begin_inset Quotes erd
11408 \end_inset
11409
11410  you wish to change goes in between the brackets [and after the 
11411 \family typewriter
11412
11413 \backslash
11414 invisible
11415 \family default
11416  or 
11417 \family typewriter
11418
11419 \backslash
11420 visible
11421 \family default
11422  command].
11423  If you don't know how to mark text as TeX, see the apprpriate section of
11424  the 
11425 \emph on
11426 User's Guide
11427 \emph default
11428 .
11429 \end_layout
11430
11431 \end_inset
11432
11433
11434 \end_layout
11435
11436 \begin_layout Subsubsection
11437 Using 
11438 \family sans
11439 Note
11440 \family default
11441  with 
11442 \family sans
11443 Slide
11444 \family default
11445
11446 \begin_inset LatexCommand \label{sec:slideNote}
11447
11448 \end_inset
11449
11450
11451 \end_layout
11452
11453 \begin_layout Standard
11454 Like an 
11455 \family sans
11456 Overlay
11457 \family default
11458 , a 
11459 \family sans
11460 Note
11461 \family default
11462  is associated with a 
11463 \begin_inset Quotes eld
11464 \end_inset
11465
11466 parent
11467 \begin_inset Quotes erd
11468 \end_inset
11469
11470  
11471 \family sans
11472 Slide
11473 \family default
11474 .
11475  Here, too, the LyX 
11476 \family sans
11477 slides
11478 \family default
11479  class provides visual cues.
11480  The label for a 
11481 \family sans
11482 Note
11483 \family default
11484  is shorter than that of a 
11485 \family sans
11486 Slide
11487 \family default
11488  [yet longer than that of an 
11489 \family sans
11490 Overlay
11491 \family default
11492 ] and, like the label of an 
11493 \family sans
11494 Overlay
11495 \family default
11496  is shockingly magenta.
11497  Additionally, the printed 
11498 \family sans
11499 Note
11500 \family default
11501  has the page number of its 
11502 \begin_inset Quotes eld
11503 \end_inset
11504
11505 parent
11506 \begin_inset Quotes erd
11507 \end_inset
11508
11509  
11510 \family sans
11511 Slide
11512 \family default
11513 , appended by 
11514 \begin_inset Quotes eld
11515 \end_inset
11516
11517
11518 \family typewriter
11519 -
11520 \family default
11521 1
11522 \begin_inset Quotes erd
11523 \end_inset
11524
11525
11526 \begin_inset Quotes eld
11527 \end_inset
11528
11529
11530 \family typewriter
11531 -
11532 \family default
11533 2
11534 \begin_inset Quotes erd
11535 \end_inset
11536
11537
11538 \begin_inset Quotes eld
11539 \end_inset
11540
11541
11542 \family typewriter
11543 -
11544 \family default
11545 3
11546 \begin_inset Quotes erd
11547 \end_inset
11548
11549 , etc.
11550  You can have multiple 
11551 \family sans
11552 Note
11553 \family default
11554 s associated with a single 
11555 \family sans
11556 Slide
11557 \family default
11558 , and, as with 
11559 \family sans
11560 Slide
11561 \family default
11562  and 
11563 \family sans
11564 Overlay
11565 \family default
11566 , you'll probably want to break up long 
11567 \family sans
11568 Note
11569 \family default
11570 s so that they fit on a single sheet of paper.
11571 \end_layout
11572
11573 \begin_layout Standard
11574 The purpose of a 
11575 \family sans
11576 Note
11577 \family default
11578  is obvious: it contains anything additional you might want to say about
11579  a 
11580 \family sans
11581 Slide
11582 \family default
11583 .
11584  It could also be used as a sheet of reminders for a particular 
11585 \family sans
11586 Slide
11587 \family default
11588 .
11589  In the case of the latter, you might want to make use of time markers.
11590  Currently, the LyX 
11591 \family sans
11592 slides
11593 \family default
11594  class has no 
11595 \begin_inset Quotes eld
11596 \end_inset
11597
11598 native
11599 \begin_inset Quotes erd
11600 \end_inset
11601
11602  support for time markers, a 
11603 \noun on
11604 Sli
11605 \noun default
11606 TeX feature.
11607  So, you'll have to resort to using the LaTeX codes.
11608 \end_layout
11609
11610 \begin_layout Standard
11611 To use time markers, you'll need to specify the extra class option 
11612 \begin_inset Quotes eld
11613 \end_inset
11614
11615
11616 \family typewriter
11617 clock
11618 \family default
11619
11620 \begin_inset Quotes erd
11621 \end_inset
11622
11623  [see section\InsetSpace ~
11624
11625 \begin_inset LatexCommand \ref{sec:slidesetup}
11626
11627 \end_inset
11628
11629 ].
11630  This option turns on timing marks, which will appear in the lower-left-hand
11631  corner of every 
11632 \family sans
11633 Note
11634 \family default
11635  you generate.
11636  To set what appears in the time marker, you use the LaTeX commands 
11637 \begin_inset Quotes eld
11638 \end_inset
11639
11640
11641 \family typewriter
11642
11643 \backslash
11644 settime{}
11645 \family default
11646
11647 \begin_inset Quotes erd
11648 \end_inset
11649
11650  and 
11651 \begin_inset Quotes eld
11652 \end_inset
11653
11654
11655 \family typewriter
11656
11657 \backslash
11658 addtime{}
11659 \family default
11660
11661 \begin_inset Quotes erd
11662 \end_inset
11663
11664 .
11665  The arguments of both commands are time measured in seconds.
11666  
11667 \begin_inset Quotes eld
11668 \end_inset
11669
11670
11671 \family typewriter
11672
11673 \backslash
11674 settime{}
11675 \family default
11676
11677 \begin_inset Quotes erd
11678 \end_inset
11679
11680  sets the time marker to a given time.
11681  
11682 \begin_inset Quotes eld
11683 \end_inset
11684
11685
11686 \family typewriter
11687
11688 \backslash
11689 addtime{}
11690 \family default
11691
11692 \begin_inset Quotes erd
11693 \end_inset
11694
11695  increments the time marker by the specified amount.
11696  Using time markers and 
11697 \family sans
11698 Note
11699 \family default
11700 s in this fashion, you can remind yourself how much time to spend on a particula
11701
11702 \family sans
11703 Slide
11704 \family default
11705 .
11706 \end_layout
11707
11708 \begin_layout Standard
11709 There's one last feature to describe.
11710  Clearly, you'd like to print out all of your 
11711 \family sans
11712 Slide
11713 \family default
11714 s and 
11715 \family sans
11716 Overlay
11717 \family default
11718 s on transparencies while printing all of your 
11719 \family sans
11720 Note
11721 \family default
11722 s on plain paper.
11723  However, a 
11724 \family sans
11725 Note
11726 \family default
11727  
11728 \emph on
11729 must
11730 \emph default
11731  follow the 
11732 \family sans
11733 Slide
11734 \family default
11735  with which it is associated.
11736  What's a person to do?
11737 \end_layout
11738
11739 \begin_layout Standard
11740 Luckily, there are two LaTeX commands that allow you to select what to print
11741  out.
11742  Both must be placed into the preamble of your document.
11743  The command 
11744 \begin_inset Quotes eld
11745 \end_inset
11746
11747
11748 \family typewriter
11749
11750 \backslash
11751 onlyslides{
11752 \backslash
11753 slides}
11754 \family default
11755
11756 \begin_inset Quotes erd
11757 \end_inset
11758
11759  will cause the output to contain only the 
11760 \family sans
11761 Slide
11762 \family default
11763 s and 
11764 \family sans
11765 Overlay
11766 \family default
11767 s.
11768  Correspondingly, the command 
11769 \begin_inset Quotes eld
11770 \end_inset
11771
11772
11773 \family typewriter
11774
11775 \backslash
11776 onlynotes{
11777 \backslash
11778 notes}
11779 \family default
11780
11781 \begin_inset Quotes erd
11782 \end_inset
11783
11784  prevents the output of anything but 
11785 \family sans
11786 Note
11787 \family default
11788 s.
11789  I'd advise placing both commands in the preamble and initially comment
11790  both out.
11791  You can then preview your entire presentation as you write.
11792  When you're done writing, you can then uncomment one of the two to select
11793  what you want to print.
11794  I like to uncomment 
11795 \begin_inset Quotes eld
11796 \end_inset
11797
11798
11799 \family typewriter
11800
11801 \backslash
11802 onlyslides{
11803 \backslash
11804 slides}
11805 \family default
11806
11807 \begin_inset Quotes erd
11808 \end_inset
11809
11810  , print to a file with 
11811 \begin_inset Quotes eld
11812 \end_inset
11813
11814
11815 \family typewriter
11816 -slides
11817 \family default
11818
11819 \begin_inset Quotes erd
11820 \end_inset
11821
11822  in its name, comment it back out, then uncomment 
11823 \begin_inset Quotes eld
11824 \end_inset
11825
11826
11827 \family typewriter
11828
11829 \backslash
11830 onlynotes{
11831 \backslash
11832 notes}
11833 \family default
11834
11835 \begin_inset Quotes erd
11836 \end_inset
11837
11838  and print to a 
11839 \begin_inset Quotes eld
11840 \end_inset
11841
11842
11843 \family typewriter
11844 *-notes.ps
11845 \family default
11846
11847 \begin_inset Quotes erd
11848 \end_inset
11849
11850  file.
11851  I can then send either file to a printer, loading transparencies or plain
11852  paper as appropriate.
11853 \end_layout
11854
11855 \begin_layout Standard
11856 You can also provide other arguments to the 
11857 \begin_inset Quotes eld
11858 \end_inset
11859
11860
11861 \family typewriter
11862
11863 \backslash
11864 onlyslides{}
11865 \family default
11866
11867 \begin_inset Quotes erd
11868 \end_inset
11869
11870  and 
11871 \begin_inset Quotes eld
11872 \end_inset
11873
11874
11875 \family typewriter
11876
11877 \backslash
11878 onlynotes{}
11879 \family default
11880
11881 \begin_inset Quotes erd
11882 \end_inset
11883
11884  commands.
11885  See a good LaTeX book for details.
11886 \end_layout
11887
11888 \begin_layout Subsection
11889 The 
11890 \family sans
11891 slides
11892 \family default
11893  Class Template File
11894 \end_layout
11895
11896 \begin_layout Standard
11897 I have also provided a template file, 
11898 \begin_inset Quotes eld
11899 \end_inset
11900
11901
11902 \family typewriter
11903 slides.lyx
11904 \family default
11905
11906 \begin_inset Quotes erd
11907 \end_inset
11908
11909 , with the 
11910 \family sans
11911 slides
11912 \family default
11913  class.
11914  To use it, begin your new presentation with 
11915 \family sans
11916 \bar under
11917 F
11918 \bar default
11919 ile\SpecialChar \menuseparator
11920 New\InsetSpace ~
11921 from\InsetSpace ~
11922
11923 \bar under
11924 T
11925 \bar default
11926 emplate
11927 \family default
11928 .
11929  Your new LyX presentation file will contain an example 
11930 \family sans
11931 Slide
11932 \family default
11933  -- 
11934 \family sans
11935 Overlay
11936 \family default
11937  --
11938 \family sans
11939  Note
11940 \family default
11941  triplet.
11942  The 
11943 \family sans
11944 Slide
11945 \family default
11946  and 
11947 \family sans
11948 Overlay
11949 \family default
11950  additionally contain an example of the use of 
11951 \family sans
11952 InvisibleText
11953 \family default
11954  and 
11955 \family sans
11956 VisibleText
11957 \family default
11958 .
11959  Lastly, the preamble will contain:
11960 \end_layout
11961
11962 \begin_layout LyX-Code
11963 % Uncomment to print out only slides and overlays
11964 \end_layout
11965
11966 \begin_layout LyX-Code
11967 %
11968 \end_layout
11969
11970 \begin_layout LyX-Code
11971 %
11972 \backslash
11973 onlyslides{
11974 \backslash
11975 slides}
11976 \newline
11977  
11978 \end_layout
11979
11980 \begin_layout LyX-Code
11981 % Uncomment to print out only notes
11982 \end_layout
11983
11984 \begin_layout LyX-Code
11985 %
11986 \end_layout
11987
11988 \begin_layout LyX-Code
11989 %
11990 \backslash
11991 onlynotes{
11992 \backslash
11993 notes}
11994 \end_layout
11995
11996 \begin_layout Standard
11997 One final thing: I created this class to support the LaTeX2e 
11998 \begin_inset Quotes eld
11999 \end_inset
12000
12001
12002 \noun on
12003 Sli
12004 \noun default
12005 TeX emulation
12006 \begin_inset Quotes erd
12007 \end_inset
12008
12009  class, one of the built-in LaTeX2e classes.
12010  Neither I nor the rest of the LyX Team endorse or oppose the use of this
12011  built-in slide class.
12012  It's here if you want it or need it.
12013  There exist other LaTeX2e classes for creating presentations, such as the
12014  
12015 \family sans
12016 Foils
12017 \family default
12018  class [see section\InsetSpace ~
12019
12020 \begin_inset LatexCommand \ref{sec:foiltex}
12021
12022 \end_inset
12023
12024 ] or the 
12025 \begin_inset Quotes eld
12026 \end_inset
12027
12028
12029 \family typewriter
12030 seminar
12031 \family default
12032
12033 \begin_inset Quotes erd
12034 \end_inset
12035
12036  package [present on some TeX distributions].
12037  The latter is not yet supported under LyX.
12038 \begin_inset Foot
12039 status collapsed
12040
12041 \begin_layout Standard
12042 Perhaps you can take on the task\SpecialChar \ldots{}
12043
12044 \end_layout
12045
12046 \end_inset
12047
12048  I know nothing about these other classes.
12049  Try them out to see what sort of alternative they provide.
12050 \end_layout
12051
12052 \begin_layout Section
12053 Foils [aka 
12054 \family sans
12055 Foil
12056 \family default
12057 \noun on
12058 TeX
12059 \noun default
12060 ]
12061 \begin_inset LatexCommand \label{sec:foiltex}
12062
12063 \end_inset
12064
12065
12066 \end_layout
12067
12068 \begin_layout Standard
12069 by 
12070 \noun on
12071 Allan Rae
12072 \end_layout
12073
12074 \begin_layout Subsection
12075 Introduction
12076 \end_layout
12077
12078 \begin_layout Standard
12079 This section describes how to use LyX to make slides for overhead projectors.
12080  There are two document classes that can do this: the default slides class
12081  and the 
12082 \family sans
12083 Foil
12084 \family default
12085 TeX slides class.
12086  This section documents the latter.
12087 \end_layout
12088
12089 \begin_layout Standard
12090 I'm going to say this again, nice and clear, so that there's no misunderstanding
12091 :
12092 \end_layout
12093
12094 \begin_layout Standard
12095 \begin_inset VSpace bigskip
12096 \end_inset
12097
12098
12099 \end_layout
12100
12101 \begin_layout Standard
12102 \align center
12103
12104 \size large
12105 This section documents the class 
12106 \begin_inset Quotes eld
12107 \end_inset
12108
12109
12110 \family sans
12111 slides (FoilTeX)
12112 \family default
12113
12114 \begin_inset Quotes erd
12115 \end_inset
12116
12117  
12118 \emph on
12119 only.
12120 \end_layout
12121
12122 \begin_layout Standard
12123 \begin_inset VSpace bigskip
12124 \end_inset
12125
12126
12127 \end_layout
12128
12129 \begin_layout Standard
12130 If you're looking for the documentation for 
12131 \begin_inset Quotes eld
12132 \end_inset
12133
12134
12135 \family sans
12136 slides (default)
12137 \family default
12138
12139 \begin_inset Quotes erd
12140 \end_inset
12141
12142 , check out section\InsetSpace ~
12143
12144 \begin_inset LatexCommand \ref{sec:slitex}
12145
12146 \end_inset
12147
12148 .
12149  If your machine doesn't have the 
12150 \family sans
12151 foils 
12152 \family default
12153 class [
12154 \begin_inset Quotes eld
12155 \end_inset
12156
12157
12158 \family sans
12159 slides (FoilTeX)
12160 \family default
12161
12162 \begin_inset Quotes erd
12163 \end_inset
12164
12165 ] installed, you'll probably have to use the default 
12166 \family sans
12167 slides
12168 \family default
12169  class, which isn't quite as good as 
12170 \family sans
12171 foils.
12172 \end_layout
12173
12174 \begin_layout Standard
12175 The 
12176 \family sans
12177 foils
12178 \family default
12179  class is designed for use with version 2.1 of the 
12180 \family sans
12181 foils.cls
12182 \family default
12183  LaTeX class file which is now an integral part of LaTeX2e.
12184 \end_layout
12185
12186 \begin_layout Subsection
12187 Getting Started
12188 \end_layout
12189
12190 \begin_layout Standard
12191 Obviously, to use this document class, you need to select 
12192 \begin_inset Quotes eld
12193 \end_inset
12194
12195
12196 \family sans
12197 slides (FoilTeX)
12198 \family default
12199
12200 \begin_inset Quotes erd
12201 \end_inset
12202
12203  from the 
12204 \family sans
12205 \bar under
12206 C
12207 \bar default
12208 lass
12209 \family default
12210  entry in the 
12211 \family sans
12212 Document\InsetSpace ~
12213 Layout
12214 \family default
12215  dialog.
12216  There are some settings in the 
12217 \family sans
12218 Document\InsetSpace ~
12219 Layout
12220 \family default
12221  dialog that you should know about that are specific to this class:
12222 \end_layout
12223
12224 \begin_layout Itemize
12225 Don't change the options 
12226 \family sans
12227 Sides
12228 \family default
12229  and 
12230 \family sans
12231 Columns
12232 \family default
12233  on the 
12234 \family sans
12235 Document\InsetSpace ~
12236 Layout
12237 \family default
12238  dialog.
12239  They're ignored by the 
12240 \family sans
12241 foils
12242 \family default
12243  class.
12244 \end_layout
12245
12246 \begin_layout Itemize
12247 The default font size is 20pt with the other options being 17pt, 25pt and
12248  30pt.
12249 \end_layout
12250
12251 \begin_layout Itemize
12252 The default font is 
12253 \family sans
12254 sans
12255 \family default
12256  
12257 \family sans
12258 serif
12259 \family default
12260  but all math equations are still typeset in the usual roman font.
12261 \end_layout
12262
12263 \begin_layout Itemize
12264
12265 \family sans
12266 Foil
12267 \family default
12268 TeX supports A4 and Letter paper sizes as well as a special size for working
12269  with 35mm slides.
12270  It doesn't support A5, B5, legal or executive paper sizes.
12271 \end_layout
12272
12273 \begin_layout Itemize
12274 Don't bother changing the 
12275 \family sans
12276 Float Placement
12277 \family default
12278  settings because they are ignored anyway.
12279  All floats appear where they are defined in the text.
12280 \end_layout
12281
12282 \begin_layout Itemize
12283 The 
12284 \family sans
12285 \bar under
12286 P
12287 \bar default
12288 agestyle
12289 \family default
12290  setting behaves a bit differently for this class.
12291  
12292 \family sans
12293 Foil
12294 \family default
12295 TeX provides extensive footer and header capabilities including a user-defined
12296  logo.
12297  See section\InsetSpace ~
12298
12299 \begin_inset LatexCommand \ref{sec:foilfoot}
12300
12301 \end_inset
12302
12303  for more details.
12304  The title page is treated differently to all other pages in the document
12305  and is 
12306 \emph on
12307 always
12308 \emph default
12309  unnumbered and 
12310 \emph on
12311 always
12312 \emph default
12313  has the logo centered at the bottom of the page (if one is defined).
12314  The possible page style choices and what they do are as follows:
12315 \end_layout
12316
12317 \begin_deeper
12318 \begin_layout List
12319 \labelwidthstring MMMMMMM
12320
12321 \family sans
12322 \series bold
12323 empty
12324 \family default
12325 \series default
12326  The final output contains no page numbers, or other headers or footers
12327  (except footnotes of course).
12328  
12329 \end_layout
12330
12331 \begin_layout List
12332 \labelwidthstring MMMMMMM
12333
12334 \family sans
12335 \series bold
12336 plain
12337 \family default
12338 \series default
12339  The final output contains page numbers centered at the bottom of the page.
12340  No other headings or footers (other than footnotes).
12341 \end_layout
12342
12343 \begin_layout List
12344 \labelwidthstring MMMMMMM
12345
12346 \series bold
12347 foilheadings
12348 \series default
12349  Page numbers in lower right corner.
12350  Additional headers and footers are also shown.
12351  This is also the default.
12352 \end_layout
12353
12354 \begin_layout List
12355 \labelwidthstring MMMMMMM
12356
12357 \series bold
12358 fancy
12359 \series default
12360  Gives you access to the 
12361 \family sans
12362 fancyheadings
12363 \family default
12364  package although its use with 
12365 \family sans
12366 Foil
12367 \family default
12368 TeX is discouraged by the writer of the 
12369 \family sans
12370 Foil
12371 \family default
12372 TeX package because of some potential page layout clashes.
12373 \end_layout
12374
12375 \end_deeper
12376 \begin_layout Subsubsection
12377 Extra Options
12378 \end_layout
12379
12380 \begin_layout Standard
12381 The following options may be used in the extra class options in the 
12382 \family sans
12383 \bar under
12384 D
12385 \bar default
12386 ocument\SpecialChar \menuseparator
12387
12388 \bar under
12389 S
12390 \bar default
12391 ettings
12392 \family default
12393  dialog.
12394 \end_layout
12395
12396 \begin_layout List
12397 \labelwidthstring MMMMMMx
12398
12399 \series bold
12400 35mmSlide
12401 \series default
12402  This sets up the page layout for 7.33in by 11in paper, which is about the
12403  same aspect ratio as a 35mm slide, making it a bit easier to work with
12404  this medium.
12405 \end_layout
12406
12407 \begin_layout List
12408 \labelwidthstring MMMMMMx
12409
12410 \series bold
12411 headrule
12412 \series default
12413  Places a rule across the page below the header on every page except the
12414  title page.
12415 \end_layout
12416
12417 \begin_layout List
12418 \labelwidthstring MMMMMMx
12419
12420 \series bold
12421 footrule
12422 \series default
12423  Places a rule across the page above the footer on every page except the
12424  title page.
12425 \end_layout
12426
12427 \begin_layout List
12428 \labelwidthstring MMMMMMx
12429
12430 \series bold
12431 dvips
12432 \series default
12433  This is automatically set each time you create a new 
12434 \family sans
12435 foils
12436 \family default
12437  document.
12438  This option tells 
12439 \family sans
12440 Foil
12441 \family default
12442 TeX to use the dvips driver to rotate those pages that are set as landscape
12443  foils.
12444 \end_layout
12445
12446 \begin_layout List
12447 \labelwidthstring MMMMMMx
12448
12449 \series bold
12450 landscape
12451 \series default
12452  Simply changes the page dimensions to those of a landscape page but doesn't
12453  do any rotation.
12454  Thus if you use this option you need to use an external program to rotate
12455  each page or feed your paper through your printer as landscape.
12456  Note that this option effectively reverses the roles of the 
12457 \family sans
12458 Foilhead
12459 \family default
12460  and 
12461 \family sans
12462 Rotatefoilhead
12463 \family default
12464  environments (don't worry these are described in the next section).
12465 \end_layout
12466
12467 \begin_layout List
12468 \labelwidthstring MMMMMMx
12469
12470 \series bold
12471 leqno
12472 \series default
12473  Equation numbers on the left.
12474 \end_layout
12475
12476 \begin_layout List
12477 \labelwidthstring MMMMMMx
12478
12479 \series bold
12480 fleqn
12481 \series default
12482  Flush-left equations.
12483 \end_layout
12484
12485 \begin_layout Subsection
12486 Supported Environments
12487 \end_layout
12488
12489 \begin_layout Standard
12490 Most of the environments commonly supported in other classes are also supported
12491  by the 
12492 \family sans
12493 foils
12494 \family default
12495  class.
12496  There are several additional environments provided by 
12497 \family sans
12498 Foil
12499 \family default
12500 TeX as well as a couple added by LyX.
12501  The following environments are shared with other classes:
12502 \end_layout
12503
12504 \begin_layout Standard
12505 \begin_inset ERT
12506 status inlined
12507
12508 \begin_layout Standard
12509
12510 \backslash
12511 begin{multicols}{2}
12512 \end_layout
12513
12514 \end_inset
12515
12516
12517 \end_layout
12518
12519 \begin_layout Itemize
12520
12521 \family sans
12522 Standard
12523 \end_layout
12524
12525 \begin_layout Itemize
12526
12527 \family sans
12528 Itemize
12529 \end_layout
12530
12531 \begin_layout Itemize
12532
12533 \family sans
12534 Enumerate
12535 \end_layout
12536
12537 \begin_layout Itemize
12538
12539 \family sans
12540 Description
12541 \end_layout
12542
12543 \begin_layout Itemize
12544
12545 \family sans
12546 List
12547 \end_layout
12548
12549 \begin_layout Itemize
12550
12551 \family sans
12552 LyX-Code
12553 \end_layout
12554
12555 \begin_layout Itemize
12556
12557 \family sans
12558 Verse
12559 \end_layout
12560
12561 \begin_layout Itemize
12562
12563 \family sans
12564 Quote
12565 \end_layout
12566
12567 \begin_layout Itemize
12568
12569 \family sans
12570 Quotation
12571 \end_layout
12572
12573 \begin_layout Itemize
12574
12575 \family sans
12576 Title
12577 \end_layout
12578
12579 \begin_layout Itemize
12580
12581 \family sans
12582 Author
12583 \end_layout
12584
12585 \begin_layout Itemize
12586
12587 \family sans
12588 Date
12589 \end_layout
12590
12591 \begin_layout Itemize
12592
12593 \family sans
12594 Abstract
12595 \end_layout
12596
12597 \begin_layout Itemize
12598
12599 \family sans
12600 Bibliography
12601 \end_layout
12602
12603 \begin_layout Itemize
12604
12605 \family sans
12606 Address
12607 \end_layout
12608
12609 \begin_layout Itemize
12610
12611 \family sans
12612 RightAddress
12613 \end_layout
12614
12615 \begin_layout Itemize
12616
12617 \family sans
12618 Caption
12619 \end_layout
12620
12621 \begin_layout Itemize
12622
12623 \family sans
12624 Comment
12625 \end_layout
12626
12627 \begin_layout Standard
12628 \begin_inset ERT
12629 status inlined
12630
12631 \begin_layout Standard
12632
12633 \backslash
12634 end{multicols}
12635 \end_layout
12636
12637 \end_inset
12638
12639
12640 \end_layout
12641
12642 \begin_layout Standard
12643 That is, all the major environments apart from the sectioning environments.
12644  Since foils are essentially self-contained sections, with a title and body,
12645  
12646 \family sans
12647 Foil
12648 \family default
12649 TeX provides specific commands for starting new foils and these are:
12650 \end_layout
12651
12652 \begin_layout Itemize
12653
12654 \family sans
12655 Foilhead
12656 \end_layout
12657
12658 \begin_layout Itemize
12659
12660 \family sans
12661 Rotatefoilhead
12662 \end_layout
12663
12664 \begin_layout Standard
12665 LyX also provides slightly modified versions of these two environments called:
12666 \end_layout
12667
12668 \begin_layout Itemize
12669
12670 \family sans
12671 ShortFoilhead
12672 \end_layout
12673
12674 \begin_layout Itemize
12675
12676 \family sans
12677 ShortRotatefoilhead
12678 \end_layout
12679
12680 \begin_layout Standard
12681 and the differences will be explained in the next section.
12682 \end_layout
12683
12684 \begin_layout Standard
12685 Since foils are often used in presenting ideas or new theorems and such
12686  
12687 \family sans
12688 Foil
12689 \family default
12690 TeX also provides a comprehensive box of goodies for presenting them:
12691 \end_layout
12692
12693 \begin_layout Standard
12694 \begin_inset ERT
12695 status inlined
12696
12697 \begin_layout Standard
12698
12699 \backslash
12700 begin{multicols}{2}
12701 \end_layout
12702
12703 \end_inset
12704
12705
12706 \end_layout
12707
12708 \begin_layout Itemize
12709
12710 \family sans
12711 Theorem
12712 \end_layout
12713
12714 \begin_layout Itemize
12715
12716 \family sans
12717 Lemma
12718 \end_layout
12719
12720 \begin_layout Itemize
12721
12722 \family sans
12723 Corollary
12724 \end_layout
12725
12726 \begin_layout Itemize
12727
12728 \family sans
12729 Proposition
12730 \end_layout
12731
12732 \begin_layout Itemize
12733
12734 \family sans
12735 Definition
12736 \end_layout
12737
12738 \begin_layout Itemize
12739
12740 \family sans
12741 Proof
12742 \end_layout
12743
12744 \begin_layout Itemize
12745
12746 \family sans
12747 Theorem*
12748 \end_layout
12749
12750 \begin_layout Itemize
12751
12752 \family sans
12753 Lemma*
12754 \end_layout
12755
12756 \begin_layout Itemize
12757
12758 \family sans
12759 Corollary*
12760 \end_layout
12761
12762 \begin_layout Itemize
12763
12764 \family sans
12765 Proposition*
12766 \end_layout
12767
12768 \begin_layout Itemize
12769
12770 \family sans
12771 Definition*
12772 \end_layout
12773
12774 \begin_layout Standard
12775 \begin_inset ERT
12776 status inlined
12777
12778 \begin_layout Standard
12779
12780 \backslash
12781 end{multicols}
12782 \end_layout
12783
12784 \end_inset
12785
12786
12787 \end_layout
12788
12789 \begin_layout Standard
12790 The starred versions are unnumbered while the unstarred versions are numbered.
12791  There are also two list environments added by LyX and these are:
12792 \end_layout
12793
12794 \begin_layout Itemize
12795
12796 \family sans
12797 TickList
12798 \end_layout
12799
12800 \begin_layout Itemize
12801
12802 \family sans
12803 CrossList
12804 \end_layout
12805
12806 \begin_layout Standard
12807
12808 \family sans
12809 Foil
12810 \family default
12811 TeX provides some powerful header and footer capabilities that are best
12812  set in the preamble although they may be set at any point in a document.
12813  If you want to change these settings in your document the best place to
12814  do so is at the very top of a foil, 
12815 \emph on
12816 i.e.
12817
12818 \emph default
12819  straight after the foilhead.
12820 \end_layout
12821
12822 \begin_layout Standard
12823 For this purpose, the following command styles are provided [
12824 \shape smallcaps
12825 Martin Vermeer
12826 \shape default
12827 ]:
12828 \end_layout
12829
12830 \begin_layout Standard
12831 \begin_inset ERT
12832 status inlined
12833
12834 \begin_layout Standard
12835
12836 \backslash
12837 begin{multicols}{2}
12838 \end_layout
12839
12840 \end_inset
12841
12842
12843 \end_layout
12844
12845 \begin_layout Itemize
12846
12847 \family sans
12848 My\InsetSpace ~
12849 Logo
12850 \end_layout
12851
12852 \begin_layout Itemize
12853
12854 \family sans
12855 Restriction
12856 \end_layout
12857
12858 \begin_layout Itemize
12859
12860 \family sans
12861 Right\InsetSpace ~
12862 Footer
12863 \end_layout
12864
12865 \begin_layout Itemize
12866
12867 \family sans
12868 Right\InsetSpace ~
12869 Header
12870 \end_layout
12871
12872 \begin_layout Itemize
12873
12874 \family sans
12875 Left\InsetSpace ~
12876 Header
12877 \end_layout
12878
12879 \begin_deeper
12880 \begin_layout Standard
12881 \InsetSpace ~
12882
12883 \end_layout
12884
12885 \end_deeper
12886 \begin_layout Standard
12887 \begin_inset ERT
12888 status inlined
12889
12890 \begin_layout Standard
12891
12892 \backslash
12893 end{multicols}
12894 \end_layout
12895
12896 \end_inset
12897
12898
12899 \end_layout
12900
12901 \begin_layout Standard
12902 There are also a few commands provided by 
12903 \family sans
12904 Foil
12905 \family default
12906 TeX that aren't directly supported by LyX but I'll tell you what they do
12907  and how to use them in section\InsetSpace ~
12908
12909 \begin_inset LatexCommand \ref{sec:unsuppfoils}
12910
12911 \end_inset
12912
12913 .
12914 \end_layout
12915
12916 \begin_layout Subsection
12917 Building a Set of Foils
12918 \end_layout
12919
12920 \begin_layout Standard
12921 This section will give a simple introduction to using the different environments
12922  to build a set of foils.
12923  If you want to see an example set of foils take a look at the 
12924 \family typewriter
12925 Foils.lyx
12926 \family default
12927  file accessible from the 
12928 \family sans
12929 \bar under
12930 F
12931 \bar default
12932 ile\SpecialChar \menuseparator
12933
12934 \bar under
12935 O
12936 \bar default
12937 pen\SpecialChar \ldots{}
12938
12939 \family default
12940  dialog under the 
12941 \family sans
12942 Examples
12943 \family default
12944  button.
12945  
12946 \end_layout
12947
12948 \begin_layout Subsubsection
12949 Give It a Title Page
12950 \end_layout
12951
12952 \begin_layout Standard
12953 Unlike other classes that provide 
12954 \family sans
12955 Title
12956 \family default
12957
12958 \family sans
12959 Author
12960 \family default
12961
12962 \family sans
12963 Date
12964 \family default
12965  and 
12966 \family sans
12967 Abstract
12968 \family default
12969  environments, 
12970 \family sans
12971 foils
12972 \family default
12973  creates the title on a page of its own.
12974  If you leave out the 
12975 \family sans
12976 Date
12977 \family default
12978  environment LaTeX will substitute the current date (every time you regenerate
12979  the output).
12980 \end_layout
12981
12982 \begin_layout Subsubsection
12983 Start a New Foil
12984 \end_layout
12985
12986 \begin_layout Standard
12987 As I mentioned earlier, there are four ways of starting a new foil.
12988  For portrait foils you should use 
12989 \family sans
12990 Foilhead
12991 \family default
12992  or 
12993 \family sans
12994 ShortFoilhead.
12995
12996 \family default
12997  The difference between these two environments is the amount of space between
12998  the title of the foil (the foilhead) and the body of the foil.
12999 \end_layout
13000
13001 \begin_layout Standard
13002 Landscape foils are generated using the 
13003 \family sans
13004 Rotatefoilhead
13005 \family default
13006  and 
13007 \family sans
13008 ShortRotatefoilhead
13009 \family default
13010  environments.
13011  Again the only difference is the spacing between foilhead and body.
13012  Both of the short versions have 0.5 inches less separation between the foilhead
13013  and the body.
13014  
13015 \end_layout
13016
13017 \begin_layout Standard
13018 One problem with the support for landscape foils is the requirement that
13019  you have to use the 
13020 \family typewriter
13021 dvips
13022 \family default
13023  driver to generate the PostScript® output otherwise the foils won't be
13024  rotated.
13025  It is possible to get landscape foils even if you haven't got the 
13026 \family typewriter
13027 dvips
13028 \family default
13029  driver provided you can feed your foils sideways through your printer ;-)
13030 \end_layout
13031
13032 \begin_layout Subsubsection
13033 Theorems, Lemmas, Proofs and more
13034 \end_layout
13035
13036 \begin_layout Standard
13037 Due to a small bug in LyX you can't have two of the same type of these environme
13038 nts directly following each other.
13039  They must be separated by something.
13040  If you try, you will just be extending the previous environment as if you
13041  had merged the two environments together.
13042  So, how do you get around this problem? The simplest option is to insert
13043  some text between the two environments or add a 
13044 \family sans
13045 LaTeX
13046 \family default
13047  environment between the two with just a 
13048 \begin_inset Quotes eld
13049 \end_inset
13050
13051
13052 \family typewriter
13053 %
13054 \family default
13055
13056 \begin_inset Quotes erd
13057 \end_inset
13058
13059  in it.
13060  This will force LyX to produce two separate environments and hence the
13061  correct LaTeX output.
13062  An example is provided in the example file included with the LyX distribution.
13063  Remember, this problem only occurs if you are trying to place two of the
13064  same type of theorem-like environments one directly after the other.
13065 \end_layout
13066
13067 \begin_layout Subsubsection
13068 Lists
13069 \end_layout
13070
13071 \begin_layout Standard
13072 You get all the commonly supported list styles found in other classes as
13073  well as two new ones.
13074  I'll only describe the new ones here.
13075  If you want to find out more about the other list environments check out
13076  the 
13077 \emph on
13078 User's Guide.
13079
13080 \emph default
13081  If you intend to use itemized lists you might also want to read about the
13082  
13083 \family sans
13084 Itemize\InsetSpace ~
13085 Bullet\InsetSpace ~
13086 Selection
13087 \family default
13088  dialog described above in section\InsetSpace ~
13089
13090 \begin_inset LatexCommand \ref{sec:bullet}
13091
13092 \end_inset
13093
13094 .
13095 \end_layout
13096
13097 \begin_layout Standard
13098 The two new list styles, 
13099 \family sans
13100 TickList 
13101 \family default
13102 and 
13103 \family sans
13104 CrossList
13105 \family default
13106 , are designed to make it easier for you to create lists of do's and don'ts
13107  or right and wrong by providing dedicated environments that use a tick
13108  or a cross as the label of the list.
13109  These lists are in fact dedicated variants of the 
13110 \family sans
13111 Itemize
13112 \family default
13113  environment.
13114  They do however require that you have the 
13115 \family typewriter
13116 psnfss
13117 \family default
13118  packages installed.
13119 \end_layout
13120
13121 \begin_layout Subsubsection
13122 Figures and Tables
13123 \end_layout
13124
13125 \begin_layout Standard
13126
13127 \family sans
13128 Foil
13129 \family default
13130 TeX redefines the floating tables and figures so that they appear exactly
13131  where they are in the text rather than pushing them to the top of the page
13132  or to some user specified location.
13133  In fact if you change the float placement settings they are simply ignored.
13134 \end_layout
13135
13136 \begin_layout Subsubsection
13137 Page Headers and Footers
13138 \begin_inset LatexCommand \label{sec:foilfoot}
13139
13140 \end_inset
13141
13142
13143 \end_layout
13144
13145 \begin_layout Standard
13146
13147 \family sans
13148 My\InsetSpace ~
13149 Logo
13150 \family default
13151  and 
13152 \family sans
13153 Restriction
13154 \family default
13155  are two commands used to control the left-footer text string.
13156  The first is meant to allow you to include a graphic logo on your foils
13157  and defaults to 
13158 \begin_inset Quotes eld
13159 \end_inset
13160
13161 -Typeset by 
13162 \family sans
13163 Foil
13164 \family default
13165 TeX-
13166 \begin_inset Quotes erd
13167 \end_inset
13168
13169 .
13170  While the second is meant to provide a classification for the audience,
13171  
13172 \emph on
13173 e.g.
13174
13175 \emph default
13176  Confidential.
13177  It is empty by default.
13178 \end_layout
13179
13180 \begin_layout Standard
13181 The remaining page corners can be filled by
13182 \family sans
13183  Right\InsetSpace ~
13184 Footer
13185 \family default
13186  (which defaults to page numbers), 
13187 \family sans
13188 Right\InsetSpace ~
13189 Header
13190 \family default
13191  (top right) and 
13192 \family sans
13193 Left\InsetSpace ~
13194 Header
13195 \family default
13196  (top left).
13197 \end_layout
13198
13199 \begin_layout Subsection
13200 Unsupported 
13201 \family sans
13202 Foil
13203 \family default
13204 TeX Goodies
13205 \begin_inset LatexCommand \label{sec:unsuppfoils}
13206
13207 \end_inset
13208
13209
13210 \end_layout
13211
13212 \begin_layout Standard
13213 All the commands mentioned below need to be set in a 
13214 \family sans
13215 LaTeX
13216 \family default
13217  environment or as 
13218 \family sans
13219 TeX
13220 \family default
13221  within another environment.
13222 \end_layout
13223
13224 \begin_layout Subsubsection
13225 Lengths
13226 \end_layout
13227
13228 \begin_layout Standard
13229 All lengths are adjusted using the 
13230 \family typewriter
13231
13232 \backslash
13233 setlength{
13234 \family default
13235 \emph on
13236 lengthname
13237 \family typewriter
13238 \emph default
13239 }{
13240 \family default
13241 \emph on
13242 newlength
13243 \family typewriter
13244 \emph default
13245 }
13246 \family default
13247  command.
13248  Where 
13249 \emph on
13250 lengthname
13251 \emph default
13252  should be replaced by the name given to the length you want to change and
13253  
13254 \emph on
13255 newlength
13256 \emph default
13257  is the length value.
13258  All lengths should be specified in units of length such as inches (
13259 \family typewriter
13260 in
13261 \family default
13262 ), millimeters (
13263 \family typewriter
13264 mm
13265 \family default
13266 ) or points (
13267 \family typewriter
13268 pt
13269 \family default
13270 ) or relative to some document or font-based length such as 
13271 \family typewriter
13272
13273 \backslash
13274 textwidth
13275 \family default
13276 .
13277  
13278 \end_layout
13279
13280 \begin_layout Standard
13281 It's possible to change the spacing between a foilhead and the body of the
13282  foil by adjusting the length specified by 
13283 \family typewriter
13284
13285 \backslash
13286 foilheadskip
13287 \family default
13288 .
13289  For example, to make 
13290 \emph on
13291 all
13292 \emph default
13293  foilheads 0.5 inches closer to their bodies put the following in the preamble:
13294  
13295 \family typewriter
13296
13297 \backslash
13298 setlength{
13299 \backslash
13300 foilheadskip}{-0.5in}
13301 \end_layout
13302
13303 \begin_layout Standard
13304 The spacings around floats can be adjusted by setting these lengths:
13305 \end_layout
13306
13307 \begin_layout List
13308 \labelwidthstring MMMMMMMMMMM
13309
13310 \family typewriter
13311
13312 \backslash
13313 abovefloatskip 
13314 \family default
13315 Separation between the text and the top of the float
13316 \end_layout
13317
13318 \begin_layout List
13319 \labelwidthstring MMMMMMMMMMM
13320
13321 \family typewriter
13322
13323 \backslash
13324 abovecaptionskip 
13325 \family default
13326 Separation between the float and the caption
13327 \end_layout
13328
13329 \begin_layout List
13330 \labelwidthstring MMMMMMMMMMM
13331
13332 \family typewriter
13333
13334 \backslash
13335 belowcaptionskip 
13336 \family default
13337 Separation between the caption and the following text
13338 \end_layout
13339
13340 \begin_layout List
13341 \labelwidthstring MMMMMMMMMMM
13342
13343 \family typewriter
13344
13345 \backslash
13346 captionwidth
13347 \family default
13348  You can make the captions narrower than the surrounding text by adjusting
13349  this length.
13350  Best done relative to 
13351 \family typewriter
13352
13353 \backslash
13354 textwidth
13355 \family default
13356 .
13357 \end_layout
13358
13359 \begin_layout Standard
13360 There are also several title page related lengths that you may find useful
13361  if you have a long title or several authors:
13362 \end_layout
13363
13364 \begin_layout List
13365 \labelwidthstring MMMMMMMMMMM
13366
13367 \family typewriter
13368
13369 \backslash
13370 abovetitleskip
13371 \family default
13372  Separation from headers to 
13373 \family sans
13374 Title
13375 \end_layout
13376
13377 \begin_layout List
13378 \labelwidthstring MMMMMMMMMMM
13379
13380 \family typewriter
13381
13382 \backslash
13383 titleauthorskip
13384 \family default
13385  between 
13386 \family sans
13387 Title
13388 \family default
13389  and 
13390 \family sans
13391 Author
13392 \family default
13393  environments
13394 \end_layout
13395
13396 \begin_layout List
13397 \labelwidthstring MMMMMMMMMMM
13398
13399 \family typewriter
13400
13401 \backslash
13402 authorauthorskip
13403 \family default
13404  between multiple 
13405 \family sans
13406 Author
13407 \family default
13408  lines
13409 \end_layout
13410
13411 \begin_layout List
13412 \labelwidthstring MMMMMMMMMMM
13413
13414 \family typewriter
13415
13416 \backslash
13417 authordateskip
13418 \family default
13419  between the 
13420 \family sans
13421 Author
13422 \family default
13423  and the 
13424 \family sans
13425 Date
13426 \end_layout
13427
13428 \begin_layout List
13429 \labelwidthstring MMMMMMMMMMM
13430
13431 \family typewriter
13432
13433 \backslash
13434 dateabstractskip
13435 \family default
13436  between the 
13437 \family sans
13438 Date
13439 \family default
13440  and the 
13441 \family sans
13442 Abstract
13443 \end_layout
13444
13445 \begin_layout Standard
13446 The last length related command affects all the list environments.
13447  If you place
13448 \family typewriter
13449  
13450 \backslash
13451 zerolistvertdimens
13452 \family default
13453  
13454 \emph on
13455 inside
13456 \emph default
13457  a list environment then all the vertical spacing between the list items
13458  is removed.
13459  Note that this is a command not a length so it doesn't require 
13460 \family typewriter
13461
13462 \backslash
13463 setlength
13464 \family default
13465  like the stuff mentioned above.
13466 \end_layout
13467
13468 \begin_layout Subsubsection
13469 Headers and Footers
13470 \end_layout
13471
13472 \begin_layout Standard
13473 The 
13474 \family typewriter
13475
13476 \backslash
13477 LogoOn
13478 \family default
13479  and 
13480 \family typewriter
13481
13482 \backslash
13483 LogoOff
13484 \family default
13485  commands control whether the logo in the 
13486 \family sans
13487 MyLogo
13488 \family default
13489  definition appear on a given page.
13490  If you put 
13491 \family typewriter
13492
13493 \backslash
13494 LogoOff
13495 \family default
13496  in the preamble then none of the foils will have the logo on them.
13497  If you don't want the logo on a particular page place the 
13498 \family typewriter
13499
13500 \backslash
13501 LogoOff
13502 \family default
13503  directly after the foilhead of that page and the 
13504 \family typewriter
13505
13506 \backslash
13507 LogoOn
13508 \family default
13509  directly after the next foilhead.
13510 \end_layout
13511
13512 \begin_layout Standard
13513 If you decide to use the 
13514 \family sans
13515 fancy
13516 \family default
13517  page style setting in the 
13518 \family sans
13519 Document\InsetSpace ~
13520 Layout
13521 \family default
13522  dialog you should probably add 
13523 \family typewriter
13524
13525 \backslash
13526 let
13527 \backslash
13528 headwidth
13529 \backslash
13530 textwidth
13531 \family default
13532  to your preamble so headers and footers on landscape pages are correctly
13533  placed when rotated.
13534  This is due to some clashes between the page layouts provided by the 
13535 \family sans
13536 fancyheadings
13537 \family default
13538  package and the 
13539 \family sans
13540 foils
13541 \family default
13542  class.
13543 \end_layout
13544
13545 \begin_layout Section
13546 Latex8 (IEEE Conference Papers)
13547 \end_layout
13548
13549 \begin_layout Standard
13550 by 
13551 \noun on
13552 Allan Rae
13553 \end_layout
13554
13555 \begin_layout Subsection
13556 Introduction
13557 \end_layout
13558
13559 \begin_layout Standard
13560 Since this class is specifically for writing submissions to IEEE sponsored
13561  conferences I strongly recommend that you get a copy of their Authors Kit.
13562  The 
13563 \family sans
13564 latex.sty
13565 \family default
13566  package and associated bibliography style file is included in the kit.
13567  The Authors Kit is usually sent out by email once your initial submission
13568  has been accepted.
13569  There is a lot of useful information in the Authors Kit explaining formatting
13570  restrictions and so on and I will assume you have read this since that
13571  means I don't have to repeat it all here.
13572 \end_layout
13573
13574 \begin_layout Subsection
13575 Getting Started
13576 \end_layout
13577
13578 \begin_layout Standard
13579 [AR\SpecialChar \@.
13580  more to come]
13581 \end_layout
13582
13583 \begin_layout Subsection
13584 Supported Environments
13585 \end_layout
13586
13587 \begin_layout Itemize
13588
13589 \family sans
13590 Standard
13591 \end_layout
13592
13593 \begin_layout Itemize
13594
13595 \family sans
13596 Title
13597 \end_layout
13598
13599 \begin_layout Itemize
13600
13601 \family sans
13602 Author
13603 \end_layout
13604
13605 \begin_layout Itemize
13606
13607 \family sans
13608 E-mail
13609 \end_layout
13610
13611 \begin_layout Itemize
13612
13613 \family sans
13614 Affiliation
13615 \end_layout
13616
13617 \begin_layout Itemize
13618
13619 \family sans
13620 Abstract
13621 \end_layout
13622
13623 \begin_layout Itemize
13624
13625 \family sans
13626 Section
13627 \end_layout
13628
13629 \begin_layout Itemize
13630
13631 \family sans
13632 SubSection
13633 \end_layout
13634
13635 \begin_layout Itemize
13636
13637 \family sans
13638 Caption
13639 \end_layout
13640
13641 \begin_layout Subsection
13642 Differences Between Screen and Paper
13643 \end_layout
13644
13645 \begin_layout Standard
13646 There are slight differences in appearance mainly with the presentation
13647  of section counters.
13648  On screen the trailing period of the section counter is missing but it
13649  will appear in the output so don't let this worry you.
13650 \end_layout
13651
13652 \begin_layout Section
13653 Hollywood (Hollywood spec scripts)
13654 \end_layout
13655
13656 \begin_layout Standard
13657 by 
13658 \shape smallcaps
13659 Garst Reese
13660 \end_layout
13661
13662 \begin_layout Subsection
13663 Introduction
13664 \end_layout
13665
13666 \begin_layout Standard
13667 Getting the format of a Hollywood script right is a 
13668 \begin_inset Quotes eld
13669 \end_inset
13670
13671 rite of passage.
13672 \begin_inset Quotes erd
13673 \end_inset
13674
13675  It is designed to make the readers focus on content and to be easy and
13676  familiar for the actors to read.
13677  Each page of a script should be one minute of film.
13678  Nothing goes in a script that you cannot see or hear on screen.
13679  The courier 12 pt font should be used throughout.
13680  No italics.
13681 \end_layout
13682
13683 \begin_layout Subsection
13684 Special problems
13685 \end_layout
13686
13687 \begin_layout Standard
13688 Speakers' lines should NEVER break in mid-sentence.
13689  If a speaker's lines continue over a page break, repeat the 
13690 \family sans
13691 Speaker
13692 \family default
13693  title followed by (Cont'd).
13694 \end_layout
13695
13696 \begin_layout Subsection
13697 Special features
13698 \end_layout
13699
13700 \begin_layout Standard
13701 Insert the 
13702 \family sans
13703 Speaker
13704 \family default
13705  names as labels then cross-reference the label to insert the name.
13706  The cross-reference dialog will show the current cast of characters.
13707  You can use this to insert the speaker name in narratives also.
13708 \end_layout
13709
13710 \begin_layout Subsection
13711 Paper size and Margins
13712 \end_layout
13713
13714 \begin_layout Standard
13715 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
13716 \end_layout
13717
13718 \begin_layout Subsection
13719 Environments
13720 \end_layout
13721
13722 \begin_layout Standard
13723 The following environments are available.
13724  You can use hollywood.bind to get the bind keys shown at the right.
13725 \end_layout
13726
13727 \begin_layout Itemize
13728
13729 \family sans
13730 Standard
13731 \newline
13732
13733 \family default
13734 Used where nothing else works.
13735  Try to avoid it.
13736 \end_layout
13737
13738 \begin_layout Itemize
13739
13740 \family sans
13741 FADE_IN
13742 \family default
13743 :
13744 \hfill
13745
13746 \family sans
13747 M-z S-I
13748 \family default
13749
13750 \newline
13751 Usually followed by something like 
13752 \begin_inset Quotes eld
13753 \end_inset
13754
13755 on Sally waking up.
13756 \begin_inset Quotes erd
13757 \end_inset
13758
13759
13760 \end_layout
13761
13762 \begin_layout Itemize
13763
13764 \family sans
13765 INT:
13766 \hfill
13767 M-z i
13768 \newline
13769
13770 \family default
13771 Introduces a new INTERIOR camera set-up.
13772  Always followed by DAY or NIGHT, or something similar to define the lighting
13773  required.
13774  Everthing on this line in CAPS.
13775 \end_layout
13776
13777 \begin_layout Itemize
13778
13779 \family sans
13780 EXT:
13781 \hfill
13782 M-z e
13783 \newline
13784
13785 \family default
13786 Introduces a new EXTERIOR camera set-up.
13787  Everthing on this line in CAPS.
13788 \end_layout
13789
13790 \begin_layout Itemize
13791
13792 \family sans
13793 Speaker
13794 \hfill
13795 M-z s
13796 \newline
13797
13798 \family default
13799 The character speaking.
13800 \end_layout
13801
13802 \begin_layout Itemize
13803
13804 \family sans
13805 Parenthetical
13806 \hfill
13807 M-z p
13808 \newline
13809
13810 \family default
13811 Instructions to the speaker.
13812  The () are automatically inserted, but only the ( will show in LyX.
13813  Both will be printed.
13814 \end_layout
13815
13816 \begin_layout Itemize
13817
13818 \family sans
13819 Dialogue
13820 \hfill
13821 M-z d
13822 \newline
13823
13824 \family default
13825 What the 
13826 \family sans
13827 Speaker
13828 \family default
13829  says.
13830 \end_layout
13831
13832 \begin_layout Itemize
13833
13834 \family sans
13835 Transition
13836 \hfill
13837 M-z t
13838 \newline
13839
13840 \family default
13841 Camera movement instruction.
13842  e.g.
13843  CUT TO:
13844 \end_layout
13845
13846 \begin_layout Itemize
13847
13848 \family sans
13849 FADE OUT:
13850 \hfill
13851 M-z S-I
13852 \end_layout
13853
13854 \begin_layout Itemize
13855
13856 \family sans
13857 Author
13858 \hfill
13859 M-z S-A
13860 \end_layout
13861
13862 \begin_layout Itemize
13863
13864 \family sans
13865 Title
13866 \hfill
13867 M-z S-T
13868 \end_layout
13869
13870 \begin_layout Itemize
13871
13872 \family sans
13873 Right_Address
13874 \hfill
13875 M-z r
13876 \end_layout
13877
13878 \begin_layout Subsection
13879 Script jargon
13880 \end_layout
13881
13882 \begin_layout Itemize
13883 (O.S) --- off screen
13884 \end_layout
13885
13886 \begin_layout Itemize
13887 (V.0) --- voice over
13888 \end_layout
13889
13890 \begin_layout Itemize
13891 b.g.
13892  --- background
13893 \end_layout
13894
13895 \begin_layout Itemize
13896 C.U.
13897  --- close-up
13898 \end_layout
13899
13900 \begin_layout Itemize
13901 PAN --- camera movement
13902 \end_layout
13903
13904 \begin_layout Itemize
13905 INSERT --- cut to close-up of
13906 \end_layout
13907
13908 \begin_layout Section
13909 Broadway
13910 \end_layout
13911
13912 \begin_layout Standard
13913 by 
13914 \shape smallcaps
13915 Garst Reese
13916 \end_layout
13917
13918 \begin_layout Subsection
13919 Introduction
13920 \end_layout
13921
13922 \begin_layout Standard
13923 Broadway is for writing plays.
13924  The format is more decorative than Hollywood, and much less standardized.
13925  This format should be suitable for workshops.
13926 \end_layout
13927
13928 \begin_layout Subsection
13929 Special problems
13930 \end_layout
13931
13932 \begin_layout Standard
13933 The same as in Hollywood.
13934 \end_layout
13935
13936 \begin_layout Subsection
13937 Special features
13938 \end_layout
13939
13940 \begin_layout Standard
13941 Insert the 
13942 \family sans
13943 Speaker
13944 \family default
13945  names as labels then cross-reference the label to insert the name.
13946  The cross-reference dialog will show the current cast of characters.
13947 \end_layout
13948
13949 \begin_layout Subsection
13950 Paper size and Margins
13951 \end_layout
13952
13953 \begin_layout Standard
13954 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
13955 \end_layout
13956
13957 \begin_layout Subsection
13958 Environments
13959 \end_layout
13960
13961 \begin_layout Standard
13962 The following environments are available.
13963  You can use broadway.bind to get the bind keys shown at the right.
13964 \end_layout
13965
13966 \begin_layout Itemize
13967
13968 \family sans
13969 Standard
13970 \newline
13971
13972 \family default
13973 You should not have to use this, but it is here for anything that does not
13974  fit otherwise.
13975 \end_layout
13976
13977 \begin_layout Itemize
13978
13979 \family sans
13980 Narrative
13981 \hfill
13982 M-z n
13983 \newline
13984
13985 \family default
13986 Used to describe stage setting and the action.
13987  First use of speaker names in all CAPs.
13988 \end_layout
13989
13990 \begin_layout Itemize
13991
13992 \family sans
13993 ACT
13994 \hfill
13995 M-z a
13996 \newline
13997
13998 \family default
13999 Automatically numbered.
14000  On screen it will be arabic, but will print as Roman.
14001 \end_layout
14002
14003 \begin_layout Itemize
14004
14005 \family sans
14006 ACT*
14007 \hfill
14008 M-z S at
14009 \newline
14010
14011 \family default
14012 Subtitle for 
14013 \family sans
14014 ACT.
14015  
14016 \family default
14017 It is just centered text.
14018 \end_layout
14019
14020 \begin_layout Itemize
14021
14022 \family sans
14023 SCENE
14024 \hfill
14025 M-z S-S
14026 \newline
14027
14028 \family default
14029 Not automatically numbered.
14030  You supply the number.
14031  This is because I couldn't figure out how.
14032 \end_layout
14033
14034 \begin_layout Itemize
14035
14036 \family sans
14037 AT_RISE:
14038 \hfill
14039 M-z S-R
14040 \newline
14041
14042 \family default
14043 A special case of Narrative to describe the setting and action as the curtain
14044  rises.
14045 \end_layout
14046
14047 \begin_layout Itemize
14048
14049 \family sans
14050 Speaker
14051 \hfill
14052 M-z s
14053 \newline
14054
14055 \family default
14056 The speaker's (actor's) title, centered in all CAPS.
14057 \end_layout
14058
14059 \begin_layout Itemize
14060
14061 \family sans
14062 Parenthetical
14063 \hfill
14064 M-z p
14065 \newline
14066
14067 \family default
14068 Instructions to the speaker.
14069  The parentheses are automatically inserted.
14070  The ( will appear on screen, but both will be in the printed play.
14071  This environment is only used within 
14072 \family sans
14073 Dialogue
14074 \family default
14075 .
14076 \end_layout
14077
14078 \begin_layout Itemize
14079
14080 \family sans
14081 Dialogue
14082 \hfill
14083 M-z d
14084 \newline
14085
14086 \family default
14087 What the Speaker says.
14088 \end_layout
14089
14090 \begin_layout Itemize
14091
14092 \family sans
14093 CURTAIN
14094 \hfill
14095 M-z S-C
14096 \newline
14097
14098 \family default
14099 The curtain comes down.
14100 \end_layout
14101
14102 \begin_layout Itemize
14103
14104 \family sans
14105 Title
14106 \hfill
14107 M-z S-T
14108 \end_layout
14109
14110 \begin_layout Itemize
14111
14112 \family sans
14113 Author
14114 \hfill
14115 M-z S-A
14116 \end_layout
14117
14118 \begin_layout Itemize
14119
14120 \family sans
14121 Right_Address
14122 \hfill
14123 M-z r
14124 \end_layout
14125
14126 \begin_layout Standard
14127 Hello there.
14128 \end_layout
14129
14130 \begin_layout Section
14131 RevTeX4
14132 \end_layout
14133
14134 \begin_layout Standard
14135 by 
14136 \noun on
14137 Amir Karger
14138 \end_layout
14139
14140 \begin_layout Standard
14141 \begin_inset VSpace bigskip
14142 \end_inset
14143
14144
14145 \end_layout
14146
14147 \begin_layout Standard
14148 \noindent
14149 The 
14150 \family sans
14151 Revtex\InsetSpace ~
14152 4
14153 \family default
14154  textclass works with the American Physical Sociey's RevTeX 4.0 (the 
14155 \begin_inset Formula $\beta$
14156 \end_inset
14157
14158  release of May, 1999) class.
14159 \end_layout
14160
14161 \begin_layout Standard
14162 LyX has a 
14163 \family sans
14164 Revtex
14165 \family default
14166  textclass, which works with RevTeX 3.1.
14167  However, v3.1 is basically obsolete, as it works with LaTeX 2.09.
14168  That means that it doesn't interact very well with LyX, which requires
14169  LaTeX2e, although it has been kludged to work.
14170  Since RevTeX 4.0 has been designed to work much more cleanly with LaTeX2e,
14171  LyX with the 
14172 \family sans
14173 RevTeX\InsetSpace ~
14174 4
14175 \family default
14176  textclass should also be pretty easy to use.
14177 \end_layout
14178
14179 \begin_layout Standard
14180 These documents are supposed to be used in 
14181 \emph on
14182 addition
14183 \emph default
14184  to the RevTeX 4.0 documents, so we don't describe any of the special RevTeX
14185  macros, and assume you'll know what to put in the preamble if necessary.
14186 \end_layout
14187
14188 \begin_layout Subsection
14189 Installation
14190 \end_layout
14191
14192 \begin_layout Standard
14193 All you need to do is install RevTeX 4, as described in the package's README
14194  file.
14195  the package can be found at 
14196 \begin_inset LatexCommand \url[The RevTeX 4 Web Site]{http://publish.aps.org/revtex4/}
14197
14198 \end_inset
14199
14200 .
14201  Install it somewhere that LaTeX can see it.
14202  Test it by trying to LaTeX a short RevTeX 4 document in some random directory
14203  (i.e., not the directory where you installed the class file.) Then, if you
14204  reconfigure LyX, it will find the class file and let you use the RevTeX4
14205  textclass.
14206 \end_layout
14207
14208 \begin_layout Standard
14209 Probably the easiest way to get started is either to import a RevTeX 4 document
14210  using 
14211 \family typewriter
14212 reLyX
14213 \family default
14214 , or to use the 
14215 \family sans
14216 Revtex\InsetSpace ~
14217 4
14218 \family default
14219  template, found in the templates directory.
14220 \end_layout
14221
14222 \begin_layout Subsection
14223 Preamble Matter
14224 \end_layout
14225
14226 \begin_layout Standard
14227 Optional arguments to 
14228 \family typewriter
14229
14230 \backslash
14231 documentclass
14232 \family default
14233 , like 
14234 \begin_inset Quotes eld
14235 \end_inset
14236
14237 preprint
14238 \begin_inset Quotes erd
14239 \end_inset
14240
14241  and 
14242 \begin_inset Quotes eld
14243 \end_inset
14244
14245 aps
14246 \begin_inset Quotes erd
14247 \end_inset
14248
14249 , go in the 
14250 \family sans
14251 E
14252 \bar under
14253 x
14254 \bar default
14255 tra\InsetSpace ~
14256 Options
14257 \family default
14258  field in the 
14259 \family sans
14260 Document\InsetSpace ~
14261 Layout
14262 \family default
14263  dialog, as usual.
14264  Remember that in RevTeX, at least one optional argument is required! 
14265 \end_layout
14266
14267 \begin_layout Standard
14268 Other preamble matter, like 
14269 \family typewriter
14270
14271 \backslash
14272 draft
14273 \family default
14274  etc.
14275  goes in the 
14276 \family sans
14277 Latex\InsetSpace ~
14278 Preamble
14279 \family default
14280  dialog, also as usual.
14281 \end_layout
14282
14283 \begin_layout Subsection
14284 Layouts
14285 \end_layout
14286
14287 \begin_layout Standard
14288 The layouts basically correspond to the commands in RevTeX4.0.
14289  For example, the Email layout corresponds to 
14290 \family typewriter
14291
14292 \backslash
14293 email{}
14294 \family default
14295 .
14296  Note that (at least as of RevTeX 4.0 Beta), the 
14297 \family sans
14298 Address
14299 \family default
14300  and 
14301 \family sans
14302 Affiliation
14303 \family default
14304  layouts are exactly equivalent, so you shouldn't need to use both.
14305 \begin_inset Foot
14306 status collapsed
14307
14308 \begin_layout Standard
14309 In case you're curious, both were included so that 
14310 \family typewriter
14311 reLyX
14312 \family default
14313  would be able to translate both 
14314 \family typewriter
14315
14316 \backslash
14317 address
14318 \family default
14319  and 
14320 \family typewriter
14321
14322 \backslash
14323 affiliation
14324 \family default
14325 .
14326 \end_layout
14327
14328 \end_inset
14329
14330
14331 \end_layout
14332
14333 \begin_layout Subsection
14334 Important Notes
14335 \end_layout
14336
14337 \begin_layout Standard
14338 There are a couple of important unique aspects of RevTeX 4 which might cause
14339  bugs that will be even more confusing in LyX.
14340 \end_layout
14341
14342 \begin_layout Standard
14343 In RevTeX, the 
14344 \family typewriter
14345
14346 \backslash
14347 thanks
14348 \family default
14349  command goes 
14350 \emph on
14351 outside
14352 \emph default
14353  the 
14354 \family typewriter
14355
14356 \backslash
14357 author
14358 \family default
14359  command.
14360  The LyX equivalent is that there is a separate Thanks layout.
14361  Do 
14362 \emph on
14363 not
14364 \emph default
14365  write footnotes in the 
14366 \family sans
14367 Author
14368 \family default
14369  layout, or weird things may happen.
14370  See the RevTeX 4 documentation for more details.
14371 \end_layout
14372
14373 \begin_layout Standard
14374 Also, the 
14375 \family sans
14376 Author\InsetSpace ~
14377 Email
14378 \family default
14379
14380 \family sans
14381 Author\InsetSpace ~
14382 URL
14383 \family default
14384 , and 
14385 \family sans
14386 Thanks
14387 \family default
14388  layouts must be placed 
14389 \emph on
14390 in between
14391 \emph default
14392  the 
14393 \family sans
14394 Author
14395 \family default
14396  layout and the corresponding 
14397 \family sans
14398 Address
14399 \family default
14400  (or equivalent 
14401 \family sans
14402 Affiliation
14403 \family default
14404 ) layout.
14405  If you put the 
14406 \family sans
14407 Thanks
14408 \family default
14409  after the 
14410 \family sans
14411 Address
14412 \family default
14413 , the LaTeX won't compile.
14414 \end_layout
14415
14416 \begin_layout Subsection
14417 Drawbacks
14418 \end_layout
14419
14420 \begin_layout Standard
14421 The main problem with this layout is that you can't use the optional arguments
14422  to layouts like Email and Title.
14423  (The problem is not unique to this layout; you can't use optional arguments
14424  to the Section layouts either.) This means that after you export that file
14425  to LaTeX (which you'll need to do eventually to send it in to APS), you'll
14426  need to edit the LaTeX file with a text editor to add the optional arguments
14427  to set, e.g., the running title for the page headers.
14428  Lacking these layouts makes the 
14429 \family typewriter
14430
14431 \backslash
14432 altaffiliation
14433 \family default
14434  (and the equivalent 
14435 \family typewriter
14436
14437 \backslash
14438 altaddress
14439 \family default
14440 ) useless, so the corresponding layouts don't exist, and will have to be
14441  added by hand.
14442 \begin_inset Foot
14443 status collapsed
14444
14445 \begin_layout Standard
14446
14447 \emph on
14448 Note from JMarc:
14449 \emph default
14450  actually, LyX 1.3.0 supports some forms of optional arguments, but this layout
14451  has not been updated yet to take advantage of it.
14452 \end_layout
14453
14454 \end_inset
14455
14456  
14457 \end_layout
14458
14459 \begin_layout Section
14460 Article (mwart), book (mwbk) and report (mwrep)
14461 \begin_inset OptArg
14462 status collapsed
14463
14464 \begin_layout Standard
14465 The 
14466 \family typewriter
14467 mw
14468 \family default
14469  Classes
14470 \end_layout
14471
14472 \end_inset
14473
14474
14475 \end_layout
14476
14477 \begin_layout Standard
14478 by 
14479 \noun on
14480 Tomasz Luczak
14481 \end_layout
14482
14483 \begin_layout Standard
14484 The LyX document classes
14485 \emph on
14486  article (mwart)
14487 \emph default
14488
14489 \emph on
14490 report (mwrep)
14491 \emph default
14492  and 
14493 \emph on
14494 book
14495 \emph default
14496  
14497 \emph on
14498 (mwbk)
14499 \emph default
14500  correspond to the LaTeX document classes 
14501 \family typewriter
14502 mwart.cls
14503 \family default
14504
14505 \family typewriter
14506 mwrep.cls
14507 \family default
14508  and 
14509 \family typewriter
14510 mwbk.cls
14511 \family default
14512 , resp.
14513  They are replacements for the standard document classes 
14514 \family typewriter
14515 article.cls
14516 \family default
14517
14518 \family typewriter
14519 report.cls
14520 \family default
14521  and 
14522 \family typewriter
14523 book.cls
14524 \family default
14525 , resp., and fit better to Polish typography conventions in a number of points.
14526  
14527 \end_layout
14528
14529 \begin_layout Standard
14530 Basic differences:
14531 \end_layout
14532
14533 \begin_layout Itemize
14534 Unnumbered titles (with star, eg.
14535  
14536 \family sans
14537 Section*
14538 \family default
14539 ) are added into table of contents,
14540 \end_layout
14541
14542 \begin_layout Itemize
14543 Additional page styles:
14544 \end_layout
14545
14546 \begin_deeper
14547 \begin_layout Description
14548 uheadings header with separated lines,
14549 \end_layout
14550
14551 \begin_layout Description
14552 myheadings custom header, contents headers via commands: 
14553 \family typewriter
14554
14555 \backslash
14556 markright
14557 \family default
14558  and 
14559 \family typewriter
14560
14561 \backslash
14562 markboth
14563 \family default
14564 ,
14565 \end_layout
14566
14567 \begin_layout Description
14568 myuheadings custom header with separated lines,
14569 \end_layout
14570
14571 \begin_layout Description
14572 outer page number is placed on outer side of page
14573 \end_layout
14574
14575 \end_deeper
14576 \begin_layout Itemize
14577 Options 
14578 \end_layout
14579
14580 \begin_deeper
14581 \begin_layout Description
14582 rmheadings serif titles --- default,
14583 \end_layout
14584
14585 \begin_layout Description
14586 sfheadings sansserif titles,
14587 \end_layout
14588
14589 \begin_layout Description
14590 authortitle on title page first placed is author next title --- default,
14591 \end_layout
14592
14593 \begin_layout Description
14594 titleauthor on title page first placed is title next author,
14595 \end_layout
14596
14597 \begin_layout Description
14598 withmarginpar reserve place on page for margins.
14599 \end_layout
14600
14601 \end_deeper
14602 \begin_layout Section
14603 Elsevier Journals
14604 \end_layout
14605
14606 \begin_layout Standard
14607 By 
14608 \noun on
14609 Rod Pinna
14610 \end_layout
14611
14612 \begin_layout Standard
14613 Elsevier Science Publishers B.V.
14614  provides a standard LaTeX document class (
14615 \family typewriter
14616 elsart.cls
14617 \family default
14618 ) for submitting articles to their various journals.
14619  The style file can be downloaded directly from their web site: 
14620 \begin_inset LatexCommand \url{http://authors.elsevier.com/}
14621
14622 \end_inset
14623
14624 .
14625  Instructions are supplied along with the class file, which details the
14626  requirements of the publishers.
14627  LyX includes package that allows for the use of this class, by a layout
14628  and a template file.
14629  Installation of the class file is the same as for any other LaTeX package;
14630  instructions are provided in the Elsevier documentation.
14631 \end_layout
14632
14633 \begin_layout Standard
14634 To make use of 
14635 \family typewriter
14636 elsart.cls
14637 \family default
14638 , a file 
14639 \family typewriter
14640 elsart.layout
14641 \family default
14642  is supplied.
14643  As the Elsevier class file is based mainly on the standard article class,
14644  most of the normal functionality is provided.
14645  The Elsevier class defines a number of mathematical environments, which
14646  are similar to the AMS environments.
14647  These commands are all described in the Elsevier documentation, and are
14648  available in LyX.
14649 \end_layout
14650
14651 \begin_layout Standard
14652 The easiest way to use the Elsevier style is to base documents on the included
14653  template file.
14654  It is best not to use options such as fancy headings or the geometry package,
14655  as elements such as these are defined by Elsevier in their style file.
14656  Ideally, no extra packages except those mentioned in the Elsevier documentation
14657  should be used.
14658  Essentially, Elsevier require as 
14659 \begin_inset Quotes eld
14660 \end_inset
14661
14662 clean
14663 \begin_inset Quotes erd
14664 \end_inset
14665
14666  a 
14667 \begin_inset ERT
14668 status collapsed
14669
14670 \begin_layout Standard
14671
14672 \backslash
14673 LaTeX
14674 \end_layout
14675
14676 \end_inset
14677
14678  file as possible, as their intention is to take the supplied file and replace
14679  the class file with one for the particular journal to which the paper has
14680  been submitted.
14681  This also means that not too much time should be spent on the formating
14682  of the document.
14683  When it comes to be published, this will change anyway.
14684  The rest of the usage for this layout is substantially the same as for
14685  the normal article class.
14686  For details of what Elsevier do and don't allow, refer to their documentation.
14687 \end_layout
14688
14689 \begin_layout Section
14690 Memoir
14691 \end_layout
14692
14693 \begin_layout Standard
14694 By 
14695 \noun on
14696 Jürgen Spitzmüller
14697 \end_layout
14698
14699 \begin_layout Subsection
14700 Overview
14701 \end_layout
14702
14703 \begin_layout Standard
14704 Memoir is a very powerful and constantly evolving class.
14705  It has been designed with regard to fictional and non-fictional literature.
14706  Its aim is to let the user have maximum control over the typesetting of
14707  his document.
14708  Memoir is based on the standard book class, but it can also emulate the
14709  article class (see below).
14710 \end_layout
14711
14712 \begin_layout Standard
14713 Peter Wilson, the developer of Memoir, is known as the author of lots of
14714  useful packages in the LaTeX world.
14715  Most of them have been merged with Memoir.
14716  Therefore, it is much easier to layout the table of contents, appendices,
14717  chapter designs and such.
14718  LyX, though, does not support all of these goodies natively.
14719  Some of them might be added to forthcoming releases
14720 \begin_inset Foot
14721 status collapsed
14722
14723 \begin_layout Standard
14724 You are invited to send suggestions to 
14725 \begin_inset LatexCommand \url{lyx-devel@lists.lyx.org}
14726
14727 \end_inset
14728
14729 .
14730 \end_layout
14731
14732 \end_inset
14733
14734 , lots will probably never, due to the limitations of LyX's framework.
14735  Of course you can still use all features with the help of some native LaTeX
14736  commands (ERT
14737 \begin_inset Foot
14738 status collapsed
14739
14740 \begin_layout Standard
14741 Cf.
14742 \begin_inset ERT
14743 status collapsed
14744
14745 \begin_layout Standard
14746
14747 \backslash
14748  
14749 \end_layout
14750
14751 \end_inset
14752
14753 section\InsetSpace ~
14754
14755 \begin_inset LatexCommand \ref{sec:Inserting-LaTeX-Code}
14756
14757 \end_inset
14758
14759  for details.
14760 \end_layout
14761
14762 \end_inset
14763
14764 ).
14765  In this section, we can only list those features which are natively supported
14766  by LyX.
14767  For detailed descriptions (and for the rest of features) we are recommending
14768  to have a look at the detailed manual of the Memoir class
14769 \begin_inset Foot
14770 status collapsed
14771
14772 \begin_layout Standard
14773 Cf.
14774 \begin_inset ERT
14775 status collapsed
14776
14777 \begin_layout Standard
14778
14779 \backslash
14780  
14781 \end_layout
14782
14783 \end_inset
14784
14785
14786 \begin_inset LatexCommand \url{CTAN:/macros/latex/memoir/memman.pdf}
14787
14788 \end_inset
14789
14790 .
14791 \end_layout
14792
14793 \end_inset
14794
14795 , which is not only a user guide for the class, but also both a comprehensive
14796  description on good typesetting and a superb example for good typesetting
14797  itself.
14798 \end_layout
14799
14800 \begin_layout Subsection
14801 Basic features and restrictions
14802 \end_layout
14803
14804 \begin_layout Standard
14805 Memoir supports basically all features of the standard book classes.
14806  There are, however, some differences, as follows:
14807 \end_layout
14808
14809 \begin_layout Description
14810 Font\InsetSpace ~
14811 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14,
14812  17
14813 \end_layout
14814
14815 \begin_layout Description
14816 Page\InsetSpace ~
14817 style: The fancy page style is not supported, due to a command clash
14818  between Memoir and the fancyhdr package (they are both defining a command
14819  with the same name, which confuses LaTeX).
14820  Instead, Memoir comes with a bunch of own page styles (see 
14821 \family sans
14822 Layout\SpecialChar \menuseparator
14823 Document\SpecialChar \menuseparator
14824 Page\InsetSpace ~
14825 Style
14826 \family default
14827 ).
14828  If you want to use these for the chapter pages, you have to use the command
14829  
14830 \family typewriter
14831
14832 \backslash
14833 chapterstyle
14834 \family default
14835  in the main text or in preamble (e.
14836 \begin_inset ERT
14837 status collapsed
14838
14839 \begin_layout Standard
14840
14841 \backslash
14842 ,
14843 \end_layout
14844
14845 \end_inset
14846
14847 g.
14848 \begin_inset ERT
14849 status collapsed
14850
14851 \begin_layout Standard
14852
14853 \backslash
14854  
14855 \end_layout
14856
14857 \end_inset
14858
14859
14860 \family typewriter
14861
14862 \backslash
14863 chapterstyle{companion}
14864 \family default
14865 ).
14866 \end_layout
14867
14868 \begin_layout Description
14869 Sectioning: Sectionings (chapter, section, subsection etc.) are coming with
14870  an optional argument in the standard classes.
14871  With this, you can specify an alternative version of the title for the
14872  table of contents and the headers (for instance, if the title is too long).
14873  In LyX, you can do this via 
14874 \family sans
14875 Insert\SpecialChar \menuseparator
14876 Short\InsetSpace ~
14877 Title
14878 \family default
14879  at the beginning of a chapter/section.
14880  Memoir features a second optional argument and thus separates the table
14881  of contents from the header.
14882  You can define three variants of a title with this: one for the main text,
14883  one for the table of contents, and one for the headers.
14884  Simply insert two optional arguments if you need this feature, the first
14885  one containing the short title for the Table of Contents, the second one
14886  containing an alternative short title for the headers.
14887 \end_layout
14888
14889 \begin_layout Description
14890 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
14891  of contents, the list of figures and the list of table start a new page
14892  automatically.
14893  Memoir does not follow this route.
14894  You have to insert a page break yourself, if you want to have one.
14895 \end_layout
14896
14897 \begin_layout Description
14898 Titlepage: For some unknown reason, Memoir uses pagination on the title
14899  page (in the standard classes, title pages are 
14900 \begin_inset Quotes eld
14901 \end_inset
14902
14903 empty
14904 \begin_inset Quotes erd
14905 \end_inset
14906
14907 , i.
14908 \begin_inset ERT
14909 status collapsed
14910
14911 \begin_layout Standard
14912
14913 \backslash
14914 ,
14915 \end_layout
14916
14917 \end_inset
14918
14919 e.
14920 \begin_inset ERT
14921 status collapsed
14922
14923 \begin_layout Standard
14924
14925 \backslash
14926  
14927 \end_layout
14928
14929 \end_inset
14930
14931 without pagina).
14932  If you want an empty title page, type 
14933 \family typewriter
14934
14935 \backslash
14936 aliaspagestyle{title}{empty} 
14937 \family default
14938 in the preamble.
14939 \end_layout
14940
14941 \begin_layout Description
14942 Article: With the class option 
14943 \emph on
14944 article 
14945 \emph default
14946 (to be inserted in 
14947 \family sans
14948 Layout\SpecialChar \menuseparator
14949 Document\SpecialChar \menuseparator
14950 Extra\InsetSpace ~
14951 Options
14952 \family default
14953 ), you can emulate article style.
14954  That is, counters (footnotes, figures, tables etc.) will not be reset on
14955  new chapters, chapters don't start a new page (but are---in contrary to
14956  
14957 \begin_inset Quotes eld
14958 \end_inset
14959
14960 real
14961 \begin_inset Quotes erd
14962 \end_inset
14963
14964  article classes---still allowed), parts, though, use their own page, as
14965  in book.
14966 \end_layout
14967
14968 \begin_layout Description
14969 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
14970  font commands, which have been used in the old LaTeX version 2.09 (e.
14971 \begin_inset ERT
14972 status collapsed
14973
14974 \begin_layout Standard
14975
14976 \backslash
14977 ,
14978 \end_layout
14979
14980 \end_inset
14981
14982 g.
14983 \begin_inset ERT
14984 status collapsed
14985
14986 \begin_layout Standard
14987
14988 \backslash
14989  
14990 \end_layout
14991
14992 \end_inset
14993
14994
14995 \family typewriter
14996
14997 \backslash
14998 rm
14999 \family default
15000
15001 \family typewriter
15002
15003 \backslash
15004 it
15005 \family default
15006 ).
15007  It produces an error and stops LaTeX whenever such a command appears.
15008  The class option 
15009 \emph on
15010 oldfontcommands
15011 \emph default
15012  reallows the commands and spits out warnings instead (which does at least
15013  not stop LaTeX).
15014  Since a lot of packages and particularly BibTeX style files are still using
15015  those commands, we have decided to use this option by default.
15016 \end_layout
15017
15018 \begin_layout Subsection
15019 Extra features
15020 \end_layout
15021
15022 \begin_layout Standard
15023 We will only describe the features supported by LyX (which is not much currently
15024 ).
15025  Please consult the Memoir manual
15026 \begin_inset Foot
15027 status collapsed
15028
15029 \begin_layout Standard
15030 Cf.
15031 \begin_inset ERT
15032 status collapsed
15033
15034 \begin_layout Standard
15035
15036 \backslash
15037  
15038 \end_layout
15039
15040 \end_inset
15041
15042
15043 \begin_inset LatexCommand \url{CTAN:/macros/latex/memoir/memman.pdf}
15044
15045 \end_inset
15046
15047 .
15048 \end_layout
15049
15050 \end_inset
15051
15052  for details.
15053 \end_layout
15054
15055 \begin_layout Description
15056 Abstract: You may wonder why an abstract is an extra feature.
15057  Well, it is in book class.
15058  Usually books don't have abstracts.
15059  Memoir, however, has.
15060  You can use it whereever and how often you like.
15061 \end_layout
15062
15063 \begin_layout Description
15064 Chapterprecis: You may know this from belletristic: The contents of a chapter
15065  is shortly described below the title and also in the table of contents
15066  (e.
15067 \begin_inset ERT
15068 status collapsed
15069
15070 \begin_layout Standard
15071
15072 \backslash
15073 ,
15074 \end_layout
15075
15076 \end_inset
15077
15078 g.
15079 \begin_inset ERT
15080 status collapsed
15081
15082 \begin_layout Standard
15083
15084 \backslash
15085  
15086 \end_layout
15087
15088 \end_inset
15089
15090
15091 \emph on
15092 Our hero arrives in Troia; he loses some friends; he finds others
15093 \emph default
15094 ).
15095  Chapterprecis does exactly this.
15096  It is therefore only sensible below a chapter.
15097 \end_layout
15098
15099 \begin_layout Description
15100 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15101  The epigraph environment provides an elegant way of typesetting such a
15102  motto.
15103  The motto itself (text) and its author (source) are divided by a short
15104  line.
15105  Unfortunately, we have to fool LyX a bit here again, since the environment
15106  needs two arguments (text and source).
15107  In this case, we have to use curly brackets (in TeX mode) between the two
15108  arguments: 
15109 \emph on
15110 <smart slogan>
15111 \emph default
15112  
15113 \family typewriter
15114 }{
15115 \family default
15116  
15117 \emph on
15118 <author of the slogan>.
15119 \end_layout
15120
15121 \begin_layout Description
15122 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15123  complex figurative poems).
15124  Lyx can only support a few of them.
15125  One is poemtitle, which is a centered title for poems, which will also
15126  be added to the table of contents (verse is the standard environment for
15127  poems.
15128  Memoir has some enhanced versions of verse, but you need to use ERT, because
15129  they have to be nested inside regular verse environments, which is not
15130  possible with LyX).
15131 \end_layout
15132
15133 \begin_layout Description
15134 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15135 \end_layout
15136
15137 \begin_layout Chapter
15138 Importing and Exporting Alternate File Formats
15139 \begin_inset OptArg
15140 status collapsed
15141
15142 \begin_layout Standard
15143 Importing and Exporting
15144 \end_layout
15145
15146 \end_inset
15147
15148
15149 \end_layout
15150
15151 \begin_layout Section
15152 Considerations
15153 \end_layout
15154
15155 \begin_layout Standard
15156 Importing and exporting LyX documents from/to other formats has been touched
15157  on briefly in the 
15158 \emph on
15159 User Guide
15160 \emph default
15161 .
15162  Here we describe more of the gory details needed to understand just what
15163  is going on when you click on the 
15164 \family sans
15165 \bar under
15166 F
15167 \bar default
15168 ile\SpecialChar \menuseparator
15169
15170 \bar under
15171 I
15172 \bar default
15173 mport
15174 \family default
15175  and 
15176 \family sans
15177 \bar under
15178 F
15179 \bar default
15180 ile\SpecialChar \menuseparator
15181 E
15182 \bar under
15183 x
15184 \bar default
15185 port
15186 \family default
15187  menu items.
15188  
15189 \end_layout
15190
15191 \begin_layout Section
15192 Importing Other Formats
15193 \end_layout
15194
15195 \begin_layout Subsection
15196 LaTeX
15197 \end_layout
15198
15199 \begin_layout Standard
15200 Translating from LaTeX into LyX is performed by a Perl script called reLyX.
15201  Although it is a standalone program which can be called from the command
15202  line, LyX will call it automatically when a LaTeX document is imported.
15203  See section\InsetSpace ~
15204
15205 \begin_inset LatexCommand \ref{sec:reLyX}
15206
15207 \end_inset
15208
15209  for a complete description.
15210  There are no user tunable parameters for reLyX within LyX.
15211 \end_layout
15212
15213 \begin_layout Subsection
15214 ASCII Text
15215 \end_layout
15216
15217 \begin_layout Standard
15218 When importing plain ASCII text, there are two methods of reading the file.
15219  Importing 
15220 \begin_inset Quotes eld
15221 \end_inset
15222
15223 as lines
15224 \begin_inset Quotes erd
15225 \end_inset
15226
15227  preserves all the linebreaks in the ASCII; to LyX, then, each line looks
15228  like a paragraph.
15229  Importing 
15230 \begin_inset Quotes eld
15231 \end_inset
15232
15233 as paragraphs
15234 \begin_inset Quotes erd
15235 \end_inset
15236
15237  assumes that consecutive lines separated by only a single linebreak form
15238  a single paragraph.
15239  Successive linebreaks with no intervening text are thus assumed to be paragraph
15240  delimiters.
15241 \end_layout
15242
15243 \begin_layout Subsection
15244 Noweb
15245 \end_layout
15246
15247 \begin_layout Standard
15248
15249 \emph on
15250 [Editor's note: Needs to be written, obviously - any volunteers? --- mer]
15251 \end_layout
15252
15253 \begin_layout Section
15254 Exporting Other Formats
15255 \end_layout
15256
15257 \begin_layout Subsection
15258 LaTeX
15259 \end_layout
15260
15261 \begin_layout Standard
15262 LyX generates two types of LaTeX files: stripped down versions for the normal
15263  processing (
15264 \family sans
15265 View DVI
15266 \family default
15267 , etc.) which one normally never sees
15268 \begin_inset Foot
15269 status collapsed
15270
15271 \begin_layout Standard
15272 The resulting file is a perfectly valid LaTeX file, though the preamble
15273  might look a bit strange since it includes some definitions used by LyX
15274  which wouldn't show up in most human-written files.
15275 \end_layout
15276
15277 \end_inset
15278
15279 , and human readable forms which are suitable for exchanging with your colleague
15280 s.
15281  The only settable option for the translation is the line length of the
15282  output file.
15283  The default is 65 characters, but it can be set in 
15284 \family sans
15285 \bar under
15286 T
15287 \bar default
15288 ools
15289 \family default
15290 \SpecialChar \menuseparator
15291
15292 \family sans
15293 \bar under
15294 P
15295 \bar default
15296 references
15297 \family default
15298  using the 
15299 \family sans
15300 \bar under
15301 A
15302 \bar default
15303 scii\InsetSpace ~
15304 line\InsetSpace ~
15305 length
15306 \family default
15307  field.
15308  
15309 \end_layout
15310
15311 \begin_layout Subsection
15312 Device Independent Files
15313 \end_layout
15314
15315 \begin_layout Standard
15316 Device Independent files (DVI files) are produced by running LaTeX on your
15317  document.
15318  There are no user settable options.
15319 \end_layout
15320
15321 \begin_layout Subsection
15322 PostScript®
15323 \end_layout
15324
15325 \begin_layout Standard
15326 The next step in the conversion chain is converting a DVI file into Postscript®.
15327  You can either use 
15328 \family sans
15329 \bar under
15330 F
15331 \bar default
15332 ile
15333 \family default
15334 \SpecialChar \menuseparator
15335
15336 \family sans
15337 \bar under
15338 E
15339 \bar default
15340 xport
15341 \family default
15342 \SpecialChar \menuseparator
15343
15344 \family sans
15345 Pos
15346 \bar under
15347 t
15348 \bar default
15349 script
15350 \family default
15351  or, if you need more control on the result, 
15352 \family sans
15353 \bar under
15354 F
15355 \bar default
15356 ile
15357 \family default
15358 \SpecialChar \menuseparator
15359
15360 \family sans
15361 \bar under
15362 P
15363 \bar default
15364 rint
15365 \family default
15366 .
15367  If you use the later, note that it is possible to configure, in 
15368 \family sans
15369 \bar under
15370 T
15371 \bar default
15372 ools
15373 \family default
15374 \SpecialChar \menuseparator
15375
15376 \family sans
15377 \bar under
15378 P
15379 \bar default
15380 references
15381 \family default
15382 , the options passed to the dvips program to achieve different effects.
15383 \end_layout
15384
15385 \begin_layout Subsection
15386 ASCII text
15387 \end_layout
15388
15389 \begin_layout Standard
15390 Exporting as ASCII attempts to preserve the 
15391 \begin_inset Quotes eld
15392 \end_inset
15393
15394 shape
15395 \begin_inset Quotes erd
15396 \end_inset
15397
15398  of the document as well as possible, but things like centering and indentation
15399  are thrown out; paragraphs are separated by blank lines.
15400  Section numbering and cross-references are done correctly, so the resulting
15401  text files is remarkably readable.
15402  The only changeable option is the length of lines, as for LaTeX output.
15403 \end_layout
15404
15405 \begin_layout Subsection
15406 HTML
15407 \end_layout
15408
15409 \begin_layout Standard
15410 LyX documents can be converted to hypertext markup, usually by converting
15411  to LaTeX first, then converting that to HTML\SpecialChar \@.
15412  Three LaTeX
15413 \begin_inset Formula $\rightarrow$
15414 \end_inset
15415
15416 HTML converters are currently known to LyX: 
15417 \family typewriter
15418 tth
15419 \family default
15420
15421 \family typewriter
15422 latex2html
15423 \family default
15424 , and 
15425 \family typewriter
15426 hevea
15427 \family default
15428 .
15429  Though they are autodetected, you can overide the selection in preferences.
15430  You can also include further command line options in this dialog.
15431  
15432 \end_layout
15433
15434 \begin_layout Subsection
15435 PDF
15436 \end_layout
15437
15438 \begin_layout Standard
15439 by 
15440 \noun on
15441 Dekel Tsur
15442 \noun default
15443  (mostly)
15444 \end_layout
15445
15446 \begin_layout Standard
15447 \begin_inset VSpace bigskip
15448 \end_inset
15449
15450
15451 \end_layout
15452
15453 \begin_layout Standard
15454 The fastest way to generate a basic PDF file (no tags, links, etc.) with
15455  any version of LyX is to save the document as a Postscript® file, then
15456  run the 
15457 \family typewriter
15458 ps2pdf
15459 \family default
15460  command on it.
15461  Starting with version 1.1.6, the menu item 
15462 \family sans
15463 File->Export->PDF
15464 \family default
15465  will do all this for you.
15466  There are some issues with fonts that you need to pay attention to: see
15467  Section\InsetSpace ~
15468
15469 \begin_inset LatexCommand \ref{sec:badfonts}
15470
15471 \end_inset
15472
15473 .
15474  Also, as of version 1.1.6, there is a better method that will generate much
15475  more sophisticated files.
15476 \end_layout
15477
15478 \begin_layout Subsubsection
15479 Use pdfLaTeX
15480 \end_layout
15481
15482 \begin_layout Standard
15483 With pdfLaTeX you need to convert your eps figures to PDF (see Section\InsetSpace ~
15484
15485 \begin_inset LatexCommand \ref{sec:pdfeps}
15486
15487 \end_inset
15488
15489 ), and you cannot use pstricks.
15490  On the other hand, with pdfLaTeX it is possible to insert directly images
15491  in JPEG or PNG format, use TrueType fonts, and more.
15492 \end_layout
15493
15494 \begin_layout Subsubsection
15495 Why does the text look so bad when viewed with Acrobat Reader?
15496 \begin_inset LatexCommand \label{sec:badfonts}
15497
15498 \end_inset
15499
15500
15501 \begin_inset OptArg
15502 status collapsed
15503
15504 \begin_layout Standard
15505 Bad Fonts in Acrobat Reader
15506 \end_layout
15507
15508 \end_inset
15509
15510
15511 \end_layout
15512
15513 \begin_layout Standard
15514 The problem is that bitmap fonts are displayed poorly by Acrobat Reader.
15515  When creating a PDF from the LyX file, you need to use outline font instead
15516  of the default bitmap fonts (in fact, you should also use outline fonts
15517  for Postscript files).
15518  Recent LaTeX distributions come with Postscript® Type 1 version of the
15519  standard (Computer Modern) fonts.
15520  pdfLaTeX uses these font by default.
15521  Dvips doesn't use these fonts by default, so to make it use them, add the
15522  following to lines to your 
15523 \family typewriter
15524 ~/.dvipsrc
15525 \family default
15526  file
15527 \end_layout
15528
15529 \begin_layout LyX-Code
15530 p+ psfonts.cmz
15531 \end_layout
15532
15533 \begin_layout LyX-Code
15534 p+ psfonts.amz
15535 \end_layout
15536
15537 \begin_layout Standard
15538 If the default LaTeX font encoding (OT1) is used, nothing else need to be
15539  done.
15540  However, if the T1 font encoding is used, then LaTeX uses the newer EC
15541  fonts, for which there are no Type1 version.
15542  The solution is to use the ae package which emulates T1 coded fonts using
15543  the standard CM fonts.
15544  This is done by adding 
15545 \family typewriter
15546
15547 \backslash
15548 usepackage{ae,aecompl}
15549 \family default
15550  to the preamble of the LyX file.
15551  However, some glyphs are missing from the CM fonts (e.g.
15552  eth, thorn), and they are taken from the EC fonts.
15553  Therefore you get these glyphs as bitmaps.
15554 \end_layout
15555
15556 \begin_layout Standard
15557 Note: LyX uses by default the T1 font encoding.
15558  If you wish to use the default font encoding (this is not recommended,
15559  unless you only write English documents), clear the field 
15560 \family sans
15561 \bar under
15562 T
15563 \bar default
15564 eX\InsetSpace ~
15565 encoding
15566 \family default
15567  in preferences (tabs 
15568 \family sans
15569 Outputs
15570 \family default
15571
15572 \family sans
15573 Misc
15574 \family default
15575 ).
15576  
15577 \end_layout
15578
15579 \begin_layout Standard
15580 An alternate option is to use the standard Postscript® fonts instead of
15581  the Computer Modern fonts.
15582  To do that, you need to select 
15583 \family sans
15584 pslatex
15585 \family default
15586  as the global font in the document layout dialog.
15587  When using the Postscript® fonts, the result PDF file is smaller as the
15588  fonts are not saved into the file.
15589  Furthermore, the Postscript® fonts include all T1 glyphs.
15590  On the other hand, the Postscript® fonts have no bold symbol font, so poor
15591  man's bold must be used (see Section\InsetSpace ~
15592
15593 \begin_inset LatexCommand \ref{sec:pdfbold}
15594
15595 \end_inset
15596
15597 ).
15598  The Postscript® fonts also look different from the Computer Modern fonts.
15599 \end_layout
15600
15601 \begin_layout Standard
15602 To sum up, both the Computer Modern and the Postscript® fonts gives good
15603  results (with few exceptions).
15604  The decision of which one to use is a matter of taste.
15605 \end_layout
15606
15607 \begin_layout Subsubsection
15608 Why doesn't the 
15609 \backslash
15610 boldsymbol{} command work when I use pslatex?
15611 \begin_inset LatexCommand \label{sec:pdfbold}
15612
15613 \end_inset
15614
15615
15616 \begin_inset OptArg
15617 status collapsed
15618
15619 \begin_layout Standard
15620
15621 \family typewriter
15622
15623 \backslash
15624 boldsymbol{}
15625 \family default
15626  and 
15627 \family typewriter
15628 pslatex
15629 \end_layout
15630
15631 \end_inset
15632
15633
15634 \end_layout
15635
15636 \begin_layout Standard
15637 The Postscript® fonts do not have a bold symbol font.
15638  The solution is to use the 
15639 \family typewriter
15640
15641 \backslash
15642 pmb{}
15643 \family default
15644  (poor man's bold) command.
15645 \end_layout
15646
15647 \begin_layout Standard
15648 It is possible to redefine the 
15649 \family typewriter
15650
15651 \backslash
15652 boldsymbol
15653 \family default
15654  command to use 
15655 \family typewriter
15656
15657 \backslash
15658 pmb
15659 \family default
15660  by putting
15661 \end_layout
15662
15663 \begin_layout LyX-Code
15664
15665 \backslash
15666 renewcommand{
15667 \backslash
15668 boldsymbol}[1]{
15669 \backslash
15670 pmb{#1}}
15671 \end_layout
15672
15673 \begin_layout Standard
15674 in the preamble.
15675 \end_layout
15676
15677 \begin_layout Subsubsection
15678 Is it possible to do write latex code which is processed only when running
15679  pdfLaTeX?
15680 \begin_inset OptArg
15681 status collapsed
15682
15683 \begin_layout Standard
15684 Conditionals with pdfLaTeX
15685 \end_layout
15686
15687 \end_inset
15688
15689
15690 \end_layout
15691
15692 \begin_layout Standard
15693 Yes.
15694  Here is an example:
15695 \end_layout
15696
15697 \begin_layout LyX-Code
15698
15699 \backslash
15700 newif 
15701 \backslash
15702 ifpdf
15703 \end_layout
15704
15705 \begin_layout LyX-Code
15706    
15707 \backslash
15708 ifx 
15709 \backslash
15710 pdfoutput 
15711 \backslash
15712 undefined
15713 \end_layout
15714
15715 \begin_layout LyX-Code
15716       
15717 \backslash
15718 pdffalse
15719 \end_layout
15720
15721 \begin_layout LyX-Code
15722    
15723 \backslash
15724 else
15725 \end_layout
15726
15727 \begin_layout LyX-Code
15728       
15729 \backslash
15730 pdftrue
15731 \end_layout
15732
15733 \begin_layout LyX-Code
15734
15735 \backslash
15736 fi
15737 \end_layout
15738
15739 \begin_layout LyX-Code
15740
15741 \end_layout
15742
15743 \begin_layout LyX-Code
15744
15745 \backslash
15746 ifpdf
15747 \end_layout
15748
15749 \begin_layout LyX-Code
15750    
15751 \backslash
15752 pdfinfo { /Author (your name and e-mail address)
15753 \end_layout
15754
15755 \begin_layout LyX-Code
15756       /Title (official title -- i.e., title element)
15757 \end_layout
15758
15759 \begin_layout LyX-Code
15760       /Subject (one line description of the document)
15761 \end_layout
15762
15763 \begin_layout LyX-Code
15764    }
15765 \end_layout
15766
15767 \begin_layout LyX-Code
15768    
15769 \backslash
15770 pdfcatalog { /PageMode (/UseNone)
15771 \end_layout
15772
15773 \begin_layout LyX-Code
15774    % /OpenAction (fitbh)
15775 \end_layout
15776
15777 \begin_layout LyX-Code
15778    }
15779 \end_layout
15780
15781 \begin_layout LyX-Code
15782    
15783 \backslash
15784 usepackage[pdftex]{hyperref}
15785 \end_layout
15786
15787 \begin_layout LyX-Code
15788
15789 \backslash
15790 else
15791 \end_layout
15792
15793 \begin_layout LyX-Code
15794    
15795 \backslash
15796 usepackage[ps2pdf]{hyperref}
15797 \end_layout
15798
15799 \begin_layout LyX-Code
15800
15801 \backslash
15802 fi
15803 \end_layout
15804
15805 \begin_layout Subsubsection
15806 How can I make URLs clickable ?
15807 \end_layout
15808
15809 \begin_layout Standard
15810 See the references here :
15811 \end_layout
15812
15813 \begin_layout Standard
15814 \begin_inset LatexCommand \url{http://wiki.lyx.org/pmwiki.php/FAQ/PDF}
15815
15816 \end_inset
15817
15818
15819 \end_layout
15820
15821 \begin_layout Subsection
15822 Custom
15823 \end_layout
15824
15825 \begin_layout Standard
15826 Custom exports are possible if you have some particularly weird format you
15827  wish to convert to, assuming you have the relevant converter, of course.
15828  The format of the 
15829 \emph on
15830 input
15831 \emph default
15832  file can be chosen in the 
15833 \family sans
15834 \bar under
15835 F
15836 \bar default
15837 ile\SpecialChar \menuseparator
15838
15839 \bar under
15840 E
15841 \bar default
15842 xport\SpecialChar \menuseparator
15843
15844 \bar under
15845 C
15846 \bar default
15847 ustom 
15848 \family default
15849 dialog; LyX will automatically convert the file to this point, then feed
15850  it to your custom converter.
15851  The possible values are all formats that LyX can produce from its own documents.
15852  
15853 \end_layout
15854
15855 \begin_layout Standard
15856 The converter command is also specified in the dialog.It should be a completely
15857  qualified command line which uses the variable 
15858 \family typewriter
15859 $$FName
15860 \family default
15861  to specify the name of the file.
15862  If this variable is not given, then the file will be sent to the standard
15863  input of your command.
15864  You may have to apply a bit of ingenuity to escape this sequence correctly
15865  so that it is compatible with your shell.
15866  
15867 \end_layout
15868
15869 \begin_layout Standard
15870 While it is not possible to save this command using the 
15871 \family sans
15872 Preferences 
15873 \family default
15874 dialog, you can manually edit your 
15875 \family typewriter
15876 .lyx/preferences
15877 \family default
15878  to add a line like
15879 \end_layout
15880
15881 \begin_layout LyX-Code
15882
15883 \backslash
15884 custom_export_command "mycommand $$FName"
15885 \end_layout
15886
15887 \begin_layout Section
15888 The Complete reLyX Description
15889 \begin_inset LatexCommand \label{sec:reLyX}
15890
15891 \end_inset
15892
15893
15894 \end_layout
15895
15896 \begin_layout Subsection
15897 Synopsis
15898 \end_layout
15899
15900 \begin_layout Standard
15901 The simplest way to use reLyX is via the 
15902 \family sans
15903 \bar under
15904 F
15905 \bar default
15906 ile\SpecialChar \menuseparator
15907
15908 \bar under
15909 I
15910 \bar default
15911 mport
15912 \family default
15913  command in LyX.
15914  That runs reLyX on the given file and loads the resulting file into LyX.
15915  You should try that first, and call it from the command line only if you
15916  need to use more complicated options.
15917 \end_layout
15918
15919 \begin_layout Standard
15920
15921 \series bold
15922 reLyX
15923 \series default
15924  [ 
15925 \series bold
15926 -c
15927 \series default
15928  
15929 \shape italic
15930 textclass
15931 \shape default
15932  ] [ 
15933 \series bold
15934 -df
15935 \series default
15936  ] [ 
15937 \series bold
15938 -o
15939 \series default
15940  
15941 \shape italic
15942 outputdir
15943 \shape default
15944  ] [
15945 \series bold
15946  -r
15947 \series default
15948 \shape italic
15949  renv1
15950 \shape default
15951 [,
15952 \shape italic
15953 renv2
15954 \shape default
15955 ...]] [
15956 \series bold
15957  -s
15958 \series default
15959 \shape italic
15960  sfile1
15961 \shape default
15962 [,
15963 \shape italic
15964 sfile2
15965 \shape default
15966 ...]] 
15967 \emph on
15968 inputfile
15969 \end_layout
15970
15971 \begin_layout Standard
15972
15973 \series bold
15974 reLyX
15975 \series default
15976  
15977 \series bold
15978 -p
15979 \series default
15980  
15981 \series bold
15982 -c
15983 \series default
15984  
15985 \shape italic
15986 textclass
15987 \shape default
15988  [ 
15989 \series bold
15990 -df
15991 \series default
15992  ] [ 
15993 \series bold
15994 -o
15995 \series default
15996  
15997 \shape italic
15998 outputdir
15999 \shape default
16000  ] [
16001 \series bold
16002  -r
16003 \series default
16004 \shape italic
16005  renv1
16006 \shape default
16007 [,
16008 \shape italic
16009 renv2
16010 \shape default
16011 ...]] [
16012 \series bold
16013  -s
16014 \series default
16015 \shape italic
16016  sfile1
16017 \shape default
16018 [,
16019 \shape italic
16020 sfile2
16021 \shape default
16022 ...]] 
16023 \emph on
16024 inputfiles
16025 \end_layout
16026
16027 \begin_layout Standard
16028
16029 \series bold
16030 reLyX
16031 \series default
16032  
16033 \series bold
16034 -h
16035 \end_layout
16036
16037 \begin_layout Subsection
16038 Options
16039 \end_layout
16040
16041 \begin_layout Description
16042
16043 \series bold
16044 -c
16045 \series default
16046  Class.
16047  By default, when reLyX sees a 
16048 \family typewriter
16049
16050 \backslash
16051 documentclass{foo}
16052 \family default
16053  command, it creates a file of textclass 
16054 \begin_inset Quotes eld
16055 \end_inset
16056
16057 foo
16058 \begin_inset Quotes erd
16059 \end_inset
16060
16061  and reads the LyX layout file for that class.
16062   Use 
16063 \series bold
16064 -c
16065 \series default
16066  to declare a different textclass (and read a different layout file).
16067 \end_layout
16068
16069 \begin_layout Description
16070
16071 \series bold
16072 -d
16073 \series default
16074  Debug.
16075  By default, reLyX gives sparse output and deletes the temporary files which
16076  were created during translation.
16077  Using the 
16078 \series bold
16079 -d
16080 \series default
16081  flag will create much more output (both to stdout and stderr) and leave
16082  the temporary files around.
16083 \end_layout
16084
16085 \begin_layout Description
16086
16087 \series bold
16088 -f
16089 \series default
16090  Force.
16091  reLyX will not run if the 
16092 \family typewriter
16093 .lyx
16094 \family default
16095  file it would generate already exists Use the 
16096 \series bold
16097 -f
16098 \series default
16099  option (carefully) to clobber any existing files.
16100 \end_layout
16101
16102 \begin_layout Description
16103
16104 \series bold
16105 -h
16106 \series default
16107  Help.
16108  Print out usage information and quit
16109 \end_layout
16110
16111 \begin_layout Description
16112
16113 \series bold
16114 -o
16115 \series default
16116  Output directory.
16117  With this option, all temporary files and LyX output files (for the given
16118  input file, for any included files, or for any file fragments given with
16119  the 
16120 \series bold
16121 -p
16122 \series default
16123  option) will be put into 
16124 \shape italic
16125 outputdir
16126 \shape default
16127 .
16128  Otherwise, for each file 
16129 \emph on
16130 dir/foo.tex
16131 \emph default
16132 , the temporary files and the LyX output file will be created in 
16133 \emph on
16134 dir
16135 \emph default
16136 .
16137  This can be useful if a file includes files from other directories which
16138  you want to consolidate in one directory, or if you don't have write permission
16139  on the directory the LaTeX files are in.
16140 \end_layout
16141
16142 \begin_layout Description
16143
16144 \series bold
16145 -p
16146 \series default
16147  Partial file.
16148  The input files are LaTeX fragments, with no preamble matter or 
16149 \family typewriter
16150
16151 \backslash
16152 begin{document}
16153 \family default
16154  commands.
16155  This option requires the 
16156 \series bold
16157 -c
16158 \series default
16159  option, since there are no 
16160 \family typewriter
16161
16162 \backslash
16163 documentclass
16164 \family default
16165  commands in the files reLyX is translating.
16166  When using this option, you can translate more than one file, as long as
16167  all files are the same class.
16168  The LyX file created by reLyX can be included in an existing LyX file using
16169  
16170 \family sans
16171 \bar under
16172 I
16173 \bar default
16174 nsert\SpecialChar \menuseparator
16175 Fil
16176 \bar under
16177 e
16178 \bar default
16179 \SpecialChar \menuseparator
16180 Ly
16181 \bar under
16182 X
16183 \bar default
16184 \InsetSpace ~
16185 Document
16186 \family default
16187 .
16188 \end_layout
16189
16190 \begin_layout Description
16191
16192 \series bold
16193 -r
16194 \series default
16195  Regular environments (see the Section\InsetSpace ~
16196
16197 \begin_inset LatexCommand \ref{sub:relyx-syntax}
16198
16199 \end_inset
16200
16201 ).
16202   If you give more than one environment, separate them with commas (not
16203  spaces).
16204  You'll probably need to quote the environment list, especially if it has
16205  asterisk environments (foo*) in it.
16206  If you use this command often, considering creating a personal syntax file.
16207 \end_layout
16208
16209 \begin_layout Description
16210
16211 \series bold
16212 -s
16213 \series default
16214  Syntax files.
16215  Input (one or more quoted, comma-separated) syntax files to read in addition
16216  to the default.
16217  (see the section Section\InsetSpace ~
16218
16219 \begin_inset LatexCommand \ref{sub:relyx-syntax}
16220
16221 \end_inset
16222
16223  for details).
16224 \end_layout
16225
16226 \begin_layout Subsection
16227 Description
16228 \end_layout
16229
16230 \begin_layout Subsubsection
16231 Introduction
16232 \end_layout
16233
16234 \begin_layout Standard
16235 reLyX will create a LyX file 
16236 \emph on
16237 dir/foo.lyx
16238 \emph default
16239  from the LaTeX file 
16240 \emph on
16241 dir/foo.tex
16242 \emph default
16243  (unless the 
16244 \series bold
16245 -o
16246 \series default
16247  option is used).
16248 \end_layout
16249
16250 \begin_layout Standard
16251 Suffixes 
16252 \family typewriter
16253 .tex
16254 \family default
16255
16256 \family typewriter
16257 .ltx
16258 \family default
16259  and 
16260 \family typewriter
16261 .latex
16262 \family default
16263  are supported.
16264  If 
16265 \emph on
16266 inputfile
16267 \emph default
16268  does not exist and does not have one of these suffixes, reLyX will try
16269  to translate 
16270 \emph on
16271 inputfile.tex
16272 \emph default
16273 .
16274  (This is similar to the behavior of LaTeX.)
16275 \end_layout
16276
16277 \begin_layout Standard
16278 The purpose of reLyX is to translate 
16279 \shape italic
16280 well-behaved
16281 \shape default
16282  LaTeX2e into LyX.
16283  If your LaTeX file doesn't compile---or if you do weird things, like redefining
16284  standard LaTeX commands---it may choke.
16285  LaTeX209 will often be translated correctly, but it's not guaranteed.
16286 \end_layout
16287
16288 \begin_layout Standard
16289 reLyX has some bugs and lacks a few features.
16290  However, its main goals are:
16291 \end_layout
16292
16293 \begin_layout Itemize
16294 Get through a well-behaved LaTeX2e file without crashing
16295 \end_layout
16296
16297 \begin_layout Itemize
16298 Translate a lot of that file.
16299 \end_layout
16300
16301 \begin_layout Itemize
16302 Localize the parts that can't be translated and copy them in TeX mode
16303 \end_layout
16304
16305 \begin_layout Standard
16306 It achieves these main goals pretty well on most files.
16307 \end_layout
16308
16309 \begin_layout Standard
16310 There are many improvements that can and will be made to reLyX in the future.
16311  However, we wanted to get reLyX out there early on, to make it easier for
16312  new LyX users to read in their existing LaTeX files.
16313 \end_layout
16314
16315 \begin_layout Subsubsection
16316 Usage
16317 \end_layout
16318
16319 \begin_layout Standard
16320 Here's a more lengthy description of what you should do to translate a LaTeX
16321  document into LyX.
16322 \end_layout
16323
16324 \begin_layout Itemize
16325 Run reLyX.
16326 \end_layout
16327
16328 \begin_deeper
16329 \begin_layout Standard
16330 reLyX will inform you of its progress and give any warnings to stderr, so
16331  if you don't want any output at all, try (in csh) 
16332 \begin_inset Quotes eld
16333 \end_inset
16334
16335
16336 \family typewriter
16337 reLyX foo.tex >& /dev/null
16338 \family default
16339
16340 \begin_inset Quotes erd
16341 \end_inset
16342
16343  or (in bash) 
16344 \begin_inset Quotes eld
16345 \end_inset
16346
16347
16348 \family typewriter
16349 reLyX foo.tex
16350 \family default
16351  
16352 \family typewriter
16353 2>&1 >/dev/null
16354 \family default
16355
16356 \begin_inset Quotes erd
16357 \end_inset
16358
16359 .
16360  You should NOT redirect standard output to 
16361 \family typewriter
16362 foo.lyx
16363 \family default
16364 .
16365  
16366 \end_layout
16367
16368 \end_deeper
16369 \begin_layout Itemize
16370 Run LyX on the resulting .lyx file.
16371 \end_layout
16372
16373 \begin_deeper
16374 \begin_layout Standard
16375 In theory, most of the file will have been translated, and anything that's
16376  untranslatable will be highlighted in red (TeX mode).
16377  In theory, LyX will be able to read in the file, and to create printed
16378  documents from it, because all that untranslated red stuff will be passed
16379  directly back to LaTeX, which LyX  uses as a backend.
16380  Unfortunately, reality doesn't always reflect theory.
16381  If reLyX crashes, or LyX cannot read the generated LyX file, see Section\InsetSpace ~
16382
16383 \begin_inset LatexCommand \ref{sub:relyx-bugs}
16384
16385 \end_inset
16386
16387  or the 
16388 \family typewriter
16389 BUGS
16390 \family default
16391  file.
16392 \end_layout
16393
16394 \end_deeper
16395 \begin_layout Itemize
16396 Change things that are in ERT boxes (TeX code) by hand in LyX.
16397 \end_layout
16398
16399 \begin_deeper
16400 \begin_layout Standard
16401 As mentioned above, you should be able to print out the LyX file even without
16402  doing this.
16403  However, changing a command in TeX mode to the corresponding LyX object
16404  will allow you to take advantage of LyX's WYSIWYM editing.
16405 \end_layout
16406
16407 \begin_layout Standard
16408 reLyX is not guaranteed to create a LyX file which generates exactly the
16409  same output as the LaTeX file, but it should come close.
16410  reLyX will generally err on the side of translating less to ensure that
16411  dvi or ps files are accurate, even though this leads to more 
16412 \begin_inset Quotes eld
16413 \end_inset
16414
16415 evil red text
16416 \begin_inset Quotes erd
16417 \end_inset
16418
16419  and less WYSIWYM.
16420 \end_layout
16421
16422 \end_deeper
16423 \begin_layout Itemize
16424 PROOFREAD THE DOCUMENT!!
16425 \end_layout
16426
16427 \begin_deeper
16428 \begin_layout Standard
16429 I'm sure you were planning on doing this anyway, but it's particularly important
16430  after translating a LaTeX document.
16431  reLyX is, at least now, better at 
16432 \begin_inset Quotes eld
16433 \end_inset
16434
16435 macro-translating
16436 \begin_inset Quotes erd
16437 \end_inset
16438
16439  (translating the whole document) than 
16440 \begin_inset Quotes eld
16441 \end_inset
16442
16443 micro-translating
16444 \begin_inset Quotes erd
16445 \end_inset
16446
16447  (translating every little detail).
16448  For example, you may see extra spaces or deleted spaces.
16449  Space handling has improved, but it's not perfect.
16450 \end_layout
16451
16452 \end_deeper
16453 \begin_layout Subsubsection
16454 What reLyX Can Handle
16455 \end_layout
16456
16457 \begin_layout Standard
16458 reLyX understands many LaTeX commands.
16459  It will translate:
16460 \end_layout
16461
16462 \begin_layout Itemize
16463 regular text, including mini-commands like ~, '', 
16464 \family typewriter
16465
16466 \backslash
16467 @
16468 \family default
16469
16470 \family typewriter
16471
16472 \backslash
16473 TeX
16474 \family default
16475 , as well as accented characters like 
16476 \family typewriter
16477
16478 \backslash
16479 '{a}
16480 \family default
16481 , and the special cases ?` and !`
16482 \end_layout
16483
16484 \begin_layout Itemize
16485 title commands like 
16486 \family typewriter
16487
16488 \backslash
16489 author
16490 \family default
16491
16492 \family typewriter
16493
16494 \backslash
16495 date
16496 \family default
16497
16498 \family typewriter
16499
16500 \backslash
16501 title
16502 \family default
16503
16504 \family typewriter
16505
16506 \backslash
16507 thanks
16508 \family default
16509  and the abstract environment
16510 \end_layout
16511
16512 \begin_layout Itemize
16513 heading commands like 
16514 \family typewriter
16515
16516 \backslash
16517 section
16518 \family default
16519  including starred commands (
16520 \family typewriter
16521
16522 \backslash
16523 section*
16524 \family default
16525 )
16526 \end_layout
16527
16528 \begin_layout Itemize
16529 Environments: 
16530 \family typewriter
16531 quote
16532 \family default
16533
16534 \family typewriter
16535 quotation
16536 \family default
16537 , and 
16538 \family typewriter
16539 verse
16540 \family default
16541
16542 \family typewriter
16543 center
16544 \family default
16545
16546 \family typewriter
16547 flushright
16548 \family default
16549 , and 
16550 \family typewriter
16551 flushleft
16552 \end_layout
16553
16554 \begin_layout Itemize
16555
16556 \family typewriter
16557 itemize
16558 \family default
16559
16560 \family typewriter
16561 enumerate
16562 \family default
16563 , and 
16564 \family typewriter
16565 description
16566 \family default
16567  environments, and their 
16568 \family typewriter
16569
16570 \backslash
16571 item
16572 \family default
16573  commands.
16574  Also, well-behaved nested lists
16575 \end_layout
16576
16577 \begin_layout Itemize
16578 cross-referencing commands: 
16579 \family typewriter
16580
16581 \backslash
16582 ref
16583 \family default
16584
16585 \family typewriter
16586
16587 \backslash
16588 pageref
16589 \family default
16590
16591 \family typewriter
16592
16593 \backslash
16594 label
16595 \family default
16596 , and 
16597 \family typewriter
16598
16599 \backslash
16600 cite
16601 \end_layout
16602
16603 \begin_layout Itemize
16604
16605 \family typewriter
16606
16607 \backslash
16608 footnote
16609 \family default
16610  and 
16611 \family typewriter
16612
16613 \backslash
16614 margin
16615 \end_layout
16616
16617 \begin_layout Itemize
16618 font-changing commands including 
16619 \family typewriter
16620
16621 \backslash
16622 em
16623 \family default
16624
16625 \family typewriter
16626
16627 \backslash
16628 emph
16629 \family default
16630
16631 \family typewriter
16632
16633 \backslash
16634 textit
16635 \family default
16636 , and corresponding commands to change family, size, series, and shape
16637 \end_layout
16638
16639 \begin_layout Itemize
16640
16641 \family typewriter
16642
16643 \backslash
16644 input{foo}
16645 \family default
16646  (or 
16647 \family typewriter
16648
16649 \backslash
16650 input{foo.blah}
16651 \family default
16652 ) and 
16653 \family typewriter
16654
16655 \backslash
16656 include{foo}
16657 \family default
16658 .
16659  Plain TeX 
16660 \family typewriter
16661
16662 \backslash
16663 input
16664 \family default
16665  command 
16666 \begin_inset Quotes erd
16667 \end_inset
16668
16669
16670 \family typewriter
16671
16672 \backslash
16673 input foo.tex
16674 \family default
16675
16676 \begin_inset Quotes erd
16677 \end_inset
16678
16679  is also supported.
16680 \end_layout
16681
16682 \begin_layout Itemize
16683
16684 \family typewriter
16685 tabular
16686 \family default
16687  environment, and commands that go inside it like 
16688 \family typewriter
16689
16690 \backslash
16691 hline
16692 \family default
16693
16694 \family typewriter
16695
16696 \backslash
16697 cline
16698 \family default
16699 , and 
16700 \family typewriter
16701
16702 \backslash
16703 multicolumn
16704 \family default
16705  (but see below)
16706 \end_layout
16707
16708 \begin_layout Itemize
16709 float environments 
16710 \family typewriter
16711 table
16712 \family default
16713  and 
16714 \family typewriter
16715 table*
16716 \family default
16717 , as well as 
16718 \family typewriter
16719
16720 \backslash
16721 caption
16722 \family default
16723  commands within them
16724 \end_layout
16725
16726 \begin_layout Itemize
16727
16728 \family typewriter
16729 thebibliography
16730 \family default
16731  environment and 
16732 \family typewriter
16733
16734 \backslash
16735 bibitem
16736 \family default
16737  command, as well as BibTeX's 
16738 \family typewriter
16739
16740 \backslash
16741 bibliography
16742 \family default
16743  and 
16744 \family typewriter
16745
16746 \backslash
16747 bibliographystyle
16748 \family default
16749  commands
16750 \end_layout
16751
16752 \begin_layout Itemize
16753 miscellaneous commands: 
16754 \family typewriter
16755
16756 \backslash
16757 hfill
16758 \family default
16759
16760 \family typewriter
16761
16762 \backslash
16763
16764 \backslash
16765
16766 \family default
16767
16768 \family typewriter
16769
16770 \backslash
16771 noindent
16772 \family default
16773
16774 \family typewriter
16775
16776 \backslash
16777 ldots
16778 \family default
16779 ...
16780 \end_layout
16781
16782 \begin_layout Itemize
16783 documentclass-specific environments (and some commands) which can be  translated
16784  to LyX layouts
16785 \end_layout
16786
16787 \begin_layout Itemize
16788 arguments to certain untranslatable commands (e.g.
16789  
16790 \family typewriter
16791
16792 \backslash
16793 mbox
16794 \family default
16795 )
16796 \end_layout
16797
16798 \begin_layout Standard
16799 Some of this support may not be 100% yet.
16800  See below for details
16801 \end_layout
16802
16803 \begin_layout Standard
16804 reLyX copies math (almost) verbatim from your LaTeX file.
16805  Luckily, LyX reads  in LaTeX math, so (almost) any math which is supported
16806  by LyX should work just fine.
16807  A few math commands which are not supported by LyX will be replaced with
16808  their equivalents, e.g., 
16809 \family typewriter
16810
16811 \backslash
16812 to
16813 \family default
16814  is converted to 
16815 \family typewriter
16816
16817 \backslash
16818 rightarrow
16819 \family default
16820 .
16821  See the section on 
16822 \shape italic
16823 Syntax Files
16824 \shape default
16825  for more details.
16826 \end_layout
16827
16828 \begin_layout Standard
16829 reLyX will also copy any preamble commands (i.e., anything before 
16830 \family typewriter
16831
16832 \backslash
16833 begin{document}
16834 \family default
16835 ) verbatim, so fancy stuff you've got in your preamble should be conserved
16836  in dvi and printed documents, although it will not of course show up in
16837  the LyX window.
16838  Check the preamble to make sure.
16839 \end_layout
16840
16841 \begin_layout Subsubsection
16842 What reLyX Can't Handle --- But it's OK
16843 \end_layout
16844
16845 \begin_layout Itemize
16846 figures and 
16847 \family typewriter
16848 tabular*
16849 \family default
16850  tables
16851 \end_layout
16852
16853 \begin_layout Itemize
16854 minipages
16855 \end_layout
16856
16857 \begin_layout Itemize
16858 spacing commands (
16859 \family typewriter
16860
16861 \backslash
16862 vspace
16863 \family default
16864
16865 \family typewriter
16866
16867 \backslash
16868 pagebreak
16869 \family default
16870
16871 \family typewriter
16872
16873 \backslash
16874 par
16875 \family default
16876 )
16877 \end_layout
16878
16879 \begin_layout Itemize
16880
16881 \family typewriter
16882
16883 \backslash
16884 centering
16885 \family default
16886
16887 \family typewriter
16888
16889 \backslash
16890 raggedleft
16891 \family default
16892
16893 \family typewriter
16894
16895 \backslash
16896 raggedright
16897 \end_layout
16898
16899 \begin_layout Itemize
16900
16901 \family typewriter
16902
16903 \backslash
16904 verb
16905 \family default
16906  and 
16907 \family typewriter
16908 verbatim
16909 \family default
16910  environment.
16911  reLyX is careful to copy 
16912 \shape italic
16913 exactly
16914 \shape default
16915  in this case, including comments and whitespace.
16916 \end_layout
16917
16918 \begin_layout Itemize
16919 some unknown (e.g., user-defined) environments and commands
16920 \end_layout
16921
16922 \begin_layout Standard
16923 reLyX copies unknown commands, along with their arguments, verbatim into
16924  the LyX file.
16925  Also, if it sees a 
16926 \family typewriter
16927
16928 \backslash
16929 begin{foo}
16930 \family default
16931  where it doesn't recognize the 
16932 \begin_inset Quotes eld
16933 \end_inset
16934
16935 foo
16936 \begin_inset Quotes erd
16937 \end_inset
16938
16939  environment, it will copy verbatim until it sees 
16940 \family typewriter
16941
16942 \backslash
16943 end{foo}
16944 \family default
16945  (unless you use the 
16946 \series bold
16947 -r
16948 \series default
16949  option).
16950  Hopefully, then, most of these unknown commands won't cause reLyX to break;
16951  they'll merely require you to do some editing once you've loaded the file
16952  up in LyX.
16953   That should be less painful than editing either the 
16954 \family typewriter
16955 .tex
16956 \family default
16957  or the 
16958 \family typewriter
16959 .lyx
16960 \family default
16961  file using a text editor.
16962 \end_layout
16963
16964 \begin_layout Subsubsection
16965 What reLyX Handles Badly --- a.\InsetSpace ~
16966 k.\InsetSpace ~
16967 a.
16968  BUGS
16969 \begin_inset LatexCommand \label{sub:relyx-bugs}
16970
16971 \end_inset
16972
16973
16974 \end_layout
16975
16976 \begin_layout Standard
16977 Since reLyX is relatively new, it's got a number of problems.
16978   As it matures, these bugs will be squished.
16979  A number of bugs and missing features can be found listed on the LyX bug
16980  tracker, 
16981 \begin_inset LatexCommand \url[LyX Bugzilla]{http://bugzilla.lyx.org/}
16982
16983 \end_inset
16984
16985 .
16986 \end_layout
16987
16988 \begin_layout Standard
16989 If reLyX is choking on something, or LyX can't read it after reLyX translates
16990  it, the best thing to do is to put 
16991 \family typewriter
16992
16993 \backslash
16994 begin{reLyXskip}
16995 \family default
16996  before the offending text, and 
16997 \family typewriter
16998
16999 \backslash
17000 end{reLyXskip}
17001 \family default
17002  after it.
17003  I call this a 
17004 \begin_inset Quotes eld
17005 \end_inset
17006
17007 skip
17008 \begin_inset Quotes erd
17009 \end_inset
17010
17011  block.
17012  reLyX will copy this block exactly, in TeX mode.
17013  Then edit the resulting LyX file, and translate the unknown stuff by hand.
17014  The 
17015 \family typewriter
17016 reLyXskip
17017 \family default
17018  environment is magical; the 
17019 \family typewriter
17020
17021 \backslash
17022 begin
17023 \family default
17024  and 
17025 \family typewriter
17026
17027 \backslash
17028 end
17029 \family default
17030  commands will not be put into the LyX file.
17031 \end_layout
17032
17033 \begin_layout Itemize
17034 \begin_inset Quotes eld
17035 \end_inset
17036
17037 Exact
17038 \begin_inset Quotes erd
17039 \end_inset
17040
17041  copying of unknown environments and commands isn't quite exact.
17042  Specifically, newlines and comments may be lost.
17043  This will yield ugly LyX, but in almost all cases the output will be the
17044  same.
17045  However, certain parts of the file will be copied perfectly, including
17046  whitespace and comments.
17047  This includes: the LaTeX preamble, 
17048 \family typewriter
17049 verbatim
17050 \family default
17051  environments and 
17052 \family typewriter
17053
17054 \backslash
17055 verb
17056 \family default
17057  commands, and skip blocks.
17058 \end_layout
17059
17060 \begin_layout Itemize
17061 reLyX translates only a few options to the 
17062 \family typewriter
17063
17064 \backslash
17065 documentclass
17066 \family default
17067  command.
17068  (Specifically 1[012]pt, [letter|legal|executive|a4|a5|b5]paper, [one|two]side,
17069  landscape, and [one|two]column.) Other options are placed in the extra class
17070  options field in the 
17071 \family sans
17072 \bar under
17073 D
17074 \bar default
17075 ocument\SpecialChar \menuseparator
17076
17077 \bar under
17078 S
17079 \bar default
17080 ettings
17081 \family default
17082  dialog.
17083 \end_layout
17084
17085 \begin_deeper
17086 \begin_layout Standard
17087 More importantly, reLyX doesn't translate 
17088 \family typewriter
17089
17090 \backslash
17091 usepackage
17092 \family default
17093  commands, margin  commands, 
17094 \family typewriter
17095
17096 \backslash
17097 newcommand
17098 \family default
17099 s, or, in fact, anything else from the preamble.
17100  It simply copies them into the LaTeX preamble.
17101  If you have margin commands in your preamble, then the LyX file will generate
17102  the right margins.
17103  However, these margins will override any margins you set in the LyX 
17104 \family sans
17105 \bar under
17106 D
17107 \bar default
17108 ocument
17109 \bar under
17110 \SpecialChar \menuseparator
17111 S
17112 \bar default
17113 ettings
17114 \family default
17115  dialog.
17116  So you should remove the options from the preamble to be safe.
17117  The same goes for setting your language with babel, 
17118 \family typewriter
17119
17120 \backslash
17121 inputencoding
17122 \family default
17123
17124 \family typewriter
17125
17126 \backslash
17127 pagestyle
17128 \family default
17129 , etc.
17130 \end_layout
17131
17132 \end_deeper
17133 \begin_layout Itemize
17134 The foil class has a couple bugs.
17135  reLyX may do weird things with optional arguments to 
17136 \family typewriter
17137
17138 \backslash
17139 foilhead
17140 \family default
17141  commands.
17142  Also, it may handle 
17143 \family typewriter
17144
17145 \backslash
17146 begin{dinglist}
17147 \family default
17148  incorrectly (although the stuff in the environment should translate normally).
17149 \end_layout
17150
17151 \begin_layout Standard
17152 reLyX is hopefully rather robust.
17153  As mentioned above, it may not translate your file perfectly, but it shouldn't
17154  crash.
17155  If it does crash---and the problem is not one of those mentioned above
17156  or in the 
17157 \emph on
17158 BUGS
17159 \emph default
17160  file---see Section\InsetSpace ~
17161
17162 \begin_inset LatexCommand \ref{sub:relyx-bug-reports}
17163
17164 \end_inset
17165
17166 .
17167 \end_layout
17168
17169 \begin_layout Subsubsection
17170 What LyX Can't Handle
17171 \end_layout
17172
17173 \begin_layout Standard
17174 LyX itself is missing a couple features, such that even if reLyX translates
17175  things perfectly, LyX may still have trouble reading it.
17176  If you really need these features, you can export your final document as
17177  LaTeX, and put them back in.
17178  See 
17179 \emph on
17180 BUGS
17181 \emph default
17182  for more details on these bugs.
17183 \end_layout
17184
17185 \begin_layout Itemize
17186 For a number of commands, LyX does not support the optional argument.
17187  Examples include 
17188 \family typewriter
17189
17190 \backslash
17191 sqrt
17192 \family default
17193
17194 \family typewriter
17195
17196 \backslash
17197 chapter
17198 \family default
17199  (and other sectioning commands), and 
17200 \family typewriter
17201
17202 \backslash
17203
17204 \backslash
17205
17206 \family default
17207 .
17208  reLyX will automatically discard the optional arguments with a warning
17209  to stdout.
17210  LyX also ignores the width argument for the 
17211 \family typewriter
17212 thebibliography
17213 \family default
17214  environment.
17215 \end_layout
17216
17217 \begin_layout Itemize
17218 Centering (or right or left justifying) works on full paragraphs.
17219 \end_layout
17220
17221 \begin_layout Itemize
17222 LyX support for tables isn't perfect.
17223  For complicated tables, use a 
17224 \begin_inset Quotes eld
17225 \end_inset
17226
17227 skip
17228 \begin_inset Quotes erd
17229 \end_inset
17230
17231  block, so that they will be copied in TeX mode.
17232 \end_layout
17233
17234 \begin_layout Itemize
17235 The LyX math editor can't handle the AMS-LaTeX math environments align,
17236  split, etc.
17237  So those environments will be copied in TeX mode.
17238  You can change 
17239 \family typewriter
17240 equation*
17241 \family default
17242  environments to the exactly equivalent displaymath, and then they will
17243  be translated correctly.
17244 \end_layout
17245
17246 \begin_layout Subsection
17247 Examples
17248 \end_layout
17249
17250 \begin_layout Standard
17251
17252 \family typewriter
17253 reLyX -df -o 
17254 \begin_inset Quotes eld
17255 \end_inset
17256
17257 my/dir
17258 \begin_inset Quotes erd
17259 \end_inset
17260
17261  -r 
17262 \begin_inset Quotes eld
17263 \end_inset
17264
17265 myenv
17266 \begin_inset Quotes erd
17267 \end_inset
17268
17269  foo.tex > foo.debug
17270 \end_layout
17271
17272 \begin_layout Standard
17273 The above will create a file my/dir/foo.lyx from foo.tex, overwriting if necessary.
17274   When it finds a 
17275 \family typewriter
17276
17277 \backslash
17278 begin{myenv} ...
17279  
17280 \backslash
17281 end{myenv}
17282 \family default
17283  block, it will translate the stuff within the block, but copy the 
17284 \family typewriter
17285
17286 \backslash
17287 begin
17288 \family default
17289  and 
17290 \family typewriter
17291
17292 \backslash
17293 end
17294 \family default
17295  commands in TeX mode.
17296   Finally, I'm going to keep the temporary files around (they will also
17297  be in my/dir/) and output lots of debugging information into the file foo.debug.
17298 \end_layout
17299
17300 \begin_layout Subsection
17301 Notes
17302 \end_layout
17303
17304 \begin_layout Subsubsection
17305 Bug Reports
17306 \begin_inset LatexCommand \label{sub:relyx-bug-reports}
17307
17308 \end_inset
17309
17310
17311 \end_layout
17312
17313 \begin_layout Standard
17314 If reLyX is crashing or otherwise acting strangely---in ways other than
17315  those described in Section\InsetSpace ~
17316
17317 \begin_inset LatexCommand \ref{sub:relyx-bugs}
17318
17319 \end_inset
17320
17321  or the bug tracker---then please run reLyX
17322 \series bold
17323  -d
17324 \series default
17325 .
17326   That will allow you to figure out where in the reLyXing process it crashed.
17327  That, in turn, will allow you to write a better bug report, which will
17328  allow the developers to fix it more quickly and easily.
17329 \end_layout
17330
17331 \begin_layout Standard
17332 Bug reports should be sent to the LyX developers' mailing list.
17333  Its address is currently 
17334 \family typewriter
17335 lyx-devel@lists.lyx.org
17336 \family default
17337 .
17338  If you are running reLyX on a huge file, please do not send all of the
17339  output in your bug report.
17340  Just include the last ten or twenty lines of output, along with the piece
17341  of the LaTeX file it crashed on.
17342   Or, even better, attach a small but complete file which causes the same
17343  problem as your original file.
17344 \end_layout
17345
17346 \begin_layout Subsubsection
17347 Implementation Details:
17348 \end_layout
17349
17350 \begin_layout Standard
17351 reLyX makes several 
17352 \begin_inset Quotes eld
17353 \end_inset
17354
17355 passes
17356 \begin_inset Quotes erd
17357 \end_inset
17358
17359  in order to translate a TeX file.
17360  On each pass, it creates one or two files.
17361 \end_layout
17362
17363 \begin_layout Description
17364 Pass\InsetSpace ~
17365 0 \InsetSpace ~
17366
17367 \newline
17368 Before doing anything, read the syntax file (or files).
17369 \end_layout
17370
17371 \begin_layout Description
17372 Pass\InsetSpace ~
17373 1a \InsetSpace ~
17374
17375 \newline
17376 Split preamble (anything before a 
17377 \family typewriter
17378
17379 \backslash
17380 begin{document}
17381 \family default
17382  command) off the rest of the file.
17383  It saves the two pieces in separate files.
17384  This is necessary because there may be very strange stuff in a preamble.
17385  It also ignores anything after the 
17386 \family typewriter
17387
17388 \backslash
17389 end{document}
17390 \family default
17391 , on the assumption that it isn't LaTeX.
17392 \end_layout
17393
17394 \begin_layout Description
17395 Pass\InsetSpace ~
17396 1b \InsetSpace ~
17397
17398 \newline
17399 Translate the preamble.
17400  Currently, that just means translating the 
17401 \family typewriter
17402
17403 \backslash
17404 documentclass
17405 \family default
17406  command and copying the rest exactly into the LyX preamble.
17407 \end_layout
17408
17409 \begin_deeper
17410 \begin_layout Standard
17411 Once you know what class the document is, read the LyX layout file for that
17412  class.
17413 \end_layout
17414
17415 \end_deeper
17416 \begin_layout Description
17417 Pass\InsetSpace ~
17418 2 \InsetSpace ~
17419
17420 \newline
17421
17422 \begin_inset Quotes eld
17423 \end_inset
17424
17425 Clean
17426 \begin_inset Quotes erd
17427 \end_inset
17428
17429  the TeX file, generating slightly stricter LaTeX.
17430  This includes:
17431 \end_layout
17432
17433 \begin_deeper
17434 \begin_layout Itemize
17435 Change, e.g., 
17436 \family typewriter
17437 x^2
17438 \family default
17439  to the equivalent but clearer 
17440 \family typewriter
17441 x^{2}
17442 \end_layout
17443
17444 \begin_layout Itemize
17445 Removing optional arguments that LyX can't handle (e.g., from 
17446 \family typewriter
17447
17448 \backslash
17449 sqrt
17450 \family default
17451 )
17452 \end_layout
17453
17454 \begin_layout Itemize
17455 Changing 
17456 \family typewriter
17457 {
17458 \backslash
17459 em foo}
17460 \family default
17461  to 
17462 \family typewriter
17463
17464 \backslash
17465 emph{foo}
17466 \family default
17467 , etc.
17468  This is necessary because LyX always writes out the non-local forms anyway.
17469  This should very rarely make a difference.
17470 \end_layout
17471
17472 \end_deeper
17473 \begin_layout Description
17474 Pass\InsetSpace ~
17475 3 \InsetSpace ~
17476
17477 \newline
17478 Translate LaTeX text, commands, and environments to LyX.
17479 \end_layout
17480
17481 \begin_layout Description
17482 Pass\InsetSpace ~
17483 4 \InsetSpace ~
17484
17485 \newline
17486 Put the two pieces back together, and do some final tweaking, to generate
17487  the LyX file
17488 \end_layout
17489
17490 \begin_layout Standard
17491 If there are any 
17492 \family typewriter
17493
17494 \backslash
17495 input
17496 \family default
17497  or 
17498 \family typewriter
17499
17500 \backslash
17501 include
17502 \family default
17503  commands, reLyX will loop back to the beginning and translate those.
17504  It assumes that the included files are the same class as the main file,
17505  and that they have no preamble matter.
17506  (If you have an 
17507 \family typewriter
17508
17509 \backslash
17510 input
17511 \family default
17512  command in the preamble of a file, the command will be copied exactly into
17513  the LaTeX preamble portion of the LyX file, so the included file won't
17514  be translated.) So when translating included files, it skips passes 0 and
17515  1.
17516 \end_layout
17517
17518 \begin_layout Standard
17519 If reLyX doesn't find a file you wanted to include, it will give a warning,
17520  but will continue to translate any files it does find.
17521 \end_layout
17522
17523 \begin_layout Subsubsection
17524 Layout Files
17525 \end_layout
17526
17527 \begin_layout Standard
17528 reLyX reads a LyX layout file to know how to handle LaTeX environments and
17529  commands which get translated to LyX layouts.
17530  This file will include all 
17531 \begin_inset Quotes eld
17532 \end_inset
17533
17534 normal
17535 \begin_inset Quotes erd
17536 \end_inset
17537
17538  non-math environments (i.e., including quote and itemize, but not tabular,
17539  minipage, and some other fancy environments), and commands like 
17540 \family typewriter
17541
17542 \backslash
17543 section
17544 \family default
17545  and 
17546 \family typewriter
17547
17548 \backslash
17549 title
17550 \family default
17551 .
17552  If you want to reLyX a class that doesn't have an existing layout file,
17553  then you'll have to create a layout file.
17554  But you have to do this anyway, in order to LyX the file, since LyX depends
17555  on layout files to know how to display and process its files.
17556  Check the LyX documentation for help with this task (which can be hard
17557  or easy, depending on the class you want to create a layout file for.) If
17558  your class is quite similar to a class that has a layout file, then consider
17559  using the 
17560 \series bold
17561 -c
17562 \series default
17563  option.
17564 \end_layout
17565
17566 \begin_layout Subsubsection
17567 Syntax Files
17568 \begin_inset LatexCommand \label{sub:relyx-syntax}
17569
17570 \end_inset
17571
17572
17573 \end_layout
17574
17575 \begin_layout Standard
17576 reLyX always reads at least one syntax file, called the default syntax file.
17577  reLyX will read your personal syntax file if it exists; otherwise it will
17578  read the system-wide file.
17579  reLyX will read additional syntax files if you specify them with the 
17580 \series bold
17581 -s
17582 \series default
17583  option.
17584  (These extra files should have the same format as the default file, but
17585  will tend to be shorter, since they only have to specify extra commands
17586  not found in the default file.) A syntax file tells reLyX a few things.
17587 \end_layout
17588
17589 \begin_layout Standard
17590 First, it describes the syntax of each command, that is, how many required
17591  arguments and how many optional arguments the command takes.
17592  Knowing this makes it easier for reLyX to copy (in TeX mode) commands that
17593  it doesn't know how to translate.
17594  The syntax file simply has a command, followed by braces or brackets describing
17595  its arguments in the correct order.
17596  For example, a syntax file entry 
17597 \family typewriter
17598
17599 \backslash
17600 bibitem[]{}
17601 \family default
17602  means that the 
17603 \family typewriter
17604
17605 \backslash
17606 bibitem
17607 \family default
17608  command takes an optional argument followed by a required one, while the
17609  entry 
17610 \family typewriter
17611
17612 \backslash
17613 bf
17614 \family default
17615  means that the 
17616 \family typewriter
17617
17618 \backslash
17619 bf
17620 \family default
17621  command takes no arguments at all.
17622   When reLyX encounters a token that it doesn't know how to translate into
17623  LyX, it will copy the token---along with the correct number of arguments---exac
17624 tly.
17625   If the token is not in the syntax file, then reLyX just copies as many
17626  arguments as it finds.
17627   This means that it may copy too much.
17628  But since the user can specify additional syntax files, that shouldn't
17629  happen often.
17630 \end_layout
17631
17632 \begin_layout Standard
17633 Some commands that cannot be translated to LyX, like 
17634 \family typewriter
17635
17636 \backslash
17637 mbox
17638 \family default
17639 , have as one of their arguments regular LaTeX text.
17640  If the string 
17641 \begin_inset Quotes eld
17642 \end_inset
17643
17644 translate
17645 \begin_inset Quotes erd
17646 \end_inset
17647
17648  is put into an argument of an (untranslatable) command in the syntax file,
17649  then reLyX will translate that argument instead of copying it verbatim.
17650  So, for example, the default syntax file has 
17651 \family typewriter
17652
17653 \backslash
17654 raisebox{}[][]{translate}
17655 \family default
17656 .
17657  This means that the 
17658 \family typewriter
17659
17660 \backslash
17661 raisebox
17662 \family default
17663  command and the first argument (and optional arguments if they exist) are
17664  copied in TeX mode, but the last argument (which may contain math, complicated
17665  LaTeX, other untranslatable commands, etc.) will be translated into LyX.
17666  You can't use 
17667 \begin_inset Quotes eld
17668 \end_inset
17669
17670 translate
17671 \begin_inset Quotes erd
17672 \end_inset
17673
17674  on optional arguments.
17675 \end_layout
17676
17677 \begin_layout Standard
17678 User-defined syntax files are allowed to define new commands and their syntax,
17679  or override the number of arguments for a command given in the default
17680  syntax file.
17681  (E.g., if you're using a style that gives an extra argument to some command...)
17682  However, this will only be useful for commands copied in TeX mode.
17683  Commands which are actually translated by reLyX (like 
17684 \family typewriter
17685
17686 \backslash
17687 item
17688 \family default
17689 ) have their argument syntax hard-coded.
17690  The hard-coded commands are identified in the default syntax file.
17691 \end_layout
17692
17693 \begin_layout Standard
17694 Second, the syntax file describes any 
17695 \begin_inset Quotes eld
17696 \end_inset
17697
17698 regular environments
17699 \begin_inset Quotes erd
17700 \end_inset
17701
17702 .
17703   Usually, an entire unknown environment will be copied in TeX mode.
17704  If you define a regular environment 
17705 \begin_inset Quotes eld
17706 \end_inset
17707
17708 foo
17709 \begin_inset Quotes erd
17710 \end_inset
17711
17712 , though, then only the 
17713 \family typewriter
17714
17715 \backslash
17716 begin{foo}
17717 \family default
17718  and 
17719 \family typewriter
17720
17721 \backslash
17722 end{foo}
17723 \family default
17724  commands will be copied in TeX mode; the text within the environment will
17725  be treated (i.e., translated) by reLyX as regular LaTeX, rather than being
17726  copied into TeX mode.
17727  Don't try to declare 
17728 \family typewriter
17729 tabbing
17730 \family default
17731  and 
17732 \family typewriter
17733 picture
17734 \family default
17735  as regular environments, as the text within those environments will confuse
17736  reLyX; use this capability for new environments you create that have plain
17737  text or math or simple commands in them.
17738  You also can't declare unknown math environments (like 
17739 \family typewriter
17740 equation*
17741 \family default
17742 ) as regular environments, either, since the LyX math editor won't understand
17743  them.
17744  The names of regular environments appear, whitespace-separated, between
17745  
17746 \family typewriter
17747
17748 \backslash
17749 begin{reLyXre}
17750 \family default
17751  and 
17752 \family typewriter
17753
17754 \backslash
17755 end{reLyXre}
17756 \family default
17757  statements in the syntax file.
17758  (If you have a regular environment which you won't use very often, you
17759  can use the 
17760 \series bold
17761 -r
17762 \series default
17763  option rather than writing a syntax file.)
17764 \end_layout
17765
17766 \begin_layout Standard
17767 Third, the syntax file describes a math translation table.
17768  The LyX math editor doesn't support a few commands.
17769  For example, 
17770 \family typewriter
17771 _
17772 \family default
17773  is supported, but the equivalent 
17774 \family typewriter
17775
17776 \backslash
17777 sb
17778 \family default
17779  is not.
17780  Put any commands you'd like translate between 
17781 \family typewriter
17782
17783 \backslash
17784 begin{reLyXmt}
17785 \family default
17786  and 
17787 \family typewriter
17788
17789 \backslash
17790 end{reLyXmt}
17791 \family default
17792  statements.
17793  The statement 
17794 \begin_inset Quotes eld
17795 \end_inset
17796
17797
17798 \family typewriter
17799
17800 \backslash
17801 | {
17802 \backslash
17803 Vert}
17804 \family default
17805
17806 \begin_inset Quotes erd
17807 \end_inset
17808
17809  means that any 
17810 \family typewriter
17811
17812 \backslash
17813 |
17814 \family default
17815  in math mode will be converted to 
17816 \begin_inset Quotes eld
17817 \end_inset
17818
17819
17820 \family typewriter
17821
17822 \backslash
17823 Vert
17824 \family default
17825  
17826 \begin_inset Quotes erd
17827 \end_inset
17828
17829
17830 \family typewriter
17831  
17832 \family default
17833 (in cases where a token made up of a backslash and a non-letter is translated
17834  to something with letters at the end, a space is added by reLyX.
17835  That way, 
17836 \begin_inset Quotes eld
17837 \end_inset
17838
17839
17840 \family typewriter
17841
17842 \backslash
17843 |a
17844 \family default
17845
17846 \begin_inset Quotes erd
17847 \end_inset
17848
17849  is correctly translated to 
17850 \begin_inset Quotes eld
17851 \end_inset
17852
17853
17854 \family typewriter
17855
17856 \backslash
17857 Vert a
17858 \family default
17859
17860 \begin_inset Quotes erd
17861 \end_inset
17862
17863 ).
17864 \end_layout
17865
17866 \begin_layout Subsubsection
17867 Miscellaneous
17868 \end_layout
17869
17870 \begin_layout Standard
17871 You need Perl version 5.002 or later to run reLyX.
17872  <plug> If you don't have Perl, you should get it anyway (at 
17873 \begin_inset LatexCommand \url[Perl]{http://www.perl.com/}
17874
17875 \end_inset
17876
17877 ), because it's a really useful tool for pretty much anything.
17878  </plug>
17879 \end_layout
17880
17881 \begin_layout Subsection
17882 Diagnostics
17883 \end_layout
17884
17885 \begin_layout Standard
17886 reLyX should always explain why it crashes, if it crashes.
17887  Some diagnostics may be very technical, though, if they come from the guts
17888  of the code.
17889  reLyX gives much more information while running if you use the 
17890 \series bold
17891 -d
17892 \series default
17893  option, but you shouldn't need that unless something goes wrong.
17894 \end_layout
17895
17896 \begin_layout Standard
17897 When it's finished, reLyX will tell you if it finished successfully or died
17898  due to some error.
17899 \end_layout
17900
17901 \begin_layout Subsection
17902 Warnings
17903 \end_layout
17904
17905 \begin_layout Standard
17906 Always keep a copy of your original LaTeX files either under a different
17907  name or in a different directory.
17908  There are a couple ways in which using LyX could lead to overwriting the
17909  original LaTeX file.
17910 \end_layout
17911
17912 \begin_layout Standard
17913 If you import 
17914 \family typewriter
17915 foo.tex
17916 \family default
17917  to create 
17918 \family typewriter
17919 foo.lyx
17920 \family default
17921 , then edit 
17922 \family typewriter
17923 foo.lyx
17924 \family default
17925  and want to re-export it, note that it will overwrite the original 
17926 \family typewriter
17927 foo.tex
17928 \family default
17929 .
17930  (LyX will 
17931 \emph on
17932 not
17933 \emph default
17934  ask you if you want to overwrite it.)
17935 \end_layout
17936
17937 \begin_layout Standard
17938 If you have chosen not to use a temporary directory in the preferences,
17939  then LyX will create its temporary files in your current directory, which
17940  means your LaTeX original may be overwritten (without a warning from LyX)
17941  when you 
17942 \begin_inset Quotes eld
17943 \end_inset
17944
17945 view dvi
17946 \begin_inset Quotes erd
17947 \end_inset
17948
17949  or print the LyX document.
17950 \end_layout
17951
17952 \begin_layout Subsection
17953 Files
17954 \end_layout
17955
17956 \begin_layout Description
17957
17958 \family typewriter
17959 \series medium
17960 MY_LYXDIR/layouts/*.layout
17961 \family default
17962 \series default
17963  \InsetSpace ~
17964
17965 \newline
17966 User's personal layout files for document classes
17967 \end_layout
17968
17969 \begin_layout Description
17970
17971 \family typewriter
17972 \series medium
17973 MY_LYXDIR/reLyX/syntax.default
17974 \family default
17975 \series default
17976  \InsetSpace ~
17977
17978 \newline
17979 User's personal syntax file
17980 \end_layout
17981
17982 \begin_layout Description
17983
17984 \family typewriter
17985 \series medium
17986 LIBDIR/layouts/*.layout
17987 \family default
17988 \series default
17989  \InsetSpace ~
17990
17991 \newline
17992 System-wide layout files for document classes
17993 \end_layout
17994
17995 \begin_layout Description
17996
17997 \family typewriter
17998 \series medium
17999 LIBDIR/reLyX/syntax.default
18000 \family default
18001 \series default
18002  \InsetSpace ~
18003
18004 \newline
18005 System-wide LaTeX syntax file
18006 \end_layout
18007
18008 \begin_layout Standard
18009
18010 \family typewriter
18011 LIBDIR
18012 \family default
18013  is the system-wide LyX directory, usually something like 
18014 \family typewriter
18015 /usr/local/share/lyx/
18016 \family default
18017 .
18018  
18019 \family typewriter
18020 MY_LYXDIR
18021 \family default
18022  is your personal LyX directory, something like 
18023 \family typewriter
18024 .lyx/
18025 \family default
18026  in your home directory.
18027  You can see their actual values in the 
18028 \family sans
18029 \bar under
18030 H
18031 \bar default
18032 elp\SpecialChar \menuseparator
18033 About\InsetSpace ~
18034 Ly
18035 \bar under
18036 X
18037 \family default
18038 \bar default
18039  dialog.
18040 \end_layout
18041
18042 \begin_layout Subsection
18043 See also
18044 \end_layout
18045
18046 \begin_layout Standard
18047
18048 \shape italic
18049 lyx
18050 \shape default
18051 (1), 
18052 \shape italic
18053 latex
18054 \shape default
18055 (1)
18056 \end_layout
18057
18058 \begin_layout Subsection
18059 Authors
18060 \end_layout
18061
18062 \begin_layout Standard
18063 Copyright (c) 1998--9 
18064 \noun on
18065 Amir Karger
18066 \noun default
18067  (
18068 \family typewriter
18069 karger@voth.chem.utah.edu
18070 \family default
18071 )
18072 \end_layout
18073
18074 \begin_layout Standard
18075 Code contributors:
18076 \end_layout
18077
18078 \begin_layout Itemize
18079
18080 \noun on
18081 John Weiss
18082 \noun default
18083  wrote the original CleanTeX pass.
18084 \end_layout
18085
18086 \begin_layout Itemize
18087
18088 \noun on
18089 Etienne Grossmann
18090 \end_layout
18091
18092 \begin_layout Itemize
18093
18094 \noun on
18095 Jos\i \'{e}
18096  Ab\i \'{\i}
18097 lio Oliveira Matos
18098 \end_layout
18099
18100 \begin_layout Itemize
18101
18102 \noun on
18103 David Suarez de Lis
18104 \end_layout
18105
18106 \begin_layout Standard
18107 Other contributors:
18108 \end_layout
18109
18110 \begin_layout Itemize
18111
18112 \noun on
18113 Jean-Marc Lasgouttes
18114 \noun default
18115  worked on the wrapper script and offered lots of bug reports, advice, and
18116  feature suggestions.
18117 \end_layout
18118
18119 \begin_layout Itemize
18120
18121 \noun on
18122 Asger K.
18123  Alstrup Nielsen
18124 \noun default
18125  and 
18126 \noun on
18127 Marc Pavese
18128 \noun default
18129  provided advice.
18130 \end_layout
18131
18132 \begin_layout Itemize
18133 Various members of the LyX developers' and users' lists provided bug reports
18134  and feature suggestions.
18135 \end_layout
18136
18137 \begin_layout Standard
18138 reLyX uses a modified version the Perl TeX parser 
18139 \family typewriter
18140 Text::TeX
18141 \family default
18142  package written by 
18143 \noun on
18144 Ilya Zakharevich
18145 \noun default
18146  (
18147 \family typewriter
18148 ilya@math.ohio-state.edu
18149 \family default
18150 ), available on CPAN.
18151 \end_layout
18152
18153 \begin_layout Chapter
18154 LyX Features needing Extra Software
18155 \end_layout
18156
18157 \begin_layout Section
18158 Using LyX with SGML-Tools (aka LinuxDoc)
18159 \end_layout
18160
18161 \begin_layout Standard
18162 by 
18163 \noun on
18164 Paul Evans
18165 \end_layout
18166
18167 \begin_layout Subsection
18168 Overview
18169 \end_layout
18170
18171 \begin_layout Standard
18172 LinuxDoc is a document class available in LyX if you have the 
18173 \family typewriter
18174 sgml-tools
18175 \family default
18176  package installed.
18177  You can use it to produce documents in the so-called Standardized General
18178  Mark-up Language (SGML) in the particular format used by the Linux Documentatio
18179 n Project.
18180  That is obviously helpful if you are contributing to that project.
18181  You can use the SGML format with the 
18182 \family typewriter
18183 sgml-tools
18184 \family default
18185  package of scripts and programs (to produce other formats, including Latex,
18186  HTML, plain text, man pages and\SpecialChar \ldots{}
18187 ).
18188  You may therefore prefer to use this document class if you want to write
18189  something that can be easily translated into other formats.
18190 \end_layout
18191
18192 \begin_layout Standard
18193 You will find that LinuxDoc has fewer layout options than the other text
18194  classes in LyX.
18195  This is mainly so that the translations into other formats have a chance
18196  of making some sense.
18197  In this section we describe:
18198 \end_layout
18199
18200 \begin_layout Itemize
18201 how to setup and use a document in LinuxDoc
18202 \end_layout
18203
18204 \begin_layout Itemize
18205 how to use the tags in LinuxDoc to layout your document
18206 \end_layout
18207
18208 \begin_layout Itemize
18209 how to use the SGML packages to produce the various formats
18210 \end_layout
18211
18212 \begin_layout Itemize
18213 how to sort out some problems.
18214 \end_layout
18215
18216 \begin_layout Subsection
18217 Preparing and using a LinuxDoc document
18218 \end_layout
18219
18220 \begin_layout Subsubsection
18221 Getting started
18222 \end_layout
18223
18224 \begin_layout Standard
18225 You start by selecting the LinuxDoc class using the 
18226 \family sans
18227 \bar under
18228 D
18229 \bar default
18230 ocument\SpecialChar \menuseparator
18231
18232 \bar under
18233 S
18234 \bar default
18235 ettings
18236 \family default
18237  dialog.
18238
18239 \family sans
18240  
18241 \family default
18242 Then you will find that there are fewer paragraph environments than for
18243  most other classes.
18244  You can see them on the pull down box on the left of the tool bar.
18245  How to use them is described in section\InsetSpace ~
18246
18247 \begin_inset LatexCommand \ref{sec:sgmlparas}
18248
18249 \end_inset
18250
18251 .
18252 \end_layout
18253
18254 \begin_layout Standard
18255 You 
18256 \emph on
18257 must
18258 \emph default
18259  enter a title for the document, followed by an author, marking each with
18260  the appropriate paragraph environment.
18261  If you don't do this, you will get errors when you try to print the file.
18262  You can then enter the date and an abstract.
18263  The document proper must start with a Section paragraph environment rather
18264  than any standard layout.
18265 \end_layout
18266
18267 \begin_layout Standard
18268 After that you can prepare a document as usual using the available range
18269  of paragraph environments.
18270  See section\InsetSpace ~
18271
18272 \begin_inset LatexCommand \ref{sec:sgmlparas}
18273
18274 \end_inset
18275
18276  for the full list and their uses.
18277 \end_layout
18278
18279 \begin_layout Subsubsection
18280 Output from LinuxDoc
18281 \end_layout
18282
18283 \begin_layout Standard
18284 You can print and save these documents in the normal way.
18285  To use the other features of the SGML package you need to save your document
18286  as LinuxDoc; this is a version in which the document is translated into
18287  the basic sgml tags.
18288  Use
18289 \family sans
18290  
18291 \bar under
18292 F
18293 \bar default
18294 ile\SpecialChar \menuseparator
18295
18296 \bar under
18297 E
18298 \bar default
18299 xport\SpecialChar \menuseparator
18300 Linu
18301 \bar under
18302 x
18303 \bar default
18304 Doc.
18305
18306 \family default
18307  You will get a file with the same name and a 
18308 \family typewriter
18309 .sgml
18310 \family default
18311  extension rather than a 
18312 \family typewriter
18313 .lyx
18314 \family default
18315  extension.
18316  See\InsetSpace ~
18317
18318 \begin_inset LatexCommand \ref{sec:sgmloperate}
18319
18320 \end_inset
18321
18322  on how you than make use of this file.
18323 \end_layout
18324
18325 \begin_layout Subsection
18326 Using the paragraph environments in LinuxDoc
18327 \end_layout
18328
18329 \begin_layout Subsubsection
18330 The Structure of a LinuxDoc Document
18331 \end_layout
18332
18333 \begin_layout Standard
18334 There is a formal structure for LinuxDoc which limits how you can place
18335  tags.
18336  There are two parts to all documents: 
18337 \end_layout
18338
18339 \begin_layout Description
18340 Header: this is everything up to the first time you insert a Section layout
18341  marker.
18342  It can include title, author, date, abstract and ToC.
18343  You must include the first two.
18344 \end_layout
18345
18346 \begin_layout Description
18347 Body: from the beginning of the first section onwards.
18348  All other tags are allowed.
18349  
18350 \end_layout
18351
18352 \begin_layout Subsubsection
18353 The LinuxDoc Paragraph Environments
18354 \end_layout
18355
18356 \begin_layout Standard
18357 \begin_inset LatexCommand \label{sec:sgmlparas}
18358
18359 \end_inset
18360
18361 Here is a list of all the tags you will find listed on the layout bar in
18362  the order they come there, with some comments where the purpose or use
18363  is not obvious:
18364 \end_layout
18365
18366 \begin_layout Itemize
18367
18368 \family sans
18369 Standard:
18370 \family roman
18371  works as described in [cross reference]
18372 \end_layout
18373
18374 \begin_layout Itemize
18375
18376 \family sans
18377 Title
18378 \family default
18379 : This will appear at the top left of the document when printed, above a
18380  heavy horizontal rule, although you will not see this on the LyX screen.
18381 \end_layout
18382
18383 \begin_layout Itemize
18384
18385 \family sans
18386 Section, Subsection, Subsubsection, Paragraph and Subparagraph:
18387 \family default
18388  all do what you would expect and in the usual order.
18389  Whether they are numbered or not is controlled by the 
18390 \family sans
18391 Section\InsetSpace ~
18392 number\InsetSpace ~
18393 depth
18394 \family default
18395  setting.
18396  You cannot get the equivalent number free versions in any other way; there
18397  is no 
18398 \family sans
18399 Section*
18400 \family default
18401  or similar
18402 \end_layout
18403
18404 \begin_layout Itemize
18405
18406 \family sans
18407 Enumerate:
18408 \family default
18409  As usual this produces a numbered and indented list as described in the
18410  
18411 \emph on
18412 User's Guide
18413 \emph default
18414 .
18415 \end_layout
18416
18417 \begin_layout Itemize
18418
18419 \family sans
18420 Itemize: 
18421 \family roman
18422 Again much the same as in the other classes: see the 
18423 \emph on
18424 User's Guide
18425 \emph default
18426 .
18427 \end_layout
18428
18429 \begin_layout Itemize
18430
18431 \family sans
18432 Description
18433 \family default
18434 : As explained in the 
18435 \emph on
18436 User's Guide
18437 \emph default
18438 .
18439  Remember that if you want the bold element at the start of a description
18440  to be more than one word then you need to put protected spaces between
18441  the words.
18442  
18443 \end_layout
18444
18445 \begin_layout Itemize
18446
18447 \family sans
18448 Verbatim: 
18449 \family default
18450 As usual.
18451 \end_layout
18452
18453 \begin_layout Itemize
18454
18455 \family sans
18456 Code: similar to the Lyx-Code
18457 \family roman
18458  environment
18459 \end_layout
18460
18461 \begin_layout Itemize
18462
18463 \family sans
18464 Author
18465 \family default
18466 : Anything you mark with this will appear on the left of the heading of
18467  the document, under the heavy rule.
18468 \end_layout
18469
18470 \begin_layout Itemize
18471
18472 \family sans
18473 Date:
18474 \family default
18475  Anything you mark with this will appear on the right of the heading under
18476  the rule.
18477  You do not have to make this a date.
18478  Any text can be entered, e.\InsetSpace ~
18479 g.
18480  a version number.
18481 \end_layout
18482
18483 \begin_layout Itemize
18484
18485 \family sans
18486 Abstract
18487 \family default
18488 : You can use this to produce a free standing paragraph after the author
18489  and date, and before the first section.
18490  You are only allowed one such paragraph.
18491 \begin_inset Foot
18492 status collapsed
18493
18494 \begin_layout Standard
18495
18496 \emph on
18497 Author's note.
18498  
18499 \emph default
18500 This needs checking ---
18501 \emph on
18502 pe.
18503 \end_layout
18504
18505 \end_inset
18506
18507
18508 \end_layout
18509
18510 \begin_layout Itemize
18511
18512 \family sans
18513 Displaymath
18514 \family default
18515 :
18516 \begin_inset Foot
18517 status collapsed
18518
18519 \begin_layout Standard
18520
18521 \emph on
18522 Author's note: 
18523 \emph default
18524 I have not yet checked this ---
18525 \emph on
18526 pe.
18527 \end_layout
18528
18529 \end_inset
18530
18531
18532 \end_layout
18533
18534 \begin_layout Subsubsection
18535 Other document features
18536 \end_layout
18537
18538 \begin_layout Standard
18539 You can also use the 
18540 \family sans
18541 Layout 
18542 \family default
18543 menu to set fonts or to emphasis words.
18544  You can also use the table of contents as usual; see the corresponding
18545  section of the 
18546 \emph on
18547 User's Guide
18548 \emph default
18549 .
18550  Although you will find some some other features on the menus e.\InsetSpace ~
18551 g.
18552  inserting footnotes.
18553  There is some doubt about whether these will work correctly.
18554 \begin_inset Foot
18555 status collapsed
18556
18557 \begin_layout Standard
18558
18559 \emph on
18560 Author's note: 
18561 \emph default
18562 Again still checking to see whether this is my system
18563 \emph on
18564  ---pe.
18565 \end_layout
18566
18567 \end_inset
18568
18569
18570 \end_layout
18571
18572 \begin_layout Subsubsection
18573 Cross references and HTML 
18574 \end_layout
18575
18576 \begin_layout Standard
18577 On the
18578 \family sans
18579  Insert
18580 \family default
18581  menu you will find two new options relating to the inclusion of URL addresses.
18582  If you use either option you will find some highlighted TeX code inserted
18583  into your document in three separate blocks with spaces available between.
18584  The blocks will be:
18585 \end_layout
18586
18587 \begin_layout Quote
18588
18589 \family typewriter
18590
18591 \backslash
18592 htmlurl{
18593 \family default
18594  or 
18595 \family typewriter
18596
18597 \backslash
18598 url{
18599 \family roman
18600
18601 \hfill
18602 space
18603 \family default
18604  
18605 \family typewriter
18606
18607 \hfill
18608 }{
18609 \family roman
18610
18611 \hfill
18612 space
18613 \hfill
18614
18615 \family typewriter
18616 }
18617 \end_layout
18618
18619 \begin_layout Standard
18620 You insert a full HTML tag between the first and second blocks.
18621  This can be 
18622 \begin_inset LatexCommand \url{http://any.address}
18623
18624 \end_inset
18625
18626  or other valid tags such as 
18627 \begin_inset LatexCommand \url{mailto:me@my.address}
18628
18629 \end_inset
18630
18631
18632 \family typewriter
18633 .
18634 \family default
18635 Then y
18636 \family roman
18637 ou 
18638 \family default
18639 insert some description between the second and third blocks.
18640  The differences are:
18641 \end_layout
18642
18643 \begin_layout Itemize
18644
18645 \family sans
18646 URL:
18647 \family roman
18648  both the HTML tag and the description will appear in the document
18649 \end_layout
18650
18651 \begin_layout Itemize
18652
18653 \family sans
18654 HTML\InsetSpace ~
18655 URL: 
18656 \family roman
18657 only the description appears in the printed version
18658 \end_layout
18659
18660 \begin_layout Subsection
18661 Using the LinuxDoc Sgml scripts
18662 \begin_inset Note Note
18663 status collapsed
18664
18665 \begin_layout Standard
18666 This section is completely outdated.
18667 \end_layout
18668
18669 \end_inset
18670
18671
18672 \end_layout
18673
18674 \begin_layout Standard
18675 \begin_inset LatexCommand \label{sec:sgmloperate}
18676
18677 \end_inset
18678
18679 You can use LinuxDoc as a text class without any additional scripts or programs,
18680  but there is not much point in doing this.
18681  All you will get is a document that looks like a 
18682 \emph on
18683 Linux Documentation Project Howto
18684 \family sans
18685 \emph default
18686 .
18687  
18688 \family default
18689 To do the document translation you need to get and install the 
18690 \family typewriter
18691 sgml-tools-1.0.x.tar.gz 
18692 \family default
18693 (with 
18694 \begin_inset Formula $x\geq3$
18695 \end_inset
18696
18697 ) package from 
18698 \family roman
18699 the SGML-Tools WWW Page
18700 \family default
18701  at
18702 \end_layout
18703
18704 \begin_layout LyX-Code
18705
18706 \family roman
18707 \begin_inset LatexCommand \url{http://pobox.com/~cg/sgmltools}
18708
18709 \end_inset
18710
18711
18712 \family default
18713  
18714 \end_layout
18715
18716 \begin_layout Standard
18717 Alternatively, you can go to the 
18718 \family typewriter
18719 sunsite
18720 \family default
18721  archive at
18722 \begin_inset Foot
18723 status collapsed
18724
18725 \begin_layout Standard
18726 Note that, at the time of this writing (01/1998), version 1.0.3 of sgml-tools
18727  has not yet been made available at 
18728 \family typewriter
18729 sunsite
18730 \family default
18731 .
18732 \end_layout
18733
18734 \end_inset
18735
18736
18737 \end_layout
18738
18739 \begin_layout LyX-Code
18740
18741 \family roman
18742 \begin_inset LatexCommand \url{ftp://sunsite.unc.edu/pub/Linux/utils/text/sgml-tools-1.0.x.tar.gz}
18743
18744 \end_inset
18745
18746
18747 \end_layout
18748
18749 \begin_layout Standard
18750
18751 \family roman
18752 The
18753 \family default
18754  file 
18755 \family typewriter
18756 sgml-tools-1.0.x.tar.gz
18757 \family default
18758  contains everything that you need to write SGML documents and convert them
18759  to groff, LaTeX, HTML, GNU info, LyX, and RTF\SpecialChar \@.
18760
18761 \end_layout
18762
18763 \begin_layout Standard
18764 This package was renamed from 
18765 \family typewriter
18766 linuxdoc-sgml-1.5.tar.gz
18767 \family default
18768  in January 1997.
18769 \end_layout
18770
18771 \begin_layout Standard
18772 Follow the instructions in that package on how to install it and how to
18773  use it.
18774  All this has to be done outside of LyX, before you can use the 
18775 \family sans
18776 \bar under
18777 F
18778 \bar default
18779 ile\SpecialChar \menuseparator
18780
18781 \bar under
18782 E
18783 \bar default
18784 xport\SpecialChar \menuseparator
18785 as\InsetSpace ~
18786 LinuxDoc 
18787 \family roman
18788 option.
18789 \end_layout
18790
18791 \begin_layout Subsection
18792 Troubleshooting LinuxDoc
18793 \end_layout
18794
18795 \begin_layout Standard
18796 When you print or preview a LinuxDoc document some checking is done of the
18797  tags before LaTeX is run.
18798  Some errors are trapped here, especially those concerning the structure
18799  of the document.
18800  LyX may produce an error message, but not leave an error box in the document
18801  for you to open.
18802  You may have to look at the files directly to discover what is wrong.
18803  Most problems seem to come from the use of options that are not fully available
18804  in the text class.
18805 \end_layout
18806
18807 \begin_layout Section
18808 Checking TeX
18809 \end_layout
18810
18811 \begin_layout Standard
18812 by 
18813 \noun on
18814 Asger Alstrup
18815 \end_layout
18816
18817 \begin_layout Subsection
18818 Introduction
18819 \end_layout
18820
18821 \begin_layout Standard
18822 Under the 
18823 \family sans
18824 \bar under
18825 T
18826 \bar default
18827 ools
18828 \family default
18829  menu, you'll find a 
18830 \family sans
18831 \bar under
18832 C
18833 \bar default
18834 heck\InsetSpace ~
18835 TeX
18836 \family default
18837  command.
18838  This feature requires you to have the 
18839 \family typewriter
18840 chktex
18841 \family default
18842  program installed, and is grayed out if you don't have it.
18843  You can get it from your nearest CTAN mirror, or over the Web from 
18844 \begin_inset LatexCommand \url{http://www.ifi.uio.no/~jensthi/chktex/}
18845
18846 \end_inset
18847
18848 .
18849 \end_layout
18850
18851 \begin_layout Standard
18852 The 
18853 \family sans
18854 ChkTeX
18855 \family default
18856  package is a program that was written by 
18857 \noun on
18858 Jens T.
18859  Berger Thielemann
18860 \noun default
18861  in frustration because some constructs in LaTeX are sometimes non-intuitive,
18862  and easy to forget.
18863  The program runs over your LaTeX file and checks the integrity of the file,
18864  and flags some common errors.
18865  In other technical words, it is 
18866 \family typewriter
18867 Lint
18868 \family default
18869  for LaTeX.
18870 \end_layout
18871
18872 \begin_layout Standard
18873 Well, what is a syntax checker doing in LyX which is supposed to produce
18874  correct LaTeX anyways? The answer is simple: Just as 
18875 \family typewriter
18876 Lint
18877 \family default
18878  not only checks the 
18879 \emph on
18880 syntax
18881 \emph default
18882  of C programs, but also does 
18883 \emph on
18884 semantic
18885 \emph default
18886  checks for type-errors, 
18887 \family sans
18888 ChkTeX
18889 \family default
18890  catches some common 
18891 \emph on
18892 typographic
18893 \emph default
18894  errors, in addition to the syntactical ones.
18895  Specifically, 
18896 \family sans
18897 ChkTeX
18898 \family default
18899  is capable of detecting several common errors, such as
18900 \end_layout
18901
18902 \begin_layout Itemize
18903 Ellipsis detection:
18904 \newline
18905 Use \SpecialChar \ldots{}
18906  instead of ...
18907 \end_layout
18908
18909 \begin_layout Itemize
18910 No space in front of/after parenthesis:
18911 \newline
18912 ( wrong spacing )
18913 \end_layout
18914
18915 \begin_layout Itemize
18916 Enforcement of normal space after common abbreviations:
18917 \newline
18918 e.
18919  g.
18920  is too wide spacing.
18921 \end_layout
18922
18923 \begin_layout Itemize
18924 Enforcement of end-of-sentence space when the last sentence ends with a
18925  capital letter:
18926 \newline
18927 This is a TEST.
18928  And this is wrong spacing.
18929 \end_layout
18930
18931 \begin_layout Itemize
18932 Space in front of labels and similar commands:
18933 \newline
18934 The label should stick right
18935  up to the text to avoid falling to a wrong page.
18936  
18937 \begin_inset LatexCommand \label{sec:chktex}
18938
18939 \end_inset
18940
18941  
18942 \begin_inset Foot
18943 status collapsed
18944
18945 \begin_layout Standard
18946 This footnote is in danger of falling off to a wrong page
18947 \end_layout
18948
18949 \end_inset
18950
18951  The label is separated too much.
18952 \end_layout
18953
18954 \begin_layout Itemize
18955 Space in front of references, instead of hard spaces:
18956 \newline
18957 In you are in bad luck,
18958  the text will break right between the referenced text and reference number,
18959  and that's a pity.
18960  See section 
18961 \begin_inset LatexCommand \ref{sec:chktex}
18962
18963 \end_inset
18964
18965 .
18966 \end_layout
18967
18968 \begin_layout Itemize
18969 Use of 
18970 \begin_inset Quotes eld
18971 \end_inset
18972
18973 x
18974 \begin_inset Quotes erd
18975 \end_inset
18976
18977  instead of 
18978 \begin_inset Formula $\times$
18979 \end_inset
18980
18981  between numbers:
18982 \newline
18983 2x2 looks cheap compared to 
18984 \begin_inset Formula $2\times2$
18985 \end_inset
18986
18987 .
18988 \end_layout
18989
18990 \begin_layout Standard
18991 and more \SpecialChar \ldots{}
18992  It is an invaluable tool when you are 
18993 \begin_inset Quotes eld
18994 \end_inset
18995
18996 finishing up
18997 \begin_inset Quotes erd
18998 \end_inset
18999
19000  your document before printing, and you should run it right after the obligatory
19001  spelling check, and before you go fine tuning the typesetting.
19002 \end_layout
19003
19004 \begin_layout Subsection
19005 How to use it
19006 \end_layout
19007
19008 \begin_layout Standard
19009 If you have the program installed, usage is as simple as choosing 
19010 \family sans
19011 \bar under
19012 T
19013 \bar default
19014 ools\SpecialChar \menuseparator
19015
19016 \bar under
19017 C
19018 \bar default
19019 heck\InsetSpace ~
19020 TeX
19021 \family default
19022 .
19023  This will make LyX generate a LaTeX file of your document, start 
19024 \family sans
19025 ChkTeX
19026 \family default
19027  to check it, and then make LyX insert 
19028 \begin_inset Quotes eld
19029 \end_inset
19030
19031 error boxes
19032 \begin_inset Quotes erd
19033 \end_inset
19034
19035  with the warnings from 
19036 \family sans
19037 ChkTeX
19038 \family default
19039 , if there were any.
19040  The warnings will be placed close to the point of the mistake, and you
19041  can quickly find them by using the 
19042 \family sans
19043 \bar under
19044 N
19045 \bar default
19046 avigate\SpecialChar \menuseparator
19047
19048 \bar under
19049 E
19050 \bar default
19051 rror
19052 \family default
19053  menu item, or the shortcut key 
19054 \family sans
19055 C-g
19056 \family default
19057  from the default 
19058 \family typewriter
19059 cua
19060 \family default
19061  bind file.
19062  Open the error boxes by clicking on them with the mouse, or use the shortcut
19063  key 
19064 \family sans
19065 C-i
19066 \family default
19067  from 
19068 \family typewriter
19069 cua
19070 \family default
19071  bindings, or the corresponding 
19072 \family sans
19073 C-o
19074 \family default
19075  for the alternate 
19076 \family typewriter
19077 emacs
19078 \family default
19079  bind file.
19080  Read the warning and correct the mistake, if it is a mistake.
19081  If you have trouble understanding what the warning is about, you can safely
19082  ignore it.
19083  Remember that there is a hidden layer between the document on screen and
19084  the technical details in invoking 
19085 \family sans
19086 ChkTeX
19087 \family default
19088 , and this gap can make some warnings seem arcane or just right down plain
19089  silly.
19090 \end_layout
19091
19092 \begin_layout Standard
19093 This document is an excellent testing bed for the feature, and it should
19094  provide quite a few warnings for you to fiddle with.
19095  Since computers are only so smart, expect most of the warnings to be false
19096  alarms, though.
19097 \end_layout
19098
19099 \begin_layout Subsection
19100 How to fine tune it
19101 \end_layout
19102
19103 \begin_layout Standard
19104 Sometimes, you'll find that 
19105 \family sans
19106 ChkTeX
19107 \family default
19108  makes more noise than suits your mood.
19109  Then you can choose not to use it, wait until your mood changes, or try
19110  to customize 
19111 \family sans
19112 ChkTeX
19113 \family default
19114  to get better along with you.
19115  Another choice in the most desperate situations is to use 
19116 \family sans
19117 \bar under
19118 V
19119 \bar default
19120 iew\SpecialChar \menuseparator
19121
19122 \bar under
19123 R
19124 \bar default
19125 emove\InsetSpace ~
19126 All\InsetSpace ~
19127 Error\InsetSpace ~
19128 Boxes
19129 \family default
19130 , which will get rid of all warnings instantly.
19131 \end_layout
19132
19133 \begin_layout Standard
19134 Although 
19135 \family sans
19136 ChkTeX
19137 \family default
19138  
19139 \emph on
19140 is
19141 \emph default
19142  very configurable and extensible, you shouldn't expect to solve all problems
19143  with 
19144 \family sans
19145 ChkTeX
19146 \family default
19147  in LyX this way.
19148  Since LyX has to generate a somewhat special LaTeX file to be able to match
19149  the line numbers from the 
19150 \family sans
19151 ChkTeX
19152 \family default
19153  output
19154 \begin_inset Foot
19155 status collapsed
19156
19157 \begin_layout Standard
19158 You can inspect the specific output from 
19159 \family sans
19160 chktex
19161 \family default
19162  by using 
19163 \family sans
19164 Edit\SpecialChar \menuseparator
19165 View\InsetSpace ~
19166 LaTeX\InsetSpace ~
19167 Log
19168 \family default
19169  right after a 
19170 \family sans
19171 chktex
19172 \family default
19173  run.
19174 \end_layout
19175
19176 \end_inset
19177
19178  to the internal document structure, some of the warnings will not seen
19179  to appear correctly.
19180  There are two things you can do about this:
19181 \end_layout
19182
19183 \begin_layout Itemize
19184 Fine tune the 
19185 \family sans
19186 ChkTeX
19187 \family default
19188  invocation command line in 
19189 \family sans
19190 Preferences
19191 \family default
19192  (tabs 
19193 \family sans
19194 Outputs
19195 \family default
19196
19197 \family sans
19198 Misc
19199 \family default
19200 ), or the global 
19201 \family sans
19202 ChkTeX
19203 \family default
19204  installation configuration file (usually with the file 
19205 \family typewriter
19206 /usr/local/share/chktexrc
19207 \family default
19208 ).
19209  See below to learn what warnings can be enabled and disabled on the command
19210  line.
19211  
19212 \end_layout
19213
19214 \begin_layout Itemize
19215 Export your document as a raw LaTeX file using 
19216 \family sans
19217 \bar under
19218 F
19219 \bar default
19220 ile\SpecialChar \menuseparator
19221
19222 \bar under
19223 E
19224 \bar default
19225 xport\SpecialChar \menuseparator
19226
19227 \bar under
19228 L
19229 \bar default
19230 aTeX
19231 \family default
19232  and run 
19233 \family typewriter
19234 chktex
19235 \family default
19236  manually on that.
19237  Invoked in this way, it can be a hassle to find the corresponding place
19238  in the document inside LyX, but with a little patience, you should be able
19239  to do it.
19240 \end_layout
19241
19242 \begin_layout Standard
19243 Here follows the warning messages that can be enabled and disabled in 
19244 \family sans
19245 Preferences
19246 \family default
19247 .
19248  Use 
19249 \family typewriter
19250 -n#
19251 \family default
19252  to disable a warning, and 
19253 \family typewriter
19254 -w#
19255 \family default
19256  to enable a warning.
19257  The emphasized entries are disabled by default, because the default is
19258  "
19259 \family typewriter
19260 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19261 \family default
19262 ".
19263 \end_layout
19264
19265 \begin_layout Standard
19266 Notice that you should only use the options that enable and disable warnings,
19267  because LyX relies on some of the other command line parameters to be set
19268  in a specific way to have a chance to communicate with 
19269 \family typewriter
19270 chktex
19271 \family default
19272 .
19273 \end_layout
19274
19275 \begin_layout Enumerate
19276
19277 \size small
19278 \emph on
19279 Command terminated with space.
19280 \end_layout
19281
19282 \begin_layout Enumerate
19283
19284 \size small
19285 Non-breaking space (
19286 \begin_inset Quotes eld
19287 \end_inset
19288
19289
19290 \family typewriter
19291 ~
19292 \family default
19293
19294 \begin_inset Quotes erd
19295 \end_inset
19296
19297 ) should have been used.
19298 \end_layout
19299
19300 \begin_layout Enumerate
19301
19302 \size small
19303 \emph on
19304 You should enclose the previous parenthesis with 
19305 \begin_inset Quotes eld
19306 \end_inset
19307
19308
19309 \family typewriter
19310 {}
19311 \family default
19312
19313 \begin_inset Quotes erd
19314 \end_inset
19315
19316 .
19317 \end_layout
19318
19319 \begin_layout Enumerate
19320
19321 \size small
19322 Italic correction (
19323 \begin_inset Quotes eld
19324 \end_inset
19325
19326
19327 \family typewriter
19328
19329 \backslash
19330 /
19331 \family default
19332
19333 \begin_inset Quotes erd
19334 \end_inset
19335
19336 ) found in non-italic buffer.
19337 \end_layout
19338
19339 \begin_layout Enumerate
19340
19341 \size small
19342 Italic correction (
19343 \begin_inset Quotes eld
19344 \end_inset
19345
19346
19347 \family typewriter
19348
19349 \backslash
19350 /
19351 \family default
19352
19353 \begin_inset Quotes erd
19354 \end_inset
19355
19356 ) found more than once.
19357 \end_layout
19358
19359 \begin_layout Enumerate
19360
19361 \size small
19362 \emph on
19363 No italic correction (
19364 \begin_inset Quotes eld
19365 \end_inset
19366
19367
19368 \family typewriter
19369
19370 \backslash
19371 /
19372 \family default
19373
19374 \begin_inset Quotes erd
19375 \end_inset
19376
19377 ) found.
19378 \end_layout
19379
19380 \begin_layout Enumerate
19381
19382 \size small
19383 Accent command 
19384 \begin_inset Quotes eld
19385 \end_inset
19386
19387
19388 \family typewriter
19389 cmd
19390 \family default
19391
19392 \begin_inset Quotes erd
19393 \end_inset
19394
19395  needs use of 
19396 \begin_inset Quotes eld
19397 \end_inset
19398
19399
19400 \family typewriter
19401 cmd
19402 \family default
19403
19404 \begin_inset Quotes erd
19405 \end_inset
19406
19407 .
19408 \end_layout
19409
19410 \begin_layout Enumerate
19411
19412 \size small
19413 Wrong length of dash may have been used.
19414 \end_layout
19415
19416 \begin_layout Enumerate
19417
19418 \size small
19419 \emph on
19420 \begin_inset Quotes eld
19421 \end_inset
19422
19423
19424 \family typewriter
19425 %s
19426 \family default
19427
19428 \begin_inset Quotes erd
19429 \end_inset
19430
19431  expected, found 
19432 \begin_inset Quotes eld
19433 \end_inset
19434
19435
19436 \family typewriter
19437 %s
19438 \family default
19439
19440 \begin_inset Quotes erd
19441 \end_inset
19442
19443 .
19444 \end_layout
19445
19446 \begin_layout Enumerate
19447
19448 \size small
19449 Solo 
19450 \begin_inset Quotes eld
19451 \end_inset
19452
19453
19454 \family typewriter
19455 %s
19456 \family default
19457
19458 \begin_inset Quotes erd
19459 \end_inset
19460
19461  found.
19462 \end_layout
19463
19464 \begin_layout Enumerate
19465
19466 \size small
19467 You should use 
19468 \begin_inset Quotes eld
19469 \end_inset
19470
19471
19472 \family typewriter
19473 %s
19474 \family default
19475
19476 \begin_inset Quotes erd
19477 \end_inset
19478
19479  to achieve an ellipsis.
19480 \end_layout
19481
19482 \begin_layout Enumerate
19483
19484 \size small
19485 Inter-word spacing (
19486 \begin_inset Quotes eld
19487 \end_inset
19488
19489
19490 \family typewriter
19491
19492 \backslash
19493  
19494 \family default
19495
19496 \begin_inset Quotes eld
19497 \end_inset
19498
19499 ) should perhaps be used.
19500 \end_layout
19501
19502 \begin_layout Enumerate
19503
19504 \size small
19505 Inter-sentence spacing (
19506 \begin_inset Quotes eld
19507 \end_inset
19508
19509
19510 \family typewriter
19511
19512 \backslash
19513 @
19514 \family default
19515
19516 \begin_inset Quotes erd
19517 \end_inset
19518
19519 ) should perhaps be used.
19520 \end_layout
19521
19522 \begin_layout Enumerate
19523
19524 \size small
19525 Could not find argument for command.
19526 \end_layout
19527
19528 \begin_layout Enumerate
19529
19530 \size small
19531 No match found for 
19532 \begin_inset Quotes eld
19533 \end_inset
19534
19535
19536 \family typewriter
19537 %s
19538 \family default
19539
19540 \begin_inset Quotes erd
19541 \end_inset
19542
19543 .
19544 \end_layout
19545
19546 \begin_layout Enumerate
19547
19548 \size small
19549 Math mode still on at end of LaTeX file.
19550 \end_layout
19551
19552 \begin_layout Enumerate
19553
19554 \size small
19555 Number of 
19556 \begin_inset Quotes eld
19557 \end_inset
19558
19559
19560 \family typewriter
19561 char
19562 \family default
19563
19564 \begin_inset Quotes erd
19565 \end_inset
19566
19567  doesn't match the number of 
19568 \begin_inset Quotes eld
19569 \end_inset
19570
19571
19572 \family typewriter
19573 char
19574 \family default
19575
19576 \begin_inset Quotes erd
19577 \end_inset
19578
19579 .
19580 \end_layout
19581
19582 \begin_layout Enumerate
19583
19584 \size small
19585 You should use either 
19586 \family typewriter
19587
19588 \begin_inset Quotes eld
19589 \end_inset
19590
19591
19592 \family default
19593  or 
19594 \family typewriter
19595
19596 \begin_inset Quotes erd
19597 \end_inset
19598
19599
19600 \family default
19601  as an alternative to 
19602 \begin_inset Quotes eld
19603 \end_inset
19604
19605
19606 \family typewriter
19607 "
19608 \family default
19609
19610 \begin_inset Quotes erd
19611 \end_inset
19612
19613 .
19614 \end_layout
19615
19616 \begin_layout Enumerate
19617
19618 \size small
19619 You should use "
19620 \family typewriter
19621 '
19622 \family default
19623 " (ASCII 39) instead of "
19624 \family typewriter
19625 ´
19626 \family default
19627 " (ASCII 180).
19628 \end_layout
19629
19630 \begin_layout Enumerate
19631
19632 \size small
19633 User-specified pattern found.
19634 \end_layout
19635
19636 \begin_layout Enumerate
19637
19638 \size small
19639 This command might not be intended.
19640 \end_layout
19641
19642 \begin_layout Enumerate
19643
19644 \size small
19645 \emph on
19646 Comment displayed.
19647 \end_layout
19648
19649 \begin_layout Enumerate
19650
19651 \size small
19652 Either 
19653 \family typewriter
19654 ''
19655 \backslash
19656 ,'
19657 \family default
19658  or 
19659 \family typewriter
19660 '
19661 \backslash
19662 ,''
19663 \family default
19664  will look better.
19665 \end_layout
19666
19667 \begin_layout Enumerate
19668
19669 \size small
19670 Delete this space to maintain correct page references.
19671 \end_layout
19672
19673 \begin_layout Enumerate
19674
19675 \size small
19676 \emph on
19677 You might wish to put this between a pair of 
19678 \begin_inset Quotes eld
19679 \end_inset
19680
19681
19682 \family typewriter
19683 {}
19684 \family default
19685
19686 \begin_inset Quotes erd
19687 \end_inset
19688
19689 .
19690 \end_layout
19691
19692 \begin_layout Enumerate
19693
19694 \size small
19695 You ought to remove spaces in front of punctuation.
19696 \end_layout
19697
19698 \begin_layout Enumerate
19699
19700 \size small
19701 Could not execute LaTeX command.
19702 \end_layout
19703
19704 \begin_layout Enumerate
19705
19706 \size small
19707 Don't use 
19708 \family typewriter
19709
19710 \backslash
19711 /
19712 \family default
19713  in front of small punctuation.
19714 \end_layout
19715
19716 \begin_layout Enumerate
19717
19718 \family typewriter
19719 \size small
19720 $
19721 \backslash
19722 times$
19723 \family default
19724  may look prettier here.
19725 \end_layout
19726
19727 \begin_layout Enumerate
19728
19729 \size small
19730 \emph on
19731 Multiple spaces detected in output.
19732 \end_layout
19733
19734 \begin_layout Enumerate
19735
19736 \size small
19737 This text may be ignored.
19738 \end_layout
19739
19740 \begin_layout Enumerate
19741
19742 \size small
19743 Use 
19744 \family typewriter
19745
19746 \begin_inset Quotes eld
19747 \end_inset
19748
19749
19750 \family default
19751  to begin quotation, not 
19752 \family typewriter
19753 '
19754 \family default
19755 .
19756 \end_layout
19757
19758 \begin_layout Enumerate
19759
19760 \size small
19761 Use 
19762 \family typewriter
19763 '
19764 \family default
19765  to end quotation, not 
19766 \family typewriter
19767
19768 \begin_inset Quotes eld
19769 \end_inset
19770
19771
19772 \family default
19773 .
19774 \end_layout
19775
19776 \begin_layout Enumerate
19777
19778 \size small
19779 Don't mix quotes.
19780 \end_layout
19781
19782 \begin_layout Enumerate
19783
19784 \size small
19785 You should perhaps use 
19786 \begin_inset Quotes eld
19787 \end_inset
19788
19789
19790 \family typewriter
19791 cmd
19792 \family default
19793
19794 \begin_inset Quotes erd
19795 \end_inset
19796
19797  instead.
19798 \end_layout
19799
19800 \begin_layout Enumerate
19801
19802 \size small
19803 You should put a space in front of/after parenthesis.
19804 \end_layout
19805
19806 \begin_layout Enumerate
19807
19808 \size small
19809 You should avoid spaces in front of/after parenthesis.
19810 \end_layout
19811
19812 \begin_layout Enumerate
19813
19814 \size small
19815 \emph on
19816 You should not use punctuation in front of/after quotes.
19817 \end_layout
19818
19819 \begin_layout Enumerate
19820
19821 \size small
19822 Double space found.
19823 \end_layout
19824
19825 \begin_layout Enumerate
19826
19827 \size small
19828 You should put punctuation outside inner/inside display math mode.
19829 \end_layout
19830
19831 \begin_layout Enumerate
19832
19833 \size small
19834 You ought to not use primitive TeX in LaTeX code.
19835 \end_layout
19836
19837 \begin_layout Enumerate
19838
19839 \size small
19840 You should remove spaces in front of 
19841 \begin_inset Quotes eld
19842 \end_inset
19843
19844
19845 \family typewriter
19846 %s
19847 \family default
19848
19849 \begin_inset Quotes erd
19850 \end_inset
19851
19852
19853 \end_layout
19854
19855 \begin_layout Enumerate
19856
19857 \size small
19858 \begin_inset Quotes eld
19859 \end_inset
19860
19861
19862 \family typewriter
19863 %s
19864 \family default
19865
19866 \begin_inset Quotes erd
19867 \end_inset
19868
19869  is normally not followed by 
19870 \begin_inset Quotes eld
19871 \end_inset
19872
19873
19874 \family typewriter
19875 %c
19876 \family default
19877
19878 \begin_inset Quotes erd
19879 \end_inset
19880
19881 .
19882 \end_layout
19883
19884 \begin_layout Standard
19885 In later versions of LyX, we hope to provide a more complete interface to
19886  this tool (and it's smaller cousin 
19887 \family typewriter
19888 lacheck
19889 \family default
19890 ) to exploit the full power of it.
19891  But it's not exactly useless as it is now: go try it on one of your existing
19892  documents of a certain length and be surprised.
19893 \end_layout
19894
19895 \begin_layout Section
19896 Version Control in LyX
19897 \end_layout
19898
19899 \begin_layout Standard
19900 by
19901 \noun on
19902  Lars Gullik Bjønnes
19903 \end_layout
19904
19905 \begin_layout Subsection
19906 Introduction
19907 \end_layout
19908
19909 \begin_layout Standard
19910 A friend of mine wanted to try LyX for a group project.
19911  When he didn't find support for version control or file locking, he dropped
19912  it.
19913  This angered me a bit, so I thought that I should at least make support
19914  for RCS (with the possibility of CVS and/or SCCS as a future improvement.)
19915  This has now been done.
19916  LyX now supports some of the most basic RCS commands.
19917  If you need to something a bit more sophisticated you will have to do that
19918  manually in an xterm.
19919 \end_layout
19920
19921 \begin_layout Standard
19922 Before you begin to use the version control features in LyX, you should
19923  read 
19924 \begin_inset Quotes eld
19925 \end_inset
19926
19927 rcsintro
19928 \begin_inset Quotes erd
19929 \end_inset
19930
19931  (a man file, read it with 
19932 \family typewriter
19933 man rcsintro
19934 \family default
19935 ).
19936  This file describes all the basic features of RCS.
19937  You should especially notice the comment about a RCS directory, and the
19938  notion of a master RCS file (the file ending in 
19939 \family typewriter
19940 ,v
19941 \family default
19942 ).
19943 \end_layout
19944
19945 \begin_layout Standard
19946 The implementation in LyX assumes a recent version of the GNU RCS package---no
19947  guarantees are made for older versions.
19948 \end_layout
19949
19950 \begin_layout Subsection
19951 RCS commands in LyX
19952 \end_layout
19953
19954 \begin_layout Standard
19955 The following sections describe the RCS commands supported by LyX.
19956  You can find them in the 
19957 \family sans
19958 \bar under
19959 F
19960 \bar default
19961 ile\SpecialChar \menuseparator
19962
19963 \bar under
19964 V
19965 \bar default
19966 ersion\InsetSpace ~
19967 Control
19968 \family default
19969  submenu.
19970 \end_layout
19971
19972 \begin_layout Subsubsection
19973
19974 \family sans
19975 Register
19976 \end_layout
19977
19978 \begin_layout Standard
19979 If your document is not under revision control, this is the only item shown
19980  in the menu.
19981  And if it is under revision control, the 
19982 \family sans
19983 \bar under
19984 R
19985 \bar default
19986 egister
19987 \family default
19988  item is grayed out.
19989  
19990 \end_layout
19991
19992 \begin_layout Standard
19993 This command registers your document with RCS\SpecialChar \@.
19994  You are asked interactively
19995  to supply an initial description of the document.
19996  The document is now set in Read-Only mode and you have to 
19997 \family sans
19998 Check\InsetSpace ~
19999 Out\InsetSpace ~
20000 For\InsetSpace ~
20001 Edit
20002 \family default
20003 , before making any changes to it.
20004  A document under revision control has a 
20005 \begin_inset Quotes eld
20006 \end_inset
20007
20008 [RCS:<version> <locker>]
20009 \begin_inset Quotes erd
20010 \end_inset
20011
20012  item tagged to the filename in the minibuffer.
20013 \end_layout
20014
20015 \begin_layout Standard
20016 RCS command that is run: 
20017 \family typewriter
20018 ci -q -u -i -t-"<initial description>" <file-name>
20019 \end_layout
20020
20021 \begin_layout Standard
20022 Read 
20023 \family typewriter
20024 man ci
20025 \family default
20026  to understand the switches.
20027  
20028 \end_layout
20029
20030 \begin_layout Subsubsection
20031
20032 \family sans
20033 Check In Changes
20034 \end_layout
20035
20036 \begin_layout Standard
20037 When you are finished editing a file, you check in your changes.
20038  When you do this, you are asked for a description of the changes.
20039  This is stored in the history log.
20040  The version number is bumped, your changes are applied to the master RCS
20041  file, the document is unlocked and set to Read-Only mode.
20042  
20043 \end_layout
20044
20045 \begin_layout Standard
20046 RCS command: 
20047 \family typewriter
20048 ci -q -u -m"<description>" <file-name>
20049 \end_layout
20050
20051 \begin_layout Subsubsection
20052
20053 \family sans
20054 Check Out For Edit
20055 \end_layout
20056
20057 \begin_layout Standard
20058 By doing this you lock the document so that only you can edit it.
20059  This will also make the document Read-Write only for you.
20060  You will usually continue editing for a while and when you are finished
20061  you check in your changes.
20062  The status line is changed to reflect that you have locked the file.
20063  
20064 \end_layout
20065
20066 \begin_layout Standard
20067 RCS command: 
20068 \family typewriter
20069 co -q -l <file-name>
20070 \end_layout
20071
20072 \begin_layout Subsubsection
20073
20074 \family sans
20075 Revert To Last Version
20076 \end_layout
20077
20078 \begin_layout Standard
20079 This will discard all changes made to the document since the last check
20080  in.
20081  You get a warning before changes are discarded.
20082 \end_layout
20083
20084 \begin_layout Standard
20085 RCS command: 
20086 \family typewriter
20087 co -f -u<version> <file-name>
20088 \end_layout
20089
20090 \begin_layout Subsubsection
20091
20092 \family sans
20093 Undo Last Checkin
20094 \end_layout
20095
20096 \begin_layout Standard
20097 This makes as if the last check in never happened.
20098  No changes are made to the document loaded into LyX, but the last version
20099  is removed from the master RCS file.
20100  
20101 \end_layout
20102
20103 \begin_layout Standard
20104 RCS command: 
20105 \family typewriter
20106 rcs -o<version> <file-name>
20107 \end_layout
20108
20109 \begin_layout Subsubsection
20110
20111 \family sans
20112 Show History
20113 \end_layout
20114
20115 \begin_layout Standard
20116 This show the complete history of the RCS document.
20117  The output of 
20118 \family typewriter
20119 rlog <file-name>
20120 \family default
20121  is shown in a browser.
20122  See 
20123 \family typewriter
20124 man rlog
20125 \family default
20126  for more info.
20127 \end_layout
20128
20129 \begin_layout Section
20130 Literate Programming
20131 \end_layout
20132
20133 \begin_layout Standard
20134 Updated by 
20135 \noun on
20136 Kayvan Sylvan 
20137 \noun default
20138 (kayvan@sylvan.com)
20139 \noun on
20140
20141 \noun default
20142 original documentation written by 
20143 \noun on
20144 Edmar Wienskoski Jr.
20145
20146 \noun default
20147  (edmar-w-jr@technologist.com)
20148 \end_layout
20149
20150 \begin_layout Subsection
20151 Introduction
20152 \end_layout
20153
20154 \begin_layout Standard
20155 The main purpose of this documentation is to show you how to use LyX for
20156  literate programming.
20157  Where it is assumed that you are familiar with this programming technique,
20158  and know what 
20159 \begin_inset Quotes eld
20160 \end_inset
20161
20162 tangling
20163 \begin_inset Quotes erd
20164 \end_inset
20165
20166  and 
20167 \begin_inset Quotes eld
20168 \end_inset
20169
20170 weaving
20171 \begin_inset Quotes erd
20172 \end_inset
20173
20174  means.
20175  If that is not the case, please follow the web links provided in the following
20176  sections.
20177  There is a lot of good documentation out there covering old development
20178  history to the latest tools tips.
20179 \end_layout
20180
20181 \begin_layout Standard
20182 It is also assumed that you are familiar with LyX itself to a point that
20183  you are comfortable changing your LyX preferences, and X resources file.
20184  If that is not the case please refer to other LyX documentation to cover
20185  your specific needs.
20186 \end_layout
20187
20188 \begin_layout Subsection
20189 Literate Programming
20190 \end_layout
20191
20192 \begin_layout Standard
20193 From the Literate Programming FAQ: 
20194 \end_layout
20195
20196 \begin_layout Quotation
20197 Literate programming is the combination of documentation and source together
20198  in a fashion suited for reading by human beings.
20199  In fact, literate programs should be enjoyable reading, even inviting!
20200  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
20201  and documentation in a single file.
20202  Literate programming tools then parse the file to produce either readable
20203  documentation or compilable source.
20204  The WEB style of literate programming was created by D.E.
20205  Knuth during the development of his TeX typesetting software.
20206  
20207 \end_layout
20208
20209 \begin_layout Standard
20210 Another excerpt says:
20211 \end_layout
20212
20213 \begin_layout Quotation
20214
20215 \emph on
20216 How is literate programming different from verbose commenting?
20217 \end_layout
20218
20219 \begin_layout Quotation
20220 There are three distinguishing characteristics.
20221  In order of importance, they are: 
20222 \end_layout
20223
20224 \begin_deeper
20225 \begin_layout Itemize
20226 flexible order of elaboration 
20227 \end_layout
20228
20229 \begin_layout Itemize
20230 automatic support for browsing 
20231 \end_layout
20232
20233 \begin_layout Itemize
20234 typeset documentation, especially diagrams and mathematics 
20235 \end_layout
20236
20237 \end_deeper
20238 \begin_layout Standard
20239 Now that I sparked your curiosity, take a look in the references.
20240 \end_layout
20241
20242 \begin_layout Subsubsection
20243 References
20244 \end_layout
20245
20246 \begin_layout Standard
20247 The complete Literate Programming FAQ can be found at:
20248 \end_layout
20249
20250 \begin_layout Quote
20251 \begin_inset LatexCommand \url[Literate Programming FAQ]{http://shelob.ce.ttu.edu/daves/lpfaq/faq.html}
20252
20253 \end_inset
20254
20255
20256 \end_layout
20257
20258 \begin_layout Standard
20259 The FAQ lists 23 (twenty three!) different literate programming tools.
20260  Where some are specialized or 
20261 \begin_inset Quotes eld
20262 \end_inset
20263
20264 tailored
20265 \begin_inset Quotes erd
20266 \end_inset
20267
20268  for particular programming languages, while other have general scope.
20269  I selected 
20270 \noun on
20271 Noweb
20272 \noun default
20273  for my own use for several reasons:
20274 \end_layout
20275
20276 \begin_layout Itemize
20277 It can generate the documentation either in latex or html.
20278 \end_layout
20279
20280 \begin_layout Itemize
20281 It has a open architecture, i.e., it is easy to plug in new filters and to
20282  perform special processing that you may need.
20283  
20284 \end_layout
20285
20286 \begin_layout Itemize
20287 There is a good selection of filters available already (the html is one
20288  of them).
20289 \end_layout
20290
20291 \begin_layout Itemize
20292 It is free.
20293 \end_layout
20294
20295 \begin_layout Standard
20296 The Noweb web page can be found at: 
20297 \end_layout
20298
20299 \begin_layout Quote
20300 \begin_inset LatexCommand \url[Noweb home page]{http://www.cs.virginia.edu/~nr/noweb/}
20301
20302 \end_inset
20303
20304
20305 \end_layout
20306
20307 \begin_layout Standard
20308 Starting from there you can reach many other interesting links and even
20309  some literate program examples.
20310 \end_layout
20311
20312 \begin_layout Subsection
20313 LyX and Literate Programming
20314 \end_layout
20315
20316 \begin_layout Standard
20317 The LyX support for Literate Programming is provided by using the generic
20318  LyX convertors mechanism.
20319  This support is provided in a 
20320 \begin_inset Quotes eld
20321 \end_inset
20322
20323 Noweb independent
20324 \begin_inset Quotes erd
20325 \end_inset
20326
20327  way, i.e., you will be able to use this new LyX feature with some other literate
20328  programming tool of your choice by just changing your LyX preferences.
20329 \end_layout
20330
20331 \begin_layout Subsubsection
20332 Generating documents and code (weaving and tangling)
20333 \end_layout
20334
20335 \begin_layout Paragraph
20336 Selecting the document class
20337 \end_layout
20338
20339 \begin_layout Standard
20340 If you have installed Noweb and LyX successfully, whenever you open a new
20341  document or try to change the document class of an existing one, you will
20342  find that there are three new document classes available:
20343 \end_layout
20344
20345 \begin_layout Itemize
20346 Article (Noweb)
20347 \end_layout
20348
20349 \begin_layout Itemize
20350 Book (Noweb)
20351 \end_layout
20352
20353 \begin_layout Itemize
20354 Report (Noweb)
20355 \end_layout
20356
20357 \begin_layout Standard
20358 You must select one of them to create your literate documents from.
20359  
20360 \end_layout
20361
20362 \begin_layout Standard
20363 Note that literate documents are not limited to these three classes.
20364  New classes can be generated from other styles like letter or in combination
20365  with other class variations like Article (AMS).
20366  If you have special needs that cannot be covered by one of the existing
20367  classes, let the LyX developers list (lyx-devel@lists.lyx.org) know and we
20368  will arrange to insert a new entry, or teach you how to do it.
20369 \begin_inset Foot
20370 status collapsed
20371
20372 \begin_layout Standard
20373 It is very simple, it involves the creation of a file with four lines, and
20374  re-running of the auto configuration.
20375 \end_layout
20376
20377 \end_inset
20378
20379  Moreover, if you use a literate tool other than Noweb you may need to create
20380  a new set of document classes for it.
20381 \end_layout
20382
20383 \begin_layout Paragraph
20384 Typing code in
20385 \end_layout
20386
20387 \begin_layout Standard
20388 LyX enables you to write code with a layout named 
20389 \noun on
20390 Scrap
20391 \noun default
20392 .
20393 \begin_inset Foot
20394 status collapsed
20395
20396 \begin_layout Standard
20397 The equivalent Noweb term is 
20398 \begin_inset Quotes eld
20399 \end_inset
20400
20401 Chunk
20402 \begin_inset Quotes erd
20403 \end_inset
20404
20405 .
20406  For historical reasons, I got used to the term 
20407 \begin_inset Quotes eld
20408 \end_inset
20409
20410 scrap
20411 \begin_inset Quotes erd
20412 \end_inset
20413
20414  introduced by other literate tool named Nuweb, which I used for many years
20415  before rendering myself to Noweb.
20416 \end_layout
20417
20418 \end_inset
20419
20420  Noweb delimits scraps like this:
20421 \end_layout
20422
20423 \begin_layout LyX-Code
20424 <<My scrap>>=
20425 \end_layout
20426
20427 \begin_layout LyX-Code
20428   code
20429 \end_layout
20430
20431 \begin_layout LyX-Code
20432   more code
20433 \end_layout
20434
20435 \begin_layout LyX-Code
20436   even more code
20437 \end_layout
20438
20439 \begin_layout LyX-Code
20440   @
20441 \end_layout
20442
20443 \begin_layout Standard
20444 The problem is that whatever is written in between the << and the 
20445 \family typewriter
20446 @
20447 \family default
20448  must be taken literally, i.e., LyX should be prevented from making any special
20449  interpretation of what has been written.
20450  This is handled by a special layout named Scrap, that works like a normal
20451  paragraph but has a free spacing capability.
20452 \end_layout
20453
20454 \begin_layout Standard
20455 The down side of the Scrap paragraph layout is that consecutive paragraphs
20456  of code will be spaced with one empty line in the source code and also
20457  in the printed documentation.
20458  The work around is to enter each line of code within a single Scrap, with
20459  a newline (ctrl-return).
20460  The example above will look like this:
20461 \begin_inset Foot
20462 status collapsed
20463
20464 \begin_layout Standard
20465 If you have a printed version of this document you will not see any difference
20466  between the previous example and this one.
20467 \end_layout
20468
20469 \end_inset
20470
20471
20472 \end_layout
20473
20474 \begin_layout LyX-Code
20475 <<My scrap>>=
20476 \newline
20477   code
20478 \newline
20479   more code
20480 \newline
20481   even more code
20482 \newline
20483   @
20484 \end_layout
20485
20486 \begin_layout Standard
20487 This layout works fine.
20488  The only real inconvenience is that you have to type ctrl-return instead
20489  of a plain return.
20490 \begin_inset Foot
20491 status collapsed
20492
20493 \begin_layout Standard
20494 It is in my list of 
20495 \begin_inset Quotes eld
20496 \end_inset
20497
20498 improvements
20499 \begin_inset Quotes erd
20500 \end_inset
20501
20502  to fix that.
20503 \end_layout
20504
20505 \end_inset
20506
20507
20508 \end_layout
20509
20510 \begin_layout Standard
20511 As a special note, you can also use the 
20512 \begin_inset Quotes eld
20513 \end_inset
20514
20515 %def
20516 \begin_inset Quotes erd
20517 \end_inset
20518
20519  construct of Noweb in your scraps to add items to Noweb's identifier cross-refe
20520 rence:
20521 \end_layout
20522
20523 \begin_layout LyX-Code
20524 <<My scrap>>=
20525 \newline
20526   def some_function(args):
20527 \newline
20528     "This is the doc string for this
20529  function."
20530 \newline
20531     print "My args: ", args
20532 \end_layout
20533
20534 \begin_layout LyX-Code
20535 @ %def some_function
20536 \end_layout
20537
20538 \begin_layout Standard
20539 For an example of this usage and the resulting cross-reference output, look
20540  at the Literate python program in 
20541 \emph on
20542 LIBDIR/examples/listerrors.lyx 
20543 \emph default
20544 which should make this all clear.
20545 \end_layout
20546
20547 \begin_layout Paragraph
20548 Generating the documentation
20549 \end_layout
20550
20551 \begin_layout Standard
20552 At this point you already have a new document file with a proper document
20553  class, and with some code and text on it.
20554  How do I print it? The answer is simple, you select 
20555 \family sans
20556 \bar under
20557 V
20558 \bar default
20559 iew\SpecialChar \menuseparator
20560
20561 \bar under
20562 D
20563 \bar default
20564 VI,
20565 \family default
20566  etc.
20567  Just like you would do for a plain document.
20568  No special procedure is required.
20569 \end_layout
20570
20571 \begin_layout Standard
20572 To help orientate you, I will now explain what happens inside LyX:
20573 \end_layout
20574
20575 \begin_layout Enumerate
20576 When the 
20577 \family sans
20578 \bar under
20579 U
20580 \bar default
20581 pdate\SpecialChar \menuseparator
20582
20583 \bar under
20584 D
20585 \bar default
20586 VI 
20587 \family default
20588 menu option is chosen, a latex file is generated.
20589  
20590 \end_layout
20591
20592 \begin_deeper
20593 \begin_layout Standard
20594 If the document is of any literate class the generated file will be named
20595  with an extension name defined by the 
20596 \begin_inset Quotes eld
20597 \end_inset
20598
20599 literate
20600 \begin_inset Quotes erd
20601 \end_inset
20602
20603  format (defined in the Preferences panel), otherwise the file will have
20604  the usual 
20605 \family typewriter
20606 .tex 
20607 \family default
20608 extension.
20609 \end_layout
20610
20611 \end_deeper
20612 \begin_layout Enumerate
20613 Note that the only difference so far is in the name of the file, no special
20614  processing is required by LyX.
20615  Given that you formatted the code using the Scrap layout that, by itself,
20616  takes care of the business.
20617 \end_layout
20618
20619 \begin_layout Enumerate
20620 If the document is of any literate class LyX will then use the internal
20621  LyX to Noweb converter, followed by the Noweb to LaTeX converter
20622 \begin_inset Foot
20623 status open
20624
20625 \begin_layout Standard
20626 The converters are defined in the 
20627 \family sans
20628 \bar under
20629 T
20630 \bar default
20631 ools\SpecialChar \menuseparator
20632
20633 \bar under
20634 P
20635 \bar default
20636 references
20637 \family default
20638  panel, under the 
20639 \begin_inset Quotes eld
20640 \end_inset
20641
20642 Conversion
20643 \begin_inset Quotes erd
20644 \end_inset
20645
20646  tab.
20647 \end_layout
20648
20649 \end_inset
20650
20651  to generate the LaTeX file.
20652 \end_layout
20653
20654 \begin_deeper
20655 \begin_layout Standard
20656 Otherwise it will just skip this step.
20657 \end_layout
20658
20659 \end_deeper
20660 \begin_layout Enumerate
20661 Finally, LaTeX is invoked and the regular post processing continues as in
20662  a plain document.
20663 \end_layout
20664
20665 \begin_layout Standard
20666 Independence from a particular 
20667 \begin_inset Quotes eld
20668 \end_inset
20669
20670 literate tool
20671 \begin_inset Quotes erd
20672 \end_inset
20673
20674  is easily achieved by changing the commands that are run by the various
20675  converters.
20676 \end_layout
20677
20678 \begin_layout Paragraph
20679 Generating the code
20680 \end_layout
20681
20682 \begin_layout Standard
20683 When the build menu option is chosen or the corresponding button in the
20684  toolbar is pressed, a latex file is generated just like step 1 above.
20685  Next, LyX invokes the
20686 \family typewriter
20687  Noweb->Program
20688 \family default
20689  converter.
20690  Typically, this converter (like any other converter), has two parts:
20691 \end_layout
20692
20693 \begin_layout Enumerate
20694 The converter program itself.
20695  This program performs the conversion from the one format to the other (in
20696  this case, from the Noweb format to the Program pseudo-format).
20697 \end_layout
20698
20699 \begin_layout Enumerate
20700 The error log parser.
20701  This is a program whose sole purpose is to rewrite error messages in a
20702  format that LyX understands.
20703  This makes it possible for LyX to place error boxes in the right places
20704  in the file buffer.
20705 \end_layout
20706
20707 \begin_layout Standard
20708 The first part, the 
20709 \begin_inset Quotes eld
20710 \end_inset
20711
20712 Converter
20713 \begin_inset Quotes erd
20714 \end_inset
20715
20716  setting, should be set to 
20717 \begin_inset Quotes eld
20718 \end_inset
20719
20720
20721 \family typewriter
20722 build-script $$i
20723 \family default
20724
20725 \begin_inset Quotes erd
20726 \end_inset
20727
20728 .
20729  This basically means that LyX will call 
20730 \begin_inset Quotes eld
20731 \end_inset
20732
20733 build-script
20734 \begin_inset Quotes erd
20735 \end_inset
20736
20737  (a program or script) with the name of the Noweb file (generally a file
20738  in the LyX temp directory).
20739  
20740 \end_layout
20741
20742 \begin_layout Standard
20743 This is an implementation of 
20744 \begin_inset Quotes eld
20745 \end_inset
20746
20747 build-script
20748 \begin_inset Quotes erd
20749 \end_inset
20750
20751  that you can place in a directory on your path:
20752 \end_layout
20753
20754 \begin_layout LyX-Code
20755 #!/bin/sh
20756 \end_layout
20757
20758 \begin_layout LyX-Code
20759 #
20760 \end_layout
20761
20762 \begin_layout LyX-Code
20763 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
20764 \end_layout
20765
20766 \begin_layout Standard
20767 The next part of the converter setting is the 
20768 \begin_inset Quotes eld
20769 \end_inset
20770
20771 Flags
20772 \begin_inset Quotes erd
20773 \end_inset
20774
20775  which is to be set to 
20776 \begin_inset Quotes eld
20777 \end_inset
20778
20779
20780 \family typewriter
20781 originaldir,parselog=listerrors
20782 \family default
20783
20784 \begin_inset Quotes erd
20785 \end_inset
20786
20787 .
20788  This will run any errors that are generated by the 
20789 \begin_inset Quotes eld
20790 \end_inset
20791
20792 build-script
20793 \begin_inset Quotes erd
20794 \end_inset
20795
20796  process through the 
20797 \begin_inset Quotes eld
20798 \end_inset
20799
20800 listerrors
20801 \begin_inset Quotes erd
20802 \end_inset
20803
20804  program.
20805 \end_layout
20806
20807 \begin_layout Standard
20808 The converter code looks in 
20809 \emph on
20810 MYLYXDIR/scripts 
20811 \emph default
20812 first, then in
20813 \emph on
20814  LIBDIR/scripts 
20815 \emph default
20816 then on the path for the 
20817 \begin_inset Quotes eld
20818 \end_inset
20819
20820 listerrors
20821 \begin_inset Quotes erd
20822 \end_inset
20823
20824  program.
20825 \end_layout
20826
20827 \begin_layout Paragraph
20828 Build instructions in the document
20829 \end_layout
20830
20831 \begin_layout Standard
20832 The last piece of the integration between LyX and noweb is the 
20833 \begin_inset Quotes eld
20834 \end_inset
20835
20836 build-script
20837 \begin_inset Quotes erd
20838 \end_inset
20839
20840  scrap.
20841  Generally, the instructions for building your program should be embedded
20842  in a scrap of its own.
20843  The noweb-specific 
20844 \begin_inset Quotes eld
20845 \end_inset
20846
20847 build-script
20848 \begin_inset Quotes erd
20849 \end_inset
20850
20851  above uses the notangle command to look for this scrap (called 
20852 \begin_inset Quotes eld
20853 \end_inset
20854
20855 build-script
20856 \begin_inset Quotes erd
20857 \end_inset
20858
20859 ) and runs its contents through 
20860 \begin_inset Quotes eld
20861 \end_inset
20862
20863 sh
20864 \begin_inset Quotes erd
20865 \end_inset
20866
20867 .
20868 \end_layout
20869
20870 \begin_layout Standard
20871 Typically, such a scrap would look something like this:
20872 \end_layout
20873
20874 \begin_layout LyX-Code
20875 <<build-script>>=
20876 \newline
20877 #!/bin/sh
20878 \newline
20879
20880 \newline
20881 if [ -z "${NOWEB_SOURCE}" ]
20882 \newline
20883 then
20884 \newline
20885   NOWEB_SOURCE=myfile.nw
20886 \newline
20887
20888 fi
20889 \newline
20890 [...
20891  code to extract files ...]
20892 \newline
20893 [...
20894  code to compile files ...]
20895 \newline
20896 @
20897 \end_layout
20898
20899 \begin_layout Standard
20900 Look in 
20901 \emph on
20902 LIBDIR/examples/listerrors.lyx 
20903 \emph default
20904 or in 
20905 \emph on
20906 LIBDIR/examples/Literate.lyx
20907 \emph default
20908  which implement two versions of the 
20909 \begin_inset Quotes eld
20910 \end_inset
20911
20912 listerrors
20913 \begin_inset Quotes erd
20914 \end_inset
20915
20916  program for some illustrations of how all of these pieces go together or
20917  in 
20918 \emph on
20919 LIBDIR/examples/noweb2lyx.lyx.
20920  
20921 \emph default
20922 Interestingly, these three files show off the language-indepence of the
20923  LyX literate programming support since they are written in Python, C and
20924  Perl respectively.
20925 \end_layout
20926
20927 \begin_layout Subsubsection
20928 Configuring LyX
20929 \end_layout
20930
20931 \begin_layout Standard
20932 All the Literate Programming support is configured by the 
20933 \family sans
20934 \bar under
20935 T
20936 \bar default
20937 ools\SpecialChar \menuseparator
20938
20939 \bar under
20940 P
20941 \bar default
20942 references
20943 \family default
20944  panel in the 
20945 \begin_inset Quotes eld
20946 \end_inset
20947
20948 Conversion
20949 \begin_inset Quotes erd
20950 \end_inset
20951
20952  tab.
20953  The important parts are:
20954 \end_layout
20955
20956 \begin_layout Description
20957 the\InsetSpace ~
20958
20959 \begin_inset Quotes eld
20960 \end_inset
20961
20962 literate
20963 \begin_inset Quotes erd
20964 \end_inset
20965
20966 \InsetSpace ~
20967 format Set up via the Formats tab, this is where the Noweb-specific pieces
20968  are set up.
20969  The 
20970 \family sans
20971 GUI Name
20972 \family default
20973  is set to 
20974 \family typewriter
20975 NoWeb
20976 \family default
20977 , the file extension is set to 
20978 \family typewriter
20979 .nw
20980 \family default
20981 .
20982  This tells LyX to create a file with a 
20983 \family typewriter
20984 .nw
20985 \family default
20986  extension in the first step of the conversion process.
20987 \end_layout
20988
20989 \begin_layout Description
20990 the\InsetSpace ~
20991
20992 \family sans
20993 Program
20994 \family default
20995 \InsetSpace ~
20996 format This is an empty format whose sole purpose is to be the endpoint
20997  of a conversion (which then allows us to set up a converter for it).
20998 \end_layout
20999
21000 \begin_layout Description
21001
21002 \family sans
21003 NoWeb
21004 \family default
21005 ->
21006 \family sans
21007 LaTeX
21008 \family default
21009  This converter performs the 
21010 \begin_inset Quotes eld
21011 \end_inset
21012
21013 weaving
21014 \begin_inset Quotes erd
21015 \end_inset
21016
21017  of the literate document.
21018  For Noweb, it is set to 
21019 \begin_inset Quotes eld
21020 \end_inset
21021
21022
21023 \family typewriter
21024 noweave -delay -index $$i > $$o
21025 \family default
21026
21027 \begin_inset Quotes erd
21028 \end_inset
21029
21030
21031 \end_layout
21032
21033 \begin_layout Description
21034
21035 \family sans
21036 NoWeb
21037 \family default
21038 ->
21039 \family sans
21040 Program
21041 \family default
21042  This performs the 
21043 \begin_inset Quotes eld
21044 \end_inset
21045
21046 tangling step
21047 \begin_inset Quotes erd
21048 \end_inset
21049
21050 .
21051  As stated above, the Converter is set to 
21052 \begin_inset Quotes eld
21053 \end_inset
21054
21055
21056 \family typewriter
21057 build-script $$i
21058 \family default
21059
21060 \begin_inset Quotes erd
21061 \end_inset
21062
21063 , with Flags set to 
21064 \begin_inset Quotes eld
21065 \end_inset
21066
21067
21068 \family typewriter
21069 originaldir,parselog=listerrors
21070 \family default
21071
21072 \begin_inset Quotes erd
21073 \end_inset
21074
21075 .
21076 \end_layout
21077
21078 \begin_layout Subsubsection
21079 Debug extensions
21080 \end_layout
21081
21082 \begin_layout Standard
21083 There is also a new function implemented in the LyX server, the 
21084 \begin_inset Quotes eld
21085 \end_inset
21086
21087 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
21088  
21089 \end_layout
21090
21091 \begin_layout Standard
21092 When debugging code with ddd/gdb, it is possible to invoke a text editor
21093  at the current execution position with a single key stroke.
21094  The default ddd configuration for that is shift-ctrl-V.
21095  It happens that you can define the editor command line invocation in ddd
21096  by accessing the
21097 \family sans
21098  
21099 \bar under
21100 E
21101 \bar default
21102 dit\SpecialChar \menuseparator
21103
21104 \bar under
21105 P
21106 \bar default
21107 references\SpecialChar \menuseparator
21108
21109 \bar under
21110 H
21111 \bar default
21112 elpers 
21113 \family default
21114 dialog and changing the "Edit Sources" entry.
21115 \end_layout
21116
21117 \begin_layout Standard
21118 I take advantage of the new created LyX server function and this ddd feature,
21119  and set 
21120 \begin_inset Quotes eld
21121 \end_inset
21122
21123 Edit Sources
21124 \begin_inset Quotes erd
21125 \end_inset
21126
21127  to:
21128 \end_layout
21129
21130 \begin_layout LyX-Code
21131 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21132 \end_layout
21133
21134 \begin_layout Standard
21135 With this, whenever you are using ddd and find a point in the program that
21136  you want to edit, you just press shift-ctrl-V (in the ddd window), and
21137  ddd you forward this information to LyX through the LyX server and then
21138  the LyX window will show the same file with the cursor at the same position
21139  ddd was pointing to.
21140  No more guessing or long scrolling to locate a point in the program back
21141  from debugging !
21142 \end_layout
21143
21144 \begin_layout Standard
21145 Note however that you must enable the LyX server to get this feature working
21146  (it is disabled by default).
21147  You can enable it in 
21148 \family sans
21149 Preferences
21150 \family default
21151  (tabs 
21152 \family sans
21153 Inputs
21154 \family default
21155
21156 \family sans
21157 Paths
21158 \family default
21159 ) by entering in the 
21160 \family sans
21161 LyXserver pipe
21162 \family default
21163  a path like 
21164 \begin_inset Quotes eld
21165 \end_inset
21166
21167
21168 \family typewriter
21169 /home/<your-home-directory>/.lyx/lyxpipe
21170 \family default
21171
21172 \begin_inset Quotes erd
21173 \end_inset
21174
21175
21176 \end_layout
21177
21178 \begin_layout Standard
21179 Read the LyX server documentation in the 
21180 \emph on
21181 Customization Manual
21182 \emph default
21183  for further information.
21184 \end_layout
21185
21186 \begin_layout Subsubsection
21187 Toolbar extensions
21188 \end_layout
21189
21190 \begin_layout Standard
21191 There are six new buttons that can be added to your LyX toolbar.
21192  Five of these buttons are short cuts to layout styles: 
21193 \family sans
21194 Standard
21195 \family default
21196
21197 \family sans
21198 Section
21199 \family default
21200
21201 \family sans
21202 LaTeX
21203 \family default
21204
21205 \family sans
21206 LyX-Code
21207 \family default
21208 , and 
21209 \family sans
21210 Scrap
21211 \family default
21212 .
21213  The last one is a short cut to the 
21214 \begin_inset Quotes eld
21215 \end_inset
21216
21217 Build Program
21218 \begin_inset Quotes erd
21219 \end_inset
21220
21221  File menu entry.
21222  
21223 \end_layout
21224
21225 \begin_layout Standard
21226 LyX has a range of buttons that are available for tool bar customization.
21227  In my toolbar I like to combine the six short cuts above with two more:
21228  One for 
21229 \family sans
21230 \bar under
21231 V
21232 \bar default
21233 iew
21234 \family default
21235 \SpecialChar \menuseparator
21236
21237 \family sans
21238 \bar under
21239 U
21240 \bar default
21241 pdate
21242 \family default
21243 \SpecialChar \menuseparator
21244
21245 \family sans
21246 \bar under
21247 D
21248 \bar default
21249 VI
21250 \family default
21251  and the other for 
21252 \family sans
21253 \bar under
21254 V
21255 \bar default
21256 iew\SpecialChar \menuseparator
21257
21258 \bar under
21259 D
21260 \bar default
21261 VI
21262 \family default
21263  File menu entries.
21264  Here is how it looks like:
21265 \end_layout
21266
21267 \begin_layout LyX-Code
21268 Toolbar
21269 \end_layout
21270
21271 \begin_layout LyX-Code
21272   Layouts
21273 \end_layout
21274
21275 \begin_layout LyX-Code
21276   Icon "layout Standard"
21277 \end_layout
21278
21279 \begin_layout LyX-Code
21280   Icon "layout Section"
21281 \end_layout
21282
21283 \begin_layout LyX-Code
21284   Icon "layout LaTeX"
21285 \end_layout
21286
21287 \begin_layout LyX-Code
21288   Icon "layout LyX-Code"
21289 \end_layout
21290
21291 \begin_layout LyX-Code
21292   Icon "layout Scrap"
21293 \end_layout
21294
21295 \begin_layout LyX-Code
21296   Separator
21297 \end_layout
21298
21299 \begin_layout LyX-Code
21300   Icon "buffer-view"
21301 \end_layout
21302
21303 \begin_layout LyX-Code
21304   Icon "buffer-typeset"
21305 \end_layout
21306
21307 \begin_layout LyX-Code
21308   Icon "build-program"
21309 \end_layout
21310
21311 \begin_layout LyX-Code
21312   Separator
21313 \end_layout
21314
21315 \begin_layout LyX-Code
21316 .
21317 \end_layout
21318
21319 \begin_layout LyX-Code
21320 .
21321 \end_layout
21322
21323 \begin_layout LyX-Code
21324 .
21325 \end_layout
21326
21327 \begin_layout LyX-Code
21328 End
21329 \end_layout
21330
21331 \begin_layout Subsubsection
21332 Colors customization
21333 \end_layout
21334
21335 \begin_layout Standard
21336 There are a number of colors in LyX that can be customized in 
21337 \family sans
21338 Preferences
21339 \family default
21340 .
21341  One of the things that bothers people is the LaTeX font color.
21342  The default color is red, since the scraps uses LaTeX font, and there is
21343  a lot of scraps in literate documents, you may get tired of seeing everything
21344  in red.
21345  You can change it by going to the tabs 
21346 \family sans
21347 Look&Feel
21348 \family default
21349
21350 \family sans
21351 Colors.
21352 \end_layout
21353
21354 \begin_layout Standard
21355 The next thing is the visible presence of the newline character in the screen.
21356  You can choose the color of this particular character and make it blend
21357  in the background.
21358  I recommend you choosing a color that is close to the background but not
21359  equal, that way you still can see it is there, but it is not bothering
21360  you anymore.
21361  
21362 \end_layout
21363
21364 \begin_layout Chapter
21365 Secrets of the LaTeX Masters
21366 \begin_inset LatexCommand \label{cha:secrets}
21367
21368 \end_inset
21369
21370
21371 \end_layout
21372
21373 \begin_layout Standard
21374 Though LyX is a powerful tool, it cannot hope to support everything that
21375  can be done with pure TeX/LaTeX.
21376  However, many familiar dirty TeX and LaTeX tricks can be done within LyX,
21377  as long as you are not afraid to use that 
21378 \begin_inset Quotes eld
21379 \end_inset
21380
21381 TeX
21382 \begin_inset Quotes erd
21383 \end_inset
21384
21385  button on the toolbar or add things to the LaTeX preamble.
21386  This section lists some tips, tricks, and otherwise cool ideas to give
21387  your document that extra little flair.
21388  
21389 \emph on
21390 Do try this at home
21391 \emph default
21392 , just start with something a little smaller and less important than your
21393  dissertation!
21394 \end_layout
21395
21396 \begin_layout Standard
21397 Most ideas in this section require less common files in your LaTeX installation.
21398  If you have a system like teTeX, most will already be available.
21399  A few, however, will need to be downloaded from one of the CTAN archives.
21400  Often, there are several ways to do something, or several LaTeX style files
21401  which do the same thing.
21402  We do not endorse one choice over another, we simply claim that we have
21403  done a particular task with a particular file.
21404  Put on your wizard hat, keep an eye out for dragons, and let us begin.
21405 \end_layout
21406
21407 \begin_layout Section
21408 Tricks for Footnotes and Margin Notes
21409 \end_layout
21410
21411 \begin_layout Standard
21412 suggested by 
21413 \noun on
21414 Robin Socha
21415 \end_layout
21416
21417 \begin_layout Subsection
21418 Footnotes 
21419 \end_layout
21420
21421 \begin_layout Standard
21422 LyX cannot yet take care of setting the footnote numbering back to 1 after
21423  each section in the 
21424 \begin_inset Quotes eld
21425 \end_inset
21426
21427
21428 \family sans
21429 article
21430 \family default
21431
21432 \begin_inset Quotes erd
21433 \end_inset
21434
21435
21436 \family roman
21437  document class or changing the counter style.
21438  You'll need to insert LaTeX commands like the following to achieve that:
21439 \end_layout
21440
21441 \begin_layout Standard
21442 \begin_inset ERT
21443 status inlined
21444
21445 \begin_layout Standard
21446
21447 \backslash
21448 setcounter{footnote}{0}
21449 \end_layout
21450
21451 \end_inset
21452
21453  Using 
21454 \family typewriter
21455
21456 \backslash
21457 setcounter{footnote}{0}
21458 \family roman
21459  will set the counter back to 1
21460 \begin_inset Foot
21461 status collapsed
21462
21463 \begin_layout Standard
21464 The counter has been set back to 1.
21465 \end_layout
21466
21467 \end_inset
21468
21469 .
21470 \end_layout
21471
21472 \begin_layout Standard
21473 The following command will change the numbering to small letters.
21474  Take a look at the next footnote in your xdvi or ghostview 
21475 \begin_inset ERT
21476 status inlined
21477
21478 \begin_layout Standard
21479
21480 \backslash
21481 renewcommand{
21482 \backslash
21483 thefootnote}{
21484 \backslash
21485 alph{footnote}}
21486 \end_layout
21487
21488 \end_inset
21489
21490 :
21491 \begin_inset Foot
21492 status collapsed
21493
21494 \begin_layout Standard
21495 This is an example for a footnote with alphabetic numbering.
21496 \newline
21497 Use
21498 \family typewriter
21499  
21500 \backslash
21501 renewcommand{
21502 \backslash
21503 thefootnote {
21504 \backslash
21505 alph{footnote}} 
21506 \family roman
21507 to get this.
21508 \end_layout
21509
21510 \end_inset
21511
21512
21513 \end_layout
21514
21515 \begin_layout Standard
21516 The next command sets the counter style back to default, i.e.
21517  
21518 \family typewriter
21519
21520 \backslash
21521 arabic
21522 \family default
21523
21524 \begin_inset Foot
21525 status collapsed
21526
21527 \begin_layout Standard
21528 Use
21529 \family typewriter
21530  
21531 \backslash
21532 renewcommand{
21533 \backslash
21534 thefootnote}{
21535 \backslash
21536 arabic{footnote}}
21537 \family roman
21538  to set the counter--style back to LyX's default, i.e.
21539  
21540 \backslash
21541 arabic.
21542 \family default
21543
21544 \begin_inset ERT
21545 status collapsed
21546
21547 \begin_layout Standard
21548
21549 \backslash
21550 renewcommand {
21551 \backslash
21552 thefootnote} {
21553 \backslash
21554 arabic{footnote}}
21555 \end_layout
21556
21557 \end_inset
21558
21559
21560 \end_layout
21561
21562 \end_inset
21563
21564 .
21565 \end_layout
21566
21567 \begin_layout Standard
21568 You can use 
21569 \family typewriter
21570
21571 \backslash
21572 arabic
21573 \family default
21574
21575 \family typewriter
21576
21577 \backslash
21578 roman
21579 \family default
21580
21581 \family typewriter
21582
21583 \backslash
21584 Roman
21585 \family default
21586
21587 \family typewriter
21588
21589 \backslash
21590 alph
21591 \family default
21592  or 
21593 \family typewriter
21594
21595 \backslash
21596 Alph
21597 \family default
21598  and others as counter styles.
21599  Just replace the LaTeX command in the above example and rerun TeX to see
21600  what those styles can do.
21601  
21602 \end_layout
21603
21604 \begin_layout Subsection
21605 Margin Notes
21606 \end_layout
21607
21608 \begin_layout Standard
21609 Here are two examples of neat things you can do to margin notes using LaTeX
21610  commands.
21611 \end_layout
21612
21613 \begin_layout Standard
21614 The following command will make a vertical line appear alongside your text---gre
21615 at for 
21616 \begin_inset Quotes eld
21617 \end_inset
21618
21619 thumbing
21620 \begin_inset Quotes erd
21621 \end_inset
21622
21623
21624 \family typewriter
21625
21626 \backslash
21627 marginpar{
21628 \backslash
21629 rule[-10mm]{30mm}{5mm}}
21630 \family roman
21631 .
21632 \family default
21633
21634 \begin_inset ERT
21635 status inlined
21636
21637 \begin_layout Standard
21638
21639 \backslash
21640 marginpar{
21641 \backslash
21642 rule[-10mm]{30mm}{5mm}}
21643 \end_layout
21644
21645 \end_inset
21646
21647
21648 \end_layout
21649
21650 \begin_layout Standard
21651 Check your dvi- or ghostview-output to see what the 
21652 \family typewriter
21653
21654 \backslash
21655 reversemarginpar 
21656 \family default
21657 command does to the following margin note.
21658 \end_layout
21659
21660 \begin_layout Standard
21661 \begin_inset ERT
21662 status inlined
21663
21664 \begin_layout Standard
21665
21666 \backslash
21667 reversemarginpar
21668 \end_layout
21669
21670 \end_inset
21671
21672
21673 \begin_inset Marginal
21674 status collapsed
21675
21676 \begin_layout Standard
21677 This is a 
21678 \newline
21679 margin note.
21680 \end_layout
21681
21682 \end_inset
21683
21684
21685 \end_layout
21686
21687 \begin_layout Section
21688 Multiple Columns
21689 \end_layout
21690
21691 \begin_layout Standard
21692 by 
21693 \noun on
21694 Lars Gullik Bjønnes
21695 \end_layout
21696
21697 \begin_layout Subsection
21698 Purpose
21699 \end_layout
21700
21701 \begin_layout Standard
21702 The aim for this chapter
21703 \begin_inset Foot
21704 status collapsed
21705
21706 \begin_layout Standard
21707 Editor's note: Lars' original chapter was a masterful description of how
21708  to use the 
21709 \family typewriter
21710 multicol
21711 \family default
21712  package.
21713  However, it was too long to flow smoothly in this document.
21714  I have therefore chosen to excerpt the most important sections here (sorry,
21715  Lars); you can read the original chapter (and more of the story!) in the
21716  example file 
21717 \family typewriter
21718 examples/multicol.lyx
21719 \family default
21720 .
21721  --- mer
21722 \end_layout
21723
21724 \end_inset
21725
21726  is to show how the LaTeX package 
21727 \family typewriter
21728 multicol
21729 \family default
21730  can be used in a LyX document.
21731  As LyX doesn't support the 
21732 \family typewriter
21733 multicol
21734 \family default
21735  package natively yet, we have to use some small hacks.
21736  By reading this section it should be obvious how to do this.
21737 \end_layout
21738
21739 \begin_layout Subsection
21740 Limitations 
21741 \end_layout
21742
21743 \begin_layout Standard
21744 The 
21745 \family typewriter
21746 multicol
21747 \family default
21748  package allows switching between one and multicolumn format on the same
21749  page.
21750  Footnotes are handled correctly (for the most part), but will be placed
21751  at the bottom of the page and not under each column.
21752  LaTeX's float mechanism, however, is partly disabled in the current implementat
21753 ion.
21754  At the moment only page-wide floats can be used within the scope of the
21755  environment.
21756 \end_layout
21757
21758 \begin_layout Subsection
21759 Examples
21760 \end_layout
21761
21762 \begin_layout Subsubsection
21763 Two columns
21764 \end_layout
21765
21766 \begin_layout Standard
21767 If you want to have two columns in your text, you have use LaTeX mode to
21768  insert 
21769 \family typewriter
21770
21771 \backslash
21772 begin{multicols}{2}
21773 \family default
21774  at the point where you want the two column layout to start, and then 
21775 \family typewriter
21776
21777 \backslash
21778 end{multicols}
21779 \family default
21780  where you want it to end.
21781  Like this:
21782 \end_layout
21783
21784 \begin_layout Standard
21785 \begin_inset ERT
21786 status inlined
21787
21788 \begin_layout Standard
21789
21790 \backslash
21791 begin{multicols}{2}
21792 \end_layout
21793
21794 \end_inset
21795
21796
21797 \end_layout
21798
21799 \begin_layout Standard
21800 \noindent
21801
21802 \series bold
21803 \size small
21804 The Adventure of the Empty House
21805 \series default
21806
21807 \newline
21808 by 
21809 \noun on
21810 Sir Arthur Conan Doyle
21811 \end_layout
21812
21813 \begin_layout Standard
21814
21815 \size small
21816 It was in the spring of the year 1894 that all London was interested, and
21817  the fashionable world dismayed, by the murder of the Honourable Ronald
21818  Adair under most unusual and inexplicable circumstances.
21819  The public has already learned those particulars of the crime which came
21820  out in the police investigation, but a good deal was suppressed upon that
21821  occasion, since the case for the prosecution was so overwhelmingly strong
21822  that it was not necessary to bring forward all the facts.
21823  Only now, at the end of nearly ten years, am I allowed to supply those
21824  missing links which make up the whole of that remarkable chain.
21825  The crime was of interest in itself, but that interest was as nothing to
21826  me compared to the inconceivable sequel, which afforded me the greatest
21827  shock and surprise of any event in my adventurous life.
21828  Even now, after this long interval, I find myself thrilling as I think
21829  of it, and feeling once more that sudden flood of joy, amazement, and increduli
21830 ty which utterly submerged my mind.
21831  Let me say to that public, which has shown some interest in those glimpses
21832  which I have occasionally given them of the thoughts and actions of a very
21833  remarkable man, that they are not to blame me if I have not shared my knowledge
21834  with them, for I should have considered it my first duty to do so, had
21835  I not been barred by a positive prohibition from his own lips, which was
21836  only withdrawn upon the third of last month.
21837 \end_layout
21838
21839 \begin_layout Standard
21840 \begin_inset ERT
21841 status inlined
21842
21843 \begin_layout Standard
21844
21845 \backslash
21846 end{multicols}
21847 \end_layout
21848
21849 \end_inset
21850
21851
21852 \end_layout
21853
21854 \begin_layout Subsubsection
21855 Multiple columns
21856 \end_layout
21857
21858 \begin_layout Standard
21859 The same pattern is used when you want more than two columns:
21860 \end_layout
21861
21862 \begin_layout Standard
21863 \begin_inset ERT
21864 status inlined
21865
21866 \begin_layout Standard
21867
21868 \backslash
21869 begin{multicols}{3}
21870 \end_layout
21871
21872 \end_inset
21873
21874
21875 \end_layout
21876
21877 \begin_layout Standard
21878
21879 \size footnotesize
21880 It can be imagined that my close intimacy with Sherlock Holmes had interested
21881  me deeply in crime, and that after his disappearance I never failed to
21882  read with care the various problems which came before the public.
21883  And I even attempted, more than once, for my own private satisfaction,
21884  to employ his methods in their solution, though with indifferent success.
21885  There was none, however, which appealed to me like this tragedy of Ronald
21886  Adair.
21887  As I read the evidence at the inquest, which led up to a verdict of willful
21888  murder against some person or persons unknown, I realized more clearly
21889  than I had ever done the loss which the community had sustained by the
21890  death of Sherlock Holmes.
21891  There were points about this strange business which would, I was sure,
21892  have specially appealed to him, and the efforts of the police would have
21893  been supplemented, or more probably anticipated, by the trained observation
21894  and the alert mind of the first criminal agent in Europe.
21895  All day, as I drove upon my round, I turned over the case in my mind and
21896  found no explanation which appeared to me to be adequate.
21897  At the risk of telling a twice-told tale, I will recapitulate the facts
21898  as they were known to the public at the conclusion of the inquest.
21899 \end_layout
21900
21901 \begin_layout Standard
21902 \begin_inset ERT
21903 status inlined
21904
21905 \begin_layout Standard
21906
21907 \backslash
21908 end{multicols}
21909 \end_layout
21910
21911 \end_inset
21912
21913
21914 \end_layout
21915
21916 \begin_layout Standard
21917 You can have have more than 3 columns if you want to, but that might not
21918  be very pleasant for the eye.
21919 \end_layout
21920
21921 \begin_layout Subsubsection
21922 Columns inside columns
21923 \end_layout
21924
21925 \begin_layout Standard
21926 You can even have columns inside columns:
21927 \end_layout
21928
21929 \begin_layout Standard
21930 \begin_inset ERT
21931 status inlined
21932
21933 \begin_layout Standard
21934
21935 \backslash
21936 begin{multicols}{2}
21937 \end_layout
21938
21939 \end_inset
21940
21941
21942 \end_layout
21943
21944 \begin_layout Standard
21945
21946 \size footnotesize
21947 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
21948  at that time governor of one of the Australian colonies.
21949  Adair's mother had returned from Australia to undergo the operation for
21950  cataract, and she, her son Ronald, and her daughter Hilda were living together
21951  at 427 Park Lane.
21952 \end_layout
21953
21954 \begin_layout Standard
21955 \begin_inset ERT
21956 status inlined
21957
21958 \begin_layout Standard
21959
21960 \backslash
21961 begin{multicols}{2}
21962 \end_layout
21963
21964 \end_inset
21965
21966
21967 \end_layout
21968
21969 \begin_layout Standard
21970
21971 \size footnotesize
21972 The youth moved in the best society--had, so far as was known, no enemies
21973  and no particular vices.
21974  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
21975  had been broken off by mutual consent some months before, and there was
21976  no sign that it had left any very profound feeling behind it.
21977  For the rest {sic} the man's life moved in a narrow and conventional circle,
21978  for his habits were quiet and his nature unemotional.
21979  Yet it was upon this easy-going young aristocrat that death came, in most
21980  strange and unexpected form, between the hours of ten and eleven-twenty
21981  on the night of March 30, 1894.
21982 \end_layout
21983
21984 \begin_layout Standard
21985 \begin_inset ERT
21986 status inlined
21987
21988 \begin_layout Standard
21989
21990 \backslash
21991 end{multicols}
21992 \end_layout
21993
21994 \end_inset
21995
21996
21997 \end_layout
21998
21999 \begin_layout Standard
22000
22001 \size footnotesize
22002 Ronald Adair was fond of cards--playing continually, but never for such
22003  stakes as would hurt him.
22004  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22005  It was shown that, after dinner on the day of his death, he had played
22006  a rubber of whist at the latter club.
22007  He had also played there in the afternoon.
22008
22009 \size default
22010  
22011 \size footnotesize
22012 The evidence of those who had played with him-- Mr.
22013  Murray, Sir John Hardy, and Colonel Moran--showed that the game was whist,
22014  and that there was a fairly equal fall of the cards.
22015  Adair might have lost five pounds, but not more.
22016  His fortune was a considerable one, and such a loss could not in any way
22017  affect him.
22018  He had played nearly every day at one club or other, but he was a cautious
22019  player, and usually rose a winner.
22020  It came out in evidence that, in partnership with Colonel Moran, he had
22021  actually won as much as four hundred and twenty pounds in a sitting, some
22022  weeks before, from Godfrey Milner and Lord Balmoral.
22023  So much for his recent history as it came out at the inquest.
22024 \end_layout
22025
22026 \begin_layout Standard
22027 \begin_inset ERT
22028 status inlined
22029
22030 \begin_layout Standard
22031
22032 \backslash
22033 end{multicols}
22034 \end_layout
22035
22036 \end_inset
22037
22038
22039 \end_layout
22040
22041 \begin_layout Standard
22042 Please do read the file 
22043 \family typewriter
22044 examples/multicol.lyx
22045 \family default
22046  for more advanced examples including column and header spacing, vertical
22047  separator lines, and more.
22048 \end_layout
22049
22050 \begin_layout Section
22051 Numbering in the 
22052 \family sans
22053 Enumerate
22054 \family default
22055  Paragraph Environment
22056 \begin_inset OptArg
22057 status collapsed
22058
22059 \begin_layout Standard
22060 Numbering in Enumerate
22061 \end_layout
22062
22063 \end_inset
22064
22065
22066 \end_layout
22067
22068 \begin_layout Standard
22069 by 
22070 \noun on
22071 John Weiss
22072 \end_layout
22073
22074 \begin_layout Standard
22075 \begin_inset VSpace bigskip
22076 \end_inset
22077
22078
22079 \end_layout
22080
22081 \begin_layout Standard
22082 \noindent
22083 The default numbering for the 
22084 \family sans
22085 Enumerate
22086 \family default
22087  paragraph environment begins with Arabic numbers and ends with uppercase
22088  letters.
22089  Suppose, however, you wanted a different type of numbering scheme.
22090  Here's a quickie example of how to change the numbering scheme:
22091 \end_layout
22092
22093 \begin_layout LyX-Code
22094
22095 \backslash
22096 renewcommand{
22097 \backslash
22098 labelenumi}{
22099 \backslash
22100 Roman{enumi}.}
22101 \end_layout
22102
22103 \begin_layout LyX-Code
22104
22105 \backslash
22106 renewcommand{
22107 \backslash
22108 labelenumii}{
22109 \backslash
22110 Alph{enumii}.}
22111 \end_layout
22112
22113 \begin_layout LyX-Code
22114
22115 \backslash
22116 renewcommand{
22117 \backslash
22118 labelenumiii}{
22119 \backslash
22120 arabic{enumiii}.}
22121 \end_layout
22122
22123 \begin_layout LyX-Code
22124
22125 \backslash
22126 renewcommand{
22127 \backslash
22128 labelenumiv}{
22129 \backslash
22130 alph{enumiv}.)}
22131 \end_layout
22132
22133 \begin_layout Standard
22134 \SpecialChar \ldots{}
22135  which changes the numbering scheme to uppercase Roman numerals, uppercase
22136  letters, Arabic numbers, and lowercase letter.
22137 \end_layout
22138
22139 \begin_layout Standard
22140 Additionally, the previous example also adds a little bit extra to the numbering
22141  scheme.
22142  For example, the first level label actually looks like: 
22143 \begin_inset Quotes eld
22144 \end_inset
22145
22146 I.
22147 \begin_inset Quotes erd
22148 \end_inset
22149
22150 .
22151  For ease of reading, we'll describe what the numbering schemes look like
22152  using a notation something like this: <
22153 \begin_inset Quotes eld
22154 \end_inset
22155
22156 I.
22157 \begin_inset Quotes erd
22158 \end_inset
22159
22160 ,\InsetSpace ~
22161
22162 \begin_inset Quotes erd
22163 \end_inset
22164
22165 A.
22166 \begin_inset Quotes erd
22167 \end_inset
22168
22169 ,\InsetSpace ~
22170
22171 \begin_inset Quotes erd
22172 \end_inset
22173
22174 1.
22175 \begin_inset Quotes erd
22176 \end_inset
22177
22178 ,\InsetSpace ~
22179
22180 \begin_inset Quotes eld
22181 \end_inset
22182
22183 a.)
22184 \begin_inset Quotes erd
22185 \end_inset
22186
22187 >.
22188  
22189 \end_layout
22190
22191 \begin_layout Standard
22192 As you can see in the example, there is a label command for each nesting
22193  level, 
22194 \family typewriter
22195
22196 \backslash
22197 labelenumi
22198 \family default
22199  \SpecialChar \ldots{}
22200  
22201 \family typewriter
22202
22203 \backslash
22204 labelenumiv
22205 \family default
22206 , as well as a counter, 
22207 \family typewriter
22208 enumi
22209 \family default
22210  \SpecialChar \ldots{}
22211  
22212 \family typewriter
22213 enumiv
22214 \family default
22215 .
22216  There are also five 
22217 \begin_inset Quotes eld
22218 \end_inset
22219
22220 number printing
22221 \begin_inset Quotes erd
22222 \end_inset
22223
22224  commands, 
22225 \family typewriter
22226
22227 \backslash
22228 arabic{}
22229 \family default
22230
22231 \family typewriter
22232
22233 \backslash
22234 roman{}
22235 \family default
22236
22237 \family typewriter
22238
22239 \backslash
22240 Roman{}
22241 \family default
22242
22243 \family typewriter
22244
22245 \backslash
22246 alph{}
22247 \family default
22248 , and 
22249 \family typewriter
22250
22251 \backslash
22252 Alph{}
22253 \family default
22254 , each of which take one counter as an argument.
22255  You can add characters before or after these, but there's no need to add
22256  spaces.
22257 \end_layout
22258
22259 \begin_layout Standard
22260 You can get really fancy with these.
22261  For example:
22262 \end_layout
22263
22264 \begin_layout LyX-Code
22265
22266 \backslash
22267 renewcommand{
22268 \backslash
22269 labelenumi}{
22270 \backslash
22271 #
22272 \backslash
22273 Alph{enumi}
22274 \backslash
22275 #}
22276 \end_layout
22277
22278 \begin_layout LyX-Code
22279
22280 \backslash
22281 renewcommand{
22282 \backslash
22283 labelenumii}{
22284 \backslash
22285 Alph{enumi}.
22286 \backslash
22287 arabic{enumii}}
22288 \end_layout
22289
22290 \begin_layout LyX-Code
22291
22292 \backslash
22293 renewcommand{
22294 \backslash
22295 labelenumiii}{
22296 \backslash
22297 alph{enumiii}+}
22298 \end_layout
22299
22300 \begin_layout LyX-Code
22301
22302 \backslash
22303 renewcommand{
22304 \backslash
22305 labelenumiv}{(
22306 \backslash
22307 roman{enumiv})}
22308 \end_layout
22309
22310 \begin_layout Standard
22311 produces the somewhat out of hand numbering scheme: <
22312 \begin_inset Quotes eld
22313 \end_inset
22314
22315 #A#
22316 \begin_inset Quotes erd
22317 \end_inset
22318
22319 ,\InsetSpace ~
22320
22321 \begin_inset Quotes erd
22322 \end_inset
22323
22324 A.1
22325 \begin_inset Quotes erd
22326 \end_inset
22327
22328 ,\InsetSpace ~
22329
22330 \begin_inset Quotes erd
22331 \end_inset
22332
22333 a+
22334 \begin_inset Quotes erd
22335 \end_inset
22336
22337 ,\InsetSpace ~
22338
22339 \begin_inset Quotes eld
22340 \end_inset
22341
22342 (i)
22343 \begin_inset Quotes erd
22344 \end_inset
22345
22346 >.
22347  
22348 \end_layout
22349
22350 \begin_layout Section
22351 Extra Space Between Table Rows
22352 \end_layout
22353
22354 \begin_layout Standard
22355 by 
22356 \noun on
22357 Mike Ressler
22358 \end_layout
22359
22360 \begin_layout Standard
22361 \begin_inset VSpace bigskip
22362 \end_inset
22363
22364
22365 \end_layout
22366
22367 \begin_layout Standard
22368 \noindent
22369 LaTeX allows you to put a bit of extra space between rows in a table by
22370  giving an optional argument to the end-of-row specifier (
22371 \family typewriter
22372
22373 \backslash
22374
22375 \backslash
22376
22377 \family default
22378 ).
22379  LyX has not yet implemented this in a formal way, so here are two dirty
22380  little tricks to do the same job.
22381  
22382 \end_layout
22383
22384 \begin_layout Standard
22385 The first is the more formal, but longwinded way to do it.
22386  In the LaTeX preamble, add the following command definition: 
22387 \end_layout
22388
22389 \begin_layout Standard
22390
22391 \family typewriter
22392
22393 \backslash
22394 newcommand{
22395 \backslash
22396 extratablespace}[1]{
22397 \backslash
22398 noalign{vskip#1}}
22399 \family default
22400  This command takes a single argument---the amount of space you would like
22401  to insert.
22402  Insert the command in the first column of the row 
22403 \emph on
22404 after
22405 \emph default
22406  where you would like the space to appear.
22407  Here is an example (I've removed all the borders using 
22408 \family sans
22409 \bar under
22410 L
22411 \bar default
22412 ayout\SpecialChar \menuseparator
22413 Tabl
22414 \bar under
22415 e
22416 \family default
22417 \bar default
22418 ):
22419 \end_layout
22420
22421 \begin_layout Standard
22422 \align center
22423 \begin_inset Tabular
22424 <lyxtabular version="3" rows="4" columns="3">
22425 <features>
22426 <column alignment="center" valignment="top" width="0pt">
22427 <column alignment="center" valignment="top" width="0pt">
22428 <column alignment="center" valignment="top" width="0pt">
22429 <row>
22430 <cell alignment="center" valignment="top" topline="true" usebox="none">
22431 \begin_inset Text
22432
22433 \begin_layout Standard
22434
22435 \family roman
22436 \series medium
22437 \shape up
22438 \size normal
22439 \emph off
22440 \bar no
22441 \noun off
22442 \color none
22443 Minerals
22444 \end_layout
22445
22446 \end_inset
22447 </cell>
22448 <cell alignment="center" valignment="top" topline="true" usebox="none">
22449 \begin_inset Text
22450
22451 \begin_layout Standard
22452
22453 \family roman
22454 \series medium
22455 \shape up
22456 \size normal
22457 \emph off
22458 \bar no
22459 \noun off
22460 \color none
22461 Calcite
22462 \end_layout
22463
22464 \end_inset
22465 </cell>
22466 <cell alignment="center" valignment="top" topline="true" usebox="none">
22467 \begin_inset Text
22468
22469 \begin_layout Standard
22470
22471 \family roman
22472 \series medium
22473 \shape up
22474 \size normal
22475 \emph off
22476 \bar no
22477 \noun off
22478 \color none
22479 Dolomite
22480 \end_layout
22481
22482 \end_inset
22483 </cell>
22484 </row>
22485 <row>
22486 <cell alignment="center" valignment="top" topline="true" usebox="none">
22487 \begin_inset Text
22488
22489 \begin_layout Standard
22490
22491 \end_layout
22492
22493 \end_inset
22494 </cell>
22495 <cell alignment="center" valignment="top" topline="true" usebox="none">
22496 \begin_inset Text
22497
22498 \begin_layout Standard
22499
22500 \family roman
22501 \series medium
22502 \shape up
22503 \size normal
22504 \emph off
22505 \bar no
22506 \noun off
22507 \color none
22508 Quartz
22509 \end_layout
22510
22511 \end_inset
22512 </cell>
22513 <cell alignment="center" valignment="top" topline="true" usebox="none">
22514 \begin_inset Text
22515
22516 \begin_layout Standard
22517
22518 \family roman
22519 \series medium
22520 \shape up
22521 \size normal
22522 \emph off
22523 \bar no
22524 \noun off
22525 \color none
22526 Graphite
22527 \end_layout
22528
22529 \end_inset
22530 </cell>
22531 </row>
22532 <row>
22533 <cell alignment="center" valignment="top" topline="true" usebox="none">
22534 \begin_inset Text
22535
22536 \begin_layout Standard
22537
22538 \family roman
22539 \series medium
22540 \shape up
22541 \size normal
22542 \emph off
22543 \bar no
22544 \noun off
22545 \color none
22546 \begin_inset ERT
22547 status collapsed
22548
22549 \begin_layout Standard
22550
22551 \backslash
22552 extratablespace{2ex}
22553 \end_layout
22554
22555 \end_inset
22556
22557 Rocks
22558 \end_layout
22559
22560 \end_inset
22561 </cell>
22562 <cell alignment="center" valignment="top" topline="true" usebox="none">
22563 \begin_inset Text
22564
22565 \begin_layout Standard
22566
22567 \family roman
22568 \series medium
22569 \shape up
22570 \size normal
22571 \emph off
22572 \bar no
22573 \noun off
22574 \color none
22575 Limestone
22576 \end_layout
22577
22578 \end_inset
22579 </cell>
22580 <cell alignment="center" valignment="top" topline="true" usebox="none">
22581 \begin_inset Text
22582
22583 \begin_layout Standard
22584
22585 \family roman
22586 \series medium
22587 \shape up
22588 \size normal
22589 \emph off
22590 \bar no
22591 \noun off
22592 \color none
22593 Sandstone
22594 \end_layout
22595
22596 \end_inset
22597 </cell>
22598 </row>
22599 <row>
22600 <cell alignment="center" valignment="top" topline="true" usebox="none">
22601 \begin_inset Text
22602
22603 \begin_layout Standard
22604
22605 \end_layout
22606
22607 \end_inset
22608 </cell>
22609 <cell alignment="center" valignment="top" topline="true" usebox="none">
22610 \begin_inset Text
22611
22612 \begin_layout Standard
22613
22614 \family roman
22615 \series medium
22616 \shape up
22617 \size normal
22618 \emph off
22619 \bar no
22620 \noun off
22621 \color none
22622 Granite
22623 \end_layout
22624
22625 \end_inset
22626 </cell>
22627 <cell alignment="center" valignment="top" topline="true" usebox="none">
22628 \begin_inset Text
22629
22630 \begin_layout Standard
22631
22632 \family roman
22633 \series medium
22634 \shape up
22635 \size normal
22636 \emph off
22637 \bar no
22638 \noun off
22639 \color none
22640 Andesite
22641 \end_layout
22642
22643 \end_inset
22644 </cell>
22645 </row>
22646 </lyxtabular>
22647
22648 \end_inset
22649
22650
22651 \end_layout
22652
22653 \begin_layout Standard
22654 The second method is faster, but will make typographers and TeXperts all
22655  over the world groan.
22656  Simply put an end of row specifier with optional argument at the same spot.
22657  No fancy definitions are needed as in the above example, but there will
22658  be more space inserted than you specified because you essentially added
22659  a blank row plus the extra space.
22660  If the space added is too much, simply use a negative number, like so:
22661 \end_layout
22662
22663 \begin_layout Standard
22664 \align center
22665 \begin_inset Tabular
22666 <lyxtabular version="3" rows="4" columns="3">
22667 <features>
22668 <column alignment="center" valignment="top" width="0pt">
22669 <column alignment="center" valignment="top" width="0pt">
22670 <column alignment="center" valignment="top" width="0pt">
22671 <row>
22672 <cell alignment="center" valignment="top" topline="true" usebox="none">
22673 \begin_inset Text
22674
22675 \begin_layout Standard
22676
22677 \family roman
22678 \series medium
22679 \shape up
22680 \size normal
22681 \emph off
22682 \bar no
22683 \noun off
22684 \color none
22685 Minerals
22686 \end_layout
22687
22688 \end_inset
22689 </cell>
22690 <cell alignment="center" valignment="top" topline="true" usebox="none">
22691 \begin_inset Text
22692
22693 \begin_layout Standard
22694
22695 \family roman
22696 \series medium
22697 \shape up
22698 \size normal
22699 \emph off
22700 \bar no
22701 \noun off
22702 \color none
22703 Calcite
22704 \end_layout
22705
22706 \end_inset
22707 </cell>
22708 <cell alignment="center" valignment="top" topline="true" usebox="none">
22709 \begin_inset Text
22710
22711 \begin_layout Standard
22712
22713 \family roman
22714 \series medium
22715 \shape up
22716 \size normal
22717 \emph off
22718 \bar no
22719 \noun off
22720 \color none
22721 Dolomite
22722 \end_layout
22723
22724 \end_inset
22725 </cell>
22726 </row>
22727 <row>
22728 <cell alignment="center" valignment="top" topline="true" usebox="none">
22729 \begin_inset Text
22730
22731 \begin_layout Standard
22732
22733 \end_layout
22734
22735 \end_inset
22736 </cell>
22737 <cell alignment="center" valignment="top" topline="true" usebox="none">
22738 \begin_inset Text
22739
22740 \begin_layout Standard
22741
22742 \family roman
22743 \series medium
22744 \shape up
22745 \size normal
22746 \emph off
22747 \bar no
22748 \noun off
22749 \color none
22750 Quartz
22751 \end_layout
22752
22753 \end_inset
22754 </cell>
22755 <cell alignment="center" valignment="top" topline="true" usebox="none">
22756 \begin_inset Text
22757
22758 \begin_layout Standard
22759
22760 \family roman
22761 \series medium
22762 \shape up
22763 \size normal
22764 \emph off
22765 \bar no
22766 \noun off
22767 \color none
22768 Graphite
22769 \end_layout
22770
22771 \end_inset
22772 </cell>
22773 </row>
22774 <row>
22775 <cell alignment="center" valignment="top" topline="true" usebox="none">
22776 \begin_inset Text
22777
22778 \begin_layout Standard
22779
22780 \family roman
22781 \series medium
22782 \shape up
22783 \size normal
22784 \emph off
22785 \bar no
22786 \noun off
22787 \color none
22788 \begin_inset ERT
22789 status collapsed
22790
22791 \begin_layout Standard
22792
22793 \backslash
22794
22795 \backslash
22796 [-1ex]
22797 \end_layout
22798
22799 \end_inset
22800
22801  Rocks
22802 \end_layout
22803
22804 \end_inset
22805 </cell>
22806 <cell alignment="center" valignment="top" topline="true" usebox="none">
22807 \begin_inset Text
22808
22809 \begin_layout Standard
22810
22811 \family roman
22812 \series medium
22813 \shape up
22814 \size normal
22815 \emph off
22816 \bar no
22817 \noun off
22818 \color none
22819 Limestone
22820 \end_layout
22821
22822 \end_inset
22823 </cell>
22824 <cell alignment="center" valignment="top" topline="true" usebox="none">
22825 \begin_inset Text
22826
22827 \begin_layout Standard
22828
22829 \family roman
22830 \series medium
22831 \shape up
22832 \size normal
22833 \emph off
22834 \bar no
22835 \noun off
22836 \color none
22837 Sandstone
22838 \end_layout
22839
22840 \end_inset
22841 </cell>
22842 </row>
22843 <row>
22844 <cell alignment="center" valignment="top" topline="true" usebox="none">
22845 \begin_inset Text
22846
22847 \begin_layout Standard
22848
22849 \end_layout
22850
22851 \end_inset
22852 </cell>
22853 <cell alignment="center" valignment="top" topline="true" usebox="none">
22854 \begin_inset Text
22855
22856 \begin_layout Standard
22857
22858 \family roman
22859 \series medium
22860 \shape up
22861 \size normal
22862 \emph off
22863 \bar no
22864 \noun off
22865 \color none
22866 Granite
22867 \end_layout
22868
22869 \end_inset
22870 </cell>
22871 <cell alignment="center" valignment="top" topline="true" usebox="none">
22872 \begin_inset Text
22873
22874 \begin_layout Standard
22875
22876 \family roman
22877 \series medium
22878 \shape up
22879 \size normal
22880 \emph off
22881 \bar no
22882 \noun off
22883 \color none
22884 Andesite
22885 \end_layout
22886
22887 \end_inset
22888 </cell>
22889 </row>
22890 </lyxtabular>
22891
22892 \end_inset
22893
22894
22895 \end_layout
22896
22897 \begin_layout Standard
22898 It's short, sweet, and gets the job done quickly, even if it is really ugly.
22899  You may put away the rotten vegetables now! I promise I won't suggest anything
22900  else like that!
22901 \end_layout
22902
22903 \begin_layout Section
22904 Dropped Capitals
22905 \end_layout
22906
22907 \begin_layout Standard
22908 by 
22909 \noun on
22910 Mike Ressler
22911 \end_layout
22912
22913 \begin_layout Standard
22914 \begin_inset VSpace bigskip
22915 \end_inset
22916
22917
22918 \end_layout
22919
22920 \begin_layout Standard
22921 \noindent
22922 \begin_inset ERT
22923 status collapsed
22924
22925 \begin_layout Standard
22926
22927 \backslash
22928 newfont{
22929 \backslash
22930 tmpfont}{cmr17 scaled 2500}{
22931 \backslash
22932 tmpfont T}
22933 \backslash
22934 vspace*{-8.4ex}
22935 \end_layout
22936
22937 \end_inset
22938
22939
22940 \end_layout
22941
22942 \begin_layout Standard
22943 \noindent
22944 \begin_inset ERT
22945 status inlined
22946
22947 \begin_layout Standard
22948
22949 \backslash
22950 hangindent=3.3em 
22951 \backslash
22952 hangafter=-3
22953 \end_layout
22954
22955 \end_inset
22956
22957  hose of you who like the style of old books probably also like 
22958 \begin_inset Quotes eld
22959 \end_inset
22960
22961 dropped capitals
22962 \begin_inset Quotes erd
22963 \end_inset
22964
22965 ---those large capital letters which begin each new chapter or section.
22966  Implementing them with plain LyX/LaTeX is straightforward (assuming you
22967  know some plain TeX!) but does require a lot of work and many iterations,
22968  as you can see by all the ugly TeX-mode stuff at the beginning of this
22969  paragraph.
22970 \end_layout
22971
22972 \begin_layout Standard
22973 \begin_inset ERT
22974 status inlined
22975
22976 \begin_layout Standard
22977
22978 \backslash
22979 verb+
22980 \backslash
22981 bigdrop{-1em}{3}{ptmri}{T}+
22982 \end_layout
22983
22984 \end_inset
22985
22986 here is a much easier way of doing this, of course.
22987  The 
22988 \family typewriter
22989 dropcaps
22990 \family default
22991  (or the newer 
22992 \family typewriter
22993 dropping
22994 \family default
22995 ) package from CTAN allows a simple way to add such letters to your documents.
22996  Since this package is not a standard part of teTeX, I can't demonstrate
22997  it within this document, but if you copy this paragraph to a new document,
22998  delete the 
22999 \begin_inset Quotes eld
23000 \end_inset
23001
23002
23003 \family typewriter
23004
23005 \backslash
23006 verb
23007 \family default
23008
23009 \begin_inset Quotes erd
23010 \end_inset
23011
23012  and the pluses from the TeX code at the beginning of the paragraph, and
23013  add 
23014 \family typewriter
23015
23016 \backslash
23017 usepackage{dropcaps}
23018 \family default
23019  to your LaTeX preamble, you will get a nice Times Roman Italic 
23020 \begin_inset Quotes eld
23021 \end_inset
23022
23023 T
23024 \begin_inset Quotes erd
23025 \end_inset
23026
23027 , whose height is three lines of text and which protrudes 1 em into the
23028  margin.
23029  (Make certain you have copied 
23030 \begin_inset Quotes eld
23031 \end_inset
23032
23033
23034 \family typewriter
23035 dropcaps.sty
23036 \family default
23037
23038 \begin_inset Quotes erd
23039 \end_inset
23040
23041  into a directory where TeX can see it.) The first argument is the amount
23042  of indentation; in this case the negative sign moves it into the margin.
23043  The second argument is the height of the letter in number of lines of text.
23044  The third argument is the font name: virtually anything which has a tfm
23045  file should work (wade through the 
23046 \family typewriter
23047 .../texmf/fonts/tfm
23048 \family default
23049  directory for possibilities).
23050  My personal favorite is 
23051 \begin_inset Quotes eld
23052 \end_inset
23053
23054
23055 \family typewriter
23056 yinit
23057 \family default
23058
23059 \begin_inset Quotes erd
23060 \end_inset
23061
23062 , a fancy German font specifically designed for dropped capitals.
23063  The fourth argument is the letter (or letters) to be dropped.
23064  The 
23065 \family typewriter
23066 dropping
23067 \family default
23068  package also offers the 
23069 \family typewriter
23070
23071 \backslash
23072 bigdrop
23073 \family default
23074  command, as well as a slightly simplified 
23075 \family typewriter
23076
23077 \backslash
23078 dropping
23079 \family default
23080  command.
23081 \end_layout
23082
23083 \begin_layout Section
23084 Non-standard Paragraph Shapes
23085 \end_layout
23086
23087 \begin_layout Standard
23088 by 
23089 \noun on
23090 Mike Ressler
23091 \end_layout
23092
23093 \begin_layout Standard
23094 \begin_inset VSpace bigskip
23095 \end_inset
23096
23097
23098 \end_layout
23099
23100 \begin_layout Standard
23101 \begin_inset ERT
23102 status inlined
23103
23104 \begin_layout Standard
23105
23106 \backslash
23107 begin{sloppypar}
23108 \end_layout
23109
23110 \end_inset
23111
23112
23113 \end_layout
23114
23115 \begin_layout Standard
23116 \begin_inset ERT
23117 status collapsed
23118
23119 \begin_layout Standard
23120
23121 \backslash
23122 newdimen
23123 \backslash
23124 varunit 
23125 \end_layout
23126
23127 \begin_layout Standard
23128
23129 \backslash
23130 setlength{
23131 \backslash
23132 varunit}{4.5in}
23133 \end_layout
23134
23135 \end_inset
23136
23137
23138 \end_layout
23139
23140 \begin_layout Standard
23141 \noindent
23142 \begin_inset ERT
23143 status collapsed
23144
23145 \begin_layout Standard
23146
23147 \backslash
23148 parshape 19 0.45
23149 \backslash
23150 varunit 0.332
23151 \backslash
23152 varunit
23153 \end_layout
23154
23155 \begin_layout Standard
23156 0.40
23157 \backslash
23158 varunit 0.300
23159 \backslash
23160 varunit
23161 \end_layout
23162
23163 \begin_layout Standard
23164 0.35
23165 \backslash
23166 varunit 0.293
23167 \backslash
23168 varunit
23169 \end_layout
23170
23171 \begin_layout Standard
23172 0.30
23173 \backslash
23174 varunit 0.300
23175 \backslash
23176 varunit
23177 \end_layout
23178
23179 \begin_layout Standard
23180 0.25
23181 \backslash
23182 varunit 0.317
23183 \backslash
23184 varunit
23185 \end_layout
23186
23187 \begin_layout Standard
23188 0.20
23189 \backslash
23190 varunit 0.342
23191 \backslash
23192 varunit
23193 \end_layout
23194
23195 \begin_layout Standard
23196 0.15
23197 \backslash
23198 varunit 0.373
23199 \backslash
23200 varunit
23201 \end_layout
23202
23203 \begin_layout Standard
23204 0.10
23205 \backslash
23206 varunit 0.410
23207 \backslash
23208 varunit
23209 \end_layout
23210
23211 \begin_layout Standard
23212 0.05
23213 \backslash
23214 varunit 0.453
23215 \backslash
23216 varunit
23217 \end_layout
23218
23219 \begin_layout Standard
23220 0.00
23221 \backslash
23222 varunit 0.500
23223 \backslash
23224 varunit
23225 \end_layout
23226
23227 \begin_layout Standard
23228 0.05
23229 \backslash
23230 varunit 0.453
23231 \backslash
23232 varunit
23233 \end_layout
23234
23235 \begin_layout Standard
23236 0.10
23237 \backslash
23238 varunit 0.410
23239 \backslash
23240 varunit
23241 \end_layout
23242
23243 \begin_layout Standard
23244 0.15
23245 \backslash
23246 varunit 0.373
23247 \backslash
23248 varunit
23249 \end_layout
23250
23251 \begin_layout Standard
23252 0.20
23253 \backslash
23254 varunit 0.342
23255 \backslash
23256 varunit
23257 \end_layout
23258
23259 \begin_layout Standard
23260 0.25
23261 \backslash
23262 varunit 0.317
23263 \backslash
23264 varunit
23265 \end_layout
23266
23267 \begin_layout Standard
23268 0.30
23269 \backslash
23270 varunit 0.300
23271 \backslash
23272 varunit
23273 \end_layout
23274
23275 \begin_layout Standard
23276 0.35
23277 \backslash
23278 varunit 0.293
23279 \backslash
23280 varunit
23281 \end_layout
23282
23283 \begin_layout Standard
23284 0.40
23285 \backslash
23286 varunit 0.300
23287 \backslash
23288 varunit
23289 \end_layout
23290
23291 \begin_layout Standard
23292 0.45
23293 \backslash
23294 varunit 0.332
23295 \backslash
23296 varunit
23297 \end_layout
23298
23299 \begin_layout Standard
23300
23301 \end_layout
23302
23303 \end_inset
23304
23305 There are times when the tyranny of rectangular paragraphs must be overthrown.
23306  In such situations, a call to the delightful plain TeX command 
23307 \family typewriter
23308
23309 \backslash
23310 parshape
23311 \family default
23312  is called for.
23313  As you can see, completely arbitrary shapes can be laid out with a suitable
23314  set of linelength definitions.
23315  While this parshape may look a bit silly and useless, one could conceive
23316  of situations such as finely tuned dropped capitals, word wrapping around
23317  non-rectangular graphics, etc.
23318  which will benefit from such handcrafting.
23319 \end_layout
23320
23321 \begin_layout Standard
23322 \begin_inset VSpace bigskip
23323 \end_inset
23324
23325
23326 \end_layout
23327
23328 \begin_layout Standard
23329 The syntax is 
23330 \family typewriter
23331
23332 \backslash
23333 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
23334  #nindent #nlength
23335 \family default
23336 , where 
23337 \family typewriter
23338 numlines
23339 \family default
23340  is the number of lines of text which define the paragraph.
23341  If there turn out to be fewer lines, the shape is truncated; if there are
23342  more, the excess lines have the same dimensions as the last line of the
23343  definition.
23344  The 
23345 \family typewriter
23346 #nindent
23347 \family default
23348  and 
23349 \family typewriter
23350 #nlength
23351 \family default
23352  entries specify the indentation of the line from the left margin, and the
23353  length of the line as measured from that point.
23354  The shape applies only to the current paragraph; everything is reset to
23355  normal for the next paragraph.
23356 \end_layout
23357
23358 \begin_layout Standard
23359 \begin_inset ERT
23360 status inlined
23361
23362 \begin_layout Standard
23363
23364 \backslash
23365 end{sloppypar}
23366 \end_layout
23367
23368 \end_inset
23369
23370
23371 \end_layout
23372
23373 \begin_layout Section
23374 Summary
23375 \end_layout
23376
23377 \begin_layout Standard
23378 As you can see, the examples in this section range from the useful to the
23379  whimsical.
23380  While I don't expect that anyone will ever need the paragraph shape demonstrate
23381 d in the last section, the important point is that you can do almost anything
23382  you want in LyX if you are willing to figure out how to do it in TeX and
23383  LaTeX.
23384  TeX is a fantastically powerful typesetting system and all that power is
23385  available to you since LyX uses it as its backend.
23386  Happy LyXing!
23387 \end_layout
23388
23389 \end_body
23390 \end_document