]> git.lyx.org Git - lyx.git/blob - lib/doc/Extended.lyx
update from Ran Rutenberg
[lyx.git] / lib / doc / Extended.lyx
1 #LyX 1.4.3 created this file. For more info see http://www.lyx.org/
2 \lyxformat 245
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 \papercolumns 1
28 \papersides 2
29 \paperpagestyle headings
30 \tracking_changes false
31 \output_changes true
32 \end_header
33
34 \begin_body
35
36 \begin_layout Title
37 Extended LyX Features
38 \end_layout
39
40 \begin_layout Author
41 by the LyX Team
42 \begin_inset Foot
43 status collapsed
44
45 \begin_layout Standard
46 \noindent
47 Principal maintainer of this file is
48 \noun on
49  Mike Ressler
50 \noun default
51 .
52  If you have comments or error corrections, please send them to the LyX
53  Documentation mailing list, <lyx-docs@lists.lyx.org>.
54 \end_layout
55
56 \end_inset
57
58  
59 \end_layout
60
61 \begin_layout Standard
62 \begin_inset LatexCommand \tableofcontents{}
63
64 \end_inset
65
66
67 \end_layout
68
69 \begin_layout Chapter
70 Introduction
71 \end_layout
72
73 \begin_layout Standard
74 The 
75 \emph on
76 Extended LyX Features
77 \emph default
78  manual, which you are now reading, is essentially Part II of the 
79 \emph on
80 User's Guide\SpecialChar \@.
81
82 \emph default
83  The reason for splitting this document is simple: the 
84 \emph on
85 User's Guide
86 \emph default
87  is already huge, and it contains all of the basic features one needs to
88  know in order to prepare most documents.
89  However, the LyX Team has a long-term goal of making LyX extensible through
90  various configuration files and external packages.
91  That means that if you want to support the Fizzwizzle LaTeX package, you
92  can create a layout file for it without having to alter LyX itself.
93  We've already had contributions of several new features this way.
94  This is the place where all of that gets documented.
95 \end_layout
96
97 \begin_layout Standard
98 This manual also documents some special features, like fax support, version
99  control, and SGML support, which require additional software to work properly.
100  Lastly, there's a chapter of LaTeX tools and tips, things you can use to
101  spruce up your documents by directly using the powerful features of LaTeX.
102  After all, LyX 
103 \emph on
104 is
105 \emph default
106  only WYSIWYM, and will only ever interface to certain LaTeX features.
107 \end_layout
108
109 \begin_layout Standard
110 Of course, with all of this extra documentation, 
111 \emph on
112 Extended LyX Features
113 \emph default
114  may itself grow too big for its britches.
115  In that case, you can just call it the 
116 \begin_inset Quotes eld
117 \end_inset
118
119 Overextended Manual
120 \begin_inset Quotes erd
121 \end_inset
122
123  for fun!
124 \end_layout
125
126 \begin_layout Standard
127 If you haven't read the 
128 \emph on
129 Introduction 
130 \emph default
131 yet, you are definitely in the wrong manual.
132  The 
133 \emph on
134 Introduction
135 \emph default
136  is the first place to go, since it will direct you to the correct manual,
137  and it also describes the notation and format of all of the manuals.
138  You should also be thoroughly familiar with the 
139 \emph on
140 User's Guide
141 \emph default
142  and all of the basic features of LyX.
143  
144 \end_layout
145
146 \begin_layout Standard
147 In this document, many sections are independent articles contributed by
148  an individual and are noted as such.
149  This person is generally whoever wrote the layout file for the new document
150  class or LaTeX package, or implemented the feature.
151  If there is no mention of an author to a chapter [or chapter sections],
152  that means it was written by the LyX Documentation Team.
153 \end_layout
154
155 \begin_layout Standard
156 Since all the topics in this manual depend heavily on LyX's interaction
157  with LaTeX, this first chapter covers
158 \emph on
159  
160 \emph default
161 the inner workings of LyX and how to direct LyX to generate exactly the
162  LaTeX code you want.
163  It is obviously for more seasoned LyX users.
164 \end_layout
165
166 \begin_layout Chapter
167 LyX and LaTeX
168 \end_layout
169
170 \begin_layout Section
171 How LyX Uses LaTeX
172 \end_layout
173
174 \begin_layout Standard
175 \begin_inset LatexCommand \label{sec:lyxandlatex}
176
177 \end_inset
178
179 This chapter is for both TeX-nicians and the LaTeX-curious.
180  In it, we'll explain how LyX and LaTeX work together to produce printable
181  output.
182  This is the only place in any of the manuals where we assume you know something
183  about LaTeX.
184 \end_layout
185
186 \begin_layout Standard
187 At one time, we called LyX a 
188 \begin_inset Quotes eld
189 \end_inset
190
191 WYSIWYM frontend to LaTeX,
192 \begin_inset Quotes erd
193 \end_inset
194
195  but that's no longer true.
196  There are frontends to LaTeX out there.
197  They are basically editors with the ability to run LaTeX and mark any errors
198  in the file you're editing.
199  Although LyX 
200 \emph on
201 is
202 \emph default
203  an editor, and it 
204 \emph on
205 does
206 \emph default
207  run LaTeX, and it also marks errors in the file, it also does much, much
208  more.
209  Thanks to the WYSIWYM concept, you don't need LaTeX to use LyX effectively.
210  LyX has also added a few extensions to LaTeX.
211  Try the following sometime: select 
212 \family sans
213 Export\SpecialChar \menuseparator
214 LaTeX
215 \family default
216  from the 
217 \family sans
218 \bar under
219 F
220 \bar default
221 ile
222 \family default
223  menu, then look at the preamble of the resulting 
224 \family typewriter
225 .tex
226 \family default
227  file.
228  You'll notice a variety of new macros defined specifically by LyX.
229  These macros are defined automatically, according to the features you use
230  in the document.
231 \end_layout
232
233 \begin_layout Standard
234 There are several commands that automatically invoke LaTeX.
235  They are:
236 \end_layout
237
238 \begin_layout Itemize
239
240 \family sans
241 \bar under
242 V
243 \bar default
244 iew\SpecialChar \menuseparator
245 View\InsetSpace ~
246
247 \emph on
248 Format
249 \end_layout
250
251 \begin_layout Itemize
252
253 \family sans
254 \bar under
255 V
256 \bar default
257 iew\SpecialChar \menuseparator
258
259 \bar under
260 U
261 \bar default
262 pdate\SpecialChar \menuseparator
263
264 \emph on
265 Format
266 \end_layout
267
268 \begin_layout Itemize
269
270 \family sans
271 \bar under
272 F
273 \bar default
274 ile
275 \bar under
276 \SpecialChar \menuseparator
277 P
278 \bar default
279 rint
280 \end_layout
281
282 \begin_layout Itemize
283
284 \family sans
285 \bar under
286 F
287 \bar default
288 ile
289 \bar under
290 \SpecialChar \menuseparator
291 F
292 \bar default
293 ax
294 \end_layout
295
296 \begin_layout Standard
297 They will only invoke LaTeX if the file has changed since the last time
298  LaTeX was run.
299  
300 \end_layout
301
302 \begin_layout Standard
303 When you run LaTeX on the file you're editing, LyX performs these steps:
304 \end_layout
305
306 \begin_layout Enumerate
307 Convert the document to LaTeX and save to a file with the extension 
308 \family typewriter
309 .tex
310 \family default
311  in place of 
312 \family typewriter
313 .lyx
314 \family default
315 .
316 \end_layout
317
318 \begin_layout Enumerate
319 Run LaTeX on the 
320 \family typewriter
321 .tex
322 \family default
323  file (maybe several times).
324 \end_layout
325
326 \begin_layout Enumerate
327 If there are any errors, insert error boxes in the document to mark where
328  they are.
329  These boxes are transient and are not saved along with the document.
330 \end_layout
331
332 \begin_layout Standard
333 If you've run LaTeX using 
334 \family sans
335 View\InsetSpace ~
336 DVI
337 \family default
338 , LyX then executes 
339 \family typewriter
340 xdvi
341 \family default
342  on the Dvi file.
343  If you've used 
344 \family sans
345 View\InsetSpace ~
346 PostScript
347 \family default
348  or 
349 \family sans
350 \bar under
351 P
352 \bar default
353 rint
354 \family default
355 , LyX performs two more steps:
356 \end_layout
357
358 \begin_layout Itemize
359 Run 
360 \family typewriter
361 dvips
362 \family default
363  to convert the Dvi file to PostScript®:
364 \end_layout
365
366 \begin_deeper
367 \begin_layout Itemize
368 For 
369 \family sans
370 View\InsetSpace ~
371 PostScript
372 \family default
373 , the output file has the extension 
374 \family typewriter
375 .ps_tmp
376 \end_layout
377
378 \begin_layout Itemize
379 For 
380 \family sans
381 \bar under
382 P
383 \bar default
384 rint
385 \family default
386 \InsetSpace ~
387 , the output file has the extension 
388 \family typewriter
389 .ps
390 \family default
391 , as expected.
392 \end_layout
393
394 \end_deeper
395 \begin_layout Itemize
396 Execute 
397 \family typewriter
398 ghostview
399 \family default
400  or send the PostScript® file to the printer.
401 \end_layout
402
403 \begin_layout Section
404 \begin_inset Quotes eld
405 \end_inset
406
407 Help! LyX generated an unreadable 
408 \family typewriter
409 .tex
410 \family default
411  file!
412 \begin_inset Quotes erd
413 \end_inset
414
415
416 \end_layout
417
418 \begin_layout Standard
419 Die-hard LaTeX users will scream and howl this into the night, then declare
420  LyX useless, simply because they didn't RTFM.
421 \end_layout
422
423 \begin_layout Standard
424 We're going to set the record straight.
425  LyX produces two kinds of LaTeX files.
426  One is human readable.
427  The other is LyX readable.
428  Every time LyX executes LaTeX, it produces a LaTeX file that it can easily
429  scan for errors.
430  The resulting 
431 \family typewriter
432 .tex
433 \family default
434  file is not human readable.
435  Don't even try to read it.
436  If you want a 
437 \family typewriter
438 .tex
439 \family default
440  file that you can send to a colleague, select 
441 \family sans
442 \bar under
443 E
444 \bar default
445 xport\SpecialChar \menuseparator
446
447 \bar under
448 L
449 \bar default
450 aTeX
451 \family default
452  from the 
453 \family sans
454 \bar under
455 F
456 \bar default
457 ile
458 \family default
459  menu.
460 \end_layout
461
462 \begin_layout Section
463 Translating LaTeX files into LyX
464 \end_layout
465
466 \begin_layout Standard
467 You can import a LaTeX file into LyX by using the 
468 \family sans
469 \bar under
470 F
471 \bar default
472 ile\SpecialChar \menuseparator
473
474 \bar under
475 I
476 \bar default
477 mport\SpecialChar \menuseparator
478
479 \bar under
480 L
481 \bar default
482 aTeX
483 \family default
484  command in LyX.
485  This will call a Perl script named 
486 \family typewriter
487 reLyX
488 \family default
489 ---which will create a file 
490 \family typewriter
491 foo.lyx
492 \family default
493  from the file 
494 \family typewriter
495 foo.tex
496 \family default
497 ---and then open that file.
498  If the translation doesn't work, you can try calling 
499 \family typewriter
500 reLyX
501 \family default
502  from the command line, possibly using fancier options.
503 \end_layout
504
505 \begin_layout Standard
506
507 \family typewriter
508 reLyX
509 \family default
510  will translate most legal LaTeX, but not everything.
511  It will leave things it doesn't understand in TeX mode, so after translating
512  a file with 
513 \family typewriter
514 reLyX
515 \family default
516 , you can look for red text and hand-edit it to look right.
517 \end_layout
518
519 \begin_layout Standard
520
521 \family typewriter
522 reLyX
523 \family default
524  has its own section in the 
525 \emph on
526 Extended Features
527 \emph default
528  manual (as well as a Unix manpage equivalent), which you should read to
529  find out about what LaTeX isn't supported, bugs (and how to get around
530  them), and how to use the various options.
531 \end_layout
532
533 \begin_layout Standard
534 If you can't get 
535 \family typewriter
536 reLyX
537 \family default
538  to work, or you just want to put a piece of LaTeX code into a LyX file,
539  see Section
540 \begin_inset LatexCommand \ref{sec:latexcodes}
541
542 \end_inset
543
544 .
545 \end_layout
546
547 \begin_layout Section
548 Inserting LaTeX Code into LyX Documents 
549 \begin_inset LatexCommand \label{sec:Inserting-LaTeX-Code}
550
551 \end_inset
552
553
554 \end_layout
555
556 \begin_layout Standard
557 \begin_inset LatexCommand \label{sec:latexcodes}
558
559 \end_inset
560
561  This is a rather important point: You can always insert LaTeX code into
562  any LyX document.
563  LyX simply cannot, and will probably never be able to, display every possible
564  LaTeX construct.
565  If ever you need to insert LaTeX commands into your LyX document, you can
566  use the ERT box, which you can insert into your document with 
567 \family sans
568 \bar under
569 I
570 \bar default
571 nsert\SpecialChar \menuseparator
572
573 \bar under
574 T
575 \bar default
576 eX
577 \family default
578 .
579  The ERT box comes in three forms: collapsed, open, and inlined.
580  The first two are used just like any other collapsable (foldable) box (such
581  as footnotes), and are useful for significant amounts of LaTeX commands.
582  An 
583 \begin_inset Quotes eld
584 \end_inset
585
586 inlined
587 \begin_inset Quotes erd
588 \end_inset
589
590  ERT box displays its content as part of the button, and is useful for very
591  short sections of LaTeX commands.
592  
593 \begin_inset ERT
594 status inlined
595
596 \begin_layout Standard
597
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
690 \backslash
691 begin{tabular}{ll}
692 \end_layout
693
694 \begin_layout Standard
695
696
697 \backslash
698 begin{minipage}{5cm}
699 \end_layout
700
701 \begin_layout Standard
702
703 This is an example for a minipage environment.
704  You can put nearly everything in it, even (non-floating) figures and tables.
705  
706 \end_layout
707
708 \begin_layout Standard
709
710
711 \backslash
712 end{minipage}
713 \end_layout
714
715 \begin_layout Standard
716
717 &
718 \end_layout
719
720 \begin_layout Standard
721
722
723 \backslash
724 begin{minipage}{5cm}
725 \end_layout
726
727 \begin_layout Standard
728
729
730 \backslash
731 begin{verbatim}
732 \end_layout
733
734 \begin_layout Standard
735
736
737 \backslash
738 begin{minipage}{5cm}
739 \end_layout
740
741 \begin_layout Standard
742
743 This ...
744  
745 \end_layout
746
747 \begin_layout Standard
748
749
750 \backslash
751 end{minipage}
752 \end_layout
753
754 \begin_layout Standard
755
756
757 \backslash
758 end{verbatim}
759 \end_layout
760
761 \begin_layout Standard
762
763
764 \backslash
765 end{minipage}
766 \end_layout
767
768 \begin_layout Standard
769
770
771 \backslash
772 end{tabular}
773 \end_layout
774
775 \end_inset
776
777
778 \end_layout
779
780 \begin_layout Standard
781 In addition to these two methods, you can also create a separate file containing
782  some complex LaTeX structure.
783  You can then use 
784 \family sans
785 \bar under
786 I
787 \bar default
788 nsert\SpecialChar \menuseparator
789 Chil
790 \bar under
791 d
792 \bar default
793 \InsetSpace ~
794 Document
795 \family default
796  to include your file (you should select the type 
797 \family sans
798 Input
799 \family default
800 ).
801  We recommend that you only do this if you have a 
802 \family typewriter
803 .tex
804 \family default
805  file which you 
806 \emph on
807 know
808 \emph default
809  works already.
810  Otherwise, you'll have a big job tracking down LaTeX errors\SpecialChar \ldots{}
811
812 \end_layout
813
814 \begin_layout Standard
815 There are a few last notes to emphasize:
816 \end_layout
817
818 \begin_layout Itemize
819 Inside of LyX, LaTeX code appears 
820 \emph on
821 in red
822 \end_layout
823
824 \begin_layout Itemize
825 LyX 
826 \emph on
827 does not
828 \emph default
829  check if your LaTeX code is correct.
830 \end_layout
831
832 \begin_layout Itemize
833 Beware reinventing the wheel.
834 \end_layout
835
836 \begin_layout Standard
837 That last note refers to two things.
838  First, LyX does have quite a few features tucked into it, and more are
839  coming.
840  Be sure to check the manuals to make sure that LyX doesn't have such-and-such
841  feature before you go off merrily coding LaTeX.
842  Second, there are numerous LaTeX packages out there to do all sorts of
843  things, from labels to envelopes to fancy multipage tables.
844  Check out a CTAN site for details (see Section 
845 \begin_inset Quotes eld
846 \end_inset
847
848 Requirements
849 \begin_inset Quotes erd
850 \end_inset
851
852  of the 
853 \emph on
854 User's Guide
855 \emph default
856 ).
857 \begin_inset Foot
858 status open
859
860 \begin_layout Standard
861 Note from 
862 \noun on
863 John Weiss
864 \noun default
865 : I seem to do this an awful lot.
866  Sat down and merrily began coding something to print out labels, only to
867  learn that there were already 2 different LaTeX packages to do this.
868  Worse yet --- I had them already!
869 \end_layout
870
871 \end_inset
872
873
874 \end_layout
875
876 \begin_layout Standard
877 If you do need to do some wild and fancy things within your document, be
878  sure to check out a good LaTeX book for assistance.
879  There are a number of them listed in the bibliography of the 
880 \emph on
881 User's Guide
882 \emph default
883 .
884 \end_layout
885
886 \begin_layout Standard
887 There are a number of LaTeX commands which have to be placed before the
888  beginning of the actual text.
889  They go into the preamble, and this is explained in the next section.
890 \end_layout
891
892 \begin_layout Section
893 LyX and the LaTeX Preamble
894 \end_layout
895
896 \begin_layout Subsection
897 About the LaTeX Preamble
898 \end_layout
899
900 \begin_layout Standard
901 \begin_inset LatexCommand \label{sec:preamble}
902
903 \end_inset
904
905 If you already know LaTeX, there is no need to explain here what the preamble
906  is good for.
907  If you don't, the following will give you some ideas --- we recommend again
908  that you consult a LaTeX book for further information.
909  In any case, you should read the points below, because they explain what
910  you can do and what you don't need to do in the LaTeX preamble of a LyX
911  document.
912 \end_layout
913
914 \begin_layout Standard
915 The LaTeX preamble comes at the very beginning of a document, 
916 \emph on
917 before 
918 \emph default
919 the text.
920  It serves to:
921 \end_layout
922
923 \begin_layout Itemize
924 declare the document class.
925  LyX already does this for you.
926 \end_layout
927
928 \begin_deeper
929 \begin_layout Standard
930 If you're a seasoned LaTeX-nician, and you have some custom document class
931  you want to use, check out the 
932 \emph on
933 Customization Manual
934 \emph default
935  for information on how to make LyX interface to it.
936  Be sure to submit your efforts to the LyX Team for inclusion in future
937  versions!
938 \end_layout
939
940 \end_deeper
941 \begin_layout Itemize
942 declare the usage of packages.
943  LaTeX packages provide special commands, which are only available within
944  a document when the package has been declared in the preamble.
945  For example, the
946 \family typewriter
947  
948 \family default
949 package 
950 \family typewriter
951 indentfirst
952 \family default
953  forces all paragraphs to be indented.
954  There are other packages for labels, envelopes, margins, etc.
955  
956 \end_layout
957
958 \begin_layout Itemize
959 set counters, variables, lengths and widths.
960  There are several LaTeX counters and variables which 
961 \emph on
962 must
963 \emph default
964  be set globally from within the preamble in order to have the desired effect.
965  [There are other variables which you can set and reset inside the document,
966  too.] Margins are a good example of something which must be set in the preamble.
967  Another example is the label format for lists.
968  You can actually set these just about anywhere, but it's best to do it
969  just once, inside the preamble.
970 \end_layout
971
972 \begin_layout Itemize
973 declare user defined commands [with 
974 \family typewriter
975
976 \backslash
977 newcommand 
978 \family default
979 or 
980 \family typewriter
981
982 \backslash
983 renewcommand
984 \family default
985 ], mostly abbreviations for LaTeX commands which appear very often inside
986  a document.
987  Although the preamble is a good place to declare such commands, they 
988 \emph on
989 can
990 \emph default
991  be declared anywhere else [but 
992 \emph on
993 before
994 \emph default
995  they are used for the first time, of course\SpecialChar \ldots{}
996 ].
997  This can be useful if there is a lot of raw LaTeX code in your document,
998  which normally should not be the case.
999 \end_layout
1000
1001 \begin_layout Standard
1002 LyX adds its own set of definitions to the preamble of the 
1003 \family typewriter
1004 .tex
1005 \family default
1006  file it produces.
1007  This makes LaTeX files generated by LyX portable.
1008 \end_layout
1009
1010 \begin_layout Subsection
1011 Changing the Preamble
1012 \end_layout
1013
1014 \begin_layout Standard
1015 The commands which LyX adds to the preamble of a LaTeX file are fixed; you
1016  can't change them without patching LyX itself.
1017  You can, however, add your own stuff to the preamble.
1018  There are two ways to do this:
1019 \end_layout
1020
1021 \begin_layout Enumerate
1022 Select 
1023 \family sans
1024 \bar under
1025 L
1026 \bar default
1027 aTeX\InsetSpace ~
1028
1029 \bar under
1030 P
1031 \bar default
1032 reamble
1033 \family default
1034  from the 
1035 \family sans
1036 \bar under
1037 D
1038 \bar default
1039 ocument
1040 \family default
1041  menu, or via the 
1042 \family sans
1043 \bar under
1044 D
1045 \bar default
1046 ocument
1047 \family default
1048 \SpecialChar \menuseparator
1049
1050 \family sans
1051 \bar under
1052 S
1053 \bar default
1054 ettings
1055 \family default
1056  dialog, depending on your frontend.
1057  Note that the LyX keybindings will not work in this dialog, alas.
1058 \end_layout
1059
1060 \begin_layout Enumerate
1061 Use the preamble contents you've added as your default template (see 
1062 \begin_inset Quotes eld
1063 \end_inset
1064
1065 Basic LyX Setup
1066 \begin_inset Quotes erd
1067 \end_inset
1068
1069  in the 
1070 \emph on
1071 User's Guide
1072 \emph default
1073 ), so that it will be the default preamble for any file you create.
1074 \end_layout
1075
1076 \begin_layout Standard
1077 LyX adds anything in the 
1078 \family sans
1079 \bar under
1080 P
1081 \bar default
1082 reamble
1083 \family default
1084  dialog to its own built-in preamble.
1085  Before adding your own declarations in the preamble, you should make sure
1086  that LyX doesn't already support what you want to do (remember what we
1087  said about reinventing the wheel?).
1088  Also, 
1089 \emph on
1090 make sure your preamble code is correct
1091 \emph default
1092 .
1093  LyX doesn't check it.
1094 \end_layout
1095
1096 \begin_layout Subsection
1097 Examples
1098 \end_layout
1099
1100 \begin_layout Standard
1101 Here are some examples of what you can add to a preamble, and what they
1102  do:
1103 \end_layout
1104
1105 \begin_layout Subsubsection
1106 Example #1: Offsets
1107 \end_layout
1108
1109 \begin_layout Standard
1110 There are two variables under LaTeX that control page position: 
1111 \family typewriter
1112
1113 \backslash
1114 hoffset
1115 \family default
1116  and 
1117 \family typewriter
1118
1119 \backslash
1120 voffset
1121 \family default
1122 .
1123  Their names should be self-explanatory.
1124  These variables are useful if you think for a moment about computer labels.
1125  Sometimes, the size of a print medium and the area of the medium that you
1126  can actually print on aren't the same.
1127  This is where 
1128 \family typewriter
1129
1130 \backslash
1131 hoffset
1132 \family default
1133  and 
1134 \family typewriter
1135
1136 \backslash
1137 voffset
1138 \family default
1139  come in.
1140 \end_layout
1141
1142 \begin_layout Standard
1143 The default values for 
1144 \family typewriter
1145
1146 \backslash
1147 hoffset
1148 \family default
1149  and 
1150 \family typewriter
1151
1152 \backslash
1153 voffset
1154 \family default
1155  are both 0 pt.,\InsetSpace ~
1156 i.\InsetSpace ~
1157 e.\InsetSpace ~
1158 the page isn't shifted.
1159 \end_layout
1160
1161 \begin_layout Standard
1162 Unfortunately, some DVI drivers always seem to shift the page.
1163  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1164  If you're using LyX on a system that you don't personally maintain, and
1165  your sysadmin is a doofus, 
1166 \family typewriter
1167
1168 \backslash
1169 hoffset
1170 \family default
1171  and 
1172 \family typewriter
1173
1174 \backslash
1175 voffset
1176 \family default
1177  can save the day.
1178  Suppose you're left and top margins are always 0.5 inches too big.
1179  You can add this to the preamble:
1180 \end_layout
1181
1182 \begin_layout LyX-Code
1183
1184 \backslash
1185 setlength{
1186 \backslash
1187 hoffset}{-0.5 in}
1188 \end_layout
1189
1190 \begin_layout LyX-Code
1191
1192 \backslash
1193 setlength{
1194 \backslash
1195 voffset}{-0.5 in}
1196 \end_layout
1197
1198 \begin_layout Standard
1199 \SpecialChar \ldots{}
1200 and your margins should now be correct.
1201 \end_layout
1202
1203 \begin_layout Subsubsection
1204 Example #2: Labels
1205 \end_layout
1206
1207 \begin_layout Standard
1208 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1209  There's a rather nice package, available at your nearest CTAN archive,
1210  for printing sheets of labels, called 
1211 \family typewriter
1212 labels.sty
1213 \family default
1214 .
1215  Now, your system may not have this package installed by default.
1216  We leave that up to you to check.
1217  You'll also want to read the documentation for it; we're not going to do
1218  that for you.
1219  Since this is an example, however, we'll give you an example of how you
1220  use this package.
1221 \end_layout
1222
1223 \begin_layout Standard
1224 First, make sure you're using the 
1225 \family sans
1226 article 
1227 \family default
1228 document class.
1229  Next, you need to put the following in your preamble:
1230 \end_layout
1231
1232 \begin_layout LyX-Code
1233
1234 \backslash
1235 usepackage{labels}
1236 \end_layout
1237
1238 \begin_layout LyX-Code
1239
1240 \backslash
1241 LabelCols=3
1242 \end_layout
1243
1244 \begin_layout LyX-Code
1245
1246 \backslash
1247 LabelRows=7
1248 \end_layout
1249
1250 \begin_layout LyX-Code
1251
1252 \backslash
1253 LeftBorder=8mm
1254 \end_layout
1255
1256 \begin_layout LyX-Code
1257
1258 \backslash
1259 RightBorder=8mm
1260 \end_layout
1261
1262 \begin_layout LyX-Code
1263
1264 \backslash
1265 TopBorder=9mm
1266 \end_layout
1267
1268 \begin_layout LyX-Code
1269
1270 \backslash
1271 BottomBorder=2mm
1272 \end_layout
1273
1274 \begin_layout Standard
1275 This sets things up for Avery® label sheets, stock #5360.
1276  You're now ready to print labels, but you'll need to insert LaTeX code,
1277  placing the commands 
1278 \family typewriter
1279
1280 \backslash
1281 begin{labels}
1282 \family default
1283  and 
1284 \family typewriter
1285
1286 \backslash
1287 end{labels}
1288 \family default
1289  around each label text.
1290  This and other special features of 
1291 \family typewriter
1292 labels.sty
1293 \family default
1294  are explained in its documentation.
1295 \end_layout
1296
1297 \begin_layout Standard
1298 Someday, someone may write a LyX layout file to support this package directly.
1299  Maybe that someone is you.
1300 \end_layout
1301
1302 \begin_layout Subsubsection
1303 Example #3: Paragraph Indentation
1304 \end_layout
1305
1306 \begin_layout Standard
1307 Americans are trained to indent the first line of 
1308 \emph on
1309 every
1310 \emph default
1311  paragraph.
1312  As with all of their other weird quirks, most Americans will whine and
1313  moan until they can have their way and indent the first line of all paragraphs.
1314 \begin_inset Foot
1315 status collapsed
1316
1317 \begin_layout Standard
1318 Note from 
1319 \noun on
1320 John Weiss
1321 \noun default
1322 : This was written by an American --- 
1323 \emph on
1324 me
1325 \emph default
1326 ! It's my perception of my fellow countrymen.
1327  Tough if you don't like it.
1328  Thpbpbpbpbpbpbpbp!
1329 \end_layout
1330
1331 \end_inset
1332
1333
1334 \end_layout
1335
1336 \begin_layout Standard
1337 Of course, this behavior isn't standard typography.
1338  In books, you typically only indent the first line of a paragraph 
1339 \emph on
1340 if
1341 \emph default
1342  it follows another one.
1343  The idea behind indenting the first line of a paragraph is to distinguish
1344  neighboring paragraphs from one another.
1345  If there is no previous paragraph, for example, it follows a figure, or
1346  is the first paragraph in a section, then there is no special indentation.
1347  
1348 \end_layout
1349
1350 \begin_layout Standard
1351 If you're a typical American, though, you don't care about such esoteric
1352  things; you want your indentation! Add this to the preamble:
1353 \end_layout
1354
1355 \begin_layout LyX-Code
1356
1357 \backslash
1358 usepackage{indentfirst}
1359 \end_layout
1360
1361 \begin_layout Standard
1362 If your TeX distribution isn't a braindead one, you'll have this package,
1363  and all of your paragraphs will get the indentation you think they deserve.
1364 \end_layout
1365
1366 \begin_layout Subsubsection
1367 Example #4: This Document
1368 \end_layout
1369
1370 \begin_layout Standard
1371 You can also check out the preamble of this document to get an idea of some
1372  of the advanced things you can do.
1373  You'll probably need to make the 
1374 \family sans
1375 \bar under
1376 P
1377 \bar default
1378 reamble\SpecialChar \ldots{}
1379
1380 \family default
1381  dialog full-screen to see most of it.
1382  Also, there are more examples and an assortment of LaTeX 
1383 \begin_inset Quotes eld
1384 \end_inset
1385
1386 dirty tricks
1387 \begin_inset Quotes erd
1388 \end_inset
1389
1390  given in Chapter\InsetSpace ~
1391
1392 \begin_inset LatexCommand \ref{cha:secrets}
1393
1394 \end_inset
1395
1396 .
1397  
1398 \end_layout
1399
1400 \begin_layout Section
1401 LyX and LaTeX Errors
1402 \end_layout
1403
1404 \begin_layout Standard
1405 When LyX calls LaTeX, it tells LaTeX to blithely ignore any errors and keep
1406  going.
1407  It then uses the log-file from the LaTeX run to do a post-mortem.
1408  As we stated earlier in the chapter, LyX generates two kinds of 
1409 \family typewriter
1410 .tex
1411 \family default
1412  files, one of which it uses to locate errors in the document.
1413  If there was an error someplace, LyX will put a box with the word 
1414 \begin_inset Quotes eld
1415 \end_inset
1416
1417 Error
1418 \begin_inset Quotes erd
1419 \end_inset
1420
1421  at the appropriate place in the document.
1422 \begin_inset Foot
1423 status collapsed
1424
1425 \begin_layout Standard
1426 LyX will occasionally misguess where the error was.
1427  This will typically happen with tables, figures, math, and the preamble.
1428 \end_layout
1429
1430 \end_inset
1431
1432  It will also display a message alerting you to the fact that there were
1433  errors.
1434 \end_layout
1435
1436 \begin_layout Standard
1437 You can navigate through the errors by using 
1438 \family sans
1439 \bar under
1440 E
1441 \bar default
1442 rror
1443 \family default
1444  in the 
1445 \family sans
1446 \bar under
1447 N
1448 \bar default
1449 avigate
1450 \family default
1451  menu.
1452  You can 
1453 \begin_inset Quotes eld
1454 \end_inset
1455
1456 open
1457 \begin_inset Quotes erd
1458 \end_inset
1459
1460  the error-boxes and view the error message LaTeX produced by clicking on
1461  it.
1462 \end_layout
1463
1464 \begin_layout Standard
1465 Some folks also like to look at the log file directly, accessible from
1466 \family sans
1467  
1468 \bar under
1469 D
1470 \bar default
1471 ocument\SpecialChar \menuseparator
1472
1473 \bar under
1474 L
1475 \bar default
1476 aTeX\InsetSpace ~
1477 Log\InsetSpace ~
1478 File
1479 \family default
1480 .
1481  There are some fairly common error messages and warnings.
1482  We'll cover those here.
1483  You should look at a good LaTeX book for a complete listing.
1484 \end_layout
1485
1486 \begin_layout Itemize
1487 \begin_inset Quotes eld
1488 \end_inset
1489
1490
1491 \family typewriter
1492 LaTeX Warning:
1493 \family default
1494
1495 \begin_inset Quotes eld
1496 \end_inset
1497
1498
1499 \end_layout
1500
1501 \begin_deeper
1502 \begin_layout Standard
1503 Anything beginning with these word is a warning message for the purpose
1504  of 
1505 \begin_inset Quotes eld
1506 \end_inset
1507
1508 debugging
1509 \begin_inset Quotes erd
1510 \end_inset
1511
1512  the LaTeX code itself.
1513  You'll get messages like this if you added or changed cross-references
1514  or bibliography entries, in which case, LaTeX is trying to tell you that
1515  you need to make another run.
1516 \end_layout
1517
1518 \begin_layout Standard
1519 You can by-and-large ignore these.
1520 \end_layout
1521
1522 \end_deeper
1523 \begin_layout Itemize
1524 \begin_inset Quotes eld
1525 \end_inset
1526
1527
1528 \family typewriter
1529 LaTeX Font Warning:
1530 \family default
1531
1532 \begin_inset Quotes erd
1533 \end_inset
1534
1535
1536 \end_layout
1537
1538 \begin_deeper
1539 \begin_layout Standard
1540 Another warning message, this time about fonts which LaTeX couldn't find.
1541  The rest of the message will often say something about a replacement font
1542  that LaTeX used.
1543 \end_layout
1544
1545 \begin_layout Standard
1546 You can safely ignore these.
1547 \end_layout
1548
1549 \end_deeper
1550 \begin_layout Itemize
1551 \begin_inset Quotes eld
1552 \end_inset
1553
1554
1555 \family typewriter
1556 Overfull 
1557 \backslash
1558 hbox
1559 \family default
1560
1561 \begin_inset Quotes erd
1562 \end_inset
1563
1564
1565 \end_layout
1566
1567 \begin_deeper
1568 \begin_layout Standard
1569 LaTeX absolutely 
1570 \emph on
1571 loves
1572 \emph default
1573  to spew these out.
1574  They are warning you about lines that were too long and run past the right
1575  margin.
1576  Almost always, this is unnoticeable in the final output.
1577  Or, only one or two characters extend past the margin.
1578  LaTeX seems to generate at least one of these messages for just about any
1579  document you write.
1580 \end_layout
1581
1582 \begin_layout Standard
1583 You can ignore these stupid messages.
1584  Your eyes will tell you if there's a problem with something that's too
1585  wide; just look at the output.
1586 \end_layout
1587
1588 \end_deeper
1589 \begin_layout Itemize
1590 \begin_inset Quotes eld
1591 \end_inset
1592
1593
1594 \family typewriter
1595 Underfull 
1596 \backslash
1597 hbox
1598 \family default
1599
1600 \begin_inset Quotes erd
1601 \end_inset
1602
1603
1604 \end_layout
1605
1606 \begin_deeper
1607 \begin_layout Standard
1608 Not quite as common as its cousin.
1609  LaTeX seems to like to print lines that are a bit too wide as opposed to
1610  ones that are a bit too narrow.
1611  We have no idea why.
1612 \end_layout
1613
1614 \begin_layout Standard
1615 You can ignore these, too.
1616 \end_layout
1617
1618 \end_deeper
1619 \begin_layout Itemize
1620 \begin_inset Quotes eld
1621 \end_inset
1622
1623
1624 \family typewriter
1625 Overfull 
1626 \backslash
1627 vbox
1628 \family default
1629
1630 \begin_inset Quotes erd
1631 \end_inset
1632
1633  and 
1634 \begin_inset Quotes eld
1635 \end_inset
1636
1637
1638 \family typewriter
1639 Underfull 
1640 \backslash
1641 vbox
1642 \family default
1643
1644 \begin_inset Quotes erd
1645 \end_inset
1646
1647
1648 \end_layout
1649
1650 \begin_deeper
1651 \begin_layout Standard
1652 Warnings about troubles breaking the page.
1653  Once again, just look at the output.
1654  Your eyes will tell you where something has gone wrong.
1655 \end_layout
1656
1657 \end_deeper
1658 \begin_layout Itemize
1659 \begin_inset Quotes eld
1660 \end_inset
1661
1662  
1663 \family typewriter
1664 LaTeX Error: File 
1665 \begin_inset Quotes els
1666 \end_inset
1667
1668 Xxxx
1669 \begin_inset Quotes ers
1670 \end_inset
1671
1672  not found
1673 \family default
1674
1675 \begin_inset Quotes erd
1676 \end_inset
1677
1678  
1679 \end_layout
1680
1681 \begin_deeper
1682 \begin_layout Standard
1683 The file 
1684 \begin_inset Quotes eld
1685 \end_inset
1686
1687 Xxxx
1688 \begin_inset Quotes erd
1689 \end_inset
1690
1691  isn't installed on this system.
1692  This usually appears because some package your document needs isn't installed.
1693  If you didn't touch the preamble or didn't use the 
1694 \family typewriter
1695
1696 \backslash
1697 usepackage{}
1698 \family default
1699  command, then one of the packages LyX tried to load is missing.
1700  Use 
1701 \family sans
1702 \bar under
1703 H
1704 \bar default
1705 elp\SpecialChar \menuseparator
1706 L
1707 \bar under
1708 a
1709 \bar default
1710 TeX Configuration
1711 \family default
1712 , to get a list of packages that LyX knows about.
1713  This file is updated whenever you reconfigure LyX (using 
1714 \family sans
1715 \bar under
1716 T
1717 \bar default
1718 ools
1719 \bar under
1720 \SpecialChar \menuseparator
1721 R
1722 \bar default
1723 econfigure
1724 \family default
1725 ) and tells you which packages have been detected and what they do.
1726 \end_layout
1727
1728 \begin_layout Standard
1729 If you 
1730 \emph on
1731 did
1732 \emph default
1733  use the 
1734 \family typewriter
1735
1736 \backslash
1737 usepackage{}
1738 \family default
1739  command, and the package in question isn't installed, you'll need to install
1740  it yourself.
1741 \end_layout
1742
1743 \end_deeper
1744 \begin_layout Itemize
1745 \begin_inset Quotes eld
1746 \end_inset
1747
1748
1749 \family typewriter
1750 LaTeX Error: Unknown option
1751 \family default
1752
1753 \begin_inset Quotes erd
1754 \end_inset
1755
1756
1757 \end_layout
1758
1759 \begin_deeper
1760 \begin_layout Standard
1761 Error messages beginning with this are trying to tell you that you specified
1762  a bad or undefined option to a package.
1763  Check the package's documentation.
1764 \end_layout
1765
1766 \end_deeper
1767 \begin_layout Itemize
1768 \begin_inset Quotes eld
1769 \end_inset
1770
1771
1772 \family typewriter
1773 Undefined control sequence
1774 \family default
1775
1776 \begin_inset Quotes erd
1777 \end_inset
1778
1779
1780 \end_layout
1781
1782 \begin_deeper
1783 \begin_layout Standard
1784 If you've inserted LaTeX code into your document, but made a typo, you'll
1785  get one of these.
1786  You may have forgotten to load a package.
1787  In any case, this error message usually means that you used an undefined
1788  command.
1789 \end_layout
1790
1791 \end_deeper
1792 \begin_layout Standard
1793 There are other error and warning messages.
1794  Some are self-explanatory.
1795  These are usually LaTeX messages.
1796  Others are downright cryptic.
1797  These are actually TeX error messages, and we really have 
1798 \emph on
1799 no clue
1800 \emph default
1801  what they mean or how to decipher them.
1802 \end_layout
1803
1804 \begin_layout Standard
1805 There's a general sequence you should follow if you get error messages:
1806 \end_layout
1807
1808 \begin_layout Enumerate
1809 Look at the LaTeX code you inserted for typos.
1810 \end_layout
1811
1812 \begin_layout Enumerate
1813 If there are no typos, check and see that you used the command(s) correctly.
1814 \end_layout
1815
1816 \begin_layout Enumerate
1817 If you get a bunch of error boxes piled up at the very top of the document,
1818  it means that there are errors in the preamble.
1819  Start debugging your preamble.
1820 \end_layout
1821
1822 \begin_layout Enumerate
1823 If you didn't add anything to the preamble and didn't add any LaTeX code
1824  to the document, the first suspect is your LaTeX distribution itself.
1825  Check for missing packages and install them.
1826 \end_layout
1827
1828 \begin_layout Enumerate
1829 Okay, so there are no missing packages.
1830  Did you use any of the fine-tuning options in LyX? Specifically, did you
1831  
1832 \emph on
1833 misuse
1834 \emph default
1835  any of them, like trying to manually insert lots of 
1836 \family sans
1837 Protected\InsetSpace ~
1838 Blank
1839 \family default
1840 s, 
1841 \family sans
1842 Linebreak
1843 \family default
1844 s, or 
1845 \family sans
1846 Pagebreak
1847 \family default
1848 s? Did you try to kludge something together with these instead of using
1849  the appropriate paragraph environment?
1850 \end_layout
1851
1852 \begin_layout Enumerate
1853 All right, you didn't use any of the fine-tuning options, you played by
1854  the rules.
1855  Did you try to pull a fancy maneuver? Did you do something funky inside
1856  a table or an equation, like inserting a graphic into a table cell?
1857 \end_layout
1858
1859 \begin_layout Enumerate
1860 Do you have long sections of text where LaTeX cannot find a place to break
1861  a line? By default, LaTeX is rather strict about how much extra inter-word
1862  spacing it will add in order to break a line.
1863  Preferrably, you should rework the paragraph to avoid the problem.
1864  If this isn't an option, you can wrap your text in 
1865 \family typewriter
1866
1867 \backslash
1868 sloppypar
1869 \family default
1870  to make LaTeX's line breaking more, well, sloppy.
1871 \end_layout
1872
1873 \begin_layout Enumerate
1874 Did you go overboard with the nesting? LyX (currently) doesn't check to
1875  make sure you're in the limits for nesting environments.
1876  If you nested a bunch of environments to the 
1877 \begin_inset Formula $17^{\mathrm{th}}$
1878 \end_inset
1879
1880  level, that's the problem.
1881 \end_layout
1882
1883 \begin_layout Enumerate
1884 Okay, you didn't get any error messages, but your output looks whacked.
1885  If you have a table or figure that's too wide or long for the page, you
1886  need to:
1887 \end_layout
1888
1889 \begin_deeper
1890 \begin_layout Enumerate
1891 rescale the figure so it fits.
1892 \end_layout
1893
1894 \begin_layout Enumerate
1895 trim down the table so it fits.
1896 \end_layout
1897
1898 \begin_layout Standard
1899 If something else is wrong with the output, and you didn't try to pull anything
1900  fancy or kludge the fine-tuning options, we're not sure what's wrong.
1901 \end_layout
1902
1903 \end_deeper
1904 \begin_layout Standard
1905 If all this doesn't help --- well, then 
1906 \emph on
1907 perhaps
1908 \emph default
1909  you might have found a bug in LyX\SpecialChar \ldots{}
1910
1911 \end_layout
1912
1913 \begin_layout Chapter
1914 Supplemental Tools
1915 \end_layout
1916
1917 \begin_layout Section
1918 Preparing a Bibliography with BibTeX
1919 \begin_inset LatexCommand \label{sec:Preparing-a-Bibliography}
1920
1921 \end_inset
1922
1923
1924 \end_layout
1925
1926 \begin_layout Standard
1927 by 
1928 \noun on
1929 Mike Ressler
1930 \noun default
1931  and 
1932 \noun on
1933 Jürgen Spitzmüller
1934 \end_layout
1935
1936 \begin_layout Standard
1937 \begin_inset VSpace bigskip
1938 \end_inset
1939
1940
1941 \end_layout
1942
1943 \begin_layout Standard
1944 \noindent
1945 STOP! If you don't know what BibTeX is, or have a reasonably good idea of
1946  how to use it (
1947 \emph on
1948 e.g.
1949
1950 \emph default
1951  setting up your own bibliographic databases), 
1952 \emph on
1953 run
1954 \emph default
1955 , do not walk, to your nearest copy of the 2nd edition of Lamport's 
1956 \emph on
1957 LaTeX: A Document Preparation System
1958 \emph default
1959 , particularly Appendix B.
1960  The rest of this discussion assumes you have created a correct bibliography
1961  file, that you have all relevant environment variables set correctly (esp.
1962  
1963 \family typewriter
1964 BIBINPUTS
1965 \family default
1966
1967 \family typewriter
1968 BSTINPUTS
1969 \family default
1970 , and 
1971 \family typewriter
1972 TEXINPUTS
1973 \family default
1974 ), and that if sufficiently desperate, you could create and 
1975 \begin_inset Quotes eld
1976 \end_inset
1977
1978 TeX
1979 \begin_inset Quotes erd
1980 \end_inset
1981
1982  a LaTeX file with a BibTeX database.
1983  
1984 \end_layout
1985
1986 \begin_layout Standard
1987 For those who don't know what BibTeX is, it is a system for creating a large
1988  database of your most used journal references.
1989  For all future articles you write, you only need to include this standard
1990  database and reference the appropriate key to each reference.
1991  Even if you write only a few papers with handful of references each, it
1992  is well worth your time to examine BibTeX and decide whether it will be
1993  useful to you.
1994 \end_layout
1995
1996 \begin_layout Standard
1997 To use BibTeX with LyX, first read the 
1998 \emph on
1999 User Guide
2000 \emph default
2001  where it describes how to insert citations.
2002  The basic mechanism for inserting BibTeX references is the same.
2003  Then, at the very end of your document, select 
2004 \family sans
2005 Insert\SpecialChar \menuseparator
2006 List
2007 \family default
2008  / 
2009 \family sans
2010 TOC\SpecialChar \menuseparator
2011 BibTeX Reference
2012 \family default
2013 .
2014  In the resulting dialog, fill out the dialog boxes as follows: 
2015 \end_layout
2016
2017 \begin_layout Description
2018 Database: enter the name of your 
2019 \family typewriter
2020 .bib
2021 \family default
2022  file 
2023 \emph on
2024 without
2025 \emph default
2026  the 
2027 \family typewriter
2028 .bib
2029 \family default
2030  extension.
2031  For searching multiple 
2032 \family typewriter
2033 .bib
2034 \family default
2035  files, just enter them in the desired order, separated by commas.
2036  
2037 \end_layout
2038
2039 \begin_layout Description
2040 Style: enter the name of your BibTeX style file *without* the 
2041 \family typewriter
2042 .bst
2043 \family default
2044  extension.
2045  The default style is 
2046 \family typewriter
2047 plain
2048 \family default
2049  (which should be included in your LaTeX distribution, so you don't have
2050  to worry about creating it).
2051 \end_layout
2052
2053 \begin_layout Standard
2054 For each citation, assuming that the source is in the 
2055 \family typewriter
2056 .bib
2057 \family default
2058  file, just call 
2059 \family sans
2060 \bar under
2061 I
2062 \bar default
2063 nsert\SpecialChar \menuseparator
2064
2065 \bar under
2066 C
2067 \bar default
2068 itation Reference
2069 \family default
2070  at the correct location in the text, and enter the appropriate reference
2071  key.
2072  Nothing else is required; when invoking 
2073 \family sans
2074 \bar under
2075 V
2076 \bar default
2077 iew\SpecialChar \menuseparator
2078
2079 \bar under
2080 D
2081 \bar default
2082 VI
2083 \family default
2084 , for example, you should see that BibTex and LaTeX are invoked as needed,
2085  including multiple invocations of LaTeX.
2086  
2087 \end_layout
2088
2089 \begin_layout Subsection
2090 Alternative Citation Styles
2091 \end_layout
2092
2093 \begin_layout Standard
2094 Standard BibTeX uses numbers (e.\InsetSpace \thinspace{}
2095 g.\InsetSpace \space{}
2096
2097 \begin_inset Quotes eld
2098 \end_inset
2099
2100 [12]
2101 \begin_inset Quotes erd
2102 \end_inset
2103
2104 ) to refer to a cited work.
2105  However, in many scientific disciplines, other citation styles are in use.
2106  The most common one is the author-year style (e.\InsetSpace \thinspace{}
2107 g.\InsetSpace \space{}
2108
2109 \begin_inset Quotes eld
2110 \end_inset
2111
2112 Knuth 1984a
2113 \begin_inset Quotes erd
2114 \end_inset
2115
2116 ).
2117  LyX supports two packages that provide this style, 
2118 \family typewriter
2119 natbib
2120 \family default
2121  and 
2122 \family typewriter
2123 jurabib
2124 \family default
2125 .
2126  Both packages have their own pros and cons, which cannot be listed in detail.
2127  If you only want to have simple author-year (or author-numerical) style
2128  or if you want to use one of the countless style files for natbib, than
2129  the established 
2130 \family typewriter
2131 natbib
2132 \family default
2133  package is probably your choice.
2134  If you need special features like short title references, ibidem etc., you
2135  might consider the fairly new 
2136 \family typewriter
2137 jurabib
2138 \family default
2139  package.
2140 \end_layout
2141
2142 \begin_layout Standard
2143 The handling of both packages in LyX is basically the same.
2144  Go to 
2145 \family sans
2146 \bar under
2147 D
2148 \bar default
2149 ocument\SpecialChar \menuseparator
2150
2151 \bar under
2152 S
2153 \bar default
2154 ettings 
2155 \family default
2156 and select the 
2157 \family sans
2158 Bibliography
2159 \family default
2160  pane (with the xforms frontend: the 
2161 \family sans
2162 Extras
2163 \family default
2164  tab).
2165  Then select 
2166 \family sans
2167 Natbib
2168 \family default
2169  or 
2170 \family sans
2171 Jurabib
2172 \family default
2173 .
2174  With both packages, you will get some extra features in the citation dialog
2175  and you can select the style of the reference (
2176 \begin_inset Quotes eld
2177 \end_inset
2178
2179 Knuth 1984
2180 \begin_inset Quotes erd
2181 \end_inset
2182
2183
2184 \begin_inset Quotes eld
2185 \end_inset
2186
2187 Knuth (1984)
2188 \begin_inset Quotes erd
2189 \end_inset
2190
2191
2192 \begin_inset Quotes eld
2193 \end_inset
2194
2195 Knuth, 1984
2196 \begin_inset Quotes erd
2197 \end_inset
2198
2199
2200 \begin_inset Quotes eld
2201 \end_inset
2202
2203 1984
2204 \begin_inset Quotes erd
2205 \end_inset
2206
2207  etc.).
2208  Note that both packages need specifically designed style files (they both
2209  ship their own, while there are lots of additional style files and even
2210  an interactive style file builder
2211 \begin_inset Foot
2212 status collapsed
2213
2214 \begin_layout Standard
2215 See 
2216 \begin_inset LatexCommand \url{ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/}
2217
2218 \end_inset
2219
2220
2221 \end_layout
2222
2223 \end_inset
2224
2225  for 
2226 \family typewriter
2227 natbib
2228 \family default
2229  available).
2230 \end_layout
2231
2232 \begin_layout Subsection
2233 Sectionated Bibliographies
2234 \begin_inset LatexCommand \label{sub:Sectionated-Bibliographies}
2235
2236 \end_inset
2237
2238
2239 \end_layout
2240
2241 \begin_layout Standard
2242 Sometimes you might need to divide your bibliography into several sections.
2243  If you are, for instance, a historian, the possibility to separate sources
2244  and scientific works is most likely a 
2245 \begin_inset Quotes eld
2246 \end_inset
2247
2248 must have
2249 \begin_inset Quotes erd
2250 \end_inset
2251
2252 .
2253  Unfortunately, BibTeX itself does not allow you to do this.
2254  The good news is, though: With the help of some LaTeX packages, BibTeX
2255  can be extended to fit your historical needs.
2256 \end_layout
2257
2258 \begin_layout Standard
2259 As of version 1.4, LyX provides native support for one of these packages,
2260  Stefan Ulrich's 
2261 \family typewriter
2262 bibtopic
2263 \family default
2264 .
2265 \begin_inset Foot
2266 status collapsed
2267
2268 \begin_layout Standard
2269 Available from 
2270 \begin_inset LatexCommand \url{ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/}
2271
2272 \end_inset
2273
2274
2275 \end_layout
2276
2277 \end_inset
2278
2279  The advantage of this package (compared to other packages like 
2280 \family typewriter
2281 multibib
2282 \family default
2283 ) is that you don't need to define new citation commands.
2284  Instead, you need to prepare different bibliographic databases which include
2285  the entries for the different sections of the bibliography.
2286  For example: If you want to divide your bibliography into the sections
2287  
2288 \begin_inset Quotes eld
2289 \end_inset
2290
2291 Sources
2292 \begin_inset Quotes erd
2293 \end_inset
2294
2295  and 
2296 \begin_inset Quotes eld
2297 \end_inset
2298
2299 Scientific works
2300 \begin_inset Quotes erd
2301 \end_inset
2302
2303 , you first need to create two bibliographic databases, e.\InsetSpace \thinspace{}
2304 g.\InsetSpace \space{}
2305
2306 \family typewriter
2307 sources.bib
2308 \family default
2309  and 
2310 \family typewriter
2311 scientific.bib
2312 \family default
2313 .
2314  
2315 \end_layout
2316
2317 \begin_layout Standard
2318 In LyX, go to 
2319 \family sans
2320 \bar under
2321 D
2322 \bar default
2323 ocument\SpecialChar \menuseparator
2324
2325 \bar under
2326 S
2327 \bar default
2328 ettings 
2329 \family default
2330 and select the 
2331 \family sans
2332 Bibliography
2333 \family default
2334  pane (with the xforms frontend: the 
2335 \family sans
2336 Extras
2337 \family default
2338  tab).
2339  Check 
2340 \family sans
2341 Sectionated\InsetSpace ~
2342 bibliography
2343 \family default
2344 .
2345  Now you can insert multiple BibTeX references (as described in section\InsetSpace ~
2346
2347 \begin_inset LatexCommand \ref{sec:Preparing-a-Bibliography}
2348
2349 \end_inset
2350
2351 ), one for each section of your bibliography.
2352  Returning to our example: Insert a BibTeX reference for the database 
2353 \family typewriter
2354 sources.bib
2355 \family default
2356  and a second one for the database 
2357 \family typewriter
2358 scientific.bib
2359 \family default
2360 .
2361  You are free to use the same or different styles for each section.
2362  Additionally, you can chose if the bibliography section should contain
2363  
2364 \begin_inset Quotes eld
2365 \end_inset
2366
2367 all cited references
2368 \begin_inset Quotes erd
2369 \end_inset
2370
2371  of the specified database(s) (which is the default), 
2372 \begin_inset Quotes eld
2373 \end_inset
2374
2375 all uncited references
2376 \begin_inset Quotes erd
2377 \end_inset
2378
2379  or even 
2380 \begin_inset Quotes eld
2381 \end_inset
2382
2383 all references
2384 \begin_inset Quotes erd
2385 \end_inset
2386
2387 .
2388  This might be useful if you would like to separate your bibliography into
2389  three sections: 
2390 \begin_inset Quotes eld
2391 \end_inset
2392
2393 Cited sources
2394 \begin_inset Quotes erd
2395 \end_inset
2396
2397
2398 \begin_inset Quotes eld
2399 \end_inset
2400
2401 Uncited sources
2402 \begin_inset Quotes erd
2403 \end_inset
2404
2405 , and 
2406 \begin_inset Quotes eld
2407 \end_inset
2408
2409 Scientific works
2410 \begin_inset Quotes erd
2411 \end_inset
2412
2413 .
2414  The titles for the sections can be added as ordinary sections or subsections.
2415  Since 
2416 \family typewriter
2417 bibtopic
2418 \family default
2419  removes the bibliography title, you have manually re-add that, too (as
2420  a chapter* or section*, for instance).
2421 \end_layout
2422
2423 \begin_layout Subsection
2424 Multiple Bibliographies
2425 \end_layout
2426
2427 \begin_layout Standard
2428 Multiple bibliographies, e.\InsetSpace \thinspace{}
2429 g.\InsetSpace \space{}
2430 a bibliography for each section or chapter of
2431  the document, are not supported by BibTeX itself.
2432  But the 
2433 \family typewriter
2434 bibtopic
2435 \family default
2436  package, which is used for the creation of sectionated bibliographies in
2437  LyX (cf.\InsetSpace ~
2438 section\InsetSpace ~
2439
2440 \begin_inset LatexCommand \ref{sub:Sectionated-Bibliographies}
2441
2442 \end_inset
2443
2444 ), provides an easy way to solve this task, if you are willing to use some
2445  LaTeX-Code (ERT, cf.\InsetSpace ~
2446 section\InsetSpace ~
2447
2448 \begin_inset LatexCommand \ref{sec:Inserting-LaTeX-Code}
2449
2450 \end_inset
2451
2452 ).
2453 \begin_inset Foot
2454 status collapsed
2455
2456 \begin_layout Standard
2457 An alternative approach is to use the 
2458 \family typewriter
2459 chapterbib
2460 \family default
2461  or 
2462 \family typewriter
2463 bibunits
2464 \family default
2465  package, respectively.
2466 \end_layout
2467
2468 \end_inset
2469
2470
2471 \end_layout
2472
2473 \begin_layout Standard
2474 First, go to 
2475 \family sans
2476 \bar under
2477 D
2478 \bar default
2479 ocument\SpecialChar \menuseparator
2480
2481 \bar under
2482 S
2483 \bar default
2484 ettings 
2485 \family default
2486 and select the 
2487 \family sans
2488 Bibliography
2489 \family default
2490  pane (with the xforms frontend: the 
2491 \family sans
2492 Extras
2493 \family default
2494  tab).
2495  Check 
2496 \family sans
2497 Sectionated\InsetSpace ~
2498 bibliography
2499 \family default
2500 .
2501  In the document, you have to enclose the sections, which shall contain
2502  their own bibliography (including the BibTeX reference itself), between
2503  
2504 \family typewriter
2505
2506 \backslash
2507 begin{btUnit}
2508 \family default
2509  and 
2510 \family typewriter
2511
2512 \backslash
2513 end{btUnit}
2514 \family default
2515  (those commands have to be inserted as ERT).
2516  The bibliography will contain all references which have been cited in the
2517  current btUnit.
2518  N.\InsetSpace \thinspace{}
2519 B.: If you are using this approach, then 
2520 \emph on
2521 every
2522 \emph default
2523  citation reference has to be inside some btUnit.
2524  Also, the btUnits cannot be nested.
2525 \end_layout
2526
2527 \begin_layout Section
2528 Making an Index
2529 \end_layout
2530
2531 \begin_layout Standard
2532 A good index is one of the hardest things to make in a lengthy document,
2533  but LyX helps make things a bit simpler by interfacing to the 
2534 \family typewriter
2535 makeindex
2536 \family default
2537  program which is found in most recent LaTeX distributions.
2538 \begin_inset Foot
2539 status collapsed
2540
2541 \begin_layout Standard
2542
2543 \family roman
2544 \series medium
2545 \shape up
2546 \size normal
2547 \emph off
2548 \bar no
2549 \noun off
2550 \color none
2551 In the 
2552 \family sans
2553 \series default
2554 \shape default
2555 \size default
2556 \emph default
2557 \bar default
2558 \noun default
2559 Outputs\SpecialChar \menuseparator
2560 LaT\SpecialChar \textcompwordmark{}
2561 eX
2562 \family roman
2563 \series medium
2564 \shape up
2565 \size normal
2566 \emph off
2567 \bar no
2568 \noun off
2569  section of the preferences dialog, however, you can customize the index
2570  command, if you prefer an alternative program like 
2571 \family typewriter
2572 \series default
2573 \shape default
2574 \size default
2575 \emph default
2576 \bar default
2577 \noun default
2578 xindy
2579 \family roman
2580 \series medium
2581 \shape up
2582 \size normal
2583 \emph off
2584 \bar no
2585 \noun off
2586 .
2587 \end_layout
2588
2589 \end_inset
2590
2591  Inserting an index and marking words to include in it works much the same
2592  way as preparing a bibliography as mentioned in the last section.
2593 \end_layout
2594
2595 \begin_layout Standard
2596 First, go to the end of your file and select 
2597 \family sans
2598 \bar under
2599 I
2600 \bar default
2601 nsert\SpecialChar \menuseparator
2602 List
2603 \family default
2604 \InsetSpace ~
2605 /\InsetSpace ~
2606
2607 \family sans
2608 T
2609 \bar under
2610 O
2611 \bar default
2612 C\SpecialChar \menuseparator
2613
2614 \bar under
2615 I
2616 \bar default
2617 ndex
2618 \family default
2619 \InsetSpace ~
2620
2621 \family sans
2622 List
2623 \family default
2624 .
2625  Then, for each word you would like to include in the index, go to the end
2626  of that word and click on 
2627 \family sans
2628 \bar under
2629 I
2630 \bar default
2631 nsert\SpecialChar \menuseparator
2632
2633 \bar under
2634 I
2635 \bar default
2636 ndex
2637 \family default
2638 \InsetSpace ~
2639
2640 \family sans
2641 Entry
2642 \family default
2643 .
2644  This will insert a tag showing the word as it will appear in the index.
2645  That's all there is to it; LyX will automatically call 
2646 \family typewriter
2647 makeindex
2648 \family default
2649  for you and create the index itself.
2650  The text in the dialog available from right-clicking on the index button
2651  accepts LaTeX, so you'll need to be careful to avoid using any special
2652  characters.
2653  On the positive side, you can use the advanced options - have a look at
2654  the documentation which comes with your LaTeX distribution to find out
2655  how to do things like 
2656 \begin_inset Quotes eld
2657 \end_inset
2658
2659 nested entries
2660 \begin_inset Quotes erd
2661 \end_inset
2662
2663 , etc.
2664 \end_layout
2665
2666 \begin_layout Standard
2667 Be careful not to put spaces between the word in the text and the index
2668  marker; apparently the wrong page number can be produced if this happens.
2669 \end_layout
2670
2671 \begin_layout Section
2672 Glossaries
2673 \end_layout
2674
2675 \begin_layout Standard
2676 by 
2677 \noun on
2678 Özgür U\i \~{g}
2679 ra\i \c{s}
2680  Baram
2681 \end_layout
2682
2683 \begin_layout Standard
2684 Sometimes you need to compile a list of symbols that are mentioned in your
2685  document with a brief explanation of them.
2686  A LaTeX package named 
2687 \family typewriter
2688 nomencl
2689 \family default
2690  provides an easy way of compiling such lists.
2691  
2692 \family typewriter
2693 nomencl
2694 \family default
2695  is included in most standard Linux distributions.
2696  If your distribution doesn't contain it, you should download it from a
2697  CTAN mirror and install the package in order to use this feature of LyX.
2698 \end_layout
2699
2700 \begin_layout Standard
2701 A glossary entry is created if you place the cursor after a symbol entry
2702  and then use the menu 
2703 \family sans
2704 Insert\SpecialChar \menuseparator
2705 Glossary\InsetSpace ~
2706 Entry
2707 \family default
2708 .
2709  A gray box labeled 
2710 \begin_inset Quotes eld
2711 \end_inset
2712
2713
2714 \family sans
2715 Not
2716 \family default
2717
2718 \begin_inset Quotes erd
2719 \end_inset
2720
2721  is inserted and a window pops up asking for the glossary entry.
2722  A glossary entry consists of two main entries.
2723  The first is the symbol that you want to refer to.
2724  You should enter a valid LaTeX code for the corresponding field in the
2725  glossary dialog.
2726  The second is the description of the symbol.
2727  You should fill the corresponding field to complete the glossary entry.
2728 \end_layout
2729
2730 \begin_layout Subsection
2731 Sort Order of Glossary Entries
2732 \end_layout
2733
2734 \begin_layout Standard
2735 Suppose you have two glossary entries for the symbols 
2736 \begin_inset Formula $a$
2737 \end_inset
2738
2739  and 
2740 \begin_inset Formula $\sigma$
2741 \end_inset
2742
2743 .
2744  The 
2745 \family typewriter
2746 nomencl
2747 \family default
2748  package automatically sorts these two entries considering the symbol entry,
2749  while printing the Glossary.
2750  However, this can lead to an undesired sort order.
2751  For the example given, the first entry appears as 
2752 \family typewriter
2753 $a$
2754 \family default
2755 , while the second is 
2756 \family typewriter
2757 $
2758 \backslash
2759 sigma$
2760 \family default
2761 .
2762  Note that, in this case 
2763 \begin_inset Formula $\sigma$
2764 \end_inset
2765
2766  is located in front of the 
2767 \begin_inset Formula $a$
2768 \end_inset
2769
2770 , since the character 
2771 \begin_inset Quotes eld
2772 \end_inset
2773
2774
2775 \backslash
2776
2777 \begin_inset Quotes erd
2778 \end_inset
2779
2780  is considered in sorting.
2781  In order to control the sort order, you can edit the 
2782 \family sans
2783 Sort\InsetSpace ~
2784 as
2785 \family default
2786  field of the glossary dialog.
2787  For the given example, you can edit this field as 
2788 \family typewriter
2789 a
2790 \family default
2791  and 
2792 \family typewriter
2793 sigma 
2794 \family default
2795 correspondingly.
2796  Then, these entries will be effective in the sort ordering and 
2797 \begin_inset Formula $a$
2798 \end_inset
2799
2800  will be located before 
2801 \begin_inset Formula $\sigma$
2802 \end_inset
2803
2804 .
2805 \end_layout
2806
2807 \begin_layout Standard
2808 This feature provides exciting ways of ordering the entries.
2809  For subgrouping and tips for using sort entries see the official nomencl
2810  documentation.
2811 \end_layout
2812
2813 \begin_layout Subsection
2814 Referencing
2815 \end_layout
2816
2817 \begin_layout Standard
2818 You can turn on referencing to the equations and pages in the glossary entries.
2819  For this purpose, you should add referencing options commands at the end
2820  of description field.
2821  There are six referencing options in nomencl package:
2822 \end_layout
2823
2824 \begin_layout Paragraph*
2825
2826 \backslash
2827 refeq:
2828 \end_layout
2829
2830 \begin_layout Standard
2831 Adds reference to the equation by adding the phrase 
2832 \begin_inset Quotes eld
2833 \end_inset
2834
2835 , see equation (#)
2836 \begin_inset Quotes erd
2837 \end_inset
2838
2839
2840 \end_layout
2841
2842 \begin_layout Paragraph*
2843
2844 \backslash
2845 refpage:
2846 \end_layout
2847
2848 \begin_layout Standard
2849 Adds reference to the page by adding the phrase 
2850 \begin_inset Quotes eld
2851 \end_inset
2852
2853 , page (#)
2854 \begin_inset Quotes erd
2855 \end_inset
2856
2857
2858 \end_layout
2859
2860 \begin_layout Paragraph*
2861
2862 \backslash
2863 refeqpage:
2864 \end_layout
2865
2866 \begin_layout Standard
2867 Is the short notation of 
2868 \backslash
2869 refeq
2870 \backslash
2871 refpage.
2872 \end_layout
2873
2874 \begin_layout Paragraph*
2875
2876 \backslash
2877 norefeq, 
2878 \backslash
2879 norefpag, 
2880 \backslash
2881 norefeqpage:
2882 \end_layout
2883
2884 \begin_layout Standard
2885 Turns off corresponding referencing options if they are turned on globally
2886  (see reference documentation of nomencl).
2887 \end_layout
2888
2889 \begin_layout Subsection
2890 Printing Glossary
2891 \end_layout
2892
2893 \begin_layout Standard
2894 You can insert the glossary with the menu 
2895 \family sans
2896 Insert\SpecialChar \menuseparator
2897 Lists\InsetSpace ~
2898 &TOC\SpecialChar \menuseparator
2899 Glossary
2900 \family default
2901 .
2902  A light blue box labeled 
2903 \begin_inset Quotes eld
2904 \end_inset
2905
2906
2907 \family sans
2908 Glossary
2909 \family default
2910
2911 \begin_inset Quotes erd
2912 \end_inset
2913
2914  will show the place where the index is printed in the output.
2915  The index list box is not clickable like other LyX-boxes.
2916  In the printed output the title of the glossary appears as 
2917 \series bold
2918 Nomenclature
2919 \series default
2920
2921 \begin_inset Foot
2922 status collapsed
2923
2924 \begin_layout Standard
2925 This is translated to the document language for a small number of languages,
2926  amongst others French and German
2927 \end_layout
2928
2929 \end_inset
2930
2931 .
2932  If you are not happy with the title, you can change it by re-defining the
2933  command 
2934 \family typewriter
2935
2936 \backslash
2937 nomname
2938 \family default
2939  in the preamble.
2940  For example, in order to change the title 
2941 \emph on
2942 List of Symbols
2943 \emph default
2944  for the 
2945 \emph on
2946 Glossary
2947 \emph default
2948  add the following line to the preamble.
2949 \end_layout
2950
2951 \begin_layout LyX-Code
2952
2953 \backslash
2954 renewcommand{
2955 \backslash
2956 nomname}{List of Symbols}
2957 \end_layout
2958
2959 \begin_layout LyX-Code
2960
2961 \end_layout
2962
2963 \begin_layout Section
2964 Multipart Documents
2965 \end_layout
2966
2967 \begin_layout Subsection
2968 General Operation
2969 \end_layout
2970
2971 \begin_layout Standard
2972 When you are working on a large file with many sections, it is often convenient
2973  to break up the document into several files, or perhaps you have something
2974  where a table may change from time to time, but the preceding text does
2975  not.
2976  In these cases, you should seriously consider using multipart documents.
2977  For example, scientific papers often have five major sections: the introduction
2978 , observations, results, discussion, and conclusion.
2979  Each of these could be its own separate LyX file, with one 
2980 \begin_inset Quotes eld
2981 \end_inset
2982
2983 master
2984 \begin_inset Quotes erd
2985 \end_inset
2986
2987  file which contains the title, authors, abstract, references, etc., plus
2988  the five included files.
2989  It is important to note that each of these files is a full LyX file which
2990  can be formatted and printed on its own, as well as included in a master
2991  file.
2992  Each of these files must have the same document class, however--- don't
2993  attempt to mix book classes with article classes.
2994  You may also include LaTeX files; however, these files must not have their
2995  own preamble 
2996 \emph on
2997 (i.e.
2998
2999 \emph default
3000  everything up to and including the 
3001 \family typewriter
3002
3003 \backslash
3004 begin{document}
3005 \family default
3006  line as well as the 
3007 \family typewriter
3008
3009 \backslash
3010 end{document}
3011 \family default
3012  line must be deleted) or else errors will be generated when you try to
3013  make a DVI file.
3014 \end_layout
3015
3016 \begin_layout Standard
3017 LyX allows you to include files quite easily with 
3018 \family sans
3019 \bar under
3020 I
3021 \bar default
3022 nsert\SpecialChar \menuseparator
3023 ChiI
3024 \bar under
3025 d
3026 \bar default
3027 \InsetSpace ~
3028 Document
3029 \family default
3030 .
3031  When you click on this selection a small box is inserted into the file
3032  at the current cursor location.
3033  Clicking on the box raises a dialog which allows you to select the file
3034  to be included, and the method of its inclusion.
3035  
3036 \end_layout
3037
3038 \begin_layout Standard
3039 The file selection box should by now be obvious.
3040  The three inclusion methods are 
3041 \begin_inset Quotes eld
3042 \end_inset
3043
3044 include
3045 \begin_inset Quotes erd
3046 \end_inset
3047
3048
3049 \begin_inset Quotes eld
3050 \end_inset
3051
3052 input
3053 \begin_inset Quotes erd
3054 \end_inset
3055
3056 , and 
3057 \begin_inset Quotes eld
3058 \end_inset
3059
3060 verbatim
3061 \begin_inset Quotes erd
3062 \end_inset
3063
3064 .
3065  The difference between 
3066 \begin_inset Quotes eld
3067 \end_inset
3068
3069 include
3070 \begin_inset Quotes erd
3071 \end_inset
3072
3073  and 
3074 \begin_inset Quotes eld
3075 \end_inset
3076
3077 input
3078 \begin_inset Quotes erd
3079 \end_inset
3080
3081  is really only meaningful to LaTeXperts, but the practical difference is
3082  that files which are 
3083 \begin_inset Quotes eld
3084 \end_inset
3085
3086 included
3087 \begin_inset Quotes erd
3088 \end_inset
3089
3090  are typeset beginning on a new page, while files which are 
3091 \begin_inset Quotes eld
3092 \end_inset
3093
3094 inputted
3095 \begin_inset Quotes erd
3096 \end_inset
3097
3098  are typeset starting on the current page.
3099  Perhaps the labeling in LyX will be changed someday to reflect this.
3100 \end_layout
3101
3102 \begin_layout Standard
3103 Generally, the master file is converted into a full LaTeX file before typesettin
3104 g, while the included files are converted to LaTeX files which do not have
3105  all the preamble information.
3106  Checking the 
3107 \family sans
3108 Don't
3109 \family default
3110 \InsetSpace ~
3111
3112 \family sans
3113 typeset
3114 \family default
3115  button prevents this conversion.
3116 \end_layout
3117
3118 \begin_layout Standard
3119
3120 \begin_inset Quotes eld
3121 \end_inset
3122
3123 verbatim
3124 \begin_inset Quotes erd
3125 \end_inset
3126
3127  included file allows you to include a file typeset exactly as it appears
3128  in the file, i.e.\InsetSpace ~
3129 verbatim mode, with the characters set in a fixed-width
3130  typewriter font.
3131  Normally, spaces in this file are invisible, though two consecutive spaces
3132  are conserved, unlike LyX's normal treatment of spaces.
3133  However, setting the 
3134 \family sans
3135 \bar under
3136 M
3137 \bar default
3138 ark\InsetSpace ~
3139 spaces\InsetSpace ~
3140 in\InsetSpace ~
3141 output
3142 \family default
3143  checkbox typesets a mark to unambiguously define the presence of a space.
3144
3145 \emph on
3146  
3147 \end_layout
3148
3149 \begin_layout Subsection
3150 Cross-References Between Files
3151 \end_layout
3152
3153 \begin_layout Standard
3154 It is possible to set up cross-references between the different files.
3155  First, open all the files in question: let's call them A and B in a two
3156  file example, where B is included in A.
3157  Let's say you insert a label in A, then want to reference it in B.
3158  Open the cross-reference dialog in whilst in document B, and you can select
3159  the 
3160 \begin_inset Quotes eld
3161 \end_inset
3162
3163 buffer
3164 \begin_inset Quotes erd
3165 \end_inset
3166
3167  to use.
3168 \end_layout
3169
3170 \begin_layout Section
3171 Algorithms
3172 \end_layout
3173
3174 \begin_layout Standard
3175 The package 
3176 \family sans
3177 algorithm
3178 \family default
3179  is needed by LyX to be able to output algorithm floats.
3180  These are useful in placing short algorithms across page breaks and support
3181  an index of algorithms too.
3182 \end_layout
3183
3184 \begin_layout Section
3185 Subfigures
3186 \end_layout
3187
3188 \begin_layout Standard
3189 The package
3190 \family sans
3191  subfigure 
3192 \family default
3193 is used by LyX when you select ``subfigure'' in the graphics dialog and
3194  enter the subfigure caption.
3195  Several figures marked in this way can be packed into a single float with
3196  individual sub-captions.
3197 \end_layout
3198
3199 \begin_layout Section
3200 Fancy Headers and Footers
3201 \end_layout
3202
3203 \begin_layout Standard
3204 The default page layout is rather plain; for an article document class,
3205  all you get is a centered page number at the bottom of the page.
3206  This document is the book class, so it appears to be a bit fancier, but
3207  to really put on a show, you need to set the document page style to 
3208 \begin_inset Quotes eld
3209 \end_inset
3210
3211 fancy
3212 \begin_inset Quotes erd
3213 \end_inset
3214
3215 , as mentioned in the 
3216 \family sans
3217 User\InsetSpace ~
3218 Guide
3219 \family default
3220 .
3221  This section describes the LaTeX codes you need to insert in your LaTeX
3222  preamble or the text in order to get the desired effects.
3223 \end_layout
3224
3225 \begin_layout Standard
3226 The page header is divided into three fields, not surprisingly labeled 
3227 \begin_inset Quotes eld
3228 \end_inset
3229
3230 left
3231 \begin_inset Quotes erd
3232 \end_inset
3233
3234
3235 \begin_inset Quotes eld
3236 \end_inset
3237
3238 center
3239 \begin_inset Quotes erd
3240 \end_inset
3241
3242 , and 
3243 \begin_inset Quotes eld
3244 \end_inset
3245
3246 right
3247 \begin_inset Quotes erd
3248 \end_inset
3249
3250 .
3251  The footer is also divided into these three fields.
3252  The LaTeX commands to set these fields in the simplest manner are 
3253 \family typewriter
3254
3255 \backslash
3256 lhead
3257 \family default
3258
3259 \family typewriter
3260
3261 \backslash
3262 chead
3263 \family default
3264
3265 \family typewriter
3266
3267 \backslash
3268 rhead
3269 \family default
3270
3271 \family typewriter
3272
3273 \backslash
3274 lfoot
3275 \family default
3276 , etc.
3277  Suppose you wish to put your name in the upper left hand corner of each
3278  page.
3279  Simply insert the following command in the preamble: 
3280 \end_layout
3281
3282 \begin_layout Standard
3283
3284 \family typewriter
3285
3286 \backslash
3287 lhead{John Q.
3288  DocWriter}
3289 \end_layout
3290
3291 \begin_layout Standard
3292 You will now see your name in the upper left.
3293  If a field has a default entry that you would like to get rid of (often
3294  the page number appears in the central footer, simply include a command
3295  with a blank argument, e.g.
3296 \end_layout
3297
3298 \begin_layout Standard
3299
3300 \family typewriter
3301
3302 \backslash
3303 cfoot{}
3304 \end_layout
3305
3306 \begin_layout Standard
3307 Let's get really fancy: lets put the section number with the word 
3308 \begin_inset Quotes eld
3309 \end_inset
3310
3311 Section
3312 \begin_inset Quotes erd
3313 \end_inset
3314
3315  (e.g.
3316  Section 3) in the upper left, the page number (e.g.
3317  Page 4) in the upper right, your name in the lower left, and the date in
3318  the lower right.
3319  The following commands should now appear in the preamble:
3320 \end_layout
3321
3322 \begin_layout Standard
3323
3324 \family typewriter
3325
3326 \backslash
3327 lhead{Section 
3328 \backslash
3329 thesection}
3330 \end_layout
3331
3332 \begin_layout Standard
3333
3334 \family typewriter
3335
3336 \backslash
3337 chead{}
3338 \end_layout
3339
3340 \begin_layout Standard
3341
3342 \family typewriter
3343
3344 \backslash
3345 rhead{Page 
3346 \backslash
3347 thepage}
3348 \end_layout
3349
3350 \begin_layout Standard
3351
3352 \family typewriter
3353
3354 \backslash
3355 lfoot{John Q.
3356  DocWriter}
3357 \end_layout
3358
3359 \begin_layout Standard
3360
3361 \family typewriter
3362
3363 \backslash
3364 cfoot{}
3365 \end_layout
3366
3367 \begin_layout Standard
3368
3369 \family typewriter
3370
3371 \backslash
3372 rfoot{
3373 \backslash
3374 today}
3375 \end_layout
3376
3377 \begin_layout Standard
3378 The codes 
3379 \family typewriter
3380
3381 \backslash
3382 thesection
3383 \family default
3384  and 
3385 \family typewriter
3386
3387 \backslash
3388 thepage
3389 \family default
3390  access LaTeX's section and page counters, and so print out the current
3391  section and page numbers.
3392  
3393 \family typewriter
3394
3395 \backslash
3396 today
3397 \family default
3398  simply prints out today's date.
3399 \end_layout
3400
3401 \begin_layout Standard
3402 The thicknesses of the horizontal rules drawn beneath the header and above
3403  the footer can also be modified.
3404  If you don't want one of the headers, set its thickness to 0.
3405  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3406  Use the commands, e.g.
3407  
3408 \family typewriter
3409
3410 \backslash
3411 renewcommand{
3412 \backslash
3413 headrulewidth}{0.4pt}
3414 \family default
3415  and 
3416 \family typewriter
3417
3418 \backslash
3419 renewcommand{
3420 \backslash
3421 footrulewidth}{0.4pt}
3422 \family default
3423  to set the thicknesses.
3424 \end_layout
3425
3426 \begin_layout Standard
3427 You can switch the header/footer settings on and off for individual pages
3428  using commands like 
3429 \family typewriter
3430
3431 \backslash
3432 thispagestyle{empty}
3433 \family default
3434
3435 \family typewriter
3436
3437 \backslash
3438 thispagestyle{plain}
3439 \family default
3440 , and 
3441 \family typewriter
3442
3443 \backslash
3444 thispagestyle{fancy}
3445 \family default
3446 .
3447  Simply insert them in the text on the page you want changed and mark them
3448  as TeX code.
3449  In fact, title pages are marked as plain by default, while following pages
3450  are marked fancy when using the global fancy setting.
3451 \end_layout
3452
3453 \begin_layout Standard
3454 There are more complex commands which will let you insert things in the
3455  upper left on odd numbered pages, etc., but I will refer you to the 
3456 \family typewriter
3457 fancyhdr
3458 \family default
3459  package documentation for more descriptions.
3460  For example, if you have a teTeX installation, look for 
3461 \family typewriter
3462 /usr/share/texmf/doc/latex/fancyhdr/\SpecialChar \-
3463 fancyhdr.dvi
3464 \family default
3465 .
3466 \end_layout
3467
3468 \begin_layout Standard
3469 As a final example, it is possible to include an Encapsulated PostScript®
3470  file in the header or footer.
3471  Suppose you want to put a company logo in the upper lefthand corner.
3472  You might try something like
3473 \end_layout
3474
3475 \begin_layout Standard
3476
3477 \family typewriter
3478
3479 \backslash
3480 lhead{
3481 \backslash
3482 resizebox{1in}{!}{
3483 \backslash
3484 includegraphics{logo.eps}}}
3485 \end_layout
3486
3487 \begin_layout Standard
3488 \noindent
3489 (you may need to preface this with 
3490 \family typewriter
3491
3492 \backslash
3493 usepackage{graphics}
3494 \family default
3495  if you don't include EPS files elsewhere in your document).
3496 \end_layout
3497
3498 \begin_layout Section
3499 Minipages
3500 \end_layout
3501
3502 \begin_layout Standard
3503 LaTeX provides a mechanism to produce essentially a page within a page,
3504  called minipages.
3505  Within a minipage, all the usual rules of indentation, line wrapping, etc.\InsetSpace ~
3506 apply.
3507  LyX also provides some of the minipage capability.
3508 \end_layout
3509
3510 \begin_layout Standard
3511 Minipages in LyX have their own collapsable box; insert one via 
3512 \family sans
3513 \bar under
3514 I
3515 \bar default
3516 nsert\SpecialChar \menuseparator
3517 Mini
3518 \bar under
3519 p
3520 \bar default
3521 age
3522 \family default
3523 .
3524  Right-clicking on the box allows you to alter the minipage's width and
3525  alignment within the page.
3526  Warning: if the minipage is too long to fit on a page, it is truncated,
3527  not wrapped onto the next page.
3528 \end_layout
3529
3530 \begin_layout Standard
3531 If you place two minipages side-by-side, you can use 
3532 \family sans
3533 \bar under
3534 I
3535 \bar default
3536 nsert\SpecialChar \menuseparator
3537
3538 \bar under
3539 S
3540 \bar default
3541 pecial\InsetSpace ~
3542 Character
3543 \family default
3544  to insert a special instruction known in the LaTeX world as an 
3545 \family typewriter
3546 hfill
3547 \family default
3548  to put a maximum amount of space between them; it forces one minipage to
3549  the left edge, the other to the right edge.
3550  The examples below show the difference.
3551 \end_layout
3552
3553 \begin_layout Standard
3554 \begin_inset Box Frameless
3555 position "t"
3556 hor_pos "c"
3557 has_inner_box 1
3558 inner_pos "c"
3559 use_parbox 0
3560 width "1.5in"
3561 special "none"
3562 height "1pt"
3563 height_special "totalheight"
3564 status open
3565
3566 \begin_layout Standard
3567 This is a minipage which does not use hfill.
3568  This is the second sentence of a minipage which does not use hfill.
3569 \end_layout
3570
3571 \end_inset
3572
3573
3574 \end_layout
3575
3576 \begin_layout Standard
3577 \begin_inset Box Frameless
3578 position "t"
3579 hor_pos "c"
3580 has_inner_box 1
3581 inner_pos "c"
3582 use_parbox 0
3583 width "1.5in"
3584 special "none"
3585 height "1pt"
3586 height_special "totalheight"
3587 status open
3588
3589 \begin_layout Standard
3590 This is a second minipage which does not use hfill.
3591  This is the second sentence of a second minipage which does not use hfill.
3592 \end_layout
3593
3594 \end_inset
3595
3596
3597 \end_layout
3598
3599 \begin_layout Standard
3600 \begin_inset VSpace medskip
3601 \end_inset
3602
3603
3604 \end_layout
3605
3606 \begin_layout Standard
3607 Here is some normal text to separate the two examples.
3608 \end_layout
3609
3610 \begin_layout Standard
3611 \begin_inset VSpace medskip
3612 \end_inset
3613
3614
3615 \end_layout
3616
3617 \begin_layout Standard
3618 \begin_inset Box Frameless
3619 position "t"
3620 hor_pos "c"
3621 has_inner_box 1
3622 inner_pos "c"
3623 use_parbox 0
3624 width "1.5in"
3625 special "none"
3626 height "1pt"
3627 height_special "totalheight"
3628 status open
3629
3630 \begin_layout Standard
3631 This is a minipage which does use hfill.
3632  This is the second sentence of a minipage which does use hfill.
3633 \end_layout
3634
3635 \end_inset
3636
3637
3638 \hfill
3639
3640 \begin_inset Box Frameless
3641 position "t"
3642 hor_pos "c"
3643 has_inner_box 1
3644 inner_pos "c"
3645 use_parbox 0
3646 width "1.5in"
3647 special "none"
3648 height "1pt"
3649 height_special "totalheight"
3650 status open
3651
3652 \begin_layout Standard
3653 This is a second minipage which does use hfill.
3654  This is the second sentence of a second minipage which does use hfill.
3655 \end_layout
3656
3657 \end_inset
3658
3659
3660 \end_layout
3661
3662 \begin_layout Section
3663 Wrapping Text Around Figures
3664 \begin_inset LatexCommand \label{sec:floatflt}
3665
3666 \end_inset
3667
3668
3669 \end_layout
3670
3671 \begin_layout Standard
3672 \begin_inset Wrap figure
3673 placement r
3674 width "6cm"
3675 status open
3676
3677 \begin_layout Standard
3678 \begin_inset Graphics
3679         filename mobius.eps
3680         display color
3681         width 40col%
3682         rotateOrigin center
3683
3684 \end_inset
3685
3686
3687 \end_layout
3688
3689 \begin_layout Caption
3690 This is a wrapped figure, and this is the brilliant caption that describes
3691  it
3692 \end_layout
3693
3694 \end_inset
3695
3696
3697 \end_layout
3698
3699 \begin_layout Standard
3700 A very frequently asked question is whether text can be made to 
3701 \begin_inset Quotes eld
3702 \end_inset
3703
3704 wrap
3705 \begin_inset Quotes erd
3706 \end_inset
3707
3708  around figures so that a figure occupies some fraction of the column width
3709  and text fills the rest.
3710  If you have the LaTeX package 
3711 \family typewriter
3712 floatflt
3713 \family default
3714  installed (you can find out about it in the 
3715 \emph on
3716 LaTeX Configuration
3717 \emph default
3718  manual) you can do this.
3719 \end_layout
3720
3721 \begin_layout Standard
3722 At the right is a figure of a mobius strip---you should have already seen
3723  this in the 
3724 \emph on
3725 User's Guide
3726 \emph default
3727 .
3728  To wrap the text like this insert a wrap box via 
3729 \family sans
3730 \bar under
3731 I
3732 \bar default
3733 nsert\SpecialChar \menuseparator
3734 Flo
3735 \bar under
3736 a
3737 \bar default
3738 ts\SpecialChar \menuseparator
3739 Floatflt Figure
3740 \family default
3741 .
3742 \end_layout
3743
3744 \begin_layout Standard
3745 Note: this package is very fragile! For example, having a figure too close
3746  to the bottom of the page will mess things up, as will having two figures
3747  close together.
3748  Use this package sparingly and do read the documentation that came with
3749  it (which will also tell you how to wrap text around tables).
3750 \end_layout
3751
3752 \begin_layout Section
3753 Extra Table Options
3754 \end_layout
3755
3756 \begin_layout Standard
3757 While the standard table layout will suffice in 99% of all tables you generate,
3758  occasionally you will run into one which requires a bit of extra tweaking.
3759  The table dialog which appears on a right-click of a table allows these
3760  tweaks to be made.
3761  It will give you access to some extra column alignment parameters.
3762  A little bit of LaTeX background is useful here: when you set up a table
3763  in LaTeX, each column is given an alignment type.
3764  For example, you would give it 
3765 \begin_inset Quotes eld
3766 \end_inset
3767
3768
3769 \family typewriter
3770 l
3771 \family default
3772
3773 \begin_inset Quotes erd
3774 \end_inset
3775
3776
3777 \begin_inset Quotes eld
3778 \end_inset
3779
3780
3781 \family typewriter
3782 c
3783 \family default
3784
3785 \begin_inset Quotes erd
3786 \end_inset
3787
3788 , or 
3789 \begin_inset Quotes eld
3790 \end_inset
3791
3792
3793 \family typewriter
3794 r
3795 \family default
3796
3797 \begin_inset Quotes erd
3798 \end_inset
3799
3800  for left-aligned, centered, and right-aligned columns respectively (which
3801  appear as the left/center/right radio buttons in LyX).
3802  A fourth type is 
3803 \begin_inset Quotes eld
3804 \end_inset
3805
3806
3807 \family typewriter
3808 p
3809 \family default
3810
3811 \begin_inset Quotes erd
3812 \end_inset
3813
3814 , which will make a column of a specified width (the width box in LyX),
3815  and will wrap text within that box.
3816  A fifth type is 
3817 \begin_inset Quotes eld
3818 \end_inset
3819
3820
3821 \family typewriter
3822 |
3823 \family default
3824
3825 \begin_inset Quotes erd
3826 \end_inset
3827
3828  (vertical bar) which rather than making a column will make a vertical rule
3829  at that point; this manifests itself in LyX as the 
3830 \begin_inset Quotes eld
3831 \end_inset
3832
3833 borders
3834 \begin_inset Quotes erd
3835 \end_inset
3836
3837  buttons.
3838  Finally, there is a type 
3839 \begin_inset Quotes eld
3840 \end_inset
3841
3842
3843 \family typewriter
3844 @
3845 \family default
3846
3847 \begin_inset Quotes erd
3848 \end_inset
3849
3850 , which allows you to use whatever is enclosed in the accompanying braces
3851  as the column separator, including a null argument.
3852  The reasons for doing this may not be obvious, but they can be very powerful.
3853  They are best demonstrated by example.
3854 \end_layout
3855
3856 \begin_layout Subsection
3857 Removing Extra Column Space
3858 \end_layout
3859
3860 \begin_layout Standard
3861 Here is a standard table:
3862 \end_layout
3863
3864 \begin_layout Standard
3865 \align center
3866 \begin_inset Tabular
3867 <lyxtabular version="3" rows="3" columns="2">
3868 <features>
3869 <column alignment="left" valignment="top" width="0pt">
3870 <column alignment="left" valignment="top" leftline="true" width="0pt">
3871 <row bottomline="true">
3872 <cell alignment="left" valignment="top" topline="true" usebox="none">
3873 \begin_inset Text
3874
3875 \begin_layout Standard
3876
3877 \family roman
3878 \series medium
3879 \shape up
3880 \size normal
3881 \emph off
3882 \bar no
3883 \noun off
3884 \color none
3885 Type
3886 \end_layout
3887
3888 \end_inset
3889 </cell>
3890 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
3891 \begin_inset Text
3892
3893 \begin_layout Standard
3894
3895 \family roman
3896 \series medium
3897 \shape up
3898 \size normal
3899 \emph off
3900 \bar no
3901 \noun off
3902 \color none
3903 Example
3904 \end_layout
3905
3906 \end_inset
3907 </cell>
3908 </row>
3909 <row>
3910 <cell alignment="left" valignment="top" topline="true" usebox="none">
3911 \begin_inset Text
3912
3913 \begin_layout Standard
3914
3915 \family roman
3916 \series medium
3917 \shape up
3918 \size normal
3919 \emph off
3920 \bar no
3921 \noun off
3922 \color none
3923 Rock
3924 \end_layout
3925
3926 \end_inset
3927 </cell>
3928 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3929 \begin_inset Text
3930
3931 \begin_layout Standard
3932
3933 \family roman
3934 \series medium
3935 \shape up
3936 \size normal
3937 \emph off
3938 \bar no
3939 \noun off
3940 \color none
3941 Granite
3942 \end_layout
3943
3944 \end_inset
3945 </cell>
3946 </row>
3947 <row>
3948 <cell alignment="center" valignment="top" topline="true" usebox="none">
3949 \begin_inset Text
3950
3951 \begin_layout Standard
3952
3953 \family roman
3954 \series medium
3955 \shape up
3956 \size normal
3957 \emph off
3958 \bar no
3959 \noun off
3960 \color none
3961 Mineral
3962 \end_layout
3963
3964 \end_inset
3965 </cell>
3966 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3967 \begin_inset Text
3968
3969 \begin_layout Standard
3970
3971 \family roman
3972 \series medium
3973 \shape up
3974 \size normal
3975 \emph off
3976 \bar no
3977 \noun off
3978 \color none
3979 Quartz
3980 \end_layout
3981
3982 \end_inset
3983 </cell>
3984 </row>
3985 </lyxtabular>
3986
3987 \end_inset
3988
3989
3990 \end_layout
3991
3992 \begin_layout Standard
3993 Notice that the horizontal rule extends a bit past the text on both sides.
3994  If you wanted the line to end even with the text, we can put a null separator
3995  on the ends to get rid of the bit of extra space LaTeX adds by default.
3996  Here is the example:
3997 \end_layout
3998
3999 \begin_layout Standard
4000 \align center
4001 \begin_inset Tabular
4002 <lyxtabular version="3" rows="3" columns="2">
4003 <features>
4004 <column alignment="left" valignment="top" width="0pt" special="@{} l">
4005 <column alignment="left" valignment="top" leftline="true" width="0pt" special="l @{}">
4006 <row bottomline="true">
4007 <cell alignment="left" valignment="top" topline="true" usebox="none">
4008 \begin_inset Text
4009
4010 \begin_layout Standard
4011
4012 \family roman
4013 \series medium
4014 \shape up
4015 \size normal
4016 \emph off
4017 \bar no
4018 \noun off
4019 \color none
4020 Type
4021 \end_layout
4022
4023 \end_inset
4024 </cell>
4025 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
4026 \begin_inset Text
4027
4028 \begin_layout Standard
4029
4030 \family roman
4031 \series medium
4032 \shape up
4033 \size normal
4034 \emph off
4035 \bar no
4036 \noun off
4037 \color none
4038 Example
4039 \end_layout
4040
4041 \end_inset
4042 </cell>
4043 </row>
4044 <row>
4045 <cell alignment="left" valignment="top" topline="true" usebox="none">
4046 \begin_inset Text
4047
4048 \begin_layout Standard
4049
4050 \family roman
4051 \series medium
4052 \shape up
4053 \size normal
4054 \emph off
4055 \bar no
4056 \noun off
4057 \color none
4058 Rock
4059 \end_layout
4060
4061 \end_inset
4062 </cell>
4063 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4064 \begin_inset Text
4065
4066 \begin_layout Standard
4067
4068 \family roman
4069 \series medium
4070 \shape up
4071 \size normal
4072 \emph off
4073 \bar no
4074 \noun off
4075 \color none
4076 Granite
4077 \end_layout
4078
4079 \end_inset
4080 </cell>
4081 </row>
4082 <row>
4083 <cell alignment="center" valignment="top" topline="true" usebox="none">
4084 \begin_inset Text
4085
4086 \begin_layout Standard
4087
4088 \family roman
4089 \series medium
4090 \shape up
4091 \size normal
4092 \emph off
4093 \bar no
4094 \noun off
4095 \color none
4096 Mineral
4097 \end_layout
4098
4099 \end_inset
4100 </cell>
4101 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4102 \begin_inset Text
4103
4104 \begin_layout Standard
4105
4106 \family roman
4107 \series medium
4108 \shape up
4109 \size normal
4110 \emph off
4111 \bar no
4112 \noun off
4113 \color none
4114 Quartz
4115 \end_layout
4116
4117 \end_inset
4118 </cell>
4119 </row>
4120 </lyxtabular>
4121
4122 \end_inset
4123
4124
4125 \end_layout
4126
4127 \begin_layout Standard
4128 In this case, the column specifier for the left column was set to 
4129 \begin_inset Quotes eld
4130 \end_inset
4131
4132
4133 \family typewriter
4134 @{} l
4135 \family default
4136
4137 \begin_inset Quotes erd
4138 \end_inset
4139
4140 , while the right column was set to 
4141 \begin_inset Quotes eld
4142 \end_inset
4143
4144
4145 \family typewriter
4146 l @{}
4147 \family default
4148
4149 \begin_inset Quotes erd
4150 \end_inset
4151
4152 , in order to put the null characters on the edges.
4153  
4154 \end_layout
4155
4156 \begin_layout Subsection
4157 Changing the Column Separator Character
4158 \end_layout
4159
4160 \begin_layout Standard
4161 Now suppose you really wanted, for reasons that are completely opaque, to
4162  use 
4163 \begin_inset Formula $\sqrt{\pi}$
4164 \end_inset
4165
4166  with some space around it for the column separator.
4167  Simply turn off the vertical border, then set the right column specifier
4168  to 
4169 \begin_inset Quotes eld
4170 \end_inset
4171
4172
4173 \family typewriter
4174 @{~$
4175 \backslash
4176 sqrt{
4177 \backslash
4178 pi}$~} l
4179 \family default
4180
4181 \begin_inset Quotes erd
4182 \end_inset
4183
4184 .
4185  You could now make a table like this:
4186 \end_layout
4187
4188 \begin_layout Standard
4189 \align center
4190 \begin_inset Tabular
4191 <lyxtabular version="3" rows="3" columns="2">
4192 <features>
4193 <column alignment="left" valignment="top" width="0pt">
4194 <column alignment="left" valignment="top" width="0in" special="@{~$\sqrt{\pi}$~}l">
4195 <row bottomline="true">
4196 <cell alignment="left" valignment="top" topline="true" usebox="none">
4197 \begin_inset Text
4198
4199 \begin_layout Standard
4200
4201 \family roman
4202 \series medium
4203 \shape up
4204 \size normal
4205 \emph off
4206 \bar no
4207 \noun off
4208 \color none
4209 Type
4210 \end_layout
4211
4212 \end_inset
4213 </cell>
4214 <cell alignment="left" valignment="top" topline="true" usebox="none">
4215 \begin_inset Text
4216
4217 \begin_layout Standard
4218
4219 \family roman
4220 \series medium
4221 \shape up
4222 \size normal
4223 \emph off
4224 \bar no
4225 \noun off
4226 \color none
4227 Example
4228 \end_layout
4229
4230 \end_inset
4231 </cell>
4232 </row>
4233 <row>
4234 <cell alignment="left" valignment="top" topline="true" usebox="none">
4235 \begin_inset Text
4236
4237 \begin_layout Standard
4238
4239 \family roman
4240 \series medium
4241 \shape up
4242 \size normal
4243 \emph off
4244 \bar no
4245 \noun off
4246 \color none
4247 Rock
4248 \end_layout
4249
4250 \end_inset
4251 </cell>
4252 <cell alignment="center" valignment="top" topline="true" usebox="none">
4253 \begin_inset Text
4254
4255 \begin_layout Standard
4256
4257 \family roman
4258 \series medium
4259 \shape up
4260 \size normal
4261 \emph off
4262 \bar no
4263 \noun off
4264 \color none
4265 Granite
4266 \end_layout
4267
4268 \end_inset
4269 </cell>
4270 </row>
4271 <row>
4272 <cell alignment="center" valignment="top" topline="true" usebox="none">
4273 \begin_inset Text
4274
4275 \begin_layout Standard
4276
4277 \family roman
4278 \series medium
4279 \shape up
4280 \size normal
4281 \emph off
4282 \bar no
4283 \noun off
4284 \color none
4285 Mineral
4286 \end_layout
4287
4288 \end_inset
4289 </cell>
4290 <cell alignment="center" valignment="top" topline="true" usebox="none">
4291 \begin_inset Text
4292
4293 \begin_layout Standard
4294
4295 \family roman
4296 \series medium
4297 \shape up
4298 \size normal
4299 \emph off
4300 \bar no
4301 \noun off
4302 \color none
4303 Quartz
4304 \end_layout
4305
4306 \end_inset
4307 </cell>
4308 </row>
4309 </lyxtabular>
4310
4311 \end_inset
4312
4313
4314 \end_layout
4315
4316 \begin_layout Subsection
4317 Making a Decimal Point Aligned Column
4318 \end_layout
4319
4320 \begin_layout Standard
4321 Okay, that last example was very silly, but here is one that is not.
4322  Suppose you want to make a table that has a column which is aligned on
4323  a decimal point.
4324  A standard LaTeX trick to do this is to set the whole number part in a
4325  right-aligned column, use a decimal point for the column separator, then
4326  set the fractional part as a left-aligned column.
4327  A variation on this is to include the decimal point explicitly with the
4328  whole part, then use just a null separator in between.
4329  The latter variation is demonstrated here:
4330 \end_layout
4331
4332 \begin_layout Standard
4333 \align center
4334 \begin_inset Tabular
4335 <lyxtabular version="3" rows="5" columns="3">
4336 <features>
4337 <column alignment="center" valignment="top" width="0pt">
4338 <column alignment="right" valignment="top" leftline="true" width="0pt">
4339 <column alignment="center" valignment="top" width="0pt" special="@{} l">
4340 <row bottomline="true">
4341 <cell alignment="center" valignment="top" topline="true" usebox="none">
4342 \begin_inset Text
4343
4344 \begin_layout Standard
4345
4346 \family roman
4347 \series medium
4348 \shape up
4349 \size normal
4350 \emph off
4351 \bar no
4352 \noun off
4353 \color none
4354 Expression
4355 \end_layout
4356
4357 \end_inset
4358 </cell>
4359 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4360 \begin_inset Text
4361
4362 \begin_layout Standard
4363
4364 \family roman
4365 \series medium
4366 \shape up
4367 \size normal
4368 \emph off
4369 \bar no
4370 \noun off
4371 \color none
4372 Value 
4373 \end_layout
4374
4375 \end_inset
4376 </cell>
4377 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4378 \begin_inset Text
4379
4380 \begin_layout Standard
4381
4382 \end_layout
4383
4384 \end_inset
4385 </cell>
4386 </row>
4387 <row>
4388 <cell alignment="center" valignment="top" topline="true" usebox="none">
4389 \begin_inset Text
4390
4391 \begin_layout Standard
4392
4393 \family roman
4394 \series medium
4395 \shape up
4396 \size normal
4397 \emph off
4398 \bar no
4399 \noun off
4400 \color none
4401 \begin_inset Formula $\pi$
4402 \end_inset
4403
4404
4405 \end_layout
4406
4407 \end_inset
4408 </cell>
4409 <cell alignment="right" valignment="top" topline="true" leftline="true" usebox="none">
4410 \begin_inset Text
4411
4412 \begin_layout Standard
4413
4414 \family roman
4415 \series medium
4416 \shape up
4417 \size normal
4418 \emph off
4419 \bar no
4420 \noun off
4421 \color none
4422 3.
4423 \end_layout
4424
4425 \end_inset
4426 </cell>
4427 <cell alignment="center" valignment="top" topline="true" usebox="none">
4428 \begin_inset Text
4429
4430 \begin_layout Standard
4431
4432 \family roman
4433 \series medium
4434 \shape up
4435 \size normal
4436 \emph off
4437 \bar no
4438 \noun off
4439 \color none
4440 1416
4441 \end_layout
4442
4443 \end_inset
4444 </cell>
4445 </row>
4446 <row>
4447 <cell alignment="center" valignment="top" topline="true" usebox="none">
4448 \begin_inset Text
4449
4450 \begin_layout Standard
4451
4452 \family roman
4453 \series medium
4454 \shape up
4455 \size normal
4456 \emph off
4457 \bar no
4458 \noun off
4459 \color none
4460 \begin_inset Formula $\pi^{\pi}$
4461 \end_inset
4462
4463
4464 \end_layout
4465
4466 \end_inset
4467 </cell>
4468 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4469 \begin_inset Text
4470
4471 \begin_layout Standard
4472
4473 \family roman
4474 \series medium
4475 \shape up
4476 \size normal
4477 \emph off
4478 \bar no
4479 \noun off
4480 \color none
4481 36.
4482 \end_layout
4483
4484 \end_inset
4485 </cell>
4486 <cell alignment="center" valignment="top" topline="true" usebox="none">
4487 \begin_inset Text
4488
4489 \begin_layout Standard
4490
4491 \family roman
4492 \series medium
4493 \shape up
4494 \size normal
4495 \emph off
4496 \bar no
4497 \noun off
4498 \color none
4499 462
4500 \end_layout
4501
4502 \end_inset
4503 </cell>
4504 </row>
4505 <row>
4506 <cell alignment="center" valignment="top" topline="true" usebox="none">
4507 \begin_inset Text
4508
4509 \begin_layout Standard
4510
4511 \family roman
4512 \series medium
4513 \shape up
4514 \size normal
4515 \emph off
4516 \bar no
4517 \noun off
4518 \color none
4519 \begin_inset Formula $(\pi^{\pi})^{\pi}$
4520 \end_inset
4521
4522
4523 \end_layout
4524
4525 \end_inset
4526 </cell>
4527 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4528 \begin_inset Text
4529
4530 \begin_layout Standard
4531
4532 \family roman
4533 \series medium
4534 \shape up
4535 \size normal
4536 \emph off
4537 \bar no
4538 \noun off
4539 \color none
4540 80663.
4541 \end_layout
4542
4543 \end_inset
4544 </cell>
4545 <cell alignment="center" valignment="top" topline="true" usebox="none">
4546 \begin_inset Text
4547
4548 \begin_layout Standard
4549
4550 \end_layout
4551
4552 \end_inset
4553 </cell>
4554 </row>
4555 <row>
4556 <cell alignment="center" valignment="top" topline="true" usebox="none">
4557 \begin_inset Text
4558
4559 \begin_layout Standard
4560
4561 \family roman
4562 \series medium
4563 \shape up
4564 \size normal
4565 \emph off
4566 \bar no
4567 \noun off
4568 \color none
4569 \begin_inset Formula $\pi^{\pi^{\pi}}$
4570 \end_inset
4571
4572
4573 \end_layout
4574
4575 \end_inset
4576 </cell>
4577 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4578 \begin_inset Text
4579
4580 \begin_layout Standard
4581
4582 \family roman
4583 \series medium
4584 \shape up
4585 \size normal
4586 \emph off
4587 \bar no
4588 \noun off
4589 \color none
4590 1.
4591 \end_layout
4592
4593 \end_inset
4594 </cell>
4595 <cell alignment="center" valignment="top" topline="true" usebox="none">
4596 \begin_inset Text
4597
4598 \begin_layout Standard
4599
4600 \family roman
4601 \series medium
4602 \shape up
4603 \size normal
4604 \emph off
4605 \bar no
4606 \noun off
4607 \color none
4608 3402
4609 \begin_inset Formula $\times10^{18}$
4610 \end_inset
4611
4612
4613 \end_layout
4614
4615 \end_inset
4616 </cell>
4617 </row>
4618 </lyxtabular>
4619
4620 \end_inset
4621
4622
4623 \end_layout
4624
4625 \begin_layout Standard
4626 Though it appears a bit funny in LyX, on paper it will produce what appears
4627  to be a 2-column table in which the right column is aligned on the decimal
4628  point and the header appears to be centered over it.
4629 \end_layout
4630
4631 \begin_layout Standard
4632 Perhaps it is best if I described just what I did: first, create a 3
4633 \begin_inset Formula $\times$
4634 \end_inset
4635
4636 3 table and remove all the borders.
4637  Then re-add a bottom border to the top row, and a right border to the first
4638  column.
4639  Type in the values for the first column and set its alignment to 
4640 \family sans
4641 center
4642 \family default
4643 .
4644  Type in the 
4645 \family typewriter
4646 3.
4647 \family default
4648
4649 \family typewriter
4650 36.
4651 \family default
4652
4653 \family typewriter
4654 80663.
4655 \family default
4656 , and 
4657 \family typewriter
4658 1.
4659
4660 \family default
4661  and set that column's alignment to 
4662 \family sans
4663 right
4664 \family default
4665 .
4666  Type in the 
4667 \family typewriter
4668 1416
4669 \family default
4670
4671 \family typewriter
4672 462
4673 \family default
4674 , and 
4675 \family typewriter
4676 3402
4677 \begin_inset Formula $\times10^{18}$
4678 \end_inset
4679
4680
4681 \family default
4682  and set the extra column alignment to 
4683 \family typewriter
4684 @{} l
4685 \family default
4686 .
4687  Finally type in the word 
4688 \family typewriter
4689 Value
4690 \family default
4691  in the middle column, highlight it and the blank entry to its right, and
4692  check the 
4693 \family sans
4694 Special Cell
4695 \family default
4696  entry 
4697 \family sans
4698 multicolumn
4699 \family default
4700 .
4701  Easy, right? 
4702 \end_layout
4703
4704 \begin_layout Subsection
4705 A Better Decimal-Alignment Solution
4706 \end_layout
4707
4708 \begin_layout Standard
4709 An alternative way to have decimal alignment in tables is through the 
4710 \family typewriter
4711 dcolumn
4712 \family default
4713  package.
4714  Add the following to the LateX preamble:
4715 \end_layout
4716
4717 \begin_layout LyX-Code
4718
4719 \backslash
4720 usepackage{dcolumn}
4721 \end_layout
4722
4723 \begin_layout LyX-Code
4724
4725 \backslash
4726 newcolumntype{d}[1]{D{.}{.}{#1}}
4727 \end_layout
4728
4729 \begin_layout Standard
4730 To have a column decimally aligned, enter in the 
4731 \family sans
4732 Special Column Alignment
4733 \family default
4734  box of the 
4735 \family sans
4736 Table
4737 \family default
4738  dialog the following:
4739 \end_layout
4740
4741 \begin_layout LyX-Code
4742 d{number of decimals of the data}
4743 \end_layout
4744
4745 \begin_layout Standard
4746 To create extra column space just increase the number of decimals in 
4747 \family typewriter
4748 d{}
4749 \family default
4750 .
4751  Setting the multicolumn attribute for a single cell makes it insensitive
4752  to the decimal alignment which comes in handy as well.
4753  A drawback of this method is that math mode is not allowed in a column
4754  with decimal alignment except if the multicolumn attribute is set.
4755 \end_layout
4756
4757 \begin_layout Standard
4758 This method offers the same flexibility as the 
4759 \family typewriter
4760 dcolumn
4761 \family default
4762  package.
4763  One could, for example, change the alignment separator, and have different
4764  alignment separators for different columns by defining multiple column
4765  types in the preamble.
4766  The syntax is as follows: 
4767 \end_layout
4768
4769 \begin_layout LyX-Code
4770 D{inputsep}{outputsep}{decimal places}
4771 \end_layout
4772
4773 \begin_layout Standard
4774 The interested reader is directed towards the 
4775 \family typewriter
4776 dcolumn
4777 \family default
4778  package documentation for more details.
4779 \end_layout
4780
4781 \begin_layout Section
4782 Itemize Bullet Selection
4783 \begin_inset LatexCommand \label{sec:bullet}
4784
4785 \end_inset
4786
4787
4788 \end_layout
4789
4790 \begin_layout Standard
4791 by
4792 \noun on
4793  Allan Rae
4794 \end_layout
4795
4796 \begin_layout Subsection
4797 Introduction
4798 \end_layout
4799
4800 \begin_layout Standard
4801 LyX provides 216 bullet shapes that can be accessed from a simple dialog.
4802  Using this dialog you can easily specify what bullet shape to use at each
4803  level of an itemized list.
4804  These settings are document-wide so you won't be able to specify different
4805  sets of bullets for different paragraphs
4806 \begin_inset Foot
4807 status collapsed
4808
4809 \begin_layout Standard
4810 Well, actually you can but you'll have to do it by hand.
4811 \end_layout
4812
4813 \end_inset
4814
4815 .
4816 \end_layout
4817
4818 \begin_layout Subsection
4819 How it looks
4820 \end_layout
4821
4822 \begin_layout Standard
4823 Open the dialog by selecting the 
4824 \family sans
4825 \bar under
4826 D
4827 \bar default
4828 ocument\SpecialChar \menuseparator
4829
4830 \bar under
4831 S
4832 \bar default
4833 ettings
4834 \family default
4835  menu item and then select the 
4836 \family sans
4837 \bar under
4838 B
4839 \bar default
4840 ullets
4841 \family default
4842  tab.
4843 \end_layout
4844
4845 \begin_layout Standard
4846 The dialog provides you with a table of bullet shapes.
4847  A column of buttons on the left of the table provides access to the six
4848  different panels of bullet shapes.
4849  The row of buttons across the top is used to select which bullet depth
4850  you are changing.
4851  A text entry under the table shows the currently selected bullet shape's
4852  LaTeX equivalent and this can be edited if desired.
4853  If you do modify the text you will also need to specify any needed packages
4854  in the LaTeX preamble.
4855 \end_layout
4856
4857 \begin_layout Standard
4858 The six panels are divided up by the packages they require.
4859  The following table shows the mappings from button name to LaTeX packages.
4860 \end_layout
4861
4862 \begin_layout Standard
4863 \align center
4864 \begin_inset Tabular
4865 <lyxtabular version="3" rows="7" columns="2">
4866 <features>
4867 <column alignment="center" valignment="top" leftline="true" width="0pt">
4868 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
4869 <row topline="true" bottomline="true">
4870 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4871 \begin_inset Text
4872
4873 \begin_layout Standard
4874
4875 \family roman
4876 \series medium
4877 \shape up
4878 \size normal
4879 \emph off
4880 \bar no
4881 \noun off
4882 \color none
4883 Button
4884 \end_layout
4885
4886 \end_inset
4887 </cell>
4888 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4889 \begin_inset Text
4890
4891 \begin_layout Standard
4892
4893 \family roman
4894 \series medium
4895 \shape up
4896 \size normal
4897 \emph off
4898 \bar no
4899 \noun off
4900 \color none
4901 Packages Required
4902 \end_layout
4903
4904 \end_inset
4905 </cell>
4906 </row>
4907 <row topline="true">
4908 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4909 \begin_inset Text
4910
4911 \begin_layout Standard
4912
4913 \family sans
4914 \series medium
4915 \shape up
4916 \size normal
4917 \emph off
4918 \bar no
4919 \noun off
4920 \color none
4921 Standard
4922 \end_layout
4923
4924 \end_inset
4925 </cell>
4926 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4927 \begin_inset Text
4928
4929 \begin_layout Standard
4930
4931 \series medium
4932 \shape up
4933 \size normal
4934 \emph off
4935 \bar no
4936 \noun off
4937 \color none
4938 base LaTeX
4939 \end_layout
4940
4941 \end_inset
4942 </cell>
4943 </row>
4944 <row topline="true">
4945 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4946 \begin_inset Text
4947
4948 \begin_layout Standard
4949
4950 \family sans
4951 \series medium
4952 \shape up
4953 \size normal
4954 \emph off
4955 \bar no
4956 \noun off
4957 \color none
4958 Maths
4959 \end_layout
4960
4961 \end_inset
4962 </cell>
4963 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4964 \begin_inset Text
4965
4966 \begin_layout Standard
4967
4968 \family typewriter
4969 \series medium
4970 \shape up
4971 \size normal
4972 \emph off
4973 \bar no
4974 \noun off
4975 \color none
4976 amssymb.sty
4977 \end_layout
4978
4979 \end_inset
4980 </cell>
4981 </row>
4982 <row topline="true">
4983 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4984 \begin_inset Text
4985
4986 \begin_layout Standard
4987
4988 \family sans
4989 \series medium
4990 \shape up
4991 \size normal
4992 \emph off
4993 \bar no
4994 \noun off
4995 \color none
4996 Ding1
4997 \end_layout
4998
4999 \end_inset
5000 </cell>
5001 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5002 \begin_inset Text
5003
5004 \begin_layout Standard
5005
5006 \family typewriter
5007 \series medium
5008 \shape up
5009 \size normal
5010 \emph off
5011 \bar no
5012 \noun off
5013 \color none
5014 pifont.sty
5015 \end_layout
5016
5017 \end_inset
5018 </cell>
5019 </row>
5020 <row topline="true">
5021 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5022 \begin_inset Text
5023
5024 \begin_layout Standard
5025
5026 \family sans
5027 \series medium
5028 \shape up
5029 \size normal
5030 \emph off
5031 \bar no
5032 \noun off
5033 \color none
5034 Ding2
5035 \end_layout
5036
5037 \end_inset
5038 </cell>
5039 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5040 \begin_inset Text
5041
5042 \begin_layout Standard
5043
5044 \family typewriter
5045 \series medium
5046 \shape up
5047 \size normal
5048 \emph off
5049 \bar no
5050 \noun off
5051 \color none
5052 pifont.sty
5053 \end_layout
5054
5055 \end_inset
5056 </cell>
5057 </row>
5058 <row topline="true">
5059 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5060 \begin_inset Text
5061
5062 \begin_layout Standard
5063
5064 \family sans
5065 \series medium
5066 \shape up
5067 \size normal
5068 \emph off
5069 \bar no
5070 \noun off
5071 \color none
5072 Ding3
5073 \end_layout
5074
5075 \end_inset
5076 </cell>
5077 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5078 \begin_inset Text
5079
5080 \begin_layout Standard
5081
5082 \family typewriter
5083 \series medium
5084 \shape up
5085 \size normal
5086 \emph off
5087 \bar no
5088 \noun off
5089 \color none
5090 pifont.sty
5091 \end_layout
5092
5093 \end_inset
5094 </cell>
5095 </row>
5096 <row topline="true" bottomline="true">
5097 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
5098 \begin_inset Text
5099
5100 \begin_layout Standard
5101
5102 \family sans
5103 \series medium
5104 \shape up
5105 \size normal
5106 \emph off
5107 \bar no
5108 \noun off
5109 \color none
5110 Ding4
5111 \end_layout
5112
5113 \end_inset
5114 </cell>
5115 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
5116 \begin_inset Text
5117
5118 \begin_layout Standard
5119
5120 \family typewriter
5121 \series medium
5122 \shape up
5123 \size normal
5124 \emph off
5125 \bar no
5126 \noun off
5127 \color none
5128 pifont.sty
5129 \end_layout
5130
5131 \end_inset
5132 </cell>
5133 </row>
5134 </lyxtabular>
5135
5136 \end_inset
5137
5138
5139 \end_layout
5140
5141 \begin_layout Standard
5142 LyX doesn't stop you using bullets from packages you don't have.
5143  If you get errors from LaTeX when you try to view or print the file then
5144  its likely you are missing a package.
5145  LyX doesn't restrict your use since you may be editing locally and exporting
5146  elsewhere.
5147 \end_layout
5148
5149 \begin_layout Subsection
5150 How to use it
5151 \end_layout
5152
5153 \begin_layout Standard
5154 Select which bullet depth you want to change then select the bullet shape
5155  and size.
5156
5157 \family sans
5158  
5159 \family default
5160 Any changes will not be visible in LyX, but are visible when viewing the
5161  document using xdvi or ghostview.
5162 \end_layout
5163
5164 \begin_layout Standard
5165 You can reset a bullet shape to the default simply by clicking your right
5166  mouse button on the appropriate bullet depth button.
5167 \end_layout
5168
5169 \begin_layout Standard
5170 If you 
5171 \emph on
5172 really
5173 \emph default
5174  want to have multiple sets of paragraphs with different sets of bullets
5175  in each then you're going to have to get your hands dirty.
5176  The itemize bullet selection dialog can help though because it provides
5177  you with the LaTeX code for a wide range of bullet shapes.
5178  To make your own custom paragraphs you have the following options:
5179 \end_layout
5180
5181 \begin_layout Standard
5182 \begin_inset ERT
5183 status inlined
5184
5185 \begin_layout Standard
5186
5187
5188 \backslash
5189 let
5190 \backslash
5191 savelabelitemi=
5192 \backslash
5193 labelitemi
5194 \end_layout
5195
5196 \end_inset
5197
5198
5199 \end_layout
5200
5201 \begin_layout Standard
5202 \begin_inset ERT
5203 status inlined
5204
5205 \begin_layout Standard
5206
5207
5208 \backslash
5209 renewcommand
5210 \backslash
5211 labelitemi[0]{
5212 \backslash
5213 small
5214 \backslash
5215 (
5216 \backslash
5217 sharp
5218 \backslash
5219 )}
5220 \end_layout
5221
5222 \end_inset
5223
5224
5225 \end_layout
5226
5227 \begin_layout Itemize
5228 Use the LaTeX command 
5229 \family typewriter
5230
5231 \backslash
5232 renewcommand{}{}
5233 \family default
5234  to specify a new bullet shape for a given depth.
5235  You'll also need to save the current bullet shape so you can restore it
5236  again afterwards.
5237  In this itemized list the following LaTeX code was used to change the bullet
5238  used for the first depth.
5239 \newline
5240
5241 \family typewriter
5242
5243 \backslash
5244 let
5245 \backslash
5246 savelabelitemi=
5247 \backslash
5248 labelitemi
5249 \family default
5250  
5251 \family typewriter
5252
5253 \newline
5254
5255 \backslash
5256 renewcommand
5257 \backslash
5258 labelitemi[0]{
5259 \backslash
5260 small
5261 \backslash
5262 (
5263 \backslash
5264 sharp
5265 \backslash
5266 )}
5267 \newline
5268
5269 \family default
5270 Note that the itemize depth is specified in Roman numerals as part of the
5271  
5272 \family typewriter
5273
5274 \backslash
5275 labelitem
5276 \family default
5277  command.
5278 \end_layout
5279
5280 \begin_layout Itemize
5281 \begin_inset ERT
5282 status inlined
5283
5284 \begin_layout Standard
5285
5286 [
5287 \backslash
5288 (
5289 \backslash
5290 star
5291 \backslash
5292 )]
5293 \end_layout
5294
5295 \end_inset
5296
5297  Specify each individual entry by starting each item with the bullet shape
5298  enclosed in square brackets and set as TeX.
5299  For example, this item was started with 
5300 \family typewriter
5301 [
5302 \backslash
5303 (
5304 \backslash
5305 star
5306 \backslash
5307 )]
5308 \family default
5309 .
5310 \end_layout
5311
5312 \begin_layout Standard
5313 \begin_inset ERT
5314 status inlined
5315
5316 \begin_layout Standard
5317
5318
5319 \backslash
5320 renewcommand
5321 \backslash
5322 labelitemi[0]{
5323 \backslash
5324 savelabelitemi}
5325 \end_layout
5326
5327 \end_inset
5328
5329
5330 \end_layout
5331
5332 \begin_layout Standard
5333 You'll also need to revert the labelitem back to its previous setting for
5334  the global bullet shape settings to remain in effect.
5335  The way used here was:
5336 \newline
5337
5338 \family typewriter
5339
5340 \backslash
5341 renewcommand
5342 \backslash
5343 labelitemi[0]{
5344 \backslash
5345 savelabelitemi}
5346 \end_layout
5347
5348 \begin_layout Chapter
5349 Special Document Classes
5350 \end_layout
5351
5352 \begin_layout Section
5353 AMS LaTeX
5354 \end_layout
5355
5356 \begin_layout Standard
5357 by 
5358 \noun on
5359 David Johnson
5360 \end_layout
5361
5362 \begin_layout Standard
5363 \begin_inset VSpace bigskip
5364 \end_inset
5365
5366
5367 \end_layout
5368
5369 \begin_layout Standard
5370 \noindent
5371 The AMS LaTeX layouts are set up to conform to suggested styles for mathematical
5372  papers to be submitted to American Mathematical Society publications.
5373  The layouts are not tailored to a specific journal, but easily can be.
5374  You should refer to the AMS documentation for specific instructions for
5375  each journal (usually it will entail only changing a single line in the
5376  TeX output).
5377  That documentation is available on the Web at 
5378 \begin_inset LatexCommand \url{http://www.ams.org}
5379
5380 \end_inset
5381
5382  or by ftp at 
5383 \begin_inset LatexCommand \url{ftp://ftp.ams.org/pub/tex/amslatex/}
5384
5385 \end_inset
5386
5387 .These layouts are appropriate, and useful, for any mathematical writing.
5388  There are currently 4 distinct AMS LaTeX layouts: 
5389 \end_layout
5390
5391 \begin_layout Enumerate
5392 amsart: The standard AMS-article format.
5393  All results and similar statements are numbered as 
5394 \begin_inset Formula $(n.m)$
5395 \end_inset
5396
5397 , where the first number refers to the section, and the second refers to
5398  the total number of results (Theorems, Corollaries, Propositions, Definitions
5399  and Remarks, etc.) in that section.
5400  There are also many (but not all) environments available unnumbered, which
5401  is occasionally needed.
5402  Unnumbered environments indicated by an asterisk at the end.
5403 \end_layout
5404
5405 \begin_layout Enumerate
5406 amsart-seq: Here, numbering for each type of statement is in its own sequence,
5407  with no reference to the section number.
5408  There are also many (but not all) environments available unnumbered, which
5409  is occasionally needed.
5410  Unnumbered environments indicated by an asterisk at the end.
5411 \end_layout
5412
5413 \begin_layout Enumerate
5414 amsart-plain: This one is even more terse, since all the environments are
5415  unnumbered.
5416 \end_layout
5417
5418 \begin_layout Enumerate
5419 amsbook: the standard AMS book (really, monograph) format.
5420  Numbering is similar to the amsart layout, except that all numbering is
5421  by 
5422 \begin_inset Formula $(n.m.p)$
5423 \end_inset
5424
5425 , where the first number refers to the chapter, the second to the section,
5426  and the third is the number of the results (Theorems, Corollaries, Propositions
5427 , Definitions and Remarks, etc.) in that section.
5428  There are also many (but not all) environments available unnumbered, which
5429  is occasionally needed.
5430  Unnumbered environments indicated by an asterisk at the end.
5431 \end_layout
5432
5433 \begin_layout Standard
5434 Any AMS LyX file can be converted to either of the numbering schemes by
5435  simply changing the document class in the 
5436 \family sans
5437 \bar under
5438 D
5439 \bar default
5440 ocument\SpecialChar \menuseparator
5441
5442 \bar under
5443 S
5444 \bar default
5445 ettings
5446 \family default
5447  dialog.
5448  
5449 \end_layout
5450
5451 \begin_layout Subsection
5452 What these layouts provide
5453 \end_layout
5454
5455 \begin_layout Standard
5456 There is a long list of included environments provided by these layouts.
5457  Most mathematical papers or books will set as special statements most of
5458  these environments, in AMS-LaTeX there is an opportunity to define an unlimited
5459  variety of such declarations.
5460  However, the AMS recommends the environments that are available in LyX.
5461  The list of environments (not counting the standard environments such as
5462  
5463 \family sans
5464 sections, bibliography, title, author, date
5465 \family default
5466 ), is:
5467 \end_layout
5468
5469 \begin_layout Description
5470 Theorem This is typically used for the statements of major results.
5471  The word 
5472 \begin_inset Quotes eld
5473 \end_inset
5474
5475
5476 \family sans
5477 Theorem
5478 \family default
5479
5480 \begin_inset Quotes erd
5481 \end_inset
5482
5483  appears in bold type, along with an automatically-determined number (an
5484  unnumbered version, 
5485 \family sans
5486 Theorem*
5487 \family default
5488 , is also available).
5489  The text is italicized.
5490 \end_layout
5491
5492 \begin_layout Description
5493 Corollary This is used for statements which follow fairly directly from
5494  previous statements.
5495  Again, these can be major results.
5496  Unnumbered version 
5497 \family sans
5498 Corollary*
5499 \family default
5500  is available.
5501 \end_layout
5502
5503 \begin_layout Description
5504 Lemma These are smaller results needed to prove other statements.
5505 \end_layout
5506
5507 \begin_layout Description
5508 Proposition These are less major results which (hopefully) add to the general
5509  theory being discussed.
5510 \end_layout
5511
5512 \begin_layout Description
5513 Conjecture These are statements provided without justification, which the
5514  author does not know how to prove, but which seem to be true (to the author,
5515  at least).
5516 \end_layout
5517
5518 \begin_layout Description
5519 Criterion A required condition.
5520 \end_layout
5521
5522 \begin_layout Description
5523 Algorithm A general procedure to be used.
5524 \end_layout
5525
5526 \begin_layout Description
5527 Axiom This is a property or statement taken as true within the system being
5528  discussed.
5529 \end_layout
5530
5531 \begin_layout Description
5532 Definition Guess what this is for.
5533  The font, both on-screen and in the output, is different for this environment
5534  than for the previous ones.
5535  The heading (
5536 \begin_inset Quotes eld
5537 \end_inset
5538
5539 definition
5540 \begin_inset Quotes erd
5541 \end_inset
5542
5543 ) is still set in boldface, along with the number, if any, but the rest
5544  is set upright.
5545 \end_layout
5546
5547 \begin_layout Description
5548 Example Typeset similarly to Definition.
5549 \end_layout
5550
5551 \begin_layout Description
5552 Condition
5553 \end_layout
5554
5555 \begin_layout Description
5556 Problem
5557 \end_layout
5558
5559 \begin_layout Description
5560 Exercise
5561 \end_layout
5562
5563 \begin_layout Description
5564 Remark This environment is also a new type of theorem.
5565  This is set with the word Remark in italics, and the rest upright.
5566 \end_layout
5567
5568 \begin_layout Description
5569 Note Set similarly to the Remark environment.
5570 \end_layout
5571
5572 \begin_layout Description
5573 Notation
5574 \end_layout
5575
5576 \begin_layout Description
5577 Claim
5578 \end_layout
5579
5580 \begin_layout Description
5581 Summary
5582 \end_layout
5583
5584 \begin_layout Description
5585 Acknowledgement
5586 \end_layout
5587
5588 \begin_layout Description
5589 Case Generally, these are used to break up long arguments, using specific
5590  instances of some condition.
5591  The numbering scheme for cases is on its own, not together with other numbered
5592  statements.
5593  
5594 \end_layout
5595
5596 \begin_layout Description
5597 Conclusion
5598 \end_layout
5599
5600 \begin_layout Description
5601 Fact 
5602 \end_layout
5603
5604 \begin_layout Description
5605 Proof The word 
5606 \begin_inset Quotes eld
5607 \end_inset
5608
5609
5610 \shape italic
5611 Proof
5612 \shape default
5613
5614 \begin_inset Quotes erd
5615 \end_inset
5616
5617  is set in italics, but the rest is set upright.
5618  At the end of this environment (other environments can be nested within
5619  this one, of course) a QED symbol (usually a square, but it can vary with
5620  different styles) is placed.
5621 \end_layout
5622
5623 \begin_layout Description
5624 Address This should be the author's permanent address.
5625 \end_layout
5626
5627 \begin_layout Description
5628 Current\InsetSpace ~
5629 Address This should be the author's temporary address at the time
5630  of submission, if different from the Address.
5631 \end_layout
5632
5633 \begin_layout Description
5634 Email Author's e-mail address
5635 \end_layout
5636
5637 \begin_layout Description
5638 URL Author's Web address, if desired.
5639 \end_layout
5640
5641 \begin_layout Description
5642 Keywords Key words or phrases used to identify specific topics discussed
5643  in the paper.
5644 \end_layout
5645
5646 \begin_layout Description
5647 Subjectclass These refer to the AMS Subject Classifications, published and
5648  described in 
5649 \emph on
5650 Mathematical Reviews
5651 \emph default
5652 .
5653  These are also available online at the AMS cites listed above.
5654 \end_layout
5655
5656 \begin_layout Description
5657 Thanks
5658 \end_layout
5659
5660 \begin_layout Description
5661 Dedicatory
5662 \end_layout
5663
5664 \begin_layout Description
5665 Translator
5666 \end_layout
5667
5668 \begin_layout Standard
5669 In addition, these environments automatically provide the AMS LaTeX and
5670  AMS fonts packages.
5671  They need to be available on your system in order to use these environments.
5672 \end_layout
5673
5674 \begin_layout Section
5675 Dinbrief
5676 \end_layout
5677
5678 \begin_layout Standard
5679 The document class 
5680 \family sans
5681 dinbrief
5682 \family default
5683  can be used to type letters according to German conventions.
5684  A template file is included in 
5685 \family typewriter
5686 .../lyx/share/templates
5687 \family default
5688  for you to use as a starting point.
5689 \end_layout
5690
5691 \begin_layout Section
5692 Paper
5693 \end_layout
5694
5695 \begin_layout Standard
5696 The document class 
5697 \family sans
5698 paper
5699 \family default
5700  provides an alternative to the standard 
5701 \family sans
5702 article
5703 \family default
5704  class.
5705  It provides similar functionality, but you might prefer this layout with
5706  sans serif sections, headings, and more.
5707 \end_layout
5708
5709 \begin_layout Section
5710 A&A Paper
5711 \end_layout
5712
5713 \begin_layout Standard
5714 by 
5715 \noun on
5716 Peter Sütterlin
5717 \end_layout
5718
5719 \begin_layout Subsection
5720 Introduction
5721 \end_layout
5722
5723 \begin_layout Standard
5724 This section describes how LyX can be used to write articles for submission
5725  to the scientific journal 
5726 \emph on
5727 Astronomy and Astrophysics
5728 \emph default
5729  (
5730 \begin_inset LatexCommand \url[www.edpsciences.fr/aa/]{http://www.edpsciences.fr/aa/}
5731
5732 \end_inset
5733
5734 )
5735 \emph on
5736  
5737 \emph default
5738 using
5739 \emph on
5740  
5741 \emph default
5742 Version 5.01 of the document class 
5743 \family typewriter
5744 aa.cls
5745 \family default
5746 .
5747  This package can be downloaded from the ftp site
5748 \end_layout
5749
5750 \begin_layout Standard
5751 \begin_inset VSpace medskip
5752 \end_inset
5753
5754
5755 \end_layout
5756
5757 \begin_layout Standard
5758 \align center
5759 \begin_inset LatexCommand \url{ftp://ftp.edpsciences.org/pub/aa/readme.html}
5760
5761 \end_inset
5762
5763
5764 \end_layout
5765
5766 \begin_layout Standard
5767 \begin_inset VSpace medskip
5768 \end_inset
5769
5770
5771 \end_layout
5772
5773 \begin_layout Standard
5774 A manual comes together with that package, and this text is not meant to
5775  replace the original manual but merely a short guide how to realize the
5776  correct form of your paper.
5777  
5778 \end_layout
5779
5780 \begin_layout Standard
5781 Please note that the publisher of the journal was changed from Springer
5782  to EDP Sciences starting January 1, 2001.
5783  That change implicated also some slight changes of the style files, namely
5784  the removal of the thesaurus command.
5785  The LyX class aa supports the newest version of these style files, V 5.01.
5786  If you have an older version installed, please upgrade.
5787  For compatibility, the old (version 4) layout has been kept as 
5788 \family sans
5789 article (A&A V4)
5790 \family default
5791 .
5792  Please refer to the comments in 
5793 \family typewriter
5794 LyXDir/layouts/aapaper.layout
5795 \family default
5796 .
5797 \end_layout
5798
5799 \begin_layout Subsection
5800 Getting started
5801 \end_layout
5802
5803 \begin_layout Standard
5804 It is recommended you start from the example template distributed with LyX.
5805  If you are not using a template, note the following settings:
5806 \end_layout
5807
5808 \begin_layout Itemize
5809 Select 
5810 \family sans
5811 article (A&A)
5812 \family default
5813  in the 
5814 \family sans
5815 \bar under
5816 D
5817 \bar default
5818 ocument\SpecialChar \menuseparator
5819
5820 \bar under
5821 S
5822 \bar default
5823 ettings
5824 \family default
5825  dialog (OK, that one was obvious).
5826 \end_layout
5827
5828 \begin_layout Itemize
5829 Don't change the option 
5830 \family sans
5831 Page\InsetSpace ~
5832 style
5833 \family default
5834 : Leave it set to 
5835 \family sans
5836 default
5837 \family default
5838 .
5839  The whole layout is done by the macros, you shouldn't change anything.
5840 \end_layout
5841
5842 \begin_layout Subsection
5843 The header block
5844 \end_layout
5845
5846 \begin_layout Standard
5847 First thing to enter is the header information.
5848  It consists of seven entries, of which some are optional.
5849  They are
5850 \end_layout
5851
5852 \begin_layout Itemize
5853
5854 \family sans
5855 Title
5856 \family default
5857 : [required] 
5858 \end_layout
5859
5860 \begin_layout Itemize
5861
5862 \family sans
5863 Subtitle
5864 \family default
5865 : [optional] 
5866 \end_layout
5867
5868 \begin_layout Itemize
5869
5870 \family sans
5871 Author
5872 \family default
5873 : [required]
5874 \end_layout
5875
5876 \begin_layout Itemize
5877
5878 \family sans
5879 Address
5880 \family default
5881 : [required]
5882 \end_layout
5883
5884 \begin_layout Itemize
5885
5886 \family sans
5887 Offprints
5888 \family default
5889 : [optional] if more than one author: whom to contact for offprint requests.
5890 \end_layout
5891
5892 \begin_layout Itemize
5893
5894 \family sans
5895 Mail
5896 \family default
5897 : [optional] mail address for contacts.
5898 \end_layout
5899
5900 \begin_layout Itemize
5901
5902 \family sans
5903 Date
5904 \family default
5905 : [required].
5906  Suggested format is 
5907 \family typewriter
5908 Received: <date>; Accepted <date> 
5909 \end_layout
5910
5911 \begin_layout Standard
5912 There is no need to issue the 
5913 \family typewriter
5914
5915 \backslash
5916 maketitle
5917 \family default
5918  command, this is done automatically by LyX when the header is finished.
5919  Although the order of the single header entries doesn't matter it is advised
5920  to keep the above sequence, just to get the best optics and meets the layout
5921  of the real document.
5922 \end_layout
5923
5924 \begin_layout Standard
5925 If you want to place footnotes in the header block, e.g.
5926 \begin_inset ERT
5927 status collapsed
5928
5929 \begin_layout Standard
5930
5931
5932 \backslash
5933  
5934 \end_layout
5935
5936 \end_inset
5937
5938 to state your present address, just use the standard footnote via 
5939 \family sans
5940 \bar under
5941 I
5942 \bar default
5943 nsert\SpecialChar \menuseparator
5944
5945 \bar under
5946 F
5947 \bar default
5948 ootnote.
5949  
5950 \family default
5951 LyX will automagically use the term 
5952 \family typewriter
5953
5954 \backslash
5955 thanks{}
5956 \family default
5957  in that case.
5958 \end_layout
5959
5960 \begin_layout Standard
5961 In addition to these topics, the macros use three additional LaTeX commands
5962  that have no counterpart in LyX:
5963 \end_layout
5964
5965 \begin_layout Itemize
5966
5967 \family typewriter
5968
5969 \backslash
5970 and
5971 \family default
5972  to separate different names for more than one author and institute, respectivel
5973 y.
5974 \end_layout
5975
5976 \begin_layout Itemize
5977
5978 \family typewriter
5979
5980 \backslash
5981 inst{<nr>}
5982 \family default
5983 to mark corresponding author/institute pairs.
5984  The institutes are numbered sequentially as they appear in the 
5985 \family sans
5986 Address
5987 \family default
5988  field, so you have to put a marker to each author.
5989 \end_layout
5990
5991 \begin_layout Itemize
5992
5993 \family typewriter
5994
5995 \backslash
5996 email{address}
5997 \family default
5998  to supply an email address for fast contact.
5999 \end_layout
6000
6001 \begin_layout Standard
6002 In all cases, the appropriate command has to be entered in LyX an marked
6003  as LaTeX code.
6004  See the examples.
6005  
6006 \end_layout
6007
6008 \begin_layout Subsection
6009 The abstract
6010 \end_layout
6011
6012 \begin_layout Standard
6013 The abstract should immediately follow the header block.
6014  With version 5 the abstract environment was changed to a command, and there
6015  is now a resctriction to only one paragraph.
6016  In addition, it should contain an entry with the keywords.
6017  This is not yet implemented for LyX, therefore you have to enter the LaTeX
6018  command 
6019 \family typewriter
6020
6021 \backslash
6022 keywords{}
6023 \family default
6024  by hand and mark it as LaTeX code.
6025  Refer to the example paper.
6026 \end_layout
6027
6028 \begin_layout Subsection
6029 Supported environments
6030 \end_layout
6031
6032 \begin_layout Standard
6033 The A&A paper layout supports the following environments for structuring
6034  your text:
6035 \end_layout
6036
6037 \begin_layout Itemize
6038
6039 \family sans
6040 Standard
6041 \end_layout
6042
6043 \begin_layout Itemize
6044
6045 \family sans
6046 Section
6047 \end_layout
6048
6049 \begin_layout Itemize
6050
6051 \family sans
6052 Subsection
6053 \end_layout
6054
6055 \begin_layout Itemize
6056
6057 \family sans
6058 Subsubsection
6059 \end_layout
6060
6061 \begin_layout Itemize
6062
6063 \family sans
6064 Itemize
6065 \end_layout
6066
6067 \begin_layout Itemize
6068
6069 \family sans
6070 Enumerate
6071 \end_layout
6072
6073 \begin_layout Itemize
6074
6075 \family sans
6076 Description
6077 \end_layout
6078
6079 \begin_layout Itemize
6080
6081 \family sans
6082 Caption
6083 \end_layout
6084
6085 \begin_layout Itemize
6086
6087 \family sans
6088 Abstract
6089 \end_layout
6090
6091 \begin_layout Itemize
6092
6093 \family sans
6094 Acknowledgment
6095 \end_layout
6096
6097 \begin_layout Itemize
6098
6099 \family sans
6100 Bibliography
6101 \end_layout
6102
6103 \begin_layout Itemize
6104
6105 \family sans
6106 LaTeX
6107 \end_layout
6108
6109 \begin_layout Subsection
6110 Commands not supported by LyX
6111 \end_layout
6112
6113 \begin_layout Standard
6114 Some commands are not yet supported by the 
6115 \family sans
6116 paper (A&A)
6117 \family default
6118  layout for LyX.
6119  Some have already been mentioned.
6120  For the sake of completeness, they are listed all together here:
6121 \end_layout
6122
6123 \begin_layout Itemize
6124
6125 \family typewriter
6126
6127 \backslash
6128 and
6129 \end_layout
6130
6131 \begin_layout Itemize
6132
6133 \family typewriter
6134
6135 \backslash
6136 email
6137 \end_layout
6138
6139 \begin_layout Itemize
6140
6141 \family typewriter
6142
6143 \backslash
6144 appendix
6145 \end_layout
6146
6147 \begin_layout Itemize
6148
6149 \family typewriter
6150
6151 \backslash
6152 authorrunning
6153 \end_layout
6154
6155 \begin_layout Itemize
6156
6157 \family typewriter
6158
6159 \backslash
6160 inst{}
6161 \end_layout
6162
6163 \begin_layout Itemize
6164
6165 \family typewriter
6166
6167 \backslash
6168 keywords{}
6169 \end_layout
6170
6171 \begin_layout Itemize
6172
6173 \family typewriter
6174
6175 \backslash
6176 object{}
6177 \end_layout
6178
6179 \begin_layout Itemize
6180
6181 \family typewriter
6182
6183 \backslash
6184 titlerunning{}
6185 \end_layout
6186
6187 \begin_layout Standard
6188 If you want to use any of these commands, you have to enter them yourself.
6189  
6190 \series bold
6191 Do not forget to mark them as LaTeX code!
6192 \end_layout
6193
6194 \begin_layout Subsection
6195 Figure and Table Floats
6196 \end_layout
6197
6198 \begin_layout Standard
6199 LyX provides support for the necessary float environments 
6200 \family sans
6201 figure, figure*, table 
6202 \family default
6203 and 
6204 \family sans
6205 table*
6206 \family default
6207 , therefore we won't tell much about it here.
6208  Refer to the 
6209 \emph on
6210 User's\InsetSpace ~
6211 Guide
6212 \emph default
6213 .
6214  Just remember that tables should be left-aligned.
6215  For that, select the table and change the alignment in 
6216 \family sans
6217 \bar under
6218 E
6219 \bar default
6220 dit\SpecialChar \menuseparator
6221
6222 \bar under
6223 P
6224 \bar default
6225 aragraph\InsetSpace ~
6226 Settings.
6227 \end_layout
6228
6229 \begin_layout Standard
6230 There is
6231 \family sans
6232  
6233 \family default
6234 only one special thing: the figures with caption besides the figure.
6235  To create such a figure, you have to do the following:
6236 \end_layout
6237
6238 \begin_layout Enumerate
6239 Create a wide figure float: 
6240 \family sans
6241 \bar under
6242 I
6243 \bar default
6244 nsert\SpecialChar \menuseparator
6245 Flo
6246 \bar under
6247 a
6248 \bar default
6249 t\SpecialChar \menuseparator
6250 Figure
6251 \family default
6252 , then right click in the figure and select
6253 \family sans
6254  
6255 \bar under
6256 S
6257 \bar default
6258 pan\InsetSpace ~
6259 columns
6260 \family default
6261 .
6262 \end_layout
6263
6264 \begin_layout Enumerate
6265 Enter your caption text.
6266 \end_layout
6267
6268 \begin_layout Enumerate
6269 Press 
6270 \family sans
6271 Return
6272 \family default
6273  to move the cursor above the caption.
6274 \end_layout
6275
6276 \begin_layout Enumerate
6277 Insert your figure
6278 \end_layout
6279
6280 \begin_layout Enumerate
6281 Position the cursor behind the figure and insert a horizontal fill: 
6282 \family sans
6283 \bar under
6284 I
6285 \bar default
6286 nsert\SpecialChar \menuseparator
6287
6288 \bar under
6289 S
6290 \bar default
6291 pecial\InsetSpace ~
6292 Character
6293 \bar under
6294 \SpecialChar \menuseparator
6295 H
6296 \bar default
6297 orizontal\InsetSpace ~
6298 Fill
6299 \family default
6300 .
6301 \end_layout
6302
6303 \begin_layout Enumerate
6304 Switch to LaTeX mode: 
6305 \family sans
6306 M-c\InsetSpace ~
6307 t
6308 \family default
6309 .
6310 \end_layout
6311
6312 \begin_layout Enumerate
6313 Enter 
6314 \family typewriter
6315
6316 \backslash
6317 parbox[b]{55mm}{
6318 \family default
6319 .
6320  
6321 \series bold
6322 Do not close the brace!
6323 \end_layout
6324
6325 \begin_layout Enumerate
6326 Position the cursor behind the caption text, switch to LaTeX mode and insert
6327  the closing brace: 
6328 \family sans
6329 M-c\InsetSpace ~
6330
6331 \family typewriter
6332 }
6333 \family default
6334 .
6335 \end_layout
6336
6337 \begin_layout Standard
6338 Also, refer to the figures in the example paper.
6339 \end_layout
6340
6341 \begin_layout Subsection
6342 Referee layout
6343 \end_layout
6344
6345 \begin_layout Standard
6346 For submission, the paper has to be formated in a special double-spacing
6347  layout.
6348  For this purpose, you have to give the option 
6349 \family typewriter
6350 referee
6351 \family default
6352  to the documentclass.
6353  This must be done using the extra class options field in the 
6354 \family sans
6355 \bar under
6356 D
6357 \bar default
6358 ocument\SpecialChar \menuseparator
6359
6360 \bar under
6361 S
6362 \bar default
6363 ettings
6364 \family default
6365  dialog.
6366  Just enter the string 
6367 \family typewriter
6368 referee
6369 \family default
6370  there.
6371 \end_layout
6372
6373 \begin_layout Subsection
6374 The example paper
6375 \end_layout
6376
6377 \begin_layout Standard
6378 The 
6379 \family sans
6380 Examples
6381 \family default
6382  directory contains an example paper written with LyX.
6383  It is the example paper from the original macro package, translated to
6384  LyX.
6385  Use it for inspiration, and compare the original LaTeX code with LyX way
6386  of writing.
6387 \end_layout
6388
6389 \begin_layout Section
6390 AASTeX
6391 \end_layout
6392
6393 \begin_layout Standard
6394 by 
6395 \noun on
6396 Mike Ressler
6397 \end_layout
6398
6399 \begin_layout Subsection
6400 Introduction
6401 \end_layout
6402
6403 \begin_layout Standard
6404 AASTeX is a set of macros produced by the American Astronomical Society
6405  to facilitate electronic manuscript submission to the three journals they
6406  publish: the Astrophysical Journal (including the Letters and Supplement),
6407  the Astronomical Journal, and the Publications of the Astronomical Society
6408  of the Pacific.
6409  LyX has proven to be an excellent tool for generating these documents,
6410  especially given its equation, citation, and figure handling capabilities.
6411  LyX requires version 5.0 (or higher) of these macros; preferably 5.2, which
6412  is the version described here, or higher.
6413  Versions prior to 5.0 are intended for use with LaTeX2.09 and are fundamentally
6414  incompatible with LyX.
6415  The AASTeX package may be downloaded from the AASTeX Web site
6416 \end_layout
6417
6418 \begin_layout Standard
6419 \begin_inset VSpace medskip
6420 \end_inset
6421
6422
6423 \end_layout
6424
6425 \begin_layout Standard
6426 \align center
6427 \begin_inset LatexCommand \url{http://www.journals.uchicago.edu/AAS/AASTeX}
6428
6429 \end_inset
6430
6431
6432 \end_layout
6433
6434 \begin_layout Standard
6435 \begin_inset VSpace medskip
6436 \end_inset
6437
6438
6439 \end_layout
6440
6441 \begin_layout Standard
6442 A complete user guide is contained in that package and you should familiarize
6443  yourself with it thoroughly before embarking on writing a paper in LyX.
6444  LyX will not reduce the need to figure out all the AASTeX commands, it
6445  will only reduce the drudgery of typing everything in.
6446  It is your responsibility to ensure that the final exported LaTeX document
6447  conforms completely to the requirements of the journal to which you are
6448  submitting your paper.
6449 \end_layout
6450
6451 \begin_layout Subsection
6452 Starting a New Paper
6453 \end_layout
6454
6455 \begin_layout Standard
6456 I strongly suggest that you start with the AASTeX template file.
6457  Click on 
6458 \family sans
6459 \bar under
6460 F
6461 \bar default
6462 ile\SpecialChar \menuseparator
6463 New from 
6464 \bar under
6465 T
6466 \bar default
6467 emplate
6468 \family default
6469 , enter the new file name, then choose the 
6470 \family typewriter
6471 aastex.lyx
6472 \family default
6473  template.
6474  This will show the most common fields found in a manuscript.
6475  Simply overwrite the existing text (including the brackets, 
6476 \family typewriter
6477 <>
6478 \family default
6479 ) with the correct information.
6480  Many of the AASTeX commands and environments can be implemented directly
6481  in LyX, but some cannot: most noticeably 
6482 \family typewriter
6483
6484 \backslash
6485 altaffilmark
6486 \family default
6487  and 
6488 \family typewriter
6489
6490 \backslash
6491 altaffiltext
6492 \family default
6493 , which should stick out like a sore thumb if you actually just opened the
6494  template file.
6495  For commands such as these, the LaTeX code must be entered directly and
6496  marked as such.
6497  Such commands are referred to as ERT, or Evil Red Text.
6498  I tried to minimize the amount of ERT needed in an AASTeX document, but
6499  there is still a bit more required than any of us would like.
6500 \end_layout
6501
6502 \begin_layout Subsection
6503 Finishing Your Paper
6504 \end_layout
6505
6506 \begin_layout Standard
6507 When the paper is finished to your satisfaction and previews/prints correctly,
6508  there are a few 
6509 \begin_inset Quotes eld
6510 \end_inset
6511
6512 postprocessing
6513 \begin_inset Quotes erd
6514 \end_inset
6515
6516  actions which need to be done before you submit it to the journals.
6517  
6518 \end_layout
6519
6520 \begin_layout Enumerate
6521 Export your paper as a LaTeX file (
6522 \family sans
6523 \bar under
6524 F
6525 \bar default
6526 ile\SpecialChar \menuseparator
6527
6528 \bar under
6529 E
6530 \bar default
6531 xport\SpecialChar \menuseparator
6532
6533 \bar under
6534 L
6535 \bar default
6536 aTeX
6537 \family default
6538 ).
6539  
6540 \end_layout
6541
6542 \begin_layout Enumerate
6543 Edit the resulting 
6544 \family typewriter
6545 .tex
6546 \family default
6547  file with your favorite text editor
6548 \end_layout
6549
6550 \begin_deeper
6551 \begin_layout Enumerate
6552 remove the comment lines before the 
6553 \family typewriter
6554
6555 \backslash
6556 documentclass
6557 \family default
6558  command
6559 \end_layout
6560
6561 \begin_layout Enumerate
6562 remove the 
6563 \family typewriter
6564
6565 \backslash
6566 usepackage...{fontenc}
6567 \family default
6568  line if it appears (usually just after 
6569 \family typewriter
6570
6571 \backslash
6572 documentclass
6573 \family default
6574 }; also remove the 
6575 \family typewriter
6576
6577 \backslash
6578 secnumdepth
6579 \family default
6580  line if it appears.
6581 \end_layout
6582
6583 \begin_layout Enumerate
6584 remove everything between (and including) the 
6585 \family typewriter
6586
6587 \backslash
6588 makeatletter
6589 \family default
6590  and 
6591 \family typewriter
6592
6593 \backslash
6594 makeatother
6595 \family default
6596  commands, except for any commands you specifically put into the LaTeX preamble
6597  (which should appear immediately after the 
6598 \begin_inset Quotes eld
6599 \end_inset
6600
6601 User specified LaTeX commands
6602 \begin_inset Quotes erd
6603 \end_inset
6604
6605  comment in the 
6606 \family typewriter
6607 .tex
6608 \family default
6609  file).
6610 \end_layout
6611
6612 \end_deeper
6613 \begin_layout Enumerate
6614 Run the resulting file through LaTeX to make sure it still processes correctly.
6615 \end_layout
6616
6617 \begin_layout Enumerate
6618 Reread the journal requirements to make sure your filenames and formats
6619  are correct.
6620 \end_layout
6621
6622 \begin_layout Enumerate
6623 Submit it.
6624 \end_layout
6625
6626 \begin_layout Subsection
6627 Comments On Specific Commands
6628 \end_layout
6629
6630 \begin_layout Standard
6631 I will not describe the detailed usage of the individual AASTeX commands:
6632  the AASTeX User Guide (
6633 \family typewriter
6634 aasguide.tex
6635 \family default
6636 ) gives a good description of each.
6637  Thus it's probably easiest for me to go down the list as found in the guide
6638  and offer comments where necessary.
6639  So let's begin \SpecialChar \ldots{}
6640
6641 \end_layout
6642
6643 \begin_layout Subsubsection
6644 Things that work as expected
6645 \end_layout
6646
6647 \begin_layout Standard
6648 \begin_inset ERT
6649 status inlined
6650
6651 \begin_layout Standard
6652
6653
6654 \backslash
6655 begin{sloppypar}
6656 \end_layout
6657
6658 \end_inset
6659
6660
6661 \end_layout
6662
6663 \begin_layout Standard
6664 Because they work as you might expect, I simply list them and the section
6665  they are found in: 
6666 \family typewriter
6667
6668 \backslash
6669 documentclass
6670 \family default
6671  (2.1.1), 
6672 \family typewriter
6673
6674 \backslash
6675 begin{document}
6676 \family default
6677  (2.2), 
6678 \family typewriter
6679
6680 \backslash
6681 title
6682 \family default
6683  (2.3), 
6684 \family typewriter
6685
6686 \backslash
6687 author
6688 \family default
6689  (2.3), 
6690 \family typewriter
6691
6692 \backslash
6693 affil
6694 \family default
6695  (2.3), 
6696 \family typewriter
6697
6698 \backslash
6699 abstract
6700 \family default
6701  (2.4), 
6702 \family typewriter
6703
6704 \backslash
6705 keywords
6706 \family default
6707  (2.5), 
6708 \family typewriter
6709
6710 \backslash
6711 section
6712 \family default
6713  (2.7), 
6714 \family typewriter
6715
6716 \backslash
6717 subsection
6718 \family default
6719  (2.7), 
6720 \family typewriter
6721
6722 \backslash
6723 subsubsection
6724 \family default
6725  (2.7), 
6726 \family typewriter
6727
6728 \backslash
6729 paragraph
6730 \family default
6731  (2.7),
6732 \family typewriter
6733  
6734 \backslash
6735 facility
6736 \family default
6737  (2.10), 
6738 \family typewriter
6739
6740 \backslash
6741 begin{displaymath}
6742 \family default
6743  (2.12), 
6744 \family typewriter
6745
6746 \backslash
6747 begin{equation}
6748 \family default
6749  (2.12), 
6750 \family typewriter
6751
6752 \backslash
6753 begin{eqnarray}
6754 \family default
6755  (2.12), 
6756 \family typewriter
6757
6758 \backslash
6759 begin{mathletters}
6760 \family default
6761  (2.12), 
6762 \family typewriter
6763
6764 \backslash
6765 begin{thebibliography}
6766 \family default
6767  (2.13.1), 
6768 \family typewriter
6769
6770 \backslash
6771 bibitem
6772 \family default
6773  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6774  graphicx figure commands (2.14.1),
6775 \family typewriter
6776  
6777 \backslash
6778 begin{table}
6779 \family default
6780  (2.15.4), 
6781 \family typewriter
6782
6783 \backslash
6784 begin{tabular}
6785 \family default
6786  (2.15.4), 
6787 \family typewriter
6788
6789 \backslash
6790 caption
6791 \family default
6792  (2.15.4), 
6793 \family typewriter
6794
6795 \backslash
6796 label
6797 \family default
6798  (2.15.4, amongst other places), 
6799 \family typewriter
6800
6801 \backslash
6802 tablerefs
6803 \family default
6804  (2.15.5), 
6805 \family typewriter
6806
6807 \backslash
6808 tablecomments
6809 \family default
6810  (2.15.5), 
6811 \family typewriter
6812
6813 \backslash
6814 url
6815 \family default
6816  (2.17.4), 
6817 \family typewriter
6818
6819 \backslash
6820 end{document}
6821 \family default
6822  (2.18).
6823 \end_layout
6824
6825 \begin_layout Standard
6826 The following style options also work correctly: 
6827 \family typewriter
6828 longabstract
6829 \family default
6830  (2.4), 
6831 \family typewriter
6832 preprint
6833 \family default
6834  (3.2.1), 
6835 \family typewriter
6836 preprint2
6837 \family default
6838  (3.2.2), 
6839 \family typewriter
6840 eqsecnum
6841 \family default
6842  (3.3), 
6843 \family typewriter
6844 flushrt
6845 \family default
6846  (3.4).
6847  Simply put them in the 
6848 \family sans
6849 Options
6850 \family default
6851  box in 
6852 \family sans
6853 Layout\SpecialChar \menuseparator
6854 Document
6855 \family default
6856 .
6857 \end_layout
6858
6859 \begin_layout Standard
6860 \begin_inset ERT
6861 status inlined
6862
6863 \begin_layout Standard
6864
6865
6866 \backslash
6867 end{sloppypar}
6868 \end_layout
6869
6870 \end_inset
6871
6872
6873 \end_layout
6874
6875 \begin_layout Subsubsection
6876 Things that work, but require more comment
6877 \end_layout
6878
6879 \begin_layout Standard
6880 The following items work, but require a little more discussion:
6881 \end_layout
6882
6883 \begin_layout Itemize
6884 These items are reserved for use by the journal editors, but you can put
6885  them into the LaTeX preamble if you feel compelled to do so: 
6886 \family typewriter
6887
6888 \backslash
6889 received
6890 \family default
6891
6892 \family typewriter
6893
6894 \backslash
6895 revised
6896 \family default
6897
6898 \family typewriter
6899
6900 \backslash
6901 accepted
6902 \family default
6903
6904 \family typewriter
6905
6906 \backslash
6907 ccc
6908 \family default
6909
6910 \family typewriter
6911
6912 \backslash
6913 cpright
6914 \family default
6915  (all from 2.1.3)
6916 \end_layout
6917
6918 \begin_layout Itemize
6919 These items may be placed in the LaTeX preamble, and are included as blanks
6920  in the template file: 
6921 \family typewriter
6922
6923 \backslash
6924 slugcomment
6925 \family default
6926  (2.1.4), 
6927 \family typewriter
6928
6929 \backslash
6930 shorttitle
6931 \family default
6932  (2.1.5), 
6933 \family typewriter
6934
6935 \backslash
6936 shortauthors
6937 \family default
6938  (2.1.5)
6939 \end_layout
6940
6941 \begin_layout Itemize
6942
6943 \family typewriter
6944
6945 \backslash
6946 email
6947 \family default
6948  (2.3) -- can only be used 
6949 \begin_inset Quotes eld
6950 \end_inset
6951
6952 standalone
6953 \begin_inset Quotes erd
6954 \end_inset
6955
6956 , not in the middle of a paragraph.
6957  Use ERT if you need to embed it.
6958 \end_layout
6959
6960 \begin_layout Itemize
6961
6962 \family typewriter
6963
6964 \backslash
6965 and
6966 \family default
6967  (2.3) -- will have extra {} after it.
6968  This should not cause an error.
6969 \end_layout
6970
6971 \begin_layout Itemize
6972
6973 \family typewriter
6974
6975 \backslash
6976 notetoeditor
6977 \family default
6978  (2.6) -- can only be used 
6979 \begin_inset Quotes eld
6980 \end_inset
6981
6982 standalone
6983 \begin_inset Quotes erd
6984 \end_inset
6985
6986 , not in the middle of a paragraph.
6987  Use ERT if you need to embed it.
6988 \end_layout
6989
6990 \begin_layout Itemize
6991
6992 \family typewriter
6993
6994 \backslash
6995 placetable
6996 \family default
6997  (2.8) -- can't insert a cross-reference tag, you must type the tag name
6998  by hand
6999 \end_layout
7000
7001 \begin_layout Itemize
7002
7003 \family typewriter
7004
7005 \backslash
7006 placefigure
7007 \family default
7008  (2.8) -- same as for 
7009 \family typewriter
7010
7011 \backslash
7012 placetable
7013 \end_layout
7014
7015 \begin_layout Itemize
7016
7017 \family typewriter
7018
7019 \backslash
7020 acknowledgements
7021 \family default
7022  (2.9) -- will have extra {} after it.
7023  This should not cause an error.
7024 \end_layout
7025
7026 \begin_layout Itemize
7027
7028 \family typewriter
7029
7030 \backslash
7031 appendix
7032 \family default
7033  (2.11) -- will have extra {} after it.
7034  This should not cause an error.
7035 \end_layout
7036
7037 \begin_layout Itemize
7038
7039 \family typewriter
7040
7041 \backslash
7042 figcaption
7043 \family default
7044  (2.14.2) -- you can insert an optional filename argument by placing the cursor
7045  at the beginning of the text and selecting 
7046 \family sans
7047 Insert\SpecialChar \menuseparator
7048 Short Title
7049 \family default
7050 .
7051  
7052 \begin_inset Quotes eld
7053 \end_inset
7054
7055 Short Title
7056 \begin_inset Quotes erd
7057 \end_inset
7058
7059  inserts an optional argument of the type needed by 
7060 \family typewriter
7061
7062 \backslash
7063 figcaption
7064 \family default
7065 .
7066  Hopefully it will be renamed someday.
7067 \end_layout
7068
7069 \begin_layout Itemize
7070
7071 \family typewriter
7072
7073 \backslash
7074 objectname
7075 \family default
7076  (2.17.1) -- same as 
7077 \family typewriter
7078
7079 \backslash
7080 figcaption
7081 \family default
7082  for the catalog ID optional parameter
7083 \end_layout
7084
7085 \begin_layout Itemize
7086
7087 \family typewriter
7088
7089 \backslash
7090 dataset
7091 \family default
7092  (2.17.1) -- same as 
7093 \family typewriter
7094
7095 \backslash
7096 figcaption
7097 \family default
7098  for the catalog ID optional parameter
7099 \end_layout
7100
7101 \begin_layout Subsubsection
7102 Things not implemented, use ERT
7103 \end_layout
7104
7105 \begin_layout Standard
7106 \begin_inset ERT
7107 status inlined
7108
7109 \begin_layout Standard
7110
7111
7112 \backslash
7113 begin{sloppypar}
7114 \end_layout
7115
7116 \end_inset
7117
7118
7119 \end_layout
7120
7121 \begin_layout Standard
7122
7123 \family typewriter
7124
7125 \backslash
7126 altaffilmark
7127 \family default
7128  (2.3), 
7129 \family typewriter
7130
7131 \backslash
7132 altaffiltext
7133 \family default
7134  (2.3), 
7135 \family typewriter
7136
7137 \backslash
7138 eqnum
7139 \family default
7140  (2.12), 
7141 \family typewriter
7142
7143 \backslash
7144 setcounter{equation}
7145 \family default
7146  (2.12), Journal name abbreviations (2.13.4), 
7147 \family typewriter
7148
7149 \backslash
7150 figurenum
7151 \family default
7152  (2.14.1), 
7153 \family typewriter
7154
7155 \backslash
7156 epsscale
7157 \family default
7158  (2.14.1), 
7159 \family typewriter
7160
7161 \backslash
7162 plotone
7163 \family default
7164  (2.14.1), 
7165 \family typewriter
7166
7167 \backslash
7168 plottwo
7169 \family default
7170  (2.14.1), 
7171 \family typewriter
7172
7173 \backslash
7174 tablenum
7175 \family default
7176  (2.15.4), 
7177 \family typewriter
7178
7179 \backslash
7180 tableline
7181 \family default
7182  (2.15.4, insert it as the first element in the lefthand cell after where
7183  you want it.
7184  Don't use any of LyX's rules in the table), 
7185 \family typewriter
7186
7187 \backslash
7188 tablenotemark
7189 \family default
7190  (2.15.5), 
7191 \family typewriter
7192
7193 \backslash
7194 tablenotetext
7195 \family default
7196  (2.15.5), much of Misc (2.17, except 
7197 \family typewriter
7198
7199 \backslash
7200 objectname
7201 \family default
7202 ,
7203 \family typewriter
7204  
7205 \backslash
7206 dataset
7207 \family default
7208 ,
7209 \family typewriter
7210  
7211 \backslash
7212 url
7213 \family default
7214 , and 
7215 \family typewriter
7216
7217 \backslash
7218 email
7219 \family default
7220 ; see above), 
7221 \family typewriter
7222
7223 \backslash
7224 singlespace
7225 \family default
7226  (3.1), 
7227 \family typewriter
7228
7229 \backslash
7230 doublespace
7231 \family default
7232  (3.1), 
7233 \family typewriter
7234
7235 \backslash
7236 onecolumn
7237 \family default
7238  (3.2), 
7239 \family typewriter
7240
7241 \backslash
7242 twocolumn
7243 \family default
7244  (3.2)
7245 \end_layout
7246
7247 \begin_layout Standard
7248 \begin_inset ERT
7249 status inlined
7250
7251 \begin_layout Standard
7252
7253
7254 \backslash
7255 end{sloppypar}
7256 \end_layout
7257
7258 \end_inset
7259
7260
7261 \end_layout
7262
7263 \begin_layout Subsubsection
7264 Things that cannot be implemented
7265 \end_layout
7266
7267 \begin_layout Standard
7268 \SpecialChar \ldots{}
7269  at least in any meaningful sort of way, so I suggest ignoring them.
7270  They are the references environment (2.13.3), and the deluxetable environment
7271  (2.15).
7272  If you really, really need to use deluxetable, I suggest editing it in
7273  a separate file with a text editor, then using 
7274 \family sans
7275 \bar under
7276 I
7277 \bar default
7278 nsert\SpecialChar \menuseparator
7279 Chil
7280 \bar under
7281 d
7282 \bar default
7283 \InsetSpace ~
7284 Document
7285 \family default
7286  to include it in your LyX document.
7287  See the 
7288 \family typewriter
7289 aas_sample.lyx
7290 \family default
7291  file to see an example of this.
7292 \end_layout
7293
7294 \begin_layout Subsection
7295 FAQs, Tips, Tricks, and Other Ruminations
7296 \end_layout
7297
7298 \begin_layout Subsubsection
7299 Getting LyX and AASTeX to cooperate
7300 \end_layout
7301
7302 \begin_layout Standard
7303 It can be a bit tricky to get LyX to recognize a new layout and document
7304  class.
7305  When all else fails, do this:
7306 \end_layout
7307
7308 \begin_layout Enumerate
7309 Make certain that LaTeX can find AASTeX.
7310  Copy sample.tex (and perhaps table.tex) from the AASTeX distribution into
7311  a directory completely unrelated to LaTeX or AASTeX and run LaTeX on 
7312 \family typewriter
7313 sample.tex
7314 \family default
7315 .
7316 \end_layout
7317
7318 \begin_layout Enumerate
7319 Make certain that 
7320 \family typewriter
7321 aastex.layout
7322 \family default
7323  appears in 
7324 \family typewriter
7325 /usr/.../share/lyx/layouts
7326 \family default
7327  or 
7328 \family typewriter
7329 ~/.lyx/layouts
7330 \family default
7331 .
7332 \end_layout
7333
7334 \begin_layout Enumerate
7335 Rerun 
7336 \family sans
7337 \bar under
7338 T
7339 \bar default
7340 ools\SpecialChar \menuseparator
7341
7342 \bar under
7343 R
7344 \bar default
7345 econfigure
7346 \family default
7347  in LyX, then restart LyX.
7348 \end_layout
7349
7350 \begin_layout Enumerate
7351 Open a regular new file, not from a template.
7352  Does AASTeX appear in the class list in 
7353 \family sans
7354 \bar under
7355 D
7356 \bar default
7357 ocument\SpecialChar \menuseparator
7358
7359 \bar under
7360 S
7361 \bar default
7362 ettings
7363 \family default
7364 ?
7365 \end_layout
7366
7367 \begin_layout Standard
7368 If you get a warning from an existing AASTeX document about not being able
7369  to find the AASTeX layout or a message about 
7370 \begin_inset Quotes eld
7371 \end_inset
7372
7373 You should not mix title layouts with normal ones
7374 \begin_inset Quotes erd
7375 \end_inset
7376
7377 , things haven't been installed correctly.
7378 \end_layout
7379
7380 \begin_layout Subsubsection
7381 LaTeX error processing a table 
7382 \end_layout
7383
7384 \begin_layout Standard
7385 LyX, by default, attempts to center the table caption/title.
7386  This seems to produce a bad interaction in AASTeX so you should click somewhere
7387  in the caption/title, then select 
7388 \family sans
7389 \bar under
7390 E
7391 \bar default
7392 dit\SpecialChar \menuseparator
7393
7394 \bar under
7395 P
7396 \bar default
7397 aragraph\InsetSpace ~
7398 Settings
7399 \family default
7400 , then set the 
7401 \family sans
7402 Alignment
7403 \family default
7404  to 
7405 \family sans
7406 \bar under
7407 B
7408 \bar default
7409 lock
7410 \family default
7411 .
7412  This took care of it for me.
7413 \end_layout
7414
7415 \begin_layout Subsubsection
7416 References
7417 \begin_inset LatexCommand \label{cite}
7418
7419 \end_inset
7420
7421
7422 \end_layout
7423
7424 \begin_layout Standard
7425 A couple of things: 1) I have noticed some funny spacing in the reference
7426  entries in the text.
7427  When you enter the bibliography item data, make sure their is 
7428 \emph on
7429 no
7430 \emph default
7431  space between the last author and the parenthesis setting off the year;
7432  
7433 \emph on
7434 e.g.
7435  
7436 \emph default
7437 type
7438 \family typewriter
7439  Ressler(1992)
7440 \family default
7441 , not 
7442 \family typewriter
7443 Ressler (1992)
7444 \family default
7445 .
7446  2) Entering the references at all is not obvious.
7447  The easiest thing is to start typing your first reference at the end of
7448  the document, then mark it as type 
7449 \family sans
7450 References
7451 \family default
7452 .
7453  That will put a small gray box in front of what you just typed.
7454  Click on the box to fill in the rest of the information.
7455  For new references, go to the end of an existing reference and press return.
7456  That will create a new line with its own box, etc.
7457 \end_layout
7458
7459 \begin_layout Subsubsection
7460 Including EPS files
7461 \end_layout
7462
7463 \begin_layout Standard
7464 Even though AASTeX provides its own figure commands (
7465 \family typewriter
7466
7467 \backslash
7468 plotone
7469 \family default
7470 , for example), I much prefer LaTeX's standard figure commands (with the
7471  default graphicx).
7472  You can insert the 
7473 \family typewriter
7474
7475 \backslash
7476 plotone
7477 \family default
7478 , etc.\InsetSpace ~
7479 commands as ERT into a Figure Float box if you desire, but I never
7480  have much luck getting the layout right.
7481  With the standard graphics, LyX will insert a 
7482 \family typewriter
7483
7484 \backslash
7485 usepackage{graphicx}
7486 \family default
7487  command into the LaTeX preamble and handle the figures in the standard
7488  LaTeX2e way, interspersing the figures in the text.
7489  I believe ApJ accepts figures exactly this way now; AJ might still use
7490  the 
7491 \begin_inset Quotes eld
7492 \end_inset
7493
7494 stack everything at the end
7495 \begin_inset Quotes erd
7496 \end_inset
7497
7498  technique.
7499 \end_layout
7500
7501 \begin_layout Subsubsection
7502 Things I could have done, but didn't
7503 \end_layout
7504
7505 \begin_layout Standard
7506 There are a few 
7507 \begin_inset Quotes eld
7508 \end_inset
7509
7510 pretty
7511 \begin_inset Quotes erd
7512 \end_inset
7513
7514  things I could have implemented, but chose not to.
7515  For instance, I saw no point in double-spacing the text in the LyX window,
7516  even though it is double-spaced in the paper manuscript.
7517  Also, I chose not to make separate layouts for the preprint and preprint2
7518  styles.
7519  Since I assume you will spend most of your time in the plain manuscript
7520  mode anyway, I decided not to chew up more disk space with this.
7521  
7522 \end_layout
7523
7524 \begin_layout Subsection
7525 Final Caveat
7526 \end_layout
7527
7528 \begin_layout Standard
7529 Your mileage may vary.
7530  I've now had papers published by both ApJ and AJ that have had 98% of the
7531  effort done in LyX; the last 2% was the LaTeX post-processing and a few
7532  cleanups.
7533  I have had no trouble with the submission process, and I'm sure the journals
7534  were never aware that there might be a difference.
7535  So, go forth and publish!
7536 \end_layout
7537
7538 \begin_layout Section
7539 qijmpc and ijmpd
7540 \end_layout
7541
7542 \begin_layout Standard
7543 by 
7544 \noun on
7545 Panayotis Papasotiriou
7546 \end_layout
7547
7548 \begin_layout Subsection
7549 Overview
7550 \end_layout
7551
7552 \begin_layout Standard
7553 The ijmpc package is a set of macros that facilitates electronic manuscript
7554  submission to the 
7555 \emph on
7556 International Journal of Modern Physics C
7557 \emph default
7558 .
7559  Similarly, the ijmpd package is for creating manuscripts to be submitted
7560  to the 
7561 \emph on
7562 International Journal of Modern Physics D
7563 \emph default
7564 .
7565  Both journals are published by World Scientific.
7566  The corresponding document classes are named 
7567 \family typewriter
7568 ws-ijmpc.cls
7569 \family default
7570  and 
7571 \family typewriter
7572 ws-ijmpd.cls
7573 \family default
7574 , respectively.
7575  These files, together with instructions for the authors, can be downloaded
7576  from the sites 
7577 \begin_inset LatexCommand \url{http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml}
7578
7579 \end_inset
7580
7581  and 
7582 \begin_inset LatexCommand \url{http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml}
7583
7584 \end_inset
7585
7586 .
7587  Both packages are modified versions of the standard 
7588 \begin_inset Quotes eld
7589 \end_inset
7590
7591 article
7592 \begin_inset Quotes erd
7593 \end_inset
7594
7595  package, and they are almost (but not exactly) identical.
7596  Most of their features are supported by LyX.
7597  I have used LyX successfully to write articles submitted to both journals
7598  without any problem.
7599 \end_layout
7600
7601 \begin_layout Subsection
7602 Writing a paper
7603 \end_layout
7604
7605 \begin_layout Standard
7606 As usual, the easiest way to write a paper is to start with a template.
7607  Click on 
7608 \family sans
7609 \bar under
7610 F
7611 \bar default
7612 ile\SpecialChar \menuseparator
7613 New from 
7614 \bar under
7615 T
7616 \bar default
7617 emplate
7618 \family default
7619 , then choose the 
7620 \family typewriter
7621 ijmpc.lyx
7622 \family default
7623  or 
7624 \family typewriter
7625 ijmpd.lyx
7626 \family default
7627  template.
7628  This will give an (almost) empty document that includes the most common
7629  fields found in a manuscript.
7630  Simply overwrite the existing text (including the brackets, 
7631 \family typewriter
7632 <>
7633 \family default
7634 ) with your text.
7635  You should keep in mind the following remarks.
7636 \end_layout
7637
7638 \begin_layout Enumerate
7639 LyX won't let you change the font size and the page style of the document,
7640  because such modifications are not allowed by both packages.
7641 \end_layout
7642
7643 \begin_layout Enumerate
7644 The language of the document should not be changed.
7645  Before previewing your paper, be sure that the babel package is not used.
7646  To do this, click on 
7647 \family sans
7648 \bar under
7649 T
7650 \bar default
7651 ools\SpecialChar \menuseparator
7652
7653 \bar under
7654 P
7655 \bar default
7656 references
7657 \family default
7658 , select the 
7659 \family sans
7660 Lang Opts
7661 \family default
7662  tab, deselect the 
7663 \family sans
7664 \bar under
7665 U
7666 \bar default
7667 se babel
7668 \family default
7669  checkbox in the language settings, and click on 
7670 \family sans
7671 \bar under
7672 A
7673 \bar default
7674 pply
7675 \family default
7676  (or 
7677 \family sans
7678 Save
7679 \family default
7680 , if you wish to make this change permanent).
7681 \end_layout
7682
7683 \begin_layout Enumerate
7684 The 
7685 \begin_inset Quotes eld
7686 \end_inset
7687
7688 Keywords
7689 \begin_inset Quotes erd
7690 \end_inset
7691
7692  style must be used to define keywords.
7693 \end_layout
7694
7695 \begin_layout Enumerate
7696 The ijmpc package provides a style named 
7697 \begin_inset Quotes eld
7698 \end_inset
7699
7700 Classification Codes
7701 \begin_inset Quotes erd
7702 \end_inset
7703
7704 , which can be used to define classification codes, such as PACS numbers.
7705  Note that this facility is not supported by the ijmpd package.
7706 \end_layout
7707
7708 \begin_layout Enumerate
7709 Several new environments are available: 
7710 \begin_inset Quotes eld
7711 \end_inset
7712
7713 Definition
7714 \begin_inset Quotes erd
7715 \end_inset
7716
7717
7718 \begin_inset Quotes eld
7719 \end_inset
7720
7721 Step
7722 \begin_inset Quotes erd
7723 \end_inset
7724
7725
7726 \begin_inset Quotes eld
7727 \end_inset
7728
7729 Example
7730 \begin_inset Quotes erd
7731 \end_inset
7732
7733
7734 \begin_inset Quotes eld
7735 \end_inset
7736
7737 Remark
7738 \begin_inset Quotes erd
7739 \end_inset
7740
7741
7742 \begin_inset Quotes eld
7743 \end_inset
7744
7745 Notation
7746 \begin_inset Quotes erd
7747 \end_inset
7748
7749
7750 \begin_inset Quotes eld
7751 \end_inset
7752
7753 Theorem
7754 \begin_inset Quotes erd
7755 \end_inset
7756
7757
7758 \begin_inset Quotes eld
7759 \end_inset
7760
7761 Proof
7762 \begin_inset Quotes erd
7763 \end_inset
7764
7765
7766 \begin_inset Quotes eld
7767 \end_inset
7768
7769 Corollary
7770 \begin_inset Quotes erd
7771 \end_inset
7772
7773
7774 \begin_inset Quotes eld
7775 \end_inset
7776
7777 Lemma
7778 \begin_inset Quotes erd
7779 \end_inset
7780
7781
7782 \begin_inset Quotes eld
7783 \end_inset
7784
7785 Proposition
7786 \begin_inset Quotes erd
7787 \end_inset
7788
7789
7790 \begin_inset Quotes eld
7791 \end_inset
7792
7793 Prop
7794 \begin_inset Quotes erd
7795 \end_inset
7796
7797
7798 \begin_inset Quotes eld
7799 \end_inset
7800
7801 Question
7802 \begin_inset Quotes erd
7803 \end_inset
7804
7805
7806 \begin_inset Quotes eld
7807 \end_inset
7808
7809 Claim
7810 \begin_inset Quotes erd
7811 \end_inset
7812
7813 , and 
7814 \begin_inset Quotes eld
7815 \end_inset
7816
7817 Conjecture
7818 \begin_inset Quotes erd
7819 \end_inset
7820
7821 .
7822  Their use is more or less obvious.
7823  LyX supports all these environments; it will use the proper label, text
7824  style, and numbering scheme for each of them.
7825 \end_layout
7826
7827 \begin_layout Enumerate
7828 Both packages use basic citations; the natbib package should not be used.
7829  In LyX, citation references are shown as usual; in the output, citations
7830  are shown as superscripts.
7831  If you want to use a citation as normal text, you should use the 
7832 \family typewriter
7833 refcite
7834 \family default
7835  command, e.g., 
7836 \begin_inset Quotes eld
7837 \end_inset
7838
7839 See Ref.\InsetSpace ~
7840
7841 \family typewriter
7842
7843 \backslash
7844 refcite{key}
7845 \family default
7846
7847 \begin_inset Quotes erd
7848 \end_inset
7849
7850 .
7851 \end_layout
7852
7853 \begin_layout Enumerate
7854 There is no 
7855 \begin_inset Quotes eld
7856 \end_inset
7857
7858 Acknowledgments
7859 \begin_inset Quotes erd
7860 \end_inset
7861
7862  section in both packages.
7863  To put acknowledgments, just use the 
7864 \begin_inset Quotes eld
7865 \end_inset
7866
7867 Section*
7868 \begin_inset Quotes erd
7869 \end_inset
7870
7871  environment.
7872 \end_layout
7873
7874 \begin_layout Enumerate
7875 Appendices may be added to the paper, 
7876 \emph on
7877 after
7878 \emph default
7879  the Acknowledgments and 
7880 \shape italic
7881 before
7882 \shape default
7883  the References.
7884  LyX provides a special environment, called 
7885 \begin_inset Quotes eld
7886 \end_inset
7887
7888 Appendices Section
7889 \begin_inset Quotes erd
7890 \end_inset
7891
7892  which marks the beginning of the appendices.
7893  This environment should be left blank; it just sends a LaTeX command, but
7894  nothing is really printed.
7895  In LyX, the word 
7896 \begin_inset Quotes eld
7897 \end_inset
7898
7899 Appendix
7900 \begin_inset Quotes erd
7901 \end_inset
7902
7903  is printed with blue letters, as a signal that all sections after that
7904  point are appendices.
7905  To write an appendix, use the 
7906 \begin_inset Quotes eld
7907 \end_inset
7908
7909 Appendix
7910 \begin_inset Quotes erd
7911 \end_inset
7912
7913  environment.
7914  LyX will number each appendix with capital letters, as required by both
7915  journals.
7916  Note that 
7917 \begin_inset Quotes eld
7918 \end_inset
7919
7920 Appendices Section
7921 \begin_inset Quotes erd
7922 \end_inset
7923
7924  
7925 \emph on
7926 must
7927 \emph default
7928  be present before the first appendix; if not, all appendices will be numbered
7929  as normal sections in the output.
7930 \end_layout
7931
7932 \begin_layout Enumerate
7933 The ijmpc and the ijmpd packages use the 
7934 \family typewriter
7935 tbl
7936 \family default
7937  command to implement table captions.
7938  As a result, a table created by LyX is printed correctly, but its caption
7939  is ignored.
7940  However, you can use some ERT to overpass this problem, so that captions
7941  are printed as expected.
7942  To do so, create a float table as usual, remove the caption, and replace
7943  it with the ERT 
7944 \family typewriter
7945
7946 \backslash
7947 tbl{
7948 \emph on
7949 your table caption
7950 \emph default
7951 }{
7952 \family default
7953  (sic); you must also the ERT 
7954 \family typewriter
7955 }
7956 \family default
7957  immediately after the tabular material.
7958  Study the example table included in the template files to see how this
7959  trick is implemented.
7960  Alternatively, If you need table captions, you should implement the whole
7961  table float in a 
7962 \family typewriter
7963 .tex
7964 \family default
7965  file, then include this file to the LyX document (
7966 \family sans
7967 \bar under
7968 I
7969 \bar default
7970 nsert\SpecialChar \menuseparator
7971 Fil
7972 \bar under
7973 e
7974 \bar default
7975 \SpecialChar \menuseparator
7976 Chil
7977 \bar under
7978 d
7979 \bar default
7980 \InsetSpace ~
7981 Document
7982 \family default
7983 ).
7984  Details on how to create a table float can be found in the files 
7985 \family typewriter
7986 ws-ijmpc.tex
7987 \family default
7988  and 
7989 \family typewriter
7990 ws-ijmpd.tex
7991 \family default
7992 , included in the corresponding packages.
7993 \end_layout
7994
7995 \begin_layout Subsection
7996 Preparing a paper for submission
7997 \end_layout
7998
7999 \begin_layout Standard
8000 Before you submit your paper you must export the LyX document as a LaTeX
8001  file (
8002 \family sans
8003 \bar under
8004 F
8005 \bar default
8006 ile\SpecialChar \menuseparator
8007
8008 \bar under
8009 E
8010 \bar default
8011 xport\SpecialChar \menuseparator
8012
8013 \bar under
8014 L
8015 \bar default
8016 ateX
8017 \family default
8018 ), then make the following changes to the resulting 
8019 \family typewriter
8020 .tex
8021 \family default
8022  file.
8023 \end_layout
8024
8025 \begin_layout Enumerate
8026 Remove the comment lines before the 
8027 \family typewriter
8028
8029 \backslash
8030 documentclass
8031 \family default
8032  command.
8033 \end_layout
8034
8035 \begin_layout Enumerate
8036 Remove everything between (and including) the 
8037 \family typewriter
8038
8039 \backslash
8040 makeatletter
8041 \family default
8042  and 
8043 \family typewriter
8044
8045 \backslash
8046 makeatother
8047 \family default
8048  commands, except for any commands you specifically put into the LaTeX preamble.
8049 \end_layout
8050
8051 \begin_layout Standard
8052 The modified 
8053 \family typewriter
8054 .tex
8055 \family default
8056  file should be saved and processed through LaTeX as many times as necessary.
8057  You may also want to check the resulting 
8058 \family typewriter
8059 .dvi
8060 \family default
8061  document.
8062 \end_layout
8063
8064 \begin_layout Subsection
8065 Use of ERT
8066 \end_layout
8067
8068 \begin_layout Standard
8069 The use of ERT is reduced to two commands, which must be placed at the top
8070  of the document.
8071  If you started writing your paper by using the 
8072 \family typewriter
8073 ijmpc.lyx
8074 \family default
8075  or the 
8076 \family typewriter
8077 ijmpd.lyx
8078 \family default
8079  template, the ERT needed is already in its place; you usually don't need
8080  to delete it.
8081  You may only modify the first ERT to specify the information printed to
8082  the top of odd and even pages (authors' names and short paper's title,
8083  respectively).
8084  This ERT must have the form 
8085 \family typewriter
8086
8087 \backslash
8088 markboth{Authors' Names}{Short Paper's Title}
8089 \family default
8090 .
8091 \end_layout
8092
8093 \begin_layout Section
8094 Kluwer
8095 \end_layout
8096
8097 \begin_layout Standard
8098 by 
8099 \noun on
8100 Panayotis Papasotiriou
8101 \end_layout
8102
8103 \begin_layout Subsection
8104 Overview
8105 \end_layout
8106
8107 \begin_layout Standard
8108 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
8109  that facilitates electronic manuscript submission to the journals they
8110  publish.
8111  Most known of them (at least in my domain of interest) are 
8112 \emph on
8113 Astrophysics and Space Science
8114 \emph default
8115  and 
8116 \emph on
8117 Solar Physics
8118 \emph default
8119 , but there are many others (see a complete list at 
8120 \begin_inset LatexCommand \url{http://www.wkap.nl/jrnllist.htm/JRNLHOME}
8121
8122 \end_inset
8123
8124 ).
8125  The Kluwer package may be downloaded from the site 
8126 \begin_inset LatexCommand \url{http://www.wkap.nl/kaphtml.htm/STYLEFILES}
8127
8128 \end_inset
8129
8130 .
8131  A complete user guide is contained in that package (but it can also be
8132  downloaded separately).
8133 \end_layout
8134
8135 \begin_layout Standard
8136 LyX supports many features of the package but not everything.
8137  However, the ERT needed is reduced to some 
8138 \begin_inset Quotes eld
8139 \end_inset
8140
8141 peculiar
8142 \begin_inset Quotes erd
8143 \end_inset
8144
8145  commands of the package (see\InsetSpace ~
8146
8147 \begin_inset LatexCommand \ref{subsec:kluwer_peculiarities}
8148
8149 \end_inset
8150
8151 ).
8152  I have recently used LyX to write an article submitted to the 
8153 \emph on
8154 Astrophysics and Space Science
8155 \emph default
8156  without any problem.
8157 \end_layout
8158
8159 \begin_layout Subsection
8160 Writing a paper
8161 \end_layout
8162
8163 \begin_layout Standard
8164 The easiest way to write a paper is to start with the Kluwer template file.
8165  Click on 
8166 \family sans
8167 File\SpecialChar \menuseparator
8168 New from 
8169 \bar under
8170 T
8171 \bar default
8172 emplate
8173 \family default
8174 , then choose the 
8175 \family typewriter
8176 kluwer.lyx
8177 \family default
8178  template.
8179  This will give an (almost) empty document that includes the most common
8180  fields found in a manuscript and a short description of their use.
8181  As in most templates, simply overwrite the existing text (including the
8182  brackets, 
8183 \family typewriter
8184 <>
8185 \family default
8186 ) with the correct information.
8187 \end_layout
8188
8189 \begin_layout Subsection
8190 Preparing a paper for submission
8191 \end_layout
8192
8193 \begin_layout Standard
8194 As in the AASTeX package, before you submit your paper to a journal you
8195  must 
8196 \begin_inset Quotes eld
8197 \end_inset
8198
8199 postprocess
8200 \begin_inset Quotes erd
8201 \end_inset
8202
8203  it as follows.
8204 \end_layout
8205
8206 \begin_layout Enumerate
8207 Export your paper as a LaTeX file.
8208  To do this, click on 
8209 \family sans
8210 \bar under
8211 F
8212 \bar default
8213 ile\SpecialChar \menuseparator
8214
8215 \bar under
8216 E
8217 \bar default
8218 xport\SpecialChar \menuseparator
8219
8220 \bar under
8221 L
8222 \bar default
8223 ateX
8224 \family default
8225 .
8226  
8227 \end_layout
8228
8229 \begin_layout Enumerate
8230 Edit the resulting 
8231 \family typewriter
8232 .tex
8233 \family default
8234  file with a text editor and make the following changes
8235 \end_layout
8236
8237 \begin_deeper
8238 \begin_layout Enumerate
8239 remove the comment lines before the 
8240 \family typewriter
8241
8242 \backslash
8243 documentclass
8244 \family default
8245  command,
8246 \end_layout
8247
8248 \begin_layout Enumerate
8249 remove everything between (and including) the 
8250 \family typewriter
8251
8252 \backslash
8253 makeatletter
8254 \family default
8255  and 
8256 \family typewriter
8257
8258 \backslash
8259 makeatother
8260 \family default
8261  commands, except for any commands you specifically put into the LaTeX preamble.
8262 \end_layout
8263
8264 \begin_layout Standard
8265 Save the resulting 
8266 \family typewriter
8267 .tex
8268 \family default
8269  file.
8270 \end_layout
8271
8272 \end_deeper
8273 \begin_layout Enumerate
8274 Run the 
8275 \family typewriter
8276 .tex
8277 \family default
8278  file through LaTeX as many times as necessary (usually up to three).
8279 \end_layout
8280
8281 \begin_layout Enumerate
8282 View the resulting 
8283 \family typewriter
8284 .dvi
8285 \family default
8286  document using, e.g., 
8287 \family sans
8288 xdvi
8289 \family default
8290 , and check if everything is ok (it should, if you didn't make any mistake).
8291 \end_layout
8292
8293 \begin_layout Subsection
8294 \begin_inset Quotes eld
8295 \end_inset
8296
8297 Peculiarities
8298 \begin_inset Quotes erd
8299 \end_inset
8300
8301  of the Kluwer package
8302 \begin_inset LatexCommand \label{subsec:kluwer_peculiarities}
8303
8304 \end_inset
8305
8306
8307 \end_layout
8308
8309 \begin_layout Standard
8310 The Kluwer package has the following 
8311 \begin_inset Quotes eld
8312 \end_inset
8313
8314 peculiarities
8315 \begin_inset Quotes erd
8316 \end_inset
8317
8318 .
8319 \end_layout
8320
8321 \begin_layout Enumerate
8322 It is possible to write multiple articles in the same LaTeX file
8323 \begin_inset Foot
8324 status collapsed
8325
8326 \begin_layout Standard
8327 I can't imagine any good reason to do this.
8328 \end_layout
8329
8330 \end_inset
8331
8332 .
8333  Each article must be included in the environment 
8334 \begin_inset Quotes eld
8335 \end_inset
8336
8337 article
8338 \begin_inset Quotes erd
8339 \end_inset
8340
8341 .
8342  Unfortunately, this environment cannot be omitted, even if you write just
8343  one article.
8344  Therefore, each article starts with the command 
8345 \family typewriter
8346
8347 \backslash
8348 begin{article}
8349 \family default
8350  and, obviously, ends with the command 
8351 \family typewriter
8352
8353 \backslash
8354 end{article}
8355 \family default
8356 .
8357  Although this can be implemented in LyX, I didn't included it, since it
8358  looks ugly and can confuse the novice user.
8359  Therefore, you need to enter them directly and mark them as LaTeX code
8360  (the well-known 
8361 \begin_inset Quotes eld
8362 \end_inset
8363
8364 ERT
8365 \begin_inset Quotes erd
8366 \end_inset
8367
8368 ).
8369 \end_layout
8370
8371 \begin_layout Enumerate
8372 Information given at the beginning of the article (i.e., title, subtitle,
8373  author, institution, running title, running author, abstract and keywords)
8374  must be included in an environment called 
8375 \begin_inset Quotes eld
8376 \end_inset
8377
8378 opening
8379 \begin_inset Quotes erd
8380 \end_inset
8381
8382 .
8383  This is not implemented in LyX, so you must enter title, subtitle etc.
8384  between two ERT lines (
8385 \family typewriter
8386
8387 \backslash
8388 begin{opening}
8389 \family default
8390  and 
8391 \family typewriter
8392
8393 \backslash
8394 end{opening}
8395 \family default
8396 ).
8397 \end_layout
8398
8399 \begin_layout Enumerate
8400 According to the user manual, the label of each bibliography item must be
8401  written as 
8402 \family typewriter
8403
8404 \backslash
8405 protect
8406 \backslash
8407 citeauthoryear{
8408 \family default
8409 \emph on
8410 author(s)
8411 \family typewriter
8412 \emph default
8413 }{
8414 \family default
8415 \emph on
8416 year
8417 \family typewriter
8418 \emph default
8419 }
8420 \family default
8421 .
8422 \end_layout
8423
8424 \begin_layout Standard
8425 The 
8426 \family typewriter
8427 kluwer.lyx
8428 \family default
8429  template takes care of all these 
8430 \begin_inset Quotes eld
8431 \end_inset
8432
8433 peculiarities
8434 \begin_inset Quotes erd
8435 \end_inset
8436
8437 .
8438  If you start a new paper using this template you don't need to do anything
8439  special.
8440  Just 
8441 \end_layout
8442
8443 \begin_layout Enumerate
8444 don't delete the ERT included in the template, and
8445 \end_layout
8446
8447 \begin_layout Enumerate
8448 copy the example bibliography item included in the template and modify it
8449  as necessary to enter new bibliography items.
8450 \end_layout
8451
8452 \begin_layout Section
8453 Koma-Script
8454 \end_layout
8455
8456 \begin_layout Standard
8457 by 
8458 \noun on
8459 Bernd Rellermeyer
8460 \end_layout
8461
8462 \begin_layout Subsection
8463 Overview
8464 \end_layout
8465
8466 \begin_layout Standard
8467 The LyX document classes
8468 \emph on
8469  article (koma-script)
8470 \emph default
8471
8472 \emph on
8473 report (koma-script)
8474 \emph default
8475
8476 \emph on
8477 book
8478 \emph default
8479  
8480 \emph on
8481 (koma-script)
8482 \emph default
8483 , and 
8484 \emph on
8485 letter
8486 \emph default
8487  
8488 \emph on
8489 (koma-script)
8490 \emph default
8491  correspond to the LaTeX document classes 
8492 \family typewriter
8493 scrartcl.cls
8494 \family default
8495
8496 \family typewriter
8497 scrreprt.cls
8498 \family default
8499
8500 \family typewriter
8501 scrbook.cls
8502 \family default
8503 , and 
8504 \family typewriter
8505 scrlettr.cls
8506 \family default
8507 , resp.
8508  of the Koma-Script family.
8509  They are replacements for the standard document classes 
8510 \family typewriter
8511 article.cls
8512 \family default
8513
8514 \family typewriter
8515 report.cls
8516 \family default
8517
8518 \family typewriter
8519 book.cls
8520 \family default
8521  and 
8522 \family typewriter
8523 letter.cls
8524 \family default
8525 , resp., and fit better to European typography conventions in a number of
8526  points.
8527 \end_layout
8528
8529 \begin_layout Itemize
8530 Standard character size is 11pt in 
8531 \emph on
8532 article (koma-script)
8533 \emph default
8534
8535 \emph on
8536 report (koma-script)
8537 \emph default
8538 , and 
8539 \emph on
8540 book (koma-script)
8541 \emph default
8542 , and 12pt in 
8543 \emph on
8544 letter (koma-script)
8545 \emph default
8546 .
8547 \end_layout
8548
8549 \begin_layout Itemize
8550 Headings, labels of the description environment, and a number of elements
8551  of the 
8552 \emph on
8553 letter (koma-script) 
8554 \emph default
8555 document class are set in a bold sans serif font.
8556 \begin_inset Foot
8557 status collapsed
8558
8559 \begin_layout Standard
8560 There is a big difference between the bold sans serif old cm fonts and new
8561  ec fonts, especially in the appearance of headings.
8562  In comparison, the ec bold sans serif fonts look a bit thin.
8563  Here the LaTeX package 
8564 \family typewriter
8565 cmsd.sty by 
8566 \family default
8567 \shape smallcaps
8568 Walter Schmidt
8569 \shape default
8570  helps to produce the 
8571 \begin_inset Quotes eld
8572 \end_inset
8573
8574 usual
8575 \begin_inset Quotes erd
8576 \end_inset
8577
8578  appearance when using the ec fonts.
8579 \end_layout
8580
8581 \end_inset
8582
8583  The numbering of chapter headings is made in the same way as the numbering
8584  of section headings, that is without the extra line 
8585 \begin_inset Quotes eld
8586 \end_inset
8587
8588 Chapter\SpecialChar \ldots{}
8589
8590 \begin_inset Quotes erd
8591 \end_inset
8592
8593 .
8594  In addition, the appearance of the headings can be modified by using a
8595  number of options (in LyX to be entered in the field 
8596 \family sans
8597 E
8598 \bar under
8599 x
8600 \bar default
8601 tra\InsetSpace ~
8602 Options
8603 \family default
8604  of the dialog 
8605 \family sans
8606 \bar under
8607 L
8608 \bar default
8609 ayout\SpecialChar \menuseparator
8610
8611 \bar under
8612 D
8613 \bar default
8614 ocument
8615 \family default
8616 ).
8617  A detailed German description of these options can be found in the Koma-Script
8618  documentation 
8619 \emph on
8620 scrguide
8621 \emph default
8622 .
8623 \end_layout
8624
8625 \begin_layout Itemize
8626 The main means in the Koma-Script document classes to design the type area
8627  are the options 
8628 \family sans
8629 BCOR
8630 \family default
8631  and 
8632 \family sans
8633 DIV
8634 \family default
8635  (in LyX to be entered in the extra class options field in the dialog 
8636 \family sans
8637 \bar under
8638 D
8639 \bar default
8640 ocument\SpecialChar \menuseparator
8641
8642 \bar under
8643 S
8644 \bar default
8645 ettings
8646 \family default
8647 ).
8648  They make a clearer modification of page margins possible as do the options
8649  of the dialog 
8650 \family sans
8651 \bar under
8652 D
8653 \bar default
8654 ocument\SpecialChar \menuseparator
8655
8656 \bar under
8657 S
8658 \bar default
8659 ettings
8660 \family default
8661 .
8662  A detailed German description of these and other type area options can
8663  be found in the Koma-Script documentation 
8664 \emph on
8665 scrguide
8666 \emph default
8667 .
8668 \end_layout
8669
8670 \begin_layout Itemize
8671 The LaTeX document classes of the Koma-Script family define a number of
8672  additional commands.
8673  Those part of it which makes sense in LyX is implemented in corresponding
8674  paragraph types.
8675 \end_layout
8676
8677 \begin_layout Standard
8678 A detailed German description of the LaTeX document classes of the Koma-Script
8679  family can be found in the Koma-Script documentation 
8680 \emph on
8681 scrguide
8682 \emph default
8683 .
8684 \begin_inset Foot
8685 status collapsed
8686
8687 \begin_layout Standard
8688 There is an English translation 
8689 \emph on
8690 screnggu
8691 \emph default
8692 , but it is not a complete one.
8693 \end_layout
8694
8695 \end_inset
8696
8697  The following sections describe only those aspects, which are relevant
8698  in LyX.
8699 \end_layout
8700
8701 \begin_layout Subsection
8702 article (koma-script), report (koma-script), and book (koma-script)
8703 \end_layout
8704
8705 \begin_layout Standard
8706 The document classes 
8707 \emph on
8708 article (koma-script)
8709 \emph default
8710
8711 \emph on
8712 report (koma-script)
8713 \emph default
8714 , and 
8715 \emph on
8716 book
8717 \emph default
8718  
8719 \emph on
8720 (koma-script)
8721 \emph default
8722  are implemented in the layout files 
8723 \family typewriter
8724 scrartcl.layout
8725 \family default
8726
8727 \family typewriter
8728 scrreprt.layout
8729 \family default
8730 , and 
8731 \family typewriter
8732 scrbook.layout
8733 \family default
8734 , resp.
8735  They contain all the paragraph types of the corresponding standard document
8736  classes 
8737 \emph on
8738 article
8739 \emph default
8740
8741 \emph on
8742 report
8743 \emph default
8744 , and 
8745 \emph on
8746 book
8747 \emph default
8748 , resp., partly modified, with the exception of the LyX specific 
8749 \family sans
8750 List
8751 \family default
8752 -type, which is replaced by the new 
8753 \family sans
8754 Labeling
8755 \family default
8756 -type having the same functionality.
8757  Beside the 
8758 \family sans
8759 Labeling
8760 \family default
8761 -Type there is a number of new paragraph types added.
8762  They are 
8763 \emph on
8764 not
8765 \emph default
8766  part of 
8767 \emph on
8768 letter (koma-script)
8769 \emph default
8770 .
8771 \end_layout
8772
8773 \begin_layout Itemize
8774
8775 \family sans
8776 Addpart, Addchap
8777 \family default
8778
8779 \family sans
8780 Addsec
8781 \family default
8782 : are equivalents to 
8783 \family sans
8784 Part*, Chapter*
8785 \family default
8786  and 
8787 \family sans
8788 Section*
8789 \family default
8790 , resp., additionally inserting an entry in the table of contents.
8791  
8792 \family sans
8793 Addpart 
8794 \family default
8795 and
8796 \family sans
8797  Addchap
8798 \family default
8799  are not contained in 
8800 \emph on
8801 article (koma-script)
8802 \emph default
8803 .
8804 \end_layout
8805
8806 \begin_layout Itemize
8807
8808 \family sans
8809 Addchap*
8810 \family default
8811
8812 \family sans
8813 Addsec*
8814 \family default
8815 : behave exactly as 
8816 \family sans
8817 Addchap
8818 \family default
8819  and 
8820 \family sans
8821 Addsec
8822 \family default
8823 , resp., additionally clearing running heads.
8824
8825 \family sans
8826  Addchap*
8827 \family default
8828  is not contained in 
8829 \emph on
8830 article (koma-script)
8831 \emph default
8832 .
8833 \begin_inset Foot
8834 status collapsed
8835
8836 \begin_layout Standard
8837 There is also an 
8838 \family typewriter
8839
8840 \backslash
8841 addpart*
8842 \family default
8843  command in 
8844 \emph on
8845 book (koma-script)
8846 \emph default
8847  and in 
8848 \emph on
8849 report (koma-script)
8850 \emph default
8851 , but since this is identical to 
8852 \family sans
8853 Part*
8854 \family default
8855 , is has not been implemented in LyX.
8856 \end_layout
8857
8858 \end_inset
8859
8860
8861 \end_layout
8862
8863 \begin_layout Itemize
8864
8865 \family sans
8866 Minisec
8867 \family default
8868 : generates a heading directly above the following paragraph in the standard
8869  character size without affecting the structure of the document.
8870 \end_layout
8871
8872 \begin_layout Itemize
8873
8874 \family sans
8875 Captionabove
8876 \family default
8877  and 
8878 \family sans
8879 Captionbelow 
8880 \family default
8881 are special captions which respect the different space settings needed for
8882  captions placed above or below an element (if you follow strict typographic
8883  rules, you might want to place table captions always above the table).
8884  You can also use the class option 
8885 \family typewriter
8886 tablecaptionsabove
8887 \family default
8888 , which will switch 
8889 \family sans
8890 caption
8891 \family default
8892  to 
8893 \family sans
8894 captionabove
8895 \family default
8896  for tables and 
8897 \family sans
8898 captionbelow
8899 \family default
8900  for figures.
8901  You need at least Koma-Script version 2.8q to use this.
8902 \end_layout
8903
8904 \begin_layout Itemize
8905
8906 \family sans
8907 Dictum
8908 \family default
8909 : can be used to set a bonmot, e.
8910 \begin_inset ERT
8911 status collapsed
8912
8913 \begin_layout Standard
8914
8915
8916 \backslash
8917 ,
8918 \end_layout
8919
8920 \end_inset
8921
8922 g.
8923 \begin_inset ERT
8924 status collapsed
8925
8926 \begin_layout Standard
8927
8928
8929 \backslash
8930  
8931 \end_layout
8932
8933 \end_inset
8934
8935 at the beginning of a chapter.
8936  If you use the optional argument (
8937 \family sans
8938 \bar under
8939 I
8940 \bar default
8941 nsert\SpecialChar \menuseparator
8942 Short\InsetSpace ~
8943 Title
8944 \family default
8945 ), you can insert the dictum's author there.
8946  Dictum and author are separated by a line.
8947  You need at least Koma-Script version 2.8q to use this.
8948  
8949 \family sans
8950 Dictum
8951 \family default
8952  is not contained in 
8953 \emph on
8954 article (koma-script)
8955 \emph default
8956 .
8957 \end_layout
8958
8959 \begin_layout Standard
8960 The following types, together with the standard types 
8961 \family sans
8962 Title
8963 \family default
8964
8965 \family sans
8966 Author
8967 \family default
8968 , and 
8969 \family sans
8970 Date
8971 \family default
8972 , form the title area of the document.
8973  They must be entered ahead of the first 
8974 \begin_inset Quotes eld
8975 \end_inset
8976
8977 ordinary
8978 \begin_inset Quotes erd
8979 \end_inset
8980
8981  paragraph.
8982 \begin_inset Foot
8983 status collapsed
8984
8985 \begin_layout Standard
8986 The corresponding LaTeX commands must appear before the 
8987 \family typewriter
8988
8989 \backslash
8990 maketitle
8991 \family default
8992  command.
8993 \end_layout
8994
8995 \end_inset
8996
8997  When such a type is used more than once, the latter usage overwrites the
8998  former one, that means, for every type only the latest usage is valid.
8999  The order of the different types however has, like 
9000 \family sans
9001 Title
9002 \family default
9003
9004 \family sans
9005 Author
9006 \family default
9007 , and 
9008 \family sans
9009 Date
9010 \family default
9011 , no effect on the appearance of the produced document.
9012 \end_layout
9013
9014 \begin_layout Itemize
9015
9016 \family sans
9017 Subject
9018 \family default
9019 : produces a centered paragraph above the ordinary title (
9020 \family sans
9021 Title
9022 \family default
9023
9024 \family sans
9025 Author
9026 \family default
9027
9028 \family sans
9029 Date
9030 \family default
9031 ) for the subject of the document.
9032 \end_layout
9033
9034 \begin_layout Itemize
9035
9036 \family sans
9037 Publishers
9038 \family default
9039 : produces a centered paragraph below the ordinary title (
9040 \family sans
9041 Title
9042 \family default
9043
9044 \family sans
9045 Author
9046 \family default
9047
9048 \family sans
9049 Date
9050 \family default
9051 ) for the publishers' name.
9052 \end_layout
9053
9054 \begin_layout Itemize
9055
9056 \family sans
9057 Dedication
9058 \family default
9059 : in 
9060 \emph on
9061 report (koma-script)
9062 \emph default
9063  and 
9064 \emph on
9065 book (koma-script)
9066 \emph default
9067  produces a centered paragraph on its own page behind the title page, or
9068  in 
9069 \emph on
9070 article (koma-script)
9071 \emph default
9072  produces a centered paragraph below the ordinary title (
9073 \family sans
9074 Title
9075 \family default
9076
9077 \family sans
9078 Author
9079 \family default
9080
9081 \family sans
9082 Date
9083 \family default
9084
9085 \family sans
9086 Publishers
9087 \family default
9088 ) for a dedication.
9089 \end_layout
9090
9091 \begin_layout Itemize
9092
9093 \family sans
9094 Titlehead
9095 \family default
9096 : produces a left aligned paragraph above the ordinary title (
9097 \family sans
9098 Title
9099 \family default
9100
9101 \family sans
9102 Author
9103 \family default
9104
9105 \family sans
9106 Date
9107 \family default
9108
9109 \family sans
9110 Subject
9111 \family default
9112 ) for a document`s head.
9113 \end_layout
9114
9115 \begin_layout Itemize
9116
9117 \family sans
9118 Uppertitleback
9119 \family default
9120 : produces in a double-sided print in 
9121 \emph on
9122 report (koma-script)
9123 \emph default
9124  and 
9125 \emph on
9126 book (koma-script)
9127 \emph default
9128  a left-aligned paragraph at the top of the title page`s back or has no
9129  effect in a single-sided print or in 
9130 \emph on
9131 article (koma-script)
9132 \emph default
9133 .
9134 \end_layout
9135
9136 \begin_layout Itemize
9137
9138 \family sans
9139 Lowertitleback
9140 \family default
9141 : produces in a double-sided print in 
9142 \emph on
9143 report (koma-script)
9144 \emph default
9145  and 
9146 \emph on
9147 book (koma-script)
9148 \emph default
9149  a left-aligned paragraph at the bottom of the title page`s back or has
9150  no effect in a single-sided print or in 
9151 \emph on
9152 article (koma-script)
9153 \emph default
9154 .
9155 \end_layout
9156
9157 \begin_layout Itemize
9158
9159 \family sans
9160 Extratitle
9161 \family default
9162 : produces a special 
9163 \begin_inset Quotes eld
9164 \end_inset
9165
9166 dirty
9167 \begin_inset Quotes erd
9168 \end_inset
9169
9170  page ahead of the actual document containing a paragraph without special
9171  formatting.
9172 \end_layout
9173
9174 \begin_layout Standard
9175 The layout files for the document classes 
9176 \emph on
9177 article (koma-script)
9178 \emph default
9179
9180 \emph on
9181 report (koma-script)
9182 \emph default
9183 , and 
9184 \emph on
9185 book (koma-script)
9186 \emph default
9187  do include the file 
9188 \family typewriter
9189 scrmacros.inc
9190 \family default
9191 .
9192  This is thought of as a place to define your own types.
9193  Copy s
9194 \family typewriter
9195 crmacros.inc
9196 \family default
9197  in your personal layout directory and edit the file!
9198 \end_layout
9199
9200 \begin_layout Subsection
9201 letter (koma-script)
9202 \end_layout
9203
9204 \begin_layout Standard
9205 \begin_inset ERT
9206 status inlined
9207
9208 \begin_layout Standard
9209
9210
9211 \backslash
9212 begin{sloppypar}
9213 \end_layout
9214
9215 \end_inset
9216
9217
9218 \end_layout
9219
9220 \begin_layout Standard
9221 \noindent
9222 The document class 
9223 \emph on
9224 letter (koma-script)
9225 \emph default
9226  is implemented in the layout file 
9227 \family typewriter
9228 scrlettr.layout
9229 \family default
9230 .
9231  It contains all the paragraph types of the corresponding standard document
9232  class 
9233 \emph on
9234 letter
9235 \emph default
9236 , partly modified, with the exception of the LyX specific types 
9237 \family sans
9238 LyX-Code
9239 \family default
9240  and 
9241 \family sans
9242 Comment
9243 \family default
9244  and the 
9245 \family sans
9246 List
9247 \family default
9248  type, which is replaced by the new 
9249 \family sans
9250 Labeling
9251 \family default
9252  type.
9253  In addition, it contains, in contrast to the standard document class, the
9254  standard types 
9255 \family sans
9256 LaTeX
9257 \family default
9258
9259 \family sans
9260 Quotation
9261 \family default
9262
9263 \family sans
9264 Quote
9265 \family default
9266 , and 
9267 \family sans
9268 Verse
9269 \family default
9270 .
9271  Furthermore, there are a number of new letter specific types.
9272 \end_layout
9273
9274 \begin_layout Standard
9275 \begin_inset ERT
9276 status inlined
9277
9278 \begin_layout Standard
9279
9280
9281 \backslash
9282 end{sloppypar}
9283 \end_layout
9284
9285 \end_inset
9286
9287
9288 \end_layout
9289
9290 \begin_layout Standard
9291 The appearance of the letter produced by this document class can be controlled
9292  by a number of LaTeX commands, which you can put in the LaTeX preamble.
9293 \begin_inset Foot
9294 status collapsed
9295
9296 \begin_layout Standard
9297 For example, the standard appearance of the letter`s heading, consisting
9298  of name and address, is quite self-willed.
9299  An 
9300 \begin_inset Quotes eld
9301 \end_inset
9302
9303 ordinary
9304 \begin_inset Quotes erd
9305 \end_inset
9306
9307  heading is produced by the following LaTeX commands in the preamble:
9308 \end_layout
9309
9310 \begin_layout LyX-Code
9311
9312 \backslash
9313 firsthead{
9314 \backslash
9315 parbox[b]{
9316 \backslash
9317 textwidth}
9318 \end_layout
9319
9320 \begin_layout LyX-Code
9321   {
9322 \backslash
9323 ignorespaces 
9324 \backslash
9325 fromname
9326 \backslash
9327
9328 \backslash
9329  
9330 \backslash
9331 ignorespaces 
9332 \backslash
9333 fromaddress}} 
9334 \end_layout
9335
9336 \begin_layout LyX-Code
9337
9338 \backslash
9339 nexthead{
9340 \backslash
9341 parbox[b]{
9342 \backslash
9343 textwidth}
9344 \end_layout
9345
9346 \begin_layout LyX-Code
9347   {
9348 \backslash
9349 ignorespaces 
9350 \backslash
9351 fromname 
9352 \backslash
9353 hfill 
9354 \backslash
9355 ignorespaces 
9356 \backslash
9357 pagename
9358 \backslash
9359  
9360 \backslash
9361 thepage}}
9362 \end_layout
9363
9364 \end_inset
9365
9366  A detailed German description of such LaTeX commands can be found in the
9367  Koma-Script documentation 
9368 \emph on
9369 scrguide
9370 \emph default
9371 .
9372  With it, the letter's author can produce his personal letter layout.
9373 \end_layout
9374
9375 \begin_layout Standard
9376 The types 
9377 \family sans
9378 Letter 
9379 \family default
9380 and 
9381 \family sans
9382 Opening
9383 \family default
9384  define the beginning of the letter and must be used in every letter.
9385  To emphasize them in the LyX document class, they are marked with the letter
9386  
9387 \shape italic
9388 L
9389 \shape default
9390  or 
9391 \shape italic
9392 O
9393 \shape default
9394 , resp.
9395  in the left margin.
9396  It is possible to write any number of letters in one file.
9397  An 
9398 \family sans
9399 Opening
9400 \family default
9401  type produces a new letter using the same addressee and a 
9402 \family sans
9403 Letter
9404 \family default
9405  type produces a new addressee.
9406  The types 
9407 \family sans
9408 Closing
9409 \family default
9410
9411 \family sans
9412 PS
9413 \family default
9414
9415 \family sans
9416 CC
9417 \family default
9418 , and 
9419 \family sans
9420 Encl
9421 \family default
9422  are ordinary paragraph types and can also be used several times in one
9423  and the same letter.
9424 \end_layout
9425
9426 \begin_layout Itemize
9427
9428 \family sans
9429 Letter
9430 \family default
9431 : produces a paragraph for the addressee and implicitly defines the beginning
9432  of the letter.
9433 \end_layout
9434
9435 \begin_layout Itemize
9436
9437 \family sans
9438 Opening
9439 \family default
9440 : produces a paragraph for the form of address and implicitly produces a
9441  new letter.
9442 \end_layout
9443
9444 \begin_layout Itemize
9445
9446 \family sans
9447 Closing
9448 \family default
9449 : produces a paragraph for a close.
9450 \end_layout
9451
9452 \begin_layout Itemize
9453
9454 \family sans
9455 PS
9456 \family default
9457 : produces a paragraph for a postscript.
9458 \end_layout
9459
9460 \begin_layout Itemize
9461
9462 \family sans
9463 CC
9464 \family default
9465 : produces a paragraph for a distribution list.
9466 \end_layout
9467
9468 \begin_layout Itemize
9469
9470 \family sans
9471 Encl
9472 \family default
9473 : produces a paragraph for enclosures.
9474 \end_layout
9475
9476 \begin_layout Standard
9477 The types 
9478 \family sans
9479 Name
9480 \family default
9481
9482 \family sans
9483 Signature
9484 \family default
9485
9486 \family sans
9487 Address
9488 \family default
9489 ,
9490 \family sans
9491  Telephone
9492 \family default
9493
9494 \family sans
9495 Place
9496 \family default
9497
9498 \family sans
9499 Backaddress
9500 \family default
9501
9502 \family sans
9503 Specialmail
9504 \family default
9505
9506 \family sans
9507 Location
9508 \family default
9509
9510 \family sans
9511 Title
9512 \family default
9513 , and 
9514 \family sans
9515 Subject
9516 \family default
9517  are input types provided with a label to enter information, which will
9518  be processed by the document class.
9519 \begin_inset Foot
9520 status collapsed
9521
9522 \begin_layout Standard
9523 It could be seen as a matter of inconsequence, that the types 
9524 \family sans
9525 Letter
9526 \family default
9527  and 
9528 \family sans
9529 Opening
9530 \family default
9531  described above are not such input types as well.
9532  Because of the special meaning of those types, however, I have implemented
9533  them as ordinary paragraph types with a one letter mark in the left margin.
9534  Moreover, it would affect my feeling of symmetry, if the 
9535 \family sans
9536 Opening
9537 \family default
9538  type and the 
9539 \family sans
9540 Closing
9541 \family default
9542  type had such a serious different appearance.
9543 \end_layout
9544
9545 \end_inset
9546
9547  The types must be used ahead of the corresponding 
9548 \family sans
9549 Opening
9550 \family default
9551  type.
9552 \end_layout
9553
9554 \begin_layout Standard
9555 An implementation of these types in a WYSIWYG fashion does not seem to make
9556  sense, because the real appearance of the produced letter does not only
9557  depend on the usage of the particular type, but also on other factors.
9558  For example, a signature entered in the 
9559 \family sans
9560 Signature
9561 \family default
9562  type will in the standard behavior appear in the produced letter only,
9563  when in the same letter also a 
9564 \family sans
9565 Closing
9566 \family default
9567  type is used.
9568  The entered value of the 
9569 \family sans
9570 Telephone
9571 \family default
9572  type will in the standard behavior not appear in the produced letter at
9573  all.
9574  The possibility to design the letter`s heading freely is already indicated
9575  in a footnote above.
9576 \end_layout
9577
9578 \begin_layout Standard
9579 The input types can also be used as empty paragraphs.
9580  This makes sense e.\InsetSpace ~
9581 g.
9582  for the 
9583 \family sans
9584 Signature
9585 \family default
9586  type.
9587  If the 
9588 \family sans
9589 Signature
9590 \family default
9591  type is not used at all, in the standard behavior the value of the 
9592 \family sans
9593 Name
9594 \family default
9595  type is used as signature, whereas if an empty 
9596 \family sans
9597 Signature
9598 \family default
9599  type is used, no signature value is defined.
9600 \end_layout
9601
9602 \begin_layout Standard
9603 By using the input types it is possible to write a letter template, containing
9604  filled input types with your personal dates (name, address, etc.) and empty
9605  input types for other dates you want to enter.
9606 \end_layout
9607
9608 \begin_layout Itemize
9609
9610 \family sans
9611 Name
9612 \family default
9613 : sender's name, in the standard behavior appears as a centered paragraph
9614  in small caps in the letter`s heading.
9615 \end_layout
9616
9617 \begin_layout Itemize
9618
9619 \family sans
9620 Signature
9621 \family default
9622 : sender's signature, in the standard behavior appears below the 
9623 \family sans
9624 Closing
9625 \family default
9626  type.
9627  If no 
9628 \family sans
9629 Signature
9630 \family default
9631  type is used, the value of the 
9632 \family sans
9633 Name
9634 \family default
9635  type appears instead.
9636 \end_layout
9637
9638 \begin_layout Itemize
9639
9640 \family sans
9641 Address
9642 \family default
9643 : sender's address, in the standard behavior appears in a centered paragraph
9644  in the letter`s heading below the sender's name.
9645 \end_layout
9646
9647 \begin_layout Itemize
9648
9649 \family sans
9650 Telephone
9651 \family default
9652 : sender's telephone number, in the standard behavior only sets the LaTeX
9653  variable 
9654 \family typewriter
9655
9656 \backslash
9657 telephonenum
9658 \family default
9659 .
9660 \end_layout
9661
9662 \begin_layout Itemize
9663
9664 \family sans
9665 Place
9666 \family default
9667 : place of the letter`s making.
9668 \end_layout
9669
9670 \begin_layout Itemize
9671
9672 \family sans
9673 Date
9674 \family default
9675 : date of the letter`s making.
9676  
9677 \family sans
9678 Place
9679 \family default
9680  and 
9681 \family sans
9682 Date
9683 \family default
9684 , in the standard behavior, produce the place and the date in a right-aligned
9685  line below the addressee's field.
9686  If an empty 
9687 \family sans
9688 Date
9689 \family default
9690  type is used, neither place nor date appear, independent of the value of
9691  the 
9692 \family sans
9693 Place
9694 \family default
9695  type.
9696  If no 
9697 \family sans
9698 Date
9699 \family default
9700  type is used, the date of the letter `s production is used.
9701 \end_layout
9702
9703 \begin_layout Itemize
9704
9705 \family sans
9706 Backaddress
9707 \family default
9708 : sender`s back address, in the standard behavior appears above the addressee's
9709  field in a small sans serif font.
9710 \end_layout
9711
9712 \begin_layout Itemize
9713
9714 \family sans
9715 Specialmail
9716 \family default
9717 : special mail information, in the standard behavior appears underlined
9718  above the addressee's field below the back address.
9719 \end_layout
9720
9721 \begin_layout Itemize
9722
9723 \family sans
9724 Location
9725 \family default
9726 : additional information, in the standard behavior appears on right side
9727  below the addressee`s field.
9728 \end_layout
9729
9730 \begin_layout Itemize
9731
9732 \family sans
9733 Title
9734 \family default
9735 : the letter's title, in the standard behavior appears in a big, bold, sans
9736  serif font above the subject.
9737 \end_layout
9738
9739 \begin_layout Itemize
9740
9741 \family sans
9742 Subject
9743 \family default
9744 : the letter's subject, in the standard behavior appears in a bold font
9745  above the 
9746 \family sans
9747 Opening
9748 \family default
9749  paragraph.
9750 \end_layout
9751
9752 \begin_layout Standard
9753 The types 
9754 \family sans
9755 Yourref
9756 \family default
9757
9758 \family sans
9759 Yourmail
9760 \family default
9761
9762 \family sans
9763 Myref
9764 \family default
9765
9766 \family sans
9767 Customer
9768 \family default
9769 , and 
9770 \family sans
9771 Invoice
9772 \family default
9773  produce a business letter like line above the 
9774 \family sans
9775 Title
9776 \family default
9777  line containing the fields 
9778 \begin_inset Quotes eld
9779 \end_inset
9780
9781 Your ref.
9782 \begin_inset Quotes erd
9783 \end_inset
9784
9785
9786 \begin_inset Quotes eld
9787 \end_inset
9788
9789 Your letter of
9790 \begin_inset Quotes erd
9791 \end_inset
9792
9793
9794 \begin_inset Quotes eld
9795 \end_inset
9796
9797 Our ref.
9798 \begin_inset Quotes erd
9799 \end_inset
9800
9801
9802 \begin_inset Quotes eld
9803 \end_inset
9804
9805 Customer no.
9806 \begin_inset Quotes erd
9807 \end_inset
9808
9809
9810 \begin_inset Quotes eld
9811 \end_inset
9812
9813 Invoice no.
9814 \begin_inset Quotes erd
9815 \end_inset
9816
9817 , and 
9818 \begin_inset Quotes eld
9819 \end_inset
9820
9821 Date
9822 \begin_inset Quotes erd
9823 \end_inset
9824
9825 .
9826  For the date field, the value of the 
9827 \family sans
9828 Date
9829 \family default
9830  type is used.
9831  If one of these 
9832 \begin_inset Quotes eld
9833 \end_inset
9834
9835 business letter types
9836 \begin_inset Quotes erd
9837 \end_inset
9838
9839  is used, the value of the 
9840 \family sans
9841 Place
9842 \family default
9843  type however does not appear, but only the LaTeX variable 
9844 \family typewriter
9845
9846 \backslash
9847 fromplace
9848 \family default
9849  is set.
9850  The ordinary output of place and date in a right-aligned line below the
9851  addressee`s field is suppressed.
9852  The types are implemented as input types provided with a label and must
9853  be used ahead of the corresponding 
9854 \family sans
9855 Opening
9856 \family default
9857  type.
9858 \end_layout
9859
9860 \begin_layout Itemize
9861
9862 \family sans
9863 Yourref
9864 \family default
9865 : Your ref.
9866 \end_layout
9867
9868 \begin_layout Itemize
9869
9870 \family sans
9871 Yourmail
9872 \family default
9873 : Your letter of.
9874 \end_layout
9875
9876 \begin_layout Itemize
9877
9878 \family sans
9879 Myref
9880 \family default
9881 : Our ref.
9882 \end_layout
9883
9884 \begin_layout Itemize
9885
9886 \family sans
9887 Customer
9888 \family default
9889 : Customer no.
9890 \end_layout
9891
9892 \begin_layout Itemize
9893
9894 \family sans
9895 Invoice
9896 \family default
9897 : Invoice no.
9898 \end_layout
9899
9900 \begin_layout Subsection
9901 The new letter class: letter (koma-script v.2)
9902 \end_layout
9903
9904 \begin_layout Standard
9905 by 
9906 \noun on
9907 Jürgen Spitzmüller
9908 \end_layout
9909
9910 \begin_layout Standard
9911 \begin_inset VSpace medskip
9912 \end_inset
9913
9914
9915 \end_layout
9916
9917 \begin_layout Standard
9918 \noindent
9919 Koma-Script version 2.8 has introduced a new letter class 
9920 \family typewriter
9921 scrlttr2
9922 \family default
9923  which superceeds the now unsupported 
9924 \family typewriter
9925 scrlettr
9926 \family default
9927 .
9928  It has --- on the LaTeX side --- a completely new interface and is not
9929  compatible with the old class.
9930  Therefore, LyX supports both, though it is recommended to use the new class.
9931 \end_layout
9932
9933 \begin_layout Standard
9934 This class covers the same functionality as 
9935 \emph on
9936 letter (koma-script),
9937 \emph default
9938  and a few more.
9939  The basic items are 
9940 \family sans
9941 Address
9942 \family default
9943  (receiver's address, same as 
9944 \family sans
9945 Letter
9946 \family default
9947  in the old layout), 
9948 \family sans
9949 Opening
9950 \family default
9951 , and 
9952 \family sans
9953 Closing
9954 \family default
9955 .
9956  
9957 \family sans
9958 NextAddress
9959 \family default
9960  will start a new letter (i.
9961 \begin_inset ERT
9962 status collapsed
9963
9964 \begin_layout Standard
9965
9966
9967 \backslash
9968 ,
9969 \end_layout
9970
9971 \end_inset
9972
9973 e.
9974 \begin_inset ERT
9975 status collapsed
9976
9977 \begin_layout Standard
9978
9979
9980 \backslash
9981  
9982 \end_layout
9983
9984 \end_inset
9985
9986 you can write several letters per document).
9987  New elements are sender's 
9988 \family sans
9989 E-Mail
9990 \family default
9991
9992 \family sans
9993 URL
9994 \family default
9995
9996 \family sans
9997 Fax
9998 \family default
9999
10000 \family sans
10001 Bank
10002 \family default
10003  and the possibility to use a 
10004 \family sans
10005 Logo
10006 \family default
10007  (via 
10008 \family sans
10009 \bar under
10010 I
10011 \bar default
10012 nsert\SpecialChar \menuseparator
10013
10014 \bar under
10015 G
10016 \bar default
10017 raphics
10018 \family default
10019 ) in the header.
10020 \end_layout
10021
10022 \begin_layout Standard
10023 The biggest improvement is, though, that the letter's layout is configurable
10024  at almost any needs.
10025  This can be done via the preamble or with a special style file (Letter
10026  Class Option, extension 
10027 \family typewriter
10028 *.lco
10029 \family default
10030 ), that will be read in as a class option.
10031 \begin_inset Foot
10032 status collapsed
10033
10034 \begin_layout Standard
10035 The KOMA package comes with some default 
10036 \family typewriter
10037 *.lco
10038 \family default
10039  files.
10040  There is, for instance, a 
10041 \family typewriter
10042 DIN.lco
10043 \family default
10044  file that follows german typesetting rules, or a 
10045 \family typewriter
10046 KOMAold.lco
10047 \family default
10048  that provides the default layout of the old 
10049 \family typewriter
10050 scrlettr
10051 \family default
10052  class.
10053  The latter can be loaded with the class option 
10054 \family typewriter
10055 KOMAold
10056 \family default
10057 , inserted via the 
10058 \family sans
10059 \bar under
10060 L
10061 \bar default
10062 ayout\SpecialChar \menuseparator
10063
10064 \bar under
10065 D
10066 \bar default
10067 ocument\SpecialChar \menuseparator
10068 Extra Options 
10069 \family default
10070 field.
10071 \end_layout
10072
10073 \end_inset
10074
10075  Have a look at the 
10076 \emph on
10077 koma-letter2
10078 \emph default
10079  template that is included in LyX for examples.
10080  A detailed description is to be found in the Koma-Script documentation
10081  (
10082 \emph on
10083 scrguide
10084 \emph default
10085 ).
10086 \end_layout
10087
10088 \begin_layout Subsection
10089 Problems
10090 \end_layout
10091
10092 \begin_layout Standard
10093 Visualizing the Koma-Script document classes in LyX, the LyX internals cause
10094  some problems.
10095 \end_layout
10096
10097 \begin_layout Itemize
10098 The chapter number of a 
10099 \family sans
10100 Chapter
10101 \family default
10102  type appears on a line of its own above the chapter heading instead of
10103  appearing in the same line ahead of it.
10104  The cause for that is the LyX internal behavior for the labeltype 
10105 \family sans
10106 Counter_Chapter
10107 \family default
10108  in the layout file.
10109 \end_layout
10110
10111 \begin_layout Itemize
10112 The headings of the types 
10113 \family sans
10114 Addchap
10115 \family default
10116  and 
10117 \family sans
10118 Addsec
10119 \family default
10120  are only put in the 
10121 \begin_inset Quotes eld
10122 \end_inset
10123
10124 true
10125 \begin_inset Quotes erd
10126 \end_inset
10127
10128  LaTeX table of contents, but not in the LyX table of contents (
10129 \family sans
10130 \bar under
10131 D
10132 \bar default
10133 ocument\SpecialChar \menuseparator
10134
10135 \bar under
10136 T
10137 \bar default
10138 able\InsetSpace ~
10139 of\InsetSpace ~
10140 Contents
10141 \family default
10142 ).
10143 \end_layout
10144
10145 \begin_layout Itemize
10146 The paragraphs in a 
10147 \emph on
10148 letter
10149 \emph default
10150  document class appear in a skip separation mode, not indented.
10151  This is the standard behavior, no special LaTeX commands are needed for
10152  that.
10153  But in the 
10154 \family sans
10155 \bar under
10156 D
10157 \bar default
10158 ocument\SpecialChar \menuseparator
10159
10160 \bar under
10161 S
10162 \bar default
10163 ettings
10164 \family default
10165  dialog the corresponding radio button indicates 
10166 \family sans
10167 \bar under
10168 I
10169 \bar default
10170 ndent
10171 \family default
10172 .
10173  A 
10174 \family sans
10175 S
10176 \bar under
10177 k
10178 \bar default
10179 ip
10180 \family default
10181  value always has the effect that extra LaTeX commands are inserted in the
10182  document to produce the gap, which is not what is wanted in this case.
10183 \end_layout
10184
10185 \begin_layout Section
10186 Springer Journals (
10187 \family sans
10188 svjour
10189 \family default
10190 )
10191 \end_layout
10192
10193 \begin_layout Standard
10194 by 
10195 \noun on
10196 Martin Vermeer
10197 \end_layout
10198
10199 \begin_layout Subsection
10200 Description
10201 \end_layout
10202
10203 \begin_layout Standard
10204 These are the layout files for some of the journal formats used by Springer
10205  Verlag and listed on 
10206 \begin_inset LatexCommand \url{http://www.springer.de/author/tex/help-journals.html}
10207
10208 \end_inset
10209
10210 , where you should also go to fetch the class files (yes, these are LaTeX2e
10211  now!).
10212  It is a modular system: the things common to all journals are implemented
10213  in 
10214 \family typewriter
10215 svjour.inc
10216 \family default
10217 , which journal-specific layout files (such as, e.g., 
10218 \family typewriter
10219 svjog.layout
10220 \family default
10221  for Journal of Geodesy) can include.
10222 \end_layout
10223
10224 \begin_layout Standard
10225 This means that implementing support for any other Springer journal on this
10226  list is as simple as writing your own 
10227 \family typewriter
10228 sv
10229 \family default
10230 <myjournal>
10231 \family typewriter
10232 .layout
10233 \family default
10234  file following the outline given in 
10235 \family typewriter
10236 svjog.layout
10237 \family default
10238 .
10239  
10240 \end_layout
10241
10242 \begin_layout Standard
10243 It is reasonably well tested only for the Journal of Geodesy.
10244  
10245 \family typewriter
10246 svjour
10247 \family default
10248  and 
10249 \family typewriter
10250 svjog
10251 \family default
10252  come with the standard LyX distribution.
10253  Install the relevant class file (downloaded from Springer) in a proper
10254  directory, reconfigure LaTeX (in the teTeX case by running 
10255 \family typewriter
10256 texhash
10257 \family default
10258 , as root if necessary --- doesn't LyX take care of this?), reconfigure
10259  LyX and it should work.
10260 \end_layout
10261
10262 \begin_layout Subsection
10263 New styles
10264 \end_layout
10265
10266 \begin_layout Standard
10267 A large number of theorem-like styles --- 
10268 \family sans
10269 Claim, Conjecture,
10270 \family default
10271  
10272 \family sans
10273 \SpecialChar \ldots{}
10274 Theorem
10275 \family default
10276 .
10277 \end_layout
10278
10279 \begin_layout Standard
10280
10281 \family sans
10282 Headnote, Dedication, Subtitle, Running_LaTeX_Title, Author_Running, Institute,
10283  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
10284 \family default
10285 .
10286  See the Springer class file documentation for details.
10287 \end_layout
10288
10289 \begin_layout Subsection
10290 Supported journals
10291 \end_layout
10292
10293 \begin_layout Itemize
10294
10295 \emph on
10296 Journal of Geodesy
10297 \emph default
10298
10299 \family typewriter
10300 svjog.layout 
10301 \family default
10302 --- Martin Vermeer
10303 \end_layout
10304
10305 \begin_layout Itemize
10306
10307 \emph on
10308 Probability Theory and Related Fields
10309 \emph default
10310
10311 \family typewriter
10312 svprobth.layout
10313 \family default
10314  --- Jean-Marc Lasgouttes
10315 \end_layout
10316
10317 \begin_layout Standard
10318 Add your own, it isn't so hard!
10319 \end_layout
10320
10321 \begin_layout Subsection
10322 Credits
10323 \end_layout
10324
10325 \begin_layout Standard
10326 These files are partly based on the older 
10327 \family typewriter
10328 ejour2.layout
10329 \family default
10330 , which was again based on a tinkered-with version of an old LaTeX 2.09 style
10331  file from Springer.
10332  All this, and the 
10333 \family typewriter
10334 ejour2
10335 \family default
10336  layout, are now defunct.
10337  Jean-Marc Lasgouttes helped out big in making me find my way around the
10338  LyX layout file mechanism.
10339 \end_layout
10340
10341 \begin_layout Subsection
10342 Bugs
10343 \end_layout
10344
10345 \begin_layout Standard
10346 Probably.
10347  But probably less than in the old hacked-LaTeX 
10348 \family typewriter
10349 ejour2
10350 \family default
10351 .
10352 \end_layout
10353
10354 \begin_layout Standard
10355 Limitations e.g.: does not display the number for theorem-like layouts, just
10356  #.
10357 \end_layout
10358
10359 \begin_layout Section
10360 AGU journals (
10361 \family sans
10362 aguplus
10363 \family default
10364 )
10365 \end_layout
10366
10367 \begin_layout Standard
10368 by 
10369 \shape smallcaps
10370 Martin Vermeer
10371 \end_layout
10372
10373 \begin_layout Subsection
10374 Description
10375 \end_layout
10376
10377 \begin_layout Standard
10378 These are the layout files for some of the journals of the American Geophysical
10379  Society.
10380  It is assumed that you have both the AGU's own class files and AGUplus
10381  installed (everything to be found at
10382 \begin_inset LatexCommand \url{ftp://ftp.agu.org/journals/latex/journals}
10383
10384 \end_inset
10385
10386 ).
10387 \end_layout
10388
10389 \begin_layout Subsection
10390 New styles
10391 \end_layout
10392
10393 \begin_layout Standard
10394 Redefined are 
10395 \family sans
10396 Paragraph
10397 \family default
10398
10399 \family sans
10400 Paragraph*
10401 \family default
10402 .
10403  They are still called this in the LyX GUI, though their LaTeX equivalents
10404  in the AGU classes are 
10405 \family sans
10406 Subsubsubsection
10407 \family default
10408  and 
10409 \family sans
10410 Subsubsubsection*
10411 \family default
10412 .
10413 \end_layout
10414
10415 \begin_layout Standard
10416 Newly defined styles are 
10417 \family sans
10418 Left_Header
10419 \family default
10420
10421 \family sans
10422 Right_Header
10423 \family default
10424
10425 \family sans
10426 Received
10427 \family default
10428
10429 \family sans
10430 Revised
10431 \family default
10432
10433 \family sans
10434 Accepted
10435 \family default
10436
10437 \family sans
10438 CCC
10439 \family default
10440
10441 \family sans
10442 PaperId
10443 \family default
10444
10445 \family sans
10446 AuthorAddr
10447 \family default
10448
10449 \family sans
10450 SlugComment
10451 \family default
10452 .
10453  These are mostly manuscript attributes and defined in the AGU class documentati
10454 on.
10455 \end_layout
10456
10457 \begin_layout Standard
10458 I suspect this is still badly incomplete.
10459 \end_layout
10460
10461 \begin_layout Subsection
10462 New floats
10463 \end_layout
10464
10465 \begin_layout Standard
10466
10467 \family sans
10468 Planotable
10469 \family default
10470  and 
10471 \family sans
10472 Plate
10473 \family default
10474 .
10475  We also have a new 
10476 \family sans
10477 Table_Caption
10478 \family default
10479 .
10480 \end_layout
10481
10482 \begin_layout Subsection
10483 Supported journals
10484 \end_layout
10485
10486 \begin_layout Itemize
10487
10488 \emph on
10489 Journal of Geophysical Research
10490 \emph default
10491
10492 \family typewriter
10493 jgrga.layout 
10494 \family default
10495 --- Martin Vermeer
10496 \end_layout
10497
10498 \begin_layout Standard
10499 Add your own, it isn't so hard! Look at the 
10500 \family typewriter
10501 jgrga.layout
10502 \family default
10503  example and 
10504 \family typewriter
10505 aguplus.inc
10506 \family default
10507 .
10508 \end_layout
10509
10510 \begin_layout Subsection
10511 Bugs and things to remember
10512 \end_layout
10513
10514 \begin_layout Standard
10515 In order to use the new layouts, you must remember to do the following for
10516  a new document:
10517 \end_layout
10518
10519 \begin_layout Enumerate
10520
10521 \emph on
10522 Turn off babel
10523 \emph default
10524 .
10525  This can be done in the 
10526 \family sans
10527 layout\SpecialChar \menuseparator
10528 document
10529 \family default
10530  or 
10531 \family sans
10532 document\SpecialChar \menuseparator
10533 settings
10534 \family default
10535  menu item.
10536  (AGU articles are always in English, right? So 
10537 \emph on
10538 don't
10539 \emph default
10540  choose a language.)
10541 \end_layout
10542
10543 \begin_layout Enumerate
10544 Enter 
10545 \family typewriter
10546 jgrga
10547 \family default
10548  into the document's 
10549 \family sans
10550 Extra Options
10551 \family default
10552  field.
10553  (Yes, this is a bug.)
10554 \end_layout
10555
10556 \begin_layout Enumerate
10557 Make sure you use the 
10558 \family typewriter
10559 agu.bst
10560 \family default
10561  bibliography style, by entering 
10562 \family sans
10563 agu
10564 \family default
10565  into the second field of the BibTeX inset.
10566  None of the standard styles will do.
10567 \end_layout
10568
10569 \begin_layout Section
10570 EGS journals (
10571 \family sans
10572 egs
10573 \family default
10574 )
10575 \end_layout
10576
10577 \begin_layout Standard
10578 by 
10579 \shape smallcaps
10580 Martin Vermeer
10581 \end_layout
10582
10583 \begin_layout Subsection
10584 Description
10585 \end_layout
10586
10587 \begin_layout Standard
10588 This is the layout file for the European Geophysical Society journals.
10589  The needed 
10590 \family typewriter
10591 egs.cls
10592 \family default
10593  can be downloaded from the web site of the EGS under 
10594 \begin_inset LatexCommand \url{www.copernicus.org}
10595
10596 \end_inset
10597
10598 .
10599 \end_layout
10600
10601 \begin_layout Subsection
10602 New styles
10603 \end_layout
10604
10605 \begin_layout Standard
10606
10607 \family sans
10608 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10609  Accepted
10610 \family default
10611
10612 \family sans
10613 Offsets
10614 \family default
10615 .
10616  The current layout file is unfortunately very unmodular and would benefit
10617  from using the various 
10618 \family typewriter
10619 std*.inc
10620 \family default
10621  file inclusions.
10622 \end_layout
10623
10624 \begin_layout Section
10625 Slides [aka 
10626 \noun on
10627 Sli
10628 \noun default
10629 TeX]
10630 \begin_inset LatexCommand \label{sec:slitex}
10631
10632 \end_inset
10633
10634
10635 \end_layout
10636
10637 \begin_layout Standard
10638 by 
10639 \noun on
10640 John Weiss
10641 \noun default
10642  
10643 \end_layout
10644
10645 \begin_layout Subsection
10646 Introduction
10647 \end_layout
10648
10649 \begin_layout Standard
10650 This section describes how to use LyX to make slides for overhead projectors.
10651  There are two document classes that can do this: the default slides class
10652  and the 
10653 \family sans
10654 Foil
10655 \family default
10656 TeX slides class.
10657  This section documents the former.
10658 \end_layout
10659
10660 \begin_layout Standard
10661 I'm going to say this again, nice and clear, so that there's no misunderstanding
10662 :
10663 \end_layout
10664
10665 \begin_layout Standard
10666 \begin_inset VSpace bigskip
10667 \end_inset
10668
10669
10670 \end_layout
10671
10672 \begin_layout Standard
10673 \align center
10674
10675 \size large
10676 This section documents the class 
10677 \begin_inset Quotes eld
10678 \end_inset
10679
10680
10681 \family sans
10682 slides (default)
10683 \family default
10684
10685 \begin_inset Quotes erd
10686 \end_inset
10687
10688  
10689 \emph on
10690 only.
10691 \end_layout
10692
10693 \begin_layout Standard
10694 \begin_inset VSpace bigskip
10695 \end_inset
10696
10697
10698 \end_layout
10699
10700 \begin_layout Standard
10701 If you're looking for the documentation for 
10702 \begin_inset Quotes eld
10703 \end_inset
10704
10705
10706 \family sans
10707 slides (FoilTeX)
10708 \family default
10709
10710 \begin_inset Quotes erd
10711 \end_inset
10712
10713 , check out section\InsetSpace ~
10714
10715 \begin_inset LatexCommand \ref{sec:foiltex}
10716
10717 \end_inset
10718
10719 .
10720  The 
10721 \family sans
10722 foils 
10723 \family default
10724 class [
10725 \begin_inset Quotes eld
10726 \end_inset
10727
10728
10729 \family sans
10730 slides (FoilTeX)
10731 \family default
10732
10733 \begin_inset Quotes erd
10734 \end_inset
10735
10736 ] is actually somewhat better than the default 
10737 \family sans
10738 slides
10739 \family default
10740  class,
10741 \begin_inset Foot
10742 status collapsed
10743
10744 \begin_layout Standard
10745 \SpecialChar \ldots{}
10746 or so I've been told repeatedly by its advocates.
10747  Having never used it, I have no idea if this claim is true or not.
10748 \end_layout
10749
10750 \end_inset
10751
10752  which this section documents.
10753 \end_layout
10754
10755 \begin_layout Standard
10756 This class is the LaTeX2e improvement of the old 
10757 \noun on
10758 Sli
10759 \noun default
10760 TeX package.
10761  Every LaTeX2e distribution includes this class [which I'll just refer to
10762  as 
10763 \begin_inset Quotes eld
10764 \end_inset
10765
10766
10767 \family sans
10768 slides
10769 \family default
10770
10771 \begin_inset Quotes erd
10772 \end_inset
10773
10774  from now on], so you're bound to have it.
10775  As I noted earlier, there are other classes, such as 
10776 \family sans
10777 foils
10778 \family default
10779 , which also produce slides for overhead projectors and do a better job
10780  at it.
10781  However, there are some things which 
10782 \family sans
10783 slides
10784 \family default
10785  can do which the others can't, such as generate overlays.
10786  Read on to learn more!
10787 \end_layout
10788
10789 \begin_layout Subsection
10790 Getting Started
10791 \begin_inset LatexCommand \label{sec:slidesetup}
10792
10793 \end_inset
10794
10795
10796 \end_layout
10797
10798 \begin_layout Standard
10799 Obviously, to use this document class, you need to select 
10800 \begin_inset Quotes eld
10801 \end_inset
10802
10803
10804 \family sans
10805 slides (default)
10806 \family default
10807
10808 \begin_inset Quotes erd
10809 \end_inset
10810
10811  from the class list in the 
10812 \family sans
10813 \bar under
10814 D
10815 \bar default
10816 ocument\SpecialChar \menuseparator
10817
10818 \bar under
10819 S
10820 \bar default
10821 ettings
10822 \family default
10823  dialog.
10824  There are some other special things you should know about this class:
10825 \end_layout
10826
10827 \begin_layout Itemize
10828 Don't bother changing the options 
10829 \family sans
10830 Sides and Columns
10831 \family default
10832 .
10833  They're not supported by the 
10834 \family sans
10835 slides
10836 \family default
10837  class, anyways.
10838 \end_layout
10839
10840 \begin_layout Itemize
10841 The option 
10842 \family sans
10843 \bar under
10844 P
10845 \bar default
10846 age\InsetSpace ~
10847 style
10848 \family default
10849  behaves a bit differently for this class.
10850  The possible choices and what they do are as follows:
10851 \end_layout
10852
10853 \begin_deeper
10854 \begin_layout Description
10855
10856 \family sans
10857 plain
10858 \family default
10859  The final output contains page numbers in the lower right corner.
10860 \end_layout
10861
10862 \begin_layout Description
10863
10864 \family sans
10865 headings
10866 \family default
10867  Like 
10868 \family sans
10869 plain
10870 \family default
10871 , but also prints out any time markers you've put in.
10872  This is the default.
10873 \end_layout
10874
10875 \begin_layout Description
10876
10877 \family sans
10878 empty
10879 \family default
10880  The final output contains no page numbers, time markers, or alignment markers.
10881 \end_layout
10882
10883 \end_deeper
10884 \begin_layout Itemize
10885 The 
10886 \family sans
10887 slides
10888 \family default
10889  class has an extra option: 
10890 \family typewriter
10891 clock
10892 \family default
10893 .
10894  To use it, put 
10895 \begin_inset Quotes eld
10896 \end_inset
10897
10898
10899 \family typewriter
10900 clock
10901 \family default
10902
10903 \begin_inset Quotes erd
10904 \end_inset
10905
10906  in the extra class options.
10907 \end_layout
10908
10909 \begin_deeper
10910 \begin_layout Standard
10911 Using this options allows you to add time markers to 
10912 \family sans
10913 Note
10914 \family default
10915 s.
10916  See section\InsetSpace ~
10917
10918 \begin_inset LatexCommand \ref{sec:slideNote}
10919
10920 \end_inset
10921
10922  for more details.
10923 \end_layout
10924
10925 \end_deeper
10926 \begin_layout Standard
10927 You can also use the template file 
10928 \begin_inset Quotes eld
10929 \end_inset
10930
10931
10932 \family typewriter
10933 slides.lyx
10934 \family default
10935
10936 \begin_inset Quotes erd
10937 \end_inset
10938
10939  to automatically set up a document to use the 
10940 \family sans
10941 slides 
10942 \family default
10943 class [using 
10944 \family sans
10945 \bar under
10946 F
10947 \bar default
10948 ile\SpecialChar \menuseparator
10949 New\InsetSpace ~
10950 from\InsetSpace ~
10951
10952 \bar under
10953 T
10954 \bar default
10955 emplate
10956 \family default
10957  to open your new document].
10958  The template file also contains some examples of the special paragraph
10959  environments used by this class.
10960  I'll describe those next.
10961 \end_layout
10962
10963 \begin_layout Subsection
10964 Paragraph Environments
10965 \end_layout
10966
10967 \begin_layout Subsubsection
10968 Supported Environments
10969 \end_layout
10970
10971 \begin_layout Standard
10972 The first thing you'll notice when you start up a new 
10973 \family sans
10974 slides 
10975 \family default
10976 document is the font size and type: it's the equivalent of the size 
10977 \begin_inset Quotes eld
10978 \end_inset
10979
10980
10981 \family sans
10982 Largest
10983 \family default
10984
10985 \begin_inset Quotes erd
10986 \end_inset
10987
10988  in the 
10989 \family sans
10990 Sans\InsetSpace ~
10991 Serif
10992 \family default
10993  font.
10994  This is also what's used in the output.
10995  Think of this as a 
10996 \begin_inset Quotes eld
10997 \end_inset
10998
10999 visual cue
11000 \begin_inset Quotes erd
11001 \end_inset
11002
11003  to remind you that this is a slide.
11004  Your final slides will use a larger font; ergo, you'll have less space.
11005  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
11006 \end_layout
11007
11008 \begin_layout Standard
11009 The next thing that becomes obvious is the changes to the paragraph environment
11010  pull-down box [at the far-left end of the toolbar].
11011  Most of the paragraph environments you're used to seeing are missing.
11012  There are also five new ones.
11013  That's because the 
11014 \family sans
11015 slides
11016 \family default
11017  class itself only supports certain paragraph environments:
11018 \end_layout
11019
11020 \begin_layout Itemize
11021
11022 \family sans
11023 Standard
11024 \end_layout
11025
11026 \begin_layout Itemize
11027
11028 \family sans
11029 Itemize
11030 \end_layout
11031
11032 \begin_layout Itemize
11033
11034 \family sans
11035 Enumerate
11036 \end_layout
11037
11038 \begin_layout Itemize
11039
11040 \family sans
11041 Description
11042 \end_layout
11043
11044 \begin_layout Itemize
11045
11046 \family sans
11047 List
11048 \end_layout
11049
11050 \begin_layout Itemize
11051
11052 \family sans
11053 Quotation
11054 \end_layout
11055
11056 \begin_layout Itemize
11057
11058 \family sans
11059 Quote
11060 \end_layout
11061
11062 \begin_layout Itemize
11063
11064 \family sans
11065 Verse
11066 \end_layout
11067
11068 \begin_layout Itemize
11069
11070 \family sans
11071 Caption
11072 \end_layout
11073
11074 \begin_layout Itemize
11075
11076 \family sans
11077 LyX-Code
11078 \end_layout
11079
11080 \begin_layout Itemize
11081
11082 \family sans
11083 Comment
11084 \end_layout
11085
11086 \begin_layout Standard
11087 All of the other standard environments, including the section-heading environmen
11088 ts, aren't used in the 
11089 \family sans
11090 slides
11091 \family default
11092  class.
11093 \end_layout
11094
11095 \begin_layout Standard
11096 On the other hand, you'll notice the following new environments:
11097 \end_layout
11098
11099 \begin_layout Itemize
11100
11101 \family sans
11102 Slide
11103 \end_layout
11104
11105 \begin_layout Itemize
11106
11107 \family sans
11108 Overlay
11109 \end_layout
11110
11111 \begin_layout Itemize
11112
11113 \family sans
11114 Note
11115 \end_layout
11116
11117 \begin_layout Itemize
11118
11119 \family sans
11120 InvisibleText
11121 \end_layout
11122
11123 \begin_layout Itemize
11124
11125 \family sans
11126 VisibleText
11127 \end_layout
11128
11129 \begin_layout Standard
11130 These five are kind of quirky, due to a 
11131 \begin_inset Quotes eld
11132 \end_inset
11133
11134 feature
11135 \begin_inset Quotes erd
11136 \end_inset
11137
11138  in LyX.
11139  You see, LyX doesn't permit you to nest any other paragraph environment
11140  into an empty environment.
11141  Now, that's fine and dandy, but it means that you wouldn't be able to start
11142  a slide with anything except plain text.
11143  To deal with this, I've performed a little 
11144 \begin_inset Quotes eld
11145 \end_inset
11146
11147 LaTeX magic.
11148 \begin_inset Quotes erd
11149 \end_inset
11150
11151  
11152 \end_layout
11153
11154 \begin_layout Subsubsection
11155 Quirks of the New Environments
11156 \begin_inset LatexCommand \label{sec:slideQuirk}
11157
11158 \end_inset
11159
11160
11161 \end_layout
11162
11163 \begin_layout Standard
11164 All five of the new paragraph environments are somewhat quirky due to inherent
11165  limitiations in the current version of LyX.
11166  As I just mentioned, LyX forbids environments that begin with another environme
11167 nt.
11168  To get around this, the 
11169 \family sans
11170 Slide
11171 \family default
11172  environment isn't a paragraph environment as described in the 
11173 \emph on
11174 User's Guide
11175 \emph default
11176 .
11177  
11178 \end_layout
11179
11180 \begin_layout Standard
11181 You should consider 
11182 \family sans
11183 Slide
11184 \family default
11185
11186 \family sans
11187 Overlay
11188 \family default
11189 , and 
11190 \family sans
11191 Note
11192 \family default
11193  to be 
11194 \begin_inset Quotes eld
11195 \end_inset
11196
11197 pseudo-environments.
11198 \begin_inset Quotes erd
11199 \end_inset
11200
11201  They look like a section heading or a 
11202 \begin_inset Quotes eld
11203 \end_inset
11204
11205
11206 \family sans
11207 Caption
11208 \family default
11209 ,
11210 \begin_inset Quotes erd
11211 \end_inset
11212
11213  but really begin a [and, if necessary, end the previous] paragraph environment.
11214  Likewise, treat 
11215 \family sans
11216 InvisibleText
11217 \family default
11218  and 
11219 \family sans
11220 VisibleText
11221 \family default
11222  as 
11223 \begin_inset Quotes eld
11224 \end_inset
11225
11226 pseudo-commands.
11227 \begin_inset Quotes erd
11228 \end_inset
11229
11230  These two perform some action.
11231 \end_layout
11232
11233 \begin_layout Standard
11234 A common feature of all five environments, 
11235 \family sans
11236 Slide
11237 \family default
11238
11239 \family sans
11240 Overlay
11241 \family default
11242
11243 \family sans
11244 Note
11245 \family default
11246
11247 \family sans
11248 InvisibleText
11249 \family default
11250  and 
11251 \family sans
11252 VisibleText
11253 \family default
11254 , is a rather long-ish label.
11255  The text following this label --- ordinarily the contents of the paragraph
11256  environment --- is utterly irrelevant for 
11257 \family sans
11258 Slide
11259 \family default
11260
11261 \family sans
11262 Overlay
11263 \family default
11264
11265 \family sans
11266 Note
11267 \family default
11268
11269 \family sans
11270 InvisibleText
11271 \family default
11272  and 
11273 \family sans
11274 VisibleText
11275 \family default
11276 .
11277  LyX completely ignores it.
11278  In fact, you can leave these five environments completely empty.
11279  
11280 \end_layout
11281
11282 \begin_layout Standard
11283 While you don't 
11284 \emph on
11285 have
11286 \emph default
11287  to put any text after the rather long-ish label, you might want to.
11288  This could be a short description of the contents of the 
11289 \family sans
11290 Slide
11291 \family default
11292 , for example.
11293  In that case, enter in your descriptive comment and hit 
11294 \family sans
11295 Return
11296 \family default
11297  as you normally would.
11298 \end_layout
11299
11300 \begin_layout Standard
11301 If, on the other hand, you don't want to enter in any descriptive text,
11302  you'll hit another LyX quirk.
11303  LyX, like nature, abhors a vacuum, and will not let you start a new paragraph
11304  environment until you put something in the old one.
11305  So, do this:
11306 \end_layout
11307
11308 \begin_layout Itemize
11309 Start entering the text that will 
11310 \emph on
11311 follow
11312 \emph default
11313  the new 
11314 \family sans
11315 Slide
11316 \family default
11317
11318 \family sans
11319 Overlay
11320 \family default
11321
11322 \family sans
11323 Note
11324 \family default
11325
11326 \family sans
11327 InvisibleText
11328 \family default
11329  or 
11330 \family sans
11331 VisibleText
11332 \family default
11333 .
11334  
11335 \end_layout
11336
11337 \begin_layout Itemize
11338 Now move to the beginning of that paragraph.
11339  
11340 \end_layout
11341
11342 \begin_layout Itemize
11343 Next, hit 
11344 \family sans
11345 Return
11346 \family default
11347 .
11348  
11349 \end_layout
11350
11351 \begin_layout Itemize
11352 Finally, change this new, empty paragraph to a 
11353 \family sans
11354 Slide
11355 \family default
11356
11357 \family sans
11358 Overlay
11359 \family default
11360
11361 \family sans
11362 Note
11363 \family default
11364
11365 \family sans
11366 InvisibleText
11367 \family default
11368  or 
11369 \family sans
11370 VisibleText
11371 \family default
11372 .
11373  
11374 \end_layout
11375
11376 \begin_layout Standard
11377 Some future version of LyX will, hopefully, resolve this quirkiness\SpecialChar \ldots{}
11378
11379 \end_layout
11380
11381 \begin_layout Subsection
11382 Making a Presentation with 
11383 \family sans
11384 Slide
11385 \family default
11386 ,
11387 \family sans
11388  Overlay
11389 \family default
11390  and 
11391 \family sans
11392 Note
11393 \end_layout
11394
11395 \begin_layout Subsubsection
11396 Using the 
11397 \family sans
11398 Slide
11399 \family default
11400  Environment
11401 \end_layout
11402
11403 \begin_layout Standard
11404 If you're expecting this section to teach you how to actually make a presentatio
11405 n, you'll be sorely disappointed.
11406  Naturally, I'll describe all of the ways the 
11407 \family sans
11408 slides
11409 \family default
11410  class can assist you in preparing the materials for a presentation.
11411  Filling in the contents, however, is up to you.
11412  [Then again, that 
11413 \emph on
11414 is
11415 \emph default
11416  the LyX philosophy.]
11417 \end_layout
11418
11419 \begin_layout Standard
11420 Choosing the 
11421 \family sans
11422 Slide
11423 \family default
11424  environment [in the manner described in section\InsetSpace ~
11425
11426 \begin_inset LatexCommand \ref{sec:slideQuirk}
11427
11428 \end_inset
11429
11430 ] tells LyX to begin a new slide [duh].
11431  The label for this environment/
11432 \begin_inset Quotes erd
11433 \end_inset
11434
11435 pseudo-command
11436 \begin_inset Quotes erd
11437 \end_inset
11438
11439  is an 
11440 \begin_inset Quotes eld
11441 \end_inset
11442
11443 ASCII line,
11444 \begin_inset Quotes erd
11445 \end_inset
11446
11447  in cool blue, followed by the label, 
11448 \begin_inset Quotes eld
11449 \end_inset
11450
11451 NewSlide:
11452 \begin_inset Quotes erd
11453 \end_inset
11454
11455 .
11456  Any text or paragraph environments that follow this one go on the new slide.
11457  It's that simple.
11458 \end_layout
11459
11460 \begin_layout Standard
11461 Slides are probably the only time you'll need to forcibly end pages in LyX
11462  (this can be specified in the 
11463 \family sans
11464 Paragraph Layout
11465 \family default
11466  dialog).
11467  In fact, you'll want to, once you finish entering the contents of one slide.
11468  If you've entered more text than can physically fit on a slide, the extra
11469  overflows onto a new slide.
11470  I don't recommend doing this, however, since the overflow slide won't have
11471  any page number on it.
11472  Furthermore, it may interfere with any 
11473 \family sans
11474 Overlay
11475 \family default
11476  you've made to accompany the oversized 
11477 \family sans
11478 Slide
11479 \family default
11480 .
11481 \end_layout
11482
11483 \begin_layout Standard
11484 The 
11485 \family sans
11486 Overlay
11487 \family default
11488  and 
11489 \family sans
11490 Note
11491 \family default
11492  environments work the same way as the 
11493 \family sans
11494 Slide 
11495 \family default
11496 environment.
11497  They both create an 
11498 \begin_inset Quotes eld
11499 \end_inset
11500
11501 ASCII line
11502 \begin_inset Quotes erd
11503 \end_inset
11504
11505  followed by a label [
11506 \begin_inset Quotes eld
11507 \end_inset
11508
11509 NewOverlay:
11510 \begin_inset Quotes erd
11511 \end_inset
11512
11513  and 
11514 \begin_inset Quotes eld
11515 \end_inset
11516
11517 NewNote:
11518 \begin_inset Quotes erd
11519 \end_inset
11520
11521 , respectively].
11522  The color is a stunning magenta instead of blue, and the 
11523 \begin_inset Quotes eld
11524 \end_inset
11525
11526 ASCII line
11527 \begin_inset Quotes erd
11528 \end_inset
11529
11530  will look different, in style and in length.
11531  The label fonts of all three also differ from one another.
11532 \end_layout
11533
11534 \begin_layout Standard
11535 As with a 
11536 \family sans
11537 Slide
11538 \family default
11539 , if the contents of a 
11540 \family sans
11541 Note
11542 \family default
11543  or 
11544 \family sans
11545 Overlay
11546 \family default
11547  exceed the physical size of a slide or sheet of paper, the extra will overflow
11548  onto a new sheet.
11549  Again, you should avoid this.
11550  It defeats the whole purpose of 
11551 \family sans
11552 Note
11553 \family default
11554 s and 
11555 \family sans
11556 Overlay
11557 \family default
11558 s.
11559 \end_layout
11560
11561 \begin_layout Subsubsection
11562 Using 
11563 \family sans
11564 Overlay
11565 \family default
11566  with 
11567 \family sans
11568 Slide
11569 \end_layout
11570
11571 \begin_layout Standard
11572 The idea behind an 
11573 \family sans
11574 Overlay
11575 \family default
11576  is a slide that sits atop another slide.
11577  Perhaps you wish to discuss a figure on the main 
11578 \family sans
11579 Slide
11580 \family default
11581  before displaying the text associated with it.
11582  One way to accomplish this is tape a flap of dark paper over the part of
11583  the 
11584 \family sans
11585 Slide
11586 \family default
11587  you want to display later.
11588  This method fails, however, if you wish to overlap one graph with another,
11589  for example.
11590  You would then have to fumble while speaking to align the two separate,
11591  overlapping 
11592 \family sans
11593 Slide
11594 \family default
11595 s to align the two graphs.
11596  The use of an 
11597 \family sans
11598 Overlay
11599 \family default
11600  environment in both cases makes life much easier.
11601 \end_layout
11602
11603 \begin_layout Standard
11604 Each 
11605 \family sans
11606 Overlay
11607 \family default
11608  receives the page number of its 
11609 \begin_inset Quotes eld
11610 \end_inset
11611
11612 parent
11613 \begin_inset Quotes erd
11614 \end_inset
11615
11616  
11617 \family sans
11618 Slide
11619 \family default
11620 , appended by 
11621 \begin_inset Quotes eld
11622 \end_inset
11623
11624
11625 \family typewriter
11626 -a
11627 \family default
11628
11629 \begin_inset Quotes erd
11630 \end_inset
11631
11632 .
11633 \begin_inset Foot
11634 status collapsed
11635
11636 \begin_layout Standard
11637 Presumably, mutliple 
11638 \family sans
11639 Overlay
11640 \family default
11641 s would have 
11642 \begin_inset Quotes eld
11643 \end_inset
11644
11645
11646 \family typewriter
11647 -a
11648 \family default
11649
11650 \begin_inset Quotes erd
11651 \end_inset
11652
11653
11654 \begin_inset Quotes eld
11655 \end_inset
11656
11657
11658 \family typewriter
11659 -b
11660 \family default
11661
11662 \begin_inset Quotes erd
11663 \end_inset
11664
11665
11666 \begin_inset Quotes eld
11667 \end_inset
11668
11669
11670 \family typewriter
11671 -c
11672 \family default
11673
11674 \begin_inset Quotes erd
11675 \end_inset
11676
11677 , etc.\InsetSpace ~
11678 appended to the page number of the parent 
11679 \family sans
11680 Slide
11681 \family default
11682 .
11683  
11684 \end_layout
11685
11686 \end_inset
11687
11688  Clearly, you want the contents of both the 
11689 \family sans
11690 Slide
11691 \family default
11692  and the 
11693 \family sans
11694 Overlay
11695 \family default
11696  to each fit on a single physical slide! You should probably consider an
11697  
11698 \family sans
11699 Overlay
11700 \family default
11701  as 
11702 \begin_inset Quotes eld
11703 \end_inset
11704
11705 part of
11706 \begin_inset Quotes erd
11707 \end_inset
11708
11709  a 
11710 \family sans
11711 Slide
11712 \family default
11713 .
11714  Indeed, the LyX 
11715 \family sans
11716 slides
11717 \family default
11718  class provides a visual cue for this: the label at the start of an 
11719 \family sans
11720 Overlay
11721 \family default
11722  is shorter than that at the start of a 
11723 \family sans
11724 Slide
11725 \family default
11726 .
11727  Lastly, when you generate printable output, you'll find alignment markers
11728  in all four corners of both the 
11729 \family sans
11730 Overlay
11731 \family default
11732  page and its parent 
11733 \family sans
11734 Slide
11735 \family default
11736 .
11737  These will assist you in lining up the two physical slides.
11738 \end_layout
11739
11740 \begin_layout Standard
11741 The major problem in overlaying two slides is aligning the contents of the
11742  two transparencies.
11743  How much space should you leave for that graph on the second slide? Worse
11744  still, what if you want a graph and a sentence on second slide, but there
11745  is text on the main transparency that goes in between them? You could try
11746  and insert vertical space of the right size.
11747  The better way is to use 
11748 \family sans
11749 InvisibleText
11750 \family default
11751  and 
11752 \family sans
11753 VisibleText
11754 \family default
11755 .
11756 \end_layout
11757
11758 \begin_layout Standard
11759 As their names imply, 
11760 \family sans
11761 InvisibleText
11762 \family default
11763  and 
11764 \family sans
11765 VisibleText
11766 \family default
11767  are two command-like paragraph environments that make all subsequent text
11768  invisible and visible, respectively.
11769  Note from section\InsetSpace ~
11770
11771 \begin_inset LatexCommand \ref{sec:slideQuirk}
11772
11773 \end_inset
11774
11775  that you don't place anything 
11776 \emph on
11777 into
11778 \emph default
11779  these two environments, however.
11780  When you create an 
11781 \family sans
11782 InvisibleText
11783 \family default
11784 , it inserts a centered, sky-blue label into the page reading 
11785 \begin_inset Quotes eld
11786 \end_inset
11787
11788 <Invisible Text Follows>
11789 \begin_inset Quotes erd
11790 \end_inset
11791
11792 .
11793  For paragraphs following this label, the parts of the 
11794 \family sans
11795 Slide
11796 \family default
11797  [or 
11798 \family sans
11799 Overlay
11800 \family default
11801 ; it doesn't matter which] where they would be contain instead blank space.
11802  
11803 \end_layout
11804
11805 \begin_layout Standard
11806 For 
11807 \family sans
11808 VisibleText
11809 \family default
11810 , the corresponding centered label is 
11811 \begin_inset Quotes eld
11812 \end_inset
11813
11814 <Visible Text Follows>
11815 \begin_inset Quotes erd
11816 \end_inset
11817
11818  in blazing green.
11819  Paragraphs following this label behave normally.
11820  Note that the beginning of a new 
11821 \family sans
11822 Slide
11823 \family default
11824
11825 \family sans
11826 Overlay
11827 \family default
11828 , or 
11829 \family sans
11830 Note
11831 \family default
11832  automatically shuts off an 
11833 \family sans
11834 InvisibleText
11835 \family default
11836 .
11837  It's therefore not necessary to use 
11838 \family sans
11839 VisibleText
11840 \family default
11841  at the end of a 
11842 \family sans
11843 Slide
11844 \family default
11845 .
11846 \end_layout
11847
11848 \begin_layout Standard
11849 By now, it should be obvious how to create overlay transparencies using
11850  the proper combination of 
11851 \family sans
11852 InvisibleText
11853 \family default
11854  and 
11855 \family sans
11856 VisibleText
11857 \family default
11858  on a 
11859 \family sans
11860 Slide
11861 \family default
11862  and 
11863 \family sans
11864 Overlay
11865 \family default
11866 :
11867 \end_layout
11868
11869 \begin_layout Enumerate
11870 Create a 
11871 \family sans
11872 Slide
11873 \family default
11874 , including everything that will appear on it, whether on the main slide
11875  or on the 
11876 \family sans
11877 Overlay
11878 \family default
11879 .
11880 \end_layout
11881
11882 \begin_layout Enumerate
11883 Before each figure or paragraph that will appear only on the 
11884 \family sans
11885 Overlay
11886 \family default
11887 , insert an 
11888 \family sans
11889 InvisibleText
11890 \family default
11891  environment.
11892  If necessary, insert a 
11893 \family sans
11894 VisibleText
11895 \family default
11896  environment after the 
11897 \family sans
11898 Overlay
11899 \family default
11900 -only text.
11901 \end_layout
11902
11903 \begin_layout Enumerate
11904 Start an 
11905 \family sans
11906 Overlay
11907 \family default
11908  immediately following the 
11909 \family sans
11910 Slide
11911 \family default
11912 .
11913 \end_layout
11914
11915 \begin_layout Enumerate
11916 Copy the contents of this 
11917 \family sans
11918 Slide
11919 \family default
11920  into the 
11921 \family sans
11922 Overlay
11923 \family default
11924 .
11925 \end_layout
11926
11927 \begin_layout Enumerate
11928 Within the 
11929 \family sans
11930 Overlay
11931 \family default
11932 , change all of the 
11933 \family sans
11934 InvisibleText
11935 \family default
11936  lines to 
11937 \family sans
11938 VisibleText
11939 \family default
11940  and vice-versa.
11941 \end_layout
11942
11943 \begin_layout Standard
11944 That's it.
11945  You've just made an 
11946 \family sans
11947 Overlay
11948 \family default
11949 .
11950 \end_layout
11951
11952 \begin_layout Standard
11953 There's one problem with the way I've designed the LyX 
11954 \family sans
11955 slides
11956 \family default
11957  class: you can't make text in the middle of a paragraph invisible, nor
11958  make text in the middle of an invisible paragraph visible again.
11959  To accomplish this feat, you'll need to use some inlined LaTeX codes.
11960 \begin_inset Foot
11961 status collapsed
11962
11963 \begin_layout Standard
11964 The commands of interest are: 
11965 \end_layout
11966
11967 \begin_layout Itemize
11968
11969 \family typewriter
11970 {
11971 \backslash
11972 invisible \SpecialChar \ldots{}
11973  }
11974 \end_layout
11975
11976 \begin_layout Itemize
11977
11978 \family typewriter
11979 {
11980 \backslash
11981 visible \SpecialChar \ldots{}
11982  }
11983 \end_layout
11984
11985 \begin_layout Standard
11986 \SpecialChar \ldots{}
11987 and need to be marked as TeX.
11988  The text whose 
11989 \begin_inset Quotes eld
11990 \end_inset
11991
11992 visibility
11993 \begin_inset Quotes erd
11994 \end_inset
11995
11996  you wish to change goes in between the brackets [and after the 
11997 \family typewriter
11998
11999 \backslash
12000 invisible
12001 \family default
12002  or 
12003 \family typewriter
12004
12005 \backslash
12006 visible
12007 \family default
12008  command].
12009  If you don't know how to mark text as TeX, see the apprpriate section of
12010  the 
12011 \emph on
12012 User's Guide
12013 \emph default
12014 .
12015 \end_layout
12016
12017 \end_inset
12018
12019
12020 \end_layout
12021
12022 \begin_layout Subsubsection
12023 Using 
12024 \family sans
12025 Note
12026 \family default
12027  with 
12028 \family sans
12029 Slide
12030 \family default
12031
12032 \begin_inset LatexCommand \label{sec:slideNote}
12033
12034 \end_inset
12035
12036
12037 \end_layout
12038
12039 \begin_layout Standard
12040 Like an 
12041 \family sans
12042 Overlay
12043 \family default
12044 , a 
12045 \family sans
12046 Note
12047 \family default
12048  is associated with a 
12049 \begin_inset Quotes eld
12050 \end_inset
12051
12052 parent
12053 \begin_inset Quotes erd
12054 \end_inset
12055
12056  
12057 \family sans
12058 Slide
12059 \family default
12060 .
12061  Here, too, the LyX 
12062 \family sans
12063 slides
12064 \family default
12065  class provides visual cues.
12066  The label for a 
12067 \family sans
12068 Note
12069 \family default
12070  is shorter than that of a 
12071 \family sans
12072 Slide
12073 \family default
12074  [yet longer than that of an 
12075 \family sans
12076 Overlay
12077 \family default
12078 ] and, like the label of an 
12079 \family sans
12080 Overlay
12081 \family default
12082  is shockingly magenta.
12083  Additionally, the printed 
12084 \family sans
12085 Note
12086 \family default
12087  has the page number of its 
12088 \begin_inset Quotes eld
12089 \end_inset
12090
12091 parent
12092 \begin_inset Quotes erd
12093 \end_inset
12094
12095  
12096 \family sans
12097 Slide
12098 \family default
12099 , appended by 
12100 \begin_inset Quotes eld
12101 \end_inset
12102
12103
12104 \family typewriter
12105 -
12106 \family default
12107 1
12108 \begin_inset Quotes erd
12109 \end_inset
12110
12111
12112 \begin_inset Quotes eld
12113 \end_inset
12114
12115
12116 \family typewriter
12117 -
12118 \family default
12119 2
12120 \begin_inset Quotes erd
12121 \end_inset
12122
12123
12124 \begin_inset Quotes eld
12125 \end_inset
12126
12127
12128 \family typewriter
12129 -
12130 \family default
12131 3
12132 \begin_inset Quotes erd
12133 \end_inset
12134
12135 , etc.
12136  You can have multiple 
12137 \family sans
12138 Note
12139 \family default
12140 s associated with a single 
12141 \family sans
12142 Slide
12143 \family default
12144 , and, as with 
12145 \family sans
12146 Slide
12147 \family default
12148  and 
12149 \family sans
12150 Overlay
12151 \family default
12152 , you'll probably want to break up long 
12153 \family sans
12154 Note
12155 \family default
12156 s so that they fit on a single sheet of paper.
12157 \end_layout
12158
12159 \begin_layout Standard
12160 The purpose of a 
12161 \family sans
12162 Note
12163 \family default
12164  is obvious: it contains anything additional you might want to say about
12165  a 
12166 \family sans
12167 Slide
12168 \family default
12169 .
12170  It could also be used as a sheet of reminders for a particular 
12171 \family sans
12172 Slide
12173 \family default
12174 .
12175  In the case of the latter, you might want to make use of time markers.
12176  Currently, the LyX 
12177 \family sans
12178 slides
12179 \family default
12180  class has no 
12181 \begin_inset Quotes eld
12182 \end_inset
12183
12184 native
12185 \begin_inset Quotes erd
12186 \end_inset
12187
12188  support for time markers, a 
12189 \noun on
12190 Sli
12191 \noun default
12192 TeX feature.
12193  So, you'll have to resort to using the LaTeX codes.
12194 \end_layout
12195
12196 \begin_layout Standard
12197 To use time markers, you'll need to specify the extra class option 
12198 \begin_inset Quotes eld
12199 \end_inset
12200
12201
12202 \family typewriter
12203 clock
12204 \family default
12205
12206 \begin_inset Quotes erd
12207 \end_inset
12208
12209  [see section\InsetSpace ~
12210
12211 \begin_inset LatexCommand \ref{sec:slidesetup}
12212
12213 \end_inset
12214
12215 ].
12216  This option turns on timing marks, which will appear in the lower-left-hand
12217  corner of every 
12218 \family sans
12219 Note
12220 \family default
12221  you generate.
12222  To set what appears in the time marker, you use the LaTeX commands 
12223 \begin_inset Quotes eld
12224 \end_inset
12225
12226
12227 \family typewriter
12228
12229 \backslash
12230 settime{}
12231 \family default
12232
12233 \begin_inset Quotes erd
12234 \end_inset
12235
12236  and 
12237 \begin_inset Quotes eld
12238 \end_inset
12239
12240
12241 \family typewriter
12242
12243 \backslash
12244 addtime{}
12245 \family default
12246
12247 \begin_inset Quotes erd
12248 \end_inset
12249
12250 .
12251  The arguments of both commands are time measured in seconds.
12252  
12253 \begin_inset Quotes eld
12254 \end_inset
12255
12256
12257 \family typewriter
12258
12259 \backslash
12260 settime{}
12261 \family default
12262
12263 \begin_inset Quotes erd
12264 \end_inset
12265
12266  sets the time marker to a given time.
12267  
12268 \begin_inset Quotes eld
12269 \end_inset
12270
12271
12272 \family typewriter
12273
12274 \backslash
12275 addtime{}
12276 \family default
12277
12278 \begin_inset Quotes erd
12279 \end_inset
12280
12281  increments the time marker by the specified amount.
12282  Using time markers and 
12283 \family sans
12284 Note
12285 \family default
12286 s in this fashion, you can remind yourself how much time to spend on a particula
12287
12288 \family sans
12289 Slide
12290 \family default
12291 .
12292 \end_layout
12293
12294 \begin_layout Standard
12295 There's one last feature to describe.
12296  Clearly, you'd like to print out all of your 
12297 \family sans
12298 Slide
12299 \family default
12300 s and 
12301 \family sans
12302 Overlay
12303 \family default
12304 s on transparencies while printing all of your 
12305 \family sans
12306 Note
12307 \family default
12308 s on plain paper.
12309  However, a 
12310 \family sans
12311 Note
12312 \family default
12313  
12314 \emph on
12315 must
12316 \emph default
12317  follow the 
12318 \family sans
12319 Slide
12320 \family default
12321  with which it is associated.
12322  What's a person to do?
12323 \end_layout
12324
12325 \begin_layout Standard
12326 Luckily, there are two LaTeX commands that allow you to select what to print
12327  out.
12328  Both must be placed into the preamble of your document.
12329  The command 
12330 \begin_inset Quotes eld
12331 \end_inset
12332
12333
12334 \family typewriter
12335
12336 \backslash
12337 onlyslides{
12338 \backslash
12339 slides}
12340 \family default
12341
12342 \begin_inset Quotes erd
12343 \end_inset
12344
12345  will cause the output to contain only the 
12346 \family sans
12347 Slide
12348 \family default
12349 s and 
12350 \family sans
12351 Overlay
12352 \family default
12353 s.
12354  Correspondingly, the command 
12355 \begin_inset Quotes eld
12356 \end_inset
12357
12358
12359 \family typewriter
12360
12361 \backslash
12362 onlynotes{
12363 \backslash
12364 notes}
12365 \family default
12366
12367 \begin_inset Quotes erd
12368 \end_inset
12369
12370  prevents the output of anything but 
12371 \family sans
12372 Note
12373 \family default
12374 s.
12375  I'd advise placing both commands in the preamble and initially comment
12376  both out.
12377  You can then preview your entire presentation as you write.
12378  When you're done writing, you can then uncomment one of the two to select
12379  what you want to print.
12380  I like to uncomment 
12381 \begin_inset Quotes eld
12382 \end_inset
12383
12384
12385 \family typewriter
12386
12387 \backslash
12388 onlyslides{
12389 \backslash
12390 slides}
12391 \family default
12392
12393 \begin_inset Quotes erd
12394 \end_inset
12395
12396  , print to a file with 
12397 \begin_inset Quotes eld
12398 \end_inset
12399
12400
12401 \family typewriter
12402 -slides
12403 \family default
12404
12405 \begin_inset Quotes erd
12406 \end_inset
12407
12408  in its name, comment it back out, then uncomment 
12409 \begin_inset Quotes eld
12410 \end_inset
12411
12412
12413 \family typewriter
12414
12415 \backslash
12416 onlynotes{
12417 \backslash
12418 notes}
12419 \family default
12420
12421 \begin_inset Quotes erd
12422 \end_inset
12423
12424  and print to a 
12425 \begin_inset Quotes eld
12426 \end_inset
12427
12428
12429 \family typewriter
12430 *-notes.ps
12431 \family default
12432
12433 \begin_inset Quotes erd
12434 \end_inset
12435
12436  file.
12437  I can then send either file to a printer, loading transparencies or plain
12438  paper as appropriate.
12439 \end_layout
12440
12441 \begin_layout Standard
12442 You can also provide other arguments to the 
12443 \begin_inset Quotes eld
12444 \end_inset
12445
12446
12447 \family typewriter
12448
12449 \backslash
12450 onlyslides{}
12451 \family default
12452
12453 \begin_inset Quotes erd
12454 \end_inset
12455
12456  and 
12457 \begin_inset Quotes eld
12458 \end_inset
12459
12460
12461 \family typewriter
12462
12463 \backslash
12464 onlynotes{}
12465 \family default
12466
12467 \begin_inset Quotes erd
12468 \end_inset
12469
12470  commands.
12471  See a good LaTeX book for details.
12472 \end_layout
12473
12474 \begin_layout Subsection
12475 The 
12476 \family sans
12477 slides
12478 \family default
12479  Class Template File
12480 \end_layout
12481
12482 \begin_layout Standard
12483 I have also provided a template file, 
12484 \begin_inset Quotes eld
12485 \end_inset
12486
12487
12488 \family typewriter
12489 slides.lyx
12490 \family default
12491
12492 \begin_inset Quotes erd
12493 \end_inset
12494
12495 , with the 
12496 \family sans
12497 slides
12498 \family default
12499  class.
12500  To use it, begin your new presentation with 
12501 \family sans
12502 \bar under
12503 F
12504 \bar default
12505 ile\SpecialChar \menuseparator
12506 New\InsetSpace ~
12507 from\InsetSpace ~
12508
12509 \bar under
12510 T
12511 \bar default
12512 emplate
12513 \family default
12514 .
12515  Your new LyX presentation file will contain an example 
12516 \family sans
12517 Slide
12518 \family default
12519  -- 
12520 \family sans
12521 Overlay
12522 \family default
12523  --
12524 \family sans
12525  Note
12526 \family default
12527  triplet.
12528  The 
12529 \family sans
12530 Slide
12531 \family default
12532  and 
12533 \family sans
12534 Overlay
12535 \family default
12536  additionally contain an example of the use of 
12537 \family sans
12538 InvisibleText
12539 \family default
12540  and 
12541 \family sans
12542 VisibleText
12543 \family default
12544 .
12545  Lastly, the preamble will contain:
12546 \end_layout
12547
12548 \begin_layout LyX-Code
12549 % Uncomment to print out only slides and overlays
12550 \end_layout
12551
12552 \begin_layout LyX-Code
12553 %
12554 \end_layout
12555
12556 \begin_layout LyX-Code
12557 %
12558 \backslash
12559 onlyslides{
12560 \backslash
12561 slides}
12562 \newline
12563  
12564 \end_layout
12565
12566 \begin_layout LyX-Code
12567 % Uncomment to print out only notes
12568 \end_layout
12569
12570 \begin_layout LyX-Code
12571 %
12572 \end_layout
12573
12574 \begin_layout LyX-Code
12575 %
12576 \backslash
12577 onlynotes{
12578 \backslash
12579 notes}
12580 \end_layout
12581
12582 \begin_layout Standard
12583 One final thing: I created this class to support the LaTeX2e 
12584 \begin_inset Quotes eld
12585 \end_inset
12586
12587
12588 \noun on
12589 Sli
12590 \noun default
12591 TeX emulation
12592 \begin_inset Quotes erd
12593 \end_inset
12594
12595  class, one of the built-in LaTeX2e classes.
12596  Neither I nor the rest of the LyX Team endorse or oppose the use of this
12597  built-in slide class.
12598  It's here if you want it or need it.
12599  There exist other LaTeX2e classes for creating presentations, such as the
12600  
12601 \family sans
12602 Foils
12603 \family default
12604  class [see section\InsetSpace ~
12605
12606 \begin_inset LatexCommand \ref{sec:foiltex}
12607
12608 \end_inset
12609
12610 ] or the 
12611 \begin_inset Quotes eld
12612 \end_inset
12613
12614
12615 \family typewriter
12616 seminar
12617 \family default
12618
12619 \begin_inset Quotes erd
12620 \end_inset
12621
12622  package [present on some TeX distributions].
12623  The latter is not yet supported under LyX.
12624 \begin_inset Foot
12625 status collapsed
12626
12627 \begin_layout Standard
12628 Perhaps you can take on the task\SpecialChar \ldots{}
12629
12630 \end_layout
12631
12632 \end_inset
12633
12634  I know nothing about these other classes.
12635  Try them out to see what sort of alternative they provide.
12636 \end_layout
12637
12638 \begin_layout Section
12639 Foils [aka 
12640 \family sans
12641 Foil
12642 \family default
12643 \noun on
12644 TeX
12645 \noun default
12646 ]
12647 \begin_inset LatexCommand \label{sec:foiltex}
12648
12649 \end_inset
12650
12651
12652 \end_layout
12653
12654 \begin_layout Standard
12655 by 
12656 \noun on
12657 Allan Rae
12658 \end_layout
12659
12660 \begin_layout Subsection
12661 Introduction
12662 \end_layout
12663
12664 \begin_layout Standard
12665 This section describes how to use LyX to make slides for overhead projectors.
12666  There are two document classes that can do this: the default slides class
12667  and the 
12668 \family sans
12669 Foil
12670 \family default
12671 TeX slides class.
12672  This section documents the latter.
12673 \end_layout
12674
12675 \begin_layout Standard
12676 I'm going to say this again, nice and clear, so that there's no misunderstanding
12677 :
12678 \end_layout
12679
12680 \begin_layout Standard
12681 \begin_inset VSpace bigskip
12682 \end_inset
12683
12684
12685 \end_layout
12686
12687 \begin_layout Standard
12688 \align center
12689
12690 \size large
12691 This section documents the class 
12692 \begin_inset Quotes eld
12693 \end_inset
12694
12695
12696 \family sans
12697 slides (FoilTeX)
12698 \family default
12699
12700 \begin_inset Quotes erd
12701 \end_inset
12702
12703  
12704 \emph on
12705 only.
12706 \end_layout
12707
12708 \begin_layout Standard
12709 \begin_inset VSpace bigskip
12710 \end_inset
12711
12712
12713 \end_layout
12714
12715 \begin_layout Standard
12716 If you're looking for the documentation for 
12717 \begin_inset Quotes eld
12718 \end_inset
12719
12720
12721 \family sans
12722 slides (default)
12723 \family default
12724
12725 \begin_inset Quotes erd
12726 \end_inset
12727
12728 , check out section\InsetSpace ~
12729
12730 \begin_inset LatexCommand \ref{sec:slitex}
12731
12732 \end_inset
12733
12734 .
12735  If your machine doesn't have the 
12736 \family sans
12737 foils 
12738 \family default
12739 class [
12740 \begin_inset Quotes eld
12741 \end_inset
12742
12743
12744 \family sans
12745 slides (FoilTeX)
12746 \family default
12747
12748 \begin_inset Quotes erd
12749 \end_inset
12750
12751 ] installed, you'll probably have to use the default 
12752 \family sans
12753 slides
12754 \family default
12755  class, which isn't quite as good as 
12756 \family sans
12757 foils.
12758 \end_layout
12759
12760 \begin_layout Standard
12761 The 
12762 \family sans
12763 foils
12764 \family default
12765  class is designed for use with version 2.1 of the 
12766 \family sans
12767 foils.cls
12768 \family default
12769  LaTeX class file which is now an integral part of LaTeX2e.
12770 \end_layout
12771
12772 \begin_layout Subsection
12773 Getting Started
12774 \end_layout
12775
12776 \begin_layout Standard
12777 Obviously, to use this document class, you need to select 
12778 \begin_inset Quotes eld
12779 \end_inset
12780
12781
12782 \family sans
12783 slides (FoilTeX)
12784 \family default
12785
12786 \begin_inset Quotes erd
12787 \end_inset
12788
12789  from the 
12790 \family sans
12791 \bar under
12792 C
12793 \bar default
12794 lass
12795 \family default
12796  entry in the 
12797 \family sans
12798 Document\InsetSpace ~
12799 Layout
12800 \family default
12801  dialog.
12802  There are some settings in the 
12803 \family sans
12804 Document\InsetSpace ~
12805 Layout
12806 \family default
12807  dialog that you should know about that are specific to this class:
12808 \end_layout
12809
12810 \begin_layout Itemize
12811 Don't change the options 
12812 \family sans
12813 Sides
12814 \family default
12815  and 
12816 \family sans
12817 Columns
12818 \family default
12819  on the 
12820 \family sans
12821 Document\InsetSpace ~
12822 Layout
12823 \family default
12824  dialog.
12825  They're ignored by the 
12826 \family sans
12827 foils
12828 \family default
12829  class.
12830 \end_layout
12831
12832 \begin_layout Itemize
12833 The default font size is 20pt with the other options being 17pt, 25pt and
12834  30pt.
12835 \end_layout
12836
12837 \begin_layout Itemize
12838 The default font is 
12839 \family sans
12840 sans
12841 \family default
12842  
12843 \family sans
12844 serif
12845 \family default
12846  but all math equations are still typeset in the usual roman font.
12847 \end_layout
12848
12849 \begin_layout Itemize
12850
12851 \family sans
12852 Foil
12853 \family default
12854 TeX supports A4 and Letter paper sizes as well as a special size for working
12855  with 35mm slides.
12856  It doesn't support A5, B5, legal or executive paper sizes.
12857 \end_layout
12858
12859 \begin_layout Itemize
12860 Don't bother changing the 
12861 \family sans
12862 Float Placement
12863 \family default
12864  settings because they are ignored anyway.
12865  All floats appear where they are defined in the text.
12866 \end_layout
12867
12868 \begin_layout Itemize
12869 The 
12870 \family sans
12871 \bar under
12872 P
12873 \bar default
12874 agestyle
12875 \family default
12876  setting behaves a bit differently for this class.
12877  
12878 \family sans
12879 Foil
12880 \family default
12881 TeX provides extensive footer and header capabilities including a user-defined
12882  logo.
12883  See section\InsetSpace ~
12884
12885 \begin_inset LatexCommand \ref{sec:foilfoot}
12886
12887 \end_inset
12888
12889  for more details.
12890  The title page is treated differently to all other pages in the document
12891  and is 
12892 \emph on
12893 always
12894 \emph default
12895  unnumbered and 
12896 \emph on
12897 always
12898 \emph default
12899  has the logo centered at the bottom of the page (if one is defined).
12900  The possible page style choices and what they do are as follows:
12901 \end_layout
12902
12903 \begin_deeper
12904 \begin_layout List
12905 \labelwidthstring MMMMMMM
12906
12907 \family sans
12908 \series bold
12909 empty
12910 \family default
12911 \series default
12912  The final output contains no page numbers, or other headers or footers
12913  (except footnotes of course).
12914  
12915 \end_layout
12916
12917 \begin_layout List
12918 \labelwidthstring MMMMMMM
12919
12920 \family sans
12921 \series bold
12922 plain
12923 \family default
12924 \series default
12925  The final output contains page numbers centered at the bottom of the page.
12926  No other headings or footers (other than footnotes).
12927 \end_layout
12928
12929 \begin_layout List
12930 \labelwidthstring MMMMMMM
12931
12932 \series bold
12933 foilheadings
12934 \series default
12935  Page numbers in lower right corner.
12936  Additional headers and footers are also shown.
12937  This is also the default.
12938 \end_layout
12939
12940 \begin_layout List
12941 \labelwidthstring MMMMMMM
12942
12943 \series bold
12944 fancy
12945 \series default
12946  Gives you access to the 
12947 \family sans
12948 fancyheadings
12949 \family default
12950  package although its use with 
12951 \family sans
12952 Foil
12953 \family default
12954 TeX is discouraged by the writer of the 
12955 \family sans
12956 Foil
12957 \family default
12958 TeX package because of some potential page layout clashes.
12959 \end_layout
12960
12961 \end_deeper
12962 \begin_layout Subsubsection
12963 Extra Options
12964 \end_layout
12965
12966 \begin_layout Standard
12967 The following options may be used in the extra class options in the 
12968 \family sans
12969 \bar under
12970 D
12971 \bar default
12972 ocument\SpecialChar \menuseparator
12973
12974 \bar under
12975 S
12976 \bar default
12977 ettings
12978 \family default
12979  dialog.
12980 \end_layout
12981
12982 \begin_layout List
12983 \labelwidthstring MMMMMMx
12984
12985 \series bold
12986 35mmSlide
12987 \series default
12988  This sets up the page layout for 7.33in by 11in paper, which is about the
12989  same aspect ratio as a 35mm slide, making it a bit easier to work with
12990  this medium.
12991 \end_layout
12992
12993 \begin_layout List
12994 \labelwidthstring MMMMMMx
12995
12996 \series bold
12997 headrule
12998 \series default
12999  Places a rule across the page below the header on every page except the
13000  title page.
13001 \end_layout
13002
13003 \begin_layout List
13004 \labelwidthstring MMMMMMx
13005
13006 \series bold
13007 footrule
13008 \series default
13009  Places a rule across the page above the footer on every page except the
13010  title page.
13011 \end_layout
13012
13013 \begin_layout List
13014 \labelwidthstring MMMMMMx
13015
13016 \series bold
13017 dvips
13018 \series default
13019  This is automatically set each time you create a new 
13020 \family sans
13021 foils
13022 \family default
13023  document.
13024  This option tells 
13025 \family sans
13026 Foil
13027 \family default
13028 TeX to use the dvips driver to rotate those pages that are set as landscape
13029  foils.
13030 \end_layout
13031
13032 \begin_layout List
13033 \labelwidthstring MMMMMMx
13034
13035 \series bold
13036 landscape
13037 \series default
13038  Simply changes the page dimensions to those of a landscape page but doesn't
13039  do any rotation.
13040  Thus if you use this option you need to use an external program to rotate
13041  each page or feed your paper through your printer as landscape.
13042  Note that this option effectively reverses the roles of the 
13043 \family sans
13044 Foilhead
13045 \family default
13046  and 
13047 \family sans
13048 Rotatefoilhead
13049 \family default
13050  environments (don't worry these are described in the next section).
13051 \end_layout
13052
13053 \begin_layout List
13054 \labelwidthstring MMMMMMx
13055
13056 \series bold
13057 leqno
13058 \series default
13059  Equation numbers on the left.
13060 \end_layout
13061
13062 \begin_layout List
13063 \labelwidthstring MMMMMMx
13064
13065 \series bold
13066 fleqn
13067 \series default
13068  Flush-left equations.
13069 \end_layout
13070
13071 \begin_layout Subsection
13072 Supported Environments
13073 \end_layout
13074
13075 \begin_layout Standard
13076 Most of the environments commonly supported in other classes are also supported
13077  by the 
13078 \family sans
13079 foils
13080 \family default
13081  class.
13082  There are several additional environments provided by 
13083 \family sans
13084 Foil
13085 \family default
13086 TeX as well as a couple added by LyX.
13087  The following environments are shared with other classes:
13088 \end_layout
13089
13090 \begin_layout Standard
13091 \begin_inset ERT
13092 status inlined
13093
13094 \begin_layout Standard
13095
13096
13097 \backslash
13098 begin{multicols}{2}
13099 \end_layout
13100
13101 \end_inset
13102
13103
13104 \end_layout
13105
13106 \begin_layout Itemize
13107
13108 \family sans
13109 Standard
13110 \end_layout
13111
13112 \begin_layout Itemize
13113
13114 \family sans
13115 Itemize
13116 \end_layout
13117
13118 \begin_layout Itemize
13119
13120 \family sans
13121 Enumerate
13122 \end_layout
13123
13124 \begin_layout Itemize
13125
13126 \family sans
13127 Description
13128 \end_layout
13129
13130 \begin_layout Itemize
13131
13132 \family sans
13133 List
13134 \end_layout
13135
13136 \begin_layout Itemize
13137
13138 \family sans
13139 LyX-Code
13140 \end_layout
13141
13142 \begin_layout Itemize
13143
13144 \family sans
13145 Verse
13146 \end_layout
13147
13148 \begin_layout Itemize
13149
13150 \family sans
13151 Quote
13152 \end_layout
13153
13154 \begin_layout Itemize
13155
13156 \family sans
13157 Quotation
13158 \end_layout
13159
13160 \begin_layout Itemize
13161
13162 \family sans
13163 Title
13164 \end_layout
13165
13166 \begin_layout Itemize
13167
13168 \family sans
13169 Author
13170 \end_layout
13171
13172 \begin_layout Itemize
13173
13174 \family sans
13175 Date
13176 \end_layout
13177
13178 \begin_layout Itemize
13179
13180 \family sans
13181 Abstract
13182 \end_layout
13183
13184 \begin_layout Itemize
13185
13186 \family sans
13187 Bibliography
13188 \end_layout
13189
13190 \begin_layout Itemize
13191
13192 \family sans
13193 Address
13194 \end_layout
13195
13196 \begin_layout Itemize
13197
13198 \family sans
13199 RightAddress
13200 \end_layout
13201
13202 \begin_layout Itemize
13203
13204 \family sans
13205 Caption
13206 \end_layout
13207
13208 \begin_layout Itemize
13209
13210 \family sans
13211 Comment
13212 \end_layout
13213
13214 \begin_layout Standard
13215 \begin_inset ERT
13216 status inlined
13217
13218 \begin_layout Standard
13219
13220
13221 \backslash
13222 end{multicols}
13223 \end_layout
13224
13225 \end_inset
13226
13227
13228 \end_layout
13229
13230 \begin_layout Standard
13231 That is, all the major environments apart from the sectioning environments.
13232  Since foils are essentially self-contained sections, with a title and body,
13233  
13234 \family sans
13235 Foil
13236 \family default
13237 TeX provides specific commands for starting new foils and these are:
13238 \end_layout
13239
13240 \begin_layout Itemize
13241
13242 \family sans
13243 Foilhead
13244 \end_layout
13245
13246 \begin_layout Itemize
13247
13248 \family sans
13249 Rotatefoilhead
13250 \end_layout
13251
13252 \begin_layout Standard
13253 LyX also provides slightly modified versions of these two environments called:
13254 \end_layout
13255
13256 \begin_layout Itemize
13257
13258 \family sans
13259 ShortFoilhead
13260 \end_layout
13261
13262 \begin_layout Itemize
13263
13264 \family sans
13265 ShortRotatefoilhead
13266 \end_layout
13267
13268 \begin_layout Standard
13269 and the differences will be explained in the next section.
13270 \end_layout
13271
13272 \begin_layout Standard
13273 Since foils are often used in presenting ideas or new theorems and such
13274  
13275 \family sans
13276 Foil
13277 \family default
13278 TeX also provides a comprehensive box of goodies for presenting them:
13279 \end_layout
13280
13281 \begin_layout Standard
13282 \begin_inset ERT
13283 status inlined
13284
13285 \begin_layout Standard
13286
13287
13288 \backslash
13289 begin{multicols}{2}
13290 \end_layout
13291
13292 \end_inset
13293
13294
13295 \end_layout
13296
13297 \begin_layout Itemize
13298
13299 \family sans
13300 Theorem
13301 \end_layout
13302
13303 \begin_layout Itemize
13304
13305 \family sans
13306 Lemma
13307 \end_layout
13308
13309 \begin_layout Itemize
13310
13311 \family sans
13312 Corollary
13313 \end_layout
13314
13315 \begin_layout Itemize
13316
13317 \family sans
13318 Proposition
13319 \end_layout
13320
13321 \begin_layout Itemize
13322
13323 \family sans
13324 Definition
13325 \end_layout
13326
13327 \begin_layout Itemize
13328
13329 \family sans
13330 Proof
13331 \end_layout
13332
13333 \begin_layout Itemize
13334
13335 \family sans
13336 Theorem*
13337 \end_layout
13338
13339 \begin_layout Itemize
13340
13341 \family sans
13342 Lemma*
13343 \end_layout
13344
13345 \begin_layout Itemize
13346
13347 \family sans
13348 Corollary*
13349 \end_layout
13350
13351 \begin_layout Itemize
13352
13353 \family sans
13354 Proposition*
13355 \end_layout
13356
13357 \begin_layout Itemize
13358
13359 \family sans
13360 Definition*
13361 \end_layout
13362
13363 \begin_layout Standard
13364 \begin_inset ERT
13365 status inlined
13366
13367 \begin_layout Standard
13368
13369
13370 \backslash
13371 end{multicols}
13372 \end_layout
13373
13374 \end_inset
13375
13376
13377 \end_layout
13378
13379 \begin_layout Standard
13380 The starred versions are unnumbered while the unstarred versions are numbered.
13381  There are also two list environments added by LyX and these are:
13382 \end_layout
13383
13384 \begin_layout Itemize
13385
13386 \family sans
13387 TickList
13388 \end_layout
13389
13390 \begin_layout Itemize
13391
13392 \family sans
13393 CrossList
13394 \end_layout
13395
13396 \begin_layout Standard
13397
13398 \family sans
13399 Foil
13400 \family default
13401 TeX provides some powerful header and footer capabilities that are best
13402  set in the preamble although they may be set at any point in a document.
13403  If you want to change these settings in your document the best place to
13404  do so is at the very top of a foil, 
13405 \emph on
13406 i.e.
13407
13408 \emph default
13409  straight after the foilhead.
13410 \end_layout
13411
13412 \begin_layout Standard
13413 For this purpose, the following command styles are provided [
13414 \shape smallcaps
13415 Martin Vermeer
13416 \shape default
13417 ]:
13418 \end_layout
13419
13420 \begin_layout Standard
13421 \begin_inset ERT
13422 status inlined
13423
13424 \begin_layout Standard
13425
13426
13427 \backslash
13428 begin{multicols}{2}
13429 \end_layout
13430
13431 \end_inset
13432
13433
13434 \end_layout
13435
13436 \begin_layout Itemize
13437
13438 \family sans
13439 My\InsetSpace ~
13440 Logo
13441 \end_layout
13442
13443 \begin_layout Itemize
13444
13445 \family sans
13446 Restriction
13447 \end_layout
13448
13449 \begin_layout Itemize
13450
13451 \family sans
13452 Right\InsetSpace ~
13453 Footer
13454 \end_layout
13455
13456 \begin_layout Itemize
13457
13458 \family sans
13459 Right\InsetSpace ~
13460 Header
13461 \end_layout
13462
13463 \begin_layout Itemize
13464
13465 \family sans
13466 Left\InsetSpace ~
13467 Header
13468 \end_layout
13469
13470 \begin_deeper
13471 \begin_layout Standard
13472 \InsetSpace ~
13473
13474 \end_layout
13475
13476 \end_deeper
13477 \begin_layout Standard
13478 \begin_inset ERT
13479 status inlined
13480
13481 \begin_layout Standard
13482
13483
13484 \backslash
13485 end{multicols}
13486 \end_layout
13487
13488 \end_inset
13489
13490
13491 \end_layout
13492
13493 \begin_layout Standard
13494 There are also a few commands provided by 
13495 \family sans
13496 Foil
13497 \family default
13498 TeX that aren't directly supported by LyX but I'll tell you what they do
13499  and how to use them in section\InsetSpace ~
13500
13501 \begin_inset LatexCommand \ref{sec:unsuppfoils}
13502
13503 \end_inset
13504
13505 .
13506 \end_layout
13507
13508 \begin_layout Subsection
13509 Building a Set of Foils
13510 \end_layout
13511
13512 \begin_layout Standard
13513 This section will give a simple introduction to using the different environments
13514  to build a set of foils.
13515  If you want to see an example set of foils take a look at the 
13516 \family typewriter
13517 Foils.lyx
13518 \family default
13519  file accessible from the 
13520 \family sans
13521 \bar under
13522 F
13523 \bar default
13524 ile\SpecialChar \menuseparator
13525
13526 \bar under
13527 O
13528 \bar default
13529 pen\SpecialChar \ldots{}
13530
13531 \family default
13532  dialog under the 
13533 \family sans
13534 Examples
13535 \family default
13536  button.
13537  
13538 \end_layout
13539
13540 \begin_layout Subsubsection
13541 Give It a Title Page
13542 \end_layout
13543
13544 \begin_layout Standard
13545 Unlike other classes that provide 
13546 \family sans
13547 Title
13548 \family default
13549
13550 \family sans
13551 Author
13552 \family default
13553
13554 \family sans
13555 Date
13556 \family default
13557  and 
13558 \family sans
13559 Abstract
13560 \family default
13561  environments, 
13562 \family sans
13563 foils
13564 \family default
13565  creates the title on a page of its own.
13566  If you leave out the 
13567 \family sans
13568 Date
13569 \family default
13570  environment LaTeX will substitute the current date (every time you regenerate
13571  the output).
13572 \end_layout
13573
13574 \begin_layout Subsubsection
13575 Start a New Foil
13576 \end_layout
13577
13578 \begin_layout Standard
13579 As I mentioned earlier, there are four ways of starting a new foil.
13580  For portrait foils you should use 
13581 \family sans
13582 Foilhead
13583 \family default
13584  or 
13585 \family sans
13586 ShortFoilhead.
13587
13588 \family default
13589  The difference between these two environments is the amount of space between
13590  the title of the foil (the foilhead) and the body of the foil.
13591 \end_layout
13592
13593 \begin_layout Standard
13594 Landscape foils are generated using the 
13595 \family sans
13596 Rotatefoilhead
13597 \family default
13598  and 
13599 \family sans
13600 ShortRotatefoilhead
13601 \family default
13602  environments.
13603  Again the only difference is the spacing between foilhead and body.
13604  Both of the short versions have 0.5 inches less separation between the foilhead
13605  and the body.
13606  
13607 \end_layout
13608
13609 \begin_layout Standard
13610 One problem with the support for landscape foils is the requirement that
13611  you have to use the 
13612 \family typewriter
13613 dvips
13614 \family default
13615  driver to generate the PostScript® output otherwise the foils won't be
13616  rotated.
13617  It is possible to get landscape foils even if you haven't got the 
13618 \family typewriter
13619 dvips
13620 \family default
13621  driver provided you can feed your foils sideways through your printer ;-)
13622 \end_layout
13623
13624 \begin_layout Subsubsection
13625 Theorems, Lemmas, Proofs and more
13626 \end_layout
13627
13628 \begin_layout Standard
13629 Due to a small bug in LyX you can't have two of the same type of these environme
13630 nts directly following each other.
13631  They must be separated by something.
13632  If you try, you will just be extending the previous environment as if you
13633  had merged the two environments together.
13634  So, how do you get around this problem? The simplest option is to insert
13635  some text between the two environments or add a 
13636 \family sans
13637 LaTeX
13638 \family default
13639  environment between the two with just a 
13640 \begin_inset Quotes eld
13641 \end_inset
13642
13643
13644 \family typewriter
13645 %
13646 \family default
13647
13648 \begin_inset Quotes erd
13649 \end_inset
13650
13651  in it.
13652  This will force LyX to produce two separate environments and hence the
13653  correct LaTeX output.
13654  An example is provided in the example file included with the LyX distribution.
13655  Remember, this problem only occurs if you are trying to place two of the
13656  same type of theorem-like environments one directly after the other.
13657 \end_layout
13658
13659 \begin_layout Subsubsection
13660 Lists
13661 \end_layout
13662
13663 \begin_layout Standard
13664 You get all the commonly supported list styles found in other classes as
13665  well as two new ones.
13666  I'll only describe the new ones here.
13667  If you want to find out more about the other list environments check out
13668  the 
13669 \emph on
13670 User's Guide.
13671
13672 \emph default
13673  If you intend to use itemized lists you might also want to read about the
13674  
13675 \family sans
13676 Itemize\InsetSpace ~
13677 Bullet\InsetSpace ~
13678 Selection
13679 \family default
13680  dialog described above in section\InsetSpace ~
13681
13682 \begin_inset LatexCommand \ref{sec:bullet}
13683
13684 \end_inset
13685
13686 .
13687 \end_layout
13688
13689 \begin_layout Standard
13690 The two new list styles, 
13691 \family sans
13692 TickList 
13693 \family default
13694 and 
13695 \family sans
13696 CrossList
13697 \family default
13698 , are designed to make it easier for you to create lists of do's and don'ts
13699  or right and wrong by providing dedicated environments that use a tick
13700  or a cross as the label of the list.
13701  These lists are in fact dedicated variants of the 
13702 \family sans
13703 Itemize
13704 \family default
13705  environment.
13706  They do however require that you have the 
13707 \family typewriter
13708 psnfss
13709 \family default
13710  packages installed.
13711 \end_layout
13712
13713 \begin_layout Subsubsection
13714 Figures and Tables
13715 \end_layout
13716
13717 \begin_layout Standard
13718
13719 \family sans
13720 Foil
13721 \family default
13722 TeX redefines the floating tables and figures so that they appear exactly
13723  where they are in the text rather than pushing them to the top of the page
13724  or to some user specified location.
13725  In fact if you change the float placement settings they are simply ignored.
13726 \end_layout
13727
13728 \begin_layout Subsubsection
13729 Page Headers and Footers
13730 \begin_inset LatexCommand \label{sec:foilfoot}
13731
13732 \end_inset
13733
13734
13735 \end_layout
13736
13737 \begin_layout Standard
13738
13739 \family sans
13740 My\InsetSpace ~
13741 Logo
13742 \family default
13743  and 
13744 \family sans
13745 Restriction
13746 \family default
13747  are two commands used to control the left-footer text string.
13748  The first is meant to allow you to include a graphic logo on your foils
13749  and defaults to 
13750 \begin_inset Quotes eld
13751 \end_inset
13752
13753 -Typeset by 
13754 \family sans
13755 Foil
13756 \family default
13757 TeX-
13758 \begin_inset Quotes erd
13759 \end_inset
13760
13761 .
13762  While the second is meant to provide a classification for the audience,
13763  
13764 \emph on
13765 e.g.
13766
13767 \emph default
13768  Confidential.
13769  It is empty by default.
13770 \end_layout
13771
13772 \begin_layout Standard
13773 The remaining page corners can be filled by
13774 \family sans
13775  Right\InsetSpace ~
13776 Footer
13777 \family default
13778  (which defaults to page numbers), 
13779 \family sans
13780 Right\InsetSpace ~
13781 Header
13782 \family default
13783  (top right) and 
13784 \family sans
13785 Left\InsetSpace ~
13786 Header
13787 \family default
13788  (top left).
13789 \end_layout
13790
13791 \begin_layout Subsection
13792 Unsupported 
13793 \family sans
13794 Foil
13795 \family default
13796 TeX Goodies
13797 \begin_inset LatexCommand \label{sec:unsuppfoils}
13798
13799 \end_inset
13800
13801
13802 \end_layout
13803
13804 \begin_layout Standard
13805 All the commands mentioned below need to be set in a 
13806 \family sans
13807 LaTeX
13808 \family default
13809  environment or as 
13810 \family sans
13811 TeX
13812 \family default
13813  within another environment.
13814 \end_layout
13815
13816 \begin_layout Subsubsection
13817 Lengths
13818 \end_layout
13819
13820 \begin_layout Standard
13821 All lengths are adjusted using the 
13822 \family typewriter
13823
13824 \backslash
13825 setlength{
13826 \family default
13827 \emph on
13828 lengthname
13829 \family typewriter
13830 \emph default
13831 }{
13832 \family default
13833 \emph on
13834 newlength
13835 \family typewriter
13836 \emph default
13837 }
13838 \family default
13839  command.
13840  Where 
13841 \emph on
13842 lengthname
13843 \emph default
13844  should be replaced by the name given to the length you want to change and
13845  
13846 \emph on
13847 newlength
13848 \emph default
13849  is the length value.
13850  All lengths should be specified in units of length such as inches (
13851 \family typewriter
13852 in
13853 \family default
13854 ), millimeters (
13855 \family typewriter
13856 mm
13857 \family default
13858 ) or points (
13859 \family typewriter
13860 pt
13861 \family default
13862 ) or relative to some document or font-based length such as 
13863 \family typewriter
13864
13865 \backslash
13866 textwidth
13867 \family default
13868 .
13869  
13870 \end_layout
13871
13872 \begin_layout Standard
13873 It's possible to change the spacing between a foilhead and the body of the
13874  foil by adjusting the length specified by 
13875 \family typewriter
13876
13877 \backslash
13878 foilheadskip
13879 \family default
13880 .
13881  For example, to make 
13882 \emph on
13883 all
13884 \emph default
13885  foilheads 0.5 inches closer to their bodies put the following in the preamble:
13886  
13887 \family typewriter
13888
13889 \backslash
13890 setlength{
13891 \backslash
13892 foilheadskip}{-0.5in}
13893 \end_layout
13894
13895 \begin_layout Standard
13896 The spacings around floats can be adjusted by setting these lengths:
13897 \end_layout
13898
13899 \begin_layout List
13900 \labelwidthstring MMMMMMMMMMM
13901
13902 \family typewriter
13903
13904 \backslash
13905 abovefloatskip 
13906 \family default
13907 Separation between the text and the top of the float
13908 \end_layout
13909
13910 \begin_layout List
13911 \labelwidthstring MMMMMMMMMMM
13912
13913 \family typewriter
13914
13915 \backslash
13916 abovecaptionskip 
13917 \family default
13918 Separation between the float and the caption
13919 \end_layout
13920
13921 \begin_layout List
13922 \labelwidthstring MMMMMMMMMMM
13923
13924 \family typewriter
13925
13926 \backslash
13927 belowcaptionskip 
13928 \family default
13929 Separation between the caption and the following text
13930 \end_layout
13931
13932 \begin_layout List
13933 \labelwidthstring MMMMMMMMMMM
13934
13935 \family typewriter
13936
13937 \backslash
13938 captionwidth
13939 \family default
13940  You can make the captions narrower than the surrounding text by adjusting
13941  this length.
13942  Best done relative to 
13943 \family typewriter
13944
13945 \backslash
13946 textwidth
13947 \family default
13948 .
13949 \end_layout
13950
13951 \begin_layout Standard
13952 There are also several title page related lengths that you may find useful
13953  if you have a long title or several authors:
13954 \end_layout
13955
13956 \begin_layout List
13957 \labelwidthstring MMMMMMMMMMM
13958
13959 \family typewriter
13960
13961 \backslash
13962 abovetitleskip
13963 \family default
13964  Separation from headers to 
13965 \family sans
13966 Title
13967 \end_layout
13968
13969 \begin_layout List
13970 \labelwidthstring MMMMMMMMMMM
13971
13972 \family typewriter
13973
13974 \backslash
13975 titleauthorskip
13976 \family default
13977  between 
13978 \family sans
13979 Title
13980 \family default
13981  and 
13982 \family sans
13983 Author
13984 \family default
13985  environments
13986 \end_layout
13987
13988 \begin_layout List
13989 \labelwidthstring MMMMMMMMMMM
13990
13991 \family typewriter
13992
13993 \backslash
13994 authorauthorskip
13995 \family default
13996  between multiple 
13997 \family sans
13998 Author
13999 \family default
14000  lines
14001 \end_layout
14002
14003 \begin_layout List
14004 \labelwidthstring MMMMMMMMMMM
14005
14006 \family typewriter
14007
14008 \backslash
14009 authordateskip
14010 \family default
14011  between the 
14012 \family sans
14013 Author
14014 \family default
14015  and the 
14016 \family sans
14017 Date
14018 \end_layout
14019
14020 \begin_layout List
14021 \labelwidthstring MMMMMMMMMMM
14022
14023 \family typewriter
14024
14025 \backslash
14026 dateabstractskip
14027 \family default
14028  between the 
14029 \family sans
14030 Date
14031 \family default
14032  and the 
14033 \family sans
14034 Abstract
14035 \end_layout
14036
14037 \begin_layout Standard
14038 The last length related command affects all the list environments.
14039  If you place
14040 \family typewriter
14041  
14042 \backslash
14043 zerolistvertdimens
14044 \family default
14045  
14046 \emph on
14047 inside
14048 \emph default
14049  a list environment then all the vertical spacing between the list items
14050  is removed.
14051  Note that this is a command not a length so it doesn't require 
14052 \family typewriter
14053
14054 \backslash
14055 setlength
14056 \family default
14057  like the stuff mentioned above.
14058 \end_layout
14059
14060 \begin_layout Subsubsection
14061 Headers and Footers
14062 \end_layout
14063
14064 \begin_layout Standard
14065 The 
14066 \family typewriter
14067
14068 \backslash
14069 LogoOn
14070 \family default
14071  and 
14072 \family typewriter
14073
14074 \backslash
14075 LogoOff
14076 \family default
14077  commands control whether the logo in the 
14078 \family sans
14079 MyLogo
14080 \family default
14081  definition appear on a given page.
14082  If you put 
14083 \family typewriter
14084
14085 \backslash
14086 LogoOff
14087 \family default
14088  in the preamble then none of the foils will have the logo on them.
14089  If you don't want the logo on a particular page place the 
14090 \family typewriter
14091
14092 \backslash
14093 LogoOff
14094 \family default
14095  directly after the foilhead of that page and the 
14096 \family typewriter
14097
14098 \backslash
14099 LogoOn
14100 \family default
14101  directly after the next foilhead.
14102 \end_layout
14103
14104 \begin_layout Standard
14105 If you decide to use the 
14106 \family sans
14107 fancy
14108 \family default
14109  page style setting in the 
14110 \family sans
14111 Document\InsetSpace ~
14112 Layout
14113 \family default
14114  dialog you should probably add 
14115 \family typewriter
14116
14117 \backslash
14118 let
14119 \backslash
14120 headwidth
14121 \backslash
14122 textwidth
14123 \family default
14124  to your preamble so headers and footers on landscape pages are correctly
14125  placed when rotated.
14126  This is due to some clashes between the page layouts provided by the 
14127 \family sans
14128 fancyheadings
14129 \family default
14130  package and the 
14131 \family sans
14132 foils
14133 \family default
14134  class.
14135 \end_layout
14136
14137 \begin_layout Section
14138 Latex8 (IEEE Conference Papers)
14139 \end_layout
14140
14141 \begin_layout Standard
14142 by 
14143 \noun on
14144 Allan Rae
14145 \end_layout
14146
14147 \begin_layout Subsection
14148 Introduction
14149 \end_layout
14150
14151 \begin_layout Standard
14152 Since this class is specifically for writing submissions to IEEE sponsored
14153  conferences I strongly recommend that you get a copy of their Authors Kit.
14154  The 
14155 \family sans
14156 latex.sty
14157 \family default
14158  package and associated bibliography style file is included in the kit.
14159  The Authors Kit is usually sent out by email once your initial submission
14160  has been accepted.
14161  There is a lot of useful information in the Authors Kit explaining formatting
14162  restrictions and so on and I will assume you have read this since that
14163  means I don't have to repeat it all here.
14164 \end_layout
14165
14166 \begin_layout Subsection
14167 Getting Started
14168 \end_layout
14169
14170 \begin_layout Standard
14171 [AR\SpecialChar \@.
14172  more to come]
14173 \end_layout
14174
14175 \begin_layout Subsection
14176 Supported Environments
14177 \end_layout
14178
14179 \begin_layout Itemize
14180
14181 \family sans
14182 Standard
14183 \end_layout
14184
14185 \begin_layout Itemize
14186
14187 \family sans
14188 Title
14189 \end_layout
14190
14191 \begin_layout Itemize
14192
14193 \family sans
14194 Author
14195 \end_layout
14196
14197 \begin_layout Itemize
14198
14199 \family sans
14200 E-mail
14201 \end_layout
14202
14203 \begin_layout Itemize
14204
14205 \family sans
14206 Affiliation
14207 \end_layout
14208
14209 \begin_layout Itemize
14210
14211 \family sans
14212 Abstract
14213 \end_layout
14214
14215 \begin_layout Itemize
14216
14217 \family sans
14218 Section
14219 \end_layout
14220
14221 \begin_layout Itemize
14222
14223 \family sans
14224 SubSection
14225 \end_layout
14226
14227 \begin_layout Itemize
14228
14229 \family sans
14230 Caption
14231 \end_layout
14232
14233 \begin_layout Subsection
14234 Differences Between Screen and Paper
14235 \end_layout
14236
14237 \begin_layout Standard
14238 There are slight differences in appearance mainly with the presentation
14239  of section counters.
14240  On screen the trailing period of the section counter is missing but it
14241  will appear in the output so don't let this worry you.
14242 \end_layout
14243
14244 \begin_layout Section
14245 Hollywood (Hollywood spec scripts)
14246 \end_layout
14247
14248 \begin_layout Standard
14249 by 
14250 \shape smallcaps
14251 Garst Reese
14252 \end_layout
14253
14254 \begin_layout Subsection
14255 Introduction
14256 \end_layout
14257
14258 \begin_layout Standard
14259 Getting the format of a Hollywood script right is a 
14260 \begin_inset Quotes eld
14261 \end_inset
14262
14263 rite of passage.
14264 \begin_inset Quotes erd
14265 \end_inset
14266
14267  It is designed to make the readers focus on content and to be easy and
14268  familiar for the actors to read.
14269  Each page of a script should be one minute of film.
14270  Nothing goes in a script that you cannot see or hear on screen.
14271  The courier 12 pt font should be used throughout.
14272  No italics.
14273 \end_layout
14274
14275 \begin_layout Subsection
14276 Special problems
14277 \end_layout
14278
14279 \begin_layout Standard
14280 Speakers' lines should NEVER break in mid-sentence.
14281  If a speaker's lines continue over a page break, repeat the 
14282 \family sans
14283 Speaker
14284 \family default
14285  title followed by (Cont'd).
14286 \end_layout
14287
14288 \begin_layout Subsection
14289 Special features
14290 \end_layout
14291
14292 \begin_layout Standard
14293 Insert the 
14294 \family sans
14295 Speaker
14296 \family default
14297  names as labels then cross-reference the label to insert the name.
14298  The cross-reference dialog will show the current cast of characters.
14299  You can use this to insert the speaker name in narratives also.
14300 \end_layout
14301
14302 \begin_layout Subsection
14303 Paper size and Margins
14304 \end_layout
14305
14306 \begin_layout Standard
14307 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
14308 \end_layout
14309
14310 \begin_layout Subsection
14311 Environments
14312 \end_layout
14313
14314 \begin_layout Standard
14315 The following environments are available.
14316  You can use hollywood.bind to get the bind keys shown at the right.
14317 \end_layout
14318
14319 \begin_layout Itemize
14320
14321 \family sans
14322 Standard
14323 \newline
14324
14325 \family default
14326 Used where nothing else works.
14327  Try to avoid it.
14328 \end_layout
14329
14330 \begin_layout Itemize
14331
14332 \family sans
14333 FADE_IN
14334 \family default
14335 :
14336 \hfill
14337
14338 \family sans
14339 M-z S-I
14340 \family default
14341
14342 \newline
14343 Usually followed by something like 
14344 \begin_inset Quotes eld
14345 \end_inset
14346
14347 on Sally waking up.
14348 \begin_inset Quotes erd
14349 \end_inset
14350
14351
14352 \end_layout
14353
14354 \begin_layout Itemize
14355
14356 \family sans
14357 INT:
14358 \hfill
14359 M-z i
14360 \newline
14361
14362 \family default
14363 Introduces a new INTERIOR camera set-up.
14364  Always followed by DAY or NIGHT, or something similar to define the lighting
14365  required.
14366  Everthing on this line in CAPS.
14367 \end_layout
14368
14369 \begin_layout Itemize
14370
14371 \family sans
14372 EXT:
14373 \hfill
14374 M-z e
14375 \newline
14376
14377 \family default
14378 Introduces a new EXTERIOR camera set-up.
14379  Everthing on this line in CAPS.
14380 \end_layout
14381
14382 \begin_layout Itemize
14383
14384 \family sans
14385 Speaker
14386 \hfill
14387 M-z s
14388 \newline
14389
14390 \family default
14391 The character speaking.
14392 \end_layout
14393
14394 \begin_layout Itemize
14395
14396 \family sans
14397 Parenthetical
14398 \hfill
14399 M-z p
14400 \newline
14401
14402 \family default
14403 Instructions to the speaker.
14404  The () are automatically inserted, but only the ( will show in LyX.
14405  Both will be printed.
14406 \end_layout
14407
14408 \begin_layout Itemize
14409
14410 \family sans
14411 Dialogue
14412 \hfill
14413 M-z d
14414 \newline
14415
14416 \family default
14417 What the 
14418 \family sans
14419 Speaker
14420 \family default
14421  says.
14422 \end_layout
14423
14424 \begin_layout Itemize
14425
14426 \family sans
14427 Transition
14428 \hfill
14429 M-z t
14430 \newline
14431
14432 \family default
14433 Camera movement instruction.
14434  e.g.
14435  CUT TO:
14436 \end_layout
14437
14438 \begin_layout Itemize
14439
14440 \family sans
14441 FADE OUT:
14442 \hfill
14443 M-z S-I
14444 \end_layout
14445
14446 \begin_layout Itemize
14447
14448 \family sans
14449 Author
14450 \hfill
14451 M-z S-A
14452 \end_layout
14453
14454 \begin_layout Itemize
14455
14456 \family sans
14457 Title
14458 \hfill
14459 M-z S-T
14460 \end_layout
14461
14462 \begin_layout Itemize
14463
14464 \family sans
14465 Right_Address
14466 \hfill
14467 M-z r
14468 \end_layout
14469
14470 \begin_layout Subsection
14471 Script jargon
14472 \end_layout
14473
14474 \begin_layout Itemize
14475 (O.S) --- off screen
14476 \end_layout
14477
14478 \begin_layout Itemize
14479 (V.0) --- voice over
14480 \end_layout
14481
14482 \begin_layout Itemize
14483 b.g.
14484  --- background
14485 \end_layout
14486
14487 \begin_layout Itemize
14488 C.U.
14489  --- close-up
14490 \end_layout
14491
14492 \begin_layout Itemize
14493 PAN --- camera movement
14494 \end_layout
14495
14496 \begin_layout Itemize
14497 INSERT --- cut to close-up of
14498 \end_layout
14499
14500 \begin_layout Section
14501 Broadway
14502 \end_layout
14503
14504 \begin_layout Standard
14505 by 
14506 \shape smallcaps
14507 Garst Reese
14508 \end_layout
14509
14510 \begin_layout Subsection
14511 Introduction
14512 \end_layout
14513
14514 \begin_layout Standard
14515 Broadway is for writing plays.
14516  The format is more decorative than Hollywood, and much less standardized.
14517  This format should be suitable for workshops.
14518 \end_layout
14519
14520 \begin_layout Subsection
14521 Special problems
14522 \end_layout
14523
14524 \begin_layout Standard
14525 The same as in Hollywood.
14526 \end_layout
14527
14528 \begin_layout Subsection
14529 Special features
14530 \end_layout
14531
14532 \begin_layout Standard
14533 Insert the 
14534 \family sans
14535 Speaker
14536 \family default
14537  names as labels then cross-reference the label to insert the name.
14538  The cross-reference dialog will show the current cast of characters.
14539 \end_layout
14540
14541 \begin_layout Subsection
14542 Paper size and Margins
14543 \end_layout
14544
14545 \begin_layout Standard
14546 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
14547 \end_layout
14548
14549 \begin_layout Subsection
14550 Environments
14551 \end_layout
14552
14553 \begin_layout Standard
14554 The following environments are available.
14555  You can use broadway.bind to get the bind keys shown at the right.
14556 \end_layout
14557
14558 \begin_layout Itemize
14559
14560 \family sans
14561 Standard
14562 \newline
14563
14564 \family default
14565 You should not have to use this, but it is here for anything that does not
14566  fit otherwise.
14567 \end_layout
14568
14569 \begin_layout Itemize
14570
14571 \family sans
14572 Narrative
14573 \hfill
14574 M-z n
14575 \newline
14576
14577 \family default
14578 Used to describe stage setting and the action.
14579  First use of speaker names in all CAPs.
14580 \end_layout
14581
14582 \begin_layout Itemize
14583
14584 \family sans
14585 ACT
14586 \hfill
14587 M-z a
14588 \newline
14589
14590 \family default
14591 Automatically numbered.
14592  On screen it will be arabic, but will print as Roman.
14593 \end_layout
14594
14595 \begin_layout Itemize
14596
14597 \family sans
14598 ACT*
14599 \hfill
14600 M-z S at
14601 \newline
14602
14603 \family default
14604 Subtitle for 
14605 \family sans
14606 ACT.
14607  
14608 \family default
14609 It is just centered text.
14610 \end_layout
14611
14612 \begin_layout Itemize
14613
14614 \family sans
14615 SCENE
14616 \hfill
14617 M-z S-S
14618 \newline
14619
14620 \family default
14621 Not automatically numbered.
14622  You supply the number.
14623  This is because I couldn't figure out how.
14624 \end_layout
14625
14626 \begin_layout Itemize
14627
14628 \family sans
14629 AT_RISE:
14630 \hfill
14631 M-z S-R
14632 \newline
14633
14634 \family default
14635 A special case of Narrative to describe the setting and action as the curtain
14636  rises.
14637 \end_layout
14638
14639 \begin_layout Itemize
14640
14641 \family sans
14642 Speaker
14643 \hfill
14644 M-z s
14645 \newline
14646
14647 \family default
14648 The speaker's (actor's) title, centered in all CAPS.
14649 \end_layout
14650
14651 \begin_layout Itemize
14652
14653 \family sans
14654 Parenthetical
14655 \hfill
14656 M-z p
14657 \newline
14658
14659 \family default
14660 Instructions to the speaker.
14661  The parentheses are automatically inserted.
14662  The ( will appear on screen, but both will be in the printed play.
14663  This environment is only used within 
14664 \family sans
14665 Dialogue
14666 \family default
14667 .
14668 \end_layout
14669
14670 \begin_layout Itemize
14671
14672 \family sans
14673 Dialogue
14674 \hfill
14675 M-z d
14676 \newline
14677
14678 \family default
14679 What the Speaker says.
14680 \end_layout
14681
14682 \begin_layout Itemize
14683
14684 \family sans
14685 CURTAIN
14686 \hfill
14687 M-z S-C
14688 \newline
14689
14690 \family default
14691 The curtain comes down.
14692 \end_layout
14693
14694 \begin_layout Itemize
14695
14696 \family sans
14697 Title
14698 \hfill
14699 M-z S-T
14700 \end_layout
14701
14702 \begin_layout Itemize
14703
14704 \family sans
14705 Author
14706 \hfill
14707 M-z S-A
14708 \end_layout
14709
14710 \begin_layout Itemize
14711
14712 \family sans
14713 Right_Address
14714 \hfill
14715 M-z r
14716 \end_layout
14717
14718 \begin_layout Standard
14719 Hello there.
14720 \end_layout
14721
14722 \begin_layout Section
14723 RevTeX4
14724 \end_layout
14725
14726 \begin_layout Standard
14727 by 
14728 \noun on
14729 Amir Karger
14730 \end_layout
14731
14732 \begin_layout Standard
14733 \begin_inset VSpace bigskip
14734 \end_inset
14735
14736
14737 \end_layout
14738
14739 \begin_layout Standard
14740 \noindent
14741 The 
14742 \family sans
14743 Revtex\InsetSpace ~
14744 4
14745 \family default
14746  textclass works with the American Physical Sociey's RevTeX 4.0 (the 
14747 \begin_inset Formula $\beta$
14748 \end_inset
14749
14750  release of May, 1999) class.
14751 \end_layout
14752
14753 \begin_layout Standard
14754 LyX has a 
14755 \family sans
14756 Revtex
14757 \family default
14758  textclass, which works with RevTeX 3.1.
14759  However, v3.1 is basically obsolete, as it works with LaTeX 2.09.
14760  That means that it doesn't interact very well with LyX, which requires
14761  LaTeX2e, although it has been kludged to work.
14762  Since RevTeX 4.0 has been designed to work much more cleanly with LaTeX2e,
14763  LyX with the 
14764 \family sans
14765 RevTeX\InsetSpace ~
14766 4
14767 \family default
14768  textclass should also be pretty easy to use.
14769 \end_layout
14770
14771 \begin_layout Standard
14772 These documents are supposed to be used in 
14773 \emph on
14774 addition
14775 \emph default
14776  to the RevTeX 4.0 documents, so we don't describe any of the special RevTeX
14777  macros, and assume you'll know what to put in the preamble if necessary.
14778 \end_layout
14779
14780 \begin_layout Subsection
14781 Installation
14782 \end_layout
14783
14784 \begin_layout Standard
14785 All you need to do is install RevTeX 4, as described in the package's README
14786  file.
14787  the package can be found at 
14788 \begin_inset LatexCommand \url[The RevTeX 4 Web Site]{http://publish.aps.org/revtex4/}
14789
14790 \end_inset
14791
14792 .
14793  Install it somewhere that LaTeX can see it.
14794  Test it by trying to LaTeX a short RevTeX 4 document in some random directory
14795  (i.e., not the directory where you installed the class file.) Then, if you
14796  reconfigure LyX, it will find the class file and let you use the RevTeX4
14797  textclass.
14798 \end_layout
14799
14800 \begin_layout Standard
14801 Probably the easiest way to get started is either to import a RevTeX 4 document
14802  using 
14803 \family typewriter
14804 reLyX
14805 \family default
14806 , or to use the 
14807 \family sans
14808 Revtex\InsetSpace ~
14809 4
14810 \family default
14811  template, found in the templates directory.
14812 \end_layout
14813
14814 \begin_layout Subsection
14815 Preamble Matter
14816 \end_layout
14817
14818 \begin_layout Standard
14819 Optional arguments to 
14820 \family typewriter
14821
14822 \backslash
14823 documentclass
14824 \family default
14825 , like 
14826 \begin_inset Quotes eld
14827 \end_inset
14828
14829 preprint
14830 \begin_inset Quotes erd
14831 \end_inset
14832
14833  and 
14834 \begin_inset Quotes eld
14835 \end_inset
14836
14837 aps
14838 \begin_inset Quotes erd
14839 \end_inset
14840
14841 , go in the 
14842 \family sans
14843 E
14844 \bar under
14845 x
14846 \bar default
14847 tra\InsetSpace ~
14848 Options
14849 \family default
14850  field in the 
14851 \family sans
14852 Document\InsetSpace ~
14853 Layout
14854 \family default
14855  dialog, as usual.
14856  Remember that in RevTeX, at least one optional argument is required! 
14857 \end_layout
14858
14859 \begin_layout Standard
14860 Other preamble matter, like 
14861 \family typewriter
14862
14863 \backslash
14864 draft
14865 \family default
14866  etc.
14867  goes in the 
14868 \family sans
14869 Latex\InsetSpace ~
14870 Preamble
14871 \family default
14872  dialog, also as usual.
14873 \end_layout
14874
14875 \begin_layout Subsection
14876 Layouts
14877 \end_layout
14878
14879 \begin_layout Standard
14880 The layouts basically correspond to the commands in RevTeX4.0.
14881  For example, the Email layout corresponds to 
14882 \family typewriter
14883
14884 \backslash
14885 email{}
14886 \family default
14887 .
14888  Note that (at least as of RevTeX 4.0 Beta), the 
14889 \family sans
14890 Address
14891 \family default
14892  and 
14893 \family sans
14894 Affiliation
14895 \family default
14896  layouts are exactly equivalent, so you shouldn't need to use both.
14897 \begin_inset Foot
14898 status collapsed
14899
14900 \begin_layout Standard
14901 In case you're curious, both were included so that 
14902 \family typewriter
14903 reLyX
14904 \family default
14905  would be able to translate both 
14906 \family typewriter
14907
14908 \backslash
14909 address
14910 \family default
14911  and 
14912 \family typewriter
14913
14914 \backslash
14915 affiliation
14916 \family default
14917 .
14918 \end_layout
14919
14920 \end_inset
14921
14922
14923 \end_layout
14924
14925 \begin_layout Subsection
14926 Important Notes
14927 \end_layout
14928
14929 \begin_layout Standard
14930 There are a couple of important unique aspects of RevTeX 4 which might cause
14931  bugs that will be even more confusing in LyX.
14932 \end_layout
14933
14934 \begin_layout Standard
14935 In RevTeX, the 
14936 \family typewriter
14937
14938 \backslash
14939 thanks
14940 \family default
14941  command goes 
14942 \emph on
14943 outside
14944 \emph default
14945  the 
14946 \family typewriter
14947
14948 \backslash
14949 author
14950 \family default
14951  command.
14952  The LyX equivalent is that there is a separate Thanks layout.
14953  Do 
14954 \emph on
14955 not
14956 \emph default
14957  write footnotes in the 
14958 \family sans
14959 Author
14960 \family default
14961  layout, or weird things may happen.
14962  See the RevTeX 4 documentation for more details.
14963 \end_layout
14964
14965 \begin_layout Standard
14966 Also, the 
14967 \family sans
14968 Author\InsetSpace ~
14969 Email
14970 \family default
14971
14972 \family sans
14973 Author\InsetSpace ~
14974 URL
14975 \family default
14976 , and 
14977 \family sans
14978 Thanks
14979 \family default
14980  layouts must be placed 
14981 \emph on
14982 in between
14983 \emph default
14984  the 
14985 \family sans
14986 Author
14987 \family default
14988  layout and the corresponding 
14989 \family sans
14990 Address
14991 \family default
14992  (or equivalent 
14993 \family sans
14994 Affiliation
14995 \family default
14996 ) layout.
14997  If you put the 
14998 \family sans
14999 Thanks
15000 \family default
15001  after the 
15002 \family sans
15003 Address
15004 \family default
15005 , the LaTeX won't compile.
15006 \end_layout
15007
15008 \begin_layout Subsection
15009 Drawbacks
15010 \end_layout
15011
15012 \begin_layout Standard
15013 The main problem with this layout is that you can't use the optional arguments
15014  to layouts like Email and Title.
15015  (The problem is not unique to this layout; you can't use optional arguments
15016  to the Section layouts either.) This means that after you export that file
15017  to LaTeX (which you'll need to do eventually to send it in to APS), you'll
15018  need to edit the LaTeX file with a text editor to add the optional arguments
15019  to set, e.g., the running title for the page headers.
15020  Lacking these layouts makes the 
15021 \family typewriter
15022
15023 \backslash
15024 altaffiliation
15025 \family default
15026  (and the equivalent 
15027 \family typewriter
15028
15029 \backslash
15030 altaddress
15031 \family default
15032 ) useless, so the corresponding layouts don't exist, and will have to be
15033  added by hand.
15034 \begin_inset Foot
15035 status collapsed
15036
15037 \begin_layout Standard
15038
15039 \emph on
15040 Note from JMarc:
15041 \emph default
15042  actually, LyX 1.3.0 supports some forms of optional arguments, but this layout
15043  has not been updated yet to take advantage of it.
15044 \end_layout
15045
15046 \end_inset
15047
15048  
15049 \end_layout
15050
15051 \begin_layout Section
15052 Article (mwart), book (mwbk) and report (mwrep)
15053 \begin_inset OptArg
15054 status collapsed
15055
15056 \begin_layout Standard
15057 The 
15058 \family typewriter
15059 mw
15060 \family default
15061  Classes
15062 \end_layout
15063
15064 \end_inset
15065
15066
15067 \end_layout
15068
15069 \begin_layout Standard
15070 by 
15071 \noun on
15072 Tomasz Luczak
15073 \end_layout
15074
15075 \begin_layout Standard
15076 The LyX document classes
15077 \emph on
15078  article (mwart)
15079 \emph default
15080
15081 \emph on
15082 report (mwrep)
15083 \emph default
15084  and 
15085 \emph on
15086 book
15087 \emph default
15088  
15089 \emph on
15090 (mwbk)
15091 \emph default
15092  correspond to the LaTeX document classes 
15093 \family typewriter
15094 mwart.cls
15095 \family default
15096
15097 \family typewriter
15098 mwrep.cls
15099 \family default
15100  and 
15101 \family typewriter
15102 mwbk.cls
15103 \family default
15104 , resp.
15105  They are replacements for the standard document classes 
15106 \family typewriter
15107 article.cls
15108 \family default
15109
15110 \family typewriter
15111 report.cls
15112 \family default
15113  and 
15114 \family typewriter
15115 book.cls
15116 \family default
15117 , resp., and fit better to Polish typography conventions in a number of points.
15118  
15119 \end_layout
15120
15121 \begin_layout Standard
15122 Basic differences:
15123 \end_layout
15124
15125 \begin_layout Itemize
15126 Unnumbered titles (with star, eg.
15127  
15128 \family sans
15129 Section*
15130 \family default
15131 ) are added into table of contents,
15132 \end_layout
15133
15134 \begin_layout Itemize
15135 Additional page styles:
15136 \end_layout
15137
15138 \begin_deeper
15139 \begin_layout Description
15140 uheadings header with separated lines,
15141 \end_layout
15142
15143 \begin_layout Description
15144 myheadings custom header, contents headers via commands: 
15145 \family typewriter
15146
15147 \backslash
15148 markright
15149 \family default
15150  and 
15151 \family typewriter
15152
15153 \backslash
15154 markboth
15155 \family default
15156 ,
15157 \end_layout
15158
15159 \begin_layout Description
15160 myuheadings custom header with separated lines,
15161 \end_layout
15162
15163 \begin_layout Description
15164 outer page number is placed on outer side of page
15165 \end_layout
15166
15167 \end_deeper
15168 \begin_layout Itemize
15169 Options 
15170 \end_layout
15171
15172 \begin_deeper
15173 \begin_layout Description
15174 rmheadings serif titles --- default,
15175 \end_layout
15176
15177 \begin_layout Description
15178 sfheadings sansserif titles,
15179 \end_layout
15180
15181 \begin_layout Description
15182 authortitle on title page first placed is author next title --- default,
15183 \end_layout
15184
15185 \begin_layout Description
15186 titleauthor on title page first placed is title next author,
15187 \end_layout
15188
15189 \begin_layout Description
15190 withmarginpar reserve place on page for margins.
15191 \end_layout
15192
15193 \end_deeper
15194 \begin_layout Section
15195 Elsevier Journals
15196 \end_layout
15197
15198 \begin_layout Standard
15199 By 
15200 \noun on
15201 Rod Pinna
15202 \end_layout
15203
15204 \begin_layout Standard
15205 Elsevier Science Publishers B.V.
15206  provides a standard LaTeX document class (
15207 \family typewriter
15208 elsart.cls
15209 \family default
15210 ) for submitting articles to their various journals.
15211  The style file can be downloaded directly from their web site: 
15212 \begin_inset LatexCommand \url{http://authors.elsevier.com/}
15213
15214 \end_inset
15215
15216 .
15217  Instructions are supplied along with the class file, which details the
15218  requirements of the publishers.
15219  LyX includes package that allows for the use of this class, by a layout
15220  and a template file.
15221  Installation of the class file is the same as for any other LaTeX package;
15222  instructions are provided in the Elsevier documentation.
15223 \end_layout
15224
15225 \begin_layout Standard
15226 To make use of 
15227 \family typewriter
15228 elsart.cls
15229 \family default
15230 , a file 
15231 \family typewriter
15232 elsart.layout
15233 \family default
15234  is supplied.
15235  As the Elsevier class file is based mainly on the standard article class,
15236  most of the normal functionality is provided.
15237  The Elsevier class defines a number of mathematical environments, which
15238  are similar to the AMS environments.
15239  These commands are all described in the Elsevier documentation, and are
15240  available in LyX.
15241 \end_layout
15242
15243 \begin_layout Standard
15244 The easiest way to use the Elsevier style is to base documents on the included
15245  template file.
15246  It is best not to use options such as fancy headings or the geometry package,
15247  as elements such as these are defined by Elsevier in their style file.
15248  Ideally, no extra packages except those mentioned in the Elsevier documentation
15249  should be used.
15250  Essentially, Elsevier require as 
15251 \begin_inset Quotes eld
15252 \end_inset
15253
15254 clean
15255 \begin_inset Quotes erd
15256 \end_inset
15257
15258  a 
15259 \begin_inset ERT
15260 status collapsed
15261
15262 \begin_layout Standard
15263
15264
15265 \backslash
15266 LaTeX
15267 \end_layout
15268
15269 \end_inset
15270
15271  file as possible, as their intention is to take the supplied file and replace
15272  the class file with one for the particular journal to which the paper has
15273  been submitted.
15274  This also means that not too much time should be spent on the formating
15275  of the document.
15276  When it comes to be published, this will change anyway.
15277  The rest of the usage for this layout is substantially the same as for
15278  the normal article class.
15279  For details of what Elsevier do and don't allow, refer to their documentation.
15280 \end_layout
15281
15282 \begin_layout Section
15283 Memoir
15284 \end_layout
15285
15286 \begin_layout Standard
15287 By 
15288 \noun on
15289 Jürgen Spitzmüller
15290 \end_layout
15291
15292 \begin_layout Subsection
15293 Overview
15294 \end_layout
15295
15296 \begin_layout Standard
15297 Memoir is a very powerful and constantly evolving class.
15298  It has been designed with regard to fictional and non-fictional literature.
15299  Its aim is to let the user have maximum control over the typesetting of
15300  his document.
15301  Memoir is based on the standard book class, but it can also emulate the
15302  article class (see below).
15303 \end_layout
15304
15305 \begin_layout Standard
15306 Peter Wilson, the developer of Memoir, is known as the author of lots of
15307  useful packages in the LaTeX world.
15308  Most of them have been merged with Memoir.
15309  Therefore, it is much easier to layout the table of contents, appendices,
15310  chapter designs and such.
15311  LyX, though, does not support all of these goodies natively.
15312  Some of them might be added to forthcoming releases
15313 \begin_inset Foot
15314 status collapsed
15315
15316 \begin_layout Standard
15317 You are invited to send suggestions to 
15318 \begin_inset LatexCommand \url{lyx-devel@lists.lyx.org}
15319
15320 \end_inset
15321
15322 .
15323 \end_layout
15324
15325 \end_inset
15326
15327 , lots will probably never, due to the limitations of LyX's framework.
15328  Of course you can still use all features with the help of some native LaTeX
15329  commands (ERT
15330 \begin_inset Foot
15331 status collapsed
15332
15333 \begin_layout Standard
15334 Cf.
15335 \begin_inset ERT
15336 status collapsed
15337
15338 \begin_layout Standard
15339
15340
15341 \backslash
15342  
15343 \end_layout
15344
15345 \end_inset
15346
15347 section\InsetSpace ~
15348
15349 \begin_inset LatexCommand \ref{sec:Inserting-LaTeX-Code}
15350
15351 \end_inset
15352
15353  for details.
15354 \end_layout
15355
15356 \end_inset
15357
15358 ).
15359  In this section, we can only list those features which are natively supported
15360  by LyX.
15361  For detailed descriptions (and for the rest of features) we are recommending
15362  to have a look at the detailed manual of the Memoir class
15363 \begin_inset Foot
15364 status collapsed
15365
15366 \begin_layout Standard
15367 Cf.
15368 \begin_inset ERT
15369 status collapsed
15370
15371 \begin_layout Standard
15372
15373
15374 \backslash
15375  
15376 \end_layout
15377
15378 \end_inset
15379
15380
15381 \begin_inset LatexCommand \url{CTAN:/macros/latex/memoir/memman.pdf}
15382
15383 \end_inset
15384
15385 .
15386 \end_layout
15387
15388 \end_inset
15389
15390 , which is not only a user guide for the class, but also both a comprehensive
15391  description on good typesetting and a superb example for good typesetting
15392  itself.
15393 \end_layout
15394
15395 \begin_layout Subsection
15396 Basic features and restrictions
15397 \end_layout
15398
15399 \begin_layout Standard
15400 Memoir supports basically all features of the standard book classes.
15401  There are, however, some differences, as follows:
15402 \end_layout
15403
15404 \begin_layout Description
15405 Font\InsetSpace ~
15406 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14,
15407  17
15408 \end_layout
15409
15410 \begin_layout Description
15411 Page\InsetSpace ~
15412 style: The fancy page style is not supported, due to a command clash
15413  between Memoir and the fancyhdr package (they are both defining a command
15414  with the same name, which confuses LaTeX).
15415  Instead, Memoir comes with a bunch of own page styles (see 
15416 \family sans
15417 Layout\SpecialChar \menuseparator
15418 Document\SpecialChar \menuseparator
15419 Page\InsetSpace ~
15420 Style
15421 \family default
15422 ).
15423  If you want to use these for the chapter pages, you have to use the command
15424  
15425 \family typewriter
15426
15427 \backslash
15428 chapterstyle
15429 \family default
15430  in the main text or in preamble (e.
15431 \begin_inset ERT
15432 status collapsed
15433
15434 \begin_layout Standard
15435
15436
15437 \backslash
15438 ,
15439 \end_layout
15440
15441 \end_inset
15442
15443 g.
15444 \begin_inset ERT
15445 status collapsed
15446
15447 \begin_layout Standard
15448
15449
15450 \backslash
15451  
15452 \end_layout
15453
15454 \end_inset
15455
15456
15457 \family typewriter
15458
15459 \backslash
15460 chapterstyle{companion}
15461 \family default
15462 ).
15463 \end_layout
15464
15465 \begin_layout Description
15466 Sectioning: Sectionings (chapter, section, subsection etc.) are coming with
15467  an optional argument in the standard classes.
15468  With this, you can specify an alternative version of the title for the
15469  table of contents and the headers (for instance, if the title is too long).
15470  In LyX, you can do this via 
15471 \family sans
15472 Insert\SpecialChar \menuseparator
15473 Short\InsetSpace ~
15474 Title
15475 \family default
15476  at the beginning of a chapter/section.
15477  Memoir features a second optional argument and thus separates the table
15478  of contents from the header.
15479  You can define three variants of a title with this: one for the main text,
15480  one for the table of contents, and one for the headers.
15481  Simply insert two optional arguments if you need this feature, the first
15482  one containing the short title for the Table of Contents, the second one
15483  containing an alternative short title for the headers.
15484 \end_layout
15485
15486 \begin_layout Description
15487 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15488  of contents, the list of figures and the list of table start a new page
15489  automatically.
15490  Memoir does not follow this route.
15491  You have to insert a page break yourself, if you want to have one.
15492 \end_layout
15493
15494 \begin_layout Description
15495 Titlepage: For some unknown reason, Memoir uses pagination on the title
15496  page (in the standard classes, title pages are 
15497 \begin_inset Quotes eld
15498 \end_inset
15499
15500 empty
15501 \begin_inset Quotes erd
15502 \end_inset
15503
15504 , i.
15505 \begin_inset ERT
15506 status collapsed
15507
15508 \begin_layout Standard
15509
15510
15511 \backslash
15512 ,
15513 \end_layout
15514
15515 \end_inset
15516
15517 e.
15518 \begin_inset ERT
15519 status collapsed
15520
15521 \begin_layout Standard
15522
15523
15524 \backslash
15525  
15526 \end_layout
15527
15528 \end_inset
15529
15530 without pagina).
15531  If you want an empty title page, type 
15532 \family typewriter
15533
15534 \backslash
15535 aliaspagestyle{title}{empty} 
15536 \family default
15537 in the preamble.
15538 \end_layout
15539
15540 \begin_layout Description
15541 Article: With the class option 
15542 \emph on
15543 article 
15544 \emph default
15545 (to be inserted in 
15546 \family sans
15547 Layout\SpecialChar \menuseparator
15548 Document\SpecialChar \menuseparator
15549 Extra\InsetSpace ~
15550 Options
15551 \family default
15552 ), you can emulate article style.
15553  That is, counters (footnotes, figures, tables etc.) will not be reset on
15554  new chapters, chapters don't start a new page (but are---in contrary to
15555  
15556 \begin_inset Quotes eld
15557 \end_inset
15558
15559 real
15560 \begin_inset Quotes erd
15561 \end_inset
15562
15563  article classes---still allowed), parts, though, use their own page, as
15564  in book.
15565 \end_layout
15566
15567 \begin_layout Description
15568 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15569  font commands, which have been used in the old LaTeX version 2.09 (e.
15570 \begin_inset ERT
15571 status collapsed
15572
15573 \begin_layout Standard
15574
15575
15576 \backslash
15577 ,
15578 \end_layout
15579
15580 \end_inset
15581
15582 g.
15583 \begin_inset ERT
15584 status collapsed
15585
15586 \begin_layout Standard
15587
15588
15589 \backslash
15590  
15591 \end_layout
15592
15593 \end_inset
15594
15595
15596 \family typewriter
15597
15598 \backslash
15599 rm
15600 \family default
15601
15602 \family typewriter
15603
15604 \backslash
15605 it
15606 \family default
15607 ).
15608  It produces an error and stops LaTeX whenever such a command appears.
15609  The class option 
15610 \emph on
15611 oldfontcommands
15612 \emph default
15613  reallows the commands and spits out warnings instead (which does at least
15614  not stop LaTeX).
15615  Since a lot of packages and particularly BibTeX style files are still using
15616  those commands, we have decided to use this option by default.
15617 \end_layout
15618
15619 \begin_layout Subsection
15620 Extra features
15621 \end_layout
15622
15623 \begin_layout Standard
15624 We will only describe the features supported by LyX (which is not much currently
15625 ).
15626  Please consult the Memoir manual
15627 \begin_inset Foot
15628 status collapsed
15629
15630 \begin_layout Standard
15631 Cf.
15632 \begin_inset ERT
15633 status collapsed
15634
15635 \begin_layout Standard
15636
15637
15638 \backslash
15639  
15640 \end_layout
15641
15642 \end_inset
15643
15644
15645 \begin_inset LatexCommand \url{CTAN:/macros/latex/memoir/memman.pdf}
15646
15647 \end_inset
15648
15649 .
15650 \end_layout
15651
15652 \end_inset
15653
15654  for details.
15655 \end_layout
15656
15657 \begin_layout Description
15658 Abstract: You may wonder why an abstract is an extra feature.
15659  Well, it is in book class.
15660  Usually books don't have abstracts.
15661  Memoir, however, has.
15662  You can use it whereever and how often you like.
15663 \end_layout
15664
15665 \begin_layout Description
15666 Chapterprecis: You may know this from belletristic: The contents of a chapter
15667  is shortly described below the title and also in the table of contents
15668  (e.
15669 \begin_inset ERT
15670 status collapsed
15671
15672 \begin_layout Standard
15673
15674
15675 \backslash
15676 ,
15677 \end_layout
15678
15679 \end_inset
15680
15681 g.
15682 \begin_inset ERT
15683 status collapsed
15684
15685 \begin_layout Standard
15686
15687
15688 \backslash
15689  
15690 \end_layout
15691
15692 \end_inset
15693
15694
15695 \emph on
15696 Our hero arrives in Troia; he loses some friends; he finds others
15697 \emph default
15698 ).
15699  Chapterprecis does exactly this.
15700  It is therefore only sensible below a chapter.
15701 \end_layout
15702
15703 \begin_layout Description
15704 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15705  The epigraph environment provides an elegant way of typesetting such a
15706  motto.
15707  The motto itself (text) and its author (source) are divided by a short
15708  line.
15709  Unfortunately, we have to fool LyX a bit here again, since the environment
15710  needs two arguments (text and source).
15711  In this case, we have to use curly brackets (in TeX mode) between the two
15712  arguments: 
15713 \emph on
15714 <smart slogan>
15715 \emph default
15716  
15717 \family typewriter
15718 }{
15719 \family default
15720  
15721 \emph on
15722 <author of the slogan>.
15723 \end_layout
15724
15725 \begin_layout Description
15726 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15727  complex figurative poems).
15728  Lyx can only support a few of them.
15729  One is poemtitle, which is a centered title for poems, which will also
15730  be added to the table of contents (verse is the standard environment for
15731  poems.
15732  Memoir has some enhanced versions of verse, but you need to use ERT, because
15733  they have to be nested inside regular verse environments, which is not
15734  possible with LyX).
15735 \end_layout
15736
15737 \begin_layout Description
15738 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15739 \end_layout
15740
15741 \begin_layout Chapter
15742 Importing and Exporting Alternate File Formats
15743 \begin_inset OptArg
15744 status collapsed
15745
15746 \begin_layout Standard
15747 Importing and Exporting
15748 \end_layout
15749
15750 \end_inset
15751
15752
15753 \end_layout
15754
15755 \begin_layout Section
15756 Considerations
15757 \end_layout
15758
15759 \begin_layout Standard
15760 Importing and exporting LyX documents from/to other formats has been touched
15761  on briefly in the 
15762 \emph on
15763 User Guide
15764 \emph default
15765 .
15766  Here we describe more of the gory details needed to understand just what
15767  is going on when you click on the 
15768 \family sans
15769 \bar under
15770 F
15771 \bar default
15772 ile\SpecialChar \menuseparator
15773
15774 \bar under
15775 I
15776 \bar default
15777 mport
15778 \family default
15779  and 
15780 \family sans
15781 \bar under
15782 F
15783 \bar default
15784 ile\SpecialChar \menuseparator
15785 E
15786 \bar under
15787 x
15788 \bar default
15789 port
15790 \family default
15791  menu items.
15792  
15793 \end_layout
15794
15795 \begin_layout Section
15796 Importing Other Formats
15797 \end_layout
15798
15799 \begin_layout Subsection
15800 LaTeX
15801 \end_layout
15802
15803 \begin_layout Standard
15804 Translating from LaTeX into LyX is performed by a Perl script called reLyX.
15805  Although it is a standalone program which can be called from the command
15806  line, LyX will call it automatically when a LaTeX document is imported.
15807  See section\InsetSpace ~
15808
15809 \begin_inset LatexCommand \ref{sec:reLyX}
15810
15811 \end_inset
15812
15813  for a complete description.
15814  There are no user tunable parameters for reLyX within LyX.
15815 \end_layout
15816
15817 \begin_layout Subsection
15818 ASCII Text
15819 \end_layout
15820
15821 \begin_layout Standard
15822 When importing plain ASCII text, there are two methods of reading the file.
15823  Importing 
15824 \begin_inset Quotes eld
15825 \end_inset
15826
15827 as lines
15828 \begin_inset Quotes erd
15829 \end_inset
15830
15831  preserves all the linebreaks in the ASCII; to LyX, then, each line looks
15832  like a paragraph.
15833  Importing 
15834 \begin_inset Quotes eld
15835 \end_inset
15836
15837 as paragraphs
15838 \begin_inset Quotes erd
15839 \end_inset
15840
15841  assumes that consecutive lines separated by only a single linebreak form
15842  a single paragraph.
15843  Successive linebreaks with no intervening text are thus assumed to be paragraph
15844  delimiters.
15845 \end_layout
15846
15847 \begin_layout Subsection
15848 Noweb
15849 \end_layout
15850
15851 \begin_layout Standard
15852
15853 \emph on
15854 [Editor's note: Needs to be written, obviously - any volunteers? --- mer]
15855 \end_layout
15856
15857 \begin_layout Section
15858 Exporting Other Formats
15859 \end_layout
15860
15861 \begin_layout Subsection
15862 LaTeX
15863 \end_layout
15864
15865 \begin_layout Standard
15866 LyX generates two types of LaTeX files: stripped down versions for the normal
15867  processing (
15868 \family sans
15869 View DVI
15870 \family default
15871 , etc.) which one normally never sees
15872 \begin_inset Foot
15873 status collapsed
15874
15875 \begin_layout Standard
15876 The resulting file is a perfectly valid LaTeX file, though the preamble
15877  might look a bit strange since it includes some definitions used by LyX
15878  which wouldn't show up in most human-written files.
15879 \end_layout
15880
15881 \end_inset
15882
15883 , and human readable forms which are suitable for exchanging with your colleague
15884 s.
15885  The only settable option for the translation is the line length of the
15886  output file.
15887  The default is 65 characters, but it can be set in 
15888 \family sans
15889 \bar under
15890 T
15891 \bar default
15892 ools
15893 \family default
15894 \SpecialChar \menuseparator
15895
15896 \family sans
15897 \bar under
15898 P
15899 \bar default
15900 references
15901 \family default
15902  using the 
15903 \family sans
15904 \bar under
15905 A
15906 \bar default
15907 scii\InsetSpace ~
15908 line\InsetSpace ~
15909 length
15910 \family default
15911  field.
15912  
15913 \end_layout
15914
15915 \begin_layout Subsection
15916 Device Independent Files
15917 \end_layout
15918
15919 \begin_layout Standard
15920 Device Independent files (DVI files) are produced by running LaTeX on your
15921  document.
15922  There are no user settable options.
15923 \end_layout
15924
15925 \begin_layout Subsection
15926 PostScript
15927 \end_layout
15928
15929 \begin_layout Standard
15930 The next step in the conversion chain is converting a DVI file into Postscript®.
15931  You can either use 
15932 \family sans
15933 \bar under
15934 F
15935 \bar default
15936 ile
15937 \family default
15938 \SpecialChar \menuseparator
15939
15940 \family sans
15941 \bar under
15942 E
15943 \bar default
15944 xport
15945 \family default
15946 \SpecialChar \menuseparator
15947
15948 \family sans
15949 Pos
15950 \bar under
15951 t
15952 \bar default
15953 script
15954 \family default
15955  or, if you need more control on the result, 
15956 \family sans
15957 \bar under
15958 F
15959 \bar default
15960 ile
15961 \family default
15962 \SpecialChar \menuseparator
15963
15964 \family sans
15965 \bar under
15966 P
15967 \bar default
15968 rint
15969 \family default
15970 .
15971  If you use the later, note that it is possible to configure, in 
15972 \family sans
15973 \bar under
15974 T
15975 \bar default
15976 ools
15977 \family default
15978 \SpecialChar \menuseparator
15979
15980 \family sans
15981 \bar under
15982 P
15983 \bar default
15984 references
15985 \family default
15986 , the options passed to the dvips program to achieve different effects.
15987 \end_layout
15988
15989 \begin_layout Subsection
15990 ASCII text
15991 \end_layout
15992
15993 \begin_layout Standard
15994 Exporting as ASCII attempts to preserve the 
15995 \begin_inset Quotes eld
15996 \end_inset
15997
15998 shape
15999 \begin_inset Quotes erd
16000 \end_inset
16001
16002  of the document as well as possible, but things like centering and indentation
16003  are thrown out; paragraphs are separated by blank lines.
16004  Section numbering and cross-references are done correctly, so the resulting
16005  text files is remarkably readable.
16006  The only changeable option is the length of lines, as for LaTeX output.
16007 \end_layout
16008
16009 \begin_layout Subsection
16010 HTML
16011 \end_layout
16012
16013 \begin_layout Standard
16014 LyX documents can be converted to hypertext markup, usually by converting
16015  to LaTeX first, then converting that to HTML\SpecialChar \@.
16016  Four LaTeX
16017 \begin_inset Formula $\rightarrow$
16018 \end_inset
16019
16020 HTML converters are currently known to LyX: 
16021 \family typewriter
16022 tth
16023 \family default
16024
16025 \family typewriter
16026 latex2html
16027 \family default
16028
16029 \family typewriter
16030 hevea
16031 \family default
16032  and 
16033 \family typewriter
16034 htlatex
16035 \family default
16036 .
16037  Though they are autodetected, you can overide the selection in preferences.
16038  You can also include further command line options in this dialog.
16039  
16040 \end_layout
16041
16042 \begin_layout Subsection
16043 PDF
16044 \end_layout
16045
16046 \begin_layout Standard
16047 by 
16048 \noun on
16049 Dekel Tsur
16050 \noun default
16051  (mostly)
16052 \end_layout
16053
16054 \begin_layout Standard
16055 \begin_inset VSpace bigskip
16056 \end_inset
16057
16058
16059 \end_layout
16060
16061 \begin_layout Standard
16062 The fastest way to generate a basic PDF file (no tags, links, etc.) with
16063  any version of LyX is to save the document as a Postscript® file, then
16064  run the 
16065 \family typewriter
16066 ps2pdf
16067 \family default
16068  command on it.
16069  Starting with version 1.1.6, the menu item 
16070 \family sans
16071 File->Export->PDF
16072 \family default
16073  will do all this for you.
16074  There are some issues with fonts that you need to pay attention to: see
16075  Section\InsetSpace ~
16076
16077 \begin_inset LatexCommand \ref{sec:badfonts}
16078
16079 \end_inset
16080
16081 .
16082  Also, as of version 1.1.6, there is a better method that will generate much
16083  more sophisticated files.
16084 \end_layout
16085
16086 \begin_layout Subsubsection
16087 Use pdfLaTeX
16088 \end_layout
16089
16090 \begin_layout Standard
16091 With pdfLaTeX you need to convert your eps figures to PDF (see Section\InsetSpace ~
16092
16093 \begin_inset LatexCommand \ref{sec:pdfeps}
16094
16095 \end_inset
16096
16097 ), and you cannot use pstricks.
16098  On the other hand, with pdfLaTeX it is possible to insert directly images
16099  in JPEG or PNG format, use TrueType fonts, and more.
16100 \end_layout
16101
16102 \begin_layout Subsubsection
16103 Why does the text look so bad when viewed with Acrobat Reader?
16104 \begin_inset LatexCommand \label{sec:badfonts}
16105
16106 \end_inset
16107
16108
16109 \begin_inset OptArg
16110 status collapsed
16111
16112 \begin_layout Standard
16113 Bad Fonts in Acrobat Reader
16114 \end_layout
16115
16116 \end_inset
16117
16118
16119 \end_layout
16120
16121 \begin_layout Standard
16122 The problem is that bitmap fonts are displayed poorly by Acrobat Reader.
16123  When creating a PDF from the LyX file, you need to use outline font instead
16124  of the default bitmap fonts (in fact, you should also use outline fonts
16125  for Postscript files).
16126  Recent LaTeX distributions come with Postscript® Type 1 version of the
16127  standard (Computer Modern) fonts.
16128  pdfLaTeX uses these font by default.
16129  Dvips doesn't use these fonts by default, so to make it use them, add the
16130  following to lines to your 
16131 \family typewriter
16132 ~/.dvipsrc
16133 \family default
16134  file
16135 \end_layout
16136
16137 \begin_layout LyX-Code
16138 p+ psfonts.cmz
16139 \end_layout
16140
16141 \begin_layout LyX-Code
16142 p+ psfonts.amz
16143 \end_layout
16144
16145 \begin_layout Standard
16146 If the default LaTeX font encoding (OT1) is used, nothing else need to be
16147  done.
16148  However, if the T1 font encoding is used, then LaTeX uses the newer EC
16149  fonts, for which there are no Type1 version.
16150  There are two solutions in this case: Either use the 
16151 \begin_inset Quotes eld
16152 \end_inset
16153
16154 ae font
16155 \begin_inset Quotes erd
16156 \end_inset
16157
16158  (which is in fact a 
16159 \begin_inset Quotes eld
16160 \end_inset
16161
16162 virtual
16163 \begin_inset Quotes erd
16164 \end_inset
16165
16166  font that emulates T1 coded fonts using the standard CM fonts).
16167  This is done by selecting 
16168 \begin_inset Quotes eld
16169 \end_inset
16170
16171 AE (Almost European)
16172 \begin_inset Quotes erd
16173 \end_inset
16174
16175  from 
16176 \family sans
16177 Document\SpecialChar \menuseparator
16178 Settings\SpecialChar \menuseparator
16179  Fonts\SpecialChar \menuseparator
16180 Roman
16181 \family default
16182 .
16183  However, some glyphs are missing from the CM fonts (e.g.
16184  eth, thorn), and they are taken from the EC fonts.
16185  Therefore you get these glyphs as bitmaps.
16186  Or use the 
16187 \begin_inset Quotes eld
16188 \end_inset
16189
16190 Latin Modern
16191 \begin_inset Quotes erd
16192 \end_inset
16193
16194  font from 
16195 \family sans
16196 Document\SpecialChar \menuseparator
16197 Settings\SpecialChar \menuseparator
16198  Fonts\SpecialChar \menuseparator
16199 Roman
16200 \family default
16201 .
16202  It is a newer and probably the best Postscript® Type 1 version of cm.
16203  Basically, we recommend this over the 
16204 \begin_inset Quotes eld
16205 \end_inset
16206
16207 ae
16208 \begin_inset Quotes erd
16209 \end_inset
16210
16211  solution.
16212  However, the Latin Modern fonts differ from cm in some visual aspects,
16213  which does not please everybody.
16214 \end_layout
16215
16216 \begin_layout Standard
16217 Note: LyX uses by default the T1 font encoding.
16218  If you wish to use the default font encoding (this is not recommended,
16219  unless you only write English documents), clear the field 
16220 \family sans
16221 \bar under
16222 T
16223 \bar default
16224 eX\InsetSpace ~
16225 encoding
16226 \family default
16227  in preferences (tabs 
16228 \family sans
16229 Outputs
16230 \family default
16231
16232 \family sans
16233 Misc
16234 \family default
16235 ).
16236  
16237 \end_layout
16238
16239 \begin_layout Standard
16240 An alternate option is to use the standard Postscript® fonts instead of
16241  the Computer Modern fonts.
16242  To do that, you just need to select one of the fonts listed in the document
16243  layout dialog (except for 
16244 \begin_inset Quotes eld
16245 \end_inset
16246
16247 default
16248 \begin_inset Quotes erd
16249 \end_inset
16250
16251  and 
16252 \begin_inset Quotes eld
16253 \end_inset
16254
16255 computer modern
16256 \begin_inset Quotes erd
16257 \end_inset
16258
16259 , they're all Postscript® fonts).
16260  When using the Postscript® fonts, the result PDF file is smaller as the
16261  fonts are not saved into the file.
16262  Furthermore, the Postscript® fonts include all T1 glyphs.
16263  On the other hand, the Postscript® fonts have no bold symbol font, so poor
16264  man's bold must be used (see Section\InsetSpace ~
16265
16266 \begin_inset LatexCommand \ref{sec:pdfbold}
16267
16268 \end_inset
16269
16270 ).
16271  The Postscript® fonts also look different from the Computer Modern fonts.
16272 \end_layout
16273
16274 \begin_layout Standard
16275 To sum up, both the Computer Modern and the Postscript® fonts gives good
16276  results (with few exceptions).
16277  The decision of which one to use is a matter of taste.
16278 \end_layout
16279
16280 \begin_layout Subsubsection
16281 Why doesn't the 
16282 \backslash
16283 boldsymbol{} command work when I use pslatex?
16284 \begin_inset LatexCommand \label{sec:pdfbold}
16285
16286 \end_inset
16287
16288
16289 \begin_inset OptArg
16290 status collapsed
16291
16292 \begin_layout Standard
16293
16294 \family typewriter
16295
16296 \backslash
16297 boldsymbol{}
16298 \family default
16299  and 
16300 \family typewriter
16301 pslatex
16302 \end_layout
16303
16304 \end_inset
16305
16306
16307 \end_layout
16308
16309 \begin_layout Standard
16310 The Postscript® fonts do not have a bold symbol font.
16311  The solution is to use the 
16312 \family typewriter
16313
16314 \backslash
16315 pmb{}
16316 \family default
16317  (poor man's bold) command.
16318 \end_layout
16319
16320 \begin_layout Standard
16321 It is possible to redefine the 
16322 \family typewriter
16323
16324 \backslash
16325 boldsymbol
16326 \family default
16327  command to use 
16328 \family typewriter
16329
16330 \backslash
16331 pmb
16332 \family default
16333  by putting
16334 \end_layout
16335
16336 \begin_layout LyX-Code
16337
16338 \backslash
16339 renewcommand{
16340 \backslash
16341 boldsymbol}[1]{
16342 \backslash
16343 pmb{#1}}
16344 \end_layout
16345
16346 \begin_layout Standard
16347 in the preamble.
16348 \end_layout
16349
16350 \begin_layout Subsubsection
16351 Is it possible to do write latex code which is processed only when running
16352  pdfLaTeX?
16353 \begin_inset OptArg
16354 status collapsed
16355
16356 \begin_layout Standard
16357 Conditionals with pdfLaTeX
16358 \end_layout
16359
16360 \end_inset
16361
16362
16363 \end_layout
16364
16365 \begin_layout Standard
16366 Yes.
16367  Here is an example:
16368 \end_layout
16369
16370 \begin_layout LyX-Code
16371
16372 \backslash
16373 newif 
16374 \backslash
16375 ifpdf
16376 \end_layout
16377
16378 \begin_layout LyX-Code
16379    
16380 \backslash
16381 ifx 
16382 \backslash
16383 pdfoutput 
16384 \backslash
16385 undefined
16386 \end_layout
16387
16388 \begin_layout LyX-Code
16389       
16390 \backslash
16391 pdffalse
16392 \end_layout
16393
16394 \begin_layout LyX-Code
16395    
16396 \backslash
16397 else
16398 \end_layout
16399
16400 \begin_layout LyX-Code
16401       
16402 \backslash
16403 pdftrue
16404 \end_layout
16405
16406 \begin_layout LyX-Code
16407
16408 \backslash
16409 fi
16410 \end_layout
16411
16412 \begin_layout LyX-Code
16413
16414 \end_layout
16415
16416 \begin_layout LyX-Code
16417
16418 \backslash
16419 ifpdf
16420 \end_layout
16421
16422 \begin_layout LyX-Code
16423    
16424 \backslash
16425 pdfinfo { /Author (your name and e-mail address)
16426 \end_layout
16427
16428 \begin_layout LyX-Code
16429       /Title (official title -- i.e., title element)
16430 \end_layout
16431
16432 \begin_layout LyX-Code
16433       /Subject (one line description of the document)
16434 \end_layout
16435
16436 \begin_layout LyX-Code
16437    }
16438 \end_layout
16439
16440 \begin_layout LyX-Code
16441    
16442 \backslash
16443 pdfcatalog { /PageMode (/UseNone)
16444 \end_layout
16445
16446 \begin_layout LyX-Code
16447    % /OpenAction (fitbh)
16448 \end_layout
16449
16450 \begin_layout LyX-Code
16451    }
16452 \end_layout
16453
16454 \begin_layout LyX-Code
16455    
16456 \backslash
16457 usepackage[pdftex]{hyperref}
16458 \end_layout
16459
16460 \begin_layout LyX-Code
16461
16462 \backslash
16463 else
16464 \end_layout
16465
16466 \begin_layout LyX-Code
16467    
16468 \backslash
16469 usepackage[ps2pdf]{hyperref}
16470 \end_layout
16471
16472 \begin_layout LyX-Code
16473
16474 \backslash
16475 fi
16476 \end_layout
16477
16478 \begin_layout Subsubsection
16479 How can I make URLs clickable ?
16480 \end_layout
16481
16482 \begin_layout Standard
16483 See the references here :
16484 \end_layout
16485
16486 \begin_layout Standard
16487 \begin_inset LatexCommand \url{http://wiki.lyx.org/pmwiki.php/FAQ/PDF}
16488
16489 \end_inset
16490
16491
16492 \end_layout
16493
16494 \begin_layout Subsection
16495 Custom
16496 \end_layout
16497
16498 \begin_layout Standard
16499 Custom exports are possible if you have some particularly weird format you
16500  wish to convert to, assuming you have the relevant converter, of course.
16501  The format of the 
16502 \emph on
16503 input
16504 \emph default
16505  file can be chosen in the 
16506 \family sans
16507 \bar under
16508 F
16509 \bar default
16510 ile\SpecialChar \menuseparator
16511
16512 \bar under
16513 E
16514 \bar default
16515 xport\SpecialChar \menuseparator
16516
16517 \bar under
16518 C
16519 \bar default
16520 ustom 
16521 \family default
16522 dialog; LyX will automatically convert the file to this point, then feed
16523  it to your custom converter.
16524  The possible values are all formats that LyX can produce from its own documents.
16525  
16526 \end_layout
16527
16528 \begin_layout Standard
16529 The converter command is also specified in the dialog.It should be a completely
16530  qualified command line which uses the variable 
16531 \family typewriter
16532 $$FName
16533 \family default
16534  to specify the name of the file.
16535  If this variable is not given, then the file will be sent to the standard
16536  input of your command.
16537  You may have to apply a bit of ingenuity to escape this sequence correctly
16538  so that it is compatible with your shell.
16539  
16540 \end_layout
16541
16542 \begin_layout Standard
16543 While it is not possible to save this command using the 
16544 \family sans
16545 Preferences 
16546 \family default
16547 dialog, you can manually edit your 
16548 \family typewriter
16549 .lyx/preferences
16550 \family default
16551  to add a line like
16552 \end_layout
16553
16554 \begin_layout LyX-Code
16555
16556 \backslash
16557 custom_export_command "mycommand $$FName"
16558 \end_layout
16559
16560 \begin_layout Section
16561 The Complete reLyX Description
16562 \begin_inset LatexCommand \label{sec:reLyX}
16563
16564 \end_inset
16565
16566
16567 \end_layout
16568
16569 \begin_layout Subsection
16570 Synopsis
16571 \end_layout
16572
16573 \begin_layout Standard
16574 The simplest way to use reLyX is via the 
16575 \family sans
16576 \bar under
16577 F
16578 \bar default
16579 ile\SpecialChar \menuseparator
16580
16581 \bar under
16582 I
16583 \bar default
16584 mport
16585 \family default
16586  command in LyX.
16587  That runs reLyX on the given file and loads the resulting file into LyX.
16588  You should try that first, and call it from the command line only if you
16589  need to use more complicated options.
16590 \end_layout
16591
16592 \begin_layout Standard
16593
16594 \series bold
16595 reLyX
16596 \series default
16597  [ 
16598 \series bold
16599 -c
16600 \series default
16601  
16602 \shape italic
16603 textclass
16604 \shape default
16605  ] [ 
16606 \series bold
16607 -df
16608 \series default
16609  ] [ 
16610 \series bold
16611 -o
16612 \series default
16613  
16614 \shape italic
16615 outputdir
16616 \shape default
16617  ] [
16618 \series bold
16619  -r
16620 \series default
16621 \shape italic
16622  renv1
16623 \shape default
16624 [,
16625 \shape italic
16626 renv2
16627 \shape default
16628 ...]] [
16629 \series bold
16630  -s
16631 \series default
16632 \shape italic
16633  sfile1
16634 \shape default
16635 [,
16636 \shape italic
16637 sfile2
16638 \shape default
16639 ...]] 
16640 \emph on
16641 inputfile
16642 \end_layout
16643
16644 \begin_layout Standard
16645
16646 \series bold
16647 reLyX
16648 \series default
16649  
16650 \series bold
16651 -p
16652 \series default
16653  
16654 \series bold
16655 -c
16656 \series default
16657  
16658 \shape italic
16659 textclass
16660 \shape default
16661  [ 
16662 \series bold
16663 -df
16664 \series default
16665  ] [ 
16666 \series bold
16667 -o
16668 \series default
16669  
16670 \shape italic
16671 outputdir
16672 \shape default
16673  ] [
16674 \series bold
16675  -r
16676 \series default
16677 \shape italic
16678  renv1
16679 \shape default
16680 [,
16681 \shape italic
16682 renv2
16683 \shape default
16684 ...]] [
16685 \series bold
16686  -s
16687 \series default
16688 \shape italic
16689  sfile1
16690 \shape default
16691 [,
16692 \shape italic
16693 sfile2
16694 \shape default
16695 ...]] 
16696 \emph on
16697 inputfiles
16698 \end_layout
16699
16700 \begin_layout Standard
16701
16702 \series bold
16703 reLyX
16704 \series default
16705  
16706 \series bold
16707 -h
16708 \end_layout
16709
16710 \begin_layout Subsection
16711 Options
16712 \end_layout
16713
16714 \begin_layout Description
16715
16716 \series bold
16717 -c
16718 \series default
16719  Class.
16720  By default, when reLyX sees a 
16721 \family typewriter
16722
16723 \backslash
16724 documentclass{foo}
16725 \family default
16726  command, it creates a file of textclass 
16727 \begin_inset Quotes eld
16728 \end_inset
16729
16730 foo
16731 \begin_inset Quotes erd
16732 \end_inset
16733
16734  and reads the LyX layout file for that class.
16735   Use 
16736 \series bold
16737 -c
16738 \series default
16739  to declare a different textclass (and read a different layout file).
16740 \end_layout
16741
16742 \begin_layout Description
16743
16744 \series bold
16745 -d
16746 \series default
16747  Debug.
16748  By default, reLyX gives sparse output and deletes the temporary files which
16749  were created during translation.
16750  Using the 
16751 \series bold
16752 -d
16753 \series default
16754  flag will create much more output (both to stdout and stderr) and leave
16755  the temporary files around.
16756 \end_layout
16757
16758 \begin_layout Description
16759
16760 \series bold
16761 -f
16762 \series default
16763  Force.
16764  reLyX will not run if the 
16765 \family typewriter
16766 .lyx
16767 \family default
16768  file it would generate already exists Use the 
16769 \series bold
16770 -f
16771 \series default
16772  option (carefully) to clobber any existing files.
16773 \end_layout
16774
16775 \begin_layout Description
16776
16777 \series bold
16778 -h
16779 \series default
16780  Help.
16781  Print out usage information and quit
16782 \end_layout
16783
16784 \begin_layout Description
16785
16786 \series bold
16787 -o
16788 \series default
16789  Output directory.
16790  With this option, all temporary files and LyX output files (for the given
16791  input file, for any included files, or for any file fragments given with
16792  the 
16793 \series bold
16794 -p
16795 \series default
16796  option) will be put into 
16797 \shape italic
16798 outputdir
16799 \shape default
16800 .
16801  Otherwise, for each file 
16802 \emph on
16803 dir/foo.tex
16804 \emph default
16805 , the temporary files and the LyX output file will be created in 
16806 \emph on
16807 dir
16808 \emph default
16809 .
16810  This can be useful if a file includes files from other directories which
16811  you want to consolidate in one directory, or if you don't have write permission
16812  on the directory the LaTeX files are in.
16813 \end_layout
16814
16815 \begin_layout Description
16816
16817 \series bold
16818 -p
16819 \series default
16820  Partial file.
16821  The input files are LaTeX fragments, with no preamble matter or 
16822 \family typewriter
16823
16824 \backslash
16825 begin{document}
16826 \family default
16827  commands.
16828  This option requires the 
16829 \series bold
16830 -c
16831 \series default
16832  option, since there are no 
16833 \family typewriter
16834
16835 \backslash
16836 documentclass
16837 \family default
16838  commands in the files reLyX is translating.
16839  When using this option, you can translate more than one file, as long as
16840  all files are the same class.
16841  The LyX file created by reLyX can be included in an existing LyX file using
16842  
16843 \family sans
16844 \bar under
16845 I
16846 \bar default
16847 nsert\SpecialChar \menuseparator
16848 Fil
16849 \bar under
16850 e
16851 \bar default
16852 \SpecialChar \menuseparator
16853 Ly
16854 \bar under
16855 X
16856 \bar default
16857 \InsetSpace ~
16858 Document
16859 \family default
16860 .
16861 \end_layout
16862
16863 \begin_layout Description
16864
16865 \series bold
16866 -r
16867 \series default
16868  Regular environments (see the Section\InsetSpace ~
16869
16870 \begin_inset LatexCommand \ref{sub:relyx-syntax}
16871
16872 \end_inset
16873
16874 ).
16875   If you give more than one environment, separate them with commas (not
16876  spaces).
16877  You'll probably need to quote the environment list, especially if it has
16878  asterisk environments (foo*) in it.
16879  If you use this command often, considering creating a personal syntax file.
16880 \end_layout
16881
16882 \begin_layout Description
16883
16884 \series bold
16885 -s
16886 \series default
16887  Syntax files.
16888  Input (one or more quoted, comma-separated) syntax files to read in addition
16889  to the default.
16890  (see the section Section\InsetSpace ~
16891
16892 \begin_inset LatexCommand \ref{sub:relyx-syntax}
16893
16894 \end_inset
16895
16896  for details).
16897 \end_layout
16898
16899 \begin_layout Subsection
16900 Description
16901 \end_layout
16902
16903 \begin_layout Subsubsection
16904 Introduction
16905 \end_layout
16906
16907 \begin_layout Standard
16908 reLyX will create a LyX file 
16909 \emph on
16910 dir/foo.lyx
16911 \emph default
16912  from the LaTeX file 
16913 \emph on
16914 dir/foo.tex
16915 \emph default
16916  (unless the 
16917 \series bold
16918 -o
16919 \series default
16920  option is used).
16921 \end_layout
16922
16923 \begin_layout Standard
16924 Suffixes 
16925 \family typewriter
16926 .tex
16927 \family default
16928
16929 \family typewriter
16930 .ltx
16931 \family default
16932  and 
16933 \family typewriter
16934 .latex
16935 \family default
16936  are supported.
16937  If 
16938 \emph on
16939 inputfile
16940 \emph default
16941  does not exist and does not have one of these suffixes, reLyX will try
16942  to translate 
16943 \emph on
16944 inputfile.tex
16945 \emph default
16946 .
16947  (This is similar to the behavior of LaTeX.)
16948 \end_layout
16949
16950 \begin_layout Standard
16951 The purpose of reLyX is to translate 
16952 \shape italic
16953 well-behaved
16954 \shape default
16955  LaTeX2e into LyX.
16956  If your LaTeX file doesn't compile---or if you do weird things, like redefining
16957  standard LaTeX commands---it may choke.
16958  LaTeX209 will often be translated correctly, but it's not guaranteed.
16959 \end_layout
16960
16961 \begin_layout Standard
16962 reLyX has some bugs and lacks a few features.
16963  However, its main goals are:
16964 \end_layout
16965
16966 \begin_layout Itemize
16967 Get through a well-behaved LaTeX2e file without crashing
16968 \end_layout
16969
16970 \begin_layout Itemize
16971 Translate a lot of that file.
16972 \end_layout
16973
16974 \begin_layout Itemize
16975 Localize the parts that can't be translated and copy them in TeX mode
16976 \end_layout
16977
16978 \begin_layout Standard
16979 It achieves these main goals pretty well on most files.
16980 \end_layout
16981
16982 \begin_layout Standard
16983 There are many improvements that can and will be made to reLyX in the future.
16984  However, we wanted to get reLyX out there early on, to make it easier for
16985  new LyX users to read in their existing LaTeX files.
16986 \end_layout
16987
16988 \begin_layout Subsubsection
16989 Usage
16990 \end_layout
16991
16992 \begin_layout Standard
16993 Here's a more lengthy description of what you should do to translate a LaTeX
16994  document into LyX.
16995 \end_layout
16996
16997 \begin_layout Itemize
16998 Run reLyX.
16999 \end_layout
17000
17001 \begin_deeper
17002 \begin_layout Standard
17003 reLyX will inform you of its progress and give any warnings to stderr, so
17004  if you don't want any output at all, try (in csh) 
17005 \begin_inset Quotes eld
17006 \end_inset
17007
17008
17009 \family typewriter
17010 reLyX foo.tex >& /dev/null
17011 \family default
17012
17013 \begin_inset Quotes erd
17014 \end_inset
17015
17016  or (in bash) 
17017 \begin_inset Quotes eld
17018 \end_inset
17019
17020
17021 \family typewriter
17022 reLyX foo.tex
17023 \family default
17024  
17025 \family typewriter
17026 2>&1 >/dev/null
17027 \family default
17028
17029 \begin_inset Quotes erd
17030 \end_inset
17031
17032 .
17033  You should NOT redirect standard output to 
17034 \family typewriter
17035 foo.lyx
17036 \family default
17037 .
17038  
17039 \end_layout
17040
17041 \end_deeper
17042 \begin_layout Itemize
17043 Run LyX on the resulting .lyx file.
17044 \end_layout
17045
17046 \begin_deeper
17047 \begin_layout Standard
17048 In theory, most of the file will have been translated, and anything that's
17049  untranslatable will be highlighted in red (TeX mode).
17050  In theory, LyX will be able to read in the file, and to create printed
17051  documents from it, because all that untranslated red stuff will be passed
17052  directly back to LaTeX, which LyX  uses as a backend.
17053  Unfortunately, reality doesn't always reflect theory.
17054  If reLyX crashes, or LyX cannot read the generated LyX file, see Section\InsetSpace ~
17055
17056 \begin_inset LatexCommand \ref{sub:relyx-bugs}
17057
17058 \end_inset
17059
17060  or the 
17061 \family typewriter
17062 BUGS
17063 \family default
17064  file.
17065 \end_layout
17066
17067 \end_deeper
17068 \begin_layout Itemize
17069 Change things that are in ERT boxes (TeX code) by hand in LyX.
17070 \end_layout
17071
17072 \begin_deeper
17073 \begin_layout Standard
17074 As mentioned above, you should be able to print out the LyX file even without
17075  doing this.
17076  However, changing a command in TeX mode to the corresponding LyX object
17077  will allow you to take advantage of LyX's WYSIWYM editing.
17078 \end_layout
17079
17080 \begin_layout Standard
17081 reLyX is not guaranteed to create a LyX file which generates exactly the
17082  same output as the LaTeX file, but it should come close.
17083  reLyX will generally err on the side of translating less to ensure that
17084  dvi or ps files are accurate, even though this leads to more 
17085 \begin_inset Quotes eld
17086 \end_inset
17087
17088 evil red text
17089 \begin_inset Quotes erd
17090 \end_inset
17091
17092  and less WYSIWYM.
17093 \end_layout
17094
17095 \end_deeper
17096 \begin_layout Itemize
17097 PROOFREAD THE DOCUMENT!!
17098 \end_layout
17099
17100 \begin_deeper
17101 \begin_layout Standard
17102 I'm sure you were planning on doing this anyway, but it's particularly important
17103  after translating a LaTeX document.
17104  reLyX is, at least now, better at 
17105 \begin_inset Quotes eld
17106 \end_inset
17107
17108 macro-translating
17109 \begin_inset Quotes erd
17110 \end_inset
17111
17112  (translating the whole document) than 
17113 \begin_inset Quotes eld
17114 \end_inset
17115
17116 micro-translating
17117 \begin_inset Quotes erd
17118 \end_inset
17119
17120  (translating every little detail).
17121  For example, you may see extra spaces or deleted spaces.
17122  Space handling has improved, but it's not perfect.
17123 \end_layout
17124
17125 \end_deeper
17126 \begin_layout Subsubsection
17127 What reLyX Can Handle
17128 \end_layout
17129
17130 \begin_layout Standard
17131 reLyX understands many LaTeX commands.
17132  It will translate:
17133 \end_layout
17134
17135 \begin_layout Itemize
17136 regular text, including mini-commands like ~, '', 
17137 \family typewriter
17138
17139 \backslash
17140 @
17141 \family default
17142
17143 \family typewriter
17144
17145 \backslash
17146 TeX
17147 \family default
17148 , as well as accented characters like 
17149 \family typewriter
17150
17151 \backslash
17152 '{a}
17153 \family default
17154 , and the special cases ?` and !`
17155 \end_layout
17156
17157 \begin_layout Itemize
17158 title commands like 
17159 \family typewriter
17160
17161 \backslash
17162 author
17163 \family default
17164
17165 \family typewriter
17166
17167 \backslash
17168 date
17169 \family default
17170
17171 \family typewriter
17172
17173 \backslash
17174 title
17175 \family default
17176
17177 \family typewriter
17178
17179 \backslash
17180 thanks
17181 \family default
17182  and the abstract environment
17183 \end_layout
17184
17185 \begin_layout Itemize
17186 heading commands like 
17187 \family typewriter
17188
17189 \backslash
17190 section
17191 \family default
17192  including starred commands (
17193 \family typewriter
17194
17195 \backslash
17196 section*
17197 \family default
17198 )
17199 \end_layout
17200
17201 \begin_layout Itemize
17202 Environments: 
17203 \family typewriter
17204 quote
17205 \family default
17206
17207 \family typewriter
17208 quotation
17209 \family default
17210 , and 
17211 \family typewriter
17212 verse
17213 \family default
17214
17215 \family typewriter
17216 center
17217 \family default
17218
17219 \family typewriter
17220 flushright
17221 \family default
17222 , and 
17223 \family typewriter
17224 flushleft
17225 \end_layout
17226
17227 \begin_layout Itemize
17228
17229 \family typewriter
17230 itemize
17231 \family default
17232
17233 \family typewriter
17234 enumerate
17235 \family default
17236 , and 
17237 \family typewriter
17238 description
17239 \family default
17240  environments, and their 
17241 \family typewriter
17242
17243 \backslash
17244 item
17245 \family default
17246  commands.
17247  Also, well-behaved nested lists
17248 \end_layout
17249
17250 \begin_layout Itemize
17251 cross-referencing commands: 
17252 \family typewriter
17253
17254 \backslash
17255 ref
17256 \family default
17257
17258 \family typewriter
17259
17260 \backslash
17261 pageref
17262 \family default
17263
17264 \family typewriter
17265
17266 \backslash
17267 label
17268 \family default
17269 , and 
17270 \family typewriter
17271
17272 \backslash
17273 cite
17274 \end_layout
17275
17276 \begin_layout Itemize
17277
17278 \family typewriter
17279
17280 \backslash
17281 footnote
17282 \family default
17283  and 
17284 \family typewriter
17285
17286 \backslash
17287 margin
17288 \end_layout
17289
17290 \begin_layout Itemize
17291 font-changing commands including 
17292 \family typewriter
17293
17294 \backslash
17295 em
17296 \family default
17297
17298 \family typewriter
17299
17300 \backslash
17301 emph
17302 \family default
17303
17304 \family typewriter
17305
17306 \backslash
17307 textit
17308 \family default
17309 , and corresponding commands to change family, size, series, and shape
17310 \end_layout
17311
17312 \begin_layout Itemize
17313
17314 \family typewriter
17315
17316 \backslash
17317 input{foo}
17318 \family default
17319  (or 
17320 \family typewriter
17321
17322 \backslash
17323 input{foo.blah}
17324 \family default
17325 ) and 
17326 \family typewriter
17327
17328 \backslash
17329 include{foo}
17330 \family default
17331 .
17332  Plain TeX 
17333 \family typewriter
17334
17335 \backslash
17336 input
17337 \family default
17338  command 
17339 \begin_inset Quotes erd
17340 \end_inset
17341
17342
17343 \family typewriter
17344
17345 \backslash
17346 input foo.tex
17347 \family default
17348
17349 \begin_inset Quotes erd
17350 \end_inset
17351
17352  is also supported.
17353 \end_layout
17354
17355 \begin_layout Itemize
17356
17357 \family typewriter
17358 tabular
17359 \family default
17360  environment, and commands that go inside it like 
17361 \family typewriter
17362
17363 \backslash
17364 hline
17365 \family default
17366
17367 \family typewriter
17368
17369 \backslash
17370 cline
17371 \family default
17372 , and 
17373 \family typewriter
17374
17375 \backslash
17376 multicolumn
17377 \family default
17378  (but see below)
17379 \end_layout
17380
17381 \begin_layout Itemize
17382 float environments 
17383 \family typewriter
17384 table
17385 \family default
17386  and 
17387 \family typewriter
17388 table*
17389 \family default
17390 , as well as 
17391 \family typewriter
17392
17393 \backslash
17394 caption
17395 \family default
17396  commands within them
17397 \end_layout
17398
17399 \begin_layout Itemize
17400
17401 \family typewriter
17402 thebibliography
17403 \family default
17404  environment and 
17405 \family typewriter
17406
17407 \backslash
17408 bibitem
17409 \family default
17410  command, as well as BibTeX's 
17411 \family typewriter
17412
17413 \backslash
17414 bibliography
17415 \family default
17416  and 
17417 \family typewriter
17418
17419 \backslash
17420 bibliographystyle
17421 \family default
17422  commands
17423 \end_layout
17424
17425 \begin_layout Itemize
17426 miscellaneous commands: 
17427 \family typewriter
17428
17429 \backslash
17430 hfill
17431 \family default
17432
17433 \family typewriter
17434
17435 \backslash
17436
17437 \backslash
17438
17439 \family default
17440
17441 \family typewriter
17442
17443 \backslash
17444 noindent
17445 \family default
17446
17447 \family typewriter
17448
17449 \backslash
17450 ldots
17451 \family default
17452 ...
17453 \end_layout
17454
17455 \begin_layout Itemize
17456 documentclass-specific environments (and some commands) which can be  translated
17457  to LyX layouts
17458 \end_layout
17459
17460 \begin_layout Itemize
17461 arguments to certain untranslatable commands (e.g.
17462  
17463 \family typewriter
17464
17465 \backslash
17466 mbox
17467 \family default
17468 )
17469 \end_layout
17470
17471 \begin_layout Standard
17472 Some of this support may not be 100% yet.
17473  See below for details
17474 \end_layout
17475
17476 \begin_layout Standard
17477 reLyX copies math (almost) verbatim from your LaTeX file.
17478  Luckily, LyX reads  in LaTeX math, so (almost) any math which is supported
17479  by LyX should work just fine.
17480  A few math commands which are not supported by LyX will be replaced with
17481  their equivalents, e.g., 
17482 \family typewriter
17483
17484 \backslash
17485 to
17486 \family default
17487  is converted to 
17488 \family typewriter
17489
17490 \backslash
17491 rightarrow
17492 \family default
17493 .
17494  See the section on 
17495 \shape italic
17496 Syntax Files
17497 \shape default
17498  for more details.
17499 \end_layout
17500
17501 \begin_layout Standard
17502 reLyX will also copy any preamble commands (i.e., anything before 
17503 \family typewriter
17504
17505 \backslash
17506 begin{document}
17507 \family default
17508 ) verbatim, so fancy stuff you've got in your preamble should be conserved
17509  in dvi and printed documents, although it will not of course show up in
17510  the LyX window.
17511  Check the preamble to make sure.
17512 \end_layout
17513
17514 \begin_layout Subsubsection
17515 What reLyX Can't Handle --- But it's OK
17516 \end_layout
17517
17518 \begin_layout Itemize
17519 figures and 
17520 \family typewriter
17521 tabular*
17522 \family default
17523  tables
17524 \end_layout
17525
17526 \begin_layout Itemize
17527 minipages
17528 \end_layout
17529
17530 \begin_layout Itemize
17531 spacing commands (
17532 \family typewriter
17533
17534 \backslash
17535 vspace
17536 \family default
17537
17538 \family typewriter
17539
17540 \backslash
17541 pagebreak
17542 \family default
17543
17544 \family typewriter
17545
17546 \backslash
17547 par
17548 \family default
17549 )
17550 \end_layout
17551
17552 \begin_layout Itemize
17553
17554 \family typewriter
17555
17556 \backslash
17557 centering
17558 \family default
17559
17560 \family typewriter
17561
17562 \backslash
17563 raggedleft
17564 \family default
17565
17566 \family typewriter
17567
17568 \backslash
17569 raggedright
17570 \end_layout
17571
17572 \begin_layout Itemize
17573
17574 \family typewriter
17575
17576 \backslash
17577 verb
17578 \family default
17579  and 
17580 \family typewriter
17581 verbatim
17582 \family default
17583  environment.
17584  reLyX is careful to copy 
17585 \shape italic
17586 exactly
17587 \shape default
17588  in this case, including comments and whitespace.
17589 \end_layout
17590
17591 \begin_layout Itemize
17592 some unknown (e.g., user-defined) environments and commands
17593 \end_layout
17594
17595 \begin_layout Standard
17596 reLyX copies unknown commands, along with their arguments, verbatim into
17597  the LyX file.
17598  Also, if it sees a 
17599 \family typewriter
17600
17601 \backslash
17602 begin{foo}
17603 \family default
17604  where it doesn't recognize the 
17605 \begin_inset Quotes eld
17606 \end_inset
17607
17608 foo
17609 \begin_inset Quotes erd
17610 \end_inset
17611
17612  environment, it will copy verbatim until it sees 
17613 \family typewriter
17614
17615 \backslash
17616 end{foo}
17617 \family default
17618  (unless you use the 
17619 \series bold
17620 -r
17621 \series default
17622  option).
17623  Hopefully, then, most of these unknown commands won't cause reLyX to break;
17624  they'll merely require you to do some editing once you've loaded the file
17625  up in LyX.
17626   That should be less painful than editing either the 
17627 \family typewriter
17628 .tex
17629 \family default
17630  or the 
17631 \family typewriter
17632 .lyx
17633 \family default
17634  file using a text editor.
17635 \end_layout
17636
17637 \begin_layout Subsubsection
17638 What reLyX Handles Badly --- a.\InsetSpace ~
17639 k.\InsetSpace ~
17640 a.
17641  BUGS
17642 \begin_inset LatexCommand \label{sub:relyx-bugs}
17643
17644 \end_inset
17645
17646
17647 \end_layout
17648
17649 \begin_layout Standard
17650 Since reLyX is relatively new, it's got a number of problems.
17651   As it matures, these bugs will be squished.
17652  A number of bugs and missing features can be found listed on the LyX bug
17653  tracker, 
17654 \begin_inset LatexCommand \url[LyX Bugzilla]{http://bugzilla.lyx.org/}
17655
17656 \end_inset
17657
17658 .
17659 \end_layout
17660
17661 \begin_layout Standard
17662 If reLyX is choking on something, or LyX can't read it after reLyX translates
17663  it, the best thing to do is to put 
17664 \family typewriter
17665
17666 \backslash
17667 begin{reLyXskip}
17668 \family default
17669  before the offending text, and 
17670 \family typewriter
17671
17672 \backslash
17673 end{reLyXskip}
17674 \family default
17675  after it.
17676  I call this a 
17677 \begin_inset Quotes eld
17678 \end_inset
17679
17680 skip
17681 \begin_inset Quotes erd
17682 \end_inset
17683
17684  block.
17685  reLyX will copy this block exactly, in TeX mode.
17686  Then edit the resulting LyX file, and translate the unknown stuff by hand.
17687  The 
17688 \family typewriter
17689 reLyXskip
17690 \family default
17691  environment is magical; the 
17692 \family typewriter
17693
17694 \backslash
17695 begin
17696 \family default
17697  and 
17698 \family typewriter
17699
17700 \backslash
17701 end
17702 \family default
17703  commands will not be put into the LyX file.
17704 \end_layout
17705
17706 \begin_layout Itemize
17707 \begin_inset Quotes eld
17708 \end_inset
17709
17710 Exact
17711 \begin_inset Quotes erd
17712 \end_inset
17713
17714  copying of unknown environments and commands isn't quite exact.
17715  Specifically, newlines and comments may be lost.
17716  This will yield ugly LyX, but in almost all cases the output will be the
17717  same.
17718  However, certain parts of the file will be copied perfectly, including
17719  whitespace and comments.
17720  This includes: the LaTeX preamble, 
17721 \family typewriter
17722 verbatim
17723 \family default
17724  environments and 
17725 \family typewriter
17726
17727 \backslash
17728 verb
17729 \family default
17730  commands, and skip blocks.
17731 \end_layout
17732
17733 \begin_layout Itemize
17734 reLyX translates only a few options to the 
17735 \family typewriter
17736
17737 \backslash
17738 documentclass
17739 \family default
17740  command.
17741  (Specifically 1[012]pt, [letter|legal|executive|a4|a5|b5]paper, [one|two]side,
17742  landscape, and [one|two]column.) Other options are placed in the extra class
17743  options field in the 
17744 \family sans
17745 \bar under
17746 D
17747 \bar default
17748 ocument\SpecialChar \menuseparator
17749
17750 \bar under
17751 S
17752 \bar default
17753 ettings
17754 \family default
17755  dialog.
17756 \end_layout
17757
17758 \begin_deeper
17759 \begin_layout Standard
17760 More importantly, reLyX doesn't translate 
17761 \family typewriter
17762
17763 \backslash
17764 usepackage
17765 \family default
17766  commands, margin  commands, 
17767 \family typewriter
17768
17769 \backslash
17770 newcommand
17771 \family default
17772 s, or, in fact, anything else from the preamble.
17773  It simply copies them into the LaTeX preamble.
17774  If you have margin commands in your preamble, then the LyX file will generate
17775  the right margins.
17776  However, these margins will override any margins you set in the LyX 
17777 \family sans
17778 \bar under
17779 D
17780 \bar default
17781 ocument
17782 \bar under
17783 \SpecialChar \menuseparator
17784 S
17785 \bar default
17786 ettings
17787 \family default
17788  dialog.
17789  So you should remove the options from the preamble to be safe.
17790  The same goes for setting your language with babel, 
17791 \family typewriter
17792
17793 \backslash
17794 inputencoding
17795 \family default
17796
17797 \family typewriter
17798
17799 \backslash
17800 pagestyle
17801 \family default
17802 , etc.
17803 \end_layout
17804
17805 \end_deeper
17806 \begin_layout Itemize
17807 The foil class has a couple bugs.
17808  reLyX may do weird things with optional arguments to 
17809 \family typewriter
17810
17811 \backslash
17812 foilhead
17813 \family default
17814  commands.
17815  Also, it may handle 
17816 \family typewriter
17817
17818 \backslash
17819 begin{dinglist}
17820 \family default
17821  incorrectly (although the stuff in the environment should translate normally).
17822 \end_layout
17823
17824 \begin_layout Standard
17825 reLyX is hopefully rather robust.
17826  As mentioned above, it may not translate your file perfectly, but it shouldn't
17827  crash.
17828  If it does crash---and the problem is not one of those mentioned above
17829  or in the 
17830 \emph on
17831 BUGS
17832 \emph default
17833  file---see Section\InsetSpace ~
17834
17835 \begin_inset LatexCommand \ref{sub:relyx-bug-reports}
17836
17837 \end_inset
17838
17839 .
17840 \end_layout
17841
17842 \begin_layout Subsubsection
17843 What LyX Can't Handle
17844 \end_layout
17845
17846 \begin_layout Standard
17847 LyX itself is missing a couple features, such that even if reLyX translates
17848  things perfectly, LyX may still have trouble reading it.
17849  If you really need these features, you can export your final document as
17850  LaTeX, and put them back in.
17851  See 
17852 \emph on
17853 BUGS
17854 \emph default
17855  for more details on these bugs.
17856 \end_layout
17857
17858 \begin_layout Itemize
17859 For a number of commands, LyX does not support the optional argument.
17860  Examples include 
17861 \family typewriter
17862
17863 \backslash
17864 sqrt
17865 \family default
17866
17867 \family typewriter
17868
17869 \backslash
17870 chapter
17871 \family default
17872  (and other sectioning commands), and 
17873 \family typewriter
17874
17875 \backslash
17876
17877 \backslash
17878
17879 \family default
17880 .
17881  reLyX will automatically discard the optional arguments with a warning
17882  to stdout.
17883  LyX also ignores the width argument for the 
17884 \family typewriter
17885 thebibliography
17886 \family default
17887  environment.
17888 \end_layout
17889
17890 \begin_layout Itemize
17891 Centering (or right or left justifying) works on full paragraphs.
17892 \end_layout
17893
17894 \begin_layout Itemize
17895 LyX support for tables isn't perfect.
17896  For complicated tables, use a 
17897 \begin_inset Quotes eld
17898 \end_inset
17899
17900 skip
17901 \begin_inset Quotes erd
17902 \end_inset
17903
17904  block, so that they will be copied in TeX mode.
17905 \end_layout
17906
17907 \begin_layout Itemize
17908 The LyX math editor can't handle the AMS-LaTeX math environments align,
17909  split, etc.
17910  So those environments will be copied in TeX mode.
17911  You can change 
17912 \family typewriter
17913 equation*
17914 \family default
17915  environments to the exactly equivalent displaymath, and then they will
17916  be translated correctly.
17917 \end_layout
17918
17919 \begin_layout Subsection
17920 Examples
17921 \end_layout
17922
17923 \begin_layout Standard
17924
17925 \family typewriter
17926 reLyX -df -o 
17927 \begin_inset Quotes eld
17928 \end_inset
17929
17930 my/dir
17931 \begin_inset Quotes erd
17932 \end_inset
17933
17934  -r 
17935 \begin_inset Quotes eld
17936 \end_inset
17937
17938 myenv
17939 \begin_inset Quotes erd
17940 \end_inset
17941
17942  foo.tex > foo.debug
17943 \end_layout
17944
17945 \begin_layout Standard
17946 The above will create a file my/dir/foo.lyx from foo.tex, overwriting if necessary.
17947   When it finds a 
17948 \family typewriter
17949
17950 \backslash
17951 begin{myenv} ...
17952  
17953 \backslash
17954 end{myenv}
17955 \family default
17956  block, it will translate the stuff within the block, but copy the 
17957 \family typewriter
17958
17959 \backslash
17960 begin
17961 \family default
17962  and 
17963 \family typewriter
17964
17965 \backslash
17966 end
17967 \family default
17968  commands in TeX mode.
17969   Finally, I'm going to keep the temporary files around (they will also
17970  be in my/dir/) and output lots of debugging information into the file foo.debug.
17971 \end_layout
17972
17973 \begin_layout Subsection
17974 Notes
17975 \end_layout
17976
17977 \begin_layout Subsubsection
17978 Bug Reports
17979 \begin_inset LatexCommand \label{sub:relyx-bug-reports}
17980
17981 \end_inset
17982
17983
17984 \end_layout
17985
17986 \begin_layout Standard
17987 If reLyX is crashing or otherwise acting strangely---in ways other than
17988  those described in Section\InsetSpace ~
17989
17990 \begin_inset LatexCommand \ref{sub:relyx-bugs}
17991
17992 \end_inset
17993
17994  or the bug tracker---then please run reLyX
17995 \series bold
17996  -d
17997 \series default
17998 .
17999   That will allow you to figure out where in the reLyXing process it crashed.
18000  That, in turn, will allow you to write a better bug report, which will
18001  allow the developers to fix it more quickly and easily.
18002 \end_layout
18003
18004 \begin_layout Standard
18005 Bug reports should be sent to the LyX developers' mailing list.
18006  Its address is currently 
18007 \family typewriter
18008 lyx-devel@lists.lyx.org
18009 \family default
18010 .
18011  If you are running reLyX on a huge file, please do not send all of the
18012  output in your bug report.
18013  Just include the last ten or twenty lines of output, along with the piece
18014  of the LaTeX file it crashed on.
18015   Or, even better, attach a small but complete file which causes the same
18016  problem as your original file.
18017 \end_layout
18018
18019 \begin_layout Subsubsection
18020 Implementation Details:
18021 \end_layout
18022
18023 \begin_layout Standard
18024 reLyX makes several 
18025 \begin_inset Quotes eld
18026 \end_inset
18027
18028 passes
18029 \begin_inset Quotes erd
18030 \end_inset
18031
18032  in order to translate a TeX file.
18033  On each pass, it creates one or two files.
18034 \end_layout
18035
18036 \begin_layout Description
18037 Pass\InsetSpace ~
18038 0 \InsetSpace ~
18039
18040 \newline
18041 Before doing anything, read the syntax file (or files).
18042 \end_layout
18043
18044 \begin_layout Description
18045 Pass\InsetSpace ~
18046 1a \InsetSpace ~
18047
18048 \newline
18049 Split preamble (anything before a 
18050 \family typewriter
18051
18052 \backslash
18053 begin{document}
18054 \family default
18055  command) off the rest of the file.
18056  It saves the two pieces in separate files.
18057  This is necessary because there may be very strange stuff in a preamble.
18058  It also ignores anything after the 
18059 \family typewriter
18060
18061 \backslash
18062 end{document}
18063 \family default
18064 , on the assumption that it isn't LaTeX.
18065 \end_layout
18066
18067 \begin_layout Description
18068 Pass\InsetSpace ~
18069 1b \InsetSpace ~
18070
18071 \newline
18072 Translate the preamble.
18073  Currently, that just means translating the 
18074 \family typewriter
18075
18076 \backslash
18077 documentclass
18078 \family default
18079  command and copying the rest exactly into the LyX preamble.
18080 \end_layout
18081
18082 \begin_deeper
18083 \begin_layout Standard
18084 Once you know what class the document is, read the LyX layout file for that
18085  class.
18086 \end_layout
18087
18088 \end_deeper
18089 \begin_layout Description
18090 Pass\InsetSpace ~
18091 2 \InsetSpace ~
18092
18093 \newline
18094
18095 \begin_inset Quotes eld
18096 \end_inset
18097
18098 Clean
18099 \begin_inset Quotes erd
18100 \end_inset
18101
18102  the TeX file, generating slightly stricter LaTeX.
18103  This includes:
18104 \end_layout
18105
18106 \begin_deeper
18107 \begin_layout Itemize
18108 Change, e.g., 
18109 \family typewriter
18110 x^2
18111 \family default
18112  to the equivalent but clearer 
18113 \family typewriter
18114 x^{2}
18115 \end_layout
18116
18117 \begin_layout Itemize
18118 Removing optional arguments that LyX can't handle (e.g., from 
18119 \family typewriter
18120
18121 \backslash
18122 sqrt
18123 \family default
18124 )
18125 \end_layout
18126
18127 \begin_layout Itemize
18128 Changing 
18129 \family typewriter
18130 {
18131 \backslash
18132 em foo}
18133 \family default
18134  to 
18135 \family typewriter
18136
18137 \backslash
18138 emph{foo}
18139 \family default
18140 , etc.
18141  This is necessary because LyX always writes out the non-local forms anyway.
18142  This should very rarely make a difference.
18143 \end_layout
18144
18145 \end_deeper
18146 \begin_layout Description
18147 Pass\InsetSpace ~
18148 3 \InsetSpace ~
18149
18150 \newline
18151 Translate LaTeX text, commands, and environments to LyX.
18152 \end_layout
18153
18154 \begin_layout Description
18155 Pass\InsetSpace ~
18156 4 \InsetSpace ~
18157
18158 \newline
18159 Put the two pieces back together, and do some final tweaking, to generate
18160  the LyX file
18161 \end_layout
18162
18163 \begin_layout Standard
18164 If there are any 
18165 \family typewriter
18166
18167 \backslash
18168 input
18169 \family default
18170  or 
18171 \family typewriter
18172
18173 \backslash
18174 include
18175 \family default
18176  commands, reLyX will loop back to the beginning and translate those.
18177  It assumes that the included files are the same class as the main file,
18178  and that they have no preamble matter.
18179  (If you have an 
18180 \family typewriter
18181
18182 \backslash
18183 input
18184 \family default
18185  command in the preamble of a file, the command will be copied exactly into
18186  the LaTeX preamble portion of the LyX file, so the included file won't
18187  be translated.) So when translating included files, it skips passes 0 and
18188  1.
18189 \end_layout
18190
18191 \begin_layout Standard
18192 If reLyX doesn't find a file you wanted to include, it will give a warning,
18193  but will continue to translate any files it does find.
18194 \end_layout
18195
18196 \begin_layout Subsubsection
18197 Layout Files
18198 \end_layout
18199
18200 \begin_layout Standard
18201 reLyX reads a LyX layout file to know how to handle LaTeX environments and
18202  commands which get translated to LyX layouts.
18203  This file will include all 
18204 \begin_inset Quotes eld
18205 \end_inset
18206
18207 normal
18208 \begin_inset Quotes erd
18209 \end_inset
18210
18211  non-math environments (i.e., including quote and itemize, but not tabular,
18212  minipage, and some other fancy environments), and commands like 
18213 \family typewriter
18214
18215 \backslash
18216 section
18217 \family default
18218  and 
18219 \family typewriter
18220
18221 \backslash
18222 title
18223 \family default
18224 .
18225  If you want to reLyX a class that doesn't have an existing layout file,
18226  then you'll have to create a layout file.
18227  But you have to do this anyway, in order to LyX the file, since LyX depends
18228  on layout files to know how to display and process its files.
18229  Check the LyX documentation for help with this task (which can be hard
18230  or easy, depending on the class you want to create a layout file for.) If
18231  your class is quite similar to a class that has a layout file, then consider
18232  using the 
18233 \series bold
18234 -c
18235 \series default
18236  option.
18237 \end_layout
18238
18239 \begin_layout Subsubsection
18240 Syntax Files
18241 \begin_inset LatexCommand \label{sub:relyx-syntax}
18242
18243 \end_inset
18244
18245
18246 \end_layout
18247
18248 \begin_layout Standard
18249 reLyX always reads at least one syntax file, called the default syntax file.
18250  reLyX will read your personal syntax file if it exists; otherwise it will
18251  read the system-wide file.
18252  reLyX will read additional syntax files if you specify them with the 
18253 \series bold
18254 -s
18255 \series default
18256  option.
18257  (These extra files should have the same format as the default file, but
18258  will tend to be shorter, since they only have to specify extra commands
18259  not found in the default file.) A syntax file tells reLyX a few things.
18260 \end_layout
18261
18262 \begin_layout Standard
18263 First, it describes the syntax of each command, that is, how many required
18264  arguments and how many optional arguments the command takes.
18265  Knowing this makes it easier for reLyX to copy (in TeX mode) commands that
18266  it doesn't know how to translate.
18267  The syntax file simply has a command, followed by braces or brackets describing
18268  its arguments in the correct order.
18269  For example, a syntax file entry 
18270 \family typewriter
18271
18272 \backslash
18273 bibitem[]{}
18274 \family default
18275  means that the 
18276 \family typewriter
18277
18278 \backslash
18279 bibitem
18280 \family default
18281  command takes an optional argument followed by a required one, while the
18282  entry 
18283 \family typewriter
18284
18285 \backslash
18286 bf
18287 \family default
18288  means that the 
18289 \family typewriter
18290
18291 \backslash
18292 bf
18293 \family default
18294  command takes no arguments at all.
18295   When reLyX encounters a token that it doesn't know how to translate into
18296  LyX, it will copy the token---along with the correct number of arguments---exac
18297 tly.
18298   If the token is not in the syntax file, then reLyX just copies as many
18299  arguments as it finds.
18300   This means that it may copy too much.
18301  But since the user can specify additional syntax files, that shouldn't
18302  happen often.
18303 \end_layout
18304
18305 \begin_layout Standard
18306 Some commands that cannot be translated to LyX, like 
18307 \family typewriter
18308
18309 \backslash
18310 mbox
18311 \family default
18312 , have as one of their arguments regular LaTeX text.
18313  If the string 
18314 \begin_inset Quotes eld
18315 \end_inset
18316
18317 translate
18318 \begin_inset Quotes erd
18319 \end_inset
18320
18321  is put into an argument of an (untranslatable) command in the syntax file,
18322  then reLyX will translate that argument instead of copying it verbatim.
18323  So, for example, the default syntax file has 
18324 \family typewriter
18325
18326 \backslash
18327 raisebox{}[][]{translate}
18328 \family default
18329 .
18330  This means that the 
18331 \family typewriter
18332
18333 \backslash
18334 raisebox
18335 \family default
18336  command and the first argument (and optional arguments if they exist) are
18337  copied in TeX mode, but the last argument (which may contain math, complicated
18338  LaTeX, other untranslatable commands, etc.) will be translated into LyX.
18339  You can't use 
18340 \begin_inset Quotes eld
18341 \end_inset
18342
18343 translate
18344 \begin_inset Quotes erd
18345 \end_inset
18346
18347  on optional arguments.
18348 \end_layout
18349
18350 \begin_layout Standard
18351 User-defined syntax files are allowed to define new commands and their syntax,
18352  or override the number of arguments for a command given in the default
18353  syntax file.
18354  (E.g., if you're using a style that gives an extra argument to some command...)
18355  However, this will only be useful for commands copied in TeX mode.
18356  Commands which are actually translated by reLyX (like 
18357 \family typewriter
18358
18359 \backslash
18360 item
18361 \family default
18362 ) have their argument syntax hard-coded.
18363  The hard-coded commands are identified in the default syntax file.
18364 \end_layout
18365
18366 \begin_layout Standard
18367 Second, the syntax file describes any 
18368 \begin_inset Quotes eld
18369 \end_inset
18370
18371 regular environments
18372 \begin_inset Quotes erd
18373 \end_inset
18374
18375 .
18376   Usually, an entire unknown environment will be copied in TeX mode.
18377  If you define a regular environment 
18378 \begin_inset Quotes eld
18379 \end_inset
18380
18381 foo
18382 \begin_inset Quotes erd
18383 \end_inset
18384
18385 , though, then only the 
18386 \family typewriter
18387
18388 \backslash
18389 begin{foo}
18390 \family default
18391  and 
18392 \family typewriter
18393
18394 \backslash
18395 end{foo}
18396 \family default
18397  commands will be copied in TeX mode; the text within the environment will
18398  be treated (i.e., translated) by reLyX as regular LaTeX, rather than being
18399  copied into TeX mode.
18400  Don't try to declare 
18401 \family typewriter
18402 tabbing
18403 \family default
18404  and 
18405 \family typewriter
18406 picture
18407 \family default
18408  as regular environments, as the text within those environments will confuse
18409  reLyX; use this capability for new environments you create that have plain
18410  text or math or simple commands in them.
18411  You also can't declare unknown math environments (like 
18412 \family typewriter
18413 equation*
18414 \family default
18415 ) as regular environments, either, since the LyX math editor won't understand
18416  them.
18417  The names of regular environments appear, whitespace-separated, between
18418  
18419 \family typewriter
18420
18421 \backslash
18422 begin{reLyXre}
18423 \family default
18424  and 
18425 \family typewriter
18426
18427 \backslash
18428 end{reLyXre}
18429 \family default
18430  statements in the syntax file.
18431  (If you have a regular environment which you won't use very often, you
18432  can use the 
18433 \series bold
18434 -r
18435 \series default
18436  option rather than writing a syntax file.)
18437 \end_layout
18438
18439 \begin_layout Standard
18440 Third, the syntax file describes a math translation table.
18441  The LyX math editor doesn't support a few commands.
18442  For example, 
18443 \family typewriter
18444 _
18445 \family default
18446  is supported, but the equivalent 
18447 \family typewriter
18448
18449 \backslash
18450 sb
18451 \family default
18452  is not.
18453  Put any commands you'd like translate between 
18454 \family typewriter
18455
18456 \backslash
18457 begin{reLyXmt}
18458 \family default
18459  and 
18460 \family typewriter
18461
18462 \backslash
18463 end{reLyXmt}
18464 \family default
18465  statements.
18466  The statement 
18467 \begin_inset Quotes eld
18468 \end_inset
18469
18470
18471 \family typewriter
18472
18473 \backslash
18474 | {
18475 \backslash
18476 Vert}
18477 \family default
18478
18479 \begin_inset Quotes erd
18480 \end_inset
18481
18482  means that any 
18483 \family typewriter
18484
18485 \backslash
18486 |
18487 \family default
18488  in math mode will be converted to 
18489 \begin_inset Quotes eld
18490 \end_inset
18491
18492
18493 \family typewriter
18494
18495 \backslash
18496 Vert
18497 \family default
18498  
18499 \begin_inset Quotes erd
18500 \end_inset
18501
18502
18503 \family typewriter
18504  
18505 \family default
18506 (in cases where a token made up of a backslash and a non-letter is translated
18507  to something with letters at the end, a space is added by reLyX.
18508  That way, 
18509 \begin_inset Quotes eld
18510 \end_inset
18511
18512
18513 \family typewriter
18514
18515 \backslash
18516 |a
18517 \family default
18518
18519 \begin_inset Quotes erd
18520 \end_inset
18521
18522  is correctly translated to 
18523 \begin_inset Quotes eld
18524 \end_inset
18525
18526
18527 \family typewriter
18528
18529 \backslash
18530 Vert a
18531 \family default
18532
18533 \begin_inset Quotes erd
18534 \end_inset
18535
18536 ).
18537 \end_layout
18538
18539 \begin_layout Subsubsection
18540 Miscellaneous
18541 \end_layout
18542
18543 \begin_layout Standard
18544 You need Perl version 5.002 or later to run reLyX.
18545  <plug> If you don't have Perl, you should get it anyway (at 
18546 \begin_inset LatexCommand \url[Perl]{http://www.perl.com/}
18547
18548 \end_inset
18549
18550 ), because it's a really useful tool for pretty much anything.
18551  </plug>
18552 \end_layout
18553
18554 \begin_layout Subsection
18555 Diagnostics
18556 \end_layout
18557
18558 \begin_layout Standard
18559 reLyX should always explain why it crashes, if it crashes.
18560  Some diagnostics may be very technical, though, if they come from the guts
18561  of the code.
18562  reLyX gives much more information while running if you use the 
18563 \series bold
18564 -d
18565 \series default
18566  option, but you shouldn't need that unless something goes wrong.
18567 \end_layout
18568
18569 \begin_layout Standard
18570 When it's finished, reLyX will tell you if it finished successfully or died
18571  due to some error.
18572 \end_layout
18573
18574 \begin_layout Subsection
18575 Warnings
18576 \end_layout
18577
18578 \begin_layout Standard
18579 Always keep a copy of your original LaTeX files either under a different
18580  name or in a different directory.
18581  There are a couple ways in which using LyX could lead to overwriting the
18582  original LaTeX file.
18583 \end_layout
18584
18585 \begin_layout Standard
18586 If you import 
18587 \family typewriter
18588 foo.tex
18589 \family default
18590  to create 
18591 \family typewriter
18592 foo.lyx
18593 \family default
18594 , then edit 
18595 \family typewriter
18596 foo.lyx
18597 \family default
18598  and want to re-export it, note that it will overwrite the original 
18599 \family typewriter
18600 foo.tex
18601 \family default
18602 .
18603  (LyX will 
18604 \emph on
18605 not
18606 \emph default
18607  ask you if you want to overwrite it.)
18608 \end_layout
18609
18610 \begin_layout Standard
18611 If you have chosen not to use a temporary directory in the preferences,
18612  then LyX will create its temporary files in your current directory, which
18613  means your LaTeX original may be overwritten (without a warning from LyX)
18614  when you 
18615 \begin_inset Quotes eld
18616 \end_inset
18617
18618 view dvi
18619 \begin_inset Quotes erd
18620 \end_inset
18621
18622  or print the LyX document.
18623 \end_layout
18624
18625 \begin_layout Subsection
18626 Files
18627 \end_layout
18628
18629 \begin_layout Description
18630
18631 \family typewriter
18632 \series medium
18633 MY_LYXDIR/layouts/*.layout
18634 \family default
18635 \series default
18636  \InsetSpace ~
18637
18638 \newline
18639 User's personal layout files for document classes
18640 \end_layout
18641
18642 \begin_layout Description
18643
18644 \family typewriter
18645 \series medium
18646 MY_LYXDIR/reLyX/syntax.default
18647 \family default
18648 \series default
18649  \InsetSpace ~
18650
18651 \newline
18652 User's personal syntax file
18653 \end_layout
18654
18655 \begin_layout Description
18656
18657 \family typewriter
18658 \series medium
18659 LIBDIR/layouts/*.layout
18660 \family default
18661 \series default
18662  \InsetSpace ~
18663
18664 \newline
18665 System-wide layout files for document classes
18666 \end_layout
18667
18668 \begin_layout Description
18669
18670 \family typewriter
18671 \series medium
18672 LIBDIR/reLyX/syntax.default
18673 \family default
18674 \series default
18675  \InsetSpace ~
18676
18677 \newline
18678 System-wide LaTeX syntax file
18679 \end_layout
18680
18681 \begin_layout Standard
18682
18683 \family typewriter
18684 LIBDIR
18685 \family default
18686  is the system-wide LyX directory, usually something like 
18687 \family typewriter
18688 /usr/local/share/lyx/
18689 \family default
18690 .
18691  
18692 \family typewriter
18693 MY_LYXDIR
18694 \family default
18695  is your personal LyX directory, something like 
18696 \family typewriter
18697 .lyx/
18698 \family default
18699  in your home directory.
18700  You can see their actual values in the 
18701 \family sans
18702 \bar under
18703 H
18704 \bar default
18705 elp\SpecialChar \menuseparator
18706 About\InsetSpace ~
18707 Ly
18708 \bar under
18709 X
18710 \family default
18711 \bar default
18712  dialog.
18713 \end_layout
18714
18715 \begin_layout Subsection
18716 See also
18717 \end_layout
18718
18719 \begin_layout Standard
18720
18721 \shape italic
18722 lyx
18723 \shape default
18724 (1), 
18725 \shape italic
18726 latex
18727 \shape default
18728 (1)
18729 \end_layout
18730
18731 \begin_layout Subsection
18732 Authors
18733 \end_layout
18734
18735 \begin_layout Standard
18736 Copyright (c) 1998--9 
18737 \noun on
18738 Amir Karger
18739 \noun default
18740  (
18741 \family typewriter
18742 karger@voth.chem.utah.edu
18743 \family default
18744 )
18745 \end_layout
18746
18747 \begin_layout Standard
18748 Code contributors:
18749 \end_layout
18750
18751 \begin_layout Itemize
18752
18753 \noun on
18754 John Weiss
18755 \noun default
18756  wrote the original CleanTeX pass.
18757 \end_layout
18758
18759 \begin_layout Itemize
18760
18761 \noun on
18762 Etienne Grossmann
18763 \end_layout
18764
18765 \begin_layout Itemize
18766
18767 \noun on
18768 Jos\i \'{e}
18769  Ab\i \'{\i}
18770 lio Oliveira Matos
18771 \end_layout
18772
18773 \begin_layout Itemize
18774
18775 \noun on
18776 David Suarez de Lis
18777 \end_layout
18778
18779 \begin_layout Standard
18780 Other contributors:
18781 \end_layout
18782
18783 \begin_layout Itemize
18784
18785 \noun on
18786 Jean-Marc Lasgouttes
18787 \noun default
18788  worked on the wrapper script and offered lots of bug reports, advice, and
18789  feature suggestions.
18790 \end_layout
18791
18792 \begin_layout Itemize
18793
18794 \noun on
18795 Asger K.
18796  Alstrup Nielsen
18797 \noun default
18798  and 
18799 \noun on
18800 Marc Pavese
18801 \noun default
18802  provided advice.
18803 \end_layout
18804
18805 \begin_layout Itemize
18806 Various members of the LyX developers' and users' lists provided bug reports
18807  and feature suggestions.
18808 \end_layout
18809
18810 \begin_layout Standard
18811 reLyX uses a modified version the Perl TeX parser 
18812 \family typewriter
18813 Text::TeX
18814 \family default
18815  package written by 
18816 \noun on
18817 Ilya Zakharevich
18818 \noun default
18819  (
18820 \family typewriter
18821 ilya@math.ohio-state.edu
18822 \family default
18823 ), available on CPAN.
18824 \end_layout
18825
18826 \begin_layout Chapter
18827 LyX Features needing Extra Software
18828 \end_layout
18829
18830 \begin_layout Section
18831 Using LyX with SGML-Tools (aka LinuxDoc)
18832 \end_layout
18833
18834 \begin_layout Standard
18835 by 
18836 \noun on
18837 Paul Evans
18838 \end_layout
18839
18840 \begin_layout Subsection
18841 Overview
18842 \end_layout
18843
18844 \begin_layout Standard
18845 LinuxDoc is a document class available in LyX if you have the 
18846 \family typewriter
18847 sgml-tools
18848 \family default
18849  package installed.
18850  You can use it to produce documents in the so-called Standardized General
18851  Mark-up Language (SGML) in the particular format used by the Linux Documentatio
18852 n Project.
18853  That is obviously helpful if you are contributing to that project.
18854  You can use the SGML format with the 
18855 \family typewriter
18856 sgml-tools
18857 \family default
18858  package of scripts and programs (to produce other formats, including Latex,
18859  HTML, plain text, man pages and\SpecialChar \ldots{}
18860 ).
18861  You may therefore prefer to use this document class if you want to write
18862  something that can be easily translated into other formats.
18863 \end_layout
18864
18865 \begin_layout Standard
18866 You will find that LinuxDoc has fewer layout options than the other text
18867  classes in LyX.
18868  This is mainly so that the translations into other formats have a chance
18869  of making some sense.
18870  In this section we describe:
18871 \end_layout
18872
18873 \begin_layout Itemize
18874 how to setup and use a document in LinuxDoc
18875 \end_layout
18876
18877 \begin_layout Itemize
18878 how to use the tags in LinuxDoc to layout your document
18879 \end_layout
18880
18881 \begin_layout Itemize
18882 how to use the SGML packages to produce the various formats
18883 \end_layout
18884
18885 \begin_layout Itemize
18886 how to sort out some problems.
18887 \end_layout
18888
18889 \begin_layout Subsection
18890 Preparing and using a LinuxDoc document
18891 \end_layout
18892
18893 \begin_layout Subsubsection
18894 Getting started
18895 \end_layout
18896
18897 \begin_layout Standard
18898 You start by selecting the LinuxDoc class using the 
18899 \family sans
18900 \bar under
18901 D
18902 \bar default
18903 ocument\SpecialChar \menuseparator
18904
18905 \bar under
18906 S
18907 \bar default
18908 ettings
18909 \family default
18910  dialog.
18911
18912 \family sans
18913  
18914 \family default
18915 Then you will find that there are fewer paragraph environments than for
18916  most other classes.
18917  You can see them on the pull down box on the left of the tool bar.
18918  How to use them is described in section\InsetSpace ~
18919
18920 \begin_inset LatexCommand \ref{sec:sgmlparas}
18921
18922 \end_inset
18923
18924 .
18925 \end_layout
18926
18927 \begin_layout Standard
18928 You 
18929 \emph on
18930 must
18931 \emph default
18932  enter a title for the document, followed by an author, marking each with
18933  the appropriate paragraph environment.
18934  If you don't do this, you will get errors when you try to print the file.
18935  You can then enter the date and an abstract.
18936  The document proper must start with a Section paragraph environment rather
18937  than any standard layout.
18938 \end_layout
18939
18940 \begin_layout Standard
18941 After that you can prepare a document as usual using the available range
18942  of paragraph environments.
18943  See section\InsetSpace ~
18944
18945 \begin_inset LatexCommand \ref{sec:sgmlparas}
18946
18947 \end_inset
18948
18949  for the full list and their uses.
18950 \end_layout
18951
18952 \begin_layout Subsubsection
18953 Output from LinuxDoc
18954 \end_layout
18955
18956 \begin_layout Standard
18957 You can print and save these documents in the normal way.
18958  To use the other features of the SGML package you need to save your document
18959  as LinuxDoc; this is a version in which the document is translated into
18960  the basic sgml tags.
18961  Use
18962 \family sans
18963  
18964 \bar under
18965 F
18966 \bar default
18967 ile\SpecialChar \menuseparator
18968
18969 \bar under
18970 E
18971 \bar default
18972 xport\SpecialChar \menuseparator
18973 Linu
18974 \bar under
18975 x
18976 \bar default
18977 Doc.
18978
18979 \family default
18980  You will get a file with the same name and a 
18981 \family typewriter
18982 .sgml
18983 \family default
18984  extension rather than a 
18985 \family typewriter
18986 .lyx
18987 \family default
18988  extension.
18989  See\InsetSpace ~
18990
18991 \begin_inset LatexCommand \ref{sec:sgmloperate}
18992
18993 \end_inset
18994
18995  on how you than make use of this file.
18996 \end_layout
18997
18998 \begin_layout Subsection
18999 Using the paragraph environments in LinuxDoc
19000 \end_layout
19001
19002 \begin_layout Subsubsection
19003 The Structure of a LinuxDoc Document
19004 \end_layout
19005
19006 \begin_layout Standard
19007 There is a formal structure for LinuxDoc which limits how you can place
19008  tags.
19009  There are two parts to all documents: 
19010 \end_layout
19011
19012 \begin_layout Description
19013 Header: this is everything up to the first time you insert a Section layout
19014  marker.
19015  It can include title, author, date, abstract and ToC.
19016  You must include the first two.
19017 \end_layout
19018
19019 \begin_layout Description
19020 Body: from the beginning of the first section onwards.
19021  All other tags are allowed.
19022  
19023 \end_layout
19024
19025 \begin_layout Subsubsection
19026 The LinuxDoc Paragraph Environments
19027 \end_layout
19028
19029 \begin_layout Standard
19030 \begin_inset LatexCommand \label{sec:sgmlparas}
19031
19032 \end_inset
19033
19034 Here is a list of all the tags you will find listed on the layout bar in
19035  the order they come there, with some comments where the purpose or use
19036  is not obvious:
19037 \end_layout
19038
19039 \begin_layout Itemize
19040
19041 \family sans
19042 Standard:
19043 \family roman
19044  works as described in [cross reference]
19045 \end_layout
19046
19047 \begin_layout Itemize
19048
19049 \family sans
19050 Title
19051 \family default
19052 : This will appear at the top left of the document when printed, above a
19053  heavy horizontal rule, although you will not see this on the LyX screen.
19054 \end_layout
19055
19056 \begin_layout Itemize
19057
19058 \family sans
19059 Section, Subsection, Subsubsection, Paragraph and Subparagraph:
19060 \family default
19061  all do what you would expect and in the usual order.
19062  Whether they are numbered or not is controlled by the 
19063 \family sans
19064 Section\InsetSpace ~
19065 number\InsetSpace ~
19066 depth
19067 \family default
19068  setting.
19069  You cannot get the equivalent number free versions in any other way; there
19070  is no 
19071 \family sans
19072 Section*
19073 \family default
19074  or similar
19075 \end_layout
19076
19077 \begin_layout Itemize
19078
19079 \family sans
19080 Enumerate:
19081 \family default
19082  As usual this produces a numbered and indented list as described in the
19083  
19084 \emph on
19085 User's Guide
19086 \emph default
19087 .
19088 \end_layout
19089
19090 \begin_layout Itemize
19091
19092 \family sans
19093 Itemize: 
19094 \family roman
19095 Again much the same as in the other classes: see the 
19096 \emph on
19097 User's Guide
19098 \emph default
19099 .
19100 \end_layout
19101
19102 \begin_layout Itemize
19103
19104 \family sans
19105 Description
19106 \family default
19107 : As explained in the 
19108 \emph on
19109 User's Guide
19110 \emph default
19111 .
19112  Remember that if you want the bold element at the start of a description
19113  to be more than one word then you need to put protected spaces between
19114  the words.
19115  
19116 \end_layout
19117
19118 \begin_layout Itemize
19119
19120 \family sans
19121 Verbatim: 
19122 \family default
19123 As usual.
19124 \end_layout
19125
19126 \begin_layout Itemize
19127
19128 \family sans
19129 Code: similar to the Lyx-Code
19130 \family roman
19131  environment
19132 \end_layout
19133
19134 \begin_layout Itemize
19135
19136 \family sans
19137 Author
19138 \family default
19139 : Anything you mark with this will appear on the left of the heading of
19140  the document, under the heavy rule.
19141 \end_layout
19142
19143 \begin_layout Itemize
19144
19145 \family sans
19146 Date:
19147 \family default
19148  Anything you mark with this will appear on the right of the heading under
19149  the rule.
19150  You do not have to make this a date.
19151  Any text can be entered, e.\InsetSpace ~
19152 g.
19153  a version number.
19154 \end_layout
19155
19156 \begin_layout Itemize
19157
19158 \family sans
19159 Abstract
19160 \family default
19161 : You can use this to produce a free standing paragraph after the author
19162  and date, and before the first section.
19163  You are only allowed one such paragraph.
19164 \begin_inset Foot
19165 status collapsed
19166
19167 \begin_layout Standard
19168
19169 \emph on
19170 Author's note.
19171  
19172 \emph default
19173 This needs checking ---
19174 \emph on
19175 pe.
19176 \end_layout
19177
19178 \end_inset
19179
19180
19181 \end_layout
19182
19183 \begin_layout Itemize
19184
19185 \family sans
19186 Displaymath
19187 \family default
19188 :
19189 \begin_inset Foot
19190 status collapsed
19191
19192 \begin_layout Standard
19193
19194 \emph on
19195 Author's note: 
19196 \emph default
19197 I have not yet checked this ---
19198 \emph on
19199 pe.
19200 \end_layout
19201
19202 \end_inset
19203
19204
19205 \end_layout
19206
19207 \begin_layout Subsubsection
19208 Other document features
19209 \end_layout
19210
19211 \begin_layout Standard
19212 You can also use the 
19213 \family sans
19214 Layout 
19215 \family default
19216 menu to set fonts or to emphasis words.
19217  You can also use the table of contents as usual; see the corresponding
19218  section of the 
19219 \emph on
19220 User's Guide
19221 \emph default
19222 .
19223  Although you will find some some other features on the menus e.\InsetSpace ~
19224 g.
19225  inserting footnotes.
19226  There is some doubt about whether these will work correctly.
19227 \begin_inset Foot
19228 status collapsed
19229
19230 \begin_layout Standard
19231
19232 \emph on
19233 Author's note: 
19234 \emph default
19235 Again still checking to see whether this is my system
19236 \emph on
19237  ---pe.
19238 \end_layout
19239
19240 \end_inset
19241
19242
19243 \end_layout
19244
19245 \begin_layout Subsubsection
19246 Cross references and HTML 
19247 \end_layout
19248
19249 \begin_layout Standard
19250 On the
19251 \family sans
19252  Insert
19253 \family default
19254  menu you will find two new options relating to the inclusion of URL addresses.
19255  If you use either option you will find some highlighted TeX code inserted
19256  into your document in three separate blocks with spaces available between.
19257  The blocks will be:
19258 \end_layout
19259
19260 \begin_layout Quote
19261
19262 \family typewriter
19263
19264 \backslash
19265 htmlurl{
19266 \family default
19267  or 
19268 \family typewriter
19269
19270 \backslash
19271 url{
19272 \family roman
19273
19274 \hfill
19275 space
19276 \family default
19277  
19278 \family typewriter
19279
19280 \hfill
19281 }{
19282 \family roman
19283
19284 \hfill
19285 space
19286 \hfill
19287
19288 \family typewriter
19289 }
19290 \end_layout
19291
19292 \begin_layout Standard
19293 You insert a full HTML tag between the first and second blocks.
19294  This can be 
19295 \begin_inset LatexCommand \url{http://any.address}
19296
19297 \end_inset
19298
19299  or other valid tags such as 
19300 \begin_inset LatexCommand \url{mailto:me@my.address}
19301
19302 \end_inset
19303
19304
19305 \family typewriter
19306 .
19307 \family default
19308 Then y
19309 \family roman
19310 ou 
19311 \family default
19312 insert some description between the second and third blocks.
19313  The differences are:
19314 \end_layout
19315
19316 \begin_layout Itemize
19317
19318 \family sans
19319 URL:
19320 \family roman
19321  both the HTML tag and the description will appear in the document
19322 \end_layout
19323
19324 \begin_layout Itemize
19325
19326 \family sans
19327 HTML\InsetSpace ~
19328 URL: 
19329 \family roman
19330 only the description appears in the printed version
19331 \end_layout
19332
19333 \begin_layout Subsection
19334 Using the LinuxDoc Sgml scripts
19335 \begin_inset Note Note
19336 status collapsed
19337
19338 \begin_layout Standard
19339 This section is completely outdated.
19340 \end_layout
19341
19342 \end_inset
19343
19344
19345 \end_layout
19346
19347 \begin_layout Standard
19348 \begin_inset LatexCommand \label{sec:sgmloperate}
19349
19350 \end_inset
19351
19352 You can use LinuxDoc as a text class without any additional scripts or programs,
19353  but there is not much point in doing this.
19354  All you will get is a document that looks like a 
19355 \emph on
19356 Linux Documentation Project Howto
19357 \family sans
19358 \emph default
19359 .
19360  
19361 \family default
19362 To do the document translation you need to get and install the 
19363 \family typewriter
19364 sgml-tools-1.0.x.tar.gz 
19365 \family default
19366 (with 
19367 \begin_inset Formula $x\geq3$
19368 \end_inset
19369
19370 ) package from 
19371 \family roman
19372 the SGML-Tools WWW Page
19373 \family default
19374  at
19375 \end_layout
19376
19377 \begin_layout LyX-Code
19378
19379 \family roman
19380 \begin_inset LatexCommand \url{http://pobox.com/~cg/sgmltools}
19381
19382 \end_inset
19383
19384
19385 \family default
19386  
19387 \end_layout
19388
19389 \begin_layout Standard
19390 Alternatively, you can go to the 
19391 \family typewriter
19392 sunsite
19393 \family default
19394  archive at
19395 \begin_inset Foot
19396 status collapsed
19397
19398 \begin_layout Standard
19399 Note that, at the time of this writing (01/1998), version 1.0.3 of sgml-tools
19400  has not yet been made available at 
19401 \family typewriter
19402 sunsite
19403 \family default
19404 .
19405 \end_layout
19406
19407 \end_inset
19408
19409
19410 \end_layout
19411
19412 \begin_layout LyX-Code
19413
19414 \family roman
19415 \begin_inset LatexCommand \url{ftp://sunsite.unc.edu/pub/Linux/utils/text/sgml-tools-1.0.x.tar.gz}
19416
19417 \end_inset
19418
19419
19420 \end_layout
19421
19422 \begin_layout Standard
19423
19424 \family roman
19425 The
19426 \family default
19427  file 
19428 \family typewriter
19429 sgml-tools-1.0.x.tar.gz
19430 \family default
19431  contains everything that you need to write SGML documents and convert them
19432  to groff, LaTeX, HTML, GNU info, LyX, and RTF\SpecialChar \@.
19433
19434 \end_layout
19435
19436 \begin_layout Standard
19437 This package was renamed from 
19438 \family typewriter
19439 linuxdoc-sgml-1.5.tar.gz
19440 \family default
19441  in January 1997.
19442 \end_layout
19443
19444 \begin_layout Standard
19445 Follow the instructions in that package on how to install it and how to
19446  use it.
19447  All this has to be done outside of LyX, before you can use the 
19448 \family sans
19449 \bar under
19450 F
19451 \bar default
19452 ile\SpecialChar \menuseparator
19453
19454 \bar under
19455 E
19456 \bar default
19457 xport\SpecialChar \menuseparator
19458 as\InsetSpace ~
19459 LinuxDoc 
19460 \family roman
19461 option.
19462 \end_layout
19463
19464 \begin_layout Subsection
19465 Troubleshooting LinuxDoc
19466 \end_layout
19467
19468 \begin_layout Standard
19469 When you print or preview a LinuxDoc document some checking is done of the
19470  tags before LaTeX is run.
19471  Some errors are trapped here, especially those concerning the structure
19472  of the document.
19473  LyX may produce an error message, but not leave an error box in the document
19474  for you to open.
19475  You may have to look at the files directly to discover what is wrong.
19476  Most problems seem to come from the use of options that are not fully available
19477  in the text class.
19478 \end_layout
19479
19480 \begin_layout Section
19481 Checking TeX
19482 \end_layout
19483
19484 \begin_layout Standard
19485 by 
19486 \noun on
19487 Asger Alstrup
19488 \end_layout
19489
19490 \begin_layout Subsection
19491 Introduction
19492 \end_layout
19493
19494 \begin_layout Standard
19495 Under the 
19496 \family sans
19497 \bar under
19498 T
19499 \bar default
19500 ools
19501 \family default
19502  menu, you'll find a 
19503 \family sans
19504 \bar under
19505 C
19506 \bar default
19507 heck\InsetSpace ~
19508 TeX
19509 \family default
19510  command.
19511  This feature requires you to have the 
19512 \family typewriter
19513 chktex
19514 \family default
19515  program installed, and is grayed out if you don't have it.
19516  You can get it from your nearest CTAN mirror, or over the Web from 
19517 \begin_inset LatexCommand \url{http://www.ifi.uio.no/~jensthi/chktex/}
19518
19519 \end_inset
19520
19521 .
19522 \end_layout
19523
19524 \begin_layout Standard
19525 The 
19526 \family sans
19527 ChkTeX
19528 \family default
19529  package is a program that was written by 
19530 \noun on
19531 Jens T.
19532  Berger Thielemann
19533 \noun default
19534  in frustration because some constructs in LaTeX are sometimes non-intuitive,
19535  and easy to forget.
19536  The program runs over your LaTeX file and checks the integrity of the file,
19537  and flags some common errors.
19538  In other technical words, it is 
19539 \family typewriter
19540 Lint
19541 \family default
19542  for LaTeX.
19543 \end_layout
19544
19545 \begin_layout Standard
19546 Well, what is a syntax checker doing in LyX which is supposed to produce
19547  correct LaTeX anyways? The answer is simple: Just as 
19548 \family typewriter
19549 Lint
19550 \family default
19551  not only checks the 
19552 \emph on
19553 syntax
19554 \emph default
19555  of C programs, but also does 
19556 \emph on
19557 semantic
19558 \emph default
19559  checks for type-errors, 
19560 \family sans
19561 ChkTeX
19562 \family default
19563  catches some common 
19564 \emph on
19565 typographic
19566 \emph default
19567  errors, in addition to the syntactical ones.
19568  Specifically, 
19569 \family sans
19570 ChkTeX
19571 \family default
19572  is capable of detecting several common errors, such as
19573 \end_layout
19574
19575 \begin_layout Itemize
19576 Ellipsis detection:
19577 \newline
19578 Use \SpecialChar \ldots{}
19579  instead of ...
19580 \end_layout
19581
19582 \begin_layout Itemize
19583 No space in front of/after parenthesis:
19584 \newline
19585 ( wrong spacing )
19586 \end_layout
19587
19588 \begin_layout Itemize
19589 Enforcement of normal space after common abbreviations:
19590 \newline
19591 e.
19592  g.
19593  is too wide spacing.
19594 \end_layout
19595
19596 \begin_layout Itemize
19597 Enforcement of end-of-sentence space when the last sentence ends with a
19598  capital letter:
19599 \newline
19600 This is a TEST.
19601  And this is wrong spacing.
19602 \end_layout
19603
19604 \begin_layout Itemize
19605 Space in front of labels and similar commands:
19606 \newline
19607 The label should stick right
19608  up to the text to avoid falling to a wrong page.
19609  
19610 \begin_inset LatexCommand \label{sec:chktex}
19611
19612 \end_inset
19613
19614  
19615 \begin_inset Foot
19616 status collapsed
19617
19618 \begin_layout Standard
19619 This footnote is in danger of falling off to a wrong page
19620 \end_layout
19621
19622 \end_inset
19623
19624  The label is separated too much.
19625 \end_layout
19626
19627 \begin_layout Itemize
19628 Space in front of references, instead of hard spaces:
19629 \newline
19630 In you are in bad luck,
19631  the text will break right between the referenced text and reference number,
19632  and that's a pity.
19633  See section 
19634 \begin_inset LatexCommand \ref{sec:chktex}
19635
19636 \end_inset
19637
19638 .
19639 \end_layout
19640
19641 \begin_layout Itemize
19642 Use of 
19643 \begin_inset Quotes eld
19644 \end_inset
19645
19646 x
19647 \begin_inset Quotes erd
19648 \end_inset
19649
19650  instead of 
19651 \begin_inset Formula $\times$
19652 \end_inset
19653
19654  between numbers:
19655 \newline
19656 2x2 looks cheap compared to 
19657 \begin_inset Formula $2\times2$
19658 \end_inset
19659
19660 .
19661 \end_layout
19662
19663 \begin_layout Standard
19664 and more \SpecialChar \ldots{}
19665  It is an invaluable tool when you are 
19666 \begin_inset Quotes eld
19667 \end_inset
19668
19669 finishing up
19670 \begin_inset Quotes erd
19671 \end_inset
19672
19673  your document before printing, and you should run it right after the obligatory
19674  spelling check, and before you go fine tuning the typesetting.
19675 \end_layout
19676
19677 \begin_layout Subsection
19678 How to use it
19679 \end_layout
19680
19681 \begin_layout Standard
19682 If you have the program installed, usage is as simple as choosing 
19683 \family sans
19684 \bar under
19685 T
19686 \bar default
19687 ools\SpecialChar \menuseparator
19688
19689 \bar under
19690 C
19691 \bar default
19692 heck\InsetSpace ~
19693 TeX
19694 \family default
19695 .
19696  This will make LyX generate a LaTeX file of your document, start 
19697 \family sans
19698 ChkTeX
19699 \family default
19700  to check it, and then make LyX insert 
19701 \begin_inset Quotes eld
19702 \end_inset
19703
19704 error boxes
19705 \begin_inset Quotes erd
19706 \end_inset
19707
19708  with the warnings from 
19709 \family sans
19710 ChkTeX
19711 \family default
19712 , if there were any.
19713  The warnings will be placed close to the point of the mistake, and you
19714  can quickly find them by using the 
19715 \family sans
19716 \bar under
19717 N
19718 \bar default
19719 avigate\SpecialChar \menuseparator
19720
19721 \bar under
19722 E
19723 \bar default
19724 rror
19725 \family default
19726  menu item, or the shortcut key 
19727 \family sans
19728 C-g
19729 \family default
19730  from the default 
19731 \family typewriter
19732 cua
19733 \family default
19734  bind file.
19735  Open the error boxes by clicking on them with the mouse, or use the shortcut
19736  key 
19737 \family sans
19738 C-i
19739 \family default
19740  from 
19741 \family typewriter
19742 cua
19743 \family default
19744  bindings, or the corresponding 
19745 \family sans
19746 C-o
19747 \family default
19748  for the alternate 
19749 \family typewriter
19750 emacs
19751 \family default
19752  bind file.
19753  Read the warning and correct the mistake, if it is a mistake.
19754  If you have trouble understanding what the warning is about, you can safely
19755  ignore it.
19756  Remember that there is a hidden layer between the document on screen and
19757  the technical details in invoking 
19758 \family sans
19759 ChkTeX
19760 \family default
19761 , and this gap can make some warnings seem arcane or just right down plain
19762  silly.
19763 \end_layout
19764
19765 \begin_layout Standard
19766 This document is an excellent testing bed for the feature, and it should
19767  provide quite a few warnings for you to fiddle with.
19768  Since computers are only so smart, expect most of the warnings to be false
19769  alarms, though.
19770 \end_layout
19771
19772 \begin_layout Subsection
19773 How to fine tune it
19774 \end_layout
19775
19776 \begin_layout Standard
19777 Sometimes, you'll find that 
19778 \family sans
19779 ChkTeX
19780 \family default
19781  makes more noise than suits your mood.
19782  Then you can choose not to use it, wait until your mood changes, or try
19783  to customize 
19784 \family sans
19785 ChkTeX
19786 \family default
19787  to get better along with you.
19788  Another choice in the most desperate situations is to use 
19789 \family sans
19790 \bar under
19791 V
19792 \bar default
19793 iew\SpecialChar \menuseparator
19794
19795 \bar under
19796 R
19797 \bar default
19798 emove\InsetSpace ~
19799 All\InsetSpace ~
19800 Error\InsetSpace ~
19801 Boxes
19802 \family default
19803 , which will get rid of all warnings instantly.
19804 \end_layout
19805
19806 \begin_layout Standard
19807 Although 
19808 \family sans
19809 ChkTeX
19810 \family default
19811  
19812 \emph on
19813 is
19814 \emph default
19815  very configurable and extensible, you shouldn't expect to solve all problems
19816  with 
19817 \family sans
19818 ChkTeX
19819 \family default
19820  in LyX this way.
19821  Since LyX has to generate a somewhat special LaTeX file to be able to match
19822  the line numbers from the 
19823 \family sans
19824 ChkTeX
19825 \family default
19826  output
19827 \begin_inset Foot
19828 status collapsed
19829
19830 \begin_layout Standard
19831 You can inspect the specific output from 
19832 \family sans
19833 chktex
19834 \family default
19835  by using 
19836 \family sans
19837 Edit\SpecialChar \menuseparator
19838 View\InsetSpace ~
19839 LaTeX\InsetSpace ~
19840 Log
19841 \family default
19842  right after a 
19843 \family sans
19844 chktex
19845 \family default
19846  run.
19847 \end_layout
19848
19849 \end_inset
19850
19851  to the internal document structure, some of the warnings will not seen
19852  to appear correctly.
19853  There are two things you can do about this:
19854 \end_layout
19855
19856 \begin_layout Itemize
19857 Fine tune the 
19858 \family sans
19859 ChkTeX
19860 \family default
19861  invocation command line in 
19862 \family sans
19863 Preferences
19864 \family default
19865  (tabs 
19866 \family sans
19867 Outputs
19868 \family default
19869
19870 \family sans
19871 Misc
19872 \family default
19873 ), or the global 
19874 \family sans
19875 ChkTeX
19876 \family default
19877  installation configuration file (usually with the file 
19878 \family typewriter
19879 /usr/local/share/chktexrc
19880 \family default
19881 ).
19882  See below to learn what warnings can be enabled and disabled on the command
19883  line.
19884  
19885 \end_layout
19886
19887 \begin_layout Itemize
19888 Export your document as a raw LaTeX file using 
19889 \family sans
19890 \bar under
19891 F
19892 \bar default
19893 ile\SpecialChar \menuseparator
19894
19895 \bar under
19896 E
19897 \bar default
19898 xport\SpecialChar \menuseparator
19899
19900 \bar under
19901 L
19902 \bar default
19903 aTeX
19904 \family default
19905  and run 
19906 \family typewriter
19907 chktex
19908 \family default
19909  manually on that.
19910  Invoked in this way, it can be a hassle to find the corresponding place
19911  in the document inside LyX, but with a little patience, you should be able
19912  to do it.
19913 \end_layout
19914
19915 \begin_layout Standard
19916 Here follows the warning messages that can be enabled and disabled in 
19917 \family sans
19918 Preferences
19919 \family default
19920 .
19921  Use 
19922 \family typewriter
19923 -n#
19924 \family default
19925  to disable a warning, and 
19926 \family typewriter
19927 -w#
19928 \family default
19929  to enable a warning.
19930  The emphasized entries are disabled by default, because the default is
19931  "
19932 \family typewriter
19933 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19934 \family default
19935 ".
19936 \end_layout
19937
19938 \begin_layout Standard
19939 Notice that you should only use the options that enable and disable warnings,
19940  because LyX relies on some of the other command line parameters to be set
19941  in a specific way to have a chance to communicate with 
19942 \family typewriter
19943 chktex
19944 \family default
19945 .
19946 \end_layout
19947
19948 \begin_layout Enumerate
19949
19950 \size small
19951 \emph on
19952 Command terminated with space.
19953 \end_layout
19954
19955 \begin_layout Enumerate
19956
19957 \size small
19958 Non-breaking space (
19959 \begin_inset Quotes eld
19960 \end_inset
19961
19962
19963 \family typewriter
19964 ~
19965 \family default
19966
19967 \begin_inset Quotes erd
19968 \end_inset
19969
19970 ) should have been used.
19971 \end_layout
19972
19973 \begin_layout Enumerate
19974
19975 \size small
19976 \emph on
19977 You should enclose the previous parenthesis with 
19978 \begin_inset Quotes eld
19979 \end_inset
19980
19981
19982 \family typewriter
19983 {}
19984 \family default
19985
19986 \begin_inset Quotes erd
19987 \end_inset
19988
19989 .
19990 \end_layout
19991
19992 \begin_layout Enumerate
19993
19994 \size small
19995 Italic correction (
19996 \begin_inset Quotes eld
19997 \end_inset
19998
19999
20000 \family typewriter
20001
20002 \backslash
20003 /
20004 \family default
20005
20006 \begin_inset Quotes erd
20007 \end_inset
20008
20009 ) found in non-italic buffer.
20010 \end_layout
20011
20012 \begin_layout Enumerate
20013
20014 \size small
20015 Italic correction (
20016 \begin_inset Quotes eld
20017 \end_inset
20018
20019
20020 \family typewriter
20021
20022 \backslash
20023 /
20024 \family default
20025
20026 \begin_inset Quotes erd
20027 \end_inset
20028
20029 ) found more than once.
20030 \end_layout
20031
20032 \begin_layout Enumerate
20033
20034 \size small
20035 \emph on
20036 No italic correction (
20037 \begin_inset Quotes eld
20038 \end_inset
20039
20040
20041 \family typewriter
20042
20043 \backslash
20044 /
20045 \family default
20046
20047 \begin_inset Quotes erd
20048 \end_inset
20049
20050 ) found.
20051 \end_layout
20052
20053 \begin_layout Enumerate
20054
20055 \size small
20056 Accent command 
20057 \begin_inset Quotes eld
20058 \end_inset
20059
20060
20061 \family typewriter
20062 cmd
20063 \family default
20064
20065 \begin_inset Quotes erd
20066 \end_inset
20067
20068  needs use of 
20069 \begin_inset Quotes eld
20070 \end_inset
20071
20072
20073 \family typewriter
20074 cmd
20075 \family default
20076
20077 \begin_inset Quotes erd
20078 \end_inset
20079
20080 .
20081 \end_layout
20082
20083 \begin_layout Enumerate
20084
20085 \size small
20086 Wrong length of dash may have been used.
20087 \end_layout
20088
20089 \begin_layout Enumerate
20090
20091 \size small
20092 \emph on
20093 \begin_inset Quotes eld
20094 \end_inset
20095
20096
20097 \family typewriter
20098 %s
20099 \family default
20100
20101 \begin_inset Quotes erd
20102 \end_inset
20103
20104  expected, found 
20105 \begin_inset Quotes eld
20106 \end_inset
20107
20108
20109 \family typewriter
20110 %s
20111 \family default
20112
20113 \begin_inset Quotes erd
20114 \end_inset
20115
20116 .
20117 \end_layout
20118
20119 \begin_layout Enumerate
20120
20121 \size small
20122 Solo 
20123 \begin_inset Quotes eld
20124 \end_inset
20125
20126
20127 \family typewriter
20128 %s
20129 \family default
20130
20131 \begin_inset Quotes erd
20132 \end_inset
20133
20134  found.
20135 \end_layout
20136
20137 \begin_layout Enumerate
20138
20139 \size small
20140 You should use 
20141 \begin_inset Quotes eld
20142 \end_inset
20143
20144
20145 \family typewriter
20146 %s
20147 \family default
20148
20149 \begin_inset Quotes erd
20150 \end_inset
20151
20152  to achieve an ellipsis.
20153 \end_layout
20154
20155 \begin_layout Enumerate
20156
20157 \size small
20158 Inter-word spacing (
20159 \begin_inset Quotes eld
20160 \end_inset
20161
20162
20163 \family typewriter
20164
20165 \backslash
20166  
20167 \family default
20168
20169 \begin_inset Quotes eld
20170 \end_inset
20171
20172 ) should perhaps be used.
20173 \end_layout
20174
20175 \begin_layout Enumerate
20176
20177 \size small
20178 Inter-sentence spacing (
20179 \begin_inset Quotes eld
20180 \end_inset
20181
20182
20183 \family typewriter
20184
20185 \backslash
20186 @
20187 \family default
20188
20189 \begin_inset Quotes erd
20190 \end_inset
20191
20192 ) should perhaps be used.
20193 \end_layout
20194
20195 \begin_layout Enumerate
20196
20197 \size small
20198 Could not find argument for command.
20199 \end_layout
20200
20201 \begin_layout Enumerate
20202
20203 \size small
20204 No match found for 
20205 \begin_inset Quotes eld
20206 \end_inset
20207
20208
20209 \family typewriter
20210 %s
20211 \family default
20212
20213 \begin_inset Quotes erd
20214 \end_inset
20215
20216 .
20217 \end_layout
20218
20219 \begin_layout Enumerate
20220
20221 \size small
20222 Math mode still on at end of LaTeX file.
20223 \end_layout
20224
20225 \begin_layout Enumerate
20226
20227 \size small
20228 Number of 
20229 \begin_inset Quotes eld
20230 \end_inset
20231
20232
20233 \family typewriter
20234 char
20235 \family default
20236
20237 \begin_inset Quotes erd
20238 \end_inset
20239
20240  doesn't match the number of 
20241 \begin_inset Quotes eld
20242 \end_inset
20243
20244
20245 \family typewriter
20246 char
20247 \family default
20248
20249 \begin_inset Quotes erd
20250 \end_inset
20251
20252 .
20253 \end_layout
20254
20255 \begin_layout Enumerate
20256
20257 \size small
20258 You should use either 
20259 \family typewriter
20260
20261 \begin_inset Quotes eld
20262 \end_inset
20263
20264
20265 \family default
20266  or 
20267 \family typewriter
20268
20269 \begin_inset Quotes erd
20270 \end_inset
20271
20272
20273 \family default
20274  as an alternative to 
20275 \begin_inset Quotes eld
20276 \end_inset
20277
20278
20279 \family typewriter
20280 "
20281 \family default
20282
20283 \begin_inset Quotes erd
20284 \end_inset
20285
20286 .
20287 \end_layout
20288
20289 \begin_layout Enumerate
20290
20291 \size small
20292 You should use "
20293 \family typewriter
20294 '
20295 \family default
20296 " (ASCII 39) instead of "
20297 \family typewriter
20298 ´
20299 \family default
20300 " (ASCII 180).
20301 \end_layout
20302
20303 \begin_layout Enumerate
20304
20305 \size small
20306 User-specified pattern found.
20307 \end_layout
20308
20309 \begin_layout Enumerate
20310
20311 \size small
20312 This command might not be intended.
20313 \end_layout
20314
20315 \begin_layout Enumerate
20316
20317 \size small
20318 \emph on
20319 Comment displayed.
20320 \end_layout
20321
20322 \begin_layout Enumerate
20323
20324 \size small
20325 Either 
20326 \family typewriter
20327 ''
20328 \backslash
20329 ,'
20330 \family default
20331  or 
20332 \family typewriter
20333 '
20334 \backslash
20335 ,''
20336 \family default
20337  will look better.
20338 \end_layout
20339
20340 \begin_layout Enumerate
20341
20342 \size small
20343 Delete this space to maintain correct page references.
20344 \end_layout
20345
20346 \begin_layout Enumerate
20347
20348 \size small
20349 \emph on
20350 You might wish to put this between a pair of 
20351 \begin_inset Quotes eld
20352 \end_inset
20353
20354
20355 \family typewriter
20356 {}
20357 \family default
20358
20359 \begin_inset Quotes erd
20360 \end_inset
20361
20362 .
20363 \end_layout
20364
20365 \begin_layout Enumerate
20366
20367 \size small
20368 You ought to remove spaces in front of punctuation.
20369 \end_layout
20370
20371 \begin_layout Enumerate
20372
20373 \size small
20374 Could not execute LaTeX command.
20375 \end_layout
20376
20377 \begin_layout Enumerate
20378
20379 \size small
20380 Don't use 
20381 \family typewriter
20382
20383 \backslash
20384 /
20385 \family default
20386  in front of small punctuation.
20387 \end_layout
20388
20389 \begin_layout Enumerate
20390
20391 \family typewriter
20392 \size small
20393 $
20394 \backslash
20395 times$
20396 \family default
20397  may look prettier here.
20398 \end_layout
20399
20400 \begin_layout Enumerate
20401
20402 \size small
20403 \emph on
20404 Multiple spaces detected in output.
20405 \end_layout
20406
20407 \begin_layout Enumerate
20408
20409 \size small
20410 This text may be ignored.
20411 \end_layout
20412
20413 \begin_layout Enumerate
20414
20415 \size small
20416 Use 
20417 \family typewriter
20418
20419 \begin_inset Quotes eld
20420 \end_inset
20421
20422
20423 \family default
20424  to begin quotation, not 
20425 \family typewriter
20426 '
20427 \family default
20428 .
20429 \end_layout
20430
20431 \begin_layout Enumerate
20432
20433 \size small
20434 Use 
20435 \family typewriter
20436 '
20437 \family default
20438  to end quotation, not 
20439 \family typewriter
20440
20441 \begin_inset Quotes eld
20442 \end_inset
20443
20444
20445 \family default
20446 .
20447 \end_layout
20448
20449 \begin_layout Enumerate
20450
20451 \size small
20452 Don't mix quotes.
20453 \end_layout
20454
20455 \begin_layout Enumerate
20456
20457 \size small
20458 You should perhaps use 
20459 \begin_inset Quotes eld
20460 \end_inset
20461
20462
20463 \family typewriter
20464 cmd
20465 \family default
20466
20467 \begin_inset Quotes erd
20468 \end_inset
20469
20470  instead.
20471 \end_layout
20472
20473 \begin_layout Enumerate
20474
20475 \size small
20476 You should put a space in front of/after parenthesis.
20477 \end_layout
20478
20479 \begin_layout Enumerate
20480
20481 \size small
20482 You should avoid spaces in front of/after parenthesis.
20483 \end_layout
20484
20485 \begin_layout Enumerate
20486
20487 \size small
20488 \emph on
20489 You should not use punctuation in front of/after quotes.
20490 \end_layout
20491
20492 \begin_layout Enumerate
20493
20494 \size small
20495 Double space found.
20496 \end_layout
20497
20498 \begin_layout Enumerate
20499
20500 \size small
20501 You should put punctuation outside inner/inside display math mode.
20502 \end_layout
20503
20504 \begin_layout Enumerate
20505
20506 \size small
20507 You ought to not use primitive TeX in LaTeX code.
20508 \end_layout
20509
20510 \begin_layout Enumerate
20511
20512 \size small
20513 You should remove spaces in front of 
20514 \begin_inset Quotes eld
20515 \end_inset
20516
20517
20518 \family typewriter
20519 %s
20520 \family default
20521
20522 \begin_inset Quotes erd
20523 \end_inset
20524
20525
20526 \end_layout
20527
20528 \begin_layout Enumerate
20529
20530 \size small
20531 \begin_inset Quotes eld
20532 \end_inset
20533
20534
20535 \family typewriter
20536 %s
20537 \family default
20538
20539 \begin_inset Quotes erd
20540 \end_inset
20541
20542  is normally not followed by 
20543 \begin_inset Quotes eld
20544 \end_inset
20545
20546
20547 \family typewriter
20548 %c
20549 \family default
20550
20551 \begin_inset Quotes erd
20552 \end_inset
20553
20554 .
20555 \end_layout
20556
20557 \begin_layout Standard
20558 In later versions of LyX, we hope to provide a more complete interface to
20559  this tool (and it's smaller cousin 
20560 \family typewriter
20561 lacheck
20562 \family default
20563 ) to exploit the full power of it.
20564  But it's not exactly useless as it is now: go try it on one of your existing
20565  documents of a certain length and be surprised.
20566 \end_layout
20567
20568 \begin_layout Section
20569 Version Control in LyX
20570 \end_layout
20571
20572 \begin_layout Standard
20573 by
20574 \noun on
20575  Lars Gullik Bjønnes
20576 \end_layout
20577
20578 \begin_layout Subsection
20579 Introduction
20580 \end_layout
20581
20582 \begin_layout Standard
20583 A friend of mine wanted to try LyX for a group project.
20584  When he didn't find support for version control or file locking, he dropped
20585  it.
20586  This angered me a bit, so I thought that I should at least make support
20587  for RCS (with the possibility of CVS and/or SCCS as a future improvement.)
20588  This has now been done.
20589  LyX now supports some of the most basic RCS commands.
20590  If you need to something a bit more sophisticated you will have to do that
20591  manually in an xterm.
20592 \end_layout
20593
20594 \begin_layout Standard
20595 Before you begin to use the version control features in LyX, you should
20596  read 
20597 \begin_inset Quotes eld
20598 \end_inset
20599
20600 rcsintro
20601 \begin_inset Quotes erd
20602 \end_inset
20603
20604  (a man file, read it with 
20605 \family typewriter
20606 man rcsintro
20607 \family default
20608 ).
20609  This file describes all the basic features of RCS.
20610  You should especially notice the comment about a RCS directory, and the
20611  notion of a master RCS file (the file ending in 
20612 \family typewriter
20613 ,v
20614 \family default
20615 ).
20616 \end_layout
20617
20618 \begin_layout Standard
20619 The implementation in LyX assumes a recent version of the GNU RCS package---no
20620  guarantees are made for older versions.
20621 \end_layout
20622
20623 \begin_layout Subsection
20624 RCS commands in LyX
20625 \end_layout
20626
20627 \begin_layout Standard
20628 The following sections describe the RCS commands supported by LyX.
20629  You can find them in the 
20630 \family sans
20631 \bar under
20632 F
20633 \bar default
20634 ile\SpecialChar \menuseparator
20635
20636 \bar under
20637 V
20638 \bar default
20639 ersion\InsetSpace ~
20640 Control
20641 \family default
20642  submenu.
20643 \end_layout
20644
20645 \begin_layout Subsubsection
20646
20647 \family sans
20648 Register
20649 \end_layout
20650
20651 \begin_layout Standard
20652 If your document is not under revision control, this is the only item shown
20653  in the menu.
20654  And if it is under revision control, the 
20655 \family sans
20656 \bar under
20657 R
20658 \bar default
20659 egister
20660 \family default
20661  item is grayed out.
20662  
20663 \end_layout
20664
20665 \begin_layout Standard
20666 This command registers your document with RCS\SpecialChar \@.
20667  You are asked interactively
20668  to supply an initial description of the document.
20669  The document is now set in Read-Only mode and you have to 
20670 \family sans
20671 Check\InsetSpace ~
20672 Out\InsetSpace ~
20673 For\InsetSpace ~
20674 Edit
20675 \family default
20676 , before making any changes to it.
20677  A document under revision control has a 
20678 \begin_inset Quotes eld
20679 \end_inset
20680
20681 [RCS:<version> <locker>]
20682 \begin_inset Quotes erd
20683 \end_inset
20684
20685  item tagged to the filename in the minibuffer.
20686 \end_layout
20687
20688 \begin_layout Standard
20689 RCS command that is run: 
20690 \family typewriter
20691 ci -q -u -i -t-"<initial description>" <file-name>
20692 \end_layout
20693
20694 \begin_layout Standard
20695 Read 
20696 \family typewriter
20697 man ci
20698 \family default
20699  to understand the switches.
20700  
20701 \end_layout
20702
20703 \begin_layout Subsubsection
20704
20705 \family sans
20706 Check In Changes
20707 \end_layout
20708
20709 \begin_layout Standard
20710 When you are finished editing a file, you check in your changes.
20711  When you do this, you are asked for a description of the changes.
20712  This is stored in the history log.
20713  The version number is bumped, your changes are applied to the master RCS
20714  file, the document is unlocked and set to Read-Only mode.
20715  
20716 \end_layout
20717
20718 \begin_layout Standard
20719 RCS command: 
20720 \family typewriter
20721 ci -q -u -m"<description>" <file-name>
20722 \end_layout
20723
20724 \begin_layout Subsubsection
20725
20726 \family sans
20727 Check Out For Edit
20728 \end_layout
20729
20730 \begin_layout Standard
20731 By doing this you lock the document so that only you can edit it.
20732  This will also make the document Read-Write only for you.
20733  You will usually continue editing for a while and when you are finished
20734  you check in your changes.
20735  The status line is changed to reflect that you have locked the file.
20736  
20737 \end_layout
20738
20739 \begin_layout Standard
20740 RCS command: 
20741 \family typewriter
20742 co -q -l <file-name>
20743 \end_layout
20744
20745 \begin_layout Subsubsection
20746
20747 \family sans
20748 Revert To Last Version
20749 \end_layout
20750
20751 \begin_layout Standard
20752 This will discard all changes made to the document since the last check
20753  in.
20754  You get a warning before changes are discarded.
20755 \end_layout
20756
20757 \begin_layout Standard
20758 RCS command: 
20759 \family typewriter
20760 co -f -u<version> <file-name>
20761 \end_layout
20762
20763 \begin_layout Subsubsection
20764
20765 \family sans
20766 Undo Last Checkin
20767 \end_layout
20768
20769 \begin_layout Standard
20770 This makes as if the last check in never happened.
20771  No changes are made to the document loaded into LyX, but the last version
20772  is removed from the master RCS file.
20773  
20774 \end_layout
20775
20776 \begin_layout Standard
20777 RCS command: 
20778 \family typewriter
20779 rcs -o<version> <file-name>
20780 \end_layout
20781
20782 \begin_layout Subsubsection
20783
20784 \family sans
20785 Show History
20786 \end_layout
20787
20788 \begin_layout Standard
20789 This show the complete history of the RCS document.
20790  The output of 
20791 \family typewriter
20792 rlog <file-name>
20793 \family default
20794  is shown in a browser.
20795  See 
20796 \family typewriter
20797 man rlog
20798 \family default
20799  for more info.
20800 \end_layout
20801
20802 \begin_layout Section
20803 Literate Programming
20804 \end_layout
20805
20806 \begin_layout Standard
20807 Updated by 
20808 \noun on
20809 Kayvan Sylvan 
20810 \noun default
20811 (kayvan@sylvan.com)
20812 \noun on
20813
20814 \noun default
20815 original documentation written by 
20816 \noun on
20817 Edmar Wienskoski Jr.
20818
20819 \noun default
20820  (edmar-w-jr@technologist.com)
20821 \end_layout
20822
20823 \begin_layout Subsection
20824 Introduction
20825 \end_layout
20826
20827 \begin_layout Standard
20828 The main purpose of this documentation is to show you how to use LyX for
20829  literate programming.
20830  Where it is assumed that you are familiar with this programming technique,
20831  and know what 
20832 \begin_inset Quotes eld
20833 \end_inset
20834
20835 tangling
20836 \begin_inset Quotes erd
20837 \end_inset
20838
20839  and 
20840 \begin_inset Quotes eld
20841 \end_inset
20842
20843 weaving
20844 \begin_inset Quotes erd
20845 \end_inset
20846
20847  means.
20848  If that is not the case, please follow the web links provided in the following
20849  sections.
20850  There is a lot of good documentation out there covering old development
20851  history to the latest tools tips.
20852 \end_layout
20853
20854 \begin_layout Standard
20855 It is also assumed that you are familiar with LyX itself to a point that
20856  you are comfortable changing your LyX preferences, and X resources file.
20857  If that is not the case please refer to other LyX documentation to cover
20858  your specific needs.
20859 \end_layout
20860
20861 \begin_layout Subsection
20862 Literate Programming
20863 \end_layout
20864
20865 \begin_layout Standard
20866 From the Literate Programming FAQ: 
20867 \end_layout
20868
20869 \begin_layout Quotation
20870 Literate programming is the combination of documentation and source together
20871  in a fashion suited for reading by human beings.
20872  In fact, literate programs should be enjoyable reading, even inviting!
20873  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
20874  and documentation in a single file.
20875  Literate programming tools then parse the file to produce either readable
20876  documentation or compilable source.
20877  The WEB style of literate programming was created by D.E.
20878  Knuth during the development of his TeX typesetting software.
20879  
20880 \end_layout
20881
20882 \begin_layout Standard
20883 Another excerpt says:
20884 \end_layout
20885
20886 \begin_layout Quotation
20887
20888 \emph on
20889 How is literate programming different from verbose commenting?
20890 \end_layout
20891
20892 \begin_layout Quotation
20893 There are three distinguishing characteristics.
20894  In order of importance, they are: 
20895 \end_layout
20896
20897 \begin_deeper
20898 \begin_layout Itemize
20899 flexible order of elaboration 
20900 \end_layout
20901
20902 \begin_layout Itemize
20903 automatic support for browsing 
20904 \end_layout
20905
20906 \begin_layout Itemize
20907 typeset documentation, especially diagrams and mathematics 
20908 \end_layout
20909
20910 \end_deeper
20911 \begin_layout Standard
20912 Now that I sparked your curiosity, take a look in the references.
20913 \end_layout
20914
20915 \begin_layout Subsubsection
20916 References
20917 \end_layout
20918
20919 \begin_layout Standard
20920 The complete Literate Programming FAQ can be found at:
20921 \end_layout
20922
20923 \begin_layout Quote
20924 \begin_inset LatexCommand \url[Literate Programming FAQ]{http://shelob.ce.ttu.edu/daves/lpfaq/faq.html}
20925
20926 \end_inset
20927
20928
20929 \end_layout
20930
20931 \begin_layout Standard
20932 The FAQ lists 23 (twenty three!) different literate programming tools.
20933  Where some are specialized or 
20934 \begin_inset Quotes eld
20935 \end_inset
20936
20937 tailored
20938 \begin_inset Quotes erd
20939 \end_inset
20940
20941  for particular programming languages, while other have general scope.
20942  I selected 
20943 \noun on
20944 Noweb
20945 \noun default
20946  for my own use for several reasons:
20947 \end_layout
20948
20949 \begin_layout Itemize
20950 It can generate the documentation either in latex or html.
20951 \end_layout
20952
20953 \begin_layout Itemize
20954 It has a open architecture, i.e., it is easy to plug in new filters and to
20955  perform special processing that you may need.
20956  
20957 \end_layout
20958
20959 \begin_layout Itemize
20960 There is a good selection of filters available already (the html is one
20961  of them).
20962 \end_layout
20963
20964 \begin_layout Itemize
20965 It is free.
20966 \end_layout
20967
20968 \begin_layout Standard
20969 The Noweb web page can be found at: 
20970 \end_layout
20971
20972 \begin_layout Quote
20973 \begin_inset LatexCommand \url[Noweb home page]{http://www.cs.virginia.edu/~nr/noweb/}
20974
20975 \end_inset
20976
20977
20978 \end_layout
20979
20980 \begin_layout Standard
20981 Starting from there you can reach many other interesting links and even
20982  some literate program examples.
20983 \end_layout
20984
20985 \begin_layout Subsection
20986 LyX and Literate Programming
20987 \end_layout
20988
20989 \begin_layout Standard
20990 The LyX support for Literate Programming is provided by using the generic
20991  LyX convertors mechanism.
20992  This support is provided in a 
20993 \begin_inset Quotes eld
20994 \end_inset
20995
20996 Noweb independent
20997 \begin_inset Quotes erd
20998 \end_inset
20999
21000  way, i.e., you will be able to use this new LyX feature with some other literate
21001  programming tool of your choice by just changing your LyX preferences.
21002 \end_layout
21003
21004 \begin_layout Subsubsection
21005 Generating documents and code (weaving and tangling)
21006 \end_layout
21007
21008 \begin_layout Paragraph
21009 Selecting the document class
21010 \end_layout
21011
21012 \begin_layout Standard
21013 If you have installed Noweb and LyX successfully, whenever you open a new
21014  document or try to change the document class of an existing one, you will
21015  find that there are three new document classes available:
21016 \end_layout
21017
21018 \begin_layout Itemize
21019 Article (Noweb)
21020 \end_layout
21021
21022 \begin_layout Itemize
21023 Book (Noweb)
21024 \end_layout
21025
21026 \begin_layout Itemize
21027 Report (Noweb)
21028 \end_layout
21029
21030 \begin_layout Standard
21031 You must select one of them to create your literate documents from.
21032  
21033 \end_layout
21034
21035 \begin_layout Standard
21036 Note that literate documents are not limited to these three classes.
21037  New classes can be generated from other styles like letter or in combination
21038  with other class variations like Article (AMS).
21039  If you have special needs that cannot be covered by one of the existing
21040  classes, let the LyX developers list (lyx-devel@lists.lyx.org) know and we
21041  will arrange to insert a new entry, or teach you how to do it.
21042 \begin_inset Foot
21043 status collapsed
21044
21045 \begin_layout Standard
21046 It is very simple, it involves the creation of a file with four lines, and
21047  re-running of the auto configuration.
21048 \end_layout
21049
21050 \end_inset
21051
21052  Moreover, if you use a literate tool other than Noweb you may need to create
21053  a new set of document classes for it.
21054 \end_layout
21055
21056 \begin_layout Paragraph
21057 Typing code in
21058 \end_layout
21059
21060 \begin_layout Standard
21061 LyX enables you to write code with a layout named 
21062 \noun on
21063 Scrap
21064 \noun default
21065 .
21066 \begin_inset Foot
21067 status collapsed
21068
21069 \begin_layout Standard
21070 The equivalent Noweb term is 
21071 \begin_inset Quotes eld
21072 \end_inset
21073
21074 Chunk
21075 \begin_inset Quotes erd
21076 \end_inset
21077
21078 .
21079  For historical reasons, I got used to the term 
21080 \begin_inset Quotes eld
21081 \end_inset
21082
21083 scrap
21084 \begin_inset Quotes erd
21085 \end_inset
21086
21087  introduced by other literate tool named Nuweb, which I used for many years
21088  before rendering myself to Noweb.
21089 \end_layout
21090
21091 \end_inset
21092
21093  Noweb delimits scraps like this:
21094 \end_layout
21095
21096 \begin_layout LyX-Code
21097 <<My scrap>>=
21098 \end_layout
21099
21100 \begin_layout LyX-Code
21101   code
21102 \end_layout
21103
21104 \begin_layout LyX-Code
21105   more code
21106 \end_layout
21107
21108 \begin_layout LyX-Code
21109   even more code
21110 \end_layout
21111
21112 \begin_layout LyX-Code
21113   @
21114 \end_layout
21115
21116 \begin_layout Standard
21117 The problem is that whatever is written in between the << and the 
21118 \family typewriter
21119 @
21120 \family default
21121  must be taken literally, i.e., LyX should be prevented from making any special
21122  interpretation of what has been written.
21123  This is handled by a special layout named Scrap, that works like a normal
21124  paragraph but has a free spacing capability.
21125 \end_layout
21126
21127 \begin_layout Standard
21128 The down side of the Scrap paragraph layout is that consecutive paragraphs
21129  of code will be spaced with one empty line in the source code and also
21130  in the printed documentation.
21131  The work around is to enter each line of code within a single Scrap, with
21132  a newline (ctrl-return).
21133  The example above will look like this:
21134 \begin_inset Foot
21135 status collapsed
21136
21137 \begin_layout Standard
21138 If you have a printed version of this document you will not see any difference
21139  between the previous example and this one.
21140 \end_layout
21141
21142 \end_inset
21143
21144
21145 \end_layout
21146
21147 \begin_layout LyX-Code
21148 <<My scrap>>=
21149 \newline
21150   code
21151 \newline
21152   more code
21153 \newline
21154   even more code
21155 \newline
21156   @
21157 \end_layout
21158
21159 \begin_layout Standard
21160 This layout works fine.
21161  The only real inconvenience is that you have to type ctrl-return instead
21162  of a plain return.
21163 \begin_inset Foot
21164 status collapsed
21165
21166 \begin_layout Standard
21167 It is in my list of 
21168 \begin_inset Quotes eld
21169 \end_inset
21170
21171 improvements
21172 \begin_inset Quotes erd
21173 \end_inset
21174
21175  to fix that.
21176 \end_layout
21177
21178 \end_inset
21179
21180
21181 \end_layout
21182
21183 \begin_layout Standard
21184 As a special note, you can also use the 
21185 \begin_inset Quotes eld
21186 \end_inset
21187
21188 %def
21189 \begin_inset Quotes erd
21190 \end_inset
21191
21192  construct of Noweb in your scraps to add items to Noweb's identifier cross-refe
21193 rence:
21194 \end_layout
21195
21196 \begin_layout LyX-Code
21197 <<My scrap>>=
21198 \newline
21199   def some_function(args):
21200 \newline
21201     "This is the doc string for this
21202  function."
21203 \newline
21204     print "My args: ", args
21205 \end_layout
21206
21207 \begin_layout LyX-Code
21208 @ %def some_function
21209 \end_layout
21210
21211 \begin_layout Standard
21212 For an example of this usage and the resulting cross-reference output, look
21213  at the Literate python program in 
21214 \emph on
21215 LIBDIR/examples/listerrors.lyx 
21216 \emph default
21217 which should make this all clear.
21218 \end_layout
21219
21220 \begin_layout Paragraph
21221 Generating the documentation
21222 \end_layout
21223
21224 \begin_layout Standard
21225 At this point you already have a new document file with a proper document
21226  class, and with some code and text on it.
21227  How do I print it? The answer is simple, you select 
21228 \family sans
21229 \bar under
21230 V
21231 \bar default
21232 iew\SpecialChar \menuseparator
21233
21234 \bar under
21235 D
21236 \bar default
21237 VI,
21238 \family default
21239  etc.
21240  Just like you would do for a plain document.
21241  No special procedure is required.
21242 \end_layout
21243
21244 \begin_layout Standard
21245 To help orientate you, I will now explain what happens inside LyX:
21246 \end_layout
21247
21248 \begin_layout Enumerate
21249 When the 
21250 \family sans
21251 \bar under
21252 U
21253 \bar default
21254 pdate\SpecialChar \menuseparator
21255
21256 \bar under
21257 D
21258 \bar default
21259 VI 
21260 \family default
21261 menu option is chosen, a latex file is generated.
21262  
21263 \end_layout
21264
21265 \begin_deeper
21266 \begin_layout Standard
21267 If the document is of any literate class the generated file will be named
21268  with an extension name defined by the 
21269 \begin_inset Quotes eld
21270 \end_inset
21271
21272 literate
21273 \begin_inset Quotes erd
21274 \end_inset
21275
21276  format (defined in the Preferences panel), otherwise the file will have
21277  the usual 
21278 \family typewriter
21279 .tex 
21280 \family default
21281 extension.
21282 \end_layout
21283
21284 \end_deeper
21285 \begin_layout Enumerate
21286 Note that the only difference so far is in the name of the file, no special
21287  processing is required by LyX.
21288  Given that you formatted the code using the Scrap layout that, by itself,
21289  takes care of the business.
21290 \end_layout
21291
21292 \begin_layout Enumerate
21293 If the document is of any literate class LyX will then use the internal
21294  LyX to Noweb converter, followed by the Noweb to LaTeX converter
21295 \begin_inset Foot
21296 status open
21297
21298 \begin_layout Standard
21299 The converters are defined in the 
21300 \family sans
21301 \bar under
21302 T
21303 \bar default
21304 ools\SpecialChar \menuseparator
21305
21306 \bar under
21307 P
21308 \bar default
21309 references
21310 \family default
21311  panel, under the 
21312 \begin_inset Quotes eld
21313 \end_inset
21314
21315 Conversion
21316 \begin_inset Quotes erd
21317 \end_inset
21318
21319  tab.
21320 \end_layout
21321
21322 \end_inset
21323
21324  to generate the LaTeX file.
21325 \end_layout
21326
21327 \begin_deeper
21328 \begin_layout Standard
21329 Otherwise it will just skip this step.
21330 \end_layout
21331
21332 \end_deeper
21333 \begin_layout Enumerate
21334 Finally, LaTeX is invoked and the regular post processing continues as in
21335  a plain document.
21336 \end_layout
21337
21338 \begin_layout Standard
21339 Independence from a particular 
21340 \begin_inset Quotes eld
21341 \end_inset
21342
21343 literate tool
21344 \begin_inset Quotes erd
21345 \end_inset
21346
21347  is easily achieved by changing the commands that are run by the various
21348  converters.
21349 \end_layout
21350
21351 \begin_layout Paragraph
21352 Generating the code
21353 \end_layout
21354
21355 \begin_layout Standard
21356 When the build menu option is chosen or the corresponding button in the
21357  toolbar is pressed, a latex file is generated just like step 1 above.
21358  Next, LyX invokes the
21359 \family typewriter
21360  Noweb->Program
21361 \family default
21362  converter.
21363  Typically, this converter (like any other converter), has two parts:
21364 \end_layout
21365
21366 \begin_layout Enumerate
21367 The converter program itself.
21368  This program performs the conversion from the one format to the other (in
21369  this case, from the Noweb format to the Program pseudo-format).
21370 \end_layout
21371
21372 \begin_layout Enumerate
21373 The error log parser.
21374  This is a program whose sole purpose is to rewrite error messages in a
21375  format that LyX understands.
21376  This makes it possible for LyX to place error boxes in the right places
21377  in the file buffer.
21378 \end_layout
21379
21380 \begin_layout Standard
21381 The first part, the 
21382 \begin_inset Quotes eld
21383 \end_inset
21384
21385 Converter
21386 \begin_inset Quotes erd
21387 \end_inset
21388
21389  setting, should be set to 
21390 \begin_inset Quotes eld
21391 \end_inset
21392
21393
21394 \family typewriter
21395 build-script $$i
21396 \family default
21397
21398 \begin_inset Quotes erd
21399 \end_inset
21400
21401 .
21402  This basically means that LyX will call 
21403 \begin_inset Quotes eld
21404 \end_inset
21405
21406 build-script
21407 \begin_inset Quotes erd
21408 \end_inset
21409
21410  (a program or script) with the name of the Noweb file (generally a file
21411  in the LyX temp directory).
21412  
21413 \end_layout
21414
21415 \begin_layout Standard
21416 This is an implementation of 
21417 \begin_inset Quotes eld
21418 \end_inset
21419
21420 build-script
21421 \begin_inset Quotes erd
21422 \end_inset
21423
21424  that you can place in a directory on your path:
21425 \end_layout
21426
21427 \begin_layout LyX-Code
21428 #!/bin/sh
21429 \end_layout
21430
21431 \begin_layout LyX-Code
21432 #
21433 \end_layout
21434
21435 \begin_layout LyX-Code
21436 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
21437 \end_layout
21438
21439 \begin_layout Standard
21440 The next part of the converter setting is the 
21441 \begin_inset Quotes eld
21442 \end_inset
21443
21444 Flags
21445 \begin_inset Quotes erd
21446 \end_inset
21447
21448  which is to be set to 
21449 \begin_inset Quotes eld
21450 \end_inset
21451
21452
21453 \family typewriter
21454 originaldir,parselog=listerrors
21455 \family default
21456
21457 \begin_inset Quotes erd
21458 \end_inset
21459
21460 .
21461  This will run any errors that are generated by the 
21462 \begin_inset Quotes eld
21463 \end_inset
21464
21465 build-script
21466 \begin_inset Quotes erd
21467 \end_inset
21468
21469  process through the 
21470 \begin_inset Quotes eld
21471 \end_inset
21472
21473 listerrors
21474 \begin_inset Quotes erd
21475 \end_inset
21476
21477  program.
21478 \end_layout
21479
21480 \begin_layout Standard
21481 The converter code looks in 
21482 \emph on
21483 MYLYXDIR/scripts 
21484 \emph default
21485 first, then in
21486 \emph on
21487  LIBDIR/scripts 
21488 \emph default
21489 then on the path for the 
21490 \begin_inset Quotes eld
21491 \end_inset
21492
21493 listerrors
21494 \begin_inset Quotes erd
21495 \end_inset
21496
21497  program.
21498 \end_layout
21499
21500 \begin_layout Paragraph
21501 Build instructions in the document
21502 \end_layout
21503
21504 \begin_layout Standard
21505 The last piece of the integration between LyX and noweb is the 
21506 \begin_inset Quotes eld
21507 \end_inset
21508
21509 build-script
21510 \begin_inset Quotes erd
21511 \end_inset
21512
21513  scrap.
21514  Generally, the instructions for building your program should be embedded
21515  in a scrap of its own.
21516  The noweb-specific 
21517 \begin_inset Quotes eld
21518 \end_inset
21519
21520 build-script
21521 \begin_inset Quotes erd
21522 \end_inset
21523
21524  above uses the notangle command to look for this scrap (called 
21525 \begin_inset Quotes eld
21526 \end_inset
21527
21528 build-script
21529 \begin_inset Quotes erd
21530 \end_inset
21531
21532 ) and runs its contents through 
21533 \begin_inset Quotes eld
21534 \end_inset
21535
21536 sh
21537 \begin_inset Quotes erd
21538 \end_inset
21539
21540 .
21541 \end_layout
21542
21543 \begin_layout Standard
21544 Typically, such a scrap would look something like this:
21545 \end_layout
21546
21547 \begin_layout LyX-Code
21548 <<build-script>>=
21549 \newline
21550 #!/bin/sh
21551 \newline
21552
21553 \newline
21554 if [ -z "${NOWEB_SOURCE}" ]
21555 \newline
21556 then
21557 \newline
21558   NOWEB_SOURCE=myfile.nw
21559 \newline
21560
21561 fi
21562 \newline
21563 [...
21564  code to extract files ...]
21565 \newline
21566 [...
21567  code to compile files ...]
21568 \newline
21569 @
21570 \end_layout
21571
21572 \begin_layout Standard
21573 Look in 
21574 \emph on
21575 LIBDIR/examples/listerrors.lyx 
21576 \emph default
21577 or in 
21578 \emph on
21579 LIBDIR/examples/Literate.lyx
21580 \emph default
21581  which implement two versions of the 
21582 \begin_inset Quotes eld
21583 \end_inset
21584
21585 listerrors
21586 \begin_inset Quotes erd
21587 \end_inset
21588
21589  program for some illustrations of how all of these pieces go together or
21590  in 
21591 \emph on
21592 LIBDIR/examples/noweb2lyx.lyx.
21593  
21594 \emph default
21595 Interestingly, these three files show off the language-indepence of the
21596  LyX literate programming support since they are written in Python, C and
21597  Perl respectively.
21598 \end_layout
21599
21600 \begin_layout Subsubsection
21601 Configuring LyX
21602 \end_layout
21603
21604 \begin_layout Standard
21605 All the Literate Programming support is configured by the 
21606 \family sans
21607 \bar under
21608 T
21609 \bar default
21610 ools\SpecialChar \menuseparator
21611
21612 \bar under
21613 P
21614 \bar default
21615 references
21616 \family default
21617  panel in the 
21618 \begin_inset Quotes eld
21619 \end_inset
21620
21621 Conversion
21622 \begin_inset Quotes erd
21623 \end_inset
21624
21625  tab.
21626  The important parts are:
21627 \end_layout
21628
21629 \begin_layout Description
21630 the\InsetSpace ~
21631
21632 \begin_inset Quotes eld
21633 \end_inset
21634
21635 literate
21636 \begin_inset Quotes erd
21637 \end_inset
21638
21639 \InsetSpace ~
21640 format Set up via the Formats tab, this is where the Noweb-specific pieces
21641  are set up.
21642  The 
21643 \family sans
21644 GUI Name
21645 \family default
21646  is set to 
21647 \family typewriter
21648 NoWeb
21649 \family default
21650 , the file extension is set to 
21651 \family typewriter
21652 .nw
21653 \family default
21654 .
21655  This tells LyX to create a file with a 
21656 \family typewriter
21657 .nw
21658 \family default
21659  extension in the first step of the conversion process.
21660 \end_layout
21661
21662 \begin_layout Description
21663 the\InsetSpace ~
21664
21665 \family sans
21666 Program
21667 \family default
21668 \InsetSpace ~
21669 format This is an empty format whose sole purpose is to be the endpoint
21670  of a conversion (which then allows us to set up a converter for it).
21671 \end_layout
21672
21673 \begin_layout Description
21674
21675 \family sans
21676 NoWeb
21677 \family default
21678 ->
21679 \family sans
21680 LaTeX
21681 \family default
21682  This converter performs the 
21683 \begin_inset Quotes eld
21684 \end_inset
21685
21686 weaving
21687 \begin_inset Quotes erd
21688 \end_inset
21689
21690  of the literate document.
21691  For Noweb, it is set to 
21692 \begin_inset Quotes eld
21693 \end_inset
21694
21695
21696 \family typewriter
21697 noweave -delay -index $$i > $$o
21698 \family default
21699
21700 \begin_inset Quotes erd
21701 \end_inset
21702
21703
21704 \end_layout
21705
21706 \begin_layout Description
21707
21708 \family sans
21709 NoWeb
21710 \family default
21711 ->
21712 \family sans
21713 Program
21714 \family default
21715  This performs the 
21716 \begin_inset Quotes eld
21717 \end_inset
21718
21719 tangling step
21720 \begin_inset Quotes erd
21721 \end_inset
21722
21723 .
21724  As stated above, the Converter is set to 
21725 \begin_inset Quotes eld
21726 \end_inset
21727
21728
21729 \family typewriter
21730 build-script $$i
21731 \family default
21732
21733 \begin_inset Quotes erd
21734 \end_inset
21735
21736 , with Flags set to 
21737 \begin_inset Quotes eld
21738 \end_inset
21739
21740
21741 \family typewriter
21742 originaldir,parselog=listerrors
21743 \family default
21744
21745 \begin_inset Quotes erd
21746 \end_inset
21747
21748 .
21749 \end_layout
21750
21751 \begin_layout Subsubsection
21752 Debug extensions
21753 \end_layout
21754
21755 \begin_layout Standard
21756 There is also a new function implemented in the LyX server, the 
21757 \begin_inset Quotes eld
21758 \end_inset
21759
21760 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
21761  
21762 \end_layout
21763
21764 \begin_layout Standard
21765 When debugging code with ddd/gdb, it is possible to invoke a text editor
21766  at the current execution position with a single key stroke.
21767  The default ddd configuration for that is shift-ctrl-V.
21768  It happens that you can define the editor command line invocation in ddd
21769  by accessing the
21770 \family sans
21771  
21772 \bar under
21773 E
21774 \bar default
21775 dit\SpecialChar \menuseparator
21776
21777 \bar under
21778 P
21779 \bar default
21780 references\SpecialChar \menuseparator
21781
21782 \bar under
21783 H
21784 \bar default
21785 elpers 
21786 \family default
21787 dialog and changing the "Edit Sources" entry.
21788 \end_layout
21789
21790 \begin_layout Standard
21791 I take advantage of the new created LyX server function and this ddd feature,
21792  and set 
21793 \begin_inset Quotes eld
21794 \end_inset
21795
21796 Edit Sources
21797 \begin_inset Quotes erd
21798 \end_inset
21799
21800  to:
21801 \end_layout
21802
21803 \begin_layout LyX-Code
21804 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21805 \end_layout
21806
21807 \begin_layout Standard
21808 With this, whenever you are using ddd and find a point in the program that
21809  you want to edit, you just press shift-ctrl-V (in the ddd window), and
21810  ddd you forward this information to LyX through the LyX server and then
21811  the LyX window will show the same file with the cursor at the same position
21812  ddd was pointing to.
21813  No more guessing or long scrolling to locate a point in the program back
21814  from debugging !
21815 \end_layout
21816
21817 \begin_layout Standard
21818 Note however that you must enable the LyX server to get this feature working
21819  (it is disabled by default).
21820  You can enable it in 
21821 \family sans
21822 Preferences
21823 \family default
21824  (tabs 
21825 \family sans
21826 Inputs
21827 \family default
21828
21829 \family sans
21830 Paths
21831 \family default
21832 ) by entering in the 
21833 \family sans
21834 LyXserver pipe
21835 \family default
21836  a path like 
21837 \begin_inset Quotes eld
21838 \end_inset
21839
21840
21841 \family typewriter
21842 /home/<your-home-directory>/.lyx/lyxpipe
21843 \family default
21844
21845 \begin_inset Quotes erd
21846 \end_inset
21847
21848
21849 \end_layout
21850
21851 \begin_layout Standard
21852 Read the LyX server documentation in the 
21853 \emph on
21854 Customization Manual
21855 \emph default
21856  for further information.
21857 \end_layout
21858
21859 \begin_layout Subsubsection
21860 Toolbar extensions
21861 \end_layout
21862
21863 \begin_layout Standard
21864 There are six new buttons that can be added to your LyX toolbar.
21865  Five of these buttons are short cuts to layout styles: 
21866 \family sans
21867 Standard
21868 \family default
21869
21870 \family sans
21871 Section
21872 \family default
21873
21874 \family sans
21875 LaTeX
21876 \family default
21877
21878 \family sans
21879 LyX-Code
21880 \family default
21881 , and 
21882 \family sans
21883 Scrap
21884 \family default
21885 .
21886  The last one is a short cut to the 
21887 \begin_inset Quotes eld
21888 \end_inset
21889
21890 Build Program
21891 \begin_inset Quotes erd
21892 \end_inset
21893
21894  File menu entry.
21895  
21896 \end_layout
21897
21898 \begin_layout Standard
21899 LyX has a range of buttons that are available for tool bar customization.
21900  In my toolbar I like to combine the six short cuts above with two more:
21901  One for 
21902 \family sans
21903 \bar under
21904 V
21905 \bar default
21906 iew
21907 \family default
21908 \SpecialChar \menuseparator
21909
21910 \family sans
21911 \bar under
21912 U
21913 \bar default
21914 pdate
21915 \family default
21916 \SpecialChar \menuseparator
21917
21918 \family sans
21919 \bar under
21920 D
21921 \bar default
21922 VI
21923 \family default
21924  and the other for 
21925 \family sans
21926 \bar under
21927 V
21928 \bar default
21929 iew\SpecialChar \menuseparator
21930
21931 \bar under
21932 D
21933 \bar default
21934 VI
21935 \family default
21936  File menu entries.
21937  Here is how it looks like:
21938 \end_layout
21939
21940 \begin_layout LyX-Code
21941 Toolbar
21942 \end_layout
21943
21944 \begin_layout LyX-Code
21945   Layouts
21946 \end_layout
21947
21948 \begin_layout LyX-Code
21949   Icon "layout Standard"
21950 \end_layout
21951
21952 \begin_layout LyX-Code
21953   Icon "layout Section"
21954 \end_layout
21955
21956 \begin_layout LyX-Code
21957   Icon "layout LaTeX"
21958 \end_layout
21959
21960 \begin_layout LyX-Code
21961   Icon "layout LyX-Code"
21962 \end_layout
21963
21964 \begin_layout LyX-Code
21965   Icon "layout Scrap"
21966 \end_layout
21967
21968 \begin_layout LyX-Code
21969   Separator
21970 \end_layout
21971
21972 \begin_layout LyX-Code
21973   Icon "buffer-view"
21974 \end_layout
21975
21976 \begin_layout LyX-Code
21977   Icon "buffer-typeset"
21978 \end_layout
21979
21980 \begin_layout LyX-Code
21981   Icon "build-program"
21982 \end_layout
21983
21984 \begin_layout LyX-Code
21985   Separator
21986 \end_layout
21987
21988 \begin_layout LyX-Code
21989 .
21990 \end_layout
21991
21992 \begin_layout LyX-Code
21993 .
21994 \end_layout
21995
21996 \begin_layout LyX-Code
21997 .
21998 \end_layout
21999
22000 \begin_layout LyX-Code
22001 End
22002 \end_layout
22003
22004 \begin_layout Subsubsection
22005 Colors customization
22006 \end_layout
22007
22008 \begin_layout Standard
22009 There are a number of colors in LyX that can be customized in 
22010 \family sans
22011 Preferences
22012 \family default
22013 .
22014  One of the things that bothers people is the LaTeX font color.
22015  The default color is red, since the scraps uses LaTeX font, and there is
22016  a lot of scraps in literate documents, you may get tired of seeing everything
22017  in red.
22018  You can change it by going to the tabs 
22019 \family sans
22020 Look&Feel
22021 \family default
22022
22023 \family sans
22024 Colors.
22025 \end_layout
22026
22027 \begin_layout Standard
22028 The next thing is the visible presence of the newline character in the screen.
22029  You can choose the color of this particular character and make it blend
22030  in the background.
22031  I recommend you choosing a color that is close to the background but not
22032  equal, that way you still can see it is there, but it is not bothering
22033  you anymore.
22034  
22035 \end_layout
22036
22037 \begin_layout Chapter
22038 Secrets of the LaTeX Masters
22039 \begin_inset LatexCommand \label{cha:secrets}
22040
22041 \end_inset
22042
22043
22044 \end_layout
22045
22046 \begin_layout Standard
22047 Though LyX is a powerful tool, it cannot hope to support everything that
22048  can be done with pure TeX/LaTeX.
22049  However, many familiar dirty TeX and LaTeX tricks can be done within LyX,
22050  as long as you are not afraid to use that 
22051 \begin_inset Quotes eld
22052 \end_inset
22053
22054 TeX
22055 \begin_inset Quotes erd
22056 \end_inset
22057
22058  button on the toolbar or add things to the LaTeX preamble.
22059  This section lists some tips, tricks, and otherwise cool ideas to give
22060  your document that extra little flair.
22061  
22062 \emph on
22063 Do try this at home
22064 \emph default
22065 , just start with something a little smaller and less important than your
22066  dissertation!
22067 \end_layout
22068
22069 \begin_layout Standard
22070 Most ideas in this section require less common files in your LaTeX installation.
22071  If you have a system like teTeX, most will already be available.
22072  A few, however, will need to be downloaded from one of the CTAN archives.
22073  Often, there are several ways to do something, or several LaTeX style files
22074  which do the same thing.
22075  We do not endorse one choice over another, we simply claim that we have
22076  done a particular task with a particular file.
22077  Put on your wizard hat, keep an eye out for dragons, and let us begin.
22078 \end_layout
22079
22080 \begin_layout Section
22081 Tricks for Footnotes and Margin Notes
22082 \end_layout
22083
22084 \begin_layout Standard
22085 suggested by 
22086 \noun on
22087 Robin Socha
22088 \end_layout
22089
22090 \begin_layout Subsection
22091 Footnotes 
22092 \end_layout
22093
22094 \begin_layout Standard
22095 LyX cannot yet take care of setting the footnote numbering back to 1 after
22096  each section in the 
22097 \begin_inset Quotes eld
22098 \end_inset
22099
22100
22101 \family sans
22102 article
22103 \family default
22104
22105 \begin_inset Quotes erd
22106 \end_inset
22107
22108
22109 \family roman
22110  document class or changing the counter style.
22111  You'll need to insert LaTeX commands like the following to achieve that:
22112 \end_layout
22113
22114 \begin_layout Standard
22115 \begin_inset ERT
22116 status inlined
22117
22118 \begin_layout Standard
22119
22120
22121 \backslash
22122 setcounter{footnote}{0}
22123 \end_layout
22124
22125 \end_inset
22126
22127  Using 
22128 \family typewriter
22129
22130 \backslash
22131 setcounter{footnote}{0}
22132 \family roman
22133  will set the counter back to 1
22134 \begin_inset Foot
22135 status collapsed
22136
22137 \begin_layout Standard
22138 The counter has been set back to 1.
22139 \end_layout
22140
22141 \end_inset
22142
22143 .
22144 \end_layout
22145
22146 \begin_layout Standard
22147 The following command will change the numbering to small letters.
22148  Take a look at the next footnote in your xdvi or ghostview 
22149 \begin_inset ERT
22150 status inlined
22151
22152 \begin_layout Standard
22153
22154
22155 \backslash
22156 renewcommand{
22157 \backslash
22158 thefootnote}{
22159 \backslash
22160 alph{footnote}}
22161 \end_layout
22162
22163 \end_inset
22164
22165 :
22166 \begin_inset Foot
22167 status collapsed
22168
22169 \begin_layout Standard
22170 This is an example for a footnote with alphabetic numbering.
22171 \newline
22172 Use
22173 \family typewriter
22174  
22175 \backslash
22176 renewcommand{
22177 \backslash
22178 thefootnote {
22179 \backslash
22180 alph{footnote}} 
22181 \family roman
22182 to get this.
22183 \end_layout
22184
22185 \end_inset
22186
22187
22188 \end_layout
22189
22190 \begin_layout Standard
22191 The next command sets the counter style back to default, i.e.
22192  
22193 \family typewriter
22194
22195 \backslash
22196 arabic
22197 \family default
22198
22199 \begin_inset Foot
22200 status collapsed
22201
22202 \begin_layout Standard
22203 Use
22204 \family typewriter
22205  
22206 \backslash
22207 renewcommand{
22208 \backslash
22209 thefootnote}{
22210 \backslash
22211 arabic{footnote}}
22212 \family roman
22213  to set the counter--style back to LyX's default, i.e.
22214  
22215 \backslash
22216 arabic.
22217 \family default
22218
22219 \begin_inset ERT
22220 status collapsed
22221
22222 \begin_layout Standard
22223
22224
22225 \backslash
22226 renewcommand {
22227 \backslash
22228 thefootnote} {
22229 \backslash
22230 arabic{footnote}}
22231 \end_layout
22232
22233 \end_inset
22234
22235
22236 \end_layout
22237
22238 \end_inset
22239
22240 .
22241 \end_layout
22242
22243 \begin_layout Standard
22244 You can use 
22245 \family typewriter
22246
22247 \backslash
22248 arabic
22249 \family default
22250
22251 \family typewriter
22252
22253 \backslash
22254 roman
22255 \family default
22256
22257 \family typewriter
22258
22259 \backslash
22260 Roman
22261 \family default
22262
22263 \family typewriter
22264
22265 \backslash
22266 alph
22267 \family default
22268  or 
22269 \family typewriter
22270
22271 \backslash
22272 Alph
22273 \family default
22274  and others as counter styles.
22275  Just replace the LaTeX command in the above example and rerun TeX to see
22276  what those styles can do.
22277  
22278 \end_layout
22279
22280 \begin_layout Subsection
22281 Margin Notes
22282 \end_layout
22283
22284 \begin_layout Standard
22285 Here are two examples of neat things you can do to margin notes using LaTeX
22286  commands.
22287 \end_layout
22288
22289 \begin_layout Standard
22290 The following command will make a vertical line appear alongside your text---gre
22291 at for 
22292 \begin_inset Quotes eld
22293 \end_inset
22294
22295 thumbing
22296 \begin_inset Quotes erd
22297 \end_inset
22298
22299
22300 \family typewriter
22301
22302 \backslash
22303 marginpar{
22304 \backslash
22305 rule[-10mm]{30mm}{5mm}}
22306 \family roman
22307 .
22308 \family default
22309
22310 \begin_inset ERT
22311 status inlined
22312
22313 \begin_layout Standard
22314
22315
22316 \backslash
22317 marginpar{
22318 \backslash
22319 rule[-10mm]{30mm}{5mm}}
22320 \end_layout
22321
22322 \end_inset
22323
22324
22325 \end_layout
22326
22327 \begin_layout Standard
22328 Check your dvi- or ghostview-output to see what the 
22329 \family typewriter
22330
22331 \backslash
22332 reversemarginpar 
22333 \family default
22334 command does to the following margin note.
22335 \end_layout
22336
22337 \begin_layout Standard
22338 \begin_inset ERT
22339 status inlined
22340
22341 \begin_layout Standard
22342
22343
22344 \backslash
22345 reversemarginpar
22346 \end_layout
22347
22348 \end_inset
22349
22350
22351 \begin_inset Marginal
22352 status collapsed
22353
22354 \begin_layout Standard
22355 This is a 
22356 \newline
22357 margin note.
22358 \end_layout
22359
22360 \end_inset
22361
22362
22363 \end_layout
22364
22365 \begin_layout Section
22366 Multiple Columns
22367 \end_layout
22368
22369 \begin_layout Standard
22370 by 
22371 \noun on
22372 Lars Gullik Bjønnes
22373 \end_layout
22374
22375 \begin_layout Subsection
22376 Purpose
22377 \end_layout
22378
22379 \begin_layout Standard
22380 The aim for this chapter
22381 \begin_inset Foot
22382 status collapsed
22383
22384 \begin_layout Standard
22385 Editor's note: Lars' original chapter was a masterful description of how
22386  to use the 
22387 \family typewriter
22388 multicol
22389 \family default
22390  package.
22391  However, it was too long to flow smoothly in this document.
22392  I have therefore chosen to excerpt the most important sections here (sorry,
22393  Lars); you can read the original chapter (and more of the story!) in the
22394  example file 
22395 \family typewriter
22396 examples/multicol.lyx
22397 \family default
22398 .
22399  --- mer
22400 \end_layout
22401
22402 \end_inset
22403
22404  is to show how the LaTeX package 
22405 \family typewriter
22406 multicol
22407 \family default
22408  can be used in a LyX document.
22409  As LyX doesn't support the 
22410 \family typewriter
22411 multicol
22412 \family default
22413  package natively yet, we have to use some small hacks.
22414  By reading this section it should be obvious how to do this.
22415 \end_layout
22416
22417 \begin_layout Subsection
22418 Limitations 
22419 \end_layout
22420
22421 \begin_layout Standard
22422 The 
22423 \family typewriter
22424 multicol
22425 \family default
22426  package allows switching between one and multicolumn format on the same
22427  page.
22428  Footnotes are handled correctly (for the most part), but will be placed
22429  at the bottom of the page and not under each column.
22430  LaTeX's float mechanism, however, is partly disabled in the current implementat
22431 ion.
22432  At the moment only page-wide floats can be used within the scope of the
22433  environment.
22434 \end_layout
22435
22436 \begin_layout Subsection
22437 Examples
22438 \end_layout
22439
22440 \begin_layout Subsubsection
22441 Two columns
22442 \end_layout
22443
22444 \begin_layout Standard
22445 If you want to have two columns in your text, you have use LaTeX mode to
22446  insert 
22447 \family typewriter
22448
22449 \backslash
22450 begin{multicols}{2}
22451 \family default
22452  at the point where you want the two column layout to start, and then 
22453 \family typewriter
22454
22455 \backslash
22456 end{multicols}
22457 \family default
22458  where you want it to end.
22459  Like this:
22460 \end_layout
22461
22462 \begin_layout Standard
22463 \begin_inset ERT
22464 status inlined
22465
22466 \begin_layout Standard
22467
22468
22469 \backslash
22470 begin{multicols}{2}
22471 \end_layout
22472
22473 \end_inset
22474
22475
22476 \end_layout
22477
22478 \begin_layout Standard
22479 \noindent
22480
22481 \series bold
22482 \size small
22483 The Adventure of the Empty House
22484 \series default
22485
22486 \newline
22487 by 
22488 \noun on
22489 Sir Arthur Conan Doyle
22490 \end_layout
22491
22492 \begin_layout Standard
22493
22494 \size small
22495 It was in the spring of the year 1894 that all London was interested, and
22496  the fashionable world dismayed, by the murder of the Honourable Ronald
22497  Adair under most unusual and inexplicable circumstances.
22498  The public has already learned those particulars of the crime which came
22499  out in the police investigation, but a good deal was suppressed upon that
22500  occasion, since the case for the prosecution was so overwhelmingly strong
22501  that it was not necessary to bring forward all the facts.
22502  Only now, at the end of nearly ten years, am I allowed to supply those
22503  missing links which make up the whole of that remarkable chain.
22504  The crime was of interest in itself, but that interest was as nothing to
22505  me compared to the inconceivable sequel, which afforded me the greatest
22506  shock and surprise of any event in my adventurous life.
22507  Even now, after this long interval, I find myself thrilling as I think
22508  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22509 ty which utterly submerged my mind.
22510  Let me say to that public, which has shown some interest in those glimpses
22511  which I have occasionally given them of the thoughts and actions of a very
22512  remarkable man, that they are not to blame me if I have not shared my knowledge
22513  with them, for I should have considered it my first duty to do so, had
22514  I not been barred by a positive prohibition from his own lips, which was
22515  only withdrawn upon the third of last month.
22516 \end_layout
22517
22518 \begin_layout Standard
22519 \begin_inset ERT
22520 status inlined
22521
22522 \begin_layout Standard
22523
22524
22525 \backslash
22526 end{multicols}
22527 \end_layout
22528
22529 \end_inset
22530
22531
22532 \end_layout
22533
22534 \begin_layout Subsubsection
22535 Multiple columns
22536 \end_layout
22537
22538 \begin_layout Standard
22539 The same pattern is used when you want more than two columns:
22540 \end_layout
22541
22542 \begin_layout Standard
22543 \begin_inset ERT
22544 status inlined
22545
22546 \begin_layout Standard
22547
22548
22549 \backslash
22550 begin{multicols}{3}
22551 \end_layout
22552
22553 \end_inset
22554
22555
22556 \end_layout
22557
22558 \begin_layout Standard
22559
22560 \size footnotesize
22561 It can be imagined that my close intimacy with Sherlock Holmes had interested
22562  me deeply in crime, and that after his disappearance I never failed to
22563  read with care the various problems which came before the public.
22564  And I even attempted, more than once, for my own private satisfaction,
22565  to employ his methods in their solution, though with indifferent success.
22566  There was none, however, which appealed to me like this tragedy of Ronald
22567  Adair.
22568  As I read the evidence at the inquest, which led up to a verdict of willful
22569  murder against some person or persons unknown, I realized more clearly
22570  than I had ever done the loss which the community had sustained by the
22571  death of Sherlock Holmes.
22572  There were points about this strange business which would, I was sure,
22573  have specially appealed to him, and the efforts of the police would have
22574  been supplemented, or more probably anticipated, by the trained observation
22575  and the alert mind of the first criminal agent in Europe.
22576  All day, as I drove upon my round, I turned over the case in my mind and
22577  found no explanation which appeared to me to be adequate.
22578  At the risk of telling a twice-told tale, I will recapitulate the facts
22579  as they were known to the public at the conclusion of the inquest.
22580 \end_layout
22581
22582 \begin_layout Standard
22583 \begin_inset ERT
22584 status inlined
22585
22586 \begin_layout Standard
22587
22588
22589 \backslash
22590 end{multicols}
22591 \end_layout
22592
22593 \end_inset
22594
22595
22596 \end_layout
22597
22598 \begin_layout Standard
22599 You can have have more than 3 columns if you want to, but that might not
22600  be very pleasant for the eye.
22601 \end_layout
22602
22603 \begin_layout Subsubsection
22604 Columns inside columns
22605 \end_layout
22606
22607 \begin_layout Standard
22608 You can even have columns inside columns:
22609 \end_layout
22610
22611 \begin_layout Standard
22612 \begin_inset ERT
22613 status inlined
22614
22615 \begin_layout Standard
22616
22617
22618 \backslash
22619 begin{multicols}{2}
22620 \end_layout
22621
22622 \end_inset
22623
22624
22625 \end_layout
22626
22627 \begin_layout Standard
22628
22629 \size footnotesize
22630 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
22631  at that time governor of one of the Australian colonies.
22632  Adair's mother had returned from Australia to undergo the operation for
22633  cataract, and she, her son Ronald, and her daughter Hilda were living together
22634  at 427 Park Lane.
22635 \end_layout
22636
22637 \begin_layout Standard
22638 \begin_inset ERT
22639 status inlined
22640
22641 \begin_layout Standard
22642
22643
22644 \backslash
22645 begin{multicols}{2}
22646 \end_layout
22647
22648 \end_inset
22649
22650
22651 \end_layout
22652
22653 \begin_layout Standard
22654
22655 \size footnotesize
22656 The youth moved in the best society--had, so far as was known, no enemies
22657  and no particular vices.
22658  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
22659  had been broken off by mutual consent some months before, and there was
22660  no sign that it had left any very profound feeling behind it.
22661  For the rest {sic} the man's life moved in a narrow and conventional circle,
22662  for his habits were quiet and his nature unemotional.
22663  Yet it was upon this easy-going young aristocrat that death came, in most
22664  strange and unexpected form, between the hours of ten and eleven-twenty
22665  on the night of March 30, 1894.
22666 \end_layout
22667
22668 \begin_layout Standard
22669 \begin_inset ERT
22670 status inlined
22671
22672 \begin_layout Standard
22673
22674
22675 \backslash
22676 end{multicols}
22677 \end_layout
22678
22679 \end_inset
22680
22681
22682 \end_layout
22683
22684 \begin_layout Standard
22685
22686 \size footnotesize
22687 Ronald Adair was fond of cards--playing continually, but never for such
22688  stakes as would hurt him.
22689  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22690  It was shown that, after dinner on the day of his death, he had played
22691  a rubber of whist at the latter club.
22692  He had also played there in the afternoon.
22693
22694 \size default
22695  
22696 \size footnotesize
22697 The evidence of those who had played with him-- Mr.
22698  Murray, Sir John Hardy, and Colonel Moran--showed that the game was whist,
22699  and that there was a fairly equal fall of the cards.
22700  Adair might have lost five pounds, but not more.
22701  His fortune was a considerable one, and such a loss could not in any way
22702  affect him.
22703  He had played nearly every day at one club or other, but he was a cautious
22704  player, and usually rose a winner.
22705  It came out in evidence that, in partnership with Colonel Moran, he had
22706  actually won as much as four hundred and twenty pounds in a sitting, some
22707  weeks before, from Godfrey Milner and Lord Balmoral.
22708  So much for his recent history as it came out at the inquest.
22709 \end_layout
22710
22711 \begin_layout Standard
22712 \begin_inset ERT
22713 status inlined
22714
22715 \begin_layout Standard
22716
22717
22718 \backslash
22719 end{multicols}
22720 \end_layout
22721
22722 \end_inset
22723
22724
22725 \end_layout
22726
22727 \begin_layout Standard
22728 Please do read the file 
22729 \family typewriter
22730 examples/multicol.lyx
22731 \family default
22732  for more advanced examples including column and header spacing, vertical
22733  separator lines, and more.
22734 \end_layout
22735
22736 \begin_layout Section
22737 Numbering in the 
22738 \family sans
22739 Enumerate
22740 \family default
22741  Paragraph Environment
22742 \begin_inset OptArg
22743 status collapsed
22744
22745 \begin_layout Standard
22746 Numbering in Enumerate
22747 \end_layout
22748
22749 \end_inset
22750
22751
22752 \end_layout
22753
22754 \begin_layout Standard
22755 by 
22756 \noun on
22757 John Weiss
22758 \end_layout
22759
22760 \begin_layout Standard
22761 \begin_inset VSpace bigskip
22762 \end_inset
22763
22764
22765 \end_layout
22766
22767 \begin_layout Standard
22768 \noindent
22769 The default numbering for the 
22770 \family sans
22771 Enumerate
22772 \family default
22773  paragraph environment begins with Arabic numbers and ends with uppercase
22774  letters.
22775  Suppose, however, you wanted a different type of numbering scheme.
22776  Here's a quickie example of how to change the numbering scheme:
22777 \end_layout
22778
22779 \begin_layout LyX-Code
22780
22781 \backslash
22782 renewcommand{
22783 \backslash
22784 labelenumi}{
22785 \backslash
22786 Roman{enumi}.}
22787 \end_layout
22788
22789 \begin_layout LyX-Code
22790
22791 \backslash
22792 renewcommand{
22793 \backslash
22794 labelenumii}{
22795 \backslash
22796 Alph{enumii}.}
22797 \end_layout
22798
22799 \begin_layout LyX-Code
22800
22801 \backslash
22802 renewcommand{
22803 \backslash
22804 labelenumiii}{
22805 \backslash
22806 arabic{enumiii}.}
22807 \end_layout
22808
22809 \begin_layout LyX-Code
22810
22811 \backslash
22812 renewcommand{
22813 \backslash
22814 labelenumiv}{
22815 \backslash
22816 alph{enumiv}.)}
22817 \end_layout
22818
22819 \begin_layout Standard
22820 \SpecialChar \ldots{}
22821  which changes the numbering scheme to uppercase Roman numerals, uppercase
22822  letters, Arabic numbers, and lowercase letter.
22823 \end_layout
22824
22825 \begin_layout Standard
22826 Additionally, the previous example also adds a little bit extra to the numbering
22827  scheme.
22828  For example, the first level label actually looks like: 
22829 \begin_inset Quotes eld
22830 \end_inset
22831
22832 I.
22833 \begin_inset Quotes erd
22834 \end_inset
22835
22836 .
22837  For ease of reading, we'll describe what the numbering schemes look like
22838  using a notation something like this: <
22839 \begin_inset Quotes eld
22840 \end_inset
22841
22842 I.
22843 \begin_inset Quotes erd
22844 \end_inset
22845
22846 ,\InsetSpace ~
22847
22848 \begin_inset Quotes erd
22849 \end_inset
22850
22851 A.
22852 \begin_inset Quotes erd
22853 \end_inset
22854
22855 ,\InsetSpace ~
22856
22857 \begin_inset Quotes erd
22858 \end_inset
22859
22860 1.
22861 \begin_inset Quotes erd
22862 \end_inset
22863
22864 ,\InsetSpace ~
22865
22866 \begin_inset Quotes eld
22867 \end_inset
22868
22869 a.)
22870 \begin_inset Quotes erd
22871 \end_inset
22872
22873 >.
22874  
22875 \end_layout
22876
22877 \begin_layout Standard
22878 As you can see in the example, there is a label command for each nesting
22879  level, 
22880 \family typewriter
22881
22882 \backslash
22883 labelenumi
22884 \family default
22885  \SpecialChar \ldots{}
22886  
22887 \family typewriter
22888
22889 \backslash
22890 labelenumiv
22891 \family default
22892 , as well as a counter, 
22893 \family typewriter
22894 enumi
22895 \family default
22896  \SpecialChar \ldots{}
22897  
22898 \family typewriter
22899 enumiv
22900 \family default
22901 .
22902  There are also five 
22903 \begin_inset Quotes eld
22904 \end_inset
22905
22906 number printing
22907 \begin_inset Quotes erd
22908 \end_inset
22909
22910  commands, 
22911 \family typewriter
22912
22913 \backslash
22914 arabic{}
22915 \family default
22916
22917 \family typewriter
22918
22919 \backslash
22920 roman{}
22921 \family default
22922
22923 \family typewriter
22924
22925 \backslash
22926 Roman{}
22927 \family default
22928
22929 \family typewriter
22930
22931 \backslash
22932 alph{}
22933 \family default
22934 , and 
22935 \family typewriter
22936
22937 \backslash
22938 Alph{}
22939 \family default
22940 , each of which take one counter as an argument.
22941  You can add characters before or after these, but there's no need to add
22942  spaces.
22943 \end_layout
22944
22945 \begin_layout Standard
22946 You can get really fancy with these.
22947  For example:
22948 \end_layout
22949
22950 \begin_layout LyX-Code
22951
22952 \backslash
22953 renewcommand{
22954 \backslash
22955 labelenumi}{
22956 \backslash
22957 #
22958 \backslash
22959 Alph{enumi}
22960 \backslash
22961 #}
22962 \end_layout
22963
22964 \begin_layout LyX-Code
22965
22966 \backslash
22967 renewcommand{
22968 \backslash
22969 labelenumii}{
22970 \backslash
22971 Alph{enumi}.
22972 \backslash
22973 arabic{enumii}}
22974 \end_layout
22975
22976 \begin_layout LyX-Code
22977
22978 \backslash
22979 renewcommand{
22980 \backslash
22981 labelenumiii}{
22982 \backslash
22983 alph{enumiii}+}
22984 \end_layout
22985
22986 \begin_layout LyX-Code
22987
22988 \backslash
22989 renewcommand{
22990 \backslash
22991 labelenumiv}{(
22992 \backslash
22993 roman{enumiv})}
22994 \end_layout
22995
22996 \begin_layout Standard
22997 produces the somewhat out of hand numbering scheme: <
22998 \begin_inset Quotes eld
22999 \end_inset
23000
23001 #A#
23002 \begin_inset Quotes erd
23003 \end_inset
23004
23005 ,\InsetSpace ~
23006
23007 \begin_inset Quotes erd
23008 \end_inset
23009
23010 A.1
23011 \begin_inset Quotes erd
23012 \end_inset
23013
23014 ,\InsetSpace ~
23015
23016 \begin_inset Quotes erd
23017 \end_inset
23018
23019 a+
23020 \begin_inset Quotes erd
23021 \end_inset
23022
23023 ,\InsetSpace ~
23024
23025 \begin_inset Quotes eld
23026 \end_inset
23027
23028 (i)
23029 \begin_inset Quotes erd
23030 \end_inset
23031
23032 >.
23033  
23034 \end_layout
23035
23036 \begin_layout Section
23037 Extra Space Between Table Rows
23038 \end_layout
23039
23040 \begin_layout Standard
23041 by 
23042 \noun on
23043 Mike Ressler
23044 \end_layout
23045
23046 \begin_layout Standard
23047 \begin_inset VSpace bigskip
23048 \end_inset
23049
23050
23051 \end_layout
23052
23053 \begin_layout Standard
23054 \noindent
23055 LaTeX allows you to put a bit of extra space between rows in a table by
23056  giving an optional argument to the end-of-row specifier (
23057 \family typewriter
23058
23059 \backslash
23060
23061 \backslash
23062
23063 \family default
23064 ).
23065  LyX has not yet implemented this in a formal way, so here are two dirty
23066  little tricks to do the same job.
23067  
23068 \end_layout
23069
23070 \begin_layout Standard
23071 The first is the more formal, but longwinded way to do it.
23072  In the LaTeX preamble, add the following command definition: 
23073 \end_layout
23074
23075 \begin_layout Standard
23076
23077 \family typewriter
23078
23079 \backslash
23080 newcommand{
23081 \backslash
23082 extratablespace}[1]{
23083 \backslash
23084 noalign{vskip#1}}
23085 \family default
23086  This command takes a single argument---the amount of space you would like
23087  to insert.
23088  Insert the command in the first column of the row 
23089 \emph on
23090 after
23091 \emph default
23092  where you would like the space to appear.
23093  Here is an example (I've removed all the borders using 
23094 \family sans
23095 \bar under
23096 L
23097 \bar default
23098 ayout\SpecialChar \menuseparator
23099 Tabl
23100 \bar under
23101 e
23102 \family default
23103 \bar default
23104 ):
23105 \end_layout
23106
23107 \begin_layout Standard
23108 \align center
23109 \begin_inset Tabular
23110 <lyxtabular version="3" rows="4" columns="3">
23111 <features>
23112 <column alignment="center" valignment="top" width="0pt">
23113 <column alignment="center" valignment="top" width="0pt">
23114 <column alignment="center" valignment="top" width="0pt">
23115 <row>
23116 <cell alignment="center" valignment="top" topline="true" usebox="none">
23117 \begin_inset Text
23118
23119 \begin_layout Standard
23120
23121 \family roman
23122 \series medium
23123 \shape up
23124 \size normal
23125 \emph off
23126 \bar no
23127 \noun off
23128 \color none
23129 Minerals
23130 \end_layout
23131
23132 \end_inset
23133 </cell>
23134 <cell alignment="center" valignment="top" topline="true" usebox="none">
23135 \begin_inset Text
23136
23137 \begin_layout Standard
23138
23139 \family roman
23140 \series medium
23141 \shape up
23142 \size normal
23143 \emph off
23144 \bar no
23145 \noun off
23146 \color none
23147 Calcite
23148 \end_layout
23149
23150 \end_inset
23151 </cell>
23152 <cell alignment="center" valignment="top" topline="true" usebox="none">
23153 \begin_inset Text
23154
23155 \begin_layout Standard
23156
23157 \family roman
23158 \series medium
23159 \shape up
23160 \size normal
23161 \emph off
23162 \bar no
23163 \noun off
23164 \color none
23165 Dolomite
23166 \end_layout
23167
23168 \end_inset
23169 </cell>
23170 </row>
23171 <row>
23172 <cell alignment="center" valignment="top" topline="true" usebox="none">
23173 \begin_inset Text
23174
23175 \begin_layout Standard
23176
23177 \end_layout
23178
23179 \end_inset
23180 </cell>
23181 <cell alignment="center" valignment="top" topline="true" usebox="none">
23182 \begin_inset Text
23183
23184 \begin_layout Standard
23185
23186 \family roman
23187 \series medium
23188 \shape up
23189 \size normal
23190 \emph off
23191 \bar no
23192 \noun off
23193 \color none
23194 Quartz
23195 \end_layout
23196
23197 \end_inset
23198 </cell>
23199 <cell alignment="center" valignment="top" topline="true" usebox="none">
23200 \begin_inset Text
23201
23202 \begin_layout Standard
23203
23204 \family roman
23205 \series medium
23206 \shape up
23207 \size normal
23208 \emph off
23209 \bar no
23210 \noun off
23211 \color none
23212 Graphite
23213 \end_layout
23214
23215 \end_inset
23216 </cell>
23217 </row>
23218 <row>
23219 <cell alignment="center" valignment="top" topline="true" usebox="none">
23220 \begin_inset Text
23221
23222 \begin_layout Standard
23223
23224 \family roman
23225 \series medium
23226 \shape up
23227 \size normal
23228 \emph off
23229 \bar no
23230 \noun off
23231 \color none
23232 \begin_inset ERT
23233 status collapsed
23234
23235 \begin_layout Standard
23236
23237
23238 \backslash
23239 extratablespace{2ex}
23240 \end_layout
23241
23242 \end_inset
23243
23244 Rocks
23245 \end_layout
23246
23247 \end_inset
23248 </cell>
23249 <cell alignment="center" valignment="top" topline="true" usebox="none">
23250 \begin_inset Text
23251
23252 \begin_layout Standard
23253
23254 \family roman
23255 \series medium
23256 \shape up
23257 \size normal
23258 \emph off
23259 \bar no
23260 \noun off
23261 \color none
23262 Limestone
23263 \end_layout
23264
23265 \end_inset
23266 </cell>
23267 <cell alignment="center" valignment="top" topline="true" usebox="none">
23268 \begin_inset Text
23269
23270 \begin_layout Standard
23271
23272 \family roman
23273 \series medium
23274 \shape up
23275 \size normal
23276 \emph off
23277 \bar no
23278 \noun off
23279 \color none
23280 Sandstone
23281 \end_layout
23282
23283 \end_inset
23284 </cell>
23285 </row>
23286 <row>
23287 <cell alignment="center" valignment="top" topline="true" usebox="none">
23288 \begin_inset Text
23289
23290 \begin_layout Standard
23291
23292 \end_layout
23293
23294 \end_inset
23295 </cell>
23296 <cell alignment="center" valignment="top" topline="true" usebox="none">
23297 \begin_inset Text
23298
23299 \begin_layout Standard
23300
23301 \family roman
23302 \series medium
23303 \shape up
23304 \size normal
23305 \emph off
23306 \bar no
23307 \noun off
23308 \color none
23309 Granite
23310 \end_layout
23311
23312 \end_inset
23313 </cell>
23314 <cell alignment="center" valignment="top" topline="true" usebox="none">
23315 \begin_inset Text
23316
23317 \begin_layout Standard
23318
23319 \family roman
23320 \series medium
23321 \shape up
23322 \size normal
23323 \emph off
23324 \bar no
23325 \noun off
23326 \color none
23327 Andesite
23328 \end_layout
23329
23330 \end_inset
23331 </cell>
23332 </row>
23333 </lyxtabular>
23334
23335 \end_inset
23336
23337
23338 \end_layout
23339
23340 \begin_layout Standard
23341 The second method is faster, but will make typographers and TeXperts all
23342  over the world groan.
23343  Simply put an end of row specifier with optional argument at the same spot.
23344  No fancy definitions are needed as in the above example, but there will
23345  be more space inserted than you specified because you essentially added
23346  a blank row plus the extra space.
23347  If the space added is too much, simply use a negative number, like so:
23348 \end_layout
23349
23350 \begin_layout Standard
23351 \align center
23352 \begin_inset Tabular
23353 <lyxtabular version="3" rows="4" columns="3">
23354 <features>
23355 <column alignment="center" valignment="top" width="0pt">
23356 <column alignment="center" valignment="top" width="0pt">
23357 <column alignment="center" valignment="top" width="0pt">
23358 <row>
23359 <cell alignment="center" valignment="top" topline="true" usebox="none">
23360 \begin_inset Text
23361
23362 \begin_layout Standard
23363
23364 \family roman
23365 \series medium
23366 \shape up
23367 \size normal
23368 \emph off
23369 \bar no
23370 \noun off
23371 \color none
23372 Minerals
23373 \end_layout
23374
23375 \end_inset
23376 </cell>
23377 <cell alignment="center" valignment="top" topline="true" usebox="none">
23378 \begin_inset Text
23379
23380 \begin_layout Standard
23381
23382 \family roman
23383 \series medium
23384 \shape up
23385 \size normal
23386 \emph off
23387 \bar no
23388 \noun off
23389 \color none
23390 Calcite
23391 \end_layout
23392
23393 \end_inset
23394 </cell>
23395 <cell alignment="center" valignment="top" topline="true" usebox="none">
23396 \begin_inset Text
23397
23398 \begin_layout Standard
23399
23400 \family roman
23401 \series medium
23402 \shape up
23403 \size normal
23404 \emph off
23405 \bar no
23406 \noun off
23407 \color none
23408 Dolomite
23409 \end_layout
23410
23411 \end_inset
23412 </cell>
23413 </row>
23414 <row>
23415 <cell alignment="center" valignment="top" topline="true" usebox="none">
23416 \begin_inset Text
23417
23418 \begin_layout Standard
23419
23420 \end_layout
23421
23422 \end_inset
23423 </cell>
23424 <cell alignment="center" valignment="top" topline="true" usebox="none">
23425 \begin_inset Text
23426
23427 \begin_layout Standard
23428
23429 \family roman
23430 \series medium
23431 \shape up
23432 \size normal
23433 \emph off
23434 \bar no
23435 \noun off
23436 \color none
23437 Quartz
23438 \end_layout
23439
23440 \end_inset
23441 </cell>
23442 <cell alignment="center" valignment="top" topline="true" usebox="none">
23443 \begin_inset Text
23444
23445 \begin_layout Standard
23446
23447 \family roman
23448 \series medium
23449 \shape up
23450 \size normal
23451 \emph off
23452 \bar no
23453 \noun off
23454 \color none
23455 Graphite
23456 \end_layout
23457
23458 \end_inset
23459 </cell>
23460 </row>
23461 <row>
23462 <cell alignment="center" valignment="top" topline="true" usebox="none">
23463 \begin_inset Text
23464
23465 \begin_layout Standard
23466
23467 \family roman
23468 \series medium
23469 \shape up
23470 \size normal
23471 \emph off
23472 \bar no
23473 \noun off
23474 \color none
23475 \begin_inset ERT
23476 status collapsed
23477
23478 \begin_layout Standard
23479
23480
23481 \backslash
23482
23483 \backslash
23484 [-1ex]
23485 \end_layout
23486
23487 \end_inset
23488
23489  Rocks
23490 \end_layout
23491
23492 \end_inset
23493 </cell>
23494 <cell alignment="center" valignment="top" topline="true" usebox="none">
23495 \begin_inset Text
23496
23497 \begin_layout Standard
23498
23499 \family roman
23500 \series medium
23501 \shape up
23502 \size normal
23503 \emph off
23504 \bar no
23505 \noun off
23506 \color none
23507 Limestone
23508 \end_layout
23509
23510 \end_inset
23511 </cell>
23512 <cell alignment="center" valignment="top" topline="true" usebox="none">
23513 \begin_inset Text
23514
23515 \begin_layout Standard
23516
23517 \family roman
23518 \series medium
23519 \shape up
23520 \size normal
23521 \emph off
23522 \bar no
23523 \noun off
23524 \color none
23525 Sandstone
23526 \end_layout
23527
23528 \end_inset
23529 </cell>
23530 </row>
23531 <row>
23532 <cell alignment="center" valignment="top" topline="true" usebox="none">
23533 \begin_inset Text
23534
23535 \begin_layout Standard
23536
23537 \end_layout
23538
23539 \end_inset
23540 </cell>
23541 <cell alignment="center" valignment="top" topline="true" usebox="none">
23542 \begin_inset Text
23543
23544 \begin_layout Standard
23545
23546 \family roman
23547 \series medium
23548 \shape up
23549 \size normal
23550 \emph off
23551 \bar no
23552 \noun off
23553 \color none
23554 Granite
23555 \end_layout
23556
23557 \end_inset
23558 </cell>
23559 <cell alignment="center" valignment="top" topline="true" usebox="none">
23560 \begin_inset Text
23561
23562 \begin_layout Standard
23563
23564 \family roman
23565 \series medium
23566 \shape up
23567 \size normal
23568 \emph off
23569 \bar no
23570 \noun off
23571 \color none
23572 Andesite
23573 \end_layout
23574
23575 \end_inset
23576 </cell>
23577 </row>
23578 </lyxtabular>
23579
23580 \end_inset
23581
23582
23583 \end_layout
23584
23585 \begin_layout Standard
23586 It's short, sweet, and gets the job done quickly, even if it is really ugly.
23587  You may put away the rotten vegetables now! I promise I won't suggest anything
23588  else like that!
23589 \end_layout
23590
23591 \begin_layout Section
23592 Dropped Capitals
23593 \end_layout
23594
23595 \begin_layout Standard
23596 by 
23597 \noun on
23598 Mike Ressler
23599 \end_layout
23600
23601 \begin_layout Standard
23602 \begin_inset VSpace bigskip
23603 \end_inset
23604
23605
23606 \end_layout
23607
23608 \begin_layout Standard
23609 \noindent
23610 \begin_inset ERT
23611 status collapsed
23612
23613 \begin_layout Standard
23614
23615
23616 \backslash
23617 newfont{
23618 \backslash
23619 tmpfont}{cmr17 scaled 2500}{
23620 \backslash
23621 tmpfont T}
23622 \backslash
23623 vspace*{-8.4ex}
23624 \end_layout
23625
23626 \end_inset
23627
23628
23629 \end_layout
23630
23631 \begin_layout Standard
23632 \noindent
23633 \begin_inset ERT
23634 status inlined
23635
23636 \begin_layout Standard
23637
23638
23639 \backslash
23640 hangindent=3.3em 
23641 \backslash
23642 hangafter=-3
23643 \end_layout
23644
23645 \end_inset
23646
23647  hose of you who like the style of old books probably also like 
23648 \begin_inset Quotes eld
23649 \end_inset
23650
23651 dropped capitals
23652 \begin_inset Quotes erd
23653 \end_inset
23654
23655 ---those large capital letters which begin each new chapter or section.
23656  Implementing them with plain LyX/LaTeX is straightforward (assuming you
23657  know some plain TeX!) but does require a lot of work and many iterations,
23658  as you can see by all the ugly TeX-mode stuff at the beginning of this
23659  paragraph.
23660 \end_layout
23661
23662 \begin_layout Standard
23663 \begin_inset ERT
23664 status inlined
23665
23666 \begin_layout Standard
23667
23668
23669 \backslash
23670 verb+
23671 \backslash
23672 bigdrop{-1em}{3}{ptmri}{T}+
23673 \end_layout
23674
23675 \end_inset
23676
23677 here is a much easier way of doing this, of course.
23678  The 
23679 \family typewriter
23680 dropcaps
23681 \family default
23682  (or the newer 
23683 \family typewriter
23684 dropping
23685 \family default
23686 ) package from CTAN allows a simple way to add such letters to your documents.
23687  Since this package is not a standard part of teTeX, I can't demonstrate
23688  it within this document, but if you copy this paragraph to a new document,
23689  delete the 
23690 \begin_inset Quotes eld
23691 \end_inset
23692
23693
23694 \family typewriter
23695
23696 \backslash
23697 verb
23698 \family default
23699
23700 \begin_inset Quotes erd
23701 \end_inset
23702
23703  and the pluses from the TeX code at the beginning of the paragraph, and
23704  add 
23705 \family typewriter
23706
23707 \backslash
23708 usepackage{dropcaps}
23709 \family default
23710  to your LaTeX preamble, you will get a nice Times Roman Italic 
23711 \begin_inset Quotes eld
23712 \end_inset
23713
23714 T
23715 \begin_inset Quotes erd
23716 \end_inset
23717
23718 , whose height is three lines of text and which protrudes 1 em into the
23719  margin.
23720  (Make certain you have copied 
23721 \begin_inset Quotes eld
23722 \end_inset
23723
23724
23725 \family typewriter
23726 dropcaps.sty
23727 \family default
23728
23729 \begin_inset Quotes erd
23730 \end_inset
23731
23732  into a directory where TeX can see it.) The first argument is the amount
23733  of indentation; in this case the negative sign moves it into the margin.
23734  The second argument is the height of the letter in number of lines of text.
23735  The third argument is the font name: virtually anything which has a tfm
23736  file should work (wade through the 
23737 \family typewriter
23738 .../texmf/fonts/tfm
23739 \family default
23740  directory for possibilities).
23741  My personal favorite is 
23742 \begin_inset Quotes eld
23743 \end_inset
23744
23745
23746 \family typewriter
23747 yinit
23748 \family default
23749
23750 \begin_inset Quotes erd
23751 \end_inset
23752
23753 , a fancy German font specifically designed for dropped capitals.
23754  The fourth argument is the letter (or letters) to be dropped.
23755  The 
23756 \family typewriter
23757 dropping
23758 \family default
23759  package also offers the 
23760 \family typewriter
23761
23762 \backslash
23763 bigdrop
23764 \family default
23765  command, as well as a slightly simplified 
23766 \family typewriter
23767
23768 \backslash
23769 dropping
23770 \family default
23771  command.
23772 \end_layout
23773
23774 \begin_layout Section
23775 Non-standard Paragraph Shapes
23776 \end_layout
23777
23778 \begin_layout Standard
23779 by 
23780 \noun on
23781 Mike Ressler
23782 \end_layout
23783
23784 \begin_layout Standard
23785 \begin_inset VSpace bigskip
23786 \end_inset
23787
23788
23789 \end_layout
23790
23791 \begin_layout Standard
23792 \begin_inset ERT
23793 status inlined
23794
23795 \begin_layout Standard
23796
23797
23798 \backslash
23799 begin{sloppypar}
23800 \end_layout
23801
23802 \end_inset
23803
23804
23805 \end_layout
23806
23807 \begin_layout Standard
23808 \begin_inset ERT
23809 status collapsed
23810
23811 \begin_layout Standard
23812
23813
23814 \backslash
23815 newdimen
23816 \backslash
23817 varunit 
23818 \end_layout
23819
23820 \begin_layout Standard
23821
23822
23823 \backslash
23824 setlength{
23825 \backslash
23826 varunit}{4.5in}
23827 \end_layout
23828
23829 \end_inset
23830
23831
23832 \end_layout
23833
23834 \begin_layout Standard
23835 \noindent
23836 \begin_inset ERT
23837 status collapsed
23838
23839 \begin_layout Standard
23840
23841
23842 \backslash
23843 parshape 19 0.45
23844 \backslash
23845 varunit 0.332
23846 \backslash
23847 varunit
23848 \end_layout
23849
23850 \begin_layout Standard
23851
23852 0.40
23853 \backslash
23854 varunit 0.300
23855 \backslash
23856 varunit
23857 \end_layout
23858
23859 \begin_layout Standard
23860
23861 0.35
23862 \backslash
23863 varunit 0.293
23864 \backslash
23865 varunit
23866 \end_layout
23867
23868 \begin_layout Standard
23869
23870 0.30
23871 \backslash
23872 varunit 0.300
23873 \backslash
23874 varunit
23875 \end_layout
23876
23877 \begin_layout Standard
23878
23879 0.25
23880 \backslash
23881 varunit 0.317
23882 \backslash
23883 varunit
23884 \end_layout
23885
23886 \begin_layout Standard
23887
23888 0.20
23889 \backslash
23890 varunit 0.342
23891 \backslash
23892 varunit
23893 \end_layout
23894
23895 \begin_layout Standard
23896
23897 0.15
23898 \backslash
23899 varunit 0.373
23900 \backslash
23901 varunit
23902 \end_layout
23903
23904 \begin_layout Standard
23905
23906 0.10
23907 \backslash
23908 varunit 0.410
23909 \backslash
23910 varunit
23911 \end_layout
23912
23913 \begin_layout Standard
23914
23915 0.05
23916 \backslash
23917 varunit 0.453
23918 \backslash
23919 varunit
23920 \end_layout
23921
23922 \begin_layout Standard
23923
23924 0.00
23925 \backslash
23926 varunit 0.500
23927 \backslash
23928 varunit
23929 \end_layout
23930
23931 \begin_layout Standard
23932
23933 0.05
23934 \backslash
23935 varunit 0.453
23936 \backslash
23937 varunit
23938 \end_layout
23939
23940 \begin_layout Standard
23941
23942 0.10
23943 \backslash
23944 varunit 0.410
23945 \backslash
23946 varunit
23947 \end_layout
23948
23949 \begin_layout Standard
23950
23951 0.15
23952 \backslash
23953 varunit 0.373
23954 \backslash
23955 varunit
23956 \end_layout
23957
23958 \begin_layout Standard
23959
23960 0.20
23961 \backslash
23962 varunit 0.342
23963 \backslash
23964 varunit
23965 \end_layout
23966
23967 \begin_layout Standard
23968
23969 0.25
23970 \backslash
23971 varunit 0.317
23972 \backslash
23973 varunit
23974 \end_layout
23975
23976 \begin_layout Standard
23977
23978 0.30
23979 \backslash
23980 varunit 0.300
23981 \backslash
23982 varunit
23983 \end_layout
23984
23985 \begin_layout Standard
23986
23987 0.35
23988 \backslash
23989 varunit 0.293
23990 \backslash
23991 varunit
23992 \end_layout
23993
23994 \begin_layout Standard
23995
23996 0.40
23997 \backslash
23998 varunit 0.300
23999 \backslash
24000 varunit
24001 \end_layout
24002
24003 \begin_layout Standard
24004
24005 0.45
24006 \backslash
24007 varunit 0.332
24008 \backslash
24009 varunit
24010 \end_layout
24011
24012 \begin_layout Standard
24013
24014 \end_layout
24015
24016 \end_inset
24017
24018 There are times when the tyranny of rectangular paragraphs must be overthrown.
24019  In such situations, a call to the delightful plain TeX command 
24020 \family typewriter
24021
24022 \backslash
24023 parshape
24024 \family default
24025  is called for.
24026  As you can see, completely arbitrary shapes can be laid out with a suitable
24027  set of linelength definitions.
24028  While this parshape may look a bit silly and useless, one could conceive
24029  of situations such as finely tuned dropped capitals, word wrapping around
24030  non-rectangular graphics, etc.
24031  which will benefit from such handcrafting.
24032 \end_layout
24033
24034 \begin_layout Standard
24035 \begin_inset VSpace bigskip
24036 \end_inset
24037
24038
24039 \end_layout
24040
24041 \begin_layout Standard
24042 The syntax is 
24043 \family typewriter
24044
24045 \backslash
24046 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
24047  #nindent #nlength
24048 \family default
24049 , where 
24050 \family typewriter
24051 numlines
24052 \family default
24053  is the number of lines of text which define the paragraph.
24054  If there turn out to be fewer lines, the shape is truncated; if there are
24055  more, the excess lines have the same dimensions as the last line of the
24056  definition.
24057  The 
24058 \family typewriter
24059 #nindent
24060 \family default
24061  and 
24062 \family typewriter
24063 #nlength
24064 \family default
24065  entries specify the indentation of the line from the left margin, and the
24066  length of the line as measured from that point.
24067  The shape applies only to the current paragraph; everything is reset to
24068  normal for the next paragraph.
24069 \end_layout
24070
24071 \begin_layout Standard
24072 \begin_inset ERT
24073 status inlined
24074
24075 \begin_layout Standard
24076
24077
24078 \backslash
24079 end{sloppypar}
24080 \end_layout
24081
24082 \end_inset
24083
24084
24085 \end_layout
24086
24087 \begin_layout Section
24088 Summary
24089 \end_layout
24090
24091 \begin_layout Standard
24092 As you can see, the examples in this section range from the useful to the
24093  whimsical.
24094  While I don't expect that anyone will ever need the paragraph shape demonstrate
24095 d in the last section, the important point is that you can do almost anything
24096  you want in LyX if you are willing to figure out how to do it in TeX and
24097  LaTeX.
24098  TeX is a fantastically powerful typesetting system and all that power is
24099  available to you since LyX uses it as its backend.
24100  Happy LyXing!
24101 \end_layout
24102
24103 \end_body
24104 \end_document