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