]> git.lyx.org Git - lyx.git/blob - lib/doc/Extended.lyx
138fc3a8bf4c8cfe612212c33c5e06c73118aabc
[lyx.git] / lib / doc / Extended.lyx
1 #LyX 1.4.0cvs created this file. For more info see http://www.lyx.org/
2 \lyxformat 244
3 \begin_document
4 \begin_header
5 \textclass book
6 \begin_preamble
7 \usepackage{multicol}
8 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
9 \end_preamble
10 \language english
11 \inputencoding latin1
12 \fontscheme default
13 \graphics default
14 \paperfontsize default
15 \spacing single
16 \papersize default
17 \use_geometry false
18 \use_amsmath 0
19 \cite_engine basic
20 \use_bibtopic false
21 \paperorientation portrait
22 \secnumdepth 3
23 \tocdepth 3
24 \paragraph_separation indent
25 \defskip medskip
26 \quotes_language english
27 \quotes_times 2
28 \papercolumns 1
29 \papersides 2
30 \paperpagestyle headings
31 \tracking_changes false
32 \output_changes true
33 \end_header
34
35 \begin_body
36
37 \begin_layout Title
38 Extended LyX Features
39 \end_layout
40
41 \begin_layout Author
42 by the LyX Team
43 \begin_inset Foot
44 status collapsed
45
46 \begin_layout Standard
47 \noindent
48 Principal maintainer of this file is
49 \noun on
50  Mike Ressler
51 \noun default
52 .
53  If you have comments or error corrections, please send them to the LyX
54  Documentation mailing list, <lyx-docs@lists.lyx.org>.
55 \end_layout
56
57 \end_inset
58
59  
60 \end_layout
61
62 \begin_layout Standard
63 \begin_inset LatexCommand \tableofcontents{}
64
65 \end_inset
66
67
68 \end_layout
69
70 \begin_layout Chapter
71 Introduction
72 \end_layout
73
74 \begin_layout Standard
75 The 
76 \emph on
77 Extended LyX Features
78 \emph default
79  manual, which you are now reading, is essentially Part II of the 
80 \emph on
81 User's Guide\SpecialChar \@.
82
83 \emph default
84  The reason for splitting this document is simple: the 
85 \emph on
86 User's Guide
87 \emph default
88  is already huge, and it contains all of the basic features one needs to
89  know in order to prepare most documents.
90  However, the LyX Team has a long-term goal of making LyX extensible through
91  various configuration files and external packages.
92  That means that if you want to support the Fizzwizzle LaTeX package, you
93  can create a layout file for it without having to alter LyX itself.
94  We've already had contributions of several new features this way.
95  This is the place where all of that gets documented.
96 \end_layout
97
98 \begin_layout Standard
99 This manual also documents some special features, like fax support, version
100  control, and SGML support, which require additional software to work properly.
101  Lastly, there's a chapter of LaTeX tools and tips, things you can use to
102  spruce up your documents by directly using the powerful features of LaTeX.
103  After all, LyX 
104 \emph on
105 is
106 \emph default
107  only WYSIWYM, and will only ever interface to certain LaTeX features.
108 \end_layout
109
110 \begin_layout Standard
111 Of course, with all of this extra documentation, 
112 \emph on
113 Extended LyX Features
114 \emph default
115  may itself grow too big for its britches.
116  In that case, you can just call it the 
117 \begin_inset Quotes eld
118 \end_inset
119
120 Overextended Manual
121 \begin_inset Quotes erd
122 \end_inset
123
124  for fun!
125 \end_layout
126
127 \begin_layout Standard
128 If you haven't read the 
129 \emph on
130 Introduction 
131 \emph default
132 yet, you are definitely in the wrong manual.
133  The 
134 \emph on
135 Introduction
136 \emph default
137  is the first place to go, since it will direct you to the correct manual,
138  and it also describes the notation and format of all of the manuals.
139  You should also be thoroughly familiar with the 
140 \emph on
141 User's Guide
142 \emph default
143  and all of the basic features of LyX.
144  
145 \end_layout
146
147 \begin_layout Standard
148 In this document, many sections are independent articles contributed by
149  an individual and are noted as such.
150  This person is generally whoever wrote the layout file for the new document
151  class or LaTeX package, or implemented the feature.
152  If there is no mention of an author to a chapter [or chapter sections],
153  that means it was written by the LyX Documentation Team.
154 \end_layout
155
156 \begin_layout Standard
157 Since all the topics in this manual depend heavily on LyX's interaction
158  with LaTeX, this first chapter covers
159 \emph on
160  
161 \emph default
162 the inner workings of LyX and how to direct LyX to generate exactly the
163  LaTeX code you want.
164  It is obviously for more seasoned LyX users.
165 \end_layout
166
167 \begin_layout Chapter
168 LyX and LaTeX
169 \end_layout
170
171 \begin_layout Section
172 How LyX Uses LaTeX
173 \end_layout
174
175 \begin_layout Standard
176 \begin_inset LatexCommand \label{sec:lyxandlatex}
177
178 \end_inset
179
180 This chapter is for both TeX-nicians and the LaTeX-curious.
181  In it, we'll explain how LyX and LaTeX work together to produce printable
182  output.
183  This is the only place in any of the manuals where we assume you know something
184  about LaTeX.
185 \end_layout
186
187 \begin_layout Standard
188 At one time, we called LyX a 
189 \begin_inset Quotes eld
190 \end_inset
191
192 WYSIWYM frontend to LaTeX,
193 \begin_inset Quotes erd
194 \end_inset
195
196  but that's no longer true.
197  There are frontends to LaTeX out there.
198  They are basically editors with the ability to run LaTeX and mark any errors
199  in the file you're editing.
200  Although LyX 
201 \emph on
202 is
203 \emph default
204  an editor, and it 
205 \emph on
206 does
207 \emph default
208  run LaTeX, and it also marks errors in the file, it also does much, much
209  more.
210  Thanks to the WYSIWYM concept, you don't need LaTeX to use LyX effectively.
211  LyX has also added a few extensions to LaTeX.
212  Try the following sometime: select 
213 \family sans
214 Export\SpecialChar \menuseparator
215 LaTeX
216 \family default
217  from the 
218 \family sans
219 \bar under
220 F
221 \bar default
222 ile
223 \family default
224  menu, then look at the preamble of the resulting 
225 \family typewriter
226 .tex
227 \family default
228  file.
229  You'll notice a variety of new macros defined specifically by LyX.
230  These macros are defined automatically, according to the features you use
231  in the document.
232 \end_layout
233
234 \begin_layout Standard
235 There are several commands that automatically invoke LaTeX.
236  They are:
237 \end_layout
238
239 \begin_layout Itemize
240
241 \family sans
242 \bar under
243 V
244 \bar default
245 iew\SpecialChar \menuseparator
246 View\InsetSpace ~
247
248 \emph on
249 Format
250 \end_layout
251
252 \begin_layout Itemize
253
254 \family sans
255 \bar under
256 V
257 \bar default
258 iew\SpecialChar \menuseparator
259
260 \bar under
261 U
262 \bar default
263 pdate\SpecialChar \menuseparator
264
265 \emph on
266 Format
267 \end_layout
268
269 \begin_layout Itemize
270
271 \family sans
272 \bar under
273 F
274 \bar default
275 ile
276 \bar under
277 \SpecialChar \menuseparator
278 P
279 \bar default
280 rint
281 \end_layout
282
283 \begin_layout Itemize
284
285 \family sans
286 \bar under
287 F
288 \bar default
289 ile
290 \bar under
291 \SpecialChar \menuseparator
292 F
293 \bar default
294 ax
295 \end_layout
296
297 \begin_layout Standard
298 They will only invoke LaTeX if the file has changed since the last time
299  LaTeX was run.
300  
301 \end_layout
302
303 \begin_layout Standard
304 When you run LaTeX on the file you're editing, LyX performs these steps:
305 \end_layout
306
307 \begin_layout Enumerate
308 Convert the document to LaTeX and save to a file with the extension 
309 \family typewriter
310 .tex
311 \family default
312  in place of 
313 \family typewriter
314 .lyx
315 \family default
316 .
317 \end_layout
318
319 \begin_layout Enumerate
320 Run LaTeX on the 
321 \family typewriter
322 .tex
323 \family default
324  file (maybe several times).
325 \end_layout
326
327 \begin_layout Enumerate
328 If there are any errors, insert error boxes in the document to mark where
329  they are.
330  These boxes are transient and are not saved along with the document.
331 \end_layout
332
333 \begin_layout Standard
334 If you've run LaTeX using 
335 \family sans
336 View\InsetSpace ~
337 DVI
338 \family default
339 , LyX then executes 
340 \family typewriter
341 xdvi
342 \family default
343  on the Dvi file.
344  If you've used 
345 \family sans
346 View\InsetSpace ~
347 PostScript
348 \family default
349  or 
350 \family sans
351 \bar under
352 P
353 \bar default
354 rint
355 \family default
356 , LyX performs two more steps:
357 \end_layout
358
359 \begin_layout Itemize
360 Run 
361 \family typewriter
362 dvips
363 \family default
364  to convert the Dvi file to PostScript®:
365 \end_layout
366
367 \begin_deeper
368 \begin_layout Itemize
369 For 
370 \family sans
371 View\InsetSpace ~
372 PostScript
373 \family default
374 , the output file has the extension 
375 \family typewriter
376 .ps_tmp
377 \end_layout
378
379 \begin_layout Itemize
380 For 
381 \family sans
382 \bar under
383 P
384 \bar default
385 rint
386 \family default
387 \InsetSpace ~
388 , the output file has the extension 
389 \family typewriter
390 .ps
391 \family default
392 , as expected.
393 \end_layout
394
395 \end_deeper
396 \begin_layout Itemize
397 Execute 
398 \family typewriter
399 ghostview
400 \family default
401  or send the PostScript® file to the printer.
402 \end_layout
403
404 \begin_layout Section
405 \begin_inset Quotes eld
406 \end_inset
407
408 Help! LyX generated an unreadable 
409 \family typewriter
410 .tex
411 \family default
412  file!
413 \begin_inset Quotes erd
414 \end_inset
415
416
417 \end_layout
418
419 \begin_layout Standard
420 Die-hard LaTeX users will scream and howl this into the night, then declare
421  LyX useless, simply because they didn't RTFM.
422 \end_layout
423
424 \begin_layout Standard
425 We're going to set the record straight.
426  LyX produces two kinds of LaTeX files.
427  One is human readable.
428  The other is LyX readable.
429  Every time LyX executes LaTeX, it produces a LaTeX file that it can easily
430  scan for errors.
431  The resulting 
432 \family typewriter
433 .tex
434 \family default
435  file is not human readable.
436  Don't even try to read it.
437  If you want a 
438 \family typewriter
439 .tex
440 \family default
441  file that you can send to a colleague, select 
442 \family sans
443 \bar under
444 E
445 \bar default
446 xport\SpecialChar \menuseparator
447
448 \bar under
449 L
450 \bar default
451 aTeX
452 \family default
453  from the 
454 \family sans
455 \bar under
456 F
457 \bar default
458 ile
459 \family default
460  menu.
461 \end_layout
462
463 \begin_layout Section
464 Translating LaTeX files into LyX
465 \end_layout
466
467 \begin_layout Standard
468 You can import a LaTeX file into LyX by using the 
469 \family sans
470 \bar under
471 F
472 \bar default
473 ile\SpecialChar \menuseparator
474
475 \bar under
476 I
477 \bar default
478 mport\SpecialChar \menuseparator
479
480 \bar under
481 L
482 \bar default
483 aTeX
484 \family default
485  command in LyX.
486  This will call a Perl script named 
487 \family typewriter
488 reLyX
489 \family default
490 ---which will create a file 
491 \family typewriter
492 foo.lyx
493 \family default
494  from the file 
495 \family typewriter
496 foo.tex
497 \family default
498 ---and then open that file.
499  If the translation doesn't work, you can try calling 
500 \family typewriter
501 reLyX
502 \family default
503  from the command line, possibly using fancier options.
504 \end_layout
505
506 \begin_layout Standard
507
508 \family typewriter
509 reLyX
510 \family default
511  will translate most legal LaTeX, but not everything.
512  It will leave things it doesn't understand in TeX mode, so after translating
513  a file with 
514 \family typewriter
515 reLyX
516 \family default
517 , you can look for red text and hand-edit it to look right.
518 \end_layout
519
520 \begin_layout Standard
521
522 \family typewriter
523 reLyX
524 \family default
525  has its own section in the 
526 \emph on
527 Extended Features
528 \emph default
529  manual (as well as a Unix manpage equivalent), which you should read to
530  find out about what LaTeX isn't supported, bugs (and how to get around
531  them), and how to use the various options.
532 \end_layout
533
534 \begin_layout Standard
535 If you can't get 
536 \family typewriter
537 reLyX
538 \family default
539  to work, or you just want to put a piece of LaTeX code into a LyX file,
540  see Section
541 \begin_inset LatexCommand \ref{sec:latexcodes}
542
543 \end_inset
544
545 .
546 \end_layout
547
548 \begin_layout Section
549 Inserting LaTeX Code into LyX Documents 
550 \begin_inset LatexCommand \label{sec:Inserting-LaTeX-Code}
551
552 \end_inset
553
554
555 \end_layout
556
557 \begin_layout Standard
558 \begin_inset LatexCommand \label{sec:latexcodes}
559
560 \end_inset
561
562  This is a rather important point: You can always insert LaTeX code into
563  any LyX document.
564  LyX simply cannot, and will probably never be able to, display every possible
565  LaTeX construct.
566  If ever you need to insert LaTeX commands into your LyX document, you can
567  use the ERT box, which you can insert into your document with 
568 \family sans
569 \bar under
570 I
571 \bar default
572 nsert\SpecialChar \menuseparator
573
574 \bar under
575 T
576 \bar default
577 eX
578 \family default
579 .
580  The ERT box comes in three forms: collapsed, open, and inlined.
581  The first two are used just like any other collapsable (foldable) box (such
582  as footnotes), and are useful for significant amounts of LaTeX commands.
583  An 
584 \begin_inset Quotes eld
585 \end_inset
586
587 inlined
588 \begin_inset Quotes erd
589 \end_inset
590
591  ERT box displays its content as part of the button, and is useful for very
592  short sections of LaTeX commands.
593  
594 \begin_inset ERT
595 status inlined
596
597 \begin_layout Standard
598 % like this
599 \end_layout
600
601 \end_inset
602
603
604 \end_layout
605
606 \begin_layout Standard
607 You can switch between all three by right-clicking on the ERT.
608  Note that if you want more than one line of LaTeX commands, you cannot
609  use the inlined mode.
610 \end_layout
611
612 \begin_layout Standard
613 Here's an example of inserting LaTeX commands in a LyX document.
614  The code looks like this:
615 \end_layout
616
617 \begin_layout LyX-Code
618
619 \backslash
620 begin{tabular}{ll}
621 \newline
622
623 \backslash
624 begin{minipage}{5cm}
625 \newline
626 This is an example for a minipage environment.
627  You 
628 \newline
629 can put nearly everything in it, even (non-floating) 
630 \newline
631 figures and tables.
632  
633 \newline
634
635 \backslash
636 end{minipage}
637 \newline
638 &
639 \newline
640
641 \backslash
642 begin{minipage}{5cm}
643 \newline
644
645 \backslash
646 begin{verbatim}
647 \newline
648
649 \backslash
650 begin{minipage}{5cm}
651 \newline
652 This ...
653  
654 \newline
655
656 \backslash
657 end{minipage}
658 \newline
659
660 \backslash
661 end{verbatim}
662 \newline
663
664 \backslash
665 end{minipage}
666 \newline
667
668 \backslash
669 end{tabular}
670 \end_layout
671
672 \begin_layout LyX-Code
673
674 \end_layout
675
676 \begin_layout Standard
677 The ERT box containing this text is directly after this paragraph.
678  Those of you reading the manual online will only see a bunch of funky text
679  in red.
680  Those reading a printed version of the manuals will see the actual results:
681 \end_layout
682
683 \begin_layout Standard
684 \begin_inset ERT
685 status collapsed
686
687 \begin_layout Standard
688
689 \backslash
690 begin{tabular}{ll}
691 \end_layout
692
693 \begin_layout Standard
694
695 \backslash
696 begin{minipage}{5cm}
697 \end_layout
698
699 \begin_layout Standard
700 This is an example for a minipage environment.
701  You can put nearly everything in it, even (non-floating) figures and tables.
702  
703 \end_layout
704
705 \begin_layout Standard
706
707 \backslash
708 end{minipage}
709 \end_layout
710
711 \begin_layout Standard
712 &
713 \end_layout
714
715 \begin_layout Standard
716
717 \backslash
718 begin{minipage}{5cm}
719 \end_layout
720
721 \begin_layout Standard
722
723 \backslash
724 begin{verbatim}
725 \end_layout
726
727 \begin_layout Standard
728
729 \backslash
730 begin{minipage}{5cm}
731 \end_layout
732
733 \begin_layout Standard
734 This ...
735  
736 \end_layout
737
738 \begin_layout Standard
739
740 \backslash
741 end{minipage}
742 \end_layout
743
744 \begin_layout Standard
745
746 \backslash
747 end{verbatim}
748 \end_layout
749
750 \begin_layout Standard
751
752 \backslash
753 end{minipage}
754 \end_layout
755
756 \begin_layout Standard
757
758 \backslash
759 end{tabular}
760 \end_layout
761
762 \end_inset
763
764
765 \end_layout
766
767 \begin_layout Standard
768 In addition to these two methods, you can also create a separate file containing
769  some complex LaTeX structure.
770  You can then use 
771 \family sans
772 \bar under
773 I
774 \bar default
775 nsert\SpecialChar \menuseparator
776 Chil
777 \bar under
778 d
779 \bar default
780 \InsetSpace ~
781 Document
782 \family default
783  to include your file (you should select the type 
784 \family sans
785 Input
786 \family default
787 ).
788  We recommend that you only do this if you have a 
789 \family typewriter
790 .tex
791 \family default
792  file which you 
793 \emph on
794 know
795 \emph default
796  works already.
797  Otherwise, you'll have a big job tracking down LaTeX errors\SpecialChar \ldots{}
798
799 \end_layout
800
801 \begin_layout Standard
802 There are a few last notes to emphasize:
803 \end_layout
804
805 \begin_layout Itemize
806 Inside of LyX, LaTeX code appears 
807 \emph on
808 in red
809 \end_layout
810
811 \begin_layout Itemize
812 LyX 
813 \emph on
814 does not
815 \emph default
816  check if your LaTeX code is correct.
817 \end_layout
818
819 \begin_layout Itemize
820 Beware reinventing the wheel.
821 \end_layout
822
823 \begin_layout Standard
824 That last note refers to two things.
825  First, LyX does have quite a few features tucked into it, and more are
826  coming.
827  Be sure to check the manuals to make sure that LyX doesn't have such-and-such
828  feature before you go off merrily coding LaTeX.
829  Second, there are numerous LaTeX packages out there to do all sorts of
830  things, from labels to envelopes to fancy multipage tables.
831  Check out a CTAN site for details (see Section 
832 \begin_inset Quotes eld
833 \end_inset
834
835 Requirements
836 \begin_inset Quotes erd
837 \end_inset
838
839  of the 
840 \emph on
841 User's Guide
842 \emph default
843 ).
844 \begin_inset Foot
845 status open
846
847 \begin_layout Standard
848 Note from 
849 \noun on
850 John Weiss
851 \noun default
852 : I seem to do this an awful lot.
853  Sat down and merrily began coding something to print out labels, only to
854  learn that there were already 2 different LaTeX packages to do this.
855  Worse yet --- I had them already!
856 \end_layout
857
858 \end_inset
859
860
861 \end_layout
862
863 \begin_layout Standard
864 If you do need to do some wild and fancy things within your document, be
865  sure to check out a good LaTeX book for assistance.
866  There are a number of them listed in the bibliography of the 
867 \emph on
868 User's Guide
869 \emph default
870 .
871 \end_layout
872
873 \begin_layout Standard
874 There are a number of LaTeX commands which have to be placed before the
875  beginning of the actual text.
876  They go into the preamble, and this is explained in the next section.
877 \end_layout
878
879 \begin_layout Section
880 LyX and the LaTeX Preamble
881 \end_layout
882
883 \begin_layout Subsection
884 About the LaTeX Preamble
885 \end_layout
886
887 \begin_layout Standard
888 \begin_inset LatexCommand \label{sec:preamble}
889
890 \end_inset
891
892 If you already know LaTeX, there is no need to explain here what the preamble
893  is good for.
894  If you don't, the following will give you some ideas --- we recommend again
895  that you consult a LaTeX book for further information.
896  In any case, you should read the points below, because they explain what
897  you can do and what you don't need to do in the LaTeX preamble of a LyX
898  document.
899 \end_layout
900
901 \begin_layout Standard
902 The LaTeX preamble comes at the very beginning of a document, 
903 \emph on
904 before 
905 \emph default
906 the text.
907  It serves to:
908 \end_layout
909
910 \begin_layout Itemize
911 declare the document class.
912  LyX already does this for you.
913 \end_layout
914
915 \begin_deeper
916 \begin_layout Standard
917 If you're a seasoned LaTeX-nician, and you have some custom document class
918  you want to use, check out the 
919 \emph on
920 Customization Manual
921 \emph default
922  for information on how to make LyX interface to it.
923  Be sure to submit your efforts to the LyX Team for inclusion in future
924  versions!
925 \end_layout
926
927 \end_deeper
928 \begin_layout Itemize
929 declare the usage of packages.
930  LaTeX packages provide special commands, which are only available within
931  a document when the package has been declared in the preamble.
932  For example, the
933 \family typewriter
934  
935 \family default
936 package 
937 \family typewriter
938 indentfirst
939 \family default
940  forces all paragraphs to be indented.
941  There are other packages for labels, envelopes, margins, etc.
942  
943 \end_layout
944
945 \begin_layout Itemize
946 set counters, variables, lengths and widths.
947  There are several LaTeX counters and variables which 
948 \emph on
949 must
950 \emph default
951  be set globally from within the preamble in order to have the desired effect.
952  [There are other variables which you can set and reset inside the document,
953  too.] Margins are a good example of something which must be set in the preamble.
954  Another example is the label format for lists.
955  You can actually set these just about anywhere, but it's best to do it
956  just once, inside the preamble.
957 \end_layout
958
959 \begin_layout Itemize
960 declare user defined commands [with 
961 \family typewriter
962
963 \backslash
964 newcommand 
965 \family default
966 or 
967 \family typewriter
968
969 \backslash
970 renewcommand
971 \family default
972 ], mostly abbreviations for LaTeX commands which appear very often inside
973  a document.
974  Although the preamble is a good place to declare such commands, they 
975 \emph on
976 can
977 \emph default
978  be declared anywhere else [but 
979 \emph on
980 before
981 \emph default
982  they are used for the first time, of course\SpecialChar \ldots{}
983 ].
984  This can be useful if there is a lot of raw LaTeX code in your document,
985  which normally should not be the case.
986 \end_layout
987
988 \begin_layout Standard
989 LyX adds its own set of definitions to the preamble of the 
990 \family typewriter
991 .tex
992 \family default
993  file it produces.
994  This makes LaTeX files generated by LyX portable.
995 \end_layout
996
997 \begin_layout Subsection
998 Changing the Preamble
999 \end_layout
1000
1001 \begin_layout Standard
1002 The commands which LyX adds to the preamble of a LaTeX file are fixed; you
1003  can't change them without patching LyX itself.
1004  You can, however, add your own stuff to the preamble.
1005  There are two ways to do this:
1006 \end_layout
1007
1008 \begin_layout Enumerate
1009 Select 
1010 \family sans
1011 \bar under
1012 L
1013 \bar default
1014 aTeX\InsetSpace ~
1015
1016 \bar under
1017 P
1018 \bar default
1019 reamble
1020 \family default
1021  from the 
1022 \family sans
1023 \bar under
1024 D
1025 \bar default
1026 ocument
1027 \family default
1028  menu, or via the 
1029 \family sans
1030 \bar under
1031 D
1032 \bar default
1033 ocument
1034 \family default
1035 \SpecialChar \menuseparator
1036
1037 \family sans
1038 \bar under
1039 S
1040 \bar default
1041 ettings
1042 \family default
1043  dialog, depending on your frontend.
1044  Note that the LyX keybindings will not work in this dialog, alas.
1045 \end_layout
1046
1047 \begin_layout Enumerate
1048 Use the preamble contents you've added as your default template (see 
1049 \begin_inset Quotes eld
1050 \end_inset
1051
1052 Basic LyX Setup
1053 \begin_inset Quotes erd
1054 \end_inset
1055
1056  in the 
1057 \emph on
1058 User's Guide
1059 \emph default
1060 ), so that it will be the default preamble for any file you create.
1061 \end_layout
1062
1063 \begin_layout Standard
1064 LyX adds anything in the 
1065 \family sans
1066 \bar under
1067 P
1068 \bar default
1069 reamble
1070 \family default
1071  dialog to its own built-in preamble.
1072  Before adding your own declarations in the preamble, you should make sure
1073  that LyX doesn't already support what you want to do (remember what we
1074  said about reinventing the wheel?).
1075  Also, 
1076 \emph on
1077 make sure your preamble code is correct
1078 \emph default
1079 .
1080  LyX doesn't check it.
1081 \end_layout
1082
1083 \begin_layout Subsection
1084 Examples
1085 \end_layout
1086
1087 \begin_layout Standard
1088 Here are some examples of what you can add to a preamble, and what they
1089  do:
1090 \end_layout
1091
1092 \begin_layout Subsubsection
1093 Example #1: Offsets
1094 \end_layout
1095
1096 \begin_layout Standard
1097 There are two variables under LaTeX that control page position: 
1098 \family typewriter
1099
1100 \backslash
1101 hoffset
1102 \family default
1103  and 
1104 \family typewriter
1105
1106 \backslash
1107 voffset
1108 \family default
1109 .
1110  Their names should be self-explanatory.
1111  These variables are useful if you think for a moment about computer labels.
1112  Sometimes, the size of a print medium and the area of the medium that you
1113  can actually print on aren't the same.
1114  This is where 
1115 \family typewriter
1116
1117 \backslash
1118 hoffset
1119 \family default
1120  and 
1121 \family typewriter
1122
1123 \backslash
1124 voffset
1125 \family default
1126  come in.
1127 \end_layout
1128
1129 \begin_layout Standard
1130 The default values for 
1131 \family typewriter
1132
1133 \backslash
1134 hoffset
1135 \family default
1136  and 
1137 \family typewriter
1138
1139 \backslash
1140 voffset
1141 \family default
1142  are both 0 pt.,\InsetSpace ~
1143 i.\InsetSpace ~
1144 e.\InsetSpace ~
1145 the page isn't shifted.
1146 \end_layout
1147
1148 \begin_layout Standard
1149 Unfortunately, some DVI drivers always seem to shift the page.
1150  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1151  If you're using LyX on a system that you don't personally maintain, and
1152  your sysadmin is a doofus, 
1153 \family typewriter
1154
1155 \backslash
1156 hoffset
1157 \family default
1158  and 
1159 \family typewriter
1160
1161 \backslash
1162 voffset
1163 \family default
1164  can save the day.
1165  Suppose you're left and top margins are always 0.5 inches too big.
1166  You can add this to the preamble:
1167 \end_layout
1168
1169 \begin_layout LyX-Code
1170
1171 \backslash
1172 setlength{
1173 \backslash
1174 hoffset}{-0.5 in}
1175 \end_layout
1176
1177 \begin_layout LyX-Code
1178
1179 \backslash
1180 setlength{
1181 \backslash
1182 voffset}{-0.5 in}
1183 \end_layout
1184
1185 \begin_layout Standard
1186 \SpecialChar \ldots{}
1187 and your margins should now be correct.
1188 \end_layout
1189
1190 \begin_layout Subsubsection
1191 Example #2: Labels
1192 \end_layout
1193
1194 \begin_layout Standard
1195 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1196  There's a rather nice package, available at your nearest CTAN archive,
1197  for printing sheets of labels, called 
1198 \family typewriter
1199 labels.sty
1200 \family default
1201 .
1202  Now, your system may not have this package installed by default.
1203  We leave that up to you to check.
1204  You'll also want to read the documentation for it; we're not going to do
1205  that for you.
1206  Since this is an example, however, we'll give you an example of how you
1207  use this package.
1208 \end_layout
1209
1210 \begin_layout Standard
1211 First, make sure you're using the 
1212 \family sans
1213 article 
1214 \family default
1215 document class.
1216  Next, you need to put the following in your preamble:
1217 \end_layout
1218
1219 \begin_layout LyX-Code
1220
1221 \backslash
1222 usepackage{labels}
1223 \end_layout
1224
1225 \begin_layout LyX-Code
1226
1227 \backslash
1228 LabelCols=3
1229 \end_layout
1230
1231 \begin_layout LyX-Code
1232
1233 \backslash
1234 LabelRows=7
1235 \end_layout
1236
1237 \begin_layout LyX-Code
1238
1239 \backslash
1240 LeftBorder=8mm
1241 \end_layout
1242
1243 \begin_layout LyX-Code
1244
1245 \backslash
1246 RightBorder=8mm
1247 \end_layout
1248
1249 \begin_layout LyX-Code
1250
1251 \backslash
1252 TopBorder=9mm
1253 \end_layout
1254
1255 \begin_layout LyX-Code
1256
1257 \backslash
1258 BottomBorder=2mm
1259 \end_layout
1260
1261 \begin_layout Standard
1262 This sets things up for Avery® label sheets, stock #5360.
1263  You're now ready to print labels, but you'll need to insert LaTeX code,
1264  placing the commands 
1265 \family typewriter
1266
1267 \backslash
1268 begin{labels}
1269 \family default
1270  and 
1271 \family typewriter
1272
1273 \backslash
1274 end{labels}
1275 \family default
1276  around each label text.
1277  This and other special features of 
1278 \family typewriter
1279 labels.sty
1280 \family default
1281  are explained in its documentation.
1282 \end_layout
1283
1284 \begin_layout Standard
1285 Someday, someone may write a LyX layout file to support this package directly.
1286  Maybe that someone is you.
1287 \end_layout
1288
1289 \begin_layout Subsubsection
1290 Example #3: Paragraph Indentation
1291 \end_layout
1292
1293 \begin_layout Standard
1294 Americans are trained to indent the first line of 
1295 \emph on
1296 every
1297 \emph default
1298  paragraph.
1299  As with all of their other weird quirks, most Americans will whine and
1300  moan until they can have their way and indent the first line of all paragraphs.
1301 \begin_inset Foot
1302 status collapsed
1303
1304 \begin_layout Standard
1305 Note from 
1306 \noun on
1307 John Weiss
1308 \noun default
1309 : This was written by an American --- 
1310 \emph on
1311 me
1312 \emph default
1313 ! It's my perception of my fellow countrymen.
1314  Tough if you don't like it.
1315  Thpbpbpbpbpbpbpbp!
1316 \end_layout
1317
1318 \end_inset
1319
1320
1321 \end_layout
1322
1323 \begin_layout Standard
1324 Of course, this behavior isn't standard typography.
1325  In books, you typically only indent the first line of a paragraph 
1326 \emph on
1327 if
1328 \emph default
1329  it follows another one.
1330  The idea behind indenting the first line of a paragraph is to distinguish
1331  neighboring paragraphs from one another.
1332  If there is no previous paragraph, for example, it follows a figure, or
1333  is the first paragraph in a section, then there is no special indentation.
1334  
1335 \end_layout
1336
1337 \begin_layout Standard
1338 If you're a typical American, though, you don't care about such esoteric
1339  things; you want your indentation! Add this to the preamble:
1340 \end_layout
1341
1342 \begin_layout LyX-Code
1343
1344 \backslash
1345 usepackage{indentfirst}
1346 \end_layout
1347
1348 \begin_layout Standard
1349 If your TeX distribution isn't a braindead one, you'll have this package,
1350  and all of your paragraphs will get the indentation you think they deserve.
1351 \end_layout
1352
1353 \begin_layout Subsubsection
1354 Example #4: This Document
1355 \end_layout
1356
1357 \begin_layout Standard
1358 You can also check out the preamble of this document to get an idea of some
1359  of the advanced things you can do.
1360  You'll probably need to make the 
1361 \family sans
1362 \bar under
1363 P
1364 \bar default
1365 reamble\SpecialChar \ldots{}
1366
1367 \family default
1368  dialog full-screen to see most of it.
1369  Also, there are more examples and an assortment of LaTeX 
1370 \begin_inset Quotes eld
1371 \end_inset
1372
1373 dirty tricks
1374 \begin_inset Quotes erd
1375 \end_inset
1376
1377  given in Chapter\InsetSpace ~
1378
1379 \begin_inset LatexCommand \ref{cha:secrets}
1380
1381 \end_inset
1382
1383 .
1384  
1385 \end_layout
1386
1387 \begin_layout Section
1388 LyX and LaTeX Errors
1389 \end_layout
1390
1391 \begin_layout Standard
1392 When LyX calls LaTeX, it tells LaTeX to blithely ignore any errors and keep
1393  going.
1394  It then uses the log-file from the LaTeX run to do a post-mortem.
1395  As we stated earlier in the chapter, LyX generates two kinds of 
1396 \family typewriter
1397 .tex
1398 \family default
1399  files, one of which it uses to locate errors in the document.
1400  If there was an error someplace, LyX will put a box with the word 
1401 \begin_inset Quotes eld
1402 \end_inset
1403
1404 Error
1405 \begin_inset Quotes erd
1406 \end_inset
1407
1408  at the appropriate place in the document.
1409 \begin_inset Foot
1410 status collapsed
1411
1412 \begin_layout Standard
1413 LyX will occasionally misguess where the error was.
1414  This will typically happen with tables, figures, math, and the preamble.
1415 \end_layout
1416
1417 \end_inset
1418
1419  It will also display a message alerting you to the fact that there were
1420  errors.
1421 \end_layout
1422
1423 \begin_layout Standard
1424 You can navigate through the errors by using 
1425 \family sans
1426 \bar under
1427 E
1428 \bar default
1429 rror
1430 \family default
1431  in the 
1432 \family sans
1433 \bar under
1434 N
1435 \bar default
1436 avigate
1437 \family default
1438  menu.
1439  You can 
1440 \begin_inset Quotes eld
1441 \end_inset
1442
1443 open
1444 \begin_inset Quotes erd
1445 \end_inset
1446
1447  the error-boxes and view the error message LaTeX produced by clicking on
1448  it.
1449 \end_layout
1450
1451 \begin_layout Standard
1452 Some folks also like to look at the log file directly, accessible from
1453 \family sans
1454  
1455 \bar under
1456 D
1457 \bar default
1458 ocument\SpecialChar \menuseparator
1459
1460 \bar under
1461 L
1462 \bar default
1463 aTeX\InsetSpace ~
1464 Log\InsetSpace ~
1465 File
1466 \family default
1467 .
1468  There are some fairly common error messages and warnings.
1469  We'll cover those here.
1470  You should look at a good LaTeX book for a complete listing.
1471 \end_layout
1472
1473 \begin_layout Itemize
1474 \begin_inset Quotes eld
1475 \end_inset
1476
1477
1478 \family typewriter
1479 LaTeX Warning:
1480 \family default
1481
1482 \begin_inset Quotes eld
1483 \end_inset
1484
1485
1486 \end_layout
1487
1488 \begin_deeper
1489 \begin_layout Standard
1490 Anything beginning with these word is a warning message for the purpose
1491  of 
1492 \begin_inset Quotes eld
1493 \end_inset
1494
1495 debugging
1496 \begin_inset Quotes erd
1497 \end_inset
1498
1499  the LaTeX code itself.
1500  You'll get messages like this if you added or changed cross-references
1501  or bibliography entries, in which case, LaTeX is trying to tell you that
1502  you need to make another run.
1503 \end_layout
1504
1505 \begin_layout Standard
1506 You can by-and-large ignore these.
1507 \end_layout
1508
1509 \end_deeper
1510 \begin_layout Itemize
1511 \begin_inset Quotes eld
1512 \end_inset
1513
1514
1515 \family typewriter
1516 LaTeX Font Warning:
1517 \family default
1518
1519 \begin_inset Quotes erd
1520 \end_inset
1521
1522
1523 \end_layout
1524
1525 \begin_deeper
1526 \begin_layout Standard
1527 Another warning message, this time about fonts which LaTeX couldn't find.
1528  The rest of the message will often say something about a replacement font
1529  that LaTeX used.
1530 \end_layout
1531
1532 \begin_layout Standard
1533 You can safely ignore these.
1534 \end_layout
1535
1536 \end_deeper
1537 \begin_layout Itemize
1538 \begin_inset Quotes eld
1539 \end_inset
1540
1541
1542 \family typewriter
1543 Overfull 
1544 \backslash
1545 hbox
1546 \family default
1547
1548 \begin_inset Quotes erd
1549 \end_inset
1550
1551
1552 \end_layout
1553
1554 \begin_deeper
1555 \begin_layout Standard
1556 LaTeX absolutely 
1557 \emph on
1558 loves
1559 \emph default
1560  to spew these out.
1561  They are warning you about lines that were too long and run past the right
1562  margin.
1563  Almost always, this is unnoticeable in the final output.
1564  Or, only one or two characters extend past the margin.
1565  LaTeX seems to generate at least one of these messages for just about any
1566  document you write.
1567 \end_layout
1568
1569 \begin_layout Standard
1570 You can ignore these stupid messages.
1571  Your eyes will tell you if there's a problem with something that's too
1572  wide; just look at the output.
1573 \end_layout
1574
1575 \end_deeper
1576 \begin_layout Itemize
1577 \begin_inset Quotes eld
1578 \end_inset
1579
1580
1581 \family typewriter
1582 Underfull 
1583 \backslash
1584 hbox
1585 \family default
1586
1587 \begin_inset Quotes erd
1588 \end_inset
1589
1590
1591 \end_layout
1592
1593 \begin_deeper
1594 \begin_layout Standard
1595 Not quite as common as its cousin.
1596  LaTeX seems to like to print lines that are a bit too wide as opposed to
1597  ones that are a bit too narrow.
1598  We have no idea why.
1599 \end_layout
1600
1601 \begin_layout Standard
1602 You can ignore these, too.
1603 \end_layout
1604
1605 \end_deeper
1606 \begin_layout Itemize
1607 \begin_inset Quotes eld
1608 \end_inset
1609
1610
1611 \family typewriter
1612 Overfull 
1613 \backslash
1614 vbox
1615 \family default
1616
1617 \begin_inset Quotes erd
1618 \end_inset
1619
1620  and 
1621 \begin_inset Quotes eld
1622 \end_inset
1623
1624
1625 \family typewriter
1626 Underfull 
1627 \backslash
1628 vbox
1629 \family default
1630
1631 \begin_inset Quotes erd
1632 \end_inset
1633
1634
1635 \end_layout
1636
1637 \begin_deeper
1638 \begin_layout Standard
1639 Warnings about troubles breaking the page.
1640  Once again, just look at the output.
1641  Your eyes will tell you where something has gone wrong.
1642 \end_layout
1643
1644 \end_deeper
1645 \begin_layout Itemize
1646 \begin_inset Quotes eld
1647 \end_inset
1648
1649  
1650 \family typewriter
1651 LaTeX Error: File 
1652 \begin_inset Quotes els
1653 \end_inset
1654
1655 Xxxx
1656 \begin_inset Quotes ers
1657 \end_inset
1658
1659  not found
1660 \family default
1661
1662 \begin_inset Quotes erd
1663 \end_inset
1664
1665  
1666 \end_layout
1667
1668 \begin_deeper
1669 \begin_layout Standard
1670 The file 
1671 \begin_inset Quotes eld
1672 \end_inset
1673
1674 Xxxx
1675 \begin_inset Quotes erd
1676 \end_inset
1677
1678  isn't installed on this system.
1679  This usually appears because some package your document needs isn't installed.
1680  If you didn't touch the preamble or didn't use the 
1681 \family typewriter
1682
1683 \backslash
1684 usepackage{}
1685 \family default
1686  command, then one of the packages LyX tried to load is missing.
1687  Use 
1688 \family sans
1689 \bar under
1690 H
1691 \bar default
1692 elp\SpecialChar \menuseparator
1693 L
1694 \bar under
1695 a
1696 \bar default
1697 TeX Configuration
1698 \family default
1699 , to get a list of packages that LyX knows about.
1700  This file is updated whenever you reconfigure LyX (using 
1701 \family sans
1702 \bar under
1703 T
1704 \bar default
1705 ools
1706 \bar under
1707 \SpecialChar \menuseparator
1708 R
1709 \bar default
1710 econfigure
1711 \family default
1712 ) and tells you which packages have been detected and what they do.
1713 \end_layout
1714
1715 \begin_layout Standard
1716 If you 
1717 \emph on
1718 did
1719 \emph default
1720  use the 
1721 \family typewriter
1722
1723 \backslash
1724 usepackage{}
1725 \family default
1726  command, and the package in question isn't installed, you'll need to install
1727  it yourself.
1728 \end_layout
1729
1730 \end_deeper
1731 \begin_layout Itemize
1732 \begin_inset Quotes eld
1733 \end_inset
1734
1735
1736 \family typewriter
1737 LaTeX Error: Unknown option
1738 \family default
1739
1740 \begin_inset Quotes erd
1741 \end_inset
1742
1743
1744 \end_layout
1745
1746 \begin_deeper
1747 \begin_layout Standard
1748 Error messages beginning with this are trying to tell you that you specified
1749  a bad or undefined option to a package.
1750  Check the package's documentation.
1751 \end_layout
1752
1753 \end_deeper
1754 \begin_layout Itemize
1755 \begin_inset Quotes eld
1756 \end_inset
1757
1758
1759 \family typewriter
1760 Undefined control sequence
1761 \family default
1762
1763 \begin_inset Quotes erd
1764 \end_inset
1765
1766
1767 \end_layout
1768
1769 \begin_deeper
1770 \begin_layout Standard
1771 If you've inserted LaTeX code into your document, but made a typo, you'll
1772  get one of these.
1773  You may have forgotten to load a package.
1774  In any case, this error message usually means that you used an undefined
1775  command.
1776 \end_layout
1777
1778 \end_deeper
1779 \begin_layout Standard
1780 There are other error and warning messages.
1781  Some are self-explanatory.
1782  These are usually LaTeX messages.
1783  Others are downright cryptic.
1784  These are actually TeX error messages, and we really have 
1785 \emph on
1786 no clue
1787 \emph default
1788  what they mean or how to decipher them.
1789 \end_layout
1790
1791 \begin_layout Standard
1792 There's a general sequence you should follow if you get error messages:
1793 \end_layout
1794
1795 \begin_layout Enumerate
1796 Look at the LaTeX code you inserted for typos.
1797 \end_layout
1798
1799 \begin_layout Enumerate
1800 If there are no typos, check and see that you used the command(s) correctly.
1801 \end_layout
1802
1803 \begin_layout Enumerate
1804 If you get a bunch of error boxes piled up at the very top of the document,
1805  it means that there are errors in the preamble.
1806  Start debugging your preamble.
1807 \end_layout
1808
1809 \begin_layout Enumerate
1810 If you didn't add anything to the preamble and didn't add any LaTeX code
1811  to the document, the first suspect is your LaTeX distribution itself.
1812  Check for missing packages and install them.
1813 \end_layout
1814
1815 \begin_layout Enumerate
1816 Okay, so there are no missing packages.
1817  Did you use any of the fine-tuning options in LyX? Specifically, did you
1818  
1819 \emph on
1820 misuse
1821 \emph default
1822  any of them, like trying to manually insert lots of 
1823 \family sans
1824 Protected\InsetSpace ~
1825 Blank
1826 \family default
1827 s, 
1828 \family sans
1829 Linebreak
1830 \family default
1831 s, or 
1832 \family sans
1833 Pagebreak
1834 \family default
1835 s? Did you try to kludge something together with these instead of using
1836  the appropriate paragraph environment?
1837 \end_layout
1838
1839 \begin_layout Enumerate
1840 All right, you didn't use any of the fine-tuning options, you played by
1841  the rules.
1842  Did you try to pull a fancy maneuver? Did you do something funky inside
1843  a table or an equation, like inserting a graphic into a table cell?
1844 \end_layout
1845
1846 \begin_layout Enumerate
1847 Do you have long sections of text where LaTeX cannot find a place to break
1848  a line? By default, LaTeX is rather strict about how much extra inter-word
1849  spacing it will add in order to break a line.
1850  Preferrably, you should rework the paragraph to avoid the problem.
1851  If this isn't an option, you can wrap your text in 
1852 \family typewriter
1853
1854 \backslash
1855 sloppypar
1856 \family default
1857  to make LaTeX's line breaking more, well, sloppy.
1858 \end_layout
1859
1860 \begin_layout Enumerate
1861 Did you go overboard with the nesting? LyX (currently) doesn't check to
1862  make sure you're in the limits for nesting environments.
1863  If you nested a bunch of environments to the 
1864 \begin_inset Formula $17^{\mathrm{th}}$
1865 \end_inset
1866
1867  level, that's the problem.
1868 \end_layout
1869
1870 \begin_layout Enumerate
1871 Okay, you didn't get any error messages, but your output looks whacked.
1872  If you have a table or figure that's too wide or long for the page, you
1873  need to:
1874 \end_layout
1875
1876 \begin_deeper
1877 \begin_layout Enumerate
1878 rescale the figure so it fits.
1879 \end_layout
1880
1881 \begin_layout Enumerate
1882 trim down the table so it fits.
1883 \end_layout
1884
1885 \begin_layout Standard
1886 If something else is wrong with the output, and you didn't try to pull anything
1887  fancy or kludge the fine-tuning options, we're not sure what's wrong.
1888 \end_layout
1889
1890 \end_deeper
1891 \begin_layout Standard
1892 If all this doesn't help --- well, then 
1893 \emph on
1894 perhaps
1895 \emph default
1896  you might have found a bug in LyX\SpecialChar \ldots{}
1897
1898 \end_layout
1899
1900 \begin_layout Chapter
1901 Supplemental Tools
1902 \end_layout
1903
1904 \begin_layout Section
1905 Preparing a Bibliography with BibTeX
1906 \begin_inset LatexCommand \label{sec:Preparing-a-Bibliography}
1907
1908 \end_inset
1909
1910
1911 \end_layout
1912
1913 \begin_layout Standard
1914 by 
1915 \noun on
1916 Mike Ressler
1917 \noun default
1918  and 
1919 \noun on
1920 Jürgen Spitzmüller
1921 \end_layout
1922
1923 \begin_layout Standard
1924 \begin_inset VSpace bigskip
1925 \end_inset
1926
1927
1928 \end_layout
1929
1930 \begin_layout Standard
1931 \noindent
1932 STOP! If you don't know what BibTeX is, or have a reasonably good idea of
1933  how to use it (
1934 \emph on
1935 e.g.
1936
1937 \emph default
1938  setting up your own bibliographic databases), 
1939 \emph on
1940 run
1941 \emph default
1942 , do not walk, to your nearest copy of the 2nd edition of Lamport's 
1943 \emph on
1944 LaTeX: A Document Preparation System
1945 \emph default
1946 , particularly Appendix B.
1947  The rest of this discussion assumes you have created a correct bibliography
1948  file, that you have all relevant environment variables set correctly (esp.
1949  
1950 \family typewriter
1951 BIBINPUTS
1952 \family default
1953
1954 \family typewriter
1955 BSTINPUTS
1956 \family default
1957 , and 
1958 \family typewriter
1959 TEXINPUTS
1960 \family default
1961 ), and that if sufficiently desperate, you could create and 
1962 \begin_inset Quotes eld
1963 \end_inset
1964
1965 TeX
1966 \begin_inset Quotes erd
1967 \end_inset
1968
1969  a LaTeX file with a BibTeX database.
1970  
1971 \end_layout
1972
1973 \begin_layout Standard
1974 For those who don't know what BibTeX is, it is a system for creating a large
1975  database of your most used journal references.
1976  For all future articles you write, you only need to include this standard
1977  database and reference the appropriate key to each reference.
1978  Even if you write only a few papers with handful of references each, it
1979  is well worth your time to examine BibTeX and decide whether it will be
1980  useful to you.
1981 \end_layout
1982
1983 \begin_layout Standard
1984 To use BibTeX with LyX, first read the 
1985 \emph on
1986 User Guide
1987 \emph default
1988  where it describes how to insert citations.
1989  The basic mechanism for inserting BibTeX references is the same.
1990  Then, at the very end of your document, select 
1991 \family sans
1992 Insert\SpecialChar \menuseparator
1993 List
1994 \family default
1995  / 
1996 \family sans
1997 TOC\SpecialChar \menuseparator
1998 BibTeX Reference
1999 \family default
2000 .
2001  In the resulting dialog, fill out the dialog boxes as follows: 
2002 \end_layout
2003
2004 \begin_layout Description
2005 Database: enter the name of your 
2006 \family typewriter
2007 .bib
2008 \family default
2009  file 
2010 \emph on
2011 without
2012 \emph default
2013  the 
2014 \family typewriter
2015 .bib
2016 \family default
2017  extension.
2018  For searching multiple 
2019 \family typewriter
2020 .bib
2021 \family default
2022  files, just enter them in the desired order, separated by commas.
2023  
2024 \end_layout
2025
2026 \begin_layout Description
2027 Style: enter the name of your BibTeX style file *without* the 
2028 \family typewriter
2029 .bst
2030 \family default
2031  extension.
2032  The default style is 
2033 \family typewriter
2034 plain
2035 \family default
2036  (which should be included in your LaTeX distribution, so you don't have
2037  to worry about creating it).
2038 \end_layout
2039
2040 \begin_layout Standard
2041 For each citation, assuming that the source is in the 
2042 \family typewriter
2043 .bib
2044 \family default
2045  file, just call 
2046 \family sans
2047 \bar under
2048 I
2049 \bar default
2050 nsert\SpecialChar \menuseparator
2051
2052 \bar under
2053 C
2054 \bar default
2055 itation Reference
2056 \family default
2057  at the correct location in the text, and enter the appropriate reference
2058  key.
2059  Nothing else is required; when invoking 
2060 \family sans
2061 \bar under
2062 V
2063 \bar default
2064 iew\SpecialChar \menuseparator
2065
2066 \bar under
2067 D
2068 \bar default
2069 VI
2070 \family default
2071 , for example, you should see that BibTex and LaTeX are invoked as needed,
2072  including multiple invocations of LaTeX.
2073  
2074 \end_layout
2075
2076 \begin_layout Subsection
2077 Alternative Citation Styles
2078 \end_layout
2079
2080 \begin_layout Standard
2081 Standard BibTeX uses numbers (e.\InsetSpace \thinspace{}
2082 g.\InsetSpace \space{}
2083
2084 \begin_inset Quotes eld
2085 \end_inset
2086
2087 [12]
2088 \begin_inset Quotes erd
2089 \end_inset
2090
2091 ) to refer to a cited work.
2092  However, in many scientific disciplines, other citation styles are in use.
2093  The most common one is the author-year style (e.\InsetSpace \thinspace{}
2094 g.\InsetSpace \space{}
2095
2096 \begin_inset Quotes eld
2097 \end_inset
2098
2099 Knuth 1984a
2100 \begin_inset Quotes erd
2101 \end_inset
2102
2103 ).
2104  LyX supports two packages that provide this style, 
2105 \family typewriter
2106 natbib
2107 \family default
2108  and 
2109 \family typewriter
2110 jurabib
2111 \family default
2112 .
2113  Both packages have their own pros and cons, which cannot be listed in detail.
2114  If you only want to have simple author-year (or author-numerical) style
2115  or if you want to use one of the countless style files for natbib, than
2116  the established 
2117 \family typewriter
2118 natbib
2119 \family default
2120  package is probably your choice.
2121  If you need special features like short title references, ibidem etc., you
2122  might consider the fairly new 
2123 \family typewriter
2124 jurabib
2125 \family default
2126  package.
2127 \end_layout
2128
2129 \begin_layout Standard
2130 The handling of both packages in LyX is basically the same.
2131  Go to 
2132 \family sans
2133 \bar under
2134 D
2135 \bar default
2136 ocument\SpecialChar \menuseparator
2137
2138 \bar under
2139 S
2140 \bar default
2141 ettings 
2142 \family default
2143 and select the 
2144 \family sans
2145 Bibliography
2146 \family default
2147  pane (with the xforms frontend: the 
2148 \family sans
2149 Extras
2150 \family default
2151  tab).
2152  Then select 
2153 \family sans
2154 Natbib
2155 \family default
2156  or 
2157 \family sans
2158 Jurabib
2159 \family default
2160 .
2161  With both packages, you will get some extra features in the citation dialog
2162  and you can select the style of the reference (
2163 \begin_inset Quotes eld
2164 \end_inset
2165
2166 Knuth 1984
2167 \begin_inset Quotes erd
2168 \end_inset
2169
2170
2171 \begin_inset Quotes eld
2172 \end_inset
2173
2174 Knuth (1984)
2175 \begin_inset Quotes erd
2176 \end_inset
2177
2178
2179 \begin_inset Quotes eld
2180 \end_inset
2181
2182 Knuth, 1984
2183 \begin_inset Quotes erd
2184 \end_inset
2185
2186
2187 \begin_inset Quotes eld
2188 \end_inset
2189
2190 1984
2191 \begin_inset Quotes erd
2192 \end_inset
2193
2194  etc.).
2195  Note that both packages need specifically designed style files (they both
2196  ship their own, while there are lots of additional style files and even
2197  an interactive style file builder
2198 \begin_inset Foot
2199 status collapsed
2200
2201 \begin_layout Standard
2202 See 
2203 \begin_inset LatexCommand \url{ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/}
2204
2205 \end_inset
2206
2207
2208 \end_layout
2209
2210 \end_inset
2211
2212  for 
2213 \family typewriter
2214 natbib
2215 \family default
2216  available).
2217 \end_layout
2218
2219 \begin_layout Subsection
2220 Sectionated Bibliographies
2221 \begin_inset LatexCommand \label{sub:Sectionated-Bibliographies}
2222
2223 \end_inset
2224
2225
2226 \end_layout
2227
2228 \begin_layout Standard
2229 Sometimes you might need to divide your bibliography into several sections.
2230  If you are, for instance, a historian, the possibility to separate sources
2231  and scientific works is most likely a 
2232 \begin_inset Quotes eld
2233 \end_inset
2234
2235 must have
2236 \begin_inset Quotes erd
2237 \end_inset
2238
2239 .
2240  Unfortunately, BibTeX itself does not allow you to do this.
2241  The good news is, though: With the help of some LaTeX packages, BibTeX
2242  can be extended to fit your historical needs.
2243 \end_layout
2244
2245 \begin_layout Standard
2246 As of version 1.4, LyX provides native support for one of these packages,
2247  Stefan Ulrich's 
2248 \family typewriter
2249 bibtopic
2250 \family default
2251 .
2252 \begin_inset Foot
2253 status collapsed
2254
2255 \begin_layout Standard
2256 Available from 
2257 \begin_inset LatexCommand \url{ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/}
2258
2259 \end_inset
2260
2261
2262 \end_layout
2263
2264 \end_inset
2265
2266  The advantage of this package (compared to other packages like 
2267 \family typewriter
2268 multibib
2269 \family default
2270 ) is that you don't need to define new citation commands.
2271  Instead, you need to prepare different bibliographic databases which include
2272  the entries for the different sections of the bibliography.
2273  For example: If you want to divide your bibliography into the sections
2274  
2275 \begin_inset Quotes eld
2276 \end_inset
2277
2278 Sources
2279 \begin_inset Quotes erd
2280 \end_inset
2281
2282  and 
2283 \begin_inset Quotes eld
2284 \end_inset
2285
2286 Scientific works
2287 \begin_inset Quotes erd
2288 \end_inset
2289
2290 , you first need to create two bibliographic databases, e.\InsetSpace \thinspace{}
2291 g.\InsetSpace \space{}
2292
2293 \family typewriter
2294 sources.bib
2295 \family default
2296  and 
2297 \family typewriter
2298 scientific.bib
2299 \family default
2300 .
2301  
2302 \end_layout
2303
2304 \begin_layout Standard
2305 In LyX, go to 
2306 \family sans
2307 \bar under
2308 D
2309 \bar default
2310 ocument\SpecialChar \menuseparator
2311
2312 \bar under
2313 S
2314 \bar default
2315 ettings 
2316 \family default
2317 and select the 
2318 \family sans
2319 Bibliography
2320 \family default
2321  pane (with the xforms frontend: the 
2322 \family sans
2323 Extras
2324 \family default
2325  tab).
2326  Check 
2327 \family sans
2328 Sectionated\InsetSpace ~
2329 bibliography
2330 \family default
2331 .
2332  Now you can insert multiple BibTeX references (as described in section\InsetSpace ~
2333
2334 \begin_inset LatexCommand \ref{sec:Preparing-a-Bibliography}
2335
2336 \end_inset
2337
2338 ), one for each section of your bibliography.
2339  Returning to our example: Insert a BibTeX reference for the database 
2340 \family typewriter
2341 sources.bib
2342 \family default
2343  and a second one for the database 
2344 \family typewriter
2345 scientific.bib
2346 \family default
2347 .
2348  You are free to use the same or different styles for each section.
2349  Additionally, you can chose if the bibliography section should contain
2350  
2351 \begin_inset Quotes eld
2352 \end_inset
2353
2354 all cited references
2355 \begin_inset Quotes erd
2356 \end_inset
2357
2358  of the specified database(s) (which is the default), 
2359 \begin_inset Quotes eld
2360 \end_inset
2361
2362 all uncited references
2363 \begin_inset Quotes erd
2364 \end_inset
2365
2366  or even 
2367 \begin_inset Quotes eld
2368 \end_inset
2369
2370 all references
2371 \begin_inset Quotes erd
2372 \end_inset
2373
2374 .
2375  This might be useful if you would like to separate your bibliography into
2376  three sections: 
2377 \begin_inset Quotes eld
2378 \end_inset
2379
2380 Cited sources
2381 \begin_inset Quotes erd
2382 \end_inset
2383
2384
2385 \begin_inset Quotes eld
2386 \end_inset
2387
2388 Uncited sources
2389 \begin_inset Quotes erd
2390 \end_inset
2391
2392 , and 
2393 \begin_inset Quotes eld
2394 \end_inset
2395
2396 Scientific works
2397 \begin_inset Quotes erd
2398 \end_inset
2399
2400 .
2401  The titles for the sections can be added as ordinary sections or subsections.
2402  Since 
2403 \family typewriter
2404 bibtopic
2405 \family default
2406  removes the bibliography title, you have manually re-add that, too (as
2407  a chapter* or section*, for instance).
2408 \end_layout
2409
2410 \begin_layout Subsection
2411 Multiple Bibliographies
2412 \end_layout
2413
2414 \begin_layout Standard
2415 Multiple bibliographies, e.\InsetSpace \thinspace{}
2416 g.\InsetSpace \space{}
2417 a bibliography for each section or chapter of
2418  the document, are not supported by BibTeX itself.
2419  But the 
2420 \family typewriter
2421 bibtopic
2422 \family default
2423  package, which is used for the creation of sectionated bibliographies in
2424  LyX (cf.\InsetSpace ~
2425 section\InsetSpace ~
2426
2427 \begin_inset LatexCommand \ref{sub:Sectionated-Bibliographies}
2428
2429 \end_inset
2430
2431 ), provides an easy way to solve this task, if you are willing to use some
2432  LaTeX-Code (ERT, cf.\InsetSpace ~
2433 section\InsetSpace ~
2434
2435 \begin_inset LatexCommand \ref{sec:Inserting-LaTeX-Code}
2436
2437 \end_inset
2438
2439 ).
2440 \begin_inset Foot
2441 status collapsed
2442
2443 \begin_layout Standard
2444 An alternative approach is to use the 
2445 \family typewriter
2446 chapterbib
2447 \family default
2448  or 
2449 \family typewriter
2450 bibunits
2451 \family default
2452  package, respectively.
2453 \end_layout
2454
2455 \end_inset
2456
2457
2458 \end_layout
2459
2460 \begin_layout Standard
2461 First, go to 
2462 \family sans
2463 \bar under
2464 D
2465 \bar default
2466 ocument\SpecialChar \menuseparator
2467
2468 \bar under
2469 S
2470 \bar default
2471 ettings 
2472 \family default
2473 and select the 
2474 \family sans
2475 Bibliography
2476 \family default
2477  pane (with the xforms frontend: the 
2478 \family sans
2479 Extras
2480 \family default
2481  tab).
2482  Check 
2483 \family sans
2484 Sectionated\InsetSpace ~
2485 bibliography
2486 \family default
2487 .
2488  In the document, you have to enclose the sections, which shall contain
2489  their own bibliography (including the BibTeX reference itself), between
2490  
2491 \family typewriter
2492
2493 \backslash
2494 begin{btUnit}
2495 \family default
2496  and 
2497 \family typewriter
2498
2499 \backslash
2500 end{btUnit}
2501 \family default
2502  (those commands have to be inserted as ERT).
2503  The bibliography will contain all references which have been cited in the
2504  current btUnit.
2505  N.\InsetSpace \thinspace{}
2506 B.: If you are using this approach, then 
2507 \emph on
2508 every
2509 \emph default
2510  citation reference has to be inside some btUnit.
2511  Also, the btUnits cannot be nested.
2512 \end_layout
2513
2514 \begin_layout Section
2515 Making an Index
2516 \end_layout
2517
2518 \begin_layout Standard
2519 A good index is one of the hardest things to make in a lengthy document,
2520  but LyX helps make things a bit simpler by interfacing to the 
2521 \family typewriter
2522 makeindex
2523 \family default
2524  program which is found in most recent LaTeX distributions.
2525 \begin_inset Foot
2526 status collapsed
2527
2528 \begin_layout Standard
2529
2530 \family roman
2531 \series medium
2532 \shape up
2533 \size normal
2534 \emph off
2535 \bar no
2536 \noun off
2537 \color none
2538 In the 
2539 \family sans
2540 \series default
2541 \shape default
2542 \size default
2543 \emph default
2544 \bar default
2545 \noun default
2546 Outputs\SpecialChar \menuseparator
2547 LaT\SpecialChar \textcompwordmark{}
2548 eX
2549 \family roman
2550 \series medium
2551 \shape up
2552 \size normal
2553 \emph off
2554 \bar no
2555 \noun off
2556  section of the preferences dialog, however, you can customize the index
2557  command, if you prefer an alternative program like 
2558 \family typewriter
2559 \series default
2560 \shape default
2561 \size default
2562 \emph default
2563 \bar default
2564 \noun default
2565 \color none
2566 xindy
2567 \family roman
2568 \series medium
2569 \shape up
2570 \size normal
2571 \emph off
2572 \bar no
2573 \noun off
2574 \color none
2575 .
2576 \end_layout
2577
2578 \end_inset
2579
2580  Inserting an index and marking words to include in it works much the same
2581  way as preparing a bibliography as mentioned in the last section.
2582 \end_layout
2583
2584 \begin_layout Standard
2585 First, go to the end of your file and select 
2586 \family sans
2587 \bar under
2588 I
2589 \bar default
2590 nsert\SpecialChar \menuseparator
2591 List
2592 \family default
2593 \InsetSpace ~
2594 /\InsetSpace ~
2595
2596 \family sans
2597 T
2598 \bar under
2599 O
2600 \bar default
2601 C\SpecialChar \menuseparator
2602
2603 \bar under
2604 I
2605 \bar default
2606 ndex
2607 \family default
2608 \InsetSpace ~
2609
2610 \family sans
2611 List
2612 \family default
2613 .
2614  Then, for each word you would like to include in the index, go to the end
2615  of that word and click on 
2616 \family sans
2617 \bar under
2618 I
2619 \bar default
2620 nsert\SpecialChar \menuseparator
2621
2622 \bar under
2623 I
2624 \bar default
2625 ndex
2626 \family default
2627 \InsetSpace ~
2628
2629 \family sans
2630 Entry
2631 \family default
2632 .
2633  This will insert a tag showing the word as it will appear in the index.
2634  That's all there is to it; LyX will automatically call 
2635 \family typewriter
2636 makeindex
2637 \family default
2638  for you and create the index itself.
2639  The text in the dialog available from right-clicking on the index button
2640  accepts LaTeX, so you'll need to be careful to avoid using any special
2641  characters.
2642  On the positive side, you can use the advanced options - have a look at
2643  the documentation which comes with your LaTeX distribution to find out
2644  how to do things like 
2645 \begin_inset Quotes eld
2646 \end_inset
2647
2648 nested entries
2649 \begin_inset Quotes erd
2650 \end_inset
2651
2652 , etc.
2653 \end_layout
2654
2655 \begin_layout Standard
2656 Be careful not to put spaces between the word in the text and the index
2657  marker; apparently the wrong page number can be produced if this happens.
2658 \end_layout
2659
2660 \begin_layout Section
2661 Multipart Documents
2662 \end_layout
2663
2664 \begin_layout Subsection
2665 General Operation
2666 \end_layout
2667
2668 \begin_layout Standard
2669 When you are working on a large file with many sections, it is often convenient
2670  to break up the document into several files, or perhaps you have something
2671  where a table may change from time to time, but the preceding text does
2672  not.
2673  In these cases, you should seriously consider using multipart documents.
2674  For example, scientific papers often have five major sections: the introduction
2675 , observations, results, discussion, and conclusion.
2676  Each of these could be its own separate LyX file, with one 
2677 \begin_inset Quotes eld
2678 \end_inset
2679
2680 master
2681 \begin_inset Quotes erd
2682 \end_inset
2683
2684  file which contains the title, authors, abstract, references, etc., plus
2685  the five included files.
2686  It is important to note that each of these files is a full LyX file which
2687  can be formatted and printed on its own, as well as included in a master
2688  file.
2689  Each of these files must have the same document class, however--- don't
2690  attempt to mix book classes with article classes.
2691  You may also include LaTeX files; however, these files must not have their
2692  own preamble 
2693 \emph on
2694 (i.e.
2695
2696 \emph default
2697  everything up to and including the 
2698 \family typewriter
2699
2700 \backslash
2701 begin{document}
2702 \family default
2703  line as well as the 
2704 \family typewriter
2705
2706 \backslash
2707 end{document}
2708 \family default
2709  line must be deleted) or else errors will be generated when you try to
2710  make a DVI file.
2711 \end_layout
2712
2713 \begin_layout Standard
2714 LyX allows you to include files quite easily with 
2715 \family sans
2716 \bar under
2717 I
2718 \bar default
2719 nsert\SpecialChar \menuseparator
2720 ChiI
2721 \bar under
2722 d
2723 \bar default
2724 \InsetSpace ~
2725 Document
2726 \family default
2727 .
2728  When you click on this selection a small box is inserted into the file
2729  at the current cursor location.
2730  Clicking on the box raises a dialog which allows you to select the file
2731  to be included, and the method of its inclusion.
2732  
2733 \end_layout
2734
2735 \begin_layout Standard
2736 The file selection box should by now be obvious.
2737  The three inclusion methods are 
2738 \begin_inset Quotes eld
2739 \end_inset
2740
2741 include
2742 \begin_inset Quotes erd
2743 \end_inset
2744
2745
2746 \begin_inset Quotes eld
2747 \end_inset
2748
2749 input
2750 \begin_inset Quotes erd
2751 \end_inset
2752
2753 , and 
2754 \begin_inset Quotes eld
2755 \end_inset
2756
2757 verbatim
2758 \begin_inset Quotes erd
2759 \end_inset
2760
2761 .
2762  The difference between 
2763 \begin_inset Quotes eld
2764 \end_inset
2765
2766 include
2767 \begin_inset Quotes erd
2768 \end_inset
2769
2770  and 
2771 \begin_inset Quotes eld
2772 \end_inset
2773
2774 input
2775 \begin_inset Quotes erd
2776 \end_inset
2777
2778  is really only meaningful to LaTeXperts, but the practical difference is
2779  that files which are 
2780 \begin_inset Quotes eld
2781 \end_inset
2782
2783 included
2784 \begin_inset Quotes erd
2785 \end_inset
2786
2787  are typeset beginning on a new page, while files which are 
2788 \begin_inset Quotes eld
2789 \end_inset
2790
2791 inputted
2792 \begin_inset Quotes erd
2793 \end_inset
2794
2795  are typeset starting on the current page.
2796  Perhaps the labeling in LyX will be changed someday to reflect this.
2797 \end_layout
2798
2799 \begin_layout Standard
2800 Generally, the master file is converted into a full LaTeX file before typesettin
2801 g, while the included files are converted to LaTeX files which do not have
2802  all the preamble information.
2803  Checking the 
2804 \family sans
2805 Don't
2806 \family default
2807 \InsetSpace ~
2808
2809 \family sans
2810 typeset
2811 \family default
2812  button prevents this conversion.
2813 \end_layout
2814
2815 \begin_layout Standard
2816
2817 \begin_inset Quotes eld
2818 \end_inset
2819
2820 verbatim
2821 \begin_inset Quotes erd
2822 \end_inset
2823
2824  included file allows you to include a file typeset exactly as it appears
2825  in the file, i.e.\InsetSpace ~
2826 verbatim mode, with the characters set in a fixed-width
2827  typewriter font.
2828  Normally, spaces in this file are invisible, though two consecutive spaces
2829  are conserved, unlike LyX's normal treatment of spaces.
2830  However, setting the 
2831 \family sans
2832 \bar under
2833 M
2834 \bar default
2835 ark\InsetSpace ~
2836 spaces\InsetSpace ~
2837 in\InsetSpace ~
2838 output
2839 \family default
2840  checkbox typesets a mark to unambiguously define the presence of a space.
2841
2842 \emph on
2843  
2844 \end_layout
2845
2846 \begin_layout Subsection
2847 Cross-References Between Files
2848 \end_layout
2849
2850 \begin_layout Standard
2851 It is possible to set up cross-references between the different files.
2852  First, open all the files in question: let's call them A and B in a two
2853  file example, where B is included in A.
2854  Let's say you insert a label in A, then want to reference it in B.
2855  Open the cross-reference dialog in whilst in document B, and you can select
2856  the 
2857 \begin_inset Quotes eld
2858 \end_inset
2859
2860 buffer
2861 \begin_inset Quotes erd
2862 \end_inset
2863
2864  to use.
2865 \end_layout
2866
2867 \begin_layout Section
2868 Algorithms
2869 \end_layout
2870
2871 \begin_layout Standard
2872 The package 
2873 \family sans
2874 algorithm
2875 \family default
2876  is needed by LyX to be able to output algorithm floats.
2877  These are useful in placing short algorithms across page breaks and support
2878  an index of algorithms too.
2879 \end_layout
2880
2881 \begin_layout Section
2882 Subfigures
2883 \end_layout
2884
2885 \begin_layout Standard
2886 The package
2887 \family sans
2888  subfigure 
2889 \family default
2890 is used by LyX when you select ``subfigure'' in the graphics dialog and
2891  enter the subfigure caption.
2892  Several figures marked in this way can be packed into a single float with
2893  individual sub-captions.
2894 \end_layout
2895
2896 \begin_layout Section
2897 Fancy Headers and Footers
2898 \end_layout
2899
2900 \begin_layout Standard
2901 The default page layout is rather plain; for an article document class,
2902  all you get is a centered page number at the bottom of the page.
2903  This document is the book class, so it appears to be a bit fancier, but
2904  to really put on a show, you need to set the document page style to 
2905 \begin_inset Quotes eld
2906 \end_inset
2907
2908 fancy
2909 \begin_inset Quotes erd
2910 \end_inset
2911
2912 , as mentioned in the 
2913 \family sans
2914 User\InsetSpace ~
2915 Guide
2916 \family default
2917 .
2918  This section describes the LaTeX codes you need to insert in your LaTeX
2919  preamble or the text in order to get the desired effects.
2920 \end_layout
2921
2922 \begin_layout Standard
2923 The page header is divided into three fields, not surprisingly labeled 
2924 \begin_inset Quotes eld
2925 \end_inset
2926
2927 left
2928 \begin_inset Quotes erd
2929 \end_inset
2930
2931
2932 \begin_inset Quotes eld
2933 \end_inset
2934
2935 center
2936 \begin_inset Quotes erd
2937 \end_inset
2938
2939 , and 
2940 \begin_inset Quotes eld
2941 \end_inset
2942
2943 right
2944 \begin_inset Quotes erd
2945 \end_inset
2946
2947 .
2948  The footer is also divided into these three fields.
2949  The LaTeX commands to set these fields in the simplest manner are 
2950 \family typewriter
2951
2952 \backslash
2953 lhead
2954 \family default
2955
2956 \family typewriter
2957
2958 \backslash
2959 chead
2960 \family default
2961
2962 \family typewriter
2963
2964 \backslash
2965 rhead
2966 \family default
2967
2968 \family typewriter
2969
2970 \backslash
2971 lfoot
2972 \family default
2973 , etc.
2974  Suppose you wish to put your name in the upper left hand corner of each
2975  page.
2976  Simply insert the following command in the preamble: 
2977 \end_layout
2978
2979 \begin_layout Standard
2980
2981 \family typewriter
2982
2983 \backslash
2984 lhead{John Q.
2985  DocWriter}
2986 \end_layout
2987
2988 \begin_layout Standard
2989 You will now see your name in the upper left.
2990  If a field has a default entry that you would like to get rid of (often
2991  the page number appears in the central footer, simply include a command
2992  with a blank argument, e.g.
2993 \end_layout
2994
2995 \begin_layout Standard
2996
2997 \family typewriter
2998
2999 \backslash
3000 cfoot{}
3001 \end_layout
3002
3003 \begin_layout Standard
3004 Let's get really fancy: lets put the section number with the word 
3005 \begin_inset Quotes eld
3006 \end_inset
3007
3008 Section
3009 \begin_inset Quotes erd
3010 \end_inset
3011
3012  (e.g.
3013  Section 3) in the upper left, the page number (e.g.
3014  Page 4) in the upper right, your name in the lower left, and the date in
3015  the lower right.
3016  The following commands should now appear in the preamble:
3017 \end_layout
3018
3019 \begin_layout Standard
3020
3021 \family typewriter
3022
3023 \backslash
3024 lhead{Section 
3025 \backslash
3026 thesection}
3027 \end_layout
3028
3029 \begin_layout Standard
3030
3031 \family typewriter
3032
3033 \backslash
3034 chead{}
3035 \end_layout
3036
3037 \begin_layout Standard
3038
3039 \family typewriter
3040
3041 \backslash
3042 rhead{Page 
3043 \backslash
3044 thepage}
3045 \end_layout
3046
3047 \begin_layout Standard
3048
3049 \family typewriter
3050
3051 \backslash
3052 lfoot{John Q.
3053  DocWriter}
3054 \end_layout
3055
3056 \begin_layout Standard
3057
3058 \family typewriter
3059
3060 \backslash
3061 cfoot{}
3062 \end_layout
3063
3064 \begin_layout Standard
3065
3066 \family typewriter
3067
3068 \backslash
3069 rfoot{
3070 \backslash
3071 today}
3072 \end_layout
3073
3074 \begin_layout Standard
3075 The codes 
3076 \family typewriter
3077
3078 \backslash
3079 thesection
3080 \family default
3081  and 
3082 \family typewriter
3083
3084 \backslash
3085 thepage
3086 \family default
3087  access LaTeX's section and page counters, and so print out the current
3088  section and page numbers.
3089  
3090 \family typewriter
3091
3092 \backslash
3093 today
3094 \family default
3095  simply prints out today's date.
3096 \end_layout
3097
3098 \begin_layout Standard
3099 The thicknesses of the horizontal rules drawn beneath the header and above
3100  the footer can also be modified.
3101  If you don't want one of the headers, set its thickness to 0.
3102  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3103  Use the commands, e.g.
3104  
3105 \family typewriter
3106
3107 \backslash
3108 renewcommand{
3109 \backslash
3110 headrulewidth}{0.4pt}
3111 \family default
3112  and 
3113 \family typewriter
3114
3115 \backslash
3116 renewcommand{
3117 \backslash
3118 footrulewidth}{0.4pt}
3119 \family default
3120  to set the thicknesses.
3121 \end_layout
3122
3123 \begin_layout Standard
3124 You can switch the header/footer settings on and off for individual pages
3125  using commands like 
3126 \family typewriter
3127
3128 \backslash
3129 thispagestyle{empty}
3130 \family default
3131
3132 \family typewriter
3133
3134 \backslash
3135 thispagestyle{plain}
3136 \family default
3137 , and 
3138 \family typewriter
3139
3140 \backslash
3141 thispagestyle{fancy}
3142 \family default
3143 .
3144  Simply insert them in the text on the page you want changed and mark them
3145  as TeX code.
3146  In fact, title pages are marked as plain by default, while following pages
3147  are marked fancy when using the global fancy setting.
3148 \end_layout
3149
3150 \begin_layout Standard
3151 There are more complex commands which will let you insert things in the
3152  upper left on odd numbered pages, etc., but I will refer you to the 
3153 \family typewriter
3154 fancyhdr
3155 \family default
3156  package documentation for more descriptions.
3157  For example, if you have a teTeX installation, look for 
3158 \family typewriter
3159 /usr/share/texmf/doc/latex/fancyhdr/\SpecialChar \-
3160 fancyhdr.dvi
3161 \family default
3162 .
3163 \end_layout
3164
3165 \begin_layout Standard
3166 As a final example, it is possible to include an Encapsulated PostScript®
3167  file in the header or footer.
3168  Suppose you want to put a company logo in the upper lefthand corner.
3169  You might try something like
3170 \end_layout
3171
3172 \begin_layout Standard
3173
3174 \family typewriter
3175
3176 \backslash
3177 lhead{
3178 \backslash
3179 resizebox{1in}{!}{
3180 \backslash
3181 includegraphics{logo.eps}}}
3182 \end_layout
3183
3184 \begin_layout Standard
3185 \noindent
3186 (you may need to preface this with 
3187 \family typewriter
3188
3189 \backslash
3190 usepackage{graphics}
3191 \family default
3192  if you don't include EPS files elsewhere in your document).
3193 \end_layout
3194
3195 \begin_layout Section
3196 Minipages
3197 \end_layout
3198
3199 \begin_layout Standard
3200 LaTeX provides a mechanism to produce essentially a page within a page,
3201  called minipages.
3202  Within a minipage, all the usual rules of indentation, line wrapping, etc.\InsetSpace ~
3203 apply.
3204  LyX also provides some of the minipage capability.
3205 \end_layout
3206
3207 \begin_layout Standard
3208 Minipages in LyX have their own collapsable box; insert one via 
3209 \family sans
3210 \bar under
3211 I
3212 \bar default
3213 nsert\SpecialChar \menuseparator
3214 Mini
3215 \bar under
3216 p
3217 \bar default
3218 age
3219 \family default
3220 .
3221  Right-clicking on the box allows you to alter the minipage's width and
3222  alignment within the page.
3223  Warning: if the minipage is too long to fit on a page, it is truncated,
3224  not wrapped onto the next page.
3225 \end_layout
3226
3227 \begin_layout Standard
3228 If you place two minipages side-by-side, you can use 
3229 \family sans
3230 \bar under
3231 I
3232 \bar default
3233 nsert\SpecialChar \menuseparator
3234
3235 \bar under
3236 S
3237 \bar default
3238 pecial\InsetSpace ~
3239 Character
3240 \family default
3241  to insert a special instruction known in the LaTeX world as an 
3242 \family typewriter
3243 hfill
3244 \family default
3245  to put a maximum amount of space between them; it forces one minipage to
3246  the left edge, the other to the right edge.
3247  The examples below show the difference.
3248 \end_layout
3249
3250 \begin_layout Standard
3251 \begin_inset Box Frameless
3252 position "t"
3253 hor_pos "c"
3254 has_inner_box 1
3255 inner_pos "c"
3256 use_parbox 0
3257 width "1.5in"
3258 special "none"
3259 height "1pt"
3260 height_special "totalheight"
3261 status open
3262
3263 \begin_layout Standard
3264 This is a minipage which does not use hfill.
3265  This is the second sentence of a minipage which does not use hfill.
3266 \end_layout
3267
3268 \end_inset
3269
3270
3271 \end_layout
3272
3273 \begin_layout Standard
3274 \begin_inset Box Frameless
3275 position "t"
3276 hor_pos "c"
3277 has_inner_box 1
3278 inner_pos "c"
3279 use_parbox 0
3280 width "1.5in"
3281 special "none"
3282 height "1pt"
3283 height_special "totalheight"
3284 status open
3285
3286 \begin_layout Standard
3287 This is a second minipage which does not use hfill.
3288  This is the second sentence of a second minipage which does not use hfill.
3289 \end_layout
3290
3291 \end_inset
3292
3293
3294 \end_layout
3295
3296 \begin_layout Standard
3297 \begin_inset VSpace medskip
3298 \end_inset
3299
3300
3301 \end_layout
3302
3303 \begin_layout Standard
3304 Here is some normal text to separate the two examples.
3305 \end_layout
3306
3307 \begin_layout Standard
3308 \begin_inset VSpace medskip
3309 \end_inset
3310
3311
3312 \end_layout
3313
3314 \begin_layout Standard
3315 \begin_inset Box Frameless
3316 position "t"
3317 hor_pos "c"
3318 has_inner_box 1
3319 inner_pos "c"
3320 use_parbox 0
3321 width "1.5in"
3322 special "none"
3323 height "1pt"
3324 height_special "totalheight"
3325 status open
3326
3327 \begin_layout Standard
3328 This is a minipage which does use hfill.
3329  This is the second sentence of a minipage which does use hfill.
3330 \end_layout
3331
3332 \end_inset
3333
3334
3335 \hfill
3336
3337 \begin_inset Box Frameless
3338 position "t"
3339 hor_pos "c"
3340 has_inner_box 1
3341 inner_pos "c"
3342 use_parbox 0
3343 width "1.5in"
3344 special "none"
3345 height "1pt"
3346 height_special "totalheight"
3347 status open
3348
3349 \begin_layout Standard
3350 This is a second minipage which does use hfill.
3351  This is the second sentence of a second minipage which does use hfill.
3352 \end_layout
3353
3354 \end_inset
3355
3356
3357 \end_layout
3358
3359 \begin_layout Section
3360 Wrapping Text Around Figures
3361 \begin_inset LatexCommand \label{sec:floatflt}
3362
3363 \end_inset
3364
3365
3366 \end_layout
3367
3368 \begin_layout Standard
3369 \begin_inset Wrap figure
3370 placement r
3371 width "6cm"
3372 status open
3373
3374 \begin_layout Standard
3375 \begin_inset Graphics
3376         filename mobius.eps
3377         display color
3378         width 40col%
3379         rotateOrigin center
3380
3381 \end_inset
3382
3383
3384 \end_layout
3385
3386 \begin_layout Caption
3387 This is a wrapped figure, and this is the brilliant caption that describes
3388  it
3389 \end_layout
3390
3391 \end_inset
3392
3393
3394 \end_layout
3395
3396 \begin_layout Standard
3397 A very frequently asked question is whether text can be made to 
3398 \begin_inset Quotes eld
3399 \end_inset
3400
3401 wrap
3402 \begin_inset Quotes erd
3403 \end_inset
3404
3405  around figures so that a figure occupies some fraction of the column width
3406  and text fills the rest.
3407  If you have the LaTeX package 
3408 \family typewriter
3409 floatflt
3410 \family default
3411  installed (you can find out about it in the 
3412 \emph on
3413 LaTeX Configuration
3414 \emph default
3415  manual) you can do this.
3416 \end_layout
3417
3418 \begin_layout Standard
3419 At the right is a figure of a mobius strip---you should have already seen
3420  this in the 
3421 \emph on
3422 User's Guide
3423 \emph default
3424 .
3425  To wrap the text like this insert a wrap box via 
3426 \family sans
3427 \bar under
3428 I
3429 \bar default
3430 nsert\SpecialChar \menuseparator
3431 Flo
3432 \bar under
3433 a
3434 \bar default
3435 ts\SpecialChar \menuseparator
3436 Floatflt Figure
3437 \family default
3438 .
3439 \end_layout
3440
3441 \begin_layout Standard
3442 Note: this package is very fragile! For example, having a figure too close
3443  to the bottom of the page will mess things up, as will having two figures
3444  close together.
3445  Use this package sparingly and do read the documentation that came with
3446  it (which will also tell you how to wrap text around tables).
3447 \end_layout
3448
3449 \begin_layout Section
3450 Extra Table Options
3451 \end_layout
3452
3453 \begin_layout Standard
3454 While the standard table layout will suffice in 99% of all tables you generate,
3455  occasionally you will run into one which requires a bit of extra tweaking.
3456  The table dialog which appears on a right-click of a table allows these
3457  tweaks to be made.
3458  It will give you access to some extra column alignment parameters.
3459  A little bit of LaTeX background is useful here: when you set up a table
3460  in LaTeX, each column is given an alignment type.
3461  For example, you would give it 
3462 \begin_inset Quotes eld
3463 \end_inset
3464
3465
3466 \family typewriter
3467 l
3468 \family default
3469
3470 \begin_inset Quotes erd
3471 \end_inset
3472
3473
3474 \begin_inset Quotes eld
3475 \end_inset
3476
3477
3478 \family typewriter
3479 c
3480 \family default
3481
3482 \begin_inset Quotes erd
3483 \end_inset
3484
3485 , or 
3486 \begin_inset Quotes eld
3487 \end_inset
3488
3489
3490 \family typewriter
3491 r
3492 \family default
3493
3494 \begin_inset Quotes erd
3495 \end_inset
3496
3497  for left-aligned, centered, and right-aligned columns respectively (which
3498  appear as the left/center/right radio buttons in LyX).
3499  A fourth type is 
3500 \begin_inset Quotes eld
3501 \end_inset
3502
3503
3504 \family typewriter
3505 p
3506 \family default
3507
3508 \begin_inset Quotes erd
3509 \end_inset
3510
3511 , which will make a column of a specified width (the width box in LyX),
3512  and will wrap text within that box.
3513  A fifth type is 
3514 \begin_inset Quotes eld
3515 \end_inset
3516
3517
3518 \family typewriter
3519 |
3520 \family default
3521
3522 \begin_inset Quotes erd
3523 \end_inset
3524
3525  (vertical bar) which rather than making a column will make a vertical rule
3526  at that point; this manifests itself in LyX as the 
3527 \begin_inset Quotes eld
3528 \end_inset
3529
3530 borders
3531 \begin_inset Quotes erd
3532 \end_inset
3533
3534  buttons.
3535  Finally, there is a type 
3536 \begin_inset Quotes eld
3537 \end_inset
3538
3539
3540 \family typewriter
3541 @
3542 \family default
3543
3544 \begin_inset Quotes erd
3545 \end_inset
3546
3547 , which allows you to use whatever is enclosed in the accompanying braces
3548  as the column separator, including a null argument.
3549  The reasons for doing this may not be obvious, but they can be very powerful.
3550  They are best demonstrated by example.
3551 \end_layout
3552
3553 \begin_layout Subsection
3554 Removing Extra Column Space
3555 \end_layout
3556
3557 \begin_layout Standard
3558 Here is a standard table:
3559 \end_layout
3560
3561 \begin_layout Standard
3562 \align center
3563 \begin_inset Tabular
3564 <lyxtabular version="3" rows="3" columns="2">
3565 <features>
3566 <column alignment="left" valignment="top" width="0pt">
3567 <column alignment="left" valignment="top" leftline="true" width="0pt">
3568 <row bottomline="true">
3569 <cell alignment="left" valignment="top" topline="true" usebox="none">
3570 \begin_inset Text
3571
3572 \begin_layout Standard
3573
3574 \family roman
3575 \series medium
3576 \shape up
3577 \size normal
3578 \emph off
3579 \bar no
3580 \noun off
3581 \color none
3582 Type
3583 \end_layout
3584
3585 \end_inset
3586 </cell>
3587 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
3588 \begin_inset Text
3589
3590 \begin_layout Standard
3591
3592 \family roman
3593 \series medium
3594 \shape up
3595 \size normal
3596 \emph off
3597 \bar no
3598 \noun off
3599 \color none
3600 Example
3601 \end_layout
3602
3603 \end_inset
3604 </cell>
3605 </row>
3606 <row>
3607 <cell alignment="left" valignment="top" topline="true" usebox="none">
3608 \begin_inset Text
3609
3610 \begin_layout Standard
3611
3612 \family roman
3613 \series medium
3614 \shape up
3615 \size normal
3616 \emph off
3617 \bar no
3618 \noun off
3619 \color none
3620 Rock
3621 \end_layout
3622
3623 \end_inset
3624 </cell>
3625 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3626 \begin_inset Text
3627
3628 \begin_layout Standard
3629
3630 \family roman
3631 \series medium
3632 \shape up
3633 \size normal
3634 \emph off
3635 \bar no
3636 \noun off
3637 \color none
3638 Granite
3639 \end_layout
3640
3641 \end_inset
3642 </cell>
3643 </row>
3644 <row>
3645 <cell alignment="center" valignment="top" topline="true" usebox="none">
3646 \begin_inset Text
3647
3648 \begin_layout Standard
3649
3650 \family roman
3651 \series medium
3652 \shape up
3653 \size normal
3654 \emph off
3655 \bar no
3656 \noun off
3657 \color none
3658 Mineral
3659 \end_layout
3660
3661 \end_inset
3662 </cell>
3663 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3664 \begin_inset Text
3665
3666 \begin_layout Standard
3667
3668 \family roman
3669 \series medium
3670 \shape up
3671 \size normal
3672 \emph off
3673 \bar no
3674 \noun off
3675 \color none
3676 Quartz
3677 \end_layout
3678
3679 \end_inset
3680 </cell>
3681 </row>
3682 </lyxtabular>
3683
3684 \end_inset
3685
3686
3687 \end_layout
3688
3689 \begin_layout Standard
3690 Notice that the horizontal rule extends a bit past the text on both sides.
3691  If you wanted the line to end even with the text, we can put a null separator
3692  on the ends to get rid of the bit of extra space LaTeX adds by default.
3693  Here is the example:
3694 \end_layout
3695
3696 \begin_layout Standard
3697 \align center
3698 \begin_inset Tabular
3699 <lyxtabular version="3" rows="3" columns="2">
3700 <features>
3701 <column alignment="left" valignment="top" width="0pt" special="@{} l">
3702 <column alignment="left" valignment="top" leftline="true" width="0pt" special="l @{}">
3703 <row bottomline="true">
3704 <cell alignment="left" valignment="top" topline="true" usebox="none">
3705 \begin_inset Text
3706
3707 \begin_layout Standard
3708
3709 \family roman
3710 \series medium
3711 \shape up
3712 \size normal
3713 \emph off
3714 \bar no
3715 \noun off
3716 \color none
3717 Type
3718 \end_layout
3719
3720 \end_inset
3721 </cell>
3722 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
3723 \begin_inset Text
3724
3725 \begin_layout Standard
3726
3727 \family roman
3728 \series medium
3729 \shape up
3730 \size normal
3731 \emph off
3732 \bar no
3733 \noun off
3734 \color none
3735 Example
3736 \end_layout
3737
3738 \end_inset
3739 </cell>
3740 </row>
3741 <row>
3742 <cell alignment="left" valignment="top" topline="true" usebox="none">
3743 \begin_inset Text
3744
3745 \begin_layout Standard
3746
3747 \family roman
3748 \series medium
3749 \shape up
3750 \size normal
3751 \emph off
3752 \bar no
3753 \noun off
3754 \color none
3755 Rock
3756 \end_layout
3757
3758 \end_inset
3759 </cell>
3760 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3761 \begin_inset Text
3762
3763 \begin_layout Standard
3764
3765 \family roman
3766 \series medium
3767 \shape up
3768 \size normal
3769 \emph off
3770 \bar no
3771 \noun off
3772 \color none
3773 Granite
3774 \end_layout
3775
3776 \end_inset
3777 </cell>
3778 </row>
3779 <row>
3780 <cell alignment="center" valignment="top" topline="true" usebox="none">
3781 \begin_inset Text
3782
3783 \begin_layout Standard
3784
3785 \family roman
3786 \series medium
3787 \shape up
3788 \size normal
3789 \emph off
3790 \bar no
3791 \noun off
3792 \color none
3793 Mineral
3794 \end_layout
3795
3796 \end_inset
3797 </cell>
3798 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3799 \begin_inset Text
3800
3801 \begin_layout Standard
3802
3803 \family roman
3804 \series medium
3805 \shape up
3806 \size normal
3807 \emph off
3808 \bar no
3809 \noun off
3810 \color none
3811 Quartz
3812 \end_layout
3813
3814 \end_inset
3815 </cell>
3816 </row>
3817 </lyxtabular>
3818
3819 \end_inset
3820
3821
3822 \end_layout
3823
3824 \begin_layout Standard
3825 In this case, the column specifier for the left column was set to 
3826 \begin_inset Quotes eld
3827 \end_inset
3828
3829
3830 \family typewriter
3831 @{} l
3832 \family default
3833
3834 \begin_inset Quotes erd
3835 \end_inset
3836
3837 , while the right column was set to 
3838 \begin_inset Quotes eld
3839 \end_inset
3840
3841
3842 \family typewriter
3843 l @{}
3844 \family default
3845
3846 \begin_inset Quotes erd
3847 \end_inset
3848
3849 , in order to put the null characters on the edges.
3850  
3851 \end_layout
3852
3853 \begin_layout Subsection
3854 Changing the Column Separator Character
3855 \end_layout
3856
3857 \begin_layout Standard
3858 Now suppose you really wanted, for reasons that are completely opaque, to
3859  use 
3860 \begin_inset Formula $\sqrt{\pi}$
3861 \end_inset
3862
3863  with some space around it for the column separator.
3864  Simply turn off the vertical border, then set the right column specifier
3865  to 
3866 \begin_inset Quotes eld
3867 \end_inset
3868
3869
3870 \family typewriter
3871 @{~$
3872 \backslash
3873 sqrt{
3874 \backslash
3875 pi}$~} l
3876 \family default
3877
3878 \begin_inset Quotes erd
3879 \end_inset
3880
3881 .
3882  You could now make a table like this:
3883 \end_layout
3884
3885 \begin_layout Standard
3886 \align center
3887 \begin_inset Tabular
3888 <lyxtabular version="3" rows="3" columns="2">
3889 <features>
3890 <column alignment="left" valignment="top" width="0pt">
3891 <column alignment="left" valignment="top" width="0in" special="@{~$\sqrt{\pi}$~}l">
3892 <row bottomline="true">
3893 <cell alignment="left" valignment="top" topline="true" usebox="none">
3894 \begin_inset Text
3895
3896 \begin_layout Standard
3897
3898 \family roman
3899 \series medium
3900 \shape up
3901 \size normal
3902 \emph off
3903 \bar no
3904 \noun off
3905 \color none
3906 Type
3907 \end_layout
3908
3909 \end_inset
3910 </cell>
3911 <cell alignment="left" valignment="top" topline="true" usebox="none">
3912 \begin_inset Text
3913
3914 \begin_layout Standard
3915
3916 \family roman
3917 \series medium
3918 \shape up
3919 \size normal
3920 \emph off
3921 \bar no
3922 \noun off
3923 \color none
3924 Example
3925 \end_layout
3926
3927 \end_inset
3928 </cell>
3929 </row>
3930 <row>
3931 <cell alignment="left" valignment="top" topline="true" usebox="none">
3932 \begin_inset Text
3933
3934 \begin_layout Standard
3935
3936 \family roman
3937 \series medium
3938 \shape up
3939 \size normal
3940 \emph off
3941 \bar no
3942 \noun off
3943 \color none
3944 Rock
3945 \end_layout
3946
3947 \end_inset
3948 </cell>
3949 <cell alignment="center" valignment="top" topline="true" usebox="none">
3950 \begin_inset Text
3951
3952 \begin_layout Standard
3953
3954 \family roman
3955 \series medium
3956 \shape up
3957 \size normal
3958 \emph off
3959 \bar no
3960 \noun off
3961 \color none
3962 Granite
3963 \end_layout
3964
3965 \end_inset
3966 </cell>
3967 </row>
3968 <row>
3969 <cell alignment="center" valignment="top" topline="true" usebox="none">
3970 \begin_inset Text
3971
3972 \begin_layout Standard
3973
3974 \family roman
3975 \series medium
3976 \shape up
3977 \size normal
3978 \emph off
3979 \bar no
3980 \noun off
3981 \color none
3982 Mineral
3983 \end_layout
3984
3985 \end_inset
3986 </cell>
3987 <cell alignment="center" valignment="top" topline="true" usebox="none">
3988 \begin_inset Text
3989
3990 \begin_layout Standard
3991
3992 \family roman
3993 \series medium
3994 \shape up
3995 \size normal
3996 \emph off
3997 \bar no
3998 \noun off
3999 \color none
4000 Quartz
4001 \end_layout
4002
4003 \end_inset
4004 </cell>
4005 </row>
4006 </lyxtabular>
4007
4008 \end_inset
4009
4010
4011 \end_layout
4012
4013 \begin_layout Subsection
4014 Making a Decimal Point Aligned Column
4015 \end_layout
4016
4017 \begin_layout Standard
4018 Okay, that last example was very silly, but here is one that is not.
4019  Suppose you want to make a table that has a column which is aligned on
4020  a decimal point.
4021  A standard LaTeX trick to do this is to set the whole number part in a
4022  right-aligned column, use a decimal point for the column separator, then
4023  set the fractional part as a left-aligned column.
4024  A variation on this is to include the decimal point explicitly with the
4025  whole part, then use just a null separator in between.
4026  The latter variation is demonstrated here:
4027 \end_layout
4028
4029 \begin_layout Standard
4030 \align center
4031 \begin_inset Tabular
4032 <lyxtabular version="3" rows="5" columns="3">
4033 <features>
4034 <column alignment="center" valignment="top" width="0pt">
4035 <column alignment="right" valignment="top" leftline="true" width="0pt">
4036 <column alignment="center" valignment="top" width="0pt" special="@{} l">
4037 <row bottomline="true">
4038 <cell alignment="center" valignment="top" topline="true" usebox="none">
4039 \begin_inset Text
4040
4041 \begin_layout Standard
4042
4043 \family roman
4044 \series medium
4045 \shape up
4046 \size normal
4047 \emph off
4048 \bar no
4049 \noun off
4050 \color none
4051 Expression
4052 \end_layout
4053
4054 \end_inset
4055 </cell>
4056 <cell multicolumn="1" alignment="center" valignment="top" bottomline="true" leftline="true" usebox="none">
4057 \begin_inset Text
4058
4059 \begin_layout Standard
4060
4061 \family roman
4062 \series medium
4063 \shape up
4064 \size normal
4065 \emph off
4066 \bar no
4067 \noun off
4068 \color none
4069 Value 
4070 \end_layout
4071
4072 \end_inset
4073 </cell>
4074 <cell multicolumn="2" alignment="center" valignment="top" topline="true" usebox="none">
4075 \begin_inset Text
4076
4077 \begin_layout Standard
4078
4079 \end_layout
4080
4081 \end_inset
4082 </cell>
4083 </row>
4084 <row>
4085 <cell alignment="center" valignment="top" topline="true" usebox="none">
4086 \begin_inset Text
4087
4088 \begin_layout Standard
4089
4090 \family roman
4091 \series medium
4092 \shape up
4093 \size normal
4094 \emph off
4095 \bar no
4096 \noun off
4097 \color none
4098 \begin_inset Formula $\pi$
4099 \end_inset
4100
4101
4102 \end_layout
4103
4104 \end_inset
4105 </cell>
4106 <cell alignment="right" valignment="top" topline="true" leftline="true" usebox="none">
4107 \begin_inset Text
4108
4109 \begin_layout Standard
4110
4111 \family roman
4112 \series medium
4113 \shape up
4114 \size normal
4115 \emph off
4116 \bar no
4117 \noun off
4118 \color none
4119 3.
4120 \end_layout
4121
4122 \end_inset
4123 </cell>
4124 <cell alignment="center" valignment="top" topline="true" usebox="none">
4125 \begin_inset Text
4126
4127 \begin_layout Standard
4128
4129 \family roman
4130 \series medium
4131 \shape up
4132 \size normal
4133 \emph off
4134 \bar no
4135 \noun off
4136 \color none
4137 1416
4138 \end_layout
4139
4140 \end_inset
4141 </cell>
4142 </row>
4143 <row>
4144 <cell alignment="center" valignment="top" topline="true" usebox="none">
4145 \begin_inset Text
4146
4147 \begin_layout Standard
4148
4149 \family roman
4150 \series medium
4151 \shape up
4152 \size normal
4153 \emph off
4154 \bar no
4155 \noun off
4156 \color none
4157 \begin_inset Formula $\pi^{\pi}$
4158 \end_inset
4159
4160
4161 \end_layout
4162
4163 \end_inset
4164 </cell>
4165 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4166 \begin_inset Text
4167
4168 \begin_layout Standard
4169
4170 \family roman
4171 \series medium
4172 \shape up
4173 \size normal
4174 \emph off
4175 \bar no
4176 \noun off
4177 \color none
4178 36.
4179 \end_layout
4180
4181 \end_inset
4182 </cell>
4183 <cell alignment="center" valignment="top" topline="true" usebox="none">
4184 \begin_inset Text
4185
4186 \begin_layout Standard
4187
4188 \family roman
4189 \series medium
4190 \shape up
4191 \size normal
4192 \emph off
4193 \bar no
4194 \noun off
4195 \color none
4196 462
4197 \end_layout
4198
4199 \end_inset
4200 </cell>
4201 </row>
4202 <row>
4203 <cell alignment="center" valignment="top" topline="true" usebox="none">
4204 \begin_inset Text
4205
4206 \begin_layout Standard
4207
4208 \family roman
4209 \series medium
4210 \shape up
4211 \size normal
4212 \emph off
4213 \bar no
4214 \noun off
4215 \color none
4216 \begin_inset Formula $(\pi^{\pi})^{\pi}$
4217 \end_inset
4218
4219
4220 \end_layout
4221
4222 \end_inset
4223 </cell>
4224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4225 \begin_inset Text
4226
4227 \begin_layout Standard
4228
4229 \family roman
4230 \series medium
4231 \shape up
4232 \size normal
4233 \emph off
4234 \bar no
4235 \noun off
4236 \color none
4237 80663.
4238 \end_layout
4239
4240 \end_inset
4241 </cell>
4242 <cell alignment="center" valignment="top" topline="true" usebox="none">
4243 \begin_inset Text
4244
4245 \begin_layout Standard
4246
4247 \end_layout
4248
4249 \end_inset
4250 </cell>
4251 </row>
4252 <row>
4253 <cell alignment="center" valignment="top" topline="true" usebox="none">
4254 \begin_inset Text
4255
4256 \begin_layout Standard
4257
4258 \family roman
4259 \series medium
4260 \shape up
4261 \size normal
4262 \emph off
4263 \bar no
4264 \noun off
4265 \color none
4266 \begin_inset Formula $\pi^{\pi^{\pi}}$
4267 \end_inset
4268
4269
4270 \end_layout
4271
4272 \end_inset
4273 </cell>
4274 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4275 \begin_inset Text
4276
4277 \begin_layout Standard
4278
4279 \family roman
4280 \series medium
4281 \shape up
4282 \size normal
4283 \emph off
4284 \bar no
4285 \noun off
4286 \color none
4287 1.
4288 \end_layout
4289
4290 \end_inset
4291 </cell>
4292 <cell alignment="center" valignment="top" topline="true" usebox="none">
4293 \begin_inset Text
4294
4295 \begin_layout Standard
4296
4297 \family roman
4298 \series medium
4299 \shape up
4300 \size normal
4301 \emph off
4302 \bar no
4303 \noun off
4304 \color none
4305 3402
4306 \begin_inset Formula $\times10^{18}$
4307 \end_inset
4308
4309
4310 \end_layout
4311
4312 \end_inset
4313 </cell>
4314 </row>
4315 </lyxtabular>
4316
4317 \end_inset
4318
4319
4320 \end_layout
4321
4322 \begin_layout Standard
4323 Though it appears a bit funny in LyX, on paper it will produce what appears
4324  to be a 2-column table in which the right column is aligned on the decimal
4325  point and the header appears to be centered over it.
4326 \end_layout
4327
4328 \begin_layout Standard
4329 Perhaps it is best if I described just what I did: first, create a 3
4330 \begin_inset Formula $\times$
4331 \end_inset
4332
4333 3 table and remove all the borders.
4334  Then re-add a bottom border to the top row, and a right border to the first
4335  column.
4336  Type in the values for the first column and set its alignment to 
4337 \family sans
4338 center
4339 \family default
4340 .
4341  Type in the 
4342 \family typewriter
4343 3.
4344 \family default
4345
4346 \family typewriter
4347 36.
4348 \family default
4349
4350 \family typewriter
4351 80663.
4352 \family default
4353 , and 
4354 \family typewriter
4355 1.
4356
4357 \family default
4358  and set that column's alignment to 
4359 \family sans
4360 right
4361 \family default
4362 .
4363  Type in the 
4364 \family typewriter
4365 1416
4366 \family default
4367
4368 \family typewriter
4369 462
4370 \family default
4371 , and 
4372 \family typewriter
4373 3402
4374 \begin_inset Formula $\times10^{18}$
4375 \end_inset
4376
4377
4378 \family default
4379  and set the extra column alignment to 
4380 \family typewriter
4381 @{} l
4382 \family default
4383 .
4384  Finally type in the word 
4385 \family typewriter
4386 Value
4387 \family default
4388  in the middle column, highlight it and the blank entry to its right, and
4389  check the 
4390 \family sans
4391 Special Cell
4392 \family default
4393  entry 
4394 \family sans
4395 multicolumn
4396 \family default
4397 .
4398  Easy, right? 
4399 \end_layout
4400
4401 \begin_layout Subsection
4402 A Better Decimal-Alignment Solution
4403 \end_layout
4404
4405 \begin_layout Standard
4406 An alternative way to have decimal alignment in tables is through the 
4407 \family typewriter
4408 dcolumn
4409 \family default
4410  package.
4411  Add the following to the LateX preamble:
4412 \end_layout
4413
4414 \begin_layout LyX-Code
4415
4416 \backslash
4417 usepackage{dcolumn}
4418 \end_layout
4419
4420 \begin_layout LyX-Code
4421
4422 \backslash
4423 newcolumntype{d}[1]{D{.}{.}{#1}}
4424 \end_layout
4425
4426 \begin_layout Standard
4427 To have a column decimally aligned, enter in the 
4428 \family sans
4429 Special Column Alignment
4430 \family default
4431  box of the 
4432 \family sans
4433 Table
4434 \family default
4435  dialog the following:
4436 \end_layout
4437
4438 \begin_layout LyX-Code
4439 d{number of decimals of the data}
4440 \end_layout
4441
4442 \begin_layout Standard
4443 To create extra column space just increase the number of decimals in 
4444 \family typewriter
4445 d{}
4446 \family default
4447 .
4448  Setting the multicolumn attribute for a single cell makes it insensitive
4449  to the decimal alignment which comes in handy as well.
4450  A drawback of this method is that math mode is not allowed in a column
4451  with decimal alignment except if the multicolumn attribute is set.
4452 \end_layout
4453
4454 \begin_layout Standard
4455 This method offers the same flexibility as the 
4456 \family typewriter
4457 dcolumn
4458 \family default
4459  package.
4460  One could, for example, change the alignment separator, and have different
4461  alignment separators for different columns by defining multiple column
4462  types in the preamble.
4463  The syntax is as follows: 
4464 \end_layout
4465
4466 \begin_layout LyX-Code
4467 D{inputsep}{outputsep}{decimal places}
4468 \end_layout
4469
4470 \begin_layout Standard
4471 The interested reader is directed towards the 
4472 \family typewriter
4473 dcolumn
4474 \family default
4475  package documentation for more details.
4476 \end_layout
4477
4478 \begin_layout Section
4479 Itemize Bullet Selection
4480 \begin_inset LatexCommand \label{sec:bullet}
4481
4482 \end_inset
4483
4484
4485 \end_layout
4486
4487 \begin_layout Standard
4488 by
4489 \noun on
4490  Allan Rae
4491 \end_layout
4492
4493 \begin_layout Subsection
4494 Introduction
4495 \end_layout
4496
4497 \begin_layout Standard
4498 LyX provides 216 bullet shapes that can be accessed from a simple dialog.
4499  Using this dialog you can easily specify what bullet shape to use at each
4500  level of an itemized list.
4501  These settings are document-wide so you won't be able to specify different
4502  sets of bullets for different paragraphs
4503 \begin_inset Foot
4504 status collapsed
4505
4506 \begin_layout Standard
4507 Well, actually you can but you'll have to do it by hand.
4508 \end_layout
4509
4510 \end_inset
4511
4512 .
4513 \end_layout
4514
4515 \begin_layout Subsection
4516 How it looks
4517 \end_layout
4518
4519 \begin_layout Standard
4520 Open the dialog by selecting the 
4521 \family sans
4522 \bar under
4523 D
4524 \bar default
4525 ocument\SpecialChar \menuseparator
4526
4527 \bar under
4528 S
4529 \bar default
4530 ettings
4531 \family default
4532  menu item and then select the 
4533 \family sans
4534 \bar under
4535 B
4536 \bar default
4537 ullets
4538 \family default
4539  tab.
4540 \end_layout
4541
4542 \begin_layout Standard
4543 The dialog provides you with a table of bullet shapes.
4544  A column of buttons on the left of the table provides access to the six
4545  different panels of bullet shapes.
4546  The row of buttons across the top is used to select which bullet depth
4547  you are changing.
4548  A text entry under the table shows the currently selected bullet shape's
4549  LaTeX equivalent and this can be edited if desired.
4550  If you do modify the text you will also need to specify any needed packages
4551  in the LaTeX preamble.
4552 \end_layout
4553
4554 \begin_layout Standard
4555 The six panels are divided up by the packages they require.
4556  The following table shows the mappings from button name to LaTeX packages.
4557 \end_layout
4558
4559 \begin_layout Standard
4560 \align center
4561 \begin_inset Tabular
4562 <lyxtabular version="3" rows="7" columns="2">
4563 <features>
4564 <column alignment="center" valignment="top" leftline="true" width="0pt">
4565 <column alignment="center" valignment="top" leftline="true" rightline="true" width="0pt">
4566 <row topline="true" bottomline="true">
4567 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4568 \begin_inset Text
4569
4570 \begin_layout Standard
4571
4572 \family roman
4573 \series medium
4574 \shape up
4575 \size normal
4576 \emph off
4577 \bar no
4578 \noun off
4579 \color none
4580 Button
4581 \end_layout
4582
4583 \end_inset
4584 </cell>
4585 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4586 \begin_inset Text
4587
4588 \begin_layout Standard
4589
4590 \family roman
4591 \series medium
4592 \shape up
4593 \size normal
4594 \emph off
4595 \bar no
4596 \noun off
4597 \color none
4598 Packages Required
4599 \end_layout
4600
4601 \end_inset
4602 </cell>
4603 </row>
4604 <row topline="true">
4605 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4606 \begin_inset Text
4607
4608 \begin_layout Standard
4609
4610 \family sans
4611 \series medium
4612 \shape up
4613 \size normal
4614 \emph off
4615 \bar no
4616 \noun off
4617 \color none
4618 Standard
4619 \end_layout
4620
4621 \end_inset
4622 </cell>
4623 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4624 \begin_inset Text
4625
4626 \begin_layout Standard
4627
4628 \series medium
4629 \shape up
4630 \size normal
4631 \emph off
4632 \bar no
4633 \noun off
4634 \color none
4635 base LaTeX
4636 \end_layout
4637
4638 \end_inset
4639 </cell>
4640 </row>
4641 <row topline="true">
4642 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4643 \begin_inset Text
4644
4645 \begin_layout Standard
4646
4647 \family sans
4648 \series medium
4649 \shape up
4650 \size normal
4651 \emph off
4652 \bar no
4653 \noun off
4654 \color none
4655 Maths
4656 \end_layout
4657
4658 \end_inset
4659 </cell>
4660 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4661 \begin_inset Text
4662
4663 \begin_layout Standard
4664
4665 \family typewriter
4666 \series medium
4667 \shape up
4668 \size normal
4669 \emph off
4670 \bar no
4671 \noun off
4672 \color none
4673 amssymb.sty
4674 \end_layout
4675
4676 \end_inset
4677 </cell>
4678 </row>
4679 <row topline="true">
4680 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4681 \begin_inset Text
4682
4683 \begin_layout Standard
4684
4685 \family sans
4686 \series medium
4687 \shape up
4688 \size normal
4689 \emph off
4690 \bar no
4691 \noun off
4692 \color none
4693 Ding1
4694 \end_layout
4695
4696 \end_inset
4697 </cell>
4698 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4699 \begin_inset Text
4700
4701 \begin_layout Standard
4702
4703 \family typewriter
4704 \series medium
4705 \shape up
4706 \size normal
4707 \emph off
4708 \bar no
4709 \noun off
4710 \color none
4711 pifont.sty
4712 \end_layout
4713
4714 \end_inset
4715 </cell>
4716 </row>
4717 <row topline="true">
4718 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4719 \begin_inset Text
4720
4721 \begin_layout Standard
4722
4723 \family sans
4724 \series medium
4725 \shape up
4726 \size normal
4727 \emph off
4728 \bar no
4729 \noun off
4730 \color none
4731 Ding2
4732 \end_layout
4733
4734 \end_inset
4735 </cell>
4736 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4737 \begin_inset Text
4738
4739 \begin_layout Standard
4740
4741 \family typewriter
4742 \series medium
4743 \shape up
4744 \size normal
4745 \emph off
4746 \bar no
4747 \noun off
4748 \color none
4749 pifont.sty
4750 \end_layout
4751
4752 \end_inset
4753 </cell>
4754 </row>
4755 <row topline="true">
4756 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4757 \begin_inset Text
4758
4759 \begin_layout Standard
4760
4761 \family sans
4762 \series medium
4763 \shape up
4764 \size normal
4765 \emph off
4766 \bar no
4767 \noun off
4768 \color none
4769 Ding3
4770 \end_layout
4771
4772 \end_inset
4773 </cell>
4774 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4775 \begin_inset Text
4776
4777 \begin_layout Standard
4778
4779 \family typewriter
4780 \series medium
4781 \shape up
4782 \size normal
4783 \emph off
4784 \bar no
4785 \noun off
4786 \color none
4787 pifont.sty
4788 \end_layout
4789
4790 \end_inset
4791 </cell>
4792 </row>
4793 <row topline="true" bottomline="true">
4794 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
4795 \begin_inset Text
4796
4797 \begin_layout Standard
4798
4799 \family sans
4800 \series medium
4801 \shape up
4802 \size normal
4803 \emph off
4804 \bar no
4805 \noun off
4806 \color none
4807 Ding4
4808 \end_layout
4809
4810 \end_inset
4811 </cell>
4812 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
4813 \begin_inset Text
4814
4815 \begin_layout Standard
4816
4817 \family typewriter
4818 \series medium
4819 \shape up
4820 \size normal
4821 \emph off
4822 \bar no
4823 \noun off
4824 \color none
4825 pifont.sty
4826 \end_layout
4827
4828 \end_inset
4829 </cell>
4830 </row>
4831 </lyxtabular>
4832
4833 \end_inset
4834
4835
4836 \end_layout
4837
4838 \begin_layout Standard
4839 LyX doesn't stop you using bullets from packages you don't have.
4840  If you get errors from LaTeX when you try to view or print the file then
4841  its likely you are missing a package.
4842  LyX doesn't restrict your use since you may be editing locally and exporting
4843  elsewhere.
4844 \end_layout
4845
4846 \begin_layout Subsection
4847 How to use it
4848 \end_layout
4849
4850 \begin_layout Standard
4851 Select which bullet depth you want to change then select the bullet shape
4852  and size.
4853
4854 \family sans
4855  
4856 \family default
4857 Any changes will not be visible in LyX, but are visible when viewing the
4858  document using xdvi or ghostview.
4859 \end_layout
4860
4861 \begin_layout Standard
4862 You can reset a bullet shape to the default simply by clicking your right
4863  mouse button on the appropriate bullet depth button.
4864 \end_layout
4865
4866 \begin_layout Standard
4867 If you 
4868 \emph on
4869 really
4870 \emph default
4871  want to have multiple sets of paragraphs with different sets of bullets
4872  in each then you're going to have to get your hands dirty.
4873  The itemize bullet selection dialog can help though because it provides
4874  you with the LaTeX code for a wide range of bullet shapes.
4875  To make your own custom paragraphs you have the following options:
4876 \end_layout
4877
4878 \begin_layout Standard
4879 \begin_inset ERT
4880 status inlined
4881
4882 \begin_layout Standard
4883
4884 \backslash
4885 let
4886 \backslash
4887 savelabelitemi=
4888 \backslash
4889 labelitemi
4890 \end_layout
4891
4892 \end_inset
4893
4894
4895 \end_layout
4896
4897 \begin_layout Standard
4898 \begin_inset ERT
4899 status inlined
4900
4901 \begin_layout Standard
4902
4903 \backslash
4904 renewcommand
4905 \backslash
4906 labelitemi[0]{
4907 \backslash
4908 small
4909 \backslash
4910 (
4911 \backslash
4912 sharp
4913 \backslash
4914 )}
4915 \end_layout
4916
4917 \end_inset
4918
4919
4920 \end_layout
4921
4922 \begin_layout Itemize
4923 Use the LaTeX command 
4924 \family typewriter
4925
4926 \backslash
4927 renewcommand{}{}
4928 \family default
4929  to specify a new bullet shape for a given depth.
4930  You'll also need to save the current bullet shape so you can restore it
4931  again afterwards.
4932  In this itemized list the following LaTeX code was used to change the bullet
4933  used for the first depth.
4934 \newline
4935
4936 \family typewriter
4937
4938 \backslash
4939 let
4940 \backslash
4941 savelabelitemi=
4942 \backslash
4943 labelitemi
4944 \family default
4945  
4946 \family typewriter
4947
4948 \newline
4949
4950 \backslash
4951 renewcommand
4952 \backslash
4953 labelitemi[0]{
4954 \backslash
4955 small
4956 \backslash
4957 (
4958 \backslash
4959 sharp
4960 \backslash
4961 )}
4962 \newline
4963
4964 \family default
4965 Note that the itemize depth is specified in Roman numerals as part of the
4966  
4967 \family typewriter
4968
4969 \backslash
4970 labelitem
4971 \family default
4972  command.
4973 \end_layout
4974
4975 \begin_layout Itemize
4976 \begin_inset ERT
4977 status inlined
4978
4979 \begin_layout Standard
4980 [
4981 \backslash
4982 (
4983 \backslash
4984 star
4985 \backslash
4986 )]
4987 \end_layout
4988
4989 \end_inset
4990
4991  Specify each individual entry by starting each item with the bullet shape
4992  enclosed in square brackets and set as TeX.
4993  For example, this item was started with 
4994 \family typewriter
4995 [
4996 \backslash
4997 (
4998 \backslash
4999 star
5000 \backslash
5001 )]
5002 \family default
5003 .
5004 \end_layout
5005
5006 \begin_layout Standard
5007 \begin_inset ERT
5008 status inlined
5009
5010 \begin_layout Standard
5011
5012 \backslash
5013 renewcommand
5014 \backslash
5015 labelitemi[0]{
5016 \backslash
5017 savelabelitemi}
5018 \end_layout
5019
5020 \end_inset
5021
5022
5023 \end_layout
5024
5025 \begin_layout Standard
5026 You'll also need to revert the labelitem back to its previous setting for
5027  the global bullet shape settings to remain in effect.
5028  The way used here was:
5029 \newline
5030
5031 \family typewriter
5032
5033 \backslash
5034 renewcommand
5035 \backslash
5036 labelitemi[0]{
5037 \backslash
5038 savelabelitemi}
5039 \end_layout
5040
5041 \begin_layout Chapter
5042 Special Document Classes
5043 \end_layout
5044
5045 \begin_layout Section
5046 AMS LaTeX
5047 \end_layout
5048
5049 \begin_layout Standard
5050 by 
5051 \noun on
5052 David Johnson
5053 \end_layout
5054
5055 \begin_layout Standard
5056 \begin_inset VSpace bigskip
5057 \end_inset
5058
5059
5060 \end_layout
5061
5062 \begin_layout Standard
5063 \noindent
5064 The AMS LaTeX layouts are set up to conform to suggested styles for mathematical
5065  papers to be submitted to American Mathematical Society publications.
5066  The layouts are not tailored to a specific journal, but easily can be.
5067  You should refer to the AMS documentation for specific instructions for
5068  each journal (usually it will entail only changing a single line in the
5069  TeX output).
5070  That documentation is available on the Web at 
5071 \begin_inset LatexCommand \url{http://www.ams.org}
5072
5073 \end_inset
5074
5075  or by ftp at 
5076 \begin_inset LatexCommand \url{ftp://ftp.ams.org/pub/tex/amslatex/}
5077
5078 \end_inset
5079
5080 .These layouts are appropriate, and useful, for any mathematical writing.
5081  There are currently 4 distinct AMS LaTeX layouts: 
5082 \end_layout
5083
5084 \begin_layout Enumerate
5085 amsart: The standard AMS-article format.
5086  All results and similar statements are numbered as 
5087 \begin_inset Formula $(n.m)$
5088 \end_inset
5089
5090 , where the first number refers to the section, and the second refers to
5091  the total number of results (Theorems, Corollaries, Propositions, Definitions
5092  and Remarks, etc.) in that section.
5093  There are also many (but not all) environments available unnumbered, which
5094  is occasionally needed.
5095  Unnumbered environments indicated by an asterisk at the end.
5096 \end_layout
5097
5098 \begin_layout Enumerate
5099 amsart-seq: Here, numbering for each type of statement is in its own sequence,
5100  with no reference to the section number.
5101  There are also many (but not all) environments available unnumbered, which
5102  is occasionally needed.
5103  Unnumbered environments indicated by an asterisk at the end.
5104 \end_layout
5105
5106 \begin_layout Enumerate
5107 amsart-plain: This one is even more terse, since all the environments are
5108  unnumbered.
5109 \end_layout
5110
5111 \begin_layout Enumerate
5112 amsbook: the standard AMS book (really, monograph) format.
5113  Numbering is similar to the amsart layout, except that all numbering is
5114  by 
5115 \begin_inset Formula $(n.m.p)$
5116 \end_inset
5117
5118 , where the first number refers to the chapter, the second to the section,
5119  and the third is the number of the results (Theorems, Corollaries, Propositions
5120 , Definitions and Remarks, etc.) in that section.
5121  There are also many (but not all) environments available unnumbered, which
5122  is occasionally needed.
5123  Unnumbered environments indicated by an asterisk at the end.
5124 \end_layout
5125
5126 \begin_layout Standard
5127 Any AMS LyX file can be converted to either of the numbering schemes by
5128  simply changing the document class in the 
5129 \family sans
5130 \bar under
5131 D
5132 \bar default
5133 ocument\SpecialChar \menuseparator
5134
5135 \bar under
5136 S
5137 \bar default
5138 ettings
5139 \family default
5140  dialog.
5141  
5142 \end_layout
5143
5144 \begin_layout Subsection
5145 What these layouts provide
5146 \end_layout
5147
5148 \begin_layout Standard
5149 There is a long list of included environments provided by these layouts.
5150  Most mathematical papers or books will set as special statements most of
5151  these environments, in AMS-LaTeX there is an opportunity to define an unlimited
5152  variety of such declarations.
5153  However, the AMS recommends the environments that are available in LyX.
5154  The list of environments (not counting the standard environments such as
5155  
5156 \family sans
5157 sections, bibliography, title, author, date
5158 \family default
5159 ), is:
5160 \end_layout
5161
5162 \begin_layout Description
5163 Theorem This is typically used for the statements of major results.
5164  The word 
5165 \begin_inset Quotes eld
5166 \end_inset
5167
5168
5169 \family sans
5170 Theorem
5171 \family default
5172
5173 \begin_inset Quotes erd
5174 \end_inset
5175
5176  appears in bold type, along with an automatically-determined number (an
5177  unnumbered version, 
5178 \family sans
5179 Theorem*
5180 \family default
5181 , is also available).
5182  The text is italicized.
5183 \end_layout
5184
5185 \begin_layout Description
5186 Corollary This is used for statements which follow fairly directly from
5187  previous statements.
5188  Again, these can be major results.
5189  Unnumbered version 
5190 \family sans
5191 Corollary*
5192 \family default
5193  is available.
5194 \end_layout
5195
5196 \begin_layout Description
5197 Lemma These are smaller results needed to prove other statements.
5198 \end_layout
5199
5200 \begin_layout Description
5201 Proposition These are less major results which (hopefully) add to the general
5202  theory being discussed.
5203 \end_layout
5204
5205 \begin_layout Description
5206 Conjecture These are statements provided without justification, which the
5207  author does not know how to prove, but which seem to be true (to the author,
5208  at least).
5209 \end_layout
5210
5211 \begin_layout Description
5212 Criterion A required condition.
5213 \end_layout
5214
5215 \begin_layout Description
5216 Algorithm A general procedure to be used.
5217 \end_layout
5218
5219 \begin_layout Description
5220 Axiom This is a property or statement taken as true within the system being
5221  discussed.
5222 \end_layout
5223
5224 \begin_layout Description
5225 Definition Guess what this is for.
5226  The font, both on-screen and in the output, is different for this environment
5227  than for the previous ones.
5228  The heading (
5229 \begin_inset Quotes eld
5230 \end_inset
5231
5232 definition
5233 \begin_inset Quotes erd
5234 \end_inset
5235
5236 ) is still set in boldface, along with the number, if any, but the rest
5237  is set upright.
5238 \end_layout
5239
5240 \begin_layout Description
5241 Example Typeset similarly to Definition.
5242 \end_layout
5243
5244 \begin_layout Description
5245 Condition
5246 \end_layout
5247
5248 \begin_layout Description
5249 Problem
5250 \end_layout
5251
5252 \begin_layout Description
5253 Exercise
5254 \end_layout
5255
5256 \begin_layout Description
5257 Remark This environment is also a new type of theorem.
5258  This is set with the word Remark in italics, and the rest upright.
5259 \end_layout
5260
5261 \begin_layout Description
5262 Note Set similarly to the Remark environment.
5263 \end_layout
5264
5265 \begin_layout Description
5266 Notation
5267 \end_layout
5268
5269 \begin_layout Description
5270 Claim
5271 \end_layout
5272
5273 \begin_layout Description
5274 Summary
5275 \end_layout
5276
5277 \begin_layout Description
5278 Acknowledgement
5279 \end_layout
5280
5281 \begin_layout Description
5282 Case Generally, these are used to break up long arguments, using specific
5283  instances of some condition.
5284  The numbering scheme for cases is on its own, not together with other numbered
5285  statements.
5286  
5287 \end_layout
5288
5289 \begin_layout Description
5290 Conclusion
5291 \end_layout
5292
5293 \begin_layout Description
5294 Fact 
5295 \end_layout
5296
5297 \begin_layout Description
5298 Proof The word 
5299 \begin_inset Quotes eld
5300 \end_inset
5301
5302
5303 \shape italic
5304 Proof
5305 \shape default
5306
5307 \begin_inset Quotes erd
5308 \end_inset
5309
5310  is set in italics, but the rest is set upright.
5311  At the end of this environment (other environments can be nested within
5312  this one, of course) a QED symbol (usually a square, but it can vary with
5313  different styles) is placed.
5314 \end_layout
5315
5316 \begin_layout Description
5317 Address This should be the author's permanent address.
5318 \end_layout
5319
5320 \begin_layout Description
5321 Current\InsetSpace ~
5322 Address This should be the author's temporary address at the time
5323  of submission, if different from the Address.
5324 \end_layout
5325
5326 \begin_layout Description
5327 Email Author's e-mail address
5328 \end_layout
5329
5330 \begin_layout Description
5331 URL Author's Web address, if desired.
5332 \end_layout
5333
5334 \begin_layout Description
5335 Keywords Key words or phrases used to identify specific topics discussed
5336  in the paper.
5337 \end_layout
5338
5339 \begin_layout Description
5340 Subjectclass These refer to the AMS Subject Classifications, published and
5341  described in 
5342 \emph on
5343 Mathematical Reviews
5344 \emph default
5345 .
5346  These are also available online at the AMS cites listed above.
5347 \end_layout
5348
5349 \begin_layout Description
5350 Thanks
5351 \end_layout
5352
5353 \begin_layout Description
5354 Dedicatory
5355 \end_layout
5356
5357 \begin_layout Description
5358 Translator
5359 \end_layout
5360
5361 \begin_layout Standard
5362 In addition, these environments automatically provide the AMS LaTeX and
5363  AMS fonts packages.
5364  They need to be available on your system in order to use these environments.
5365 \end_layout
5366
5367 \begin_layout Section
5368 Dinbrief
5369 \end_layout
5370
5371 \begin_layout Standard
5372 The document class 
5373 \family sans
5374 dinbrief
5375 \family default
5376  can be used to type letters according to German conventions.
5377  A template file is included in 
5378 \family typewriter
5379 .../lyx/share/templates
5380 \family default
5381  for you to use as a starting point.
5382 \end_layout
5383
5384 \begin_layout Section
5385 Paper
5386 \end_layout
5387
5388 \begin_layout Standard
5389 The document class 
5390 \family sans
5391 paper
5392 \family default
5393  provides an alternative to the standard 
5394 \family sans
5395 article
5396 \family default
5397  class.
5398  It provides similar functionality, but you might prefer this layout with
5399  sans serif sections, headings, and more.
5400 \end_layout
5401
5402 \begin_layout Section
5403 A&A Paper
5404 \end_layout
5405
5406 \begin_layout Standard
5407 by 
5408 \noun on
5409 Peter Sütterlin
5410 \end_layout
5411
5412 \begin_layout Subsection
5413 Introduction
5414 \end_layout
5415
5416 \begin_layout Standard
5417 This section describes how LyX can be used to write articles for submission
5418  to the scientific journal 
5419 \emph on
5420 Astronomy and Astrophysics
5421 \emph default
5422  (
5423 \begin_inset LatexCommand \url[www.edpsciences.fr/aa/]{http://www.edpsciences.fr/aa/}
5424
5425 \end_inset
5426
5427 )
5428 \emph on
5429  
5430 \emph default
5431 using
5432 \emph on
5433  
5434 \emph default
5435 Version 5.01 of the document class 
5436 \family typewriter
5437 aa.cls
5438 \family default
5439 .
5440  This package can be downloaded from the ftp site
5441 \end_layout
5442
5443 \begin_layout Standard
5444 \begin_inset VSpace medskip
5445 \end_inset
5446
5447
5448 \end_layout
5449
5450 \begin_layout Standard
5451 \align center
5452 \begin_inset LatexCommand \url{ftp://ftp.edpsciences.org/pub/aa/readme.html}
5453
5454 \end_inset
5455
5456
5457 \end_layout
5458
5459 \begin_layout Standard
5460 \begin_inset VSpace medskip
5461 \end_inset
5462
5463
5464 \end_layout
5465
5466 \begin_layout Standard
5467 A manual comes together with that package, and this text is not meant to
5468  replace the original manual but merely a short guide how to realize the
5469  correct form of your paper.
5470  
5471 \end_layout
5472
5473 \begin_layout Standard
5474 Please note that the publisher of the journal was changed from Springer
5475  to EDP Sciences starting January 1, 2001.
5476  That change implicated also some slight changes of the style files, namely
5477  the removal of the thesaurus command.
5478  The LyX class aa supports the newest version of these style files, V 5.01.
5479  If you have an older version installed, please upgrade.
5480  For compatibility, the old (version 4) layout has been kept as 
5481 \family sans
5482 article (A&A V4)
5483 \family default
5484 .
5485  Please refer to the comments in 
5486 \family typewriter
5487 LyXDir/layouts/aapaper.layout
5488 \family default
5489 .
5490 \end_layout
5491
5492 \begin_layout Subsection
5493 Getting started
5494 \end_layout
5495
5496 \begin_layout Standard
5497 It is recommended you start from the example template distributed with LyX.
5498  If you are not using a template, note the following settings:
5499 \end_layout
5500
5501 \begin_layout Itemize
5502 Select 
5503 \family sans
5504 article (A&A)
5505 \family default
5506  in the 
5507 \family sans
5508 \bar under
5509 D
5510 \bar default
5511 ocument\SpecialChar \menuseparator
5512
5513 \bar under
5514 S
5515 \bar default
5516 ettings
5517 \family default
5518  dialog (OK, that one was obvious).
5519 \end_layout
5520
5521 \begin_layout Itemize
5522 Don't change the option 
5523 \family sans
5524 Page\InsetSpace ~
5525 style
5526 \family default
5527 : Leave it set to 
5528 \family sans
5529 default
5530 \family default
5531 .
5532  The whole layout is done by the macros, you shouldn't change anything.
5533 \end_layout
5534
5535 \begin_layout Subsection
5536 The header block
5537 \end_layout
5538
5539 \begin_layout Standard
5540 First thing to enter is the header information.
5541  It consists of seven entries, of which some are optional.
5542  They are
5543 \end_layout
5544
5545 \begin_layout Itemize
5546
5547 \family sans
5548 Title
5549 \family default
5550 : [required] 
5551 \end_layout
5552
5553 \begin_layout Itemize
5554
5555 \family sans
5556 Subtitle
5557 \family default
5558 : [optional] 
5559 \end_layout
5560
5561 \begin_layout Itemize
5562
5563 \family sans
5564 Author
5565 \family default
5566 : [required]
5567 \end_layout
5568
5569 \begin_layout Itemize
5570
5571 \family sans
5572 Address
5573 \family default
5574 : [required]
5575 \end_layout
5576
5577 \begin_layout Itemize
5578
5579 \family sans
5580 Offprints
5581 \family default
5582 : [optional] if more than one author: whom to contact for offprint requests.
5583 \end_layout
5584
5585 \begin_layout Itemize
5586
5587 \family sans
5588 Mail
5589 \family default
5590 : [optional] mail address for contacts.
5591 \end_layout
5592
5593 \begin_layout Itemize
5594
5595 \family sans
5596 Date
5597 \family default
5598 : [required].
5599  Suggested format is 
5600 \family typewriter
5601 Received: <date>; Accepted <date> 
5602 \end_layout
5603
5604 \begin_layout Standard
5605 There is no need to issue the 
5606 \family typewriter
5607
5608 \backslash
5609 maketitle
5610 \family default
5611  command, this is done automatically by LyX when the header is finished.
5612  Although the order of the single header entries doesn't matter it is advised
5613  to keep the above sequence, just to get the best optics and meets the layout
5614  of the real document.
5615 \end_layout
5616
5617 \begin_layout Standard
5618 If you want to place footnotes in the header block, e.g.
5619 \begin_inset ERT
5620 status collapsed
5621
5622 \begin_layout Standard
5623
5624 \backslash
5625  
5626 \end_layout
5627
5628 \end_inset
5629
5630 to state your present address, just use the standard footnote via 
5631 \family sans
5632 \bar under
5633 I
5634 \bar default
5635 nsert\SpecialChar \menuseparator
5636
5637 \bar under
5638 F
5639 \bar default
5640 ootnote.
5641  
5642 \family default
5643 LyX will automagically use the term 
5644 \family typewriter
5645
5646 \backslash
5647 thanks{}
5648 \family default
5649  in that case.
5650 \end_layout
5651
5652 \begin_layout Standard
5653 In addition to these topics, the macros use three additional LaTeX commands
5654  that have no counterpart in LyX:
5655 \end_layout
5656
5657 \begin_layout Itemize
5658
5659 \family typewriter
5660
5661 \backslash
5662 and
5663 \family default
5664  to separate different names for more than one author and institute, respectivel
5665 y.
5666 \end_layout
5667
5668 \begin_layout Itemize
5669
5670 \family typewriter
5671
5672 \backslash
5673 inst{<nr>}
5674 \family default
5675 to mark corresponding author/institute pairs.
5676  The institutes are numbered sequentially as they appear in the 
5677 \family sans
5678 Address
5679 \family default
5680  field, so you have to put a marker to each author.
5681 \end_layout
5682
5683 \begin_layout Itemize
5684
5685 \family typewriter
5686
5687 \backslash
5688 email{address}
5689 \family default
5690  to supply an email address for fast contact.
5691 \end_layout
5692
5693 \begin_layout Standard
5694 In all cases, the appropriate command has to be entered in LyX an marked
5695  as LaTeX code.
5696  See the examples.
5697  
5698 \end_layout
5699
5700 \begin_layout Subsection
5701 The abstract
5702 \end_layout
5703
5704 \begin_layout Standard
5705 The abstract should immediately follow the header block.
5706  With version 5 the abstract environment was changed to a command, and there
5707  is now a resctriction to only one paragraph.
5708  In addition, it should contain an entry with the keywords.
5709  This is not yet implemented for LyX, therefore you have to enter the LaTeX
5710  command 
5711 \family typewriter
5712
5713 \backslash
5714 keywords{}
5715 \family default
5716  by hand and mark it as LaTeX code.
5717  Refer to the example paper.
5718 \end_layout
5719
5720 \begin_layout Subsection
5721 Supported environments
5722 \end_layout
5723
5724 \begin_layout Standard
5725 The A&A paper layout supports the following environments for structuring
5726  your text:
5727 \end_layout
5728
5729 \begin_layout Itemize
5730
5731 \family sans
5732 Standard
5733 \end_layout
5734
5735 \begin_layout Itemize
5736
5737 \family sans
5738 Section
5739 \end_layout
5740
5741 \begin_layout Itemize
5742
5743 \family sans
5744 Subsection
5745 \end_layout
5746
5747 \begin_layout Itemize
5748
5749 \family sans
5750 Subsubsection
5751 \end_layout
5752
5753 \begin_layout Itemize
5754
5755 \family sans
5756 Itemize
5757 \end_layout
5758
5759 \begin_layout Itemize
5760
5761 \family sans
5762 Enumerate
5763 \end_layout
5764
5765 \begin_layout Itemize
5766
5767 \family sans
5768 Description
5769 \end_layout
5770
5771 \begin_layout Itemize
5772
5773 \family sans
5774 Caption
5775 \end_layout
5776
5777 \begin_layout Itemize
5778
5779 \family sans
5780 Abstract
5781 \end_layout
5782
5783 \begin_layout Itemize
5784
5785 \family sans
5786 Acknowledgment
5787 \end_layout
5788
5789 \begin_layout Itemize
5790
5791 \family sans
5792 Bibliography
5793 \end_layout
5794
5795 \begin_layout Itemize
5796
5797 \family sans
5798 LaTeX
5799 \end_layout
5800
5801 \begin_layout Subsection
5802 Commands not supported by LyX
5803 \end_layout
5804
5805 \begin_layout Standard
5806 Some commands are not yet supported by the 
5807 \family sans
5808 paper (A&A)
5809 \family default
5810  layout for LyX.
5811  Some have already been mentioned.
5812  For the sake of completeness, they are listed all together here:
5813 \end_layout
5814
5815 \begin_layout Itemize
5816
5817 \family typewriter
5818
5819 \backslash
5820 and
5821 \end_layout
5822
5823 \begin_layout Itemize
5824
5825 \family typewriter
5826
5827 \backslash
5828 email
5829 \end_layout
5830
5831 \begin_layout Itemize
5832
5833 \family typewriter
5834
5835 \backslash
5836 appendix
5837 \end_layout
5838
5839 \begin_layout Itemize
5840
5841 \family typewriter
5842
5843 \backslash
5844 authorrunning
5845 \end_layout
5846
5847 \begin_layout Itemize
5848
5849 \family typewriter
5850
5851 \backslash
5852 inst{}
5853 \end_layout
5854
5855 \begin_layout Itemize
5856
5857 \family typewriter
5858
5859 \backslash
5860 keywords{}
5861 \end_layout
5862
5863 \begin_layout Itemize
5864
5865 \family typewriter
5866
5867 \backslash
5868 object{}
5869 \end_layout
5870
5871 \begin_layout Itemize
5872
5873 \family typewriter
5874
5875 \backslash
5876 titlerunning{}
5877 \end_layout
5878
5879 \begin_layout Standard
5880 If you want to use any of these commands, you have to enter them yourself.
5881  
5882 \series bold
5883 Do not forget to mark them as LaTeX code!
5884 \end_layout
5885
5886 \begin_layout Subsection
5887 Figure and Table Floats
5888 \end_layout
5889
5890 \begin_layout Standard
5891 LyX provides support for the necessary float environments 
5892 \family sans
5893 figure, figure*, table 
5894 \family default
5895 and 
5896 \family sans
5897 table*
5898 \family default
5899 , therefore we won't tell much about it here.
5900  Refer to the 
5901 \emph on
5902 User's\InsetSpace ~
5903 Guide
5904 \emph default
5905 .
5906  Just remember that tables should be left-aligned.
5907  For that, select the table and change the alignment in 
5908 \family sans
5909 \bar under
5910 E
5911 \bar default
5912 dit\SpecialChar \menuseparator
5913
5914 \bar under
5915 P
5916 \bar default
5917 aragraph\InsetSpace ~
5918 Settings.
5919 \end_layout
5920
5921 \begin_layout Standard
5922 There is
5923 \family sans
5924  
5925 \family default
5926 only one special thing: the figures with caption besides the figure.
5927  To create such a figure, you have to do the following:
5928 \end_layout
5929
5930 \begin_layout Enumerate
5931 Create a wide figure float: 
5932 \family sans
5933 \bar under
5934 I
5935 \bar default
5936 nsert\SpecialChar \menuseparator
5937 Flo
5938 \bar under
5939 a
5940 \bar default
5941 t\SpecialChar \menuseparator
5942 Figure
5943 \family default
5944 , then right click in the figure and select
5945 \family sans
5946  
5947 \bar under
5948 S
5949 \bar default
5950 pan\InsetSpace ~
5951 columns
5952 \family default
5953 .
5954 \end_layout
5955
5956 \begin_layout Enumerate
5957 Enter your caption text.
5958 \end_layout
5959
5960 \begin_layout Enumerate
5961 Press 
5962 \family sans
5963 Return
5964 \family default
5965  to move the cursor above the caption.
5966 \end_layout
5967
5968 \begin_layout Enumerate
5969 Insert your figure
5970 \end_layout
5971
5972 \begin_layout Enumerate
5973 Position the cursor behind the figure and insert a horizontal fill: 
5974 \family sans
5975 \bar under
5976 I
5977 \bar default
5978 nsert\SpecialChar \menuseparator
5979
5980 \bar under
5981 S
5982 \bar default
5983 pecial\InsetSpace ~
5984 Character
5985 \bar under
5986 \SpecialChar \menuseparator
5987 H
5988 \bar default
5989 orizontal\InsetSpace ~
5990 Fill
5991 \family default
5992 .
5993 \end_layout
5994
5995 \begin_layout Enumerate
5996 Switch to LaTeX mode: 
5997 \family sans
5998 M-c\InsetSpace ~
5999 t
6000 \family default
6001 .
6002 \end_layout
6003
6004 \begin_layout Enumerate
6005 Enter 
6006 \family typewriter
6007
6008 \backslash
6009 parbox[b]{55mm}{
6010 \family default
6011 .
6012  
6013 \series bold
6014 Do not close the brace!
6015 \end_layout
6016
6017 \begin_layout Enumerate
6018 Position the cursor behind the caption text, switch to LaTeX mode and insert
6019  the closing brace: 
6020 \family sans
6021 M-c\InsetSpace ~
6022
6023 \family typewriter
6024 }
6025 \family default
6026 .
6027 \end_layout
6028
6029 \begin_layout Standard
6030 Also, refer to the figures in the example paper.
6031 \end_layout
6032
6033 \begin_layout Subsection
6034 Referee layout
6035 \end_layout
6036
6037 \begin_layout Standard
6038 For submission, the paper has to be formated in a special double-spacing
6039  layout.
6040  For this purpose, you have to give the option 
6041 \family typewriter
6042 referee
6043 \family default
6044  to the documentclass.
6045  This must be done using the extra class options field in the 
6046 \family sans
6047 \bar under
6048 D
6049 \bar default
6050 ocument\SpecialChar \menuseparator
6051
6052 \bar under
6053 S
6054 \bar default
6055 ettings
6056 \family default
6057  dialog.
6058  Just enter the string 
6059 \family typewriter
6060 referee
6061 \family default
6062  there.
6063 \end_layout
6064
6065 \begin_layout Subsection
6066 The example paper
6067 \end_layout
6068
6069 \begin_layout Standard
6070 The 
6071 \family sans
6072 Examples
6073 \family default
6074  directory contains an example paper written with LyX.
6075  It is the example paper from the original macro package, translated to
6076  LyX.
6077  Use it for inspiration, and compare the original LaTeX code with LyX way
6078  of writing.
6079 \end_layout
6080
6081 \begin_layout Section
6082 AASTeX
6083 \end_layout
6084
6085 \begin_layout Standard
6086 by 
6087 \noun on
6088 Mike Ressler
6089 \end_layout
6090
6091 \begin_layout Subsection
6092 Introduction
6093 \end_layout
6094
6095 \begin_layout Standard
6096 AASTeX is a set of macros produced by the American Astronomical Society
6097  to facilitate electronic manuscript submission to the three journals they
6098  publish: the Astrophysical Journal (including the Letters and Supplement),
6099  the Astronomical Journal, and the Publications of the Astronomical Society
6100  of the Pacific.
6101  LyX has proven to be an excellent tool for generating these documents,
6102  especially given its equation, citation, and figure handling capabilities.
6103  LyX requires version 5.0 (or higher) of these macros; preferably 5.2, which
6104  is the version described here, or higher.
6105  Versions prior to 5.0 are intended for use with LaTeX2.09 and are fundamentally
6106  incompatible with LyX.
6107  The AASTeX package may be downloaded from the AASTeX Web site
6108 \end_layout
6109
6110 \begin_layout Standard
6111 \begin_inset VSpace medskip
6112 \end_inset
6113
6114
6115 \end_layout
6116
6117 \begin_layout Standard
6118 \align center
6119 \begin_inset LatexCommand \url{http://www.journals.uchicago.edu/AAS/AASTeX}
6120
6121 \end_inset
6122
6123
6124 \end_layout
6125
6126 \begin_layout Standard
6127 \begin_inset VSpace medskip
6128 \end_inset
6129
6130
6131 \end_layout
6132
6133 \begin_layout Standard
6134 A complete user guide is contained in that package and you should familiarize
6135  yourself with it thoroughly before embarking on writing a paper in LyX.
6136  LyX will not reduce the need to figure out all the AASTeX commands, it
6137  will only reduce the drudgery of typing everything in.
6138  It is your responsibility to ensure that the final exported LaTeX document
6139  conforms completely to the requirements of the journal to which you are
6140  submitting your paper.
6141 \end_layout
6142
6143 \begin_layout Subsection
6144 Starting a New Paper
6145 \end_layout
6146
6147 \begin_layout Standard
6148 I strongly suggest that you start with the AASTeX template file.
6149  Click on 
6150 \family sans
6151 \bar under
6152 F
6153 \bar default
6154 ile\SpecialChar \menuseparator
6155 New from 
6156 \bar under
6157 T
6158 \bar default
6159 emplate
6160 \family default
6161 , enter the new file name, then choose the 
6162 \family typewriter
6163 aastex.lyx
6164 \family default
6165  template.
6166  This will show the most common fields found in a manuscript.
6167  Simply overwrite the existing text (including the brackets, 
6168 \family typewriter
6169 <>
6170 \family default
6171 ) with the correct information.
6172  Many of the AASTeX commands and environments can be implemented directly
6173  in LyX, but some cannot: most noticeably 
6174 \family typewriter
6175
6176 \backslash
6177 altaffilmark
6178 \family default
6179  and 
6180 \family typewriter
6181
6182 \backslash
6183 altaffiltext
6184 \family default
6185 , which should stick out like a sore thumb if you actually just opened the
6186  template file.
6187  For commands such as these, the LaTeX code must be entered directly and
6188  marked as such.
6189  Such commands are referred to as ERT, or Evil Red Text.
6190  I tried to minimize the amount of ERT needed in an AASTeX document, but
6191  there is still a bit more required than any of us would like.
6192 \end_layout
6193
6194 \begin_layout Subsection
6195 Finishing Your Paper
6196 \end_layout
6197
6198 \begin_layout Standard
6199 When the paper is finished to your satisfaction and previews/prints correctly,
6200  there are a few 
6201 \begin_inset Quotes eld
6202 \end_inset
6203
6204 postprocessing
6205 \begin_inset Quotes erd
6206 \end_inset
6207
6208  actions which need to be done before you submit it to the journals.
6209  
6210 \end_layout
6211
6212 \begin_layout Enumerate
6213 Export your paper as a LaTeX file (
6214 \family sans
6215 \bar under
6216 F
6217 \bar default
6218 ile\SpecialChar \menuseparator
6219
6220 \bar under
6221 E
6222 \bar default
6223 xport\SpecialChar \menuseparator
6224
6225 \bar under
6226 L
6227 \bar default
6228 aTeX
6229 \family default
6230 ).
6231  
6232 \end_layout
6233
6234 \begin_layout Enumerate
6235 Edit the resulting 
6236 \family typewriter
6237 .tex
6238 \family default
6239  file with your favorite text editor
6240 \end_layout
6241
6242 \begin_deeper
6243 \begin_layout Enumerate
6244 remove the comment lines before the 
6245 \family typewriter
6246
6247 \backslash
6248 documentclass
6249 \family default
6250  command
6251 \end_layout
6252
6253 \begin_layout Enumerate
6254 remove the 
6255 \family typewriter
6256
6257 \backslash
6258 usepackage...{fontenc}
6259 \family default
6260  line if it appears (usually just after 
6261 \family typewriter
6262
6263 \backslash
6264 documentclass
6265 \family default
6266 }; also remove the 
6267 \family typewriter
6268
6269 \backslash
6270 secnumdepth
6271 \family default
6272  line if it appears.
6273 \end_layout
6274
6275 \begin_layout Enumerate
6276 remove everything between (and including) the 
6277 \family typewriter
6278
6279 \backslash
6280 makeatletter
6281 \family default
6282  and 
6283 \family typewriter
6284
6285 \backslash
6286 makeatother
6287 \family default
6288  commands, except for any commands you specifically put into the LaTeX preamble
6289  (which should appear immediately after the 
6290 \begin_inset Quotes eld
6291 \end_inset
6292
6293 User specified LaTeX commands
6294 \begin_inset Quotes erd
6295 \end_inset
6296
6297  comment in the 
6298 \family typewriter
6299 .tex
6300 \family default
6301  file).
6302 \end_layout
6303
6304 \end_deeper
6305 \begin_layout Enumerate
6306 Run the resulting file through LaTeX to make sure it still processes correctly.
6307 \end_layout
6308
6309 \begin_layout Enumerate
6310 Reread the journal requirements to make sure your filenames and formats
6311  are correct.
6312 \end_layout
6313
6314 \begin_layout Enumerate
6315 Submit it.
6316 \end_layout
6317
6318 \begin_layout Subsection
6319 Comments On Specific Commands
6320 \end_layout
6321
6322 \begin_layout Standard
6323 I will not describe the detailed usage of the individual AASTeX commands:
6324  the AASTeX User Guide (
6325 \family typewriter
6326 aasguide.tex
6327 \family default
6328 ) gives a good description of each.
6329  Thus it's probably easiest for me to go down the list as found in the guide
6330  and offer comments where necessary.
6331  So let's begin \SpecialChar \ldots{}
6332
6333 \end_layout
6334
6335 \begin_layout Subsubsection
6336 Things that work as expected
6337 \end_layout
6338
6339 \begin_layout Standard
6340 \begin_inset ERT
6341 status inlined
6342
6343 \begin_layout Standard
6344
6345 \backslash
6346 begin{sloppypar}
6347 \end_layout
6348
6349 \end_inset
6350
6351
6352 \end_layout
6353
6354 \begin_layout Standard
6355 Because they work as you might expect, I simply list them and the section
6356  they are found in: 
6357 \family typewriter
6358
6359 \backslash
6360 documentclass
6361 \family default
6362  (2.1.1), 
6363 \family typewriter
6364
6365 \backslash
6366 begin{document}
6367 \family default
6368  (2.2), 
6369 \family typewriter
6370
6371 \backslash
6372 title
6373 \family default
6374  (2.3), 
6375 \family typewriter
6376
6377 \backslash
6378 author
6379 \family default
6380  (2.3), 
6381 \family typewriter
6382
6383 \backslash
6384 affil
6385 \family default
6386  (2.3), 
6387 \family typewriter
6388
6389 \backslash
6390 abstract
6391 \family default
6392  (2.4), 
6393 \family typewriter
6394
6395 \backslash
6396 keywords
6397 \family default
6398  (2.5), 
6399 \family typewriter
6400
6401 \backslash
6402 section
6403 \family default
6404  (2.7), 
6405 \family typewriter
6406
6407 \backslash
6408 subsection
6409 \family default
6410  (2.7), 
6411 \family typewriter
6412
6413 \backslash
6414 subsubsection
6415 \family default
6416  (2.7), 
6417 \family typewriter
6418
6419 \backslash
6420 paragraph
6421 \family default
6422  (2.7),
6423 \family typewriter
6424  
6425 \backslash
6426 facility
6427 \family default
6428  (2.10), 
6429 \family typewriter
6430
6431 \backslash
6432 begin{displaymath}
6433 \family default
6434  (2.12), 
6435 \family typewriter
6436
6437 \backslash
6438 begin{equation}
6439 \family default
6440  (2.12), 
6441 \family typewriter
6442
6443 \backslash
6444 begin{eqnarray}
6445 \family default
6446  (2.12), 
6447 \family typewriter
6448
6449 \backslash
6450 begin{mathletters}
6451 \family default
6452  (2.12), 
6453 \family typewriter
6454
6455 \backslash
6456 begin{thebibliography}
6457 \family default
6458  (2.13.1), 
6459 \family typewriter
6460
6461 \backslash
6462 bibitem
6463 \family default
6464  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6465  graphicx figure commands (2.14.1),
6466 \family typewriter
6467  
6468 \backslash
6469 begin{table}
6470 \family default
6471  (2.15.4), 
6472 \family typewriter
6473
6474 \backslash
6475 begin{tabular}
6476 \family default
6477  (2.15.4), 
6478 \family typewriter
6479
6480 \backslash
6481 caption
6482 \family default
6483  (2.15.4), 
6484 \family typewriter
6485
6486 \backslash
6487 label
6488 \family default
6489  (2.15.4, amongst other places), 
6490 \family typewriter
6491
6492 \backslash
6493 tablerefs
6494 \family default
6495  (2.15.5), 
6496 \family typewriter
6497
6498 \backslash
6499 tablecomments
6500 \family default
6501  (2.15.5), 
6502 \family typewriter
6503
6504 \backslash
6505 url
6506 \family default
6507  (2.17.4), 
6508 \family typewriter
6509
6510 \backslash
6511 end{document}
6512 \family default
6513  (2.18).
6514 \end_layout
6515
6516 \begin_layout Standard
6517 The following style options also work correctly: 
6518 \family typewriter
6519 longabstract
6520 \family default
6521  (2.4), 
6522 \family typewriter
6523 preprint
6524 \family default
6525  (3.2.1), 
6526 \family typewriter
6527 preprint2
6528 \family default
6529  (3.2.2), 
6530 \family typewriter
6531 eqsecnum
6532 \family default
6533  (3.3), 
6534 \family typewriter
6535 flushrt
6536 \family default
6537  (3.4).
6538  Simply put them in the 
6539 \family sans
6540 Options
6541 \family default
6542  box in 
6543 \family sans
6544 Layout\SpecialChar \menuseparator
6545 Document
6546 \family default
6547 .
6548 \end_layout
6549
6550 \begin_layout Standard
6551 \begin_inset ERT
6552 status inlined
6553
6554 \begin_layout Standard
6555
6556 \backslash
6557 end{sloppypar}
6558 \end_layout
6559
6560 \end_inset
6561
6562
6563 \end_layout
6564
6565 \begin_layout Subsubsection
6566 Things that work, but require more comment
6567 \end_layout
6568
6569 \begin_layout Standard
6570 The following items work, but require a little more discussion:
6571 \end_layout
6572
6573 \begin_layout Itemize
6574 These items are reserved for use by the journal editors, but you can put
6575  them into the LaTeX preamble if you feel compelled to do so: 
6576 \family typewriter
6577
6578 \backslash
6579 received
6580 \family default
6581
6582 \family typewriter
6583
6584 \backslash
6585 revised
6586 \family default
6587
6588 \family typewriter
6589
6590 \backslash
6591 accepted
6592 \family default
6593
6594 \family typewriter
6595
6596 \backslash
6597 ccc
6598 \family default
6599
6600 \family typewriter
6601
6602 \backslash
6603 cpright
6604 \family default
6605  (all from 2.1.3)
6606 \end_layout
6607
6608 \begin_layout Itemize
6609 These items may be placed in the LaTeX preamble, and are included as blanks
6610  in the template file: 
6611 \family typewriter
6612
6613 \backslash
6614 slugcomment
6615 \family default
6616  (2.1.4), 
6617 \family typewriter
6618
6619 \backslash
6620 shorttitle
6621 \family default
6622  (2.1.5), 
6623 \family typewriter
6624
6625 \backslash
6626 shortauthors
6627 \family default
6628  (2.1.5)
6629 \end_layout
6630
6631 \begin_layout Itemize
6632
6633 \family typewriter
6634
6635 \backslash
6636 email
6637 \family default
6638  (2.3) -- can only be used 
6639 \begin_inset Quotes eld
6640 \end_inset
6641
6642 standalone
6643 \begin_inset Quotes erd
6644 \end_inset
6645
6646 , not in the middle of a paragraph.
6647  Use ERT if you need to embed it.
6648 \end_layout
6649
6650 \begin_layout Itemize
6651
6652 \family typewriter
6653
6654 \backslash
6655 and
6656 \family default
6657  (2.3) -- will have extra {} after it.
6658  This should not cause an error.
6659 \end_layout
6660
6661 \begin_layout Itemize
6662
6663 \family typewriter
6664
6665 \backslash
6666 notetoeditor
6667 \family default
6668  (2.6) -- can only be used 
6669 \begin_inset Quotes eld
6670 \end_inset
6671
6672 standalone
6673 \begin_inset Quotes erd
6674 \end_inset
6675
6676 , not in the middle of a paragraph.
6677  Use ERT if you need to embed it.
6678 \end_layout
6679
6680 \begin_layout Itemize
6681
6682 \family typewriter
6683
6684 \backslash
6685 placetable
6686 \family default
6687  (2.8) -- can't insert a cross-reference tag, you must type the tag name
6688  by hand
6689 \end_layout
6690
6691 \begin_layout Itemize
6692
6693 \family typewriter
6694
6695 \backslash
6696 placefigure
6697 \family default
6698  (2.8) -- same as for 
6699 \family typewriter
6700
6701 \backslash
6702 placetable
6703 \end_layout
6704
6705 \begin_layout Itemize
6706
6707 \family typewriter
6708
6709 \backslash
6710 acknowledgements
6711 \family default
6712  (2.9) -- will have extra {} after it.
6713  This should not cause an error.
6714 \end_layout
6715
6716 \begin_layout Itemize
6717
6718 \family typewriter
6719
6720 \backslash
6721 appendix
6722 \family default
6723  (2.11) -- will have extra {} after it.
6724  This should not cause an error.
6725 \end_layout
6726
6727 \begin_layout Itemize
6728
6729 \family typewriter
6730
6731 \backslash
6732 figcaption
6733 \family default
6734  (2.14.2) -- you can insert an optional filename argument by placing the cursor
6735  at the beginning of the text and selecting 
6736 \family sans
6737 Insert\SpecialChar \menuseparator
6738 Short Title
6739 \family default
6740 .
6741  
6742 \begin_inset Quotes eld
6743 \end_inset
6744
6745 Short Title
6746 \begin_inset Quotes erd
6747 \end_inset
6748
6749  inserts an optional argument of the type needed by 
6750 \family typewriter
6751
6752 \backslash
6753 figcaption
6754 \family default
6755 .
6756  Hopefully it will be renamed someday.
6757 \end_layout
6758
6759 \begin_layout Itemize
6760
6761 \family typewriter
6762
6763 \backslash
6764 objectname
6765 \family default
6766  (2.17.1) -- same as 
6767 \family typewriter
6768
6769 \backslash
6770 figcaption
6771 \family default
6772  for the catalog ID optional parameter
6773 \end_layout
6774
6775 \begin_layout Itemize
6776
6777 \family typewriter
6778
6779 \backslash
6780 dataset
6781 \family default
6782  (2.17.1) -- same as 
6783 \family typewriter
6784
6785 \backslash
6786 figcaption
6787 \family default
6788  for the catalog ID optional parameter
6789 \end_layout
6790
6791 \begin_layout Subsubsection
6792 Things not implemented, use ERT
6793 \end_layout
6794
6795 \begin_layout Standard
6796 \begin_inset ERT
6797 status inlined
6798
6799 \begin_layout Standard
6800
6801 \backslash
6802 begin{sloppypar}
6803 \end_layout
6804
6805 \end_inset
6806
6807
6808 \end_layout
6809
6810 \begin_layout Standard
6811
6812 \family typewriter
6813
6814 \backslash
6815 altaffilmark
6816 \family default
6817  (2.3), 
6818 \family typewriter
6819
6820 \backslash
6821 altaffiltext
6822 \family default
6823  (2.3), 
6824 \family typewriter
6825
6826 \backslash
6827 eqnum
6828 \family default
6829  (2.12), 
6830 \family typewriter
6831
6832 \backslash
6833 setcounter{equation}
6834 \family default
6835  (2.12), Journal name abbreviations (2.13.4), 
6836 \family typewriter
6837
6838 \backslash
6839 figurenum
6840 \family default
6841  (2.14.1), 
6842 \family typewriter
6843
6844 \backslash
6845 epsscale
6846 \family default
6847  (2.14.1), 
6848 \family typewriter
6849
6850 \backslash
6851 plotone
6852 \family default
6853  (2.14.1), 
6854 \family typewriter
6855
6856 \backslash
6857 plottwo
6858 \family default
6859  (2.14.1), 
6860 \family typewriter
6861
6862 \backslash
6863 tablenum
6864 \family default
6865  (2.15.4), 
6866 \family typewriter
6867
6868 \backslash
6869 tableline
6870 \family default
6871  (2.15.4, insert it as the first element in the lefthand cell after where
6872  you want it.
6873  Don't use any of LyX's rules in the table), 
6874 \family typewriter
6875
6876 \backslash
6877 tablenotemark
6878 \family default
6879  (2.15.5), 
6880 \family typewriter
6881
6882 \backslash
6883 tablenotetext
6884 \family default
6885  (2.15.5), much of Misc (2.17, except 
6886 \family typewriter
6887
6888 \backslash
6889 objectname
6890 \family default
6891 ,
6892 \family typewriter
6893  
6894 \backslash
6895 dataset
6896 \family default
6897 ,
6898 \family typewriter
6899  
6900 \backslash
6901 url
6902 \family default
6903 , and 
6904 \family typewriter
6905
6906 \backslash
6907 email
6908 \family default
6909 ; see above), 
6910 \family typewriter
6911
6912 \backslash
6913 singlespace
6914 \family default
6915  (3.1), 
6916 \family typewriter
6917
6918 \backslash
6919 doublespace
6920 \family default
6921  (3.1), 
6922 \family typewriter
6923
6924 \backslash
6925 onecolumn
6926 \family default
6927  (3.2), 
6928 \family typewriter
6929
6930 \backslash
6931 twocolumn
6932 \family default
6933  (3.2)
6934 \end_layout
6935
6936 \begin_layout Standard
6937 \begin_inset ERT
6938 status inlined
6939
6940 \begin_layout Standard
6941
6942 \backslash
6943 end{sloppypar}
6944 \end_layout
6945
6946 \end_inset
6947
6948
6949 \end_layout
6950
6951 \begin_layout Subsubsection
6952 Things that cannot be implemented
6953 \end_layout
6954
6955 \begin_layout Standard
6956 \SpecialChar \ldots{}
6957  at least in any meaningful sort of way, so I suggest ignoring them.
6958  They are the references environment (2.13.3), and the deluxetable environment
6959  (2.15).
6960  If you really, really need to use deluxetable, I suggest editing it in
6961  a separate file with a text editor, then using 
6962 \family sans
6963 \bar under
6964 I
6965 \bar default
6966 nsert\SpecialChar \menuseparator
6967 Chil
6968 \bar under
6969 d
6970 \bar default
6971 \InsetSpace ~
6972 Document
6973 \family default
6974  to include it in your LyX document.
6975  See the 
6976 \family typewriter
6977 aas_sample.lyx
6978 \family default
6979  file to see an example of this.
6980 \end_layout
6981
6982 \begin_layout Subsection
6983 FAQs, Tips, Tricks, and Other Ruminations
6984 \end_layout
6985
6986 \begin_layout Subsubsection
6987 Getting LyX and AASTeX to cooperate
6988 \end_layout
6989
6990 \begin_layout Standard
6991 It can be a bit tricky to get LyX to recognize a new layout and document
6992  class.
6993  When all else fails, do this:
6994 \end_layout
6995
6996 \begin_layout Enumerate
6997 Make certain that LaTeX can find AASTeX.
6998  Copy sample.tex (and perhaps table.tex) from the AASTeX distribution into
6999  a directory completely unrelated to LaTeX or AASTeX and run LaTeX on 
7000 \family typewriter
7001 sample.tex
7002 \family default
7003 .
7004 \end_layout
7005
7006 \begin_layout Enumerate
7007 Make certain that 
7008 \family typewriter
7009 aastex.layout
7010 \family default
7011  appears in 
7012 \family typewriter
7013 /usr/.../share/lyx/layouts
7014 \family default
7015  or 
7016 \family typewriter
7017 ~/.lyx/layouts
7018 \family default
7019 .
7020 \end_layout
7021
7022 \begin_layout Enumerate
7023 Rerun 
7024 \family sans
7025 \bar under
7026 T
7027 \bar default
7028 ools\SpecialChar \menuseparator
7029
7030 \bar under
7031 R
7032 \bar default
7033 econfigure
7034 \family default
7035  in LyX, then restart LyX.
7036 \end_layout
7037
7038 \begin_layout Enumerate
7039 Open a regular new file, not from a template.
7040  Does AASTeX appear in the class list in 
7041 \family sans
7042 \bar under
7043 D
7044 \bar default
7045 ocument\SpecialChar \menuseparator
7046
7047 \bar under
7048 S
7049 \bar default
7050 ettings
7051 \family default
7052 ?
7053 \end_layout
7054
7055 \begin_layout Standard
7056 If you get a warning from an existing AASTeX document about not being able
7057  to find the AASTeX layout or a message about 
7058 \begin_inset Quotes eld
7059 \end_inset
7060
7061 You should not mix title layouts with normal ones
7062 \begin_inset Quotes erd
7063 \end_inset
7064
7065 , things haven't been installed correctly.
7066 \end_layout
7067
7068 \begin_layout Subsubsection
7069 LaTeX error processing a table 
7070 \end_layout
7071
7072 \begin_layout Standard
7073 LyX, by default, attempts to center the table caption/title.
7074  This seems to produce a bad interaction in AASTeX so you should click somewhere
7075  in the caption/title, then select 
7076 \family sans
7077 \bar under
7078 E
7079 \bar default
7080 dit\SpecialChar \menuseparator
7081
7082 \bar under
7083 P
7084 \bar default
7085 aragraph\InsetSpace ~
7086 Settings
7087 \family default
7088 , then set the 
7089 \family sans
7090 Alignment
7091 \family default
7092  to 
7093 \family sans
7094 \bar under
7095 B
7096 \bar default
7097 lock
7098 \family default
7099 .
7100  This took care of it for me.
7101 \end_layout
7102
7103 \begin_layout Subsubsection
7104 References
7105 \begin_inset LatexCommand \label{cite}
7106
7107 \end_inset
7108
7109
7110 \end_layout
7111
7112 \begin_layout Standard
7113 A couple of things: 1) I have noticed some funny spacing in the reference
7114  entries in the text.
7115  When you enter the bibliography item data, make sure their is 
7116 \emph on
7117 no
7118 \emph default
7119  space between the last author and the parenthesis setting off the year;
7120  
7121 \emph on
7122 e.g.
7123  
7124 \emph default
7125 type
7126 \family typewriter
7127  Ressler(1992)
7128 \family default
7129 , not 
7130 \family typewriter
7131 Ressler (1992)
7132 \family default
7133 .
7134  2) Entering the references at all is not obvious.
7135  The easiest thing is to start typing your first reference at the end of
7136  the document, then mark it as type 
7137 \family sans
7138 References
7139 \family default
7140 .
7141  That will put a small gray box in front of what you just typed.
7142  Click on the box to fill in the rest of the information.
7143  For new references, go to the end of an existing reference and press return.
7144  That will create a new line with its own box, etc.
7145 \end_layout
7146
7147 \begin_layout Subsubsection
7148 Including EPS files
7149 \end_layout
7150
7151 \begin_layout Standard
7152 Even though AASTeX provides its own figure commands (
7153 \family typewriter
7154
7155 \backslash
7156 plotone
7157 \family default
7158 , for example), I much prefer LaTeX's standard figure commands (with the
7159  default graphicx).
7160  You can insert the 
7161 \family typewriter
7162
7163 \backslash
7164 plotone
7165 \family default
7166 , etc.\InsetSpace ~
7167 commands as ERT into a Figure Float box if you desire, but I never
7168  have much luck getting the layout right.
7169  With the standard graphics, LyX will insert a 
7170 \family typewriter
7171
7172 \backslash
7173 usepackage{graphicx}
7174 \family default
7175  command into the LaTeX preamble and handle the figures in the standard
7176  LaTeX2e way, interspersing the figures in the text.
7177  I believe ApJ accepts figures exactly this way now; AJ might still use
7178  the 
7179 \begin_inset Quotes eld
7180 \end_inset
7181
7182 stack everything at the end
7183 \begin_inset Quotes erd
7184 \end_inset
7185
7186  technique.
7187 \end_layout
7188
7189 \begin_layout Subsubsection
7190 Things I could have done, but didn't
7191 \end_layout
7192
7193 \begin_layout Standard
7194 There are a few 
7195 \begin_inset Quotes eld
7196 \end_inset
7197
7198 pretty
7199 \begin_inset Quotes erd
7200 \end_inset
7201
7202  things I could have implemented, but chose not to.
7203  For instance, I saw no point in double-spacing the text in the LyX window,
7204  even though it is double-spaced in the paper manuscript.
7205  Also, I chose not to make separate layouts for the preprint and preprint2
7206  styles.
7207  Since I assume you will spend most of your time in the plain manuscript
7208  mode anyway, I decided not to chew up more disk space with this.
7209  
7210 \end_layout
7211
7212 \begin_layout Subsection
7213 Final Caveat
7214 \end_layout
7215
7216 \begin_layout Standard
7217 Your mileage may vary.
7218  I've now had papers published by both ApJ and AJ that have had 98% of the
7219  effort done in LyX; the last 2% was the LaTeX post-processing and a few
7220  cleanups.
7221  I have had no trouble with the submission process, and I'm sure the journals
7222  were never aware that there might be a difference.
7223  So, go forth and publish!
7224 \end_layout
7225
7226 \begin_layout Section
7227 ijmpd
7228 \end_layout
7229
7230 \begin_layout Standard
7231 by 
7232 \noun on
7233 Panayotis Papasotiriou
7234 \end_layout
7235
7236 \begin_layout Subsection
7237 Overview
7238 \end_layout
7239
7240 \begin_layout Standard
7241 The ijmpd package is a set of macros that facilitates electronic manuscript
7242  submission to the 
7243 \emph on
7244 International Journal of Modern Physics D
7245 \emph default
7246  published by World Scientific.
7247  The name of the document class is 
7248 \family typewriter
7249 ws-ijmpd.cls
7250 \family default
7251 .
7252  This file, together with instructions for the authors, can be downloaded
7253  from the site 
7254 \begin_inset LatexCommand \url{http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml}
7255
7256 \end_inset
7257
7258 .
7259  The ijmpd package is a modified version of the standard 
7260 \begin_inset Quotes eld
7261 \end_inset
7262
7263 article
7264 \begin_inset Quotes erd
7265 \end_inset
7266
7267  package.
7268  Most of its features are supported by LyX.
7269  I have recently used LyX successfully to write an article submitted to
7270  the 
7271 \emph on
7272 International Journal of Modern Physics D
7273 \emph default
7274 .
7275 \end_layout
7276
7277 \begin_layout Subsection
7278 Writing a paper
7279 \end_layout
7280
7281 \begin_layout Standard
7282 As usual, the easiest way to write a paper is to start with a template.
7283  Click on 
7284 \family sans
7285 \bar under
7286 F
7287 \bar default
7288 ile\SpecialChar \menuseparator
7289 New from 
7290 \bar under
7291 T
7292 \bar default
7293 emplate
7294 \family default
7295 , then choose the 
7296 \family typewriter
7297 ijmpd.lyx
7298 \family default
7299  template.
7300  This will give an (almost) empty document that includes the most common
7301  fields found in a manuscript.
7302  Simply overwrite the existing text (including the brackets, 
7303 \family typewriter
7304 <>
7305 \family default
7306 ) with the correct information.
7307  You should keep in mind the following remarks.
7308 \end_layout
7309
7310 \begin_layout Enumerate
7311 LyX won't let you change the font size and the page style of the document,
7312  because the ijmpd package does not allow such modifications.
7313 \end_layout
7314
7315 \begin_layout Enumerate
7316 The ijmpd package requires that the language of the document should not
7317  be changed.
7318  Before previewing your paper, be sure that the babel package is not used.
7319  To do this, click on 
7320 \family sans
7321 \bar under
7322 T
7323 \bar default
7324 ools\SpecialChar \menuseparator
7325
7326 \bar under
7327 P
7328 \bar default
7329 references
7330 \family default
7331 , deselect the 
7332 \family sans
7333 \bar under
7334 U
7335 \bar default
7336 se babel
7337 \family default
7338  checkbox in the language settings, and click on 
7339 \family sans
7340 \bar under
7341 A
7342 \bar default
7343 pply
7344 \family default
7345  (or 
7346 \family sans
7347 Save
7348 \family default
7349 , if you wish to make this change permanent).
7350 \end_layout
7351
7352 \begin_layout Enumerate
7353 Two new environments, named 
7354 \begin_inset Quotes eld
7355 \end_inset
7356
7357 Theorem
7358 \begin_inset Quotes erd
7359 \end_inset
7360
7361  and 
7362 \begin_inset Quotes eld
7363 \end_inset
7364
7365 Proof
7366 \begin_inset Quotes erd
7367 \end_inset
7368
7369  are available (their use is obvious).
7370 \end_layout
7371
7372 \begin_layout Enumerate
7373 Appendices may be added to the paper.
7374  LyX offers a special environment, called 
7375 \begin_inset Quotes eld
7376 \end_inset
7377
7378 Appendix
7379 \begin_inset Quotes erd
7380 \end_inset
7381
7382  which marks the beginning of the appendix.
7383  An appendix can contain normal sections, subsections, or subsubsections.
7384 \end_layout
7385
7386 \begin_layout Enumerate
7387 The ijmpd package implements table captions quite differently than LyX does.
7388  As a result, a table created by LyX is printed correctly, but its caption
7389  is ignored.
7390  If you need table captions, you should implement the whole table float
7391  in a 
7392 \family typewriter
7393 .tex
7394 \family default
7395  file, then include this file to the LyX document (
7396 \family sans
7397 \bar under
7398 I
7399 \bar default
7400 nsert\SpecialChar \menuseparator
7401 Chil
7402 \bar under
7403 d
7404 \bar default
7405 \InsetSpace ~
7406 Document
7407 \family default
7408 ).
7409  Details on how to create an ijmpd table float can be found in the file
7410  
7411 \family typewriter
7412 ws-ijmpd.tex
7413 \family default
7414 , which is included in the ijmpd package.
7415 \end_layout
7416
7417 \begin_layout Subsection
7418 Preparing a paper for submission
7419 \end_layout
7420
7421 \begin_layout Standard
7422 Before you submit your paper you must export the LyX document as a LaTeX
7423  file (
7424 \family sans
7425 \bar under
7426 F
7427 \bar default
7428 ile\SpecialChar \menuseparator
7429
7430 \bar under
7431 E
7432 \bar default
7433 xport\SpecialChar \menuseparator
7434
7435 \bar under
7436 L
7437 \bar default
7438 ateX
7439 \family default
7440 ), then make the following changes to the resulting 
7441 \family typewriter
7442 .tex
7443 \family default
7444  file.
7445 \end_layout
7446
7447 \begin_layout Enumerate
7448 Remove the comment lines before the 
7449 \family typewriter
7450
7451 \backslash
7452 documentclass
7453 \family default
7454  command.
7455 \end_layout
7456
7457 \begin_layout Enumerate
7458 Remove everything between (and including) the 
7459 \family typewriter
7460
7461 \backslash
7462 makeatletter
7463 \family default
7464  and 
7465 \family typewriter
7466
7467 \backslash
7468 makeatother
7469 \family default
7470  commands, except for any commands you specifically put into the LaTeX preamble.
7471 \end_layout
7472
7473 \begin_layout Standard
7474 The modified 
7475 \family typewriter
7476 .tex
7477 \family default
7478  file should be saved and processed through LaTeX as many times as necessary.
7479  You may also want to check the resulting 
7480 \family typewriter
7481 .dvi
7482 \family default
7483  document.
7484 \end_layout
7485
7486 \begin_layout Subsection
7487 Use of ERT
7488 \end_layout
7489
7490 \begin_layout Standard
7491 The use of ERT is optional, and is reduced to three commands, which affect
7492  the look of the page.
7493  If you started writing your paper by using the 
7494 \family typewriter
7495 ijmpd.lyx
7496 \family default
7497  template, the ERT needed is already in its place; you usually don't need
7498  to delete it.
7499  You may only change the first ERT to specify the information printed to
7500  the top of odd and even pages (authors' names and short paper's title,
7501  respectively).
7502  This ERT must have the form 
7503 \family typewriter
7504
7505 \backslash
7506 markboth{Authors' Names}{Short Paper's Title}
7507 \family default
7508 .
7509 \end_layout
7510
7511 \begin_layout Section
7512 Kluwer
7513 \end_layout
7514
7515 \begin_layout Standard
7516 by 
7517 \noun on
7518 Panayotis Papasotiriou
7519 \end_layout
7520
7521 \begin_layout Subsection
7522 Overview
7523 \end_layout
7524
7525 \begin_layout Standard
7526 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
7527  that facilitates electronic manuscript submission to the journals they
7528  publish.
7529  Most known of them (at least in my domain of interest) are 
7530 \emph on
7531 Astrophysics and Space Science
7532 \emph default
7533  and 
7534 \emph on
7535 Solar Physics
7536 \emph default
7537 , but there are many others (see a complete list at 
7538 \begin_inset LatexCommand \url{http://www.wkap.nl/jrnllist.htm/JRNLHOME}
7539
7540 \end_inset
7541
7542 ).
7543  The Kluwer package may be downloaded from the site 
7544 \begin_inset LatexCommand \url{http://www.wkap.nl/kaphtml.htm/STYLEFILES}
7545
7546 \end_inset
7547
7548 .
7549  A complete user guide is contained in that package (but it can also be
7550  downloaded separately).
7551 \end_layout
7552
7553 \begin_layout Standard
7554 LyX supports many features of the package but not everything.
7555  However, the ERT needed is reduced to some 
7556 \begin_inset Quotes eld
7557 \end_inset
7558
7559 peculiar
7560 \begin_inset Quotes erd
7561 \end_inset
7562
7563  commands of the package (see\InsetSpace ~
7564
7565 \begin_inset LatexCommand \ref{subsec:kluwer_peculiarities}
7566
7567 \end_inset
7568
7569 ).
7570  I have recently used LyX to write an article submitted to the 
7571 \emph on
7572 Astrophysics and Space Science
7573 \emph default
7574  without any problem.
7575 \end_layout
7576
7577 \begin_layout Subsection
7578 Writing a paper
7579 \end_layout
7580
7581 \begin_layout Standard
7582 The easiest way to write a paper is to start with the Kluwer template file.
7583  Click on 
7584 \family sans
7585 File\SpecialChar \menuseparator
7586 New from 
7587 \bar under
7588 T
7589 \bar default
7590 emplate
7591 \family default
7592 , then choose the 
7593 \family typewriter
7594 kluwer.lyx
7595 \family default
7596  template.
7597  This will give an (almost) empty document that includes the most common
7598  fields found in a manuscript and a short description of their use.
7599  As in most templates, simply overwrite the existing text (including the
7600  brackets, 
7601 \family typewriter
7602 <>
7603 \family default
7604 ) with the correct information.
7605 \end_layout
7606
7607 \begin_layout Subsection
7608 Preparing a paper for submission
7609 \end_layout
7610
7611 \begin_layout Standard
7612 As in the AASTeX package, before you submit your paper to a journal you
7613  must 
7614 \begin_inset Quotes eld
7615 \end_inset
7616
7617 postprocess
7618 \begin_inset Quotes erd
7619 \end_inset
7620
7621  it as follows.
7622 \end_layout
7623
7624 \begin_layout Enumerate
7625 Export your paper as a LaTeX file.
7626  To do this, click on 
7627 \family sans
7628 \bar under
7629 F
7630 \bar default
7631 ile\SpecialChar \menuseparator
7632
7633 \bar under
7634 E
7635 \bar default
7636 xport\SpecialChar \menuseparator
7637
7638 \bar under
7639 L
7640 \bar default
7641 ateX
7642 \family default
7643 .
7644  
7645 \end_layout
7646
7647 \begin_layout Enumerate
7648 Edit the resulting 
7649 \family typewriter
7650 .tex
7651 \family default
7652  file with a text editor and make the following changes
7653 \end_layout
7654
7655 \begin_deeper
7656 \begin_layout Enumerate
7657 remove the comment lines before the 
7658 \family typewriter
7659
7660 \backslash
7661 documentclass
7662 \family default
7663  command,
7664 \end_layout
7665
7666 \begin_layout Enumerate
7667 remove everything between (and including) the 
7668 \family typewriter
7669
7670 \backslash
7671 makeatletter
7672 \family default
7673  and 
7674 \family typewriter
7675
7676 \backslash
7677 makeatother
7678 \family default
7679  commands, except for any commands you specifically put into the LaTeX preamble.
7680 \end_layout
7681
7682 \begin_layout Standard
7683 Save the resulting 
7684 \family typewriter
7685 .tex
7686 \family default
7687  file.
7688 \end_layout
7689
7690 \end_deeper
7691 \begin_layout Enumerate
7692 Run the 
7693 \family typewriter
7694 .tex
7695 \family default
7696  file through LaTeX as many times as necessary (usually up to three).
7697 \end_layout
7698
7699 \begin_layout Enumerate
7700 View the resulting 
7701 \family typewriter
7702 .dvi
7703 \family default
7704  document using, e.g., 
7705 \family sans
7706 xdvi
7707 \family default
7708 , and check if everything is ok (it should, if you didn't make any mistake).
7709 \end_layout
7710
7711 \begin_layout Subsection
7712 \begin_inset Quotes eld
7713 \end_inset
7714
7715 Peculiarities
7716 \begin_inset Quotes erd
7717 \end_inset
7718
7719  of the Kluwer package
7720 \begin_inset LatexCommand \label{subsec:kluwer_peculiarities}
7721
7722 \end_inset
7723
7724
7725 \end_layout
7726
7727 \begin_layout Standard
7728 The Kluwer package has the following 
7729 \begin_inset Quotes eld
7730 \end_inset
7731
7732 peculiarities
7733 \begin_inset Quotes erd
7734 \end_inset
7735
7736 .
7737 \end_layout
7738
7739 \begin_layout Enumerate
7740 It is possible to write multiple articles in the same LaTeX file
7741 \begin_inset Foot
7742 status collapsed
7743
7744 \begin_layout Standard
7745 I can't imagine any good reason to do this.
7746 \end_layout
7747
7748 \end_inset
7749
7750 .
7751  Each article must be included in the environment 
7752 \begin_inset Quotes eld
7753 \end_inset
7754
7755 article
7756 \begin_inset Quotes erd
7757 \end_inset
7758
7759 .
7760  Unfortunately, this environment cannot be omitted, even if you write just
7761  one article.
7762  Therefore, each article starts with the command 
7763 \family typewriter
7764
7765 \backslash
7766 begin{article}
7767 \family default
7768  and, obviously, ends with the command 
7769 \family typewriter
7770
7771 \backslash
7772 end{article}
7773 \family default
7774 .
7775  Although this can be implemented in LyX, I didn't included it, since it
7776  looks ugly and can confuse the novice user.
7777  Therefore, you need to enter them directly and mark them as LaTeX code
7778  (the well-known 
7779 \begin_inset Quotes eld
7780 \end_inset
7781
7782 ERT
7783 \begin_inset Quotes erd
7784 \end_inset
7785
7786 ).
7787 \end_layout
7788
7789 \begin_layout Enumerate
7790 Information given at the beginning of the article (i.e., title, subtitle,
7791  author, institution, running title, running author, abstract and keywords)
7792  must be included in an environment called 
7793 \begin_inset Quotes eld
7794 \end_inset
7795
7796 opening
7797 \begin_inset Quotes erd
7798 \end_inset
7799
7800 .
7801  This is not implemented in LyX, so you must enter title, subtitle etc.
7802  between two ERT lines (
7803 \family typewriter
7804
7805 \backslash
7806 begin{opening}
7807 \family default
7808  and 
7809 \family typewriter
7810
7811 \backslash
7812 end{opening}
7813 \family default
7814 ).
7815 \end_layout
7816
7817 \begin_layout Enumerate
7818 According to the user manual, the label of each bibliography item must be
7819  written as 
7820 \family typewriter
7821
7822 \backslash
7823 protect
7824 \backslash
7825 citeauthoryear{
7826 \family default
7827 \emph on
7828 author(s)
7829 \family typewriter
7830 \emph default
7831 }{
7832 \family default
7833 \emph on
7834 year
7835 \family typewriter
7836 \emph default
7837 }
7838 \family default
7839 .
7840 \end_layout
7841
7842 \begin_layout Standard
7843 The 
7844 \family typewriter
7845 kluwer.lyx
7846 \family default
7847  template takes care of all these 
7848 \begin_inset Quotes eld
7849 \end_inset
7850
7851 peculiarities
7852 \begin_inset Quotes erd
7853 \end_inset
7854
7855 .
7856  If you start a new paper using this template you don't need to do anything
7857  special.
7858  Just 
7859 \end_layout
7860
7861 \begin_layout Enumerate
7862 don't delete the ERT included in the template, and
7863 \end_layout
7864
7865 \begin_layout Enumerate
7866 copy the example bibliography item included in the template and modify it
7867  as necessary to enter new bibliography items.
7868 \end_layout
7869
7870 \begin_layout Section
7871 Koma-Script
7872 \end_layout
7873
7874 \begin_layout Standard
7875 by 
7876 \noun on
7877 Bernd Rellermeyer
7878 \end_layout
7879
7880 \begin_layout Subsection
7881 Overview
7882 \end_layout
7883
7884 \begin_layout Standard
7885 The LyX document classes
7886 \emph on
7887  article (koma-script)
7888 \emph default
7889
7890 \emph on
7891 report (koma-script)
7892 \emph default
7893
7894 \emph on
7895 book
7896 \emph default
7897  
7898 \emph on
7899 (koma-script)
7900 \emph default
7901 , and 
7902 \emph on
7903 letter
7904 \emph default
7905  
7906 \emph on
7907 (koma-script)
7908 \emph default
7909  correspond to the LaTeX document classes 
7910 \family typewriter
7911 scrartcl.cls
7912 \family default
7913
7914 \family typewriter
7915 scrreprt.cls
7916 \family default
7917
7918 \family typewriter
7919 scrbook.cls
7920 \family default
7921 , and 
7922 \family typewriter
7923 scrlettr.cls
7924 \family default
7925 , resp.
7926  of the Koma-Script family.
7927  They are replacements for the standard document classes 
7928 \family typewriter
7929 article.cls
7930 \family default
7931
7932 \family typewriter
7933 report.cls
7934 \family default
7935
7936 \family typewriter
7937 book.cls
7938 \family default
7939  and 
7940 \family typewriter
7941 letter.cls
7942 \family default
7943 , resp., and fit better to European typography conventions in a number of
7944  points.
7945 \end_layout
7946
7947 \begin_layout Itemize
7948 Standard character size is 11pt in 
7949 \emph on
7950 article (koma-script)
7951 \emph default
7952
7953 \emph on
7954 report (koma-script)
7955 \emph default
7956 , and 
7957 \emph on
7958 book (koma-script)
7959 \emph default
7960 , and 12pt in 
7961 \emph on
7962 letter (koma-script)
7963 \emph default
7964 .
7965 \end_layout
7966
7967 \begin_layout Itemize
7968 Headings, labels of the description environment, and a number of elements
7969  of the 
7970 \emph on
7971 letter (koma-script) 
7972 \emph default
7973 document class are set in a bold sans serif font.
7974 \begin_inset Foot
7975 status collapsed
7976
7977 \begin_layout Standard
7978 There is a big difference between the bold sans serif old cm fonts and new
7979  ec fonts, especially in the appearance of headings.
7980  In comparison, the ec bold sans serif fonts look a bit thin.
7981  Here the LaTeX package 
7982 \family typewriter
7983 cmsd.sty by 
7984 \family default
7985 \shape smallcaps
7986 Walter Schmidt
7987 \shape default
7988  helps to produce the 
7989 \begin_inset Quotes eld
7990 \end_inset
7991
7992 usual
7993 \begin_inset Quotes erd
7994 \end_inset
7995
7996  appearance when using the ec fonts.
7997 \end_layout
7998
7999 \end_inset
8000
8001  The numbering of chapter headings is made in the same way as the numbering
8002  of section headings, that is without the extra line 
8003 \begin_inset Quotes eld
8004 \end_inset
8005
8006 Chapter\SpecialChar \ldots{}
8007
8008 \begin_inset Quotes erd
8009 \end_inset
8010
8011 .
8012  In addition, the appearance of the headings can be modified by using a
8013  number of options (in LyX to be entered in the field 
8014 \family sans
8015 E
8016 \bar under
8017 x
8018 \bar default
8019 tra\InsetSpace ~
8020 Options
8021 \family default
8022  of the dialog 
8023 \family sans
8024 \bar under
8025 L
8026 \bar default
8027 ayout\SpecialChar \menuseparator
8028
8029 \bar under
8030 D
8031 \bar default
8032 ocument
8033 \family default
8034 ).
8035  A detailed German description of these options can be found in the Koma-Script
8036  documentation 
8037 \emph on
8038 scrguide
8039 \emph default
8040 .
8041 \end_layout
8042
8043 \begin_layout Itemize
8044 The main means in the Koma-Script document classes to design the type area
8045  are the options 
8046 \family sans
8047 BCOR
8048 \family default
8049  and 
8050 \family sans
8051 DIV
8052 \family default
8053  (in LyX to be entered in the extra class options field in the dialog 
8054 \family sans
8055 \bar under
8056 D
8057 \bar default
8058 ocument\SpecialChar \menuseparator
8059
8060 \bar under
8061 S
8062 \bar default
8063 ettings
8064 \family default
8065 ).
8066  They make a clearer modification of page margins possible as do the options
8067  of the dialog 
8068 \family sans
8069 \bar under
8070 D
8071 \bar default
8072 ocument\SpecialChar \menuseparator
8073
8074 \bar under
8075 S
8076 \bar default
8077 ettings
8078 \family default
8079 .
8080  A detailed German description of these and other type area options can
8081  be found in the Koma-Script documentation 
8082 \emph on
8083 scrguide
8084 \emph default
8085 .
8086 \end_layout
8087
8088 \begin_layout Itemize
8089 The LaTeX document classes of the Koma-Script family define a number of
8090  additional commands.
8091  Those part of it which makes sense in LyX is implemented in corresponding
8092  paragraph types.
8093 \end_layout
8094
8095 \begin_layout Standard
8096 A detailed German description of the LaTeX document classes of the Koma-Script
8097  family can be found in the Koma-Script documentation 
8098 \emph on
8099 scrguide
8100 \emph default
8101 .
8102 \begin_inset Foot
8103 status collapsed
8104
8105 \begin_layout Standard
8106 There is an English translation 
8107 \emph on
8108 screnggu
8109 \emph default
8110 , but it is not a complete one.
8111 \end_layout
8112
8113 \end_inset
8114
8115  The following sections describe only those aspects, which are relevant
8116  in LyX.
8117 \end_layout
8118
8119 \begin_layout Subsection
8120 article (koma-script), report (koma-script), and book (koma-script)
8121 \end_layout
8122
8123 \begin_layout Standard
8124 The document classes 
8125 \emph on
8126 article (koma-script)
8127 \emph default
8128
8129 \emph on
8130 report (koma-script)
8131 \emph default
8132 , and 
8133 \emph on
8134 book
8135 \emph default
8136  
8137 \emph on
8138 (koma-script)
8139 \emph default
8140  are implemented in the layout files 
8141 \family typewriter
8142 scrartcl.layout
8143 \family default
8144
8145 \family typewriter
8146 scrreprt.layout
8147 \family default
8148 , and 
8149 \family typewriter
8150 scrbook.layout
8151 \family default
8152 , resp.
8153  They contain all the paragraph types of the corresponding standard document
8154  classes 
8155 \emph on
8156 article
8157 \emph default
8158
8159 \emph on
8160 report
8161 \emph default
8162 , and 
8163 \emph on
8164 book
8165 \emph default
8166 , resp., partly modified, with the exception of the LyX specific 
8167 \family sans
8168 List
8169 \family default
8170 -type, which is replaced by the new 
8171 \family sans
8172 Labeling
8173 \family default
8174 -type having the same functionality.
8175  Beside the 
8176 \family sans
8177 Labeling
8178 \family default
8179 -Type there is a number of new paragraph types added.
8180  They are 
8181 \emph on
8182 not
8183 \emph default
8184  part of 
8185 \emph on
8186 letter (koma-script)
8187 \emph default
8188 .
8189 \end_layout
8190
8191 \begin_layout Itemize
8192
8193 \family sans
8194 Addpart, Addchap
8195 \family default
8196
8197 \family sans
8198 Addsec
8199 \family default
8200 : are equivalents to 
8201 \family sans
8202 Part*, Chapter*
8203 \family default
8204  and 
8205 \family sans
8206 Section*
8207 \family default
8208 , resp., additionally inserting an entry in the table of contents.
8209  
8210 \family sans
8211 Addpart 
8212 \family default
8213 and
8214 \family sans
8215  Addchap
8216 \family default
8217  are not contained in 
8218 \emph on
8219 article (koma-script)
8220 \emph default
8221 .
8222 \end_layout
8223
8224 \begin_layout Itemize
8225
8226 \family sans
8227 Addchap*
8228 \family default
8229
8230 \family sans
8231 Addsec*
8232 \family default
8233 : behave exactly as 
8234 \family sans
8235 Addchap
8236 \family default
8237  and 
8238 \family sans
8239 Addsec
8240 \family default
8241 , resp., additionally clearing running heads.
8242
8243 \family sans
8244  Addchap*
8245 \family default
8246  is not contained in 
8247 \emph on
8248 article (koma-script)
8249 \emph default
8250 .
8251 \begin_inset Foot
8252 status collapsed
8253
8254 \begin_layout Standard
8255 There is also an 
8256 \family typewriter
8257
8258 \backslash
8259 addpart*
8260 \family default
8261  command in 
8262 \emph on
8263 book (koma-script)
8264 \emph default
8265  and in 
8266 \emph on
8267 report (koma-script)
8268 \emph default
8269 , but since this is identical to 
8270 \family sans
8271 Part*
8272 \family default
8273 , is has not been implemented in LyX.
8274 \end_layout
8275
8276 \end_inset
8277
8278
8279 \end_layout
8280
8281 \begin_layout Itemize
8282
8283 \family sans
8284 Minisec
8285 \family default
8286 : generates a heading directly above the following paragraph in the standard
8287  character size without affecting the structure of the document.
8288 \end_layout
8289
8290 \begin_layout Itemize
8291
8292 \family sans
8293 Captionabove
8294 \family default
8295  and 
8296 \family sans
8297 Captionbelow 
8298 \family default
8299 are special captions which respect the different space settings needed for
8300  captions placed above or below an element (if you follow strict typographic
8301  rules, you might want to place table captions always above the table).
8302  You can also use the class option 
8303 \family typewriter
8304 tablecaptionsabove
8305 \family default
8306 , which will switch 
8307 \family sans
8308 caption
8309 \family default
8310  to 
8311 \family sans
8312 captionabove
8313 \family default
8314  for tables and 
8315 \family sans
8316 captionbelow
8317 \family default
8318  for figures.
8319  You need at least Koma-Script version 2.8q to use this.
8320 \end_layout
8321
8322 \begin_layout Itemize
8323
8324 \family sans
8325 Dictum
8326 \family default
8327 : can be used to set a bonmot, e.
8328 \begin_inset ERT
8329 status collapsed
8330
8331 \begin_layout Standard
8332
8333 \backslash
8334 ,
8335 \end_layout
8336
8337 \end_inset
8338
8339 g.
8340 \begin_inset ERT
8341 status collapsed
8342
8343 \begin_layout Standard
8344
8345 \backslash
8346  
8347 \end_layout
8348
8349 \end_inset
8350
8351 at the beginning of a chapter.
8352  If you use the optional argument (
8353 \family sans
8354 \bar under
8355 I
8356 \bar default
8357 nsert\SpecialChar \menuseparator
8358 Short\InsetSpace ~
8359 Title
8360 \family default
8361 ), you can insert the dictum's author there.
8362  Dictum and author are separated by a line.
8363  You need at least Koma-Script version 2.8q to use this.
8364  
8365 \family sans
8366 Dictum
8367 \family default
8368  is not contained in 
8369 \emph on
8370 article (koma-script)
8371 \emph default
8372 .
8373 \end_layout
8374
8375 \begin_layout Standard
8376 The following types, together with the standard types 
8377 \family sans
8378 Title
8379 \family default
8380
8381 \family sans
8382 Author
8383 \family default
8384 , and 
8385 \family sans
8386 Date
8387 \family default
8388 , form the title area of the document.
8389  They must be entered ahead of the first 
8390 \begin_inset Quotes eld
8391 \end_inset
8392
8393 ordinary
8394 \begin_inset Quotes erd
8395 \end_inset
8396
8397  paragraph.
8398 \begin_inset Foot
8399 status collapsed
8400
8401 \begin_layout Standard
8402 The corresponding LaTeX commands must appear before the 
8403 \family typewriter
8404
8405 \backslash
8406 maketitle
8407 \family default
8408  command.
8409 \end_layout
8410
8411 \end_inset
8412
8413  When such a type is used more than once, the latter usage overwrites the
8414  former one, that means, for every type only the latest usage is valid.
8415  The order of the different types however has, like 
8416 \family sans
8417 Title
8418 \family default
8419
8420 \family sans
8421 Author
8422 \family default
8423 , and 
8424 \family sans
8425 Date
8426 \family default
8427 , no effect on the appearance of the produced document.
8428 \end_layout
8429
8430 \begin_layout Itemize
8431
8432 \family sans
8433 Subject
8434 \family default
8435 : produces a centered paragraph above the ordinary title (
8436 \family sans
8437 Title
8438 \family default
8439
8440 \family sans
8441 Author
8442 \family default
8443
8444 \family sans
8445 Date
8446 \family default
8447 ) for the subject of the document.
8448 \end_layout
8449
8450 \begin_layout Itemize
8451
8452 \family sans
8453 Publishers
8454 \family default
8455 : produces a centered paragraph below the ordinary title (
8456 \family sans
8457 Title
8458 \family default
8459
8460 \family sans
8461 Author
8462 \family default
8463
8464 \family sans
8465 Date
8466 \family default
8467 ) for the publishers' name.
8468 \end_layout
8469
8470 \begin_layout Itemize
8471
8472 \family sans
8473 Dedication
8474 \family default
8475 : in 
8476 \emph on
8477 report (koma-script)
8478 \emph default
8479  and 
8480 \emph on
8481 book (koma-script)
8482 \emph default
8483  produces a centered paragraph on its own page behind the title page, or
8484  in 
8485 \emph on
8486 article (koma-script)
8487 \emph default
8488  produces a centered paragraph below the ordinary title (
8489 \family sans
8490 Title
8491 \family default
8492
8493 \family sans
8494 Author
8495 \family default
8496
8497 \family sans
8498 Date
8499 \family default
8500
8501 \family sans
8502 Publishers
8503 \family default
8504 ) for a dedication.
8505 \end_layout
8506
8507 \begin_layout Itemize
8508
8509 \family sans
8510 Titlehead
8511 \family default
8512 : produces a left aligned paragraph above the ordinary title (
8513 \family sans
8514 Title
8515 \family default
8516
8517 \family sans
8518 Author
8519 \family default
8520
8521 \family sans
8522 Date
8523 \family default
8524
8525 \family sans
8526 Subject
8527 \family default
8528 ) for a document`s head.
8529 \end_layout
8530
8531 \begin_layout Itemize
8532
8533 \family sans
8534 Uppertitleback
8535 \family default
8536 : produces in a double-sided print in 
8537 \emph on
8538 report (koma-script)
8539 \emph default
8540  and 
8541 \emph on
8542 book (koma-script)
8543 \emph default
8544  a left-aligned paragraph at the top of the title page`s back or has no
8545  effect in a single-sided print or in 
8546 \emph on
8547 article (koma-script)
8548 \emph default
8549 .
8550 \end_layout
8551
8552 \begin_layout Itemize
8553
8554 \family sans
8555 Lowertitleback
8556 \family default
8557 : produces in a double-sided print in 
8558 \emph on
8559 report (koma-script)
8560 \emph default
8561  and 
8562 \emph on
8563 book (koma-script)
8564 \emph default
8565  a left-aligned paragraph at the bottom of the title page`s back or has
8566  no effect in a single-sided print or in 
8567 \emph on
8568 article (koma-script)
8569 \emph default
8570 .
8571 \end_layout
8572
8573 \begin_layout Itemize
8574
8575 \family sans
8576 Extratitle
8577 \family default
8578 : produces a special 
8579 \begin_inset Quotes eld
8580 \end_inset
8581
8582 dirty
8583 \begin_inset Quotes erd
8584 \end_inset
8585
8586  page ahead of the actual document containing a paragraph without special
8587  formatting.
8588 \end_layout
8589
8590 \begin_layout Standard
8591 The layout files for the document classes 
8592 \emph on
8593 article (koma-script)
8594 \emph default
8595
8596 \emph on
8597 report (koma-script)
8598 \emph default
8599 , and 
8600 \emph on
8601 book (koma-script)
8602 \emph default
8603  do include the file 
8604 \family typewriter
8605 scrmacros.inc
8606 \family default
8607 .
8608  This is thought of as a place to define your own types.
8609  Copy s
8610 \family typewriter
8611 crmacros.inc
8612 \family default
8613  in your personal layout directory and edit the file!
8614 \end_layout
8615
8616 \begin_layout Subsection
8617 letter (koma-script)
8618 \end_layout
8619
8620 \begin_layout Standard
8621 \begin_inset ERT
8622 status inlined
8623
8624 \begin_layout Standard
8625
8626 \backslash
8627 begin{sloppypar}
8628 \end_layout
8629
8630 \end_inset
8631
8632
8633 \end_layout
8634
8635 \begin_layout Standard
8636 \noindent
8637 The document class 
8638 \emph on
8639 letter (koma-script)
8640 \emph default
8641  is implemented in the layout file 
8642 \family typewriter
8643 scrlettr.layout
8644 \family default
8645 .
8646  It contains all the paragraph types of the corresponding standard document
8647  class 
8648 \emph on
8649 letter
8650 \emph default
8651 , partly modified, with the exception of the LyX specific types 
8652 \family sans
8653 LyX-Code
8654 \family default
8655  and 
8656 \family sans
8657 Comment
8658 \family default
8659  and the 
8660 \family sans
8661 List
8662 \family default
8663  type, which is replaced by the new 
8664 \family sans
8665 Labeling
8666 \family default
8667  type.
8668  In addition, it contains, in contrast to the standard document class, the
8669  standard types 
8670 \family sans
8671 LaTeX
8672 \family default
8673
8674 \family sans
8675 Quotation
8676 \family default
8677
8678 \family sans
8679 Quote
8680 \family default
8681 , and 
8682 \family sans
8683 Verse
8684 \family default
8685 .
8686  Furthermore, there are a number of new letter specific types.
8687 \end_layout
8688
8689 \begin_layout Standard
8690 \begin_inset ERT
8691 status inlined
8692
8693 \begin_layout Standard
8694
8695 \backslash
8696 end{sloppypar}
8697 \end_layout
8698
8699 \end_inset
8700
8701
8702 \end_layout
8703
8704 \begin_layout Standard
8705 The appearance of the letter produced by this document class can be controlled
8706  by a number of LaTeX commands, which you can put in the LaTeX preamble.
8707 \begin_inset Foot
8708 status collapsed
8709
8710 \begin_layout Standard
8711 For example, the standard appearance of the letter`s heading, consisting
8712  of name and address, is quite self-willed.
8713  An 
8714 \begin_inset Quotes eld
8715 \end_inset
8716
8717 ordinary
8718 \begin_inset Quotes erd
8719 \end_inset
8720
8721  heading is produced by the following LaTeX commands in the preamble:
8722 \end_layout
8723
8724 \begin_layout LyX-Code
8725
8726 \backslash
8727 firsthead{
8728 \backslash
8729 parbox[b]{
8730 \backslash
8731 textwidth}
8732 \end_layout
8733
8734 \begin_layout LyX-Code
8735   {
8736 \backslash
8737 ignorespaces 
8738 \backslash
8739 fromname
8740 \backslash
8741
8742 \backslash
8743  
8744 \backslash
8745 ignorespaces 
8746 \backslash
8747 fromaddress}} 
8748 \end_layout
8749
8750 \begin_layout LyX-Code
8751
8752 \backslash
8753 nexthead{
8754 \backslash
8755 parbox[b]{
8756 \backslash
8757 textwidth}
8758 \end_layout
8759
8760 \begin_layout LyX-Code
8761   {
8762 \backslash
8763 ignorespaces 
8764 \backslash
8765 fromname 
8766 \backslash
8767 hfill 
8768 \backslash
8769 ignorespaces 
8770 \backslash
8771 pagename
8772 \backslash
8773  
8774 \backslash
8775 thepage}}
8776 \end_layout
8777
8778 \end_inset
8779
8780  A detailed German description of such LaTeX commands can be found in the
8781  Koma-Script documentation 
8782 \emph on
8783 scrguide
8784 \emph default
8785 .
8786  With it, the letter's author can produce his personal letter layout.
8787 \end_layout
8788
8789 \begin_layout Standard
8790 The types 
8791 \family sans
8792 Letter 
8793 \family default
8794 and 
8795 \family sans
8796 Opening
8797 \family default
8798  define the beginning of the letter and must be used in every letter.
8799  To emphasize them in the LyX document class, they are marked with the letter
8800  
8801 \shape italic
8802 L
8803 \shape default
8804  or 
8805 \shape italic
8806 O
8807 \shape default
8808 , resp.
8809  in the left margin.
8810  It is possible to write any number of letters in one file.
8811  An 
8812 \family sans
8813 Opening
8814 \family default
8815  type produces a new letter using the same addressee and a 
8816 \family sans
8817 Letter
8818 \family default
8819  type produces a new addressee.
8820  The types 
8821 \family sans
8822 Closing
8823 \family default
8824
8825 \family sans
8826 PS
8827 \family default
8828
8829 \family sans
8830 CC
8831 \family default
8832 , and 
8833 \family sans
8834 Encl
8835 \family default
8836  are ordinary paragraph types and can also be used several times in one
8837  and the same letter.
8838 \end_layout
8839
8840 \begin_layout Itemize
8841
8842 \family sans
8843 Letter
8844 \family default
8845 : produces a paragraph for the addressee and implicitly defines the beginning
8846  of the letter.
8847 \end_layout
8848
8849 \begin_layout Itemize
8850
8851 \family sans
8852 Opening
8853 \family default
8854 : produces a paragraph for the form of address and implicitly produces a
8855  new letter.
8856 \end_layout
8857
8858 \begin_layout Itemize
8859
8860 \family sans
8861 Closing
8862 \family default
8863 : produces a paragraph for a close.
8864 \end_layout
8865
8866 \begin_layout Itemize
8867
8868 \family sans
8869 PS
8870 \family default
8871 : produces a paragraph for a postscript.
8872 \end_layout
8873
8874 \begin_layout Itemize
8875
8876 \family sans
8877 CC
8878 \family default
8879 : produces a paragraph for a distribution list.
8880 \end_layout
8881
8882 \begin_layout Itemize
8883
8884 \family sans
8885 Encl
8886 \family default
8887 : produces a paragraph for enclosures.
8888 \end_layout
8889
8890 \begin_layout Standard
8891 The types 
8892 \family sans
8893 Name
8894 \family default
8895
8896 \family sans
8897 Signature
8898 \family default
8899
8900 \family sans
8901 Address
8902 \family default
8903 ,
8904 \family sans
8905  Telephone
8906 \family default
8907
8908 \family sans
8909 Place
8910 \family default
8911
8912 \family sans
8913 Backaddress
8914 \family default
8915
8916 \family sans
8917 Specialmail
8918 \family default
8919
8920 \family sans
8921 Location
8922 \family default
8923
8924 \family sans
8925 Title
8926 \family default
8927 , and 
8928 \family sans
8929 Subject
8930 \family default
8931  are input types provided with a label to enter information, which will
8932  be processed by the document class.
8933 \begin_inset Foot
8934 status collapsed
8935
8936 \begin_layout Standard
8937 It could be seen as a matter of inconsequence, that the types 
8938 \family sans
8939 Letter
8940 \family default
8941  and 
8942 \family sans
8943 Opening
8944 \family default
8945  described above are not such input types as well.
8946  Because of the special meaning of those types, however, I have implemented
8947  them as ordinary paragraph types with a one letter mark in the left margin.
8948  Moreover, it would affect my feeling of symmetry, if the 
8949 \family sans
8950 Opening
8951 \family default
8952  type and the 
8953 \family sans
8954 Closing
8955 \family default
8956  type had such a serious different appearance.
8957 \end_layout
8958
8959 \end_inset
8960
8961  The types must be used ahead of the corresponding 
8962 \family sans
8963 Opening
8964 \family default
8965  type.
8966 \end_layout
8967
8968 \begin_layout Standard
8969 An implementation of these types in a WYSIWYG fashion does not seem to make
8970  sense, because the real appearance of the produced letter does not only
8971  depend on the usage of the particular type, but also on other factors.
8972  For example, a signature entered in the 
8973 \family sans
8974 Signature
8975 \family default
8976  type will in the standard behavior appear in the produced letter only,
8977  when in the same letter also a 
8978 \family sans
8979 Closing
8980 \family default
8981  type is used.
8982  The entered value of the 
8983 \family sans
8984 Telephone
8985 \family default
8986  type will in the standard behavior not appear in the produced letter at
8987  all.
8988  The possibility to design the letter`s heading freely is already indicated
8989  in a footnote above.
8990 \end_layout
8991
8992 \begin_layout Standard
8993 The input types can also be used as empty paragraphs.
8994  This makes sense e.\InsetSpace ~
8995 g.
8996  for the 
8997 \family sans
8998 Signature
8999 \family default
9000  type.
9001  If the 
9002 \family sans
9003 Signature
9004 \family default
9005  type is not used at all, in the standard behavior the value of the 
9006 \family sans
9007 Name
9008 \family default
9009  type is used as signature, whereas if an empty 
9010 \family sans
9011 Signature
9012 \family default
9013  type is used, no signature value is defined.
9014 \end_layout
9015
9016 \begin_layout Standard
9017 By using the input types it is possible to write a letter template, containing
9018  filled input types with your personal dates (name, address, etc.) and empty
9019  input types for other dates you want to enter.
9020 \end_layout
9021
9022 \begin_layout Itemize
9023
9024 \family sans
9025 Name
9026 \family default
9027 : sender's name, in the standard behavior appears as a centered paragraph
9028  in small caps in the letter`s heading.
9029 \end_layout
9030
9031 \begin_layout Itemize
9032
9033 \family sans
9034 Signature
9035 \family default
9036 : sender's signature, in the standard behavior appears below the 
9037 \family sans
9038 Closing
9039 \family default
9040  type.
9041  If no 
9042 \family sans
9043 Signature
9044 \family default
9045  type is used, the value of the 
9046 \family sans
9047 Name
9048 \family default
9049  type appears instead.
9050 \end_layout
9051
9052 \begin_layout Itemize
9053
9054 \family sans
9055 Address
9056 \family default
9057 : sender's address, in the standard behavior appears in a centered paragraph
9058  in the letter`s heading below the sender's name.
9059 \end_layout
9060
9061 \begin_layout Itemize
9062
9063 \family sans
9064 Telephone
9065 \family default
9066 : sender's telephone number, in the standard behavior only sets the LaTeX
9067  variable 
9068 \family typewriter
9069
9070 \backslash
9071 telephonenum
9072 \family default
9073 .
9074 \end_layout
9075
9076 \begin_layout Itemize
9077
9078 \family sans
9079 Place
9080 \family default
9081 : place of the letter`s making.
9082 \end_layout
9083
9084 \begin_layout Itemize
9085
9086 \family sans
9087 Date
9088 \family default
9089 : date of the letter`s making.
9090  
9091 \family sans
9092 Place
9093 \family default
9094  and 
9095 \family sans
9096 Date
9097 \family default
9098 , in the standard behavior, produce the place and the date in a right-aligned
9099  line below the addressee's field.
9100  If an empty 
9101 \family sans
9102 Date
9103 \family default
9104  type is used, neither place nor date appear, independent of the value of
9105  the 
9106 \family sans
9107 Place
9108 \family default
9109  type.
9110  If no 
9111 \family sans
9112 Date
9113 \family default
9114  type is used, the date of the letter `s production is used.
9115 \end_layout
9116
9117 \begin_layout Itemize
9118
9119 \family sans
9120 Backaddress
9121 \family default
9122 : sender`s back address, in the standard behavior appears above the addressee's
9123  field in a small sans serif font.
9124 \end_layout
9125
9126 \begin_layout Itemize
9127
9128 \family sans
9129 Specialmail
9130 \family default
9131 : special mail information, in the standard behavior appears underlined
9132  above the addressee's field below the back address.
9133 \end_layout
9134
9135 \begin_layout Itemize
9136
9137 \family sans
9138 Location
9139 \family default
9140 : additional information, in the standard behavior appears on right side
9141  below the addressee`s field.
9142 \end_layout
9143
9144 \begin_layout Itemize
9145
9146 \family sans
9147 Title
9148 \family default
9149 : the letter's title, in the standard behavior appears in a big, bold, sans
9150  serif font above the subject.
9151 \end_layout
9152
9153 \begin_layout Itemize
9154
9155 \family sans
9156 Subject
9157 \family default
9158 : the letter's subject, in the standard behavior appears in a bold font
9159  above the 
9160 \family sans
9161 Opening
9162 \family default
9163  paragraph.
9164 \end_layout
9165
9166 \begin_layout Standard
9167 The types 
9168 \family sans
9169 Yourref
9170 \family default
9171
9172 \family sans
9173 Yourmail
9174 \family default
9175
9176 \family sans
9177 Myref
9178 \family default
9179
9180 \family sans
9181 Customer
9182 \family default
9183 , and 
9184 \family sans
9185 Invoice
9186 \family default
9187  produce a business letter like line above the 
9188 \family sans
9189 Title
9190 \family default
9191  line containing the fields 
9192 \begin_inset Quotes eld
9193 \end_inset
9194
9195 Your ref.
9196 \begin_inset Quotes erd
9197 \end_inset
9198
9199
9200 \begin_inset Quotes eld
9201 \end_inset
9202
9203 Your letter of
9204 \begin_inset Quotes erd
9205 \end_inset
9206
9207
9208 \begin_inset Quotes eld
9209 \end_inset
9210
9211 Our ref.
9212 \begin_inset Quotes erd
9213 \end_inset
9214
9215
9216 \begin_inset Quotes eld
9217 \end_inset
9218
9219 Customer no.
9220 \begin_inset Quotes erd
9221 \end_inset
9222
9223
9224 \begin_inset Quotes eld
9225 \end_inset
9226
9227 Invoice no.
9228 \begin_inset Quotes erd
9229 \end_inset
9230
9231 , and 
9232 \begin_inset Quotes eld
9233 \end_inset
9234
9235 Date
9236 \begin_inset Quotes erd
9237 \end_inset
9238
9239 .
9240  For the date field, the value of the 
9241 \family sans
9242 Date
9243 \family default
9244  type is used.
9245  If one of these 
9246 \begin_inset Quotes eld
9247 \end_inset
9248
9249 business letter types
9250 \begin_inset Quotes erd
9251 \end_inset
9252
9253  is used, the value of the 
9254 \family sans
9255 Place
9256 \family default
9257  type however does not appear, but only the LaTeX variable 
9258 \family typewriter
9259
9260 \backslash
9261 fromplace
9262 \family default
9263  is set.
9264  The ordinary output of place and date in a right-aligned line below the
9265  addressee`s field is suppressed.
9266  The types are implemented as input types provided with a label and must
9267  be used ahead of the corresponding 
9268 \family sans
9269 Opening
9270 \family default
9271  type.
9272 \end_layout
9273
9274 \begin_layout Itemize
9275
9276 \family sans
9277 Yourref
9278 \family default
9279 : Your ref.
9280 \end_layout
9281
9282 \begin_layout Itemize
9283
9284 \family sans
9285 Yourmail
9286 \family default
9287 : Your letter of.
9288 \end_layout
9289
9290 \begin_layout Itemize
9291
9292 \family sans
9293 Myref
9294 \family default
9295 : Our ref.
9296 \end_layout
9297
9298 \begin_layout Itemize
9299
9300 \family sans
9301 Customer
9302 \family default
9303 : Customer no.
9304 \end_layout
9305
9306 \begin_layout Itemize
9307
9308 \family sans
9309 Invoice
9310 \family default
9311 : Invoice no.
9312 \end_layout
9313
9314 \begin_layout Subsection
9315 The new letter class: letter (koma-script v.2)
9316 \end_layout
9317
9318 \begin_layout Standard
9319 by 
9320 \noun on
9321 Jürgen Spitzmüller
9322 \end_layout
9323
9324 \begin_layout Standard
9325 \begin_inset VSpace medskip
9326 \end_inset
9327
9328
9329 \end_layout
9330
9331 \begin_layout Standard
9332 \noindent
9333 Koma-Script version 2.8 has introduced a new letter class 
9334 \family typewriter
9335 scrlttr2
9336 \family default
9337  which superceeds the now unsupported 
9338 \family typewriter
9339 scrlettr
9340 \family default
9341 .
9342  It has --- on the LaTeX side --- a completely new interface and is not
9343  compatible with the old class.
9344  Therefore, LyX supports both, though it is recommended to use the new class.
9345 \end_layout
9346
9347 \begin_layout Standard
9348 This class covers the same functionality as 
9349 \emph on
9350 letter (koma-script),
9351 \emph default
9352  and a few more.
9353  The basic items are 
9354 \family sans
9355 Address
9356 \family default
9357  (receiver's address, same as 
9358 \family sans
9359 Letter
9360 \family default
9361  in the old layout), 
9362 \family sans
9363 Opening
9364 \family default
9365 , and 
9366 \family sans
9367 Closing
9368 \family default
9369 .
9370  
9371 \family sans
9372 NextAddress
9373 \family default
9374  will start a new letter (i.
9375 \begin_inset ERT
9376 status collapsed
9377
9378 \begin_layout Standard
9379
9380 \backslash
9381 ,
9382 \end_layout
9383
9384 \end_inset
9385
9386 e.
9387 \begin_inset ERT
9388 status collapsed
9389
9390 \begin_layout Standard
9391
9392 \backslash
9393  
9394 \end_layout
9395
9396 \end_inset
9397
9398 you can write several letters per document).
9399  New elements are sender's 
9400 \family sans
9401 E-Mail
9402 \family default
9403
9404 \family sans
9405 URL
9406 \family default
9407
9408 \family sans
9409 Fax
9410 \family default
9411
9412 \family sans
9413 Bank
9414 \family default
9415  and the possibility to use a 
9416 \family sans
9417 Logo
9418 \family default
9419  (via 
9420 \family sans
9421 \bar under
9422 I
9423 \bar default
9424 nsert\SpecialChar \menuseparator
9425
9426 \bar under
9427 G
9428 \bar default
9429 raphics
9430 \family default
9431 ) in the header.
9432 \end_layout
9433
9434 \begin_layout Standard
9435 The biggest improvement is, though, that the letter's layout is configurable
9436  at almost any needs.
9437  This can be done via the preamble or with a special style file (Letter
9438  Class Option, extension 
9439 \family typewriter
9440 *.lco
9441 \family default
9442 ), that will be read in as a class option.
9443 \begin_inset Foot
9444 status collapsed
9445
9446 \begin_layout Standard
9447 The KOMA package comes with some default 
9448 \family typewriter
9449 *.lco
9450 \family default
9451  files.
9452  There is, for instance, a 
9453 \family typewriter
9454 DIN.lco
9455 \family default
9456  file that follows german typesetting rules, or a 
9457 \family typewriter
9458 KOMAold.lco
9459 \family default
9460  that provides the default layout of the old 
9461 \family typewriter
9462 scrlettr
9463 \family default
9464  class.
9465  The latter can be loaded with the class option 
9466 \family typewriter
9467 KOMAold
9468 \family default
9469 , inserted via the 
9470 \family sans
9471 \bar under
9472 L
9473 \bar default
9474 ayout\SpecialChar \menuseparator
9475
9476 \bar under
9477 D
9478 \bar default
9479 ocument\SpecialChar \menuseparator
9480 Extra Options 
9481 \family default
9482 field.
9483 \end_layout
9484
9485 \end_inset
9486
9487  Have a look at the 
9488 \emph on
9489 koma-letter2
9490 \emph default
9491  template that is included in LyX for examples.
9492  A detailed description is to be found in the Koma-Script documentation
9493  (
9494 \emph on
9495 scrguide
9496 \emph default
9497 ).
9498 \end_layout
9499
9500 \begin_layout Subsection
9501 Problems
9502 \end_layout
9503
9504 \begin_layout Standard
9505 Visualizing the Koma-Script document classes in LyX, the LyX internals cause
9506  some problems.
9507 \end_layout
9508
9509 \begin_layout Itemize
9510 The chapter number of a 
9511 \family sans
9512 Chapter
9513 \family default
9514  type appears on a line of its own above the chapter heading instead of
9515  appearing in the same line ahead of it.
9516  The cause for that is the LyX internal behavior for the labeltype 
9517 \family sans
9518 Counter_Chapter
9519 \family default
9520  in the layout file.
9521 \end_layout
9522
9523 \begin_layout Itemize
9524 The headings of the types 
9525 \family sans
9526 Addchap
9527 \family default
9528  and 
9529 \family sans
9530 Addsec
9531 \family default
9532  are only put in the 
9533 \begin_inset Quotes eld
9534 \end_inset
9535
9536 true
9537 \begin_inset Quotes erd
9538 \end_inset
9539
9540  LaTeX table of contents, but not in the LyX table of contents (
9541 \family sans
9542 \bar under
9543 D
9544 \bar default
9545 ocument\SpecialChar \menuseparator
9546
9547 \bar under
9548 T
9549 \bar default
9550 able\InsetSpace ~
9551 of\InsetSpace ~
9552 Contents
9553 \family default
9554 ).
9555 \end_layout
9556
9557 \begin_layout Itemize
9558 The paragraphs in a 
9559 \emph on
9560 letter
9561 \emph default
9562  document class appear in a skip separation mode, not indented.
9563  This is the standard behavior, no special LaTeX commands are needed for
9564  that.
9565  But in the 
9566 \family sans
9567 \bar under
9568 D
9569 \bar default
9570 ocument\SpecialChar \menuseparator
9571
9572 \bar under
9573 S
9574 \bar default
9575 ettings
9576 \family default
9577  dialog the corresponding radio button indicates 
9578 \family sans
9579 \bar under
9580 I
9581 \bar default
9582 ndent
9583 \family default
9584 .
9585  A 
9586 \family sans
9587 S
9588 \bar under
9589 k
9590 \bar default
9591 ip
9592 \family default
9593  value always has the effect that extra LaTeX commands are inserted in the
9594  document to produce the gap, which is not what is wanted in this case.
9595 \end_layout
9596
9597 \begin_layout Section
9598 Springer Journals (
9599 \family sans
9600 svjour
9601 \family default
9602 )
9603 \end_layout
9604
9605 \begin_layout Standard
9606 by 
9607 \noun on
9608 Martin Vermeer
9609 \end_layout
9610
9611 \begin_layout Subsection
9612 Description
9613 \end_layout
9614
9615 \begin_layout Standard
9616 These are the layout files for some of the journal formats used by Springer
9617  Verlag and listed on 
9618 \begin_inset LatexCommand \url{http://www.springer.de/author/tex/help-journals.html}
9619
9620 \end_inset
9621
9622 , where you should also go to fetch the class files (yes, these are LaTeX2e
9623  now!).
9624  It is a modular system: the things common to all journals are implemented
9625  in 
9626 \family typewriter
9627 svjour.inc
9628 \family default
9629 , which journal-specific layout files (such as, e.g., 
9630 \family typewriter
9631 svjog.layout
9632 \family default
9633  for Journal of Geodesy) can include.
9634 \end_layout
9635
9636 \begin_layout Standard
9637 This means that implementing support for any other Springer journal on this
9638  list is as simple as writing your own 
9639 \family typewriter
9640 sv
9641 \family default
9642 <myjournal>
9643 \family typewriter
9644 .layout
9645 \family default
9646  file following the outline given in 
9647 \family typewriter
9648 svjog.layout
9649 \family default
9650 .
9651  
9652 \end_layout
9653
9654 \begin_layout Standard
9655 It is reasonably well tested only for the Journal of Geodesy.
9656  
9657 \family typewriter
9658 svjour
9659 \family default
9660  and 
9661 \family typewriter
9662 svjog
9663 \family default
9664  come with the standard LyX distribution.
9665  Install the relevant class file (downloaded from Springer) in a proper
9666  directory, reconfigure LaTeX (in the teTeX case by running 
9667 \family typewriter
9668 texhash
9669 \family default
9670 , as root if necessary --- doesn't LyX take care of this?), reconfigure
9671  LyX and it should work.
9672 \end_layout
9673
9674 \begin_layout Subsection
9675 New styles
9676 \end_layout
9677
9678 \begin_layout Standard
9679 A large number of theorem-like styles --- 
9680 \family sans
9681 Claim, Conjecture,
9682 \family default
9683  
9684 \family sans
9685 \SpecialChar \ldots{}
9686 Theorem
9687 \family default
9688 .
9689 \end_layout
9690
9691 \begin_layout Standard
9692
9693 \family sans
9694 Headnote, Dedication, Subtitle, Running_LaTeX_Title, Author_Running, Institute,
9695  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
9696 \family default
9697 .
9698  See the Springer class file documentation for details.
9699 \end_layout
9700
9701 \begin_layout Subsection
9702 Supported journals
9703 \end_layout
9704
9705 \begin_layout Itemize
9706
9707 \emph on
9708 Journal of Geodesy
9709 \emph default
9710
9711 \family typewriter
9712 svjog.layout 
9713 \family default
9714 --- Martin Vermeer
9715 \end_layout
9716
9717 \begin_layout Itemize
9718
9719 \emph on
9720 Probability Theory and Related Fields
9721 \emph default
9722
9723 \family typewriter
9724 svprobth.layout
9725 \family default
9726  --- Jean-Marc Lasgouttes
9727 \end_layout
9728
9729 \begin_layout Standard
9730 Add your own, it isn't so hard!
9731 \end_layout
9732
9733 \begin_layout Subsection
9734 Credits
9735 \end_layout
9736
9737 \begin_layout Standard
9738 These files are partly based on the older 
9739 \family typewriter
9740 ejour2.layout
9741 \family default
9742 , which was again based on a tinkered-with version of an old LaTeX 2.09 style
9743  file from Springer.
9744  All this, and the 
9745 \family typewriter
9746 ejour2
9747 \family default
9748  layout, are now defunct.
9749  Jean-Marc Lasgouttes helped out big in making me find my way around the
9750  LyX layout file mechanism.
9751 \end_layout
9752
9753 \begin_layout Subsection
9754 Bugs
9755 \end_layout
9756
9757 \begin_layout Standard
9758 Probably.
9759  But probably less than in the old hacked-LaTeX 
9760 \family typewriter
9761 ejour2
9762 \family default
9763 .
9764 \end_layout
9765
9766 \begin_layout Standard
9767 Limitations e.g.: does not display the number for theorem-like layouts, just
9768  #.
9769 \end_layout
9770
9771 \begin_layout Section
9772 AGU journals (
9773 \family sans
9774 aguplus
9775 \family default
9776 )
9777 \end_layout
9778
9779 \begin_layout Standard
9780 by 
9781 \shape smallcaps
9782 Martin Vermeer
9783 \end_layout
9784
9785 \begin_layout Subsection
9786 Description
9787 \end_layout
9788
9789 \begin_layout Standard
9790 These are the layout files for some of the journals of the American Geophysical
9791  Society.
9792  It is assumed that you have both the AGU's own class files and AGUplus
9793  installed (everything to be found at
9794 \begin_inset LatexCommand \url{ftp://ftp.agu.org/journals/latex/journals}
9795
9796 \end_inset
9797
9798 ).
9799 \end_layout
9800
9801 \begin_layout Subsection
9802 New styles
9803 \end_layout
9804
9805 \begin_layout Standard
9806 Redefined are 
9807 \family sans
9808 Paragraph
9809 \family default
9810
9811 \family sans
9812 Paragraph*
9813 \family default
9814 .
9815  They are still called this in the LyX GUI, though their LaTeX equivalents
9816  in the AGU classes are 
9817 \family sans
9818 Subsubsubsection
9819 \family default
9820  and 
9821 \family sans
9822 Subsubsubsection*
9823 \family default
9824 .
9825 \end_layout
9826
9827 \begin_layout Standard
9828 Newly defined styles are 
9829 \family sans
9830 Left_Header
9831 \family default
9832
9833 \family sans
9834 Right_Header
9835 \family default
9836
9837 \family sans
9838 Received
9839 \family default
9840
9841 \family sans
9842 Revised
9843 \family default
9844
9845 \family sans
9846 Accepted
9847 \family default
9848
9849 \family sans
9850 CCC
9851 \family default
9852
9853 \family sans
9854 PaperId
9855 \family default
9856
9857 \family sans
9858 AuthorAddr
9859 \family default
9860
9861 \family sans
9862 SlugComment
9863 \family default
9864 .
9865  These are mostly manuscript attributes and defined in the AGU class documentati
9866 on.
9867 \end_layout
9868
9869 \begin_layout Standard
9870 I suspect this is still badly incomplete.
9871 \end_layout
9872
9873 \begin_layout Subsection
9874 New floats
9875 \end_layout
9876
9877 \begin_layout Standard
9878
9879 \family sans
9880 Planotable
9881 \family default
9882  and 
9883 \family sans
9884 Plate
9885 \family default
9886 .
9887  We also have a new 
9888 \family sans
9889 Table_Caption
9890 \family default
9891 .
9892 \end_layout
9893
9894 \begin_layout Subsection
9895 Supported journals
9896 \end_layout
9897
9898 \begin_layout Itemize
9899
9900 \emph on
9901 Journal of Geophysical Research
9902 \emph default
9903
9904 \family typewriter
9905 jgrga.layout 
9906 \family default
9907 --- Martin Vermeer
9908 \end_layout
9909
9910 \begin_layout Standard
9911 Add your own, it isn't so hard! Look at the 
9912 \family typewriter
9913 jgrga.layout
9914 \family default
9915  example and 
9916 \family typewriter
9917 aguplus.inc
9918 \family default
9919 .
9920 \end_layout
9921
9922 \begin_layout Subsection
9923 Bugs and things to remember
9924 \end_layout
9925
9926 \begin_layout Standard
9927 In order to use the new layouts, you must remember to do the following for
9928  a new document:
9929 \end_layout
9930
9931 \begin_layout Enumerate
9932
9933 \emph on
9934 Turn off babel
9935 \emph default
9936 .
9937  This can be done in the 
9938 \family sans
9939 layout\SpecialChar \menuseparator
9940 document
9941 \family default
9942  or 
9943 \family sans
9944 document\SpecialChar \menuseparator
9945 settings
9946 \family default
9947  menu item.
9948  (AGU articles are always in English, right? So 
9949 \emph on
9950 don't
9951 \emph default
9952  choose a language.)
9953 \end_layout
9954
9955 \begin_layout Enumerate
9956 Enter 
9957 \family typewriter
9958 jgrga
9959 \family default
9960  into the document's 
9961 \family sans
9962 Extra Options
9963 \family default
9964  field.
9965  (Yes, this is a bug.)
9966 \end_layout
9967
9968 \begin_layout Enumerate
9969 Make sure you use the 
9970 \family typewriter
9971 agu.bst
9972 \family default
9973  bibliography style, by entering 
9974 \family sans
9975 agu
9976 \family default
9977  into the second field of the BibTeX inset.
9978  None of the standard styles will do.
9979 \end_layout
9980
9981 \begin_layout Section
9982 EGS journals (
9983 \family sans
9984 egs
9985 \family default
9986 )
9987 \end_layout
9988
9989 \begin_layout Standard
9990 by 
9991 \shape smallcaps
9992 Martin Vermeer
9993 \end_layout
9994
9995 \begin_layout Subsection
9996 Description
9997 \end_layout
9998
9999 \begin_layout Standard
10000 This is the layout file for the European Geophysical Society journals.
10001  The needed 
10002 \family typewriter
10003 egs.cls
10004 \family default
10005  can be downloaded from the web site of the EGS under 
10006 \begin_inset LatexCommand \url{www.copernicus.org}
10007
10008 \end_inset
10009
10010 .
10011 \end_layout
10012
10013 \begin_layout Subsection
10014 New styles
10015 \end_layout
10016
10017 \begin_layout Standard
10018
10019 \family sans
10020 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
10021  Accepted
10022 \family default
10023
10024 \family sans
10025 Offsets
10026 \family default
10027 .
10028  The current layout file is unfortunately very unmodular and would benefit
10029  from using the various 
10030 \family typewriter
10031 std*.inc
10032 \family default
10033  file inclusions.
10034 \end_layout
10035
10036 \begin_layout Section
10037 Slides [aka 
10038 \noun on
10039 Sli
10040 \noun default
10041 TeX]
10042 \begin_inset LatexCommand \label{sec:slitex}
10043
10044 \end_inset
10045
10046
10047 \end_layout
10048
10049 \begin_layout Standard
10050 by 
10051 \noun on
10052 John Weiss
10053 \noun default
10054  
10055 \end_layout
10056
10057 \begin_layout Subsection
10058 Introduction
10059 \end_layout
10060
10061 \begin_layout Standard
10062 This section describes how to use LyX to make slides for overhead projectors.
10063  There are two document classes that can do this: the default slides class
10064  and the 
10065 \family sans
10066 Foil
10067 \family default
10068 TeX slides class.
10069  This section documents the former.
10070 \end_layout
10071
10072 \begin_layout Standard
10073 I'm going to say this again, nice and clear, so that there's no misunderstanding
10074 :
10075 \end_layout
10076
10077 \begin_layout Standard
10078 \begin_inset VSpace bigskip
10079 \end_inset
10080
10081
10082 \end_layout
10083
10084 \begin_layout Standard
10085 \align center
10086
10087 \size large
10088 This section documents the class 
10089 \begin_inset Quotes eld
10090 \end_inset
10091
10092
10093 \family sans
10094 slides (default)
10095 \family default
10096
10097 \begin_inset Quotes erd
10098 \end_inset
10099
10100  
10101 \emph on
10102 only.
10103 \end_layout
10104
10105 \begin_layout Standard
10106 \begin_inset VSpace bigskip
10107 \end_inset
10108
10109
10110 \end_layout
10111
10112 \begin_layout Standard
10113 If you're looking for the documentation for 
10114 \begin_inset Quotes eld
10115 \end_inset
10116
10117
10118 \family sans
10119 slides (FoilTeX)
10120 \family default
10121
10122 \begin_inset Quotes erd
10123 \end_inset
10124
10125 , check out section\InsetSpace ~
10126
10127 \begin_inset LatexCommand \ref{sec:foiltex}
10128
10129 \end_inset
10130
10131 .
10132  The 
10133 \family sans
10134 foils 
10135 \family default
10136 class [
10137 \begin_inset Quotes eld
10138 \end_inset
10139
10140
10141 \family sans
10142 slides (FoilTeX)
10143 \family default
10144
10145 \begin_inset Quotes erd
10146 \end_inset
10147
10148 ] is actually somewhat better than the default 
10149 \family sans
10150 slides
10151 \family default
10152  class,
10153 \begin_inset Foot
10154 status collapsed
10155
10156 \begin_layout Standard
10157 \SpecialChar \ldots{}
10158 or so I've been told repeatedly by its advocates.
10159  Having never used it, I have no idea if this claim is true or not.
10160 \end_layout
10161
10162 \end_inset
10163
10164  which this section documents.
10165 \end_layout
10166
10167 \begin_layout Standard
10168 This class is the LaTeX2e improvement of the old 
10169 \noun on
10170 Sli
10171 \noun default
10172 TeX package.
10173  Every LaTeX2e distribution includes this class [which I'll just refer to
10174  as 
10175 \begin_inset Quotes eld
10176 \end_inset
10177
10178
10179 \family sans
10180 slides
10181 \family default
10182
10183 \begin_inset Quotes erd
10184 \end_inset
10185
10186  from now on], so you're bound to have it.
10187  As I noted earlier, there are other classes, such as 
10188 \family sans
10189 foils
10190 \family default
10191 , which also produce slides for overhead projectors and do a better job
10192  at it.
10193  However, there are some things which 
10194 \family sans
10195 slides
10196 \family default
10197  can do which the others can't, such as generate overlays.
10198  Read on to learn more!
10199 \end_layout
10200
10201 \begin_layout Subsection
10202 Getting Started
10203 \begin_inset LatexCommand \label{sec:slidesetup}
10204
10205 \end_inset
10206
10207
10208 \end_layout
10209
10210 \begin_layout Standard
10211 Obviously, to use this document class, you need to select 
10212 \begin_inset Quotes eld
10213 \end_inset
10214
10215
10216 \family sans
10217 slides (default)
10218 \family default
10219
10220 \begin_inset Quotes erd
10221 \end_inset
10222
10223  from the class list in the 
10224 \family sans
10225 \bar under
10226 D
10227 \bar default
10228 ocument\SpecialChar \menuseparator
10229
10230 \bar under
10231 S
10232 \bar default
10233 ettings
10234 \family default
10235  dialog.
10236  There are some other special things you should know about this class:
10237 \end_layout
10238
10239 \begin_layout Itemize
10240 Don't bother changing the options 
10241 \family sans
10242 Sides and Columns
10243 \family default
10244 .
10245  They're not supported by the 
10246 \family sans
10247 slides
10248 \family default
10249  class, anyways.
10250 \end_layout
10251
10252 \begin_layout Itemize
10253 The option 
10254 \family sans
10255 \bar under
10256 P
10257 \bar default
10258 age\InsetSpace ~
10259 style
10260 \family default
10261  behaves a bit differently for this class.
10262  The possible choices and what they do are as follows:
10263 \end_layout
10264
10265 \begin_deeper
10266 \begin_layout Description
10267
10268 \family sans
10269 plain
10270 \family default
10271  The final output contains page numbers in the lower right corner.
10272 \end_layout
10273
10274 \begin_layout Description
10275
10276 \family sans
10277 headings
10278 \family default
10279  Like 
10280 \family sans
10281 plain
10282 \family default
10283 , but also prints out any time markers you've put in.
10284  This is the default.
10285 \end_layout
10286
10287 \begin_layout Description
10288
10289 \family sans
10290 empty
10291 \family default
10292  The final output contains no page numbers, time markers, or alignment markers.
10293 \end_layout
10294
10295 \end_deeper
10296 \begin_layout Itemize
10297 The 
10298 \family sans
10299 slides
10300 \family default
10301  class has an extra option: 
10302 \family typewriter
10303 clock
10304 \family default
10305 .
10306  To use it, put 
10307 \begin_inset Quotes eld
10308 \end_inset
10309
10310
10311 \family typewriter
10312 clock
10313 \family default
10314
10315 \begin_inset Quotes erd
10316 \end_inset
10317
10318  in the extra class options.
10319 \end_layout
10320
10321 \begin_deeper
10322 \begin_layout Standard
10323 Using this options allows you to add time markers to 
10324 \family sans
10325 Note
10326 \family default
10327 s.
10328  See section\InsetSpace ~
10329
10330 \begin_inset LatexCommand \ref{sec:slideNote}
10331
10332 \end_inset
10333
10334  for more details.
10335 \end_layout
10336
10337 \end_deeper
10338 \begin_layout Standard
10339 You can also use the template file 
10340 \begin_inset Quotes eld
10341 \end_inset
10342
10343
10344 \family typewriter
10345 slides.lyx
10346 \family default
10347
10348 \begin_inset Quotes erd
10349 \end_inset
10350
10351  to automatically set up a document to use the 
10352 \family sans
10353 slides 
10354 \family default
10355 class [using 
10356 \family sans
10357 \bar under
10358 F
10359 \bar default
10360 ile\SpecialChar \menuseparator
10361 New\InsetSpace ~
10362 from\InsetSpace ~
10363
10364 \bar under
10365 T
10366 \bar default
10367 emplate
10368 \family default
10369  to open your new document].
10370  The template file also contains some examples of the special paragraph
10371  environments used by this class.
10372  I'll describe those next.
10373 \end_layout
10374
10375 \begin_layout Subsection
10376 Paragraph Environments
10377 \end_layout
10378
10379 \begin_layout Subsubsection
10380 Supported Environments
10381 \end_layout
10382
10383 \begin_layout Standard
10384 The first thing you'll notice when you start up a new 
10385 \family sans
10386 slides 
10387 \family default
10388 document is the font size and type: it's the equivalent of the size 
10389 \begin_inset Quotes eld
10390 \end_inset
10391
10392
10393 \family sans
10394 Largest
10395 \family default
10396
10397 \begin_inset Quotes erd
10398 \end_inset
10399
10400  in the 
10401 \family sans
10402 Sans\InsetSpace ~
10403 Serif
10404 \family default
10405  font.
10406  This is also what's used in the output.
10407  Think of this as a 
10408 \begin_inset Quotes eld
10409 \end_inset
10410
10411 visual cue
10412 \begin_inset Quotes erd
10413 \end_inset
10414
10415  to remind you that this is a slide.
10416  Your final slides will use a larger font; ergo, you'll have less space.
10417  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
10418 \end_layout
10419
10420 \begin_layout Standard
10421 The next thing that becomes obvious is the changes to the paragraph environment
10422  pull-down box [at the far-left end of the toolbar].
10423  Most of the paragraph environments you're used to seeing are missing.
10424  There are also five new ones.
10425  That's because the 
10426 \family sans
10427 slides
10428 \family default
10429  class itself only supports certain paragraph environments:
10430 \end_layout
10431
10432 \begin_layout Itemize
10433
10434 \family sans
10435 Standard
10436 \end_layout
10437
10438 \begin_layout Itemize
10439
10440 \family sans
10441 Itemize
10442 \end_layout
10443
10444 \begin_layout Itemize
10445
10446 \family sans
10447 Enumerate
10448 \end_layout
10449
10450 \begin_layout Itemize
10451
10452 \family sans
10453 Description
10454 \end_layout
10455
10456 \begin_layout Itemize
10457
10458 \family sans
10459 List
10460 \end_layout
10461
10462 \begin_layout Itemize
10463
10464 \family sans
10465 Quotation
10466 \end_layout
10467
10468 \begin_layout Itemize
10469
10470 \family sans
10471 Quote
10472 \end_layout
10473
10474 \begin_layout Itemize
10475
10476 \family sans
10477 Verse
10478 \end_layout
10479
10480 \begin_layout Itemize
10481
10482 \family sans
10483 Caption
10484 \end_layout
10485
10486 \begin_layout Itemize
10487
10488 \family sans
10489 LyX-Code
10490 \end_layout
10491
10492 \begin_layout Itemize
10493
10494 \family sans
10495 Comment
10496 \end_layout
10497
10498 \begin_layout Standard
10499 All of the other standard environments, including the section-heading environmen
10500 ts, aren't used in the 
10501 \family sans
10502 slides
10503 \family default
10504  class.
10505 \end_layout
10506
10507 \begin_layout Standard
10508 On the other hand, you'll notice the following new environments:
10509 \end_layout
10510
10511 \begin_layout Itemize
10512
10513 \family sans
10514 Slide
10515 \end_layout
10516
10517 \begin_layout Itemize
10518
10519 \family sans
10520 Overlay
10521 \end_layout
10522
10523 \begin_layout Itemize
10524
10525 \family sans
10526 Note
10527 \end_layout
10528
10529 \begin_layout Itemize
10530
10531 \family sans
10532 InvisibleText
10533 \end_layout
10534
10535 \begin_layout Itemize
10536
10537 \family sans
10538 VisibleText
10539 \end_layout
10540
10541 \begin_layout Standard
10542 These five are kind of quirky, due to a 
10543 \begin_inset Quotes eld
10544 \end_inset
10545
10546 feature
10547 \begin_inset Quotes erd
10548 \end_inset
10549
10550  in LyX.
10551  You see, LyX doesn't permit you to nest any other paragraph environment
10552  into an empty environment.
10553  Now, that's fine and dandy, but it means that you wouldn't be able to start
10554  a slide with anything except plain text.
10555  To deal with this, I've performed a little 
10556 \begin_inset Quotes eld
10557 \end_inset
10558
10559 LaTeX magic.
10560 \begin_inset Quotes erd
10561 \end_inset
10562
10563  
10564 \end_layout
10565
10566 \begin_layout Subsubsection
10567 Quirks of the New Environments
10568 \begin_inset LatexCommand \label{sec:slideQuirk}
10569
10570 \end_inset
10571
10572
10573 \end_layout
10574
10575 \begin_layout Standard
10576 All five of the new paragraph environments are somewhat quirky due to inherent
10577  limitiations in the current version of LyX.
10578  As I just mentioned, LyX forbids environments that begin with another environme
10579 nt.
10580  To get around this, the 
10581 \family sans
10582 Slide
10583 \family default
10584  environment isn't a paragraph environment as described in the 
10585 \emph on
10586 User's Guide
10587 \emph default
10588 .
10589  
10590 \end_layout
10591
10592 \begin_layout Standard
10593 You should consider 
10594 \family sans
10595 Slide
10596 \family default
10597
10598 \family sans
10599 Overlay
10600 \family default
10601 , and 
10602 \family sans
10603 Note
10604 \family default
10605  to be 
10606 \begin_inset Quotes eld
10607 \end_inset
10608
10609 pseudo-environments.
10610 \begin_inset Quotes erd
10611 \end_inset
10612
10613  They look like a section heading or a 
10614 \begin_inset Quotes eld
10615 \end_inset
10616
10617
10618 \family sans
10619 Caption
10620 \family default
10621 ,
10622 \begin_inset Quotes erd
10623 \end_inset
10624
10625  but really begin a [and, if necessary, end the previous] paragraph environment.
10626  Likewise, treat 
10627 \family sans
10628 InvisibleText
10629 \family default
10630  and 
10631 \family sans
10632 VisibleText
10633 \family default
10634  as 
10635 \begin_inset Quotes eld
10636 \end_inset
10637
10638 pseudo-commands.
10639 \begin_inset Quotes erd
10640 \end_inset
10641
10642  These two perform some action.
10643 \end_layout
10644
10645 \begin_layout Standard
10646 A common feature of all five environments, 
10647 \family sans
10648 Slide
10649 \family default
10650
10651 \family sans
10652 Overlay
10653 \family default
10654
10655 \family sans
10656 Note
10657 \family default
10658
10659 \family sans
10660 InvisibleText
10661 \family default
10662  and 
10663 \family sans
10664 VisibleText
10665 \family default
10666 , is a rather long-ish label.
10667  The text following this label --- ordinarily the contents of the paragraph
10668  environment --- is utterly irrelevant for 
10669 \family sans
10670 Slide
10671 \family default
10672
10673 \family sans
10674 Overlay
10675 \family default
10676
10677 \family sans
10678 Note
10679 \family default
10680
10681 \family sans
10682 InvisibleText
10683 \family default
10684  and 
10685 \family sans
10686 VisibleText
10687 \family default
10688 .
10689  LyX completely ignores it.
10690  In fact, you can leave these five environments completely empty.
10691  
10692 \end_layout
10693
10694 \begin_layout Standard
10695 While you don't 
10696 \emph on
10697 have
10698 \emph default
10699  to put any text after the rather long-ish label, you might want to.
10700  This could be a short description of the contents of the 
10701 \family sans
10702 Slide
10703 \family default
10704 , for example.
10705  In that case, enter in your descriptive comment and hit 
10706 \family sans
10707 Return
10708 \family default
10709  as you normally would.
10710 \end_layout
10711
10712 \begin_layout Standard
10713 If, on the other hand, you don't want to enter in any descriptive text,
10714  you'll hit another LyX quirk.
10715  LyX, like nature, abhors a vacuum, and will not let you start a new paragraph
10716  environment until you put something in the old one.
10717  So, do this:
10718 \end_layout
10719
10720 \begin_layout Itemize
10721 Start entering the text that will 
10722 \emph on
10723 follow
10724 \emph default
10725  the new 
10726 \family sans
10727 Slide
10728 \family default
10729
10730 \family sans
10731 Overlay
10732 \family default
10733
10734 \family sans
10735 Note
10736 \family default
10737
10738 \family sans
10739 InvisibleText
10740 \family default
10741  or 
10742 \family sans
10743 VisibleText
10744 \family default
10745 .
10746  
10747 \end_layout
10748
10749 \begin_layout Itemize
10750 Now move to the beginning of that paragraph.
10751  
10752 \end_layout
10753
10754 \begin_layout Itemize
10755 Next, hit 
10756 \family sans
10757 Return
10758 \family default
10759 .
10760  
10761 \end_layout
10762
10763 \begin_layout Itemize
10764 Finally, change this new, empty paragraph to a 
10765 \family sans
10766 Slide
10767 \family default
10768
10769 \family sans
10770 Overlay
10771 \family default
10772
10773 \family sans
10774 Note
10775 \family default
10776
10777 \family sans
10778 InvisibleText
10779 \family default
10780  or 
10781 \family sans
10782 VisibleText
10783 \family default
10784 .
10785  
10786 \end_layout
10787
10788 \begin_layout Standard
10789 Some future version of LyX will, hopefully, resolve this quirkiness\SpecialChar \ldots{}
10790
10791 \end_layout
10792
10793 \begin_layout Subsection
10794 Making a Presentation with 
10795 \family sans
10796 Slide
10797 \family default
10798 ,
10799 \family sans
10800  Overlay
10801 \family default
10802  and 
10803 \family sans
10804 Note
10805 \end_layout
10806
10807 \begin_layout Subsubsection
10808 Using the 
10809 \family sans
10810 Slide
10811 \family default
10812  Environment
10813 \end_layout
10814
10815 \begin_layout Standard
10816 If you're expecting this section to teach you how to actually make a presentatio
10817 n, you'll be sorely disappointed.
10818  Naturally, I'll describe all of the ways the 
10819 \family sans
10820 slides
10821 \family default
10822  class can assist you in preparing the materials for a presentation.
10823  Filling in the contents, however, is up to you.
10824  [Then again, that 
10825 \emph on
10826 is
10827 \emph default
10828  the LyX philosophy.]
10829 \end_layout
10830
10831 \begin_layout Standard
10832 Choosing the 
10833 \family sans
10834 Slide
10835 \family default
10836  environment [in the manner described in section\InsetSpace ~
10837
10838 \begin_inset LatexCommand \ref{sec:slideQuirk}
10839
10840 \end_inset
10841
10842 ] tells LyX to begin a new slide [duh].
10843  The label for this environment/
10844 \begin_inset Quotes erd
10845 \end_inset
10846
10847 pseudo-command
10848 \begin_inset Quotes erd
10849 \end_inset
10850
10851  is an 
10852 \begin_inset Quotes eld
10853 \end_inset
10854
10855 ASCII line,
10856 \begin_inset Quotes erd
10857 \end_inset
10858
10859  in cool blue, followed by the label, 
10860 \begin_inset Quotes eld
10861 \end_inset
10862
10863 NewSlide:
10864 \begin_inset Quotes erd
10865 \end_inset
10866
10867 .
10868  Any text or paragraph environments that follow this one go on the new slide.
10869  It's that simple.
10870 \end_layout
10871
10872 \begin_layout Standard
10873 Slides are probably the only time you'll need to forcibly end pages in LyX
10874  (this can be specified in the 
10875 \family sans
10876 Paragraph Layout
10877 \family default
10878  dialog).
10879  In fact, you'll want to, once you finish entering the contents of one slide.
10880  If you've entered more text than can physically fit on a slide, the extra
10881  overflows onto a new slide.
10882  I don't recommend doing this, however, since the overflow slide won't have
10883  any page number on it.
10884  Furthermore, it may interfere with any 
10885 \family sans
10886 Overlay
10887 \family default
10888  you've made to accompany the oversized 
10889 \family sans
10890 Slide
10891 \family default
10892 .
10893 \end_layout
10894
10895 \begin_layout Standard
10896 The 
10897 \family sans
10898 Overlay
10899 \family default
10900  and 
10901 \family sans
10902 Note
10903 \family default
10904  environments work the same way as the 
10905 \family sans
10906 Slide 
10907 \family default
10908 environment.
10909  They both create an 
10910 \begin_inset Quotes eld
10911 \end_inset
10912
10913 ASCII line
10914 \begin_inset Quotes erd
10915 \end_inset
10916
10917  followed by a label [
10918 \begin_inset Quotes eld
10919 \end_inset
10920
10921 NewOverlay:
10922 \begin_inset Quotes erd
10923 \end_inset
10924
10925  and 
10926 \begin_inset Quotes eld
10927 \end_inset
10928
10929 NewNote:
10930 \begin_inset Quotes erd
10931 \end_inset
10932
10933 , respectively].
10934  The color is a stunning magenta instead of blue, and the 
10935 \begin_inset Quotes eld
10936 \end_inset
10937
10938 ASCII line
10939 \begin_inset Quotes erd
10940 \end_inset
10941
10942  will look different, in style and in length.
10943  The label fonts of all three also differ from one another.
10944 \end_layout
10945
10946 \begin_layout Standard
10947 As with a 
10948 \family sans
10949 Slide
10950 \family default
10951 , if the contents of a 
10952 \family sans
10953 Note
10954 \family default
10955  or 
10956 \family sans
10957 Overlay
10958 \family default
10959  exceed the physical size of a slide or sheet of paper, the extra will overflow
10960  onto a new sheet.
10961  Again, you should avoid this.
10962  It defeats the whole purpose of 
10963 \family sans
10964 Note
10965 \family default
10966 s and 
10967 \family sans
10968 Overlay
10969 \family default
10970 s.
10971 \end_layout
10972
10973 \begin_layout Subsubsection
10974 Using 
10975 \family sans
10976 Overlay
10977 \family default
10978  with 
10979 \family sans
10980 Slide
10981 \end_layout
10982
10983 \begin_layout Standard
10984 The idea behind an 
10985 \family sans
10986 Overlay
10987 \family default
10988  is a slide that sits atop another slide.
10989  Perhaps you wish to discuss a figure on the main 
10990 \family sans
10991 Slide
10992 \family default
10993  before displaying the text associated with it.
10994  One way to accomplish this is tape a flap of dark paper over the part of
10995  the 
10996 \family sans
10997 Slide
10998 \family default
10999  you want to display later.
11000  This method fails, however, if you wish to overlap one graph with another,
11001  for example.
11002  You would then have to fumble while speaking to align the two separate,
11003  overlapping 
11004 \family sans
11005 Slide
11006 \family default
11007 s to align the two graphs.
11008  The use of an 
11009 \family sans
11010 Overlay
11011 \family default
11012  environment in both cases makes life much easier.
11013 \end_layout
11014
11015 \begin_layout Standard
11016 Each 
11017 \family sans
11018 Overlay
11019 \family default
11020  receives the page number of its 
11021 \begin_inset Quotes eld
11022 \end_inset
11023
11024 parent
11025 \begin_inset Quotes erd
11026 \end_inset
11027
11028  
11029 \family sans
11030 Slide
11031 \family default
11032 , appended by 
11033 \begin_inset Quotes eld
11034 \end_inset
11035
11036
11037 \family typewriter
11038 -a
11039 \family default
11040
11041 \begin_inset Quotes erd
11042 \end_inset
11043
11044 .
11045 \begin_inset Foot
11046 status collapsed
11047
11048 \begin_layout Standard
11049 Presumably, mutliple 
11050 \family sans
11051 Overlay
11052 \family default
11053 s would have 
11054 \begin_inset Quotes eld
11055 \end_inset
11056
11057
11058 \family typewriter
11059 -a
11060 \family default
11061
11062 \begin_inset Quotes erd
11063 \end_inset
11064
11065
11066 \begin_inset Quotes eld
11067 \end_inset
11068
11069
11070 \family typewriter
11071 -b
11072 \family default
11073
11074 \begin_inset Quotes erd
11075 \end_inset
11076
11077
11078 \begin_inset Quotes eld
11079 \end_inset
11080
11081
11082 \family typewriter
11083 -c
11084 \family default
11085
11086 \begin_inset Quotes erd
11087 \end_inset
11088
11089 , etc.\InsetSpace ~
11090 appended to the page number of the parent 
11091 \family sans
11092 Slide
11093 \family default
11094 .
11095  
11096 \end_layout
11097
11098 \end_inset
11099
11100  Clearly, you want the contents of both the 
11101 \family sans
11102 Slide
11103 \family default
11104  and the 
11105 \family sans
11106 Overlay
11107 \family default
11108  to each fit on a single physical slide! You should probably consider an
11109  
11110 \family sans
11111 Overlay
11112 \family default
11113  as 
11114 \begin_inset Quotes eld
11115 \end_inset
11116
11117 part of
11118 \begin_inset Quotes erd
11119 \end_inset
11120
11121  a 
11122 \family sans
11123 Slide
11124 \family default
11125 .
11126  Indeed, the LyX 
11127 \family sans
11128 slides
11129 \family default
11130  class provides a visual cue for this: the label at the start of an 
11131 \family sans
11132 Overlay
11133 \family default
11134  is shorter than that at the start of a 
11135 \family sans
11136 Slide
11137 \family default
11138 .
11139  Lastly, when you generate printable output, you'll find alignment markers
11140  in all four corners of both the 
11141 \family sans
11142 Overlay
11143 \family default
11144  page and its parent 
11145 \family sans
11146 Slide
11147 \family default
11148 .
11149  These will assist you in lining up the two physical slides.
11150 \end_layout
11151
11152 \begin_layout Standard
11153 The major problem in overlaying two slides is aligning the contents of the
11154  two transparencies.
11155  How much space should you leave for that graph on the second slide? Worse
11156  still, what if you want a graph and a sentence on second slide, but there
11157  is text on the main transparency that goes in between them? You could try
11158  and insert vertical space of the right size.
11159  The better way is to use 
11160 \family sans
11161 InvisibleText
11162 \family default
11163  and 
11164 \family sans
11165 VisibleText
11166 \family default
11167 .
11168 \end_layout
11169
11170 \begin_layout Standard
11171 As their names imply, 
11172 \family sans
11173 InvisibleText
11174 \family default
11175  and 
11176 \family sans
11177 VisibleText
11178 \family default
11179  are two command-like paragraph environments that make all subsequent text
11180  invisible and visible, respectively.
11181  Note from section\InsetSpace ~
11182
11183 \begin_inset LatexCommand \ref{sec:slideQuirk}
11184
11185 \end_inset
11186
11187  that you don't place anything 
11188 \emph on
11189 into
11190 \emph default
11191  these two environments, however.
11192  When you create an 
11193 \family sans
11194 InvisibleText
11195 \family default
11196 , it inserts a centered, sky-blue label into the page reading 
11197 \begin_inset Quotes eld
11198 \end_inset
11199
11200 <Invisible Text Follows>
11201 \begin_inset Quotes erd
11202 \end_inset
11203
11204 .
11205  For paragraphs following this label, the parts of the 
11206 \family sans
11207 Slide
11208 \family default
11209  [or 
11210 \family sans
11211 Overlay
11212 \family default
11213 ; it doesn't matter which] where they would be contain instead blank space.
11214  
11215 \end_layout
11216
11217 \begin_layout Standard
11218 For 
11219 \family sans
11220 VisibleText
11221 \family default
11222 , the corresponding centered label is 
11223 \begin_inset Quotes eld
11224 \end_inset
11225
11226 <Visible Text Follows>
11227 \begin_inset Quotes erd
11228 \end_inset
11229
11230  in blazing green.
11231  Paragraphs following this label behave normally.
11232  Note that the beginning of a new 
11233 \family sans
11234 Slide
11235 \family default
11236
11237 \family sans
11238 Overlay
11239 \family default
11240 , or 
11241 \family sans
11242 Note
11243 \family default
11244  automatically shuts off an 
11245 \family sans
11246 InvisibleText
11247 \family default
11248 .
11249  It's therefore not necessary to use 
11250 \family sans
11251 VisibleText
11252 \family default
11253  at the end of a 
11254 \family sans
11255 Slide
11256 \family default
11257 .
11258 \end_layout
11259
11260 \begin_layout Standard
11261 By now, it should be obvious how to create overlay transparencies using
11262  the proper combination of 
11263 \family sans
11264 InvisibleText
11265 \family default
11266  and 
11267 \family sans
11268 VisibleText
11269 \family default
11270  on a 
11271 \family sans
11272 Slide
11273 \family default
11274  and 
11275 \family sans
11276 Overlay
11277 \family default
11278 :
11279 \end_layout
11280
11281 \begin_layout Enumerate
11282 Create a 
11283 \family sans
11284 Slide
11285 \family default
11286 , including everything that will appear on it, whether on the main slide
11287  or on the 
11288 \family sans
11289 Overlay
11290 \family default
11291 .
11292 \end_layout
11293
11294 \begin_layout Enumerate
11295 Before each figure or paragraph that will appear only on the 
11296 \family sans
11297 Overlay
11298 \family default
11299 , insert an 
11300 \family sans
11301 InvisibleText
11302 \family default
11303  environment.
11304  If necessary, insert a 
11305 \family sans
11306 VisibleText
11307 \family default
11308  environment after the 
11309 \family sans
11310 Overlay
11311 \family default
11312 -only text.
11313 \end_layout
11314
11315 \begin_layout Enumerate
11316 Start an 
11317 \family sans
11318 Overlay
11319 \family default
11320  immediately following the 
11321 \family sans
11322 Slide
11323 \family default
11324 .
11325 \end_layout
11326
11327 \begin_layout Enumerate
11328 Copy the contents of this 
11329 \family sans
11330 Slide
11331 \family default
11332  into the 
11333 \family sans
11334 Overlay
11335 \family default
11336 .
11337 \end_layout
11338
11339 \begin_layout Enumerate
11340 Within the 
11341 \family sans
11342 Overlay
11343 \family default
11344 , change all of the 
11345 \family sans
11346 InvisibleText
11347 \family default
11348  lines to 
11349 \family sans
11350 VisibleText
11351 \family default
11352  and vice-versa.
11353 \end_layout
11354
11355 \begin_layout Standard
11356 That's it.
11357  You've just made an 
11358 \family sans
11359 Overlay
11360 \family default
11361 .
11362 \end_layout
11363
11364 \begin_layout Standard
11365 There's one problem with the way I've designed the LyX 
11366 \family sans
11367 slides
11368 \family default
11369  class: you can't make text in the middle of a paragraph invisible, nor
11370  make text in the middle of an invisible paragraph visible again.
11371  To accomplish this feat, you'll need to use some inlined LaTeX codes.
11372 \begin_inset Foot
11373 status collapsed
11374
11375 \begin_layout Standard
11376 The commands of interest are: 
11377 \end_layout
11378
11379 \begin_layout Itemize
11380
11381 \family typewriter
11382 {
11383 \backslash
11384 invisible \SpecialChar \ldots{}
11385  }
11386 \end_layout
11387
11388 \begin_layout Itemize
11389
11390 \family typewriter
11391 {
11392 \backslash
11393 visible \SpecialChar \ldots{}
11394  }
11395 \end_layout
11396
11397 \begin_layout Standard
11398 \SpecialChar \ldots{}
11399 and need to be marked as TeX.
11400  The text whose 
11401 \begin_inset Quotes eld
11402 \end_inset
11403
11404 visibility
11405 \begin_inset Quotes erd
11406 \end_inset
11407
11408  you wish to change goes in between the brackets [and after the 
11409 \family typewriter
11410
11411 \backslash
11412 invisible
11413 \family default
11414  or 
11415 \family typewriter
11416
11417 \backslash
11418 visible
11419 \family default
11420  command].
11421  If you don't know how to mark text as TeX, see the apprpriate section of
11422  the 
11423 \emph on
11424 User's Guide
11425 \emph default
11426 .
11427 \end_layout
11428
11429 \end_inset
11430
11431
11432 \end_layout
11433
11434 \begin_layout Subsubsection
11435 Using 
11436 \family sans
11437 Note
11438 \family default
11439  with 
11440 \family sans
11441 Slide
11442 \family default
11443
11444 \begin_inset LatexCommand \label{sec:slideNote}
11445
11446 \end_inset
11447
11448
11449 \end_layout
11450
11451 \begin_layout Standard
11452 Like an 
11453 \family sans
11454 Overlay
11455 \family default
11456 , a 
11457 \family sans
11458 Note
11459 \family default
11460  is associated with a 
11461 \begin_inset Quotes eld
11462 \end_inset
11463
11464 parent
11465 \begin_inset Quotes erd
11466 \end_inset
11467
11468  
11469 \family sans
11470 Slide
11471 \family default
11472 .
11473  Here, too, the LyX 
11474 \family sans
11475 slides
11476 \family default
11477  class provides visual cues.
11478  The label for a 
11479 \family sans
11480 Note
11481 \family default
11482  is shorter than that of a 
11483 \family sans
11484 Slide
11485 \family default
11486  [yet longer than that of an 
11487 \family sans
11488 Overlay
11489 \family default
11490 ] and, like the label of an 
11491 \family sans
11492 Overlay
11493 \family default
11494  is shockingly magenta.
11495  Additionally, the printed 
11496 \family sans
11497 Note
11498 \family default
11499  has the page number of its 
11500 \begin_inset Quotes eld
11501 \end_inset
11502
11503 parent
11504 \begin_inset Quotes erd
11505 \end_inset
11506
11507  
11508 \family sans
11509 Slide
11510 \family default
11511 , appended by 
11512 \begin_inset Quotes eld
11513 \end_inset
11514
11515
11516 \family typewriter
11517 -
11518 \family default
11519 1
11520 \begin_inset Quotes erd
11521 \end_inset
11522
11523
11524 \begin_inset Quotes eld
11525 \end_inset
11526
11527
11528 \family typewriter
11529 -
11530 \family default
11531 2
11532 \begin_inset Quotes erd
11533 \end_inset
11534
11535
11536 \begin_inset Quotes eld
11537 \end_inset
11538
11539
11540 \family typewriter
11541 -
11542 \family default
11543 3
11544 \begin_inset Quotes erd
11545 \end_inset
11546
11547 , etc.
11548  You can have multiple 
11549 \family sans
11550 Note
11551 \family default
11552 s associated with a single 
11553 \family sans
11554 Slide
11555 \family default
11556 , and, as with 
11557 \family sans
11558 Slide
11559 \family default
11560  and 
11561 \family sans
11562 Overlay
11563 \family default
11564 , you'll probably want to break up long 
11565 \family sans
11566 Note
11567 \family default
11568 s so that they fit on a single sheet of paper.
11569 \end_layout
11570
11571 \begin_layout Standard
11572 The purpose of a 
11573 \family sans
11574 Note
11575 \family default
11576  is obvious: it contains anything additional you might want to say about
11577  a 
11578 \family sans
11579 Slide
11580 \family default
11581 .
11582  It could also be used as a sheet of reminders for a particular 
11583 \family sans
11584 Slide
11585 \family default
11586 .
11587  In the case of the latter, you might want to make use of time markers.
11588  Currently, the LyX 
11589 \family sans
11590 slides
11591 \family default
11592  class has no 
11593 \begin_inset Quotes eld
11594 \end_inset
11595
11596 native
11597 \begin_inset Quotes erd
11598 \end_inset
11599
11600  support for time markers, a 
11601 \noun on
11602 Sli
11603 \noun default
11604 TeX feature.
11605  So, you'll have to resort to using the LaTeX codes.
11606 \end_layout
11607
11608 \begin_layout Standard
11609 To use time markers, you'll need to specify the extra class option 
11610 \begin_inset Quotes eld
11611 \end_inset
11612
11613
11614 \family typewriter
11615 clock
11616 \family default
11617
11618 \begin_inset Quotes erd
11619 \end_inset
11620
11621  [see section\InsetSpace ~
11622
11623 \begin_inset LatexCommand \ref{sec:slidesetup}
11624
11625 \end_inset
11626
11627 ].
11628  This option turns on timing marks, which will appear in the lower-left-hand
11629  corner of every 
11630 \family sans
11631 Note
11632 \family default
11633  you generate.
11634  To set what appears in the time marker, you use the LaTeX commands 
11635 \begin_inset Quotes eld
11636 \end_inset
11637
11638
11639 \family typewriter
11640
11641 \backslash
11642 settime{}
11643 \family default
11644
11645 \begin_inset Quotes erd
11646 \end_inset
11647
11648  and 
11649 \begin_inset Quotes eld
11650 \end_inset
11651
11652
11653 \family typewriter
11654
11655 \backslash
11656 addtime{}
11657 \family default
11658
11659 \begin_inset Quotes erd
11660 \end_inset
11661
11662 .
11663  The arguments of both commands are time measured in seconds.
11664  
11665 \begin_inset Quotes eld
11666 \end_inset
11667
11668
11669 \family typewriter
11670
11671 \backslash
11672 settime{}
11673 \family default
11674
11675 \begin_inset Quotes erd
11676 \end_inset
11677
11678  sets the time marker to a given time.
11679  
11680 \begin_inset Quotes eld
11681 \end_inset
11682
11683
11684 \family typewriter
11685
11686 \backslash
11687 addtime{}
11688 \family default
11689
11690 \begin_inset Quotes erd
11691 \end_inset
11692
11693  increments the time marker by the specified amount.
11694  Using time markers and 
11695 \family sans
11696 Note
11697 \family default
11698 s in this fashion, you can remind yourself how much time to spend on a particula
11699
11700 \family sans
11701 Slide
11702 \family default
11703 .
11704 \end_layout
11705
11706 \begin_layout Standard
11707 There's one last feature to describe.
11708  Clearly, you'd like to print out all of your 
11709 \family sans
11710 Slide
11711 \family default
11712 s and 
11713 \family sans
11714 Overlay
11715 \family default
11716 s on transparencies while printing all of your 
11717 \family sans
11718 Note
11719 \family default
11720 s on plain paper.
11721  However, a 
11722 \family sans
11723 Note
11724 \family default
11725  
11726 \emph on
11727 must
11728 \emph default
11729  follow the 
11730 \family sans
11731 Slide
11732 \family default
11733  with which it is associated.
11734  What's a person to do?
11735 \end_layout
11736
11737 \begin_layout Standard
11738 Luckily, there are two LaTeX commands that allow you to select what to print
11739  out.
11740  Both must be placed into the preamble of your document.
11741  The command 
11742 \begin_inset Quotes eld
11743 \end_inset
11744
11745
11746 \family typewriter
11747
11748 \backslash
11749 onlyslides{
11750 \backslash
11751 slides}
11752 \family default
11753
11754 \begin_inset Quotes erd
11755 \end_inset
11756
11757  will cause the output to contain only the 
11758 \family sans
11759 Slide
11760 \family default
11761 s and 
11762 \family sans
11763 Overlay
11764 \family default
11765 s.
11766  Correspondingly, the command 
11767 \begin_inset Quotes eld
11768 \end_inset
11769
11770
11771 \family typewriter
11772
11773 \backslash
11774 onlynotes{
11775 \backslash
11776 notes}
11777 \family default
11778
11779 \begin_inset Quotes erd
11780 \end_inset
11781
11782  prevents the output of anything but 
11783 \family sans
11784 Note
11785 \family default
11786 s.
11787  I'd advise placing both commands in the preamble and initially comment
11788  both out.
11789  You can then preview your entire presentation as you write.
11790  When you're done writing, you can then uncomment one of the two to select
11791  what you want to print.
11792  I like to uncomment 
11793 \begin_inset Quotes eld
11794 \end_inset
11795
11796
11797 \family typewriter
11798
11799 \backslash
11800 onlyslides{
11801 \backslash
11802 slides}
11803 \family default
11804
11805 \begin_inset Quotes erd
11806 \end_inset
11807
11808  , print to a file with 
11809 \begin_inset Quotes eld
11810 \end_inset
11811
11812
11813 \family typewriter
11814 -slides
11815 \family default
11816
11817 \begin_inset Quotes erd
11818 \end_inset
11819
11820  in its name, comment it back out, then uncomment 
11821 \begin_inset Quotes eld
11822 \end_inset
11823
11824
11825 \family typewriter
11826
11827 \backslash
11828 onlynotes{
11829 \backslash
11830 notes}
11831 \family default
11832
11833 \begin_inset Quotes erd
11834 \end_inset
11835
11836  and print to a 
11837 \begin_inset Quotes eld
11838 \end_inset
11839
11840
11841 \family typewriter
11842 *-notes.ps
11843 \family default
11844
11845 \begin_inset Quotes erd
11846 \end_inset
11847
11848  file.
11849  I can then send either file to a printer, loading transparencies or plain
11850  paper as appropriate.
11851 \end_layout
11852
11853 \begin_layout Standard
11854 You can also provide other arguments to the 
11855 \begin_inset Quotes eld
11856 \end_inset
11857
11858
11859 \family typewriter
11860
11861 \backslash
11862 onlyslides{}
11863 \family default
11864
11865 \begin_inset Quotes erd
11866 \end_inset
11867
11868  and 
11869 \begin_inset Quotes eld
11870 \end_inset
11871
11872
11873 \family typewriter
11874
11875 \backslash
11876 onlynotes{}
11877 \family default
11878
11879 \begin_inset Quotes erd
11880 \end_inset
11881
11882  commands.
11883  See a good LaTeX book for details.
11884 \end_layout
11885
11886 \begin_layout Subsection
11887 The 
11888 \family sans
11889 slides
11890 \family default
11891  Class Template File
11892 \end_layout
11893
11894 \begin_layout Standard
11895 I have also provided a template file, 
11896 \begin_inset Quotes eld
11897 \end_inset
11898
11899
11900 \family typewriter
11901 slides.lyx
11902 \family default
11903
11904 \begin_inset Quotes erd
11905 \end_inset
11906
11907 , with the 
11908 \family sans
11909 slides
11910 \family default
11911  class.
11912  To use it, begin your new presentation with 
11913 \family sans
11914 \bar under
11915 F
11916 \bar default
11917 ile\SpecialChar \menuseparator
11918 New\InsetSpace ~
11919 from\InsetSpace ~
11920
11921 \bar under
11922 T
11923 \bar default
11924 emplate
11925 \family default
11926 .
11927  Your new LyX presentation file will contain an example 
11928 \family sans
11929 Slide
11930 \family default
11931  -- 
11932 \family sans
11933 Overlay
11934 \family default
11935  --
11936 \family sans
11937  Note
11938 \family default
11939  triplet.
11940  The 
11941 \family sans
11942 Slide
11943 \family default
11944  and 
11945 \family sans
11946 Overlay
11947 \family default
11948  additionally contain an example of the use of 
11949 \family sans
11950 InvisibleText
11951 \family default
11952  and 
11953 \family sans
11954 VisibleText
11955 \family default
11956 .
11957  Lastly, the preamble will contain:
11958 \end_layout
11959
11960 \begin_layout LyX-Code
11961 % Uncomment to print out only slides and overlays
11962 \end_layout
11963
11964 \begin_layout LyX-Code
11965 %
11966 \end_layout
11967
11968 \begin_layout LyX-Code
11969 %
11970 \backslash
11971 onlyslides{
11972 \backslash
11973 slides}
11974 \newline
11975  
11976 \end_layout
11977
11978 \begin_layout LyX-Code
11979 % Uncomment to print out only notes
11980 \end_layout
11981
11982 \begin_layout LyX-Code
11983 %
11984 \end_layout
11985
11986 \begin_layout LyX-Code
11987 %
11988 \backslash
11989 onlynotes{
11990 \backslash
11991 notes}
11992 \end_layout
11993
11994 \begin_layout Standard
11995 One final thing: I created this class to support the LaTeX2e 
11996 \begin_inset Quotes eld
11997 \end_inset
11998
11999
12000 \noun on
12001 Sli
12002 \noun default
12003 TeX emulation
12004 \begin_inset Quotes erd
12005 \end_inset
12006
12007  class, one of the built-in LaTeX2e classes.
12008  Neither I nor the rest of the LyX Team endorse or oppose the use of this
12009  built-in slide class.
12010  It's here if you want it or need it.
12011  There exist other LaTeX2e classes for creating presentations, such as the
12012  
12013 \family sans
12014 Foils
12015 \family default
12016  class [see section\InsetSpace ~
12017
12018 \begin_inset LatexCommand \ref{sec:foiltex}
12019
12020 \end_inset
12021
12022 ] or the 
12023 \begin_inset Quotes eld
12024 \end_inset
12025
12026
12027 \family typewriter
12028 seminar
12029 \family default
12030
12031 \begin_inset Quotes erd
12032 \end_inset
12033
12034  package [present on some TeX distributions].
12035  The latter is not yet supported under LyX.
12036 \begin_inset Foot
12037 status collapsed
12038
12039 \begin_layout Standard
12040 Perhaps you can take on the task\SpecialChar \ldots{}
12041
12042 \end_layout
12043
12044 \end_inset
12045
12046  I know nothing about these other classes.
12047  Try them out to see what sort of alternative they provide.
12048 \end_layout
12049
12050 \begin_layout Section
12051 Foils [aka 
12052 \family sans
12053 Foil
12054 \family default
12055 \noun on
12056 TeX
12057 \noun default
12058 ]
12059 \begin_inset LatexCommand \label{sec:foiltex}
12060
12061 \end_inset
12062
12063
12064 \end_layout
12065
12066 \begin_layout Standard
12067 by 
12068 \noun on
12069 Allan Rae
12070 \end_layout
12071
12072 \begin_layout Subsection
12073 Introduction
12074 \end_layout
12075
12076 \begin_layout Standard
12077 This section describes how to use LyX to make slides for overhead projectors.
12078  There are two document classes that can do this: the default slides class
12079  and the 
12080 \family sans
12081 Foil
12082 \family default
12083 TeX slides class.
12084  This section documents the latter.
12085 \end_layout
12086
12087 \begin_layout Standard
12088 I'm going to say this again, nice and clear, so that there's no misunderstanding
12089 :
12090 \end_layout
12091
12092 \begin_layout Standard
12093 \begin_inset VSpace bigskip
12094 \end_inset
12095
12096
12097 \end_layout
12098
12099 \begin_layout Standard
12100 \align center
12101
12102 \size large
12103 This section documents the class 
12104 \begin_inset Quotes eld
12105 \end_inset
12106
12107
12108 \family sans
12109 slides (FoilTeX)
12110 \family default
12111
12112 \begin_inset Quotes erd
12113 \end_inset
12114
12115  
12116 \emph on
12117 only.
12118 \end_layout
12119
12120 \begin_layout Standard
12121 \begin_inset VSpace bigskip
12122 \end_inset
12123
12124
12125 \end_layout
12126
12127 \begin_layout Standard
12128 If you're looking for the documentation for 
12129 \begin_inset Quotes eld
12130 \end_inset
12131
12132
12133 \family sans
12134 slides (default)
12135 \family default
12136
12137 \begin_inset Quotes erd
12138 \end_inset
12139
12140 , check out section\InsetSpace ~
12141
12142 \begin_inset LatexCommand \ref{sec:slitex}
12143
12144 \end_inset
12145
12146 .
12147  If your machine doesn't have the 
12148 \family sans
12149 foils 
12150 \family default
12151 class [
12152 \begin_inset Quotes eld
12153 \end_inset
12154
12155
12156 \family sans
12157 slides (FoilTeX)
12158 \family default
12159
12160 \begin_inset Quotes erd
12161 \end_inset
12162
12163 ] installed, you'll probably have to use the default 
12164 \family sans
12165 slides
12166 \family default
12167  class, which isn't quite as good as 
12168 \family sans
12169 foils.
12170 \end_layout
12171
12172 \begin_layout Standard
12173 The 
12174 \family sans
12175 foils
12176 \family default
12177  class is designed for use with version 2.1 of the 
12178 \family sans
12179 foils.cls
12180 \family default
12181  LaTeX class file which is now an integral part of LaTeX2e.
12182 \end_layout
12183
12184 \begin_layout Subsection
12185 Getting Started
12186 \end_layout
12187
12188 \begin_layout Standard
12189 Obviously, to use this document class, you need to select 
12190 \begin_inset Quotes eld
12191 \end_inset
12192
12193
12194 \family sans
12195 slides (FoilTeX)
12196 \family default
12197
12198 \begin_inset Quotes erd
12199 \end_inset
12200
12201  from the 
12202 \family sans
12203 \bar under
12204 C
12205 \bar default
12206 lass
12207 \family default
12208  entry in the 
12209 \family sans
12210 Document\InsetSpace ~
12211 Layout
12212 \family default
12213  dialog.
12214  There are some settings in the 
12215 \family sans
12216 Document\InsetSpace ~
12217 Layout
12218 \family default
12219  dialog that you should know about that are specific to this class:
12220 \end_layout
12221
12222 \begin_layout Itemize
12223 Don't change the options 
12224 \family sans
12225 Sides
12226 \family default
12227  and 
12228 \family sans
12229 Columns
12230 \family default
12231  on the 
12232 \family sans
12233 Document\InsetSpace ~
12234 Layout
12235 \family default
12236  dialog.
12237  They're ignored by the 
12238 \family sans
12239 foils
12240 \family default
12241  class.
12242 \end_layout
12243
12244 \begin_layout Itemize
12245 The default font size is 20pt with the other options being 17pt, 25pt and
12246  30pt.
12247 \end_layout
12248
12249 \begin_layout Itemize
12250 The default font is 
12251 \family sans
12252 sans
12253 \family default
12254  
12255 \family sans
12256 serif
12257 \family default
12258  but all math equations are still typeset in the usual roman font.
12259 \end_layout
12260
12261 \begin_layout Itemize
12262
12263 \family sans
12264 Foil
12265 \family default
12266 TeX supports A4 and Letter paper sizes as well as a special size for working
12267  with 35mm slides.
12268  It doesn't support A5, B5, legal or executive paper sizes.
12269 \end_layout
12270
12271 \begin_layout Itemize
12272 Don't bother changing the 
12273 \family sans
12274 Float Placement
12275 \family default
12276  settings because they are ignored anyway.
12277  All floats appear where they are defined in the text.
12278 \end_layout
12279
12280 \begin_layout Itemize
12281 The 
12282 \family sans
12283 \bar under
12284 P
12285 \bar default
12286 agestyle
12287 \family default
12288  setting behaves a bit differently for this class.
12289  
12290 \family sans
12291 Foil
12292 \family default
12293 TeX provides extensive footer and header capabilities including a user-defined
12294  logo.
12295  See section\InsetSpace ~
12296
12297 \begin_inset LatexCommand \ref{sec:foilfoot}
12298
12299 \end_inset
12300
12301  for more details.
12302  The title page is treated differently to all other pages in the document
12303  and is 
12304 \emph on
12305 always
12306 \emph default
12307  unnumbered and 
12308 \emph on
12309 always
12310 \emph default
12311  has the logo centered at the bottom of the page (if one is defined).
12312  The possible page style choices and what they do are as follows:
12313 \end_layout
12314
12315 \begin_deeper
12316 \begin_layout List
12317 \labelwidthstring MMMMMMM
12318
12319 \family sans
12320 \series bold
12321 empty
12322 \family default
12323 \series default
12324  The final output contains no page numbers, or other headers or footers
12325  (except footnotes of course).
12326  
12327 \end_layout
12328
12329 \begin_layout List
12330 \labelwidthstring MMMMMMM
12331
12332 \family sans
12333 \series bold
12334 plain
12335 \family default
12336 \series default
12337  The final output contains page numbers centered at the bottom of the page.
12338  No other headings or footers (other than footnotes).
12339 \end_layout
12340
12341 \begin_layout List
12342 \labelwidthstring MMMMMMM
12343
12344 \series bold
12345 foilheadings
12346 \series default
12347  Page numbers in lower right corner.
12348  Additional headers and footers are also shown.
12349  This is also the default.
12350 \end_layout
12351
12352 \begin_layout List
12353 \labelwidthstring MMMMMMM
12354
12355 \series bold
12356 fancy
12357 \series default
12358  Gives you access to the 
12359 \family sans
12360 fancyheadings
12361 \family default
12362  package although its use with 
12363 \family sans
12364 Foil
12365 \family default
12366 TeX is discouraged by the writer of the 
12367 \family sans
12368 Foil
12369 \family default
12370 TeX package because of some potential page layout clashes.
12371 \end_layout
12372
12373 \end_deeper
12374 \begin_layout Subsubsection
12375 Extra Options
12376 \end_layout
12377
12378 \begin_layout Standard
12379 The following options may be used in the extra class options in the 
12380 \family sans
12381 \bar under
12382 D
12383 \bar default
12384 ocument\SpecialChar \menuseparator
12385
12386 \bar under
12387 S
12388 \bar default
12389 ettings
12390 \family default
12391  dialog.
12392 \end_layout
12393
12394 \begin_layout List
12395 \labelwidthstring MMMMMMx
12396
12397 \series bold
12398 35mmSlide
12399 \series default
12400  This sets up the page layout for 7.33in by 11in paper, which is about the
12401  same aspect ratio as a 35mm slide, making it a bit easier to work with
12402  this medium.
12403 \end_layout
12404
12405 \begin_layout List
12406 \labelwidthstring MMMMMMx
12407
12408 \series bold
12409 headrule
12410 \series default
12411  Places a rule across the page below the header on every page except the
12412  title page.
12413 \end_layout
12414
12415 \begin_layout List
12416 \labelwidthstring MMMMMMx
12417
12418 \series bold
12419 footrule
12420 \series default
12421  Places a rule across the page above the footer on every page except the
12422  title page.
12423 \end_layout
12424
12425 \begin_layout List
12426 \labelwidthstring MMMMMMx
12427
12428 \series bold
12429 dvips
12430 \series default
12431  This is automatically set each time you create a new 
12432 \family sans
12433 foils
12434 \family default
12435  document.
12436  This option tells 
12437 \family sans
12438 Foil
12439 \family default
12440 TeX to use the dvips driver to rotate those pages that are set as landscape
12441  foils.
12442 \end_layout
12443
12444 \begin_layout List
12445 \labelwidthstring MMMMMMx
12446
12447 \series bold
12448 landscape
12449 \series default
12450  Simply changes the page dimensions to those of a landscape page but doesn't
12451  do any rotation.
12452  Thus if you use this option you need to use an external program to rotate
12453  each page or feed your paper through your printer as landscape.
12454  Note that this option effectively reverses the roles of the 
12455 \family sans
12456 Foilhead
12457 \family default
12458  and 
12459 \family sans
12460 Rotatefoilhead
12461 \family default
12462  environments (don't worry these are described in the next section).
12463 \end_layout
12464
12465 \begin_layout List
12466 \labelwidthstring MMMMMMx
12467
12468 \series bold
12469 leqno
12470 \series default
12471  Equation numbers on the left.
12472 \end_layout
12473
12474 \begin_layout List
12475 \labelwidthstring MMMMMMx
12476
12477 \series bold
12478 fleqn
12479 \series default
12480  Flush-left equations.
12481 \end_layout
12482
12483 \begin_layout Subsection
12484 Supported Environments
12485 \end_layout
12486
12487 \begin_layout Standard
12488 Most of the environments commonly supported in other classes are also supported
12489  by the 
12490 \family sans
12491 foils
12492 \family default
12493  class.
12494  There are several additional environments provided by 
12495 \family sans
12496 Foil
12497 \family default
12498 TeX as well as a couple added by LyX.
12499  The following environments are shared with other classes:
12500 \end_layout
12501
12502 \begin_layout Standard
12503 \begin_inset ERT
12504 status inlined
12505
12506 \begin_layout Standard
12507
12508 \backslash
12509 begin{multicols}{2}
12510 \end_layout
12511
12512 \end_inset
12513
12514
12515 \end_layout
12516
12517 \begin_layout Itemize
12518
12519 \family sans
12520 Standard
12521 \end_layout
12522
12523 \begin_layout Itemize
12524
12525 \family sans
12526 Itemize
12527 \end_layout
12528
12529 \begin_layout Itemize
12530
12531 \family sans
12532 Enumerate
12533 \end_layout
12534
12535 \begin_layout Itemize
12536
12537 \family sans
12538 Description
12539 \end_layout
12540
12541 \begin_layout Itemize
12542
12543 \family sans
12544 List
12545 \end_layout
12546
12547 \begin_layout Itemize
12548
12549 \family sans
12550 LyX-Code
12551 \end_layout
12552
12553 \begin_layout Itemize
12554
12555 \family sans
12556 Verse
12557 \end_layout
12558
12559 \begin_layout Itemize
12560
12561 \family sans
12562 Quote
12563 \end_layout
12564
12565 \begin_layout Itemize
12566
12567 \family sans
12568 Quotation
12569 \end_layout
12570
12571 \begin_layout Itemize
12572
12573 \family sans
12574 Title
12575 \end_layout
12576
12577 \begin_layout Itemize
12578
12579 \family sans
12580 Author
12581 \end_layout
12582
12583 \begin_layout Itemize
12584
12585 \family sans
12586 Date
12587 \end_layout
12588
12589 \begin_layout Itemize
12590
12591 \family sans
12592 Abstract
12593 \end_layout
12594
12595 \begin_layout Itemize
12596
12597 \family sans
12598 Bibliography
12599 \end_layout
12600
12601 \begin_layout Itemize
12602
12603 \family sans
12604 Address
12605 \end_layout
12606
12607 \begin_layout Itemize
12608
12609 \family sans
12610 RightAddress
12611 \end_layout
12612
12613 \begin_layout Itemize
12614
12615 \family sans
12616 Caption
12617 \end_layout
12618
12619 \begin_layout Itemize
12620
12621 \family sans
12622 Comment
12623 \end_layout
12624
12625 \begin_layout Standard
12626 \begin_inset ERT
12627 status inlined
12628
12629 \begin_layout Standard
12630
12631 \backslash
12632 end{multicols}
12633 \end_layout
12634
12635 \end_inset
12636
12637
12638 \end_layout
12639
12640 \begin_layout Standard
12641 That is, all the major environments apart from the sectioning environments.
12642  Since foils are essentially self-contained sections, with a title and body,
12643  
12644 \family sans
12645 Foil
12646 \family default
12647 TeX provides specific commands for starting new foils and these are:
12648 \end_layout
12649
12650 \begin_layout Itemize
12651
12652 \family sans
12653 Foilhead
12654 \end_layout
12655
12656 \begin_layout Itemize
12657
12658 \family sans
12659 Rotatefoilhead
12660 \end_layout
12661
12662 \begin_layout Standard
12663 LyX also provides slightly modified versions of these two environments called:
12664 \end_layout
12665
12666 \begin_layout Itemize
12667
12668 \family sans
12669 ShortFoilhead
12670 \end_layout
12671
12672 \begin_layout Itemize
12673
12674 \family sans
12675 ShortRotatefoilhead
12676 \end_layout
12677
12678 \begin_layout Standard
12679 and the differences will be explained in the next section.
12680 \end_layout
12681
12682 \begin_layout Standard
12683 Since foils are often used in presenting ideas or new theorems and such
12684  
12685 \family sans
12686 Foil
12687 \family default
12688 TeX also provides a comprehensive box of goodies for presenting them:
12689 \end_layout
12690
12691 \begin_layout Standard
12692 \begin_inset ERT
12693 status inlined
12694
12695 \begin_layout Standard
12696
12697 \backslash
12698 begin{multicols}{2}
12699 \end_layout
12700
12701 \end_inset
12702
12703
12704 \end_layout
12705
12706 \begin_layout Itemize
12707
12708 \family sans
12709 Theorem
12710 \end_layout
12711
12712 \begin_layout Itemize
12713
12714 \family sans
12715 Lemma
12716 \end_layout
12717
12718 \begin_layout Itemize
12719
12720 \family sans
12721 Corollary
12722 \end_layout
12723
12724 \begin_layout Itemize
12725
12726 \family sans
12727 Proposition
12728 \end_layout
12729
12730 \begin_layout Itemize
12731
12732 \family sans
12733 Definition
12734 \end_layout
12735
12736 \begin_layout Itemize
12737
12738 \family sans
12739 Proof
12740 \end_layout
12741
12742 \begin_layout Itemize
12743
12744 \family sans
12745 Theorem*
12746 \end_layout
12747
12748 \begin_layout Itemize
12749
12750 \family sans
12751 Lemma*
12752 \end_layout
12753
12754 \begin_layout Itemize
12755
12756 \family sans
12757 Corollary*
12758 \end_layout
12759
12760 \begin_layout Itemize
12761
12762 \family sans
12763 Proposition*
12764 \end_layout
12765
12766 \begin_layout Itemize
12767
12768 \family sans
12769 Definition*
12770 \end_layout
12771
12772 \begin_layout Standard
12773 \begin_inset ERT
12774 status inlined
12775
12776 \begin_layout Standard
12777
12778 \backslash
12779 end{multicols}
12780 \end_layout
12781
12782 \end_inset
12783
12784
12785 \end_layout
12786
12787 \begin_layout Standard
12788 The starred versions are unnumbered while the unstarred versions are numbered.
12789  There are also two list environments added by LyX and these are:
12790 \end_layout
12791
12792 \begin_layout Itemize
12793
12794 \family sans
12795 TickList
12796 \end_layout
12797
12798 \begin_layout Itemize
12799
12800 \family sans
12801 CrossList
12802 \end_layout
12803
12804 \begin_layout Standard
12805
12806 \family sans
12807 Foil
12808 \family default
12809 TeX provides some powerful header and footer capabilities that are best
12810  set in the preamble although they may be set at any point in a document.
12811  If you want to change these settings in your document the best place to
12812  do so is at the very top of a foil, 
12813 \emph on
12814 i.e.
12815
12816 \emph default
12817  straight after the foilhead.
12818 \end_layout
12819
12820 \begin_layout Standard
12821 For this purpose, the following command styles are provided [
12822 \shape smallcaps
12823 Martin Vermeer
12824 \shape default
12825 ]:
12826 \end_layout
12827
12828 \begin_layout Standard
12829 \begin_inset ERT
12830 status inlined
12831
12832 \begin_layout Standard
12833
12834 \backslash
12835 begin{multicols}{2}
12836 \end_layout
12837
12838 \end_inset
12839
12840
12841 \end_layout
12842
12843 \begin_layout Itemize
12844
12845 \family sans
12846 My\InsetSpace ~
12847 Logo
12848 \end_layout
12849
12850 \begin_layout Itemize
12851
12852 \family sans
12853 Restriction
12854 \end_layout
12855
12856 \begin_layout Itemize
12857
12858 \family sans
12859 Right\InsetSpace ~
12860 Footer
12861 \end_layout
12862
12863 \begin_layout Itemize
12864
12865 \family sans
12866 Right\InsetSpace ~
12867 Header
12868 \end_layout
12869
12870 \begin_layout Itemize
12871
12872 \family sans
12873 Left\InsetSpace ~
12874 Header
12875 \end_layout
12876
12877 \begin_deeper
12878 \begin_layout Standard
12879 \InsetSpace ~
12880
12881 \end_layout
12882
12883 \end_deeper
12884 \begin_layout Standard
12885 \begin_inset ERT
12886 status inlined
12887
12888 \begin_layout Standard
12889
12890 \backslash
12891 end{multicols}
12892 \end_layout
12893
12894 \end_inset
12895
12896
12897 \end_layout
12898
12899 \begin_layout Standard
12900 There are also a few commands provided by 
12901 \family sans
12902 Foil
12903 \family default
12904 TeX that aren't directly supported by LyX but I'll tell you what they do
12905  and how to use them in section\InsetSpace ~
12906
12907 \begin_inset LatexCommand \ref{sec:unsuppfoils}
12908
12909 \end_inset
12910
12911 .
12912 \end_layout
12913
12914 \begin_layout Subsection
12915 Building a Set of Foils
12916 \end_layout
12917
12918 \begin_layout Standard
12919 This section will give a simple introduction to using the different environments
12920  to build a set of foils.
12921  If you want to see an example set of foils take a look at the 
12922 \family typewriter
12923 Foils.lyx
12924 \family default
12925  file accessible from the 
12926 \family sans
12927 \bar under
12928 F
12929 \bar default
12930 ile\SpecialChar \menuseparator
12931
12932 \bar under
12933 O
12934 \bar default
12935 pen\SpecialChar \ldots{}
12936
12937 \family default
12938  dialog under the 
12939 \family sans
12940 Examples
12941 \family default
12942  button.
12943  
12944 \end_layout
12945
12946 \begin_layout Subsubsection
12947 Give It a Title Page
12948 \end_layout
12949
12950 \begin_layout Standard
12951 Unlike other classes that provide 
12952 \family sans
12953 Title
12954 \family default
12955
12956 \family sans
12957 Author
12958 \family default
12959
12960 \family sans
12961 Date
12962 \family default
12963  and 
12964 \family sans
12965 Abstract
12966 \family default
12967  environments, 
12968 \family sans
12969 foils
12970 \family default
12971  creates the title on a page of its own.
12972  If you leave out the 
12973 \family sans
12974 Date
12975 \family default
12976  environment LaTeX will substitute the current date (every time you regenerate
12977  the output).
12978 \end_layout
12979
12980 \begin_layout Subsubsection
12981 Start a New Foil
12982 \end_layout
12983
12984 \begin_layout Standard
12985 As I mentioned earlier, there are four ways of starting a new foil.
12986  For portrait foils you should use 
12987 \family sans
12988 Foilhead
12989 \family default
12990  or 
12991 \family sans
12992 ShortFoilhead.
12993
12994 \family default
12995  The difference between these two environments is the amount of space between
12996  the title of the foil (the foilhead) and the body of the foil.
12997 \end_layout
12998
12999 \begin_layout Standard
13000 Landscape foils are generated using the 
13001 \family sans
13002 Rotatefoilhead
13003 \family default
13004  and 
13005 \family sans
13006 ShortRotatefoilhead
13007 \family default
13008  environments.
13009  Again the only difference is the spacing between foilhead and body.
13010  Both of the short versions have 0.5 inches less separation between the foilhead
13011  and the body.
13012  
13013 \end_layout
13014
13015 \begin_layout Standard
13016 One problem with the support for landscape foils is the requirement that
13017  you have to use the 
13018 \family typewriter
13019 dvips
13020 \family default
13021  driver to generate the PostScript® output otherwise the foils won't be
13022  rotated.
13023  It is possible to get landscape foils even if you haven't got the 
13024 \family typewriter
13025 dvips
13026 \family default
13027  driver provided you can feed your foils sideways through your printer ;-)
13028 \end_layout
13029
13030 \begin_layout Subsubsection
13031 Theorems, Lemmas, Proofs and more
13032 \end_layout
13033
13034 \begin_layout Standard
13035 Due to a small bug in LyX you can't have two of the same type of these environme
13036 nts directly following each other.
13037  They must be separated by something.
13038  If you try, you will just be extending the previous environment as if you
13039  had merged the two environments together.
13040  So, how do you get around this problem? The simplest option is to insert
13041  some text between the two environments or add a 
13042 \family sans
13043 LaTeX
13044 \family default
13045  environment between the two with just a 
13046 \begin_inset Quotes eld
13047 \end_inset
13048
13049
13050 \family typewriter
13051 %
13052 \family default
13053
13054 \begin_inset Quotes erd
13055 \end_inset
13056
13057  in it.
13058  This will force LyX to produce two separate environments and hence the
13059  correct LaTeX output.
13060  An example is provided in the example file included with the LyX distribution.
13061  Remember, this problem only occurs if you are trying to place two of the
13062  same type of theorem-like environments one directly after the other.
13063 \end_layout
13064
13065 \begin_layout Subsubsection
13066 Lists
13067 \end_layout
13068
13069 \begin_layout Standard
13070 You get all the commonly supported list styles found in other classes as
13071  well as two new ones.
13072  I'll only describe the new ones here.
13073  If you want to find out more about the other list environments check out
13074  the 
13075 \emph on
13076 User's Guide.
13077
13078 \emph default
13079  If you intend to use itemized lists you might also want to read about the
13080  
13081 \family sans
13082 Itemize\InsetSpace ~
13083 Bullet\InsetSpace ~
13084 Selection
13085 \family default
13086  dialog described above in section\InsetSpace ~
13087
13088 \begin_inset LatexCommand \ref{sec:bullet}
13089
13090 \end_inset
13091
13092 .
13093 \end_layout
13094
13095 \begin_layout Standard
13096 The two new list styles, 
13097 \family sans
13098 TickList 
13099 \family default
13100 and 
13101 \family sans
13102 CrossList
13103 \family default
13104 , are designed to make it easier for you to create lists of do's and don'ts
13105  or right and wrong by providing dedicated environments that use a tick
13106  or a cross as the label of the list.
13107  These lists are in fact dedicated variants of the 
13108 \family sans
13109 Itemize
13110 \family default
13111  environment.
13112  They do however require that you have the 
13113 \family typewriter
13114 psnfss
13115 \family default
13116  packages installed.
13117 \end_layout
13118
13119 \begin_layout Subsubsection
13120 Figures and Tables
13121 \end_layout
13122
13123 \begin_layout Standard
13124
13125 \family sans
13126 Foil
13127 \family default
13128 TeX redefines the floating tables and figures so that they appear exactly
13129  where they are in the text rather than pushing them to the top of the page
13130  or to some user specified location.
13131  In fact if you change the float placement settings they are simply ignored.
13132 \end_layout
13133
13134 \begin_layout Subsubsection
13135 Page Headers and Footers
13136 \begin_inset LatexCommand \label{sec:foilfoot}
13137
13138 \end_inset
13139
13140
13141 \end_layout
13142
13143 \begin_layout Standard
13144
13145 \family sans
13146 My\InsetSpace ~
13147 Logo
13148 \family default
13149  and 
13150 \family sans
13151 Restriction
13152 \family default
13153  are two commands used to control the left-footer text string.
13154  The first is meant to allow you to include a graphic logo on your foils
13155  and defaults to 
13156 \begin_inset Quotes eld
13157 \end_inset
13158
13159 -Typeset by 
13160 \family sans
13161 Foil
13162 \family default
13163 TeX-
13164 \begin_inset Quotes erd
13165 \end_inset
13166
13167 .
13168  While the second is meant to provide a classification for the audience,
13169  
13170 \emph on
13171 e.g.
13172
13173 \emph default
13174  Confidential.
13175  It is empty by default.
13176 \end_layout
13177
13178 \begin_layout Standard
13179 The remaining page corners can be filled by
13180 \family sans
13181  Right\InsetSpace ~
13182 Footer
13183 \family default
13184  (which defaults to page numbers), 
13185 \family sans
13186 Right\InsetSpace ~
13187 Header
13188 \family default
13189  (top right) and 
13190 \family sans
13191 Left\InsetSpace ~
13192 Header
13193 \family default
13194  (top left).
13195 \end_layout
13196
13197 \begin_layout Subsection
13198 Unsupported 
13199 \family sans
13200 Foil
13201 \family default
13202 TeX Goodies
13203 \begin_inset LatexCommand \label{sec:unsuppfoils}
13204
13205 \end_inset
13206
13207
13208 \end_layout
13209
13210 \begin_layout Standard
13211 All the commands mentioned below need to be set in a 
13212 \family sans
13213 LaTeX
13214 \family default
13215  environment or as 
13216 \family sans
13217 TeX
13218 \family default
13219  within another environment.
13220 \end_layout
13221
13222 \begin_layout Subsubsection
13223 Lengths
13224 \end_layout
13225
13226 \begin_layout Standard
13227 All lengths are adjusted using the 
13228 \family typewriter
13229
13230 \backslash
13231 setlength{
13232 \family default
13233 \emph on
13234 lengthname
13235 \family typewriter
13236 \emph default
13237 }{
13238 \family default
13239 \emph on
13240 newlength
13241 \family typewriter
13242 \emph default
13243 }
13244 \family default
13245  command.
13246  Where 
13247 \emph on
13248 lengthname
13249 \emph default
13250  should be replaced by the name given to the length you want to change and
13251  
13252 \emph on
13253 newlength
13254 \emph default
13255  is the length value.
13256  All lengths should be specified in units of length such as inches (
13257 \family typewriter
13258 in
13259 \family default
13260 ), millimeters (
13261 \family typewriter
13262 mm
13263 \family default
13264 ) or points (
13265 \family typewriter
13266 pt
13267 \family default
13268 ) or relative to some document or font-based length such as 
13269 \family typewriter
13270
13271 \backslash
13272 textwidth
13273 \family default
13274 .
13275  
13276 \end_layout
13277
13278 \begin_layout Standard
13279 It's possible to change the spacing between a foilhead and the body of the
13280  foil by adjusting the length specified by 
13281 \family typewriter
13282
13283 \backslash
13284 foilheadskip
13285 \family default
13286 .
13287  For example, to make 
13288 \emph on
13289 all
13290 \emph default
13291  foilheads 0.5 inches closer to their bodies put the following in the preamble:
13292  
13293 \family typewriter
13294
13295 \backslash
13296 setlength{
13297 \backslash
13298 foilheadskip}{-0.5in}
13299 \end_layout
13300
13301 \begin_layout Standard
13302 The spacings around floats can be adjusted by setting these lengths:
13303 \end_layout
13304
13305 \begin_layout List
13306 \labelwidthstring MMMMMMMMMMM
13307
13308 \family typewriter
13309
13310 \backslash
13311 abovefloatskip 
13312 \family default
13313 Separation between the text and the top of the float
13314 \end_layout
13315
13316 \begin_layout List
13317 \labelwidthstring MMMMMMMMMMM
13318
13319 \family typewriter
13320
13321 \backslash
13322 abovecaptionskip 
13323 \family default
13324 Separation between the float and the caption
13325 \end_layout
13326
13327 \begin_layout List
13328 \labelwidthstring MMMMMMMMMMM
13329
13330 \family typewriter
13331
13332 \backslash
13333 belowcaptionskip 
13334 \family default
13335 Separation between the caption and the following text
13336 \end_layout
13337
13338 \begin_layout List
13339 \labelwidthstring MMMMMMMMMMM
13340
13341 \family typewriter
13342
13343 \backslash
13344 captionwidth
13345 \family default
13346  You can make the captions narrower than the surrounding text by adjusting
13347  this length.
13348  Best done relative to 
13349 \family typewriter
13350
13351 \backslash
13352 textwidth
13353 \family default
13354 .
13355 \end_layout
13356
13357 \begin_layout Standard
13358 There are also several title page related lengths that you may find useful
13359  if you have a long title or several authors:
13360 \end_layout
13361
13362 \begin_layout List
13363 \labelwidthstring MMMMMMMMMMM
13364
13365 \family typewriter
13366
13367 \backslash
13368 abovetitleskip
13369 \family default
13370  Separation from headers to 
13371 \family sans
13372 Title
13373 \end_layout
13374
13375 \begin_layout List
13376 \labelwidthstring MMMMMMMMMMM
13377
13378 \family typewriter
13379
13380 \backslash
13381 titleauthorskip
13382 \family default
13383  between 
13384 \family sans
13385 Title
13386 \family default
13387  and 
13388 \family sans
13389 Author
13390 \family default
13391  environments
13392 \end_layout
13393
13394 \begin_layout List
13395 \labelwidthstring MMMMMMMMMMM
13396
13397 \family typewriter
13398
13399 \backslash
13400 authorauthorskip
13401 \family default
13402  between multiple 
13403 \family sans
13404 Author
13405 \family default
13406  lines
13407 \end_layout
13408
13409 \begin_layout List
13410 \labelwidthstring MMMMMMMMMMM
13411
13412 \family typewriter
13413
13414 \backslash
13415 authordateskip
13416 \family default
13417  between the 
13418 \family sans
13419 Author
13420 \family default
13421  and the 
13422 \family sans
13423 Date
13424 \end_layout
13425
13426 \begin_layout List
13427 \labelwidthstring MMMMMMMMMMM
13428
13429 \family typewriter
13430
13431 \backslash
13432 dateabstractskip
13433 \family default
13434  between the 
13435 \family sans
13436 Date
13437 \family default
13438  and the 
13439 \family sans
13440 Abstract
13441 \end_layout
13442
13443 \begin_layout Standard
13444 The last length related command affects all the list environments.
13445  If you place
13446 \family typewriter
13447  
13448 \backslash
13449 zerolistvertdimens
13450 \family default
13451  
13452 \emph on
13453 inside
13454 \emph default
13455  a list environment then all the vertical spacing between the list items
13456  is removed.
13457  Note that this is a command not a length so it doesn't require 
13458 \family typewriter
13459
13460 \backslash
13461 setlength
13462 \family default
13463  like the stuff mentioned above.
13464 \end_layout
13465
13466 \begin_layout Subsubsection
13467 Headers and Footers
13468 \end_layout
13469
13470 \begin_layout Standard
13471 The 
13472 \family typewriter
13473
13474 \backslash
13475 LogoOn
13476 \family default
13477  and 
13478 \family typewriter
13479
13480 \backslash
13481 LogoOff
13482 \family default
13483  commands control whether the logo in the 
13484 \family sans
13485 MyLogo
13486 \family default
13487  definition appear on a given page.
13488  If you put 
13489 \family typewriter
13490
13491 \backslash
13492 LogoOff
13493 \family default
13494  in the preamble then none of the foils will have the logo on them.
13495  If you don't want the logo on a particular page place the 
13496 \family typewriter
13497
13498 \backslash
13499 LogoOff
13500 \family default
13501  directly after the foilhead of that page and the 
13502 \family typewriter
13503
13504 \backslash
13505 LogoOn
13506 \family default
13507  directly after the next foilhead.
13508 \end_layout
13509
13510 \begin_layout Standard
13511 If you decide to use the 
13512 \family sans
13513 fancy
13514 \family default
13515  page style setting in the 
13516 \family sans
13517 Document\InsetSpace ~
13518 Layout
13519 \family default
13520  dialog you should probably add 
13521 \family typewriter
13522
13523 \backslash
13524 let
13525 \backslash
13526 headwidth
13527 \backslash
13528 textwidth
13529 \family default
13530  to your preamble so headers and footers on landscape pages are correctly
13531  placed when rotated.
13532  This is due to some clashes between the page layouts provided by the 
13533 \family sans
13534 fancyheadings
13535 \family default
13536  package and the 
13537 \family sans
13538 foils
13539 \family default
13540  class.
13541 \end_layout
13542
13543 \begin_layout Section
13544 Latex8 (IEEE Conference Papers)
13545 \end_layout
13546
13547 \begin_layout Standard
13548 by 
13549 \noun on
13550 Allan Rae
13551 \end_layout
13552
13553 \begin_layout Subsection
13554 Introduction
13555 \end_layout
13556
13557 \begin_layout Standard
13558 Since this class is specifically for writing submissions to IEEE sponsored
13559  conferences I strongly recommend that you get a copy of their Authors Kit.
13560  The 
13561 \family sans
13562 latex.sty
13563 \family default
13564  package and associated bibliography style file is included in the kit.
13565  The Authors Kit is usually sent out by email once your initial submission
13566  has been accepted.
13567  There is a lot of useful information in the Authors Kit explaining formatting
13568  restrictions and so on and I will assume you have read this since that
13569  means I don't have to repeat it all here.
13570 \end_layout
13571
13572 \begin_layout Subsection
13573 Getting Started
13574 \end_layout
13575
13576 \begin_layout Standard
13577 [AR\SpecialChar \@.
13578  more to come]
13579 \end_layout
13580
13581 \begin_layout Subsection
13582 Supported Environments
13583 \end_layout
13584
13585 \begin_layout Itemize
13586
13587 \family sans
13588 Standard
13589 \end_layout
13590
13591 \begin_layout Itemize
13592
13593 \family sans
13594 Title
13595 \end_layout
13596
13597 \begin_layout Itemize
13598
13599 \family sans
13600 Author
13601 \end_layout
13602
13603 \begin_layout Itemize
13604
13605 \family sans
13606 E-mail
13607 \end_layout
13608
13609 \begin_layout Itemize
13610
13611 \family sans
13612 Affiliation
13613 \end_layout
13614
13615 \begin_layout Itemize
13616
13617 \family sans
13618 Abstract
13619 \end_layout
13620
13621 \begin_layout Itemize
13622
13623 \family sans
13624 Section
13625 \end_layout
13626
13627 \begin_layout Itemize
13628
13629 \family sans
13630 SubSection
13631 \end_layout
13632
13633 \begin_layout Itemize
13634
13635 \family sans
13636 Caption
13637 \end_layout
13638
13639 \begin_layout Subsection
13640 Differences Between Screen and Paper
13641 \end_layout
13642
13643 \begin_layout Standard
13644 There are slight differences in appearance mainly with the presentation
13645  of section counters.
13646  On screen the trailing period of the section counter is missing but it
13647  will appear in the output so don't let this worry you.
13648 \end_layout
13649
13650 \begin_layout Section
13651 Hollywood (Hollywood spec scripts)
13652 \end_layout
13653
13654 \begin_layout Standard
13655 by 
13656 \shape smallcaps
13657 Garst Reese
13658 \end_layout
13659
13660 \begin_layout Subsection
13661 Introduction
13662 \end_layout
13663
13664 \begin_layout Standard
13665 Getting the format of a Hollywood script right is a 
13666 \begin_inset Quotes eld
13667 \end_inset
13668
13669 rite of passage.
13670 \begin_inset Quotes erd
13671 \end_inset
13672
13673  It is designed to make the readers focus on content and to be easy and
13674  familiar for the actors to read.
13675  Each page of a script should be one minute of film.
13676  Nothing goes in a script that you cannot see or hear on screen.
13677  The courier 12 pt font should be used throughout.
13678  No italics.
13679 \end_layout
13680
13681 \begin_layout Subsection
13682 Special problems
13683 \end_layout
13684
13685 \begin_layout Standard
13686 Speakers' lines should NEVER break in mid-sentence.
13687  If a speaker's lines continue over a page break, repeat the 
13688 \family sans
13689 Speaker
13690 \family default
13691  title followed by (Cont'd).
13692 \end_layout
13693
13694 \begin_layout Subsection
13695 Special features
13696 \end_layout
13697
13698 \begin_layout Standard
13699 Insert the 
13700 \family sans
13701 Speaker
13702 \family default
13703  names as labels then cross-reference the label to insert the name.
13704  The cross-reference dialog will show the current cast of characters.
13705  You can use this to insert the speaker name in narratives also.
13706 \end_layout
13707
13708 \begin_layout Subsection
13709 Paper size and Margins
13710 \end_layout
13711
13712 \begin_layout Standard
13713 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
13714 \end_layout
13715
13716 \begin_layout Subsection
13717 Environments
13718 \end_layout
13719
13720 \begin_layout Standard
13721 The following environments are available.
13722  You can use hollywood.bind to get the bind keys shown at the right.
13723 \end_layout
13724
13725 \begin_layout Itemize
13726
13727 \family sans
13728 Standard
13729 \newline
13730
13731 \family default
13732 Used where nothing else works.
13733  Try to avoid it.
13734 \end_layout
13735
13736 \begin_layout Itemize
13737
13738 \family sans
13739 FADE_IN
13740 \family default
13741 :
13742 \hfill
13743
13744 \family sans
13745 M-z S-I
13746 \family default
13747
13748 \newline
13749 Usually followed by something like 
13750 \begin_inset Quotes eld
13751 \end_inset
13752
13753 on Sally waking up.
13754 \begin_inset Quotes erd
13755 \end_inset
13756
13757
13758 \end_layout
13759
13760 \begin_layout Itemize
13761
13762 \family sans
13763 INT:
13764 \hfill
13765 M-z i
13766 \newline
13767
13768 \family default
13769 Introduces a new INTERIOR camera set-up.
13770  Always followed by DAY or NIGHT, or something similar to define the lighting
13771  required.
13772  Everthing on this line in CAPS.
13773 \end_layout
13774
13775 \begin_layout Itemize
13776
13777 \family sans
13778 EXT:
13779 \hfill
13780 M-z e
13781 \newline
13782
13783 \family default
13784 Introduces a new EXTERIOR camera set-up.
13785  Everthing on this line in CAPS.
13786 \end_layout
13787
13788 \begin_layout Itemize
13789
13790 \family sans
13791 Speaker
13792 \hfill
13793 M-z s
13794 \newline
13795
13796 \family default
13797 The character speaking.
13798 \end_layout
13799
13800 \begin_layout Itemize
13801
13802 \family sans
13803 Parenthetical
13804 \hfill
13805 M-z p
13806 \newline
13807
13808 \family default
13809 Instructions to the speaker.
13810  The () are automatically inserted, but only the ( will show in LyX.
13811  Both will be printed.
13812 \end_layout
13813
13814 \begin_layout Itemize
13815
13816 \family sans
13817 Dialogue
13818 \hfill
13819 M-z d
13820 \newline
13821
13822 \family default
13823 What the 
13824 \family sans
13825 Speaker
13826 \family default
13827  says.
13828 \end_layout
13829
13830 \begin_layout Itemize
13831
13832 \family sans
13833 Transition
13834 \hfill
13835 M-z t
13836 \newline
13837
13838 \family default
13839 Camera movement instruction.
13840  e.g.
13841  CUT TO:
13842 \end_layout
13843
13844 \begin_layout Itemize
13845
13846 \family sans
13847 FADE OUT:
13848 \hfill
13849 M-z S-I
13850 \end_layout
13851
13852 \begin_layout Itemize
13853
13854 \family sans
13855 Author
13856 \hfill
13857 M-z S-A
13858 \end_layout
13859
13860 \begin_layout Itemize
13861
13862 \family sans
13863 Title
13864 \hfill
13865 M-z S-T
13866 \end_layout
13867
13868 \begin_layout Itemize
13869
13870 \family sans
13871 Right_Address
13872 \hfill
13873 M-z r
13874 \end_layout
13875
13876 \begin_layout Subsection
13877 Script jargon
13878 \end_layout
13879
13880 \begin_layout Itemize
13881 (O.S) --- off screen
13882 \end_layout
13883
13884 \begin_layout Itemize
13885 (V.0) --- voice over
13886 \end_layout
13887
13888 \begin_layout Itemize
13889 b.g.
13890  --- background
13891 \end_layout
13892
13893 \begin_layout Itemize
13894 C.U.
13895  --- close-up
13896 \end_layout
13897
13898 \begin_layout Itemize
13899 PAN --- camera movement
13900 \end_layout
13901
13902 \begin_layout Itemize
13903 INSERT --- cut to close-up of
13904 \end_layout
13905
13906 \begin_layout Section
13907 Broadway
13908 \end_layout
13909
13910 \begin_layout Standard
13911 by 
13912 \shape smallcaps
13913 Garst Reese
13914 \end_layout
13915
13916 \begin_layout Subsection
13917 Introduction
13918 \end_layout
13919
13920 \begin_layout Standard
13921 Broadway is for writing plays.
13922  The format is more decorative than Hollywood, and much less standardized.
13923  This format should be suitable for workshops.
13924 \end_layout
13925
13926 \begin_layout Subsection
13927 Special problems
13928 \end_layout
13929
13930 \begin_layout Standard
13931 The same as in Hollywood.
13932 \end_layout
13933
13934 \begin_layout Subsection
13935 Special features
13936 \end_layout
13937
13938 \begin_layout Standard
13939 Insert the 
13940 \family sans
13941 Speaker
13942 \family default
13943  names as labels then cross-reference the label to insert the name.
13944  The cross-reference dialog will show the current cast of characters.
13945 \end_layout
13946
13947 \begin_layout Subsection
13948 Paper size and Margins
13949 \end_layout
13950
13951 \begin_layout Standard
13952 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
13953 \end_layout
13954
13955 \begin_layout Subsection
13956 Environments
13957 \end_layout
13958
13959 \begin_layout Standard
13960 The following environments are available.
13961  You can use broadway.bind to get the bind keys shown at the right.
13962 \end_layout
13963
13964 \begin_layout Itemize
13965
13966 \family sans
13967 Standard
13968 \newline
13969
13970 \family default
13971 You should not have to use this, but it is here for anything that does not
13972  fit otherwise.
13973 \end_layout
13974
13975 \begin_layout Itemize
13976
13977 \family sans
13978 Narrative
13979 \hfill
13980 M-z n
13981 \newline
13982
13983 \family default
13984 Used to describe stage setting and the action.
13985  First use of speaker names in all CAPs.
13986 \end_layout
13987
13988 \begin_layout Itemize
13989
13990 \family sans
13991 ACT
13992 \hfill
13993 M-z a
13994 \newline
13995
13996 \family default
13997 Automatically numbered.
13998  On screen it will be arabic, but will print as Roman.
13999 \end_layout
14000
14001 \begin_layout Itemize
14002
14003 \family sans
14004 ACT*
14005 \hfill
14006 M-z S at
14007 \newline
14008
14009 \family default
14010 Subtitle for 
14011 \family sans
14012 ACT.
14013  
14014 \family default
14015 It is just centered text.
14016 \end_layout
14017
14018 \begin_layout Itemize
14019
14020 \family sans
14021 SCENE
14022 \hfill
14023 M-z S-S
14024 \newline
14025
14026 \family default
14027 Not automatically numbered.
14028  You supply the number.
14029  This is because I couldn't figure out how.
14030 \end_layout
14031
14032 \begin_layout Itemize
14033
14034 \family sans
14035 AT_RISE:
14036 \hfill
14037 M-z S-R
14038 \newline
14039
14040 \family default
14041 A special case of Narrative to describe the setting and action as the curtain
14042  rises.
14043 \end_layout
14044
14045 \begin_layout Itemize
14046
14047 \family sans
14048 Speaker
14049 \hfill
14050 M-z s
14051 \newline
14052
14053 \family default
14054 The speaker's (actor's) title, centered in all CAPS.
14055 \end_layout
14056
14057 \begin_layout Itemize
14058
14059 \family sans
14060 Parenthetical
14061 \hfill
14062 M-z p
14063 \newline
14064
14065 \family default
14066 Instructions to the speaker.
14067  The parentheses are automatically inserted.
14068  The ( will appear on screen, but both will be in the printed play.
14069  This environment is only used within 
14070 \family sans
14071 Dialogue
14072 \family default
14073 .
14074 \end_layout
14075
14076 \begin_layout Itemize
14077
14078 \family sans
14079 Dialogue
14080 \hfill
14081 M-z d
14082 \newline
14083
14084 \family default
14085 What the Speaker says.
14086 \end_layout
14087
14088 \begin_layout Itemize
14089
14090 \family sans
14091 CURTAIN
14092 \hfill
14093 M-z S-C
14094 \newline
14095
14096 \family default
14097 The curtain comes down.
14098 \end_layout
14099
14100 \begin_layout Itemize
14101
14102 \family sans
14103 Title
14104 \hfill
14105 M-z S-T
14106 \end_layout
14107
14108 \begin_layout Itemize
14109
14110 \family sans
14111 Author
14112 \hfill
14113 M-z S-A
14114 \end_layout
14115
14116 \begin_layout Itemize
14117
14118 \family sans
14119 Right_Address
14120 \hfill
14121 M-z r
14122 \end_layout
14123
14124 \begin_layout Standard
14125 Hello there.
14126 \end_layout
14127
14128 \begin_layout Section
14129 RevTeX4
14130 \end_layout
14131
14132 \begin_layout Standard
14133 by 
14134 \noun on
14135 Amir Karger
14136 \end_layout
14137
14138 \begin_layout Standard
14139 \begin_inset VSpace bigskip
14140 \end_inset
14141
14142
14143 \end_layout
14144
14145 \begin_layout Standard
14146 \noindent
14147 The 
14148 \family sans
14149 Revtex\InsetSpace ~
14150 4
14151 \family default
14152  textclass works with the American Physical Sociey's RevTeX 4.0 (the 
14153 \begin_inset Formula $\beta$
14154 \end_inset
14155
14156  release of May, 1999) class.
14157 \end_layout
14158
14159 \begin_layout Standard
14160 LyX has a 
14161 \family sans
14162 Revtex
14163 \family default
14164  textclass, which works with RevTeX 3.1.
14165  However, v3.1 is basically obsolete, as it works with LaTeX 2.09.
14166  That means that it doesn't interact very well with LyX, which requires
14167  LaTeX2e, although it has been kludged to work.
14168  Since RevTeX 4.0 has been designed to work much more cleanly with LaTeX2e,
14169  LyX with the 
14170 \family sans
14171 RevTeX\InsetSpace ~
14172 4
14173 \family default
14174  textclass should also be pretty easy to use.
14175 \end_layout
14176
14177 \begin_layout Standard
14178 These documents are supposed to be used in 
14179 \emph on
14180 addition
14181 \emph default
14182  to the RevTeX 4.0 documents, so we don't describe any of the special RevTeX
14183  macros, and assume you'll know what to put in the preamble if necessary.
14184 \end_layout
14185
14186 \begin_layout Subsection
14187 Installation
14188 \end_layout
14189
14190 \begin_layout Standard
14191 All you need to do is install RevTeX 4, as described in the package's README
14192  file.
14193  the package can be found at 
14194 \begin_inset LatexCommand \url[The RevTeX 4 Web Site]{http://publish.aps.org/revtex4/}
14195
14196 \end_inset
14197
14198 .
14199  Install it somewhere that LaTeX can see it.
14200  Test it by trying to LaTeX a short RevTeX 4 document in some random directory
14201  (i.e., not the directory where you installed the class file.) Then, if you
14202  reconfigure LyX, it will find the class file and let you use the RevTeX4
14203  textclass.
14204 \end_layout
14205
14206 \begin_layout Standard
14207 Probably the easiest way to get started is either to import a RevTeX 4 document
14208  using 
14209 \family typewriter
14210 reLyX
14211 \family default
14212 , or to use the 
14213 \family sans
14214 Revtex\InsetSpace ~
14215 4
14216 \family default
14217  template, found in the templates directory.
14218 \end_layout
14219
14220 \begin_layout Subsection
14221 Preamble Matter
14222 \end_layout
14223
14224 \begin_layout Standard
14225 Optional arguments to 
14226 \family typewriter
14227
14228 \backslash
14229 documentclass
14230 \family default
14231 , like 
14232 \begin_inset Quotes eld
14233 \end_inset
14234
14235 preprint
14236 \begin_inset Quotes erd
14237 \end_inset
14238
14239  and 
14240 \begin_inset Quotes eld
14241 \end_inset
14242
14243 aps
14244 \begin_inset Quotes erd
14245 \end_inset
14246
14247 , go in the 
14248 \family sans
14249 E
14250 \bar under
14251 x
14252 \bar default
14253 tra\InsetSpace ~
14254 Options
14255 \family default
14256  field in the 
14257 \family sans
14258 Document\InsetSpace ~
14259 Layout
14260 \family default
14261  dialog, as usual.
14262  Remember that in RevTeX, at least one optional argument is required! 
14263 \end_layout
14264
14265 \begin_layout Standard
14266 Other preamble matter, like 
14267 \family typewriter
14268
14269 \backslash
14270 draft
14271 \family default
14272  etc.
14273  goes in the 
14274 \family sans
14275 Latex\InsetSpace ~
14276 Preamble
14277 \family default
14278  dialog, also as usual.
14279 \end_layout
14280
14281 \begin_layout Subsection
14282 Layouts
14283 \end_layout
14284
14285 \begin_layout Standard
14286 The layouts basically correspond to the commands in RevTeX4.0.
14287  For example, the Email layout corresponds to 
14288 \family typewriter
14289
14290 \backslash
14291 email{}
14292 \family default
14293 .
14294  Note that (at least as of RevTeX 4.0 Beta), the 
14295 \family sans
14296 Address
14297 \family default
14298  and 
14299 \family sans
14300 Affiliation
14301 \family default
14302  layouts are exactly equivalent, so you shouldn't need to use both.
14303 \begin_inset Foot
14304 status collapsed
14305
14306 \begin_layout Standard
14307 In case you're curious, both were included so that 
14308 \family typewriter
14309 reLyX
14310 \family default
14311  would be able to translate both 
14312 \family typewriter
14313
14314 \backslash
14315 address
14316 \family default
14317  and 
14318 \family typewriter
14319
14320 \backslash
14321 affiliation
14322 \family default
14323 .
14324 \end_layout
14325
14326 \end_inset
14327
14328
14329 \end_layout
14330
14331 \begin_layout Subsection
14332 Important Notes
14333 \end_layout
14334
14335 \begin_layout Standard
14336 There are a couple of important unique aspects of RevTeX 4 which might cause
14337  bugs that will be even more confusing in LyX.
14338 \end_layout
14339
14340 \begin_layout Standard
14341 In RevTeX, the 
14342 \family typewriter
14343
14344 \backslash
14345 thanks
14346 \family default
14347  command goes 
14348 \emph on
14349 outside
14350 \emph default
14351  the 
14352 \family typewriter
14353
14354 \backslash
14355 author
14356 \family default
14357  command.
14358  The LyX equivalent is that there is a separate Thanks layout.
14359  Do 
14360 \emph on
14361 not
14362 \emph default
14363  write footnotes in the 
14364 \family sans
14365 Author
14366 \family default
14367  layout, or weird things may happen.
14368  See the RevTeX 4 documentation for more details.
14369 \end_layout
14370
14371 \begin_layout Standard
14372 Also, the 
14373 \family sans
14374 Author\InsetSpace ~
14375 Email
14376 \family default
14377
14378 \family sans
14379 Author\InsetSpace ~
14380 URL
14381 \family default
14382 , and 
14383 \family sans
14384 Thanks
14385 \family default
14386  layouts must be placed 
14387 \emph on
14388 in between
14389 \emph default
14390  the 
14391 \family sans
14392 Author
14393 \family default
14394  layout and the corresponding 
14395 \family sans
14396 Address
14397 \family default
14398  (or equivalent 
14399 \family sans
14400 Affiliation
14401 \family default
14402 ) layout.
14403  If you put the 
14404 \family sans
14405 Thanks
14406 \family default
14407  after the 
14408 \family sans
14409 Address
14410 \family default
14411 , the LaTeX won't compile.
14412 \end_layout
14413
14414 \begin_layout Subsection
14415 Drawbacks
14416 \end_layout
14417
14418 \begin_layout Standard
14419 The main problem with this layout is that you can't use the optional arguments
14420  to layouts like Email and Title.
14421  (The problem is not unique to this layout; you can't use optional arguments
14422  to the Section layouts either.) This means that after you export that file
14423  to LaTeX (which you'll need to do eventually to send it in to APS), you'll
14424  need to edit the LaTeX file with a text editor to add the optional arguments
14425  to set, e.g., the running title for the page headers.
14426  Lacking these layouts makes the 
14427 \family typewriter
14428
14429 \backslash
14430 altaffiliation
14431 \family default
14432  (and the equivalent 
14433 \family typewriter
14434
14435 \backslash
14436 altaddress
14437 \family default
14438 ) useless, so the corresponding layouts don't exist, and will have to be
14439  added by hand.
14440 \begin_inset Foot
14441 status collapsed
14442
14443 \begin_layout Standard
14444
14445 \emph on
14446 Note from JMarc:
14447 \emph default
14448  actually, LyX 1.3.0 supports some forms of optional arguments, but this layout
14449  has not been updated yet to take advantage of it.
14450 \end_layout
14451
14452 \end_inset
14453
14454  
14455 \end_layout
14456
14457 \begin_layout Section
14458 Article (mwart), book (mwbk) and report (mwrep)
14459 \begin_inset OptArg
14460 status collapsed
14461
14462 \begin_layout Standard
14463 The 
14464 \family typewriter
14465 mw
14466 \family default
14467  Classes
14468 \end_layout
14469
14470 \end_inset
14471
14472
14473 \end_layout
14474
14475 \begin_layout Standard
14476 by 
14477 \noun on
14478 Tomasz Luczak
14479 \end_layout
14480
14481 \begin_layout Standard
14482 The LyX document classes
14483 \emph on
14484  article (mwart)
14485 \emph default
14486
14487 \emph on
14488 report (mwrep)
14489 \emph default
14490  and 
14491 \emph on
14492 book
14493 \emph default
14494  
14495 \emph on
14496 (mwbk)
14497 \emph default
14498  correspond to the LaTeX document classes 
14499 \family typewriter
14500 mwart.cls
14501 \family default
14502
14503 \family typewriter
14504 mwrep.cls
14505 \family default
14506  and 
14507 \family typewriter
14508 mwbk.cls
14509 \family default
14510 , resp.
14511  They are replacements for the standard document classes 
14512 \family typewriter
14513 article.cls
14514 \family default
14515
14516 \family typewriter
14517 report.cls
14518 \family default
14519  and 
14520 \family typewriter
14521 book.cls
14522 \family default
14523 , resp., and fit better to Polish typography conventions in a number of points.
14524  
14525 \end_layout
14526
14527 \begin_layout Standard
14528 Basic differences:
14529 \end_layout
14530
14531 \begin_layout Itemize
14532 Unnumbered titles (with star, eg.
14533  
14534 \family sans
14535 Section*
14536 \family default
14537 ) are added into table of contents,
14538 \end_layout
14539
14540 \begin_layout Itemize
14541 Additional page styles:
14542 \end_layout
14543
14544 \begin_deeper
14545 \begin_layout Description
14546 uheadings header with separated lines,
14547 \end_layout
14548
14549 \begin_layout Description
14550 myheadings custom header, contents headers via commands: 
14551 \family typewriter
14552
14553 \backslash
14554 markright
14555 \family default
14556  and 
14557 \family typewriter
14558
14559 \backslash
14560 markboth
14561 \family default
14562 ,
14563 \end_layout
14564
14565 \begin_layout Description
14566 myuheadings custom header with separated lines,
14567 \end_layout
14568
14569 \begin_layout Description
14570 outer page number is placed on outer side of page
14571 \end_layout
14572
14573 \end_deeper
14574 \begin_layout Itemize
14575 Options 
14576 \end_layout
14577
14578 \begin_deeper
14579 \begin_layout Description
14580 rmheadings serif titles --- default,
14581 \end_layout
14582
14583 \begin_layout Description
14584 sfheadings sansserif titles,
14585 \end_layout
14586
14587 \begin_layout Description
14588 authortitle on title page first placed is author next title --- default,
14589 \end_layout
14590
14591 \begin_layout Description
14592 titleauthor on title page first placed is title next author,
14593 \end_layout
14594
14595 \begin_layout Description
14596 withmarginpar reserve place on page for margins.
14597 \end_layout
14598
14599 \end_deeper
14600 \begin_layout Section
14601 Elsevier Journals
14602 \end_layout
14603
14604 \begin_layout Standard
14605 By 
14606 \noun on
14607 Rod Pinna
14608 \end_layout
14609
14610 \begin_layout Standard
14611 Elsevier Science Publishers B.V.
14612  provides a standard LaTeX document class (
14613 \family typewriter
14614 elsart.cls
14615 \family default
14616 ) for submitting articles to their various journals.
14617  The style file can be downloaded directly from their web site: 
14618 \begin_inset LatexCommand \url{http://authors.elsevier.com/}
14619
14620 \end_inset
14621
14622 .
14623  Instructions are supplied along with the class file, which details the
14624  requirements of the publishers.
14625  LyX includes package that allows for the use of this class, by a layout
14626  and a template file.
14627  Installation of the class file is the same as for any other LaTeX package;
14628  instructions are provided in the Elsevier documentation.
14629 \end_layout
14630
14631 \begin_layout Standard
14632 To make use of 
14633 \family typewriter
14634 elsart.cls
14635 \family default
14636 , a file 
14637 \family typewriter
14638 elsart.layout
14639 \family default
14640  is supplied.
14641  As the Elsevier class file is based mainly on the standard article class,
14642  most of the normal functionality is provided.
14643  The Elsevier class defines a number of mathematical environments, which
14644  are similar to the AMS environments.
14645  These commands are all described in the Elsevier documentation, and are
14646  available in LyX.
14647 \end_layout
14648
14649 \begin_layout Standard
14650 The easiest way to use the Elsevier style is to base documents on the included
14651  template file.
14652  It is best not to use options such as fancy headings or the geometry package,
14653  as elements such as these are defined by Elsevier in their style file.
14654  Ideally, no extra packages except those mentioned in the Elsevier documentation
14655  should be used.
14656  Essentially, Elsevier require as 
14657 \begin_inset Quotes eld
14658 \end_inset
14659
14660 clean
14661 \begin_inset Quotes erd
14662 \end_inset
14663
14664  a 
14665 \begin_inset ERT
14666 status collapsed
14667
14668 \begin_layout Standard
14669
14670 \backslash
14671 LaTeX
14672 \end_layout
14673
14674 \end_inset
14675
14676  file as possible, as their intention is to take the supplied file and replace
14677  the class file with one for the particular journal to which the paper has
14678  been submitted.
14679  This also means that not too much time should be spent on the formating
14680  of the document.
14681  When it comes to be published, this will change anyway.
14682  The rest of the usage for this layout is substantially the same as for
14683  the normal article class.
14684  For details of what Elsevier do and don't allow, refer to their documentation.
14685 \end_layout
14686
14687 \begin_layout Section
14688 Memoir
14689 \end_layout
14690
14691 \begin_layout Standard
14692 By 
14693 \noun on
14694 Jürgen Spitzmüller
14695 \end_layout
14696
14697 \begin_layout Subsection
14698 Overview
14699 \end_layout
14700
14701 \begin_layout Standard
14702 Memoir is a very powerful and constantly evolving class.
14703  It has been designed with regard to fictional and non-fictional literature.
14704  Its aim is to let the user have maximum control over the typesetting of
14705  his document.
14706  Memoir is based on the standard book class, but it can also emulate the
14707  article class (see below).
14708 \end_layout
14709
14710 \begin_layout Standard
14711 Peter Wilson, the developer of Memoir, is known as the author of lots of
14712  useful packages in the LaTeX world.
14713  Most of them have been merged with Memoir.
14714  Therefore, it is much easier to layout the table of contents, appendices,
14715  chapter designs and such.
14716  LyX, though, does not support all of these goodies natively.
14717  Some of them might be added to forthcoming releases
14718 \begin_inset Foot
14719 status collapsed
14720
14721 \begin_layout Standard
14722 You are invited to send suggestions to 
14723 \begin_inset LatexCommand \url{lyx-devel@lists.lyx.org}
14724
14725 \end_inset
14726
14727 .
14728 \end_layout
14729
14730 \end_inset
14731
14732 , lots will probably never, due to the limitations of LyX's framework.
14733  Of course you can still use all features with the help of some native LaTeX
14734  commands (ERT
14735 \begin_inset Foot
14736 status collapsed
14737
14738 \begin_layout Standard
14739 Cf.
14740 \begin_inset ERT
14741 status collapsed
14742
14743 \begin_layout Standard
14744
14745 \backslash
14746  
14747 \end_layout
14748
14749 \end_inset
14750
14751 section\InsetSpace ~
14752
14753 \begin_inset LatexCommand \ref{sec:Inserting-LaTeX-Code}
14754
14755 \end_inset
14756
14757  for details.
14758 \end_layout
14759
14760 \end_inset
14761
14762 ).
14763  In this section, we can only list those features which are natively supported
14764  by LyX.
14765  For detailed descriptions (and for the rest of features) we are recommending
14766  to have a look at the detailed manual of the Memoir class
14767 \begin_inset Foot
14768 status collapsed
14769
14770 \begin_layout Standard
14771 Cf.
14772 \begin_inset ERT
14773 status collapsed
14774
14775 \begin_layout Standard
14776
14777 \backslash
14778  
14779 \end_layout
14780
14781 \end_inset
14782
14783
14784 \begin_inset LatexCommand \url{CTAN:/macros/latex/memoir/memman.pdf}
14785
14786 \end_inset
14787
14788 .
14789 \end_layout
14790
14791 \end_inset
14792
14793 , which is not only a user guide for the class, but also both a comprehensive
14794  description on good typesetting and a superb example for good typesetting
14795  itself.
14796 \end_layout
14797
14798 \begin_layout Subsection
14799 Basic features and restrictions
14800 \end_layout
14801
14802 \begin_layout Standard
14803 Memoir supports basically all features of the standard book classes.
14804  There are, however, some differences, as follows:
14805 \end_layout
14806
14807 \begin_layout Description
14808 Font\InsetSpace ~
14809 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14,
14810  17
14811 \end_layout
14812
14813 \begin_layout Description
14814 Page\InsetSpace ~
14815 style: The fancy page style is not supported, due to a command clash
14816  between Memoir and the fancyhdr package (they are both defining a command
14817  with the same name, which confuses LaTeX).
14818  Instead, Memoir comes with a bunch of own page styles (see 
14819 \family sans
14820 Layout\SpecialChar \menuseparator
14821 Document\SpecialChar \menuseparator
14822 Page\InsetSpace ~
14823 Style
14824 \family default
14825 ).
14826  If you want to use these for the chapter pages, you have to use the command
14827  
14828 \family typewriter
14829
14830 \backslash
14831 chapterstyle
14832 \family default
14833  in the main text or in preamble (e.
14834 \begin_inset ERT
14835 status collapsed
14836
14837 \begin_layout Standard
14838
14839 \backslash
14840 ,
14841 \end_layout
14842
14843 \end_inset
14844
14845 g.
14846 \begin_inset ERT
14847 status collapsed
14848
14849 \begin_layout Standard
14850
14851 \backslash
14852  
14853 \end_layout
14854
14855 \end_inset
14856
14857
14858 \family typewriter
14859
14860 \backslash
14861 chapterstyle{companion}
14862 \family default
14863 ).
14864 \end_layout
14865
14866 \begin_layout Description
14867 Sectioning: Sectionings (chapter, section, subsection etc.) are coming with
14868  an optional argument in the standard classes.
14869  With this, you can specify an alternative version of the title for the
14870  table of contents and the headers (for instance, if the title is too long).
14871  In LyX, you can do this via 
14872 \family sans
14873 Insert\SpecialChar \menuseparator
14874 Short\InsetSpace ~
14875 Title
14876 \family default
14877  at the beginning of a chapter/section.
14878  Memoir features a second optional argument and thus separates the table
14879  of contents from the header.
14880  You can define three variants of a title with this: one for the main text,
14881  one for the table of contents, and one for the headers.
14882  Simply insert two optional arguments if you need this feature, the first
14883  one containing the short title for the Table of Contents, the second one
14884  containing an alternative short title for the headers.
14885 \end_layout
14886
14887 \begin_layout Description
14888 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
14889  of contents, the list of figures and the list of table start a new page
14890  automatically.
14891  Memoir does not follow this route.
14892  You have to insert a page break yourself, if you want to have one.
14893 \end_layout
14894
14895 \begin_layout Description
14896 Titlepage: For some unknown reason, Memoir uses pagination on the title
14897  page (in the standard classes, title pages are 
14898 \begin_inset Quotes eld
14899 \end_inset
14900
14901 empty
14902 \begin_inset Quotes erd
14903 \end_inset
14904
14905 , i.
14906 \begin_inset ERT
14907 status collapsed
14908
14909 \begin_layout Standard
14910
14911 \backslash
14912 ,
14913 \end_layout
14914
14915 \end_inset
14916
14917 e.
14918 \begin_inset ERT
14919 status collapsed
14920
14921 \begin_layout Standard
14922
14923 \backslash
14924  
14925 \end_layout
14926
14927 \end_inset
14928
14929 without pagina).
14930  If you want an empty title page, type 
14931 \family typewriter
14932
14933 \backslash
14934 aliaspagestyle{title}{empty} 
14935 \family default
14936 in the preamble.
14937 \end_layout
14938
14939 \begin_layout Description
14940 Article: With the class option 
14941 \emph on
14942 article 
14943 \emph default
14944 (to be inserted in 
14945 \family sans
14946 Layout\SpecialChar \menuseparator
14947 Document\SpecialChar \menuseparator
14948 Extra\InsetSpace ~
14949 Options
14950 \family default
14951 ), you can emulate article style.
14952  That is, counters (footnotes, figures, tables etc.) will not be reset on
14953  new chapters, chapters don't start a new page (but are---in contrary to
14954  
14955 \begin_inset Quotes eld
14956 \end_inset
14957
14958 real
14959 \begin_inset Quotes erd
14960 \end_inset
14961
14962  article classes---still allowed), parts, though, use their own page, as
14963  in book.
14964 \end_layout
14965
14966 \begin_layout Description
14967 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
14968  font commands, which have been used in the old LaTeX version 2.09 (e.
14969 \begin_inset ERT
14970 status collapsed
14971
14972 \begin_layout Standard
14973
14974 \backslash
14975 ,
14976 \end_layout
14977
14978 \end_inset
14979
14980 g.
14981 \begin_inset ERT
14982 status collapsed
14983
14984 \begin_layout Standard
14985
14986 \backslash
14987  
14988 \end_layout
14989
14990 \end_inset
14991
14992
14993 \family typewriter
14994
14995 \backslash
14996 rm
14997 \family default
14998
14999 \family typewriter
15000
15001 \backslash
15002 it
15003 \family default
15004 ).
15005  It produces an error and stops LaTeX whenever such a command appears.
15006  The class option 
15007 \emph on
15008 oldfontcommands
15009 \emph default
15010  reallows the commands and spits out warnings instead (which does at least
15011  not stop LaTeX).
15012  Since a lot of packages and particularly BibTeX style files are still using
15013  those commands, we have decided to use this option by default.
15014 \end_layout
15015
15016 \begin_layout Subsection
15017 Extra features
15018 \end_layout
15019
15020 \begin_layout Standard
15021 We will only describe the features supported by LyX (which is not much currently
15022 ).
15023  Please consult the Memoir manual
15024 \begin_inset Foot
15025 status collapsed
15026
15027 \begin_layout Standard
15028 Cf.
15029 \begin_inset ERT
15030 status collapsed
15031
15032 \begin_layout Standard
15033
15034 \backslash
15035  
15036 \end_layout
15037
15038 \end_inset
15039
15040
15041 \begin_inset LatexCommand \url{CTAN:/macros/latex/memoir/memman.pdf}
15042
15043 \end_inset
15044
15045 .
15046 \end_layout
15047
15048 \end_inset
15049
15050  for details.
15051 \end_layout
15052
15053 \begin_layout Description
15054 Abstract: You may wonder why an abstract is an extra feature.
15055  Well, it is in book class.
15056  Usually books don't have abstracts.
15057  Memoir, however, has.
15058  You can use it whereever and how often you like.
15059 \end_layout
15060
15061 \begin_layout Description
15062 Chapterprecis: You may know this from belletristic: The contents of a chapter
15063  is shortly described below the title and also in the table of contents
15064  (e.
15065 \begin_inset ERT
15066 status collapsed
15067
15068 \begin_layout Standard
15069
15070 \backslash
15071 ,
15072 \end_layout
15073
15074 \end_inset
15075
15076 g.
15077 \begin_inset ERT
15078 status collapsed
15079
15080 \begin_layout Standard
15081
15082 \backslash
15083  
15084 \end_layout
15085
15086 \end_inset
15087
15088
15089 \emph on
15090 Our hero arrives in Troia; he loses some friends; he finds others
15091 \emph default
15092 ).
15093  Chapterprecis does exactly this.
15094  It is therefore only sensible below a chapter.
15095 \end_layout
15096
15097 \begin_layout Description
15098 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15099  The epigraph environment provides an elegant way of typesetting such a
15100  motto.
15101  The motto itself (text) and its author (source) are divided by a short
15102  line.
15103  Unfortunately, we have to fool LyX a bit here again, since the environment
15104  needs two arguments (text and source).
15105  In this case, we have to use curly brackets (in TeX mode) between the two
15106  arguments: 
15107 \emph on
15108 <smart slogan>
15109 \emph default
15110  
15111 \family typewriter
15112 }{
15113 \family default
15114  
15115 \emph on
15116 <author of the slogan>.
15117 \end_layout
15118
15119 \begin_layout Description
15120 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15121  complex figurative poems).
15122  Lyx can only support a few of them.
15123  One is poemtitle, which is a centered title for poems, which will also
15124  be added to the table of contents (verse is the standard environment for
15125  poems.
15126  Memoir has some enhanced versions of verse, but you need to use ERT, because
15127  they have to be nested inside regular verse environments, which is not
15128  possible with LyX).
15129 \end_layout
15130
15131 \begin_layout Description
15132 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15133 \end_layout
15134
15135 \begin_layout Chapter
15136 Importing and Exporting Alternate File Formats
15137 \begin_inset OptArg
15138 status collapsed
15139
15140 \begin_layout Standard
15141 Importing and Exporting
15142 \end_layout
15143
15144 \end_inset
15145
15146
15147 \end_layout
15148
15149 \begin_layout Section
15150 Considerations
15151 \end_layout
15152
15153 \begin_layout Standard
15154 Importing and exporting LyX documents from/to other formats has been touched
15155  on briefly in the 
15156 \emph on
15157 User Guide
15158 \emph default
15159 .
15160  Here we describe more of the gory details needed to understand just what
15161  is going on when you click on the 
15162 \family sans
15163 \bar under
15164 F
15165 \bar default
15166 ile\SpecialChar \menuseparator
15167
15168 \bar under
15169 I
15170 \bar default
15171 mport
15172 \family default
15173  and 
15174 \family sans
15175 \bar under
15176 F
15177 \bar default
15178 ile\SpecialChar \menuseparator
15179 E
15180 \bar under
15181 x
15182 \bar default
15183 port
15184 \family default
15185  menu items.
15186  
15187 \end_layout
15188
15189 \begin_layout Section
15190 Importing Other Formats
15191 \end_layout
15192
15193 \begin_layout Subsection
15194 LaTeX
15195 \end_layout
15196
15197 \begin_layout Standard
15198 Translating from LaTeX into LyX is performed by a Perl script called reLyX.
15199  Although it is a standalone program which can be called from the command
15200  line, LyX will call it automatically when a LaTeX document is imported.
15201  See section\InsetSpace ~
15202
15203 \begin_inset LatexCommand \ref{sec:reLyX}
15204
15205 \end_inset
15206
15207  for a complete description.
15208  There are no user tunable parameters for reLyX within LyX.
15209 \end_layout
15210
15211 \begin_layout Subsection
15212 ASCII Text
15213 \end_layout
15214
15215 \begin_layout Standard
15216 When importing plain ASCII text, there are two methods of reading the file.
15217  Importing 
15218 \begin_inset Quotes eld
15219 \end_inset
15220
15221 as lines
15222 \begin_inset Quotes erd
15223 \end_inset
15224
15225  preserves all the linebreaks in the ASCII; to LyX, then, each line looks
15226  like a paragraph.
15227  Importing 
15228 \begin_inset Quotes eld
15229 \end_inset
15230
15231 as paragraphs
15232 \begin_inset Quotes erd
15233 \end_inset
15234
15235  assumes that consecutive lines separated by only a single linebreak form
15236  a single paragraph.
15237  Successive linebreaks with no intervening text are thus assumed to be paragraph
15238  delimiters.
15239 \end_layout
15240
15241 \begin_layout Subsection
15242 Noweb
15243 \end_layout
15244
15245 \begin_layout Standard
15246
15247 \emph on
15248 [Editor's note: Needs to be written, obviously - any volunteers? --- mer]
15249 \end_layout
15250
15251 \begin_layout Section
15252 Exporting Other Formats
15253 \end_layout
15254
15255 \begin_layout Subsection
15256 LaTeX
15257 \end_layout
15258
15259 \begin_layout Standard
15260 LyX generates two types of LaTeX files: stripped down versions for the normal
15261  processing (
15262 \family sans
15263 View DVI
15264 \family default
15265 , etc.) which one normally never sees
15266 \begin_inset Foot
15267 status collapsed
15268
15269 \begin_layout Standard
15270 The resulting file is a perfectly valid LaTeX file, though the preamble
15271  might look a bit strange since it includes some definitions used by LyX
15272  which wouldn't show up in most human-written files.
15273 \end_layout
15274
15275 \end_inset
15276
15277 , and human readable forms which are suitable for exchanging with your colleague
15278 s.
15279  The only settable option for the translation is the line length of the
15280  output file.
15281  The default is 65 characters, but it can be set in 
15282 \family sans
15283 \bar under
15284 T
15285 \bar default
15286 ools
15287 \family default
15288 \SpecialChar \menuseparator
15289
15290 \family sans
15291 \bar under
15292 P
15293 \bar default
15294 references
15295 \family default
15296  using the 
15297 \family sans
15298 \bar under
15299 A
15300 \bar default
15301 scii\InsetSpace ~
15302 line\InsetSpace ~
15303 length
15304 \family default
15305  field.
15306  
15307 \end_layout
15308
15309 \begin_layout Subsection
15310 Device Independent Files
15311 \end_layout
15312
15313 \begin_layout Standard
15314 Device Independent files (DVI files) are produced by running LaTeX on your
15315  document.
15316  There are no user settable options.
15317 \end_layout
15318
15319 \begin_layout Subsection
15320 PostScript®
15321 \end_layout
15322
15323 \begin_layout Standard
15324 The next step in the conversion chain is converting a DVI file into Postscript®.
15325  You can either use 
15326 \family sans
15327 \bar under
15328 F
15329 \bar default
15330 ile
15331 \family default
15332 \SpecialChar \menuseparator
15333
15334 \family sans
15335 \bar under
15336 E
15337 \bar default
15338 xport
15339 \family default
15340 \SpecialChar \menuseparator
15341
15342 \family sans
15343 Pos
15344 \bar under
15345 t
15346 \bar default
15347 script
15348 \family default
15349  or, if you need more control on the result, 
15350 \family sans
15351 \bar under
15352 F
15353 \bar default
15354 ile
15355 \family default
15356 \SpecialChar \menuseparator
15357
15358 \family sans
15359 \bar under
15360 P
15361 \bar default
15362 rint
15363 \family default
15364 .
15365  If you use the later, note that it is possible to configure, in 
15366 \family sans
15367 \bar under
15368 T
15369 \bar default
15370 ools
15371 \family default
15372 \SpecialChar \menuseparator
15373
15374 \family sans
15375 \bar under
15376 P
15377 \bar default
15378 references
15379 \family default
15380 , the options passed to the dvips program to achieve different effects.
15381 \end_layout
15382
15383 \begin_layout Subsection
15384 ASCII text
15385 \end_layout
15386
15387 \begin_layout Standard
15388 Exporting as ASCII attempts to preserve the 
15389 \begin_inset Quotes eld
15390 \end_inset
15391
15392 shape
15393 \begin_inset Quotes erd
15394 \end_inset
15395
15396  of the document as well as possible, but things like centering and indentation
15397  are thrown out; paragraphs are separated by blank lines.
15398  Section numbering and cross-references are done correctly, so the resulting
15399  text files is remarkably readable.
15400  The only changeable option is the length of lines, as for LaTeX output.
15401 \end_layout
15402
15403 \begin_layout Subsection
15404 HTML
15405 \end_layout
15406
15407 \begin_layout Standard
15408 LyX documents can be converted to hypertext markup, usually by converting
15409  to LaTeX first, then converting that to HTML\SpecialChar \@.
15410  Three LaTeX
15411 \begin_inset Formula $\rightarrow$
15412 \end_inset
15413
15414 HTML converters are currently known to LyX: 
15415 \family typewriter
15416 tth
15417 \family default
15418
15419 \family typewriter
15420 latex2html
15421 \family default
15422 , and 
15423 \family typewriter
15424 hevea
15425 \family default
15426 .
15427  Though they are autodetected, you can overide the selection in preferences.
15428  You can also include further command line options in this dialog.
15429  
15430 \end_layout
15431
15432 \begin_layout Subsection
15433 PDF
15434 \end_layout
15435
15436 \begin_layout Standard
15437 by 
15438 \noun on
15439 Dekel Tsur
15440 \noun default
15441  (mostly)
15442 \end_layout
15443
15444 \begin_layout Standard
15445 \begin_inset VSpace bigskip
15446 \end_inset
15447
15448
15449 \end_layout
15450
15451 \begin_layout Standard
15452 The fastest way to generate a basic PDF file (no tags, links, etc.) with
15453  any version of LyX is to save the document as a Postscript® file, then
15454  run the 
15455 \family typewriter
15456 ps2pdf
15457 \family default
15458  command on it.
15459  Starting with version 1.1.6, the menu item 
15460 \family sans
15461 File->Export->PDF
15462 \family default
15463  will do all this for you.
15464  There are some issues with fonts that you need to pay attention to: see
15465  Section\InsetSpace ~
15466
15467 \begin_inset LatexCommand \ref{sec:badfonts}
15468
15469 \end_inset
15470
15471 .
15472  Also, as of version 1.1.6, there is a better method that will generate much
15473  more sophisticated files.
15474 \end_layout
15475
15476 \begin_layout Subsubsection
15477 Use pdfLaTeX
15478 \end_layout
15479
15480 \begin_layout Standard
15481 With pdfLaTeX you need to convert your eps figures to PDF (see Section\InsetSpace ~
15482
15483 \begin_inset LatexCommand \ref{sec:pdfeps}
15484
15485 \end_inset
15486
15487 ), and you cannot use pstricks.
15488  On the other hand, with pdfLaTeX it is possible to insert directly images
15489  in JPEG or PNG format, use TrueType fonts, and more.
15490 \end_layout
15491
15492 \begin_layout Subsubsection
15493 Why does the text look so bad when viewed with Acrobat Reader?
15494 \begin_inset LatexCommand \label{sec:badfonts}
15495
15496 \end_inset
15497
15498
15499 \begin_inset OptArg
15500 status collapsed
15501
15502 \begin_layout Standard
15503 Bad Fonts in Acrobat Reader
15504 \end_layout
15505
15506 \end_inset
15507
15508
15509 \end_layout
15510
15511 \begin_layout Standard
15512 The problem is that bitmap fonts are displayed poorly by Acrobat Reader.
15513  When creating a PDF from the LyX file, you need to use outline font instead
15514  of the default bitmap fonts (in fact, you should also use outline fonts
15515  for Postscript files).
15516  Recent LaTeX distributions come with Postscript® Type 1 version of the
15517  standard (Computer Modern) fonts.
15518  pdfLaTeX uses these font by default.
15519  Dvips doesn't use these fonts by default, so to make it use them, add the
15520  following to lines to your 
15521 \family typewriter
15522 ~/.dvipsrc
15523 \family default
15524  file
15525 \end_layout
15526
15527 \begin_layout LyX-Code
15528 p+ psfonts.cmz
15529 \end_layout
15530
15531 \begin_layout LyX-Code
15532 p+ psfonts.amz
15533 \end_layout
15534
15535 \begin_layout Standard
15536 If the default LaTeX font encoding (OT1) is used, nothing else need to be
15537  done.
15538  However, if the T1 font encoding is used, then LaTeX uses the newer EC
15539  fonts, for which there are no Type1 version.
15540  The solution is to use the ae package which emulates T1 coded fonts using
15541  the standard CM fonts.
15542  This is done by adding 
15543 \family typewriter
15544
15545 \backslash
15546 usepackage{ae,aecompl}
15547 \family default
15548  to the preamble of the LyX file.
15549  However, some glyphs are missing from the CM fonts (e.g.
15550  eth, thorn), and they are taken from the EC fonts.
15551  Therefore you get these glyphs as bitmaps.
15552 \end_layout
15553
15554 \begin_layout Standard
15555 Note: LyX uses by default the T1 font encoding.
15556  If you wish to use the default font encoding (this is not recommended,
15557  unless you only write English documents), clear the field 
15558 \family sans
15559 \bar under
15560 T
15561 \bar default
15562 eX\InsetSpace ~
15563 encoding
15564 \family default
15565  in preferences (tabs 
15566 \family sans
15567 Outputs
15568 \family default
15569
15570 \family sans
15571 Misc
15572 \family default
15573 ).
15574  
15575 \end_layout
15576
15577 \begin_layout Standard
15578 An alternate option is to use the standard Postscript® fonts instead of
15579  the Computer Modern fonts.
15580  To do that, you need to select 
15581 \family sans
15582 pslatex
15583 \family default
15584  as the global font in the document layout dialog.
15585  When using the Postscript® fonts, the result PDF file is smaller as the
15586  fonts are not saved into the file.
15587  Furthermore, the Postscript® fonts include all T1 glyphs.
15588  On the other hand, the Postscript® fonts have no bold symbol font, so poor
15589  man's bold must be used (see Section\InsetSpace ~
15590
15591 \begin_inset LatexCommand \ref{sec:pdfbold}
15592
15593 \end_inset
15594
15595 ).
15596  The Postscript® fonts also look different from the Computer Modern fonts.
15597 \end_layout
15598
15599 \begin_layout Standard
15600 To sum up, both the Computer Modern and the Postscript® fonts gives good
15601  results (with few exceptions).
15602  The decision of which one to use is a matter of taste.
15603 \end_layout
15604
15605 \begin_layout Subsubsection
15606 Why doesn't the 
15607 \backslash
15608 boldsymbol{} command work when I use pslatex?
15609 \begin_inset LatexCommand \label{sec:pdfbold}
15610
15611 \end_inset
15612
15613
15614 \begin_inset OptArg
15615 status collapsed
15616
15617 \begin_layout Standard
15618
15619 \family typewriter
15620
15621 \backslash
15622 boldsymbol{}
15623 \family default
15624  and 
15625 \family typewriter
15626 pslatex
15627 \end_layout
15628
15629 \end_inset
15630
15631
15632 \end_layout
15633
15634 \begin_layout Standard
15635 The Postscript® fonts do not have a bold symbol font.
15636  The solution is to use the 
15637 \family typewriter
15638
15639 \backslash
15640 pmb{}
15641 \family default
15642  (poor man's bold) command.
15643 \end_layout
15644
15645 \begin_layout Standard
15646 It is possible to redefine the 
15647 \family typewriter
15648
15649 \backslash
15650 boldsymbol
15651 \family default
15652  command to use 
15653 \family typewriter
15654
15655 \backslash
15656 pmb
15657 \family default
15658  by putting
15659 \end_layout
15660
15661 \begin_layout LyX-Code
15662
15663 \backslash
15664 renewcommand{
15665 \backslash
15666 boldsymbol}[1]{
15667 \backslash
15668 pmb{#1}}
15669 \end_layout
15670
15671 \begin_layout Standard
15672 in the preamble.
15673 \end_layout
15674
15675 \begin_layout Subsubsection
15676 Is it possible to do write latex code which is processed only when running
15677  pdfLaTeX?
15678 \begin_inset OptArg
15679 status collapsed
15680
15681 \begin_layout Standard
15682 Conditionals with pdfLaTeX
15683 \end_layout
15684
15685 \end_inset
15686
15687
15688 \end_layout
15689
15690 \begin_layout Standard
15691 Yes.
15692  Here is an example:
15693 \end_layout
15694
15695 \begin_layout LyX-Code
15696
15697 \backslash
15698 newif 
15699 \backslash
15700 ifpdf
15701 \end_layout
15702
15703 \begin_layout LyX-Code
15704    
15705 \backslash
15706 ifx 
15707 \backslash
15708 pdfoutput 
15709 \backslash
15710 undefined
15711 \end_layout
15712
15713 \begin_layout LyX-Code
15714       
15715 \backslash
15716 pdffalse
15717 \end_layout
15718
15719 \begin_layout LyX-Code
15720    
15721 \backslash
15722 else
15723 \end_layout
15724
15725 \begin_layout LyX-Code
15726       
15727 \backslash
15728 pdftrue
15729 \end_layout
15730
15731 \begin_layout LyX-Code
15732
15733 \backslash
15734 fi
15735 \end_layout
15736
15737 \begin_layout LyX-Code
15738
15739 \end_layout
15740
15741 \begin_layout LyX-Code
15742
15743 \backslash
15744 ifpdf
15745 \end_layout
15746
15747 \begin_layout LyX-Code
15748    
15749 \backslash
15750 pdfinfo { /Author (your name and e-mail address)
15751 \end_layout
15752
15753 \begin_layout LyX-Code
15754       /Title (official title -- i.e., title element)
15755 \end_layout
15756
15757 \begin_layout LyX-Code
15758       /Subject (one line description of the document)
15759 \end_layout
15760
15761 \begin_layout LyX-Code
15762    }
15763 \end_layout
15764
15765 \begin_layout LyX-Code
15766    
15767 \backslash
15768 pdfcatalog { /PageMode (/UseNone)
15769 \end_layout
15770
15771 \begin_layout LyX-Code
15772    % /OpenAction (fitbh)
15773 \end_layout
15774
15775 \begin_layout LyX-Code
15776    }
15777 \end_layout
15778
15779 \begin_layout LyX-Code
15780    
15781 \backslash
15782 usepackage[pdftex]{hyperref}
15783 \end_layout
15784
15785 \begin_layout LyX-Code
15786
15787 \backslash
15788 else
15789 \end_layout
15790
15791 \begin_layout LyX-Code
15792    
15793 \backslash
15794 usepackage[ps2pdf]{hyperref}
15795 \end_layout
15796
15797 \begin_layout LyX-Code
15798
15799 \backslash
15800 fi
15801 \end_layout
15802
15803 \begin_layout Subsubsection
15804 How can I make URLs clickable ?
15805 \end_layout
15806
15807 \begin_layout Standard
15808 See the references here :
15809 \end_layout
15810
15811 \begin_layout Standard
15812 \begin_inset LatexCommand \url{http://wiki.lyx.org/pmwiki.php/FAQ/PDF}
15813
15814 \end_inset
15815
15816
15817 \end_layout
15818
15819 \begin_layout Subsection
15820 Custom
15821 \end_layout
15822
15823 \begin_layout Standard
15824 Custom exports are possible if you have some particularly weird format you
15825  wish to convert to, assuming you have the relevant converter, of course.
15826  The format of the 
15827 \emph on
15828 input
15829 \emph default
15830  file can be chosen in the 
15831 \family sans
15832 \bar under
15833 F
15834 \bar default
15835 ile\SpecialChar \menuseparator
15836
15837 \bar under
15838 E
15839 \bar default
15840 xport\SpecialChar \menuseparator
15841
15842 \bar under
15843 C
15844 \bar default
15845 ustom 
15846 \family default
15847 dialog; LyX will automatically convert the file to this point, then feed
15848  it to your custom converter.
15849  The possible values are all formats that LyX can produce from its own documents.
15850  
15851 \end_layout
15852
15853 \begin_layout Standard
15854 The converter command is also specified in the dialog.It should be a completely
15855  qualified command line which uses the variable 
15856 \family typewriter
15857 $$FName
15858 \family default
15859  to specify the name of the file.
15860  If this variable is not given, then the file will be sent to the standard
15861  input of your command.
15862  You may have to apply a bit of ingenuity to escape this sequence correctly
15863  so that it is compatible with your shell.
15864  
15865 \end_layout
15866
15867 \begin_layout Standard
15868 While it is not possible to save this command using the 
15869 \family sans
15870 Preferences 
15871 \family default
15872 dialog, you can manually edit your 
15873 \family typewriter
15874 .lyx/preferences
15875 \family default
15876  to add a line like
15877 \end_layout
15878
15879 \begin_layout LyX-Code
15880
15881 \backslash
15882 custom_export_command "mycommand $$FName"
15883 \end_layout
15884
15885 \begin_layout Section
15886 The Complete reLyX Description
15887 \begin_inset LatexCommand \label{sec:reLyX}
15888
15889 \end_inset
15890
15891
15892 \end_layout
15893
15894 \begin_layout Subsection
15895 Synopsis
15896 \end_layout
15897
15898 \begin_layout Standard
15899 The simplest way to use reLyX is via the 
15900 \family sans
15901 \bar under
15902 F
15903 \bar default
15904 ile\SpecialChar \menuseparator
15905
15906 \bar under
15907 I
15908 \bar default
15909 mport
15910 \family default
15911  command in LyX.
15912  That runs reLyX on the given file and loads the resulting file into LyX.
15913  You should try that first, and call it from the command line only if you
15914  need to use more complicated options.
15915 \end_layout
15916
15917 \begin_layout Standard
15918
15919 \series bold
15920 reLyX
15921 \series default
15922  [ 
15923 \series bold
15924 -c
15925 \series default
15926  
15927 \shape italic
15928 textclass
15929 \shape default
15930  ] [ 
15931 \series bold
15932 -df
15933 \series default
15934  ] [ 
15935 \series bold
15936 -o
15937 \series default
15938  
15939 \shape italic
15940 outputdir
15941 \shape default
15942  ] [
15943 \series bold
15944  -r
15945 \series default
15946 \shape italic
15947  renv1
15948 \shape default
15949 [,
15950 \shape italic
15951 renv2
15952 \shape default
15953 ...]] [
15954 \series bold
15955  -s
15956 \series default
15957 \shape italic
15958  sfile1
15959 \shape default
15960 [,
15961 \shape italic
15962 sfile2
15963 \shape default
15964 ...]] 
15965 \emph on
15966 inputfile
15967 \end_layout
15968
15969 \begin_layout Standard
15970
15971 \series bold
15972 reLyX
15973 \series default
15974  
15975 \series bold
15976 -p
15977 \series default
15978  
15979 \series bold
15980 -c
15981 \series default
15982  
15983 \shape italic
15984 textclass
15985 \shape default
15986  [ 
15987 \series bold
15988 -df
15989 \series default
15990  ] [ 
15991 \series bold
15992 -o
15993 \series default
15994  
15995 \shape italic
15996 outputdir
15997 \shape default
15998  ] [
15999 \series bold
16000  -r
16001 \series default
16002 \shape italic
16003  renv1
16004 \shape default
16005 [,
16006 \shape italic
16007 renv2
16008 \shape default
16009 ...]] [
16010 \series bold
16011  -s
16012 \series default
16013 \shape italic
16014  sfile1
16015 \shape default
16016 [,
16017 \shape italic
16018 sfile2
16019 \shape default
16020 ...]] 
16021 \emph on
16022 inputfiles
16023 \end_layout
16024
16025 \begin_layout Standard
16026
16027 \series bold
16028 reLyX
16029 \series default
16030  
16031 \series bold
16032 -h
16033 \end_layout
16034
16035 \begin_layout Subsection
16036 Options
16037 \end_layout
16038
16039 \begin_layout Description
16040
16041 \series bold
16042 -c
16043 \series default
16044  Class.
16045  By default, when reLyX sees a 
16046 \family typewriter
16047
16048 \backslash
16049 documentclass{foo}
16050 \family default
16051  command, it creates a file of textclass 
16052 \begin_inset Quotes eld
16053 \end_inset
16054
16055 foo
16056 \begin_inset Quotes erd
16057 \end_inset
16058
16059  and reads the LyX layout file for that class.
16060   Use 
16061 \series bold
16062 -c
16063 \series default
16064  to declare a different textclass (and read a different layout file).
16065 \end_layout
16066
16067 \begin_layout Description
16068
16069 \series bold
16070 -d
16071 \series default
16072  Debug.
16073  By default, reLyX gives sparse output and deletes the temporary files which
16074  were created during translation.
16075  Using the 
16076 \series bold
16077 -d
16078 \series default
16079  flag will create much more output (both to stdout and stderr) and leave
16080  the temporary files around.
16081 \end_layout
16082
16083 \begin_layout Description
16084
16085 \series bold
16086 -f
16087 \series default
16088  Force.
16089  reLyX will not run if the 
16090 \family typewriter
16091 .lyx
16092 \family default
16093  file it would generate already exists Use the 
16094 \series bold
16095 -f
16096 \series default
16097  option (carefully) to clobber any existing files.
16098 \end_layout
16099
16100 \begin_layout Description
16101
16102 \series bold
16103 -h
16104 \series default
16105  Help.
16106  Print out usage information and quit
16107 \end_layout
16108
16109 \begin_layout Description
16110
16111 \series bold
16112 -o
16113 \series default
16114  Output directory.
16115  With this option, all temporary files and LyX output files (for the given
16116  input file, for any included files, or for any file fragments given with
16117  the 
16118 \series bold
16119 -p
16120 \series default
16121  option) will be put into 
16122 \shape italic
16123 outputdir
16124 \shape default
16125 .
16126  Otherwise, for each file 
16127 \emph on
16128 dir/foo.tex
16129 \emph default
16130 , the temporary files and the LyX output file will be created in 
16131 \emph on
16132 dir
16133 \emph default
16134 .
16135  This can be useful if a file includes files from other directories which
16136  you want to consolidate in one directory, or if you don't have write permission
16137  on the directory the LaTeX files are in.
16138 \end_layout
16139
16140 \begin_layout Description
16141
16142 \series bold
16143 -p
16144 \series default
16145  Partial file.
16146  The input files are LaTeX fragments, with no preamble matter or 
16147 \family typewriter
16148
16149 \backslash
16150 begin{document}
16151 \family default
16152  commands.
16153  This option requires the 
16154 \series bold
16155 -c
16156 \series default
16157  option, since there are no 
16158 \family typewriter
16159
16160 \backslash
16161 documentclass
16162 \family default
16163  commands in the files reLyX is translating.
16164  When using this option, you can translate more than one file, as long as
16165  all files are the same class.
16166  The LyX file created by reLyX can be included in an existing LyX file using
16167  
16168 \family sans
16169 \bar under
16170 I
16171 \bar default
16172 nsert\SpecialChar \menuseparator
16173 Fil
16174 \bar under
16175 e
16176 \bar default
16177 \SpecialChar \menuseparator
16178 Ly
16179 \bar under
16180 X
16181 \bar default
16182 \InsetSpace ~
16183 Document
16184 \family default
16185 .
16186 \end_layout
16187
16188 \begin_layout Description
16189
16190 \series bold
16191 -r
16192 \series default
16193  Regular environments (see the Section\InsetSpace ~
16194
16195 \begin_inset LatexCommand \ref{sub:relyx-syntax}
16196
16197 \end_inset
16198
16199 ).
16200   If you give more than one environment, separate them with commas (not
16201  spaces).
16202  You'll probably need to quote the environment list, especially if it has
16203  asterisk environments (foo*) in it.
16204  If you use this command often, considering creating a personal syntax file.
16205 \end_layout
16206
16207 \begin_layout Description
16208
16209 \series bold
16210 -s
16211 \series default
16212  Syntax files.
16213  Input (one or more quoted, comma-separated) syntax files to read in addition
16214  to the default.
16215  (see the section Section\InsetSpace ~
16216
16217 \begin_inset LatexCommand \ref{sub:relyx-syntax}
16218
16219 \end_inset
16220
16221  for details).
16222 \end_layout
16223
16224 \begin_layout Subsection
16225 Description
16226 \end_layout
16227
16228 \begin_layout Subsubsection
16229 Introduction
16230 \end_layout
16231
16232 \begin_layout Standard
16233 reLyX will create a LyX file 
16234 \emph on
16235 dir/foo.lyx
16236 \emph default
16237  from the LaTeX file 
16238 \emph on
16239 dir/foo.tex
16240 \emph default
16241  (unless the 
16242 \series bold
16243 -o
16244 \series default
16245  option is used).
16246 \end_layout
16247
16248 \begin_layout Standard
16249 Suffixes 
16250 \family typewriter
16251 .tex
16252 \family default
16253
16254 \family typewriter
16255 .ltx
16256 \family default
16257  and 
16258 \family typewriter
16259 .latex
16260 \family default
16261  are supported.
16262  If 
16263 \emph on
16264 inputfile
16265 \emph default
16266  does not exist and does not have one of these suffixes, reLyX will try
16267  to translate 
16268 \emph on
16269 inputfile.tex
16270 \emph default
16271 .
16272  (This is similar to the behavior of LaTeX.)
16273 \end_layout
16274
16275 \begin_layout Standard
16276 The purpose of reLyX is to translate 
16277 \shape italic
16278 well-behaved
16279 \shape default
16280  LaTeX2e into LyX.
16281  If your LaTeX file doesn't compile---or if you do weird things, like redefining
16282  standard LaTeX commands---it may choke.
16283  LaTeX209 will often be translated correctly, but it's not guaranteed.
16284 \end_layout
16285
16286 \begin_layout Standard
16287 reLyX has some bugs and lacks a few features.
16288  However, its main goals are:
16289 \end_layout
16290
16291 \begin_layout Itemize
16292 Get through a well-behaved LaTeX2e file without crashing
16293 \end_layout
16294
16295 \begin_layout Itemize
16296 Translate a lot of that file.
16297 \end_layout
16298
16299 \begin_layout Itemize
16300 Localize the parts that can't be translated and copy them in TeX mode
16301 \end_layout
16302
16303 \begin_layout Standard
16304 It achieves these main goals pretty well on most files.
16305 \end_layout
16306
16307 \begin_layout Standard
16308 There are many improvements that can and will be made to reLyX in the future.
16309  However, we wanted to get reLyX out there early on, to make it easier for
16310  new LyX users to read in their existing LaTeX files.
16311 \end_layout
16312
16313 \begin_layout Subsubsection
16314 Usage
16315 \end_layout
16316
16317 \begin_layout Standard
16318 Here's a more lengthy description of what you should do to translate a LaTeX
16319  document into LyX.
16320 \end_layout
16321
16322 \begin_layout Itemize
16323 Run reLyX.
16324 \end_layout
16325
16326 \begin_deeper
16327 \begin_layout Standard
16328 reLyX will inform you of its progress and give any warnings to stderr, so
16329  if you don't want any output at all, try (in csh) 
16330 \begin_inset Quotes eld
16331 \end_inset
16332
16333
16334 \family typewriter
16335 reLyX foo.tex >& /dev/null
16336 \family default
16337
16338 \begin_inset Quotes erd
16339 \end_inset
16340
16341  or (in bash) 
16342 \begin_inset Quotes eld
16343 \end_inset
16344
16345
16346 \family typewriter
16347 reLyX foo.tex
16348 \family default
16349  
16350 \family typewriter
16351 2>&1 >/dev/null
16352 \family default
16353
16354 \begin_inset Quotes erd
16355 \end_inset
16356
16357 .
16358  You should NOT redirect standard output to 
16359 \family typewriter
16360 foo.lyx
16361 \family default
16362 .
16363  
16364 \end_layout
16365
16366 \end_deeper
16367 \begin_layout Itemize
16368 Run LyX on the resulting .lyx file.
16369 \end_layout
16370
16371 \begin_deeper
16372 \begin_layout Standard
16373 In theory, most of the file will have been translated, and anything that's
16374  untranslatable will be highlighted in red (TeX mode).
16375  In theory, LyX will be able to read in the file, and to create printed
16376  documents from it, because all that untranslated red stuff will be passed
16377  directly back to LaTeX, which LyX  uses as a backend.
16378  Unfortunately, reality doesn't always reflect theory.
16379  If reLyX crashes, or LyX cannot read the generated LyX file, see Section\InsetSpace ~
16380
16381 \begin_inset LatexCommand \ref{sub:relyx-bugs}
16382
16383 \end_inset
16384
16385  or the 
16386 \family typewriter
16387 BUGS
16388 \family default
16389  file.
16390 \end_layout
16391
16392 \end_deeper
16393 \begin_layout Itemize
16394 Change things that are in ERT boxes (TeX code) by hand in LyX.
16395 \end_layout
16396
16397 \begin_deeper
16398 \begin_layout Standard
16399 As mentioned above, you should be able to print out the LyX file even without
16400  doing this.
16401  However, changing a command in TeX mode to the corresponding LyX object
16402  will allow you to take advantage of LyX's WYSIWYM editing.
16403 \end_layout
16404
16405 \begin_layout Standard
16406 reLyX is not guaranteed to create a LyX file which generates exactly the
16407  same output as the LaTeX file, but it should come close.
16408  reLyX will generally err on the side of translating less to ensure that
16409  dvi or ps files are accurate, even though this leads to more 
16410 \begin_inset Quotes eld
16411 \end_inset
16412
16413 evil red text
16414 \begin_inset Quotes erd
16415 \end_inset
16416
16417  and less WYSIWYM.
16418 \end_layout
16419
16420 \end_deeper
16421 \begin_layout Itemize
16422 PROOFREAD THE DOCUMENT!!
16423 \end_layout
16424
16425 \begin_deeper
16426 \begin_layout Standard
16427 I'm sure you were planning on doing this anyway, but it's particularly important
16428  after translating a LaTeX document.
16429  reLyX is, at least now, better at 
16430 \begin_inset Quotes eld
16431 \end_inset
16432
16433 macro-translating
16434 \begin_inset Quotes erd
16435 \end_inset
16436
16437  (translating the whole document) than 
16438 \begin_inset Quotes eld
16439 \end_inset
16440
16441 micro-translating
16442 \begin_inset Quotes erd
16443 \end_inset
16444
16445  (translating every little detail).
16446  For example, you may see extra spaces or deleted spaces.
16447  Space handling has improved, but it's not perfect.
16448 \end_layout
16449
16450 \end_deeper
16451 \begin_layout Subsubsection
16452 What reLyX Can Handle
16453 \end_layout
16454
16455 \begin_layout Standard
16456 reLyX understands many LaTeX commands.
16457  It will translate:
16458 \end_layout
16459
16460 \begin_layout Itemize
16461 regular text, including mini-commands like ~, '', 
16462 \family typewriter
16463
16464 \backslash
16465 @
16466 \family default
16467
16468 \family typewriter
16469
16470 \backslash
16471 TeX
16472 \family default
16473 , as well as accented characters like 
16474 \family typewriter
16475
16476 \backslash
16477 '{a}
16478 \family default
16479 , and the special cases ?` and !`
16480 \end_layout
16481
16482 \begin_layout Itemize
16483 title commands like 
16484 \family typewriter
16485
16486 \backslash
16487 author
16488 \family default
16489
16490 \family typewriter
16491
16492 \backslash
16493 date
16494 \family default
16495
16496 \family typewriter
16497
16498 \backslash
16499 title
16500 \family default
16501
16502 \family typewriter
16503
16504 \backslash
16505 thanks
16506 \family default
16507  and the abstract environment
16508 \end_layout
16509
16510 \begin_layout Itemize
16511 heading commands like 
16512 \family typewriter
16513
16514 \backslash
16515 section
16516 \family default
16517  including starred commands (
16518 \family typewriter
16519
16520 \backslash
16521 section*
16522 \family default
16523 )
16524 \end_layout
16525
16526 \begin_layout Itemize
16527 Environments: 
16528 \family typewriter
16529 quote
16530 \family default
16531
16532 \family typewriter
16533 quotation
16534 \family default
16535 , and 
16536 \family typewriter
16537 verse
16538 \family default
16539
16540 \family typewriter
16541 center
16542 \family default
16543
16544 \family typewriter
16545 flushright
16546 \family default
16547 , and 
16548 \family typewriter
16549 flushleft
16550 \end_layout
16551
16552 \begin_layout Itemize
16553
16554 \family typewriter
16555 itemize
16556 \family default
16557
16558 \family typewriter
16559 enumerate
16560 \family default
16561 , and 
16562 \family typewriter
16563 description
16564 \family default
16565  environments, and their 
16566 \family typewriter
16567
16568 \backslash
16569 item
16570 \family default
16571  commands.
16572  Also, well-behaved nested lists
16573 \end_layout
16574
16575 \begin_layout Itemize
16576 cross-referencing commands: 
16577 \family typewriter
16578
16579 \backslash
16580 ref
16581 \family default
16582
16583 \family typewriter
16584
16585 \backslash
16586 pageref
16587 \family default
16588
16589 \family typewriter
16590
16591 \backslash
16592 label
16593 \family default
16594 , and 
16595 \family typewriter
16596
16597 \backslash
16598 cite
16599 \end_layout
16600
16601 \begin_layout Itemize
16602
16603 \family typewriter
16604
16605 \backslash
16606 footnote
16607 \family default
16608  and 
16609 \family typewriter
16610
16611 \backslash
16612 margin
16613 \end_layout
16614
16615 \begin_layout Itemize
16616 font-changing commands including 
16617 \family typewriter
16618
16619 \backslash
16620 em
16621 \family default
16622
16623 \family typewriter
16624
16625 \backslash
16626 emph
16627 \family default
16628
16629 \family typewriter
16630
16631 \backslash
16632 textit
16633 \family default
16634 , and corresponding commands to change family, size, series, and shape
16635 \end_layout
16636
16637 \begin_layout Itemize
16638
16639 \family typewriter
16640
16641 \backslash
16642 input{foo}
16643 \family default
16644  (or 
16645 \family typewriter
16646
16647 \backslash
16648 input{foo.blah}
16649 \family default
16650 ) and 
16651 \family typewriter
16652
16653 \backslash
16654 include{foo}
16655 \family default
16656 .
16657  Plain TeX 
16658 \family typewriter
16659
16660 \backslash
16661 input
16662 \family default
16663  command 
16664 \begin_inset Quotes erd
16665 \end_inset
16666
16667
16668 \family typewriter
16669
16670 \backslash
16671 input foo.tex
16672 \family default
16673
16674 \begin_inset Quotes erd
16675 \end_inset
16676
16677  is also supported.
16678 \end_layout
16679
16680 \begin_layout Itemize
16681
16682 \family typewriter
16683 tabular
16684 \family default
16685  environment, and commands that go inside it like 
16686 \family typewriter
16687
16688 \backslash
16689 hline
16690 \family default
16691
16692 \family typewriter
16693
16694 \backslash
16695 cline
16696 \family default
16697 , and 
16698 \family typewriter
16699
16700 \backslash
16701 multicolumn
16702 \family default
16703  (but see below)
16704 \end_layout
16705
16706 \begin_layout Itemize
16707 float environments 
16708 \family typewriter
16709 table
16710 \family default
16711  and 
16712 \family typewriter
16713 table*
16714 \family default
16715 , as well as 
16716 \family typewriter
16717
16718 \backslash
16719 caption
16720 \family default
16721  commands within them
16722 \end_layout
16723
16724 \begin_layout Itemize
16725
16726 \family typewriter
16727 thebibliography
16728 \family default
16729  environment and 
16730 \family typewriter
16731
16732 \backslash
16733 bibitem
16734 \family default
16735  command, as well as BibTeX's 
16736 \family typewriter
16737
16738 \backslash
16739 bibliography
16740 \family default
16741  and 
16742 \family typewriter
16743
16744 \backslash
16745 bibliographystyle
16746 \family default
16747  commands
16748 \end_layout
16749
16750 \begin_layout Itemize
16751 miscellaneous commands: 
16752 \family typewriter
16753
16754 \backslash
16755 hfill
16756 \family default
16757
16758 \family typewriter
16759
16760 \backslash
16761
16762 \backslash
16763
16764 \family default
16765
16766 \family typewriter
16767
16768 \backslash
16769 noindent
16770 \family default
16771
16772 \family typewriter
16773
16774 \backslash
16775 ldots
16776 \family default
16777 ...
16778 \end_layout
16779
16780 \begin_layout Itemize
16781 documentclass-specific environments (and some commands) which can be  translated
16782  to LyX layouts
16783 \end_layout
16784
16785 \begin_layout Itemize
16786 arguments to certain untranslatable commands (e.g.
16787  
16788 \family typewriter
16789
16790 \backslash
16791 mbox
16792 \family default
16793 )
16794 \end_layout
16795
16796 \begin_layout Standard
16797 Some of this support may not be 100% yet.
16798  See below for details
16799 \end_layout
16800
16801 \begin_layout Standard
16802 reLyX copies math (almost) verbatim from your LaTeX file.
16803  Luckily, LyX reads  in LaTeX math, so (almost) any math which is supported
16804  by LyX should work just fine.
16805  A few math commands which are not supported by LyX will be replaced with
16806  their equivalents, e.g., 
16807 \family typewriter
16808
16809 \backslash
16810 to
16811 \family default
16812  is converted to 
16813 \family typewriter
16814
16815 \backslash
16816 rightarrow
16817 \family default
16818 .
16819  See the section on 
16820 \shape italic
16821 Syntax Files
16822 \shape default
16823  for more details.
16824 \end_layout
16825
16826 \begin_layout Standard
16827 reLyX will also copy any preamble commands (i.e., anything before 
16828 \family typewriter
16829
16830 \backslash
16831 begin{document}
16832 \family default
16833 ) verbatim, so fancy stuff you've got in your preamble should be conserved
16834  in dvi and printed documents, although it will not of course show up in
16835  the LyX window.
16836  Check the preamble to make sure.
16837 \end_layout
16838
16839 \begin_layout Subsubsection
16840 What reLyX Can't Handle --- But it's OK
16841 \end_layout
16842
16843 \begin_layout Itemize
16844 figures and 
16845 \family typewriter
16846 tabular*
16847 \family default
16848  tables
16849 \end_layout
16850
16851 \begin_layout Itemize
16852 minipages
16853 \end_layout
16854
16855 \begin_layout Itemize
16856 spacing commands (
16857 \family typewriter
16858
16859 \backslash
16860 vspace
16861 \family default
16862
16863 \family typewriter
16864
16865 \backslash
16866 pagebreak
16867 \family default
16868
16869 \family typewriter
16870
16871 \backslash
16872 par
16873 \family default
16874 )
16875 \end_layout
16876
16877 \begin_layout Itemize
16878
16879 \family typewriter
16880
16881 \backslash
16882 centering
16883 \family default
16884
16885 \family typewriter
16886
16887 \backslash
16888 raggedleft
16889 \family default
16890
16891 \family typewriter
16892
16893 \backslash
16894 raggedright
16895 \end_layout
16896
16897 \begin_layout Itemize
16898
16899 \family typewriter
16900
16901 \backslash
16902 verb
16903 \family default
16904  and 
16905 \family typewriter
16906 verbatim
16907 \family default
16908  environment.
16909  reLyX is careful to copy 
16910 \shape italic
16911 exactly
16912 \shape default
16913  in this case, including comments and whitespace.
16914 \end_layout
16915
16916 \begin_layout Itemize
16917 some unknown (e.g., user-defined) environments and commands
16918 \end_layout
16919
16920 \begin_layout Standard
16921 reLyX copies unknown commands, along with their arguments, verbatim into
16922  the LyX file.
16923  Also, if it sees a 
16924 \family typewriter
16925
16926 \backslash
16927 begin{foo}
16928 \family default
16929  where it doesn't recognize the 
16930 \begin_inset Quotes eld
16931 \end_inset
16932
16933 foo
16934 \begin_inset Quotes erd
16935 \end_inset
16936
16937  environment, it will copy verbatim until it sees 
16938 \family typewriter
16939
16940 \backslash
16941 end{foo}
16942 \family default
16943  (unless you use the 
16944 \series bold
16945 -r
16946 \series default
16947  option).
16948  Hopefully, then, most of these unknown commands won't cause reLyX to break;
16949  they'll merely require you to do some editing once you've loaded the file
16950  up in LyX.
16951   That should be less painful than editing either the 
16952 \family typewriter
16953 .tex
16954 \family default
16955  or the 
16956 \family typewriter
16957 .lyx
16958 \family default
16959  file using a text editor.
16960 \end_layout
16961
16962 \begin_layout Subsubsection
16963 What reLyX Handles Badly --- a.\InsetSpace ~
16964 k.\InsetSpace ~
16965 a.
16966  BUGS
16967 \begin_inset LatexCommand \label{sub:relyx-bugs}
16968
16969 \end_inset
16970
16971
16972 \end_layout
16973
16974 \begin_layout Standard
16975 Since reLyX is relatively new, it's got a number of problems.
16976   As it matures, these bugs will be squished.
16977  A number of bugs and missing features can be found listed on the LyX bug
16978  tracker, 
16979 \begin_inset LatexCommand \url[LyX Bugzilla]{http://bugzilla.lyx.org/}
16980
16981 \end_inset
16982
16983 .
16984 \end_layout
16985
16986 \begin_layout Standard
16987 If reLyX is choking on something, or LyX can't read it after reLyX translates
16988  it, the best thing to do is to put 
16989 \family typewriter
16990
16991 \backslash
16992 begin{reLyXskip}
16993 \family default
16994  before the offending text, and 
16995 \family typewriter
16996
16997 \backslash
16998 end{reLyXskip}
16999 \family default
17000  after it.
17001  I call this a 
17002 \begin_inset Quotes eld
17003 \end_inset
17004
17005 skip
17006 \begin_inset Quotes erd
17007 \end_inset
17008
17009  block.
17010  reLyX will copy this block exactly, in TeX mode.
17011  Then edit the resulting LyX file, and translate the unknown stuff by hand.
17012  The 
17013 \family typewriter
17014 reLyXskip
17015 \family default
17016  environment is magical; the 
17017 \family typewriter
17018
17019 \backslash
17020 begin
17021 \family default
17022  and 
17023 \family typewriter
17024
17025 \backslash
17026 end
17027 \family default
17028  commands will not be put into the LyX file.
17029 \end_layout
17030
17031 \begin_layout Itemize
17032 \begin_inset Quotes eld
17033 \end_inset
17034
17035 Exact
17036 \begin_inset Quotes erd
17037 \end_inset
17038
17039  copying of unknown environments and commands isn't quite exact.
17040  Specifically, newlines and comments may be lost.
17041  This will yield ugly LyX, but in almost all cases the output will be the
17042  same.
17043  However, certain parts of the file will be copied perfectly, including
17044  whitespace and comments.
17045  This includes: the LaTeX preamble, 
17046 \family typewriter
17047 verbatim
17048 \family default
17049  environments and 
17050 \family typewriter
17051
17052 \backslash
17053 verb
17054 \family default
17055  commands, and skip blocks.
17056 \end_layout
17057
17058 \begin_layout Itemize
17059 reLyX translates only a few options to the 
17060 \family typewriter
17061
17062 \backslash
17063 documentclass
17064 \family default
17065  command.
17066  (Specifically 1[012]pt, [letter|legal|executive|a4|a5|b5]paper, [one|two]side,
17067  landscape, and [one|two]column.) Other options are placed in the extra class
17068  options field in the 
17069 \family sans
17070 \bar under
17071 D
17072 \bar default
17073 ocument\SpecialChar \menuseparator
17074
17075 \bar under
17076 S
17077 \bar default
17078 ettings
17079 \family default
17080  dialog.
17081 \end_layout
17082
17083 \begin_deeper
17084 \begin_layout Standard
17085 More importantly, reLyX doesn't translate 
17086 \family typewriter
17087
17088 \backslash
17089 usepackage
17090 \family default
17091  commands, margin  commands, 
17092 \family typewriter
17093
17094 \backslash
17095 newcommand
17096 \family default
17097 s, or, in fact, anything else from the preamble.
17098  It simply copies them into the LaTeX preamble.
17099  If you have margin commands in your preamble, then the LyX file will generate
17100  the right margins.
17101  However, these margins will override any margins you set in the LyX 
17102 \family sans
17103 \bar under
17104 D
17105 \bar default
17106 ocument
17107 \bar under
17108 \SpecialChar \menuseparator
17109 S
17110 \bar default
17111 ettings
17112 \family default
17113  dialog.
17114  So you should remove the options from the preamble to be safe.
17115  The same goes for setting your language with babel, 
17116 \family typewriter
17117
17118 \backslash
17119 inputencoding
17120 \family default
17121
17122 \family typewriter
17123
17124 \backslash
17125 pagestyle
17126 \family default
17127 , etc.
17128 \end_layout
17129
17130 \end_deeper
17131 \begin_layout Itemize
17132 The foil class has a couple bugs.
17133  reLyX may do weird things with optional arguments to 
17134 \family typewriter
17135
17136 \backslash
17137 foilhead
17138 \family default
17139  commands.
17140  Also, it may handle 
17141 \family typewriter
17142
17143 \backslash
17144 begin{dinglist}
17145 \family default
17146  incorrectly (although the stuff in the environment should translate normally).
17147 \end_layout
17148
17149 \begin_layout Standard
17150 reLyX is hopefully rather robust.
17151  As mentioned above, it may not translate your file perfectly, but it shouldn't
17152  crash.
17153  If it does crash---and the problem is not one of those mentioned above
17154  or in the 
17155 \emph on
17156 BUGS
17157 \emph default
17158  file---see Section\InsetSpace ~
17159
17160 \begin_inset LatexCommand \ref{sub:relyx-bug-reports}
17161
17162 \end_inset
17163
17164 .
17165 \end_layout
17166
17167 \begin_layout Subsubsection
17168 What LyX Can't Handle
17169 \end_layout
17170
17171 \begin_layout Standard
17172 LyX itself is missing a couple features, such that even if reLyX translates
17173  things perfectly, LyX may still have trouble reading it.
17174  If you really need these features, you can export your final document as
17175  LaTeX, and put them back in.
17176  See 
17177 \emph on
17178 BUGS
17179 \emph default
17180  for more details on these bugs.
17181 \end_layout
17182
17183 \begin_layout Itemize
17184 For a number of commands, LyX does not support the optional argument.
17185  Examples include 
17186 \family typewriter
17187
17188 \backslash
17189 sqrt
17190 \family default
17191
17192 \family typewriter
17193
17194 \backslash
17195 chapter
17196 \family default
17197  (and other sectioning commands), and 
17198 \family typewriter
17199
17200 \backslash
17201
17202 \backslash
17203
17204 \family default
17205 .
17206  reLyX will automatically discard the optional arguments with a warning
17207  to stdout.
17208  LyX also ignores the width argument for the 
17209 \family typewriter
17210 thebibliography
17211 \family default
17212  environment.
17213 \end_layout
17214
17215 \begin_layout Itemize
17216 Centering (or right or left justifying) works on full paragraphs.
17217 \end_layout
17218
17219 \begin_layout Itemize
17220 LyX support for tables isn't perfect.
17221  For complicated tables, use a 
17222 \begin_inset Quotes eld
17223 \end_inset
17224
17225 skip
17226 \begin_inset Quotes erd
17227 \end_inset
17228
17229  block, so that they will be copied in TeX mode.
17230 \end_layout
17231
17232 \begin_layout Itemize
17233 The LyX math editor can't handle the AMS-LaTeX math environments align,
17234  split, etc.
17235  So those environments will be copied in TeX mode.
17236  You can change 
17237 \family typewriter
17238 equation*
17239 \family default
17240  environments to the exactly equivalent displaymath, and then they will
17241  be translated correctly.
17242 \end_layout
17243
17244 \begin_layout Subsection
17245 Examples
17246 \end_layout
17247
17248 \begin_layout Standard
17249
17250 \family typewriter
17251 reLyX -df -o 
17252 \begin_inset Quotes eld
17253 \end_inset
17254
17255 my/dir
17256 \begin_inset Quotes erd
17257 \end_inset
17258
17259  -r 
17260 \begin_inset Quotes eld
17261 \end_inset
17262
17263 myenv
17264 \begin_inset Quotes erd
17265 \end_inset
17266
17267  foo.tex > foo.debug
17268 \end_layout
17269
17270 \begin_layout Standard
17271 The above will create a file my/dir/foo.lyx from foo.tex, overwriting if necessary.
17272   When it finds a 
17273 \family typewriter
17274
17275 \backslash
17276 begin{myenv} ...
17277  
17278 \backslash
17279 end{myenv}
17280 \family default
17281  block, it will translate the stuff within the block, but copy the 
17282 \family typewriter
17283
17284 \backslash
17285 begin
17286 \family default
17287  and 
17288 \family typewriter
17289
17290 \backslash
17291 end
17292 \family default
17293  commands in TeX mode.
17294   Finally, I'm going to keep the temporary files around (they will also
17295  be in my/dir/) and output lots of debugging information into the file foo.debug.
17296 \end_layout
17297
17298 \begin_layout Subsection
17299 Notes
17300 \end_layout
17301
17302 \begin_layout Subsubsection
17303 Bug Reports
17304 \begin_inset LatexCommand \label{sub:relyx-bug-reports}
17305
17306 \end_inset
17307
17308
17309 \end_layout
17310
17311 \begin_layout Standard
17312 If reLyX is crashing or otherwise acting strangely---in ways other than
17313  those described in Section\InsetSpace ~
17314
17315 \begin_inset LatexCommand \ref{sub:relyx-bugs}
17316
17317 \end_inset
17318
17319  or the bug tracker---then please run reLyX
17320 \series bold
17321  -d
17322 \series default
17323 .
17324   That will allow you to figure out where in the reLyXing process it crashed.
17325  That, in turn, will allow you to write a better bug report, which will
17326  allow the developers to fix it more quickly and easily.
17327 \end_layout
17328
17329 \begin_layout Standard
17330 Bug reports should be sent to the LyX developers' mailing list.
17331  Its address is currently 
17332 \family typewriter
17333 lyx-devel@lists.lyx.org
17334 \family default
17335 .
17336  If you are running reLyX on a huge file, please do not send all of the
17337  output in your bug report.
17338  Just include the last ten or twenty lines of output, along with the piece
17339  of the LaTeX file it crashed on.
17340   Or, even better, attach a small but complete file which causes the same
17341  problem as your original file.
17342 \end_layout
17343
17344 \begin_layout Subsubsection
17345 Implementation Details:
17346 \end_layout
17347
17348 \begin_layout Standard
17349 reLyX makes several 
17350 \begin_inset Quotes eld
17351 \end_inset
17352
17353 passes
17354 \begin_inset Quotes erd
17355 \end_inset
17356
17357  in order to translate a TeX file.
17358  On each pass, it creates one or two files.
17359 \end_layout
17360
17361 \begin_layout Description
17362 Pass\InsetSpace ~
17363 0 \InsetSpace ~
17364
17365 \newline
17366 Before doing anything, read the syntax file (or files).
17367 \end_layout
17368
17369 \begin_layout Description
17370 Pass\InsetSpace ~
17371 1a \InsetSpace ~
17372
17373 \newline
17374 Split preamble (anything before a 
17375 \family typewriter
17376
17377 \backslash
17378 begin{document}
17379 \family default
17380  command) off the rest of the file.
17381  It saves the two pieces in separate files.
17382  This is necessary because there may be very strange stuff in a preamble.
17383  It also ignores anything after the 
17384 \family typewriter
17385
17386 \backslash
17387 end{document}
17388 \family default
17389 , on the assumption that it isn't LaTeX.
17390 \end_layout
17391
17392 \begin_layout Description
17393 Pass\InsetSpace ~
17394 1b \InsetSpace ~
17395
17396 \newline
17397 Translate the preamble.
17398  Currently, that just means translating the 
17399 \family typewriter
17400
17401 \backslash
17402 documentclass
17403 \family default
17404  command and copying the rest exactly into the LyX preamble.
17405 \end_layout
17406
17407 \begin_deeper
17408 \begin_layout Standard
17409 Once you know what class the document is, read the LyX layout file for that
17410  class.
17411 \end_layout
17412
17413 \end_deeper
17414 \begin_layout Description
17415 Pass\InsetSpace ~
17416 2 \InsetSpace ~
17417
17418 \newline
17419
17420 \begin_inset Quotes eld
17421 \end_inset
17422
17423 Clean
17424 \begin_inset Quotes erd
17425 \end_inset
17426
17427  the TeX file, generating slightly stricter LaTeX.
17428  This includes:
17429 \end_layout
17430
17431 \begin_deeper
17432 \begin_layout Itemize
17433 Change, e.g., 
17434 \family typewriter
17435 x^2
17436 \family default
17437  to the equivalent but clearer 
17438 \family typewriter
17439 x^{2}
17440 \end_layout
17441
17442 \begin_layout Itemize
17443 Removing optional arguments that LyX can't handle (e.g., from 
17444 \family typewriter
17445
17446 \backslash
17447 sqrt
17448 \family default
17449 )
17450 \end_layout
17451
17452 \begin_layout Itemize
17453 Changing 
17454 \family typewriter
17455 {
17456 \backslash
17457 em foo}
17458 \family default
17459  to 
17460 \family typewriter
17461
17462 \backslash
17463 emph{foo}
17464 \family default
17465 , etc.
17466  This is necessary because LyX always writes out the non-local forms anyway.
17467  This should very rarely make a difference.
17468 \end_layout
17469
17470 \end_deeper
17471 \begin_layout Description
17472 Pass\InsetSpace ~
17473 3 \InsetSpace ~
17474
17475 \newline
17476 Translate LaTeX text, commands, and environments to LyX.
17477 \end_layout
17478
17479 \begin_layout Description
17480 Pass\InsetSpace ~
17481 4 \InsetSpace ~
17482
17483 \newline
17484 Put the two pieces back together, and do some final tweaking, to generate
17485  the LyX file
17486 \end_layout
17487
17488 \begin_layout Standard
17489 If there are any 
17490 \family typewriter
17491
17492 \backslash
17493 input
17494 \family default
17495  or 
17496 \family typewriter
17497
17498 \backslash
17499 include
17500 \family default
17501  commands, reLyX will loop back to the beginning and translate those.
17502  It assumes that the included files are the same class as the main file,
17503  and that they have no preamble matter.
17504  (If you have an 
17505 \family typewriter
17506
17507 \backslash
17508 input
17509 \family default
17510  command in the preamble of a file, the command will be copied exactly into
17511  the LaTeX preamble portion of the LyX file, so the included file won't
17512  be translated.) So when translating included files, it skips passes 0 and
17513  1.
17514 \end_layout
17515
17516 \begin_layout Standard
17517 If reLyX doesn't find a file you wanted to include, it will give a warning,
17518  but will continue to translate any files it does find.
17519 \end_layout
17520
17521 \begin_layout Subsubsection
17522 Layout Files
17523 \end_layout
17524
17525 \begin_layout Standard
17526 reLyX reads a LyX layout file to know how to handle LaTeX environments and
17527  commands which get translated to LyX layouts.
17528  This file will include all 
17529 \begin_inset Quotes eld
17530 \end_inset
17531
17532 normal
17533 \begin_inset Quotes erd
17534 \end_inset
17535
17536  non-math environments (i.e., including quote and itemize, but not tabular,
17537  minipage, and some other fancy environments), and commands like 
17538 \family typewriter
17539
17540 \backslash
17541 section
17542 \family default
17543  and 
17544 \family typewriter
17545
17546 \backslash
17547 title
17548 \family default
17549 .
17550  If you want to reLyX a class that doesn't have an existing layout file,
17551  then you'll have to create a layout file.
17552  But you have to do this anyway, in order to LyX the file, since LyX depends
17553  on layout files to know how to display and process its files.
17554  Check the LyX documentation for help with this task (which can be hard
17555  or easy, depending on the class you want to create a layout file for.) If
17556  your class is quite similar to a class that has a layout file, then consider
17557  using the 
17558 \series bold
17559 -c
17560 \series default
17561  option.
17562 \end_layout
17563
17564 \begin_layout Subsubsection
17565 Syntax Files
17566 \begin_inset LatexCommand \label{sub:relyx-syntax}
17567
17568 \end_inset
17569
17570
17571 \end_layout
17572
17573 \begin_layout Standard
17574 reLyX always reads at least one syntax file, called the default syntax file.
17575  reLyX will read your personal syntax file if it exists; otherwise it will
17576  read the system-wide file.
17577  reLyX will read additional syntax files if you specify them with the 
17578 \series bold
17579 -s
17580 \series default
17581  option.
17582  (These extra files should have the same format as the default file, but
17583  will tend to be shorter, since they only have to specify extra commands
17584  not found in the default file.) A syntax file tells reLyX a few things.
17585 \end_layout
17586
17587 \begin_layout Standard
17588 First, it describes the syntax of each command, that is, how many required
17589  arguments and how many optional arguments the command takes.
17590  Knowing this makes it easier for reLyX to copy (in TeX mode) commands that
17591  it doesn't know how to translate.
17592  The syntax file simply has a command, followed by braces or brackets describing
17593  its arguments in the correct order.
17594  For example, a syntax file entry 
17595 \family typewriter
17596
17597 \backslash
17598 bibitem[]{}
17599 \family default
17600  means that the 
17601 \family typewriter
17602
17603 \backslash
17604 bibitem
17605 \family default
17606  command takes an optional argument followed by a required one, while the
17607  entry 
17608 \family typewriter
17609
17610 \backslash
17611 bf
17612 \family default
17613  means that the 
17614 \family typewriter
17615
17616 \backslash
17617 bf
17618 \family default
17619  command takes no arguments at all.
17620   When reLyX encounters a token that it doesn't know how to translate into
17621  LyX, it will copy the token---along with the correct number of arguments---exac
17622 tly.
17623   If the token is not in the syntax file, then reLyX just copies as many
17624  arguments as it finds.
17625   This means that it may copy too much.
17626  But since the user can specify additional syntax files, that shouldn't
17627  happen often.
17628 \end_layout
17629
17630 \begin_layout Standard
17631 Some commands that cannot be translated to LyX, like 
17632 \family typewriter
17633
17634 \backslash
17635 mbox
17636 \family default
17637 , have as one of their arguments regular LaTeX text.
17638  If the string 
17639 \begin_inset Quotes eld
17640 \end_inset
17641
17642 translate
17643 \begin_inset Quotes erd
17644 \end_inset
17645
17646  is put into an argument of an (untranslatable) command in the syntax file,
17647  then reLyX will translate that argument instead of copying it verbatim.
17648  So, for example, the default syntax file has 
17649 \family typewriter
17650
17651 \backslash
17652 raisebox{}[][]{translate}
17653 \family default
17654 .
17655  This means that the 
17656 \family typewriter
17657
17658 \backslash
17659 raisebox
17660 \family default
17661  command and the first argument (and optional arguments if they exist) are
17662  copied in TeX mode, but the last argument (which may contain math, complicated
17663  LaTeX, other untranslatable commands, etc.) will be translated into LyX.
17664  You can't use 
17665 \begin_inset Quotes eld
17666 \end_inset
17667
17668 translate
17669 \begin_inset Quotes erd
17670 \end_inset
17671
17672  on optional arguments.
17673 \end_layout
17674
17675 \begin_layout Standard
17676 User-defined syntax files are allowed to define new commands and their syntax,
17677  or override the number of arguments for a command given in the default
17678  syntax file.
17679  (E.g., if you're using a style that gives an extra argument to some command...)
17680  However, this will only be useful for commands copied in TeX mode.
17681  Commands which are actually translated by reLyX (like 
17682 \family typewriter
17683
17684 \backslash
17685 item
17686 \family default
17687 ) have their argument syntax hard-coded.
17688  The hard-coded commands are identified in the default syntax file.
17689 \end_layout
17690
17691 \begin_layout Standard
17692 Second, the syntax file describes any 
17693 \begin_inset Quotes eld
17694 \end_inset
17695
17696 regular environments
17697 \begin_inset Quotes erd
17698 \end_inset
17699
17700 .
17701   Usually, an entire unknown environment will be copied in TeX mode.
17702  If you define a regular environment 
17703 \begin_inset Quotes eld
17704 \end_inset
17705
17706 foo
17707 \begin_inset Quotes erd
17708 \end_inset
17709
17710 , though, then only the 
17711 \family typewriter
17712
17713 \backslash
17714 begin{foo}
17715 \family default
17716  and 
17717 \family typewriter
17718
17719 \backslash
17720 end{foo}
17721 \family default
17722  commands will be copied in TeX mode; the text within the environment will
17723  be treated (i.e., translated) by reLyX as regular LaTeX, rather than being
17724  copied into TeX mode.
17725  Don't try to declare 
17726 \family typewriter
17727 tabbing
17728 \family default
17729  and 
17730 \family typewriter
17731 picture
17732 \family default
17733  as regular environments, as the text within those environments will confuse
17734  reLyX; use this capability for new environments you create that have plain
17735  text or math or simple commands in them.
17736  You also can't declare unknown math environments (like 
17737 \family typewriter
17738 equation*
17739 \family default
17740 ) as regular environments, either, since the LyX math editor won't understand
17741  them.
17742  The names of regular environments appear, whitespace-separated, between
17743  
17744 \family typewriter
17745
17746 \backslash
17747 begin{reLyXre}
17748 \family default
17749  and 
17750 \family typewriter
17751
17752 \backslash
17753 end{reLyXre}
17754 \family default
17755  statements in the syntax file.
17756  (If you have a regular environment which you won't use very often, you
17757  can use the 
17758 \series bold
17759 -r
17760 \series default
17761  option rather than writing a syntax file.)
17762 \end_layout
17763
17764 \begin_layout Standard
17765 Third, the syntax file describes a math translation table.
17766  The LyX math editor doesn't support a few commands.
17767  For example, 
17768 \family typewriter
17769 _
17770 \family default
17771  is supported, but the equivalent 
17772 \family typewriter
17773
17774 \backslash
17775 sb
17776 \family default
17777  is not.
17778  Put any commands you'd like translate between 
17779 \family typewriter
17780
17781 \backslash
17782 begin{reLyXmt}
17783 \family default
17784  and 
17785 \family typewriter
17786
17787 \backslash
17788 end{reLyXmt}
17789 \family default
17790  statements.
17791  The statement 
17792 \begin_inset Quotes eld
17793 \end_inset
17794
17795
17796 \family typewriter
17797
17798 \backslash
17799 | {
17800 \backslash
17801 Vert}
17802 \family default
17803
17804 \begin_inset Quotes erd
17805 \end_inset
17806
17807  means that any 
17808 \family typewriter
17809
17810 \backslash
17811 |
17812 \family default
17813  in math mode will be converted to 
17814 \begin_inset Quotes eld
17815 \end_inset
17816
17817
17818 \family typewriter
17819
17820 \backslash
17821 Vert
17822 \family default
17823  
17824 \begin_inset Quotes erd
17825 \end_inset
17826
17827
17828 \family typewriter
17829  
17830 \family default
17831 (in cases where a token made up of a backslash and a non-letter is translated
17832  to something with letters at the end, a space is added by reLyX.
17833  That way, 
17834 \begin_inset Quotes eld
17835 \end_inset
17836
17837
17838 \family typewriter
17839
17840 \backslash
17841 |a
17842 \family default
17843
17844 \begin_inset Quotes erd
17845 \end_inset
17846
17847  is correctly translated to 
17848 \begin_inset Quotes eld
17849 \end_inset
17850
17851
17852 \family typewriter
17853
17854 \backslash
17855 Vert a
17856 \family default
17857
17858 \begin_inset Quotes erd
17859 \end_inset
17860
17861 ).
17862 \end_layout
17863
17864 \begin_layout Subsubsection
17865 Miscellaneous
17866 \end_layout
17867
17868 \begin_layout Standard
17869 You need Perl version 5.002 or later to run reLyX.
17870  <plug> If you don't have Perl, you should get it anyway (at 
17871 \begin_inset LatexCommand \url[Perl]{http://www.perl.com/}
17872
17873 \end_inset
17874
17875 ), because it's a really useful tool for pretty much anything.
17876  </plug>
17877 \end_layout
17878
17879 \begin_layout Subsection
17880 Diagnostics
17881 \end_layout
17882
17883 \begin_layout Standard
17884 reLyX should always explain why it crashes, if it crashes.
17885  Some diagnostics may be very technical, though, if they come from the guts
17886  of the code.
17887  reLyX gives much more information while running if you use the 
17888 \series bold
17889 -d
17890 \series default
17891  option, but you shouldn't need that unless something goes wrong.
17892 \end_layout
17893
17894 \begin_layout Standard
17895 When it's finished, reLyX will tell you if it finished successfully or died
17896  due to some error.
17897 \end_layout
17898
17899 \begin_layout Subsection
17900 Warnings
17901 \end_layout
17902
17903 \begin_layout Standard
17904 Always keep a copy of your original LaTeX files either under a different
17905  name or in a different directory.
17906  There are a couple ways in which using LyX could lead to overwriting the
17907  original LaTeX file.
17908 \end_layout
17909
17910 \begin_layout Standard
17911 If you import 
17912 \family typewriter
17913 foo.tex
17914 \family default
17915  to create 
17916 \family typewriter
17917 foo.lyx
17918 \family default
17919 , then edit 
17920 \family typewriter
17921 foo.lyx
17922 \family default
17923  and want to re-export it, note that it will overwrite the original 
17924 \family typewriter
17925 foo.tex
17926 \family default
17927 .
17928  (LyX will 
17929 \emph on
17930 not
17931 \emph default
17932  ask you if you want to overwrite it.)
17933 \end_layout
17934
17935 \begin_layout Standard
17936 If you have chosen not to use a temporary directory in the preferences,
17937  then LyX will create its temporary files in your current directory, which
17938  means your LaTeX original may be overwritten (without a warning from LyX)
17939  when you 
17940 \begin_inset Quotes eld
17941 \end_inset
17942
17943 view dvi
17944 \begin_inset Quotes erd
17945 \end_inset
17946
17947  or print the LyX document.
17948 \end_layout
17949
17950 \begin_layout Subsection
17951 Files
17952 \end_layout
17953
17954 \begin_layout Description
17955
17956 \family typewriter
17957 \series medium
17958 MY_LYXDIR/layouts/*.layout
17959 \family default
17960 \series default
17961  \InsetSpace ~
17962
17963 \newline
17964 User's personal layout files for document classes
17965 \end_layout
17966
17967 \begin_layout Description
17968
17969 \family typewriter
17970 \series medium
17971 MY_LYXDIR/reLyX/syntax.default
17972 \family default
17973 \series default
17974  \InsetSpace ~
17975
17976 \newline
17977 User's personal syntax file
17978 \end_layout
17979
17980 \begin_layout Description
17981
17982 \family typewriter
17983 \series medium
17984 LIBDIR/layouts/*.layout
17985 \family default
17986 \series default
17987  \InsetSpace ~
17988
17989 \newline
17990 System-wide layout files for document classes
17991 \end_layout
17992
17993 \begin_layout Description
17994
17995 \family typewriter
17996 \series medium
17997 LIBDIR/reLyX/syntax.default
17998 \family default
17999 \series default
18000  \InsetSpace ~
18001
18002 \newline
18003 System-wide LaTeX syntax file
18004 \end_layout
18005
18006 \begin_layout Standard
18007
18008 \family typewriter
18009 LIBDIR
18010 \family default
18011  is the system-wide LyX directory, usually something like 
18012 \family typewriter
18013 /usr/local/share/lyx/
18014 \family default
18015 .
18016  
18017 \family typewriter
18018 MY_LYXDIR
18019 \family default
18020  is your personal LyX directory, something like 
18021 \family typewriter
18022 .lyx/
18023 \family default
18024  in your home directory.
18025  You can see their actual values in the 
18026 \family sans
18027 \bar under
18028 H
18029 \bar default
18030 elp\SpecialChar \menuseparator
18031 About\InsetSpace ~
18032 Ly
18033 \bar under
18034 X
18035 \family default
18036 \bar default
18037  dialog.
18038 \end_layout
18039
18040 \begin_layout Subsection
18041 See also
18042 \end_layout
18043
18044 \begin_layout Standard
18045
18046 \shape italic
18047 lyx
18048 \shape default
18049 (1), 
18050 \shape italic
18051 latex
18052 \shape default
18053 (1)
18054 \end_layout
18055
18056 \begin_layout Subsection
18057 Authors
18058 \end_layout
18059
18060 \begin_layout Standard
18061 Copyright (c) 1998--9 
18062 \noun on
18063 Amir Karger
18064 \noun default
18065  (
18066 \family typewriter
18067 karger@voth.chem.utah.edu
18068 \family default
18069 )
18070 \end_layout
18071
18072 \begin_layout Standard
18073 Code contributors:
18074 \end_layout
18075
18076 \begin_layout Itemize
18077
18078 \noun on
18079 John Weiss
18080 \noun default
18081  wrote the original CleanTeX pass.
18082 \end_layout
18083
18084 \begin_layout Itemize
18085
18086 \noun on
18087 Etienne Grossmann
18088 \end_layout
18089
18090 \begin_layout Itemize
18091
18092 \noun on
18093 Jos\i \'{e}
18094  Ab\i \'{\i}
18095 lio Oliveira Matos
18096 \end_layout
18097
18098 \begin_layout Itemize
18099
18100 \noun on
18101 David Suarez de Lis
18102 \end_layout
18103
18104 \begin_layout Standard
18105 Other contributors:
18106 \end_layout
18107
18108 \begin_layout Itemize
18109
18110 \noun on
18111 Jean-Marc Lasgouttes
18112 \noun default
18113  worked on the wrapper script and offered lots of bug reports, advice, and
18114  feature suggestions.
18115 \end_layout
18116
18117 \begin_layout Itemize
18118
18119 \noun on
18120 Asger K.
18121  Alstrup Nielsen
18122 \noun default
18123  and 
18124 \noun on
18125 Marc Pavese
18126 \noun default
18127  provided advice.
18128 \end_layout
18129
18130 \begin_layout Itemize
18131 Various members of the LyX developers' and users' lists provided bug reports
18132  and feature suggestions.
18133 \end_layout
18134
18135 \begin_layout Standard
18136 reLyX uses a modified version the Perl TeX parser 
18137 \family typewriter
18138 Text::TeX
18139 \family default
18140  package written by 
18141 \noun on
18142 Ilya Zakharevich
18143 \noun default
18144  (
18145 \family typewriter
18146 ilya@math.ohio-state.edu
18147 \family default
18148 ), available on CPAN.
18149 \end_layout
18150
18151 \begin_layout Chapter
18152 LyX Features needing Extra Software
18153 \end_layout
18154
18155 \begin_layout Section
18156 Using LyX with SGML-Tools (aka LinuxDoc)
18157 \end_layout
18158
18159 \begin_layout Standard
18160 by 
18161 \noun on
18162 Paul Evans
18163 \end_layout
18164
18165 \begin_layout Subsection
18166 Overview
18167 \end_layout
18168
18169 \begin_layout Standard
18170 LinuxDoc is a document class available in LyX if you have the 
18171 \family typewriter
18172 sgml-tools
18173 \family default
18174  package installed.
18175  You can use it to produce documents in the so-called Standardized General
18176  Mark-up Language (SGML) in the particular format used by the Linux Documentatio
18177 n Project.
18178  That is obviously helpful if you are contributing to that project.
18179  You can use the SGML format with the 
18180 \family typewriter
18181 sgml-tools
18182 \family default
18183  package of scripts and programs (to produce other formats, including Latex,
18184  HTML, plain text, man pages and\SpecialChar \ldots{}
18185 ).
18186  You may therefore prefer to use this document class if you want to write
18187  something that can be easily translated into other formats.
18188 \end_layout
18189
18190 \begin_layout Standard
18191 You will find that LinuxDoc has fewer layout options than the other text
18192  classes in LyX.
18193  This is mainly so that the translations into other formats have a chance
18194  of making some sense.
18195  In this section we describe:
18196 \end_layout
18197
18198 \begin_layout Itemize
18199 how to setup and use a document in LinuxDoc
18200 \end_layout
18201
18202 \begin_layout Itemize
18203 how to use the tags in LinuxDoc to layout your document
18204 \end_layout
18205
18206 \begin_layout Itemize
18207 how to use the SGML packages to produce the various formats
18208 \end_layout
18209
18210 \begin_layout Itemize
18211 how to sort out some problems.
18212 \end_layout
18213
18214 \begin_layout Subsection
18215 Preparing and using a LinuxDoc document
18216 \end_layout
18217
18218 \begin_layout Subsubsection
18219 Getting started
18220 \end_layout
18221
18222 \begin_layout Standard
18223 You start by selecting the LinuxDoc class using the 
18224 \family sans
18225 \bar under
18226 D
18227 \bar default
18228 ocument\SpecialChar \menuseparator
18229
18230 \bar under
18231 S
18232 \bar default
18233 ettings
18234 \family default
18235  dialog.
18236
18237 \family sans
18238  
18239 \family default
18240 Then you will find that there are fewer paragraph environments than for
18241  most other classes.
18242  You can see them on the pull down box on the left of the tool bar.
18243  How to use them is described in section\InsetSpace ~
18244
18245 \begin_inset LatexCommand \ref{sec:sgmlparas}
18246
18247 \end_inset
18248
18249 .
18250 \end_layout
18251
18252 \begin_layout Standard
18253 You 
18254 \emph on
18255 must
18256 \emph default
18257  enter a title for the document, followed by an author, marking each with
18258  the appropriate paragraph environment.
18259  If you don't do this, you will get errors when you try to print the file.
18260  You can then enter the date and an abstract.
18261  The document proper must start with a Section paragraph environment rather
18262  than any standard layout.
18263 \end_layout
18264
18265 \begin_layout Standard
18266 After that you can prepare a document as usual using the available range
18267  of paragraph environments.
18268  See section\InsetSpace ~
18269
18270 \begin_inset LatexCommand \ref{sec:sgmlparas}
18271
18272 \end_inset
18273
18274  for the full list and their uses.
18275 \end_layout
18276
18277 \begin_layout Subsubsection
18278 Output from LinuxDoc
18279 \end_layout
18280
18281 \begin_layout Standard
18282 You can print and save these documents in the normal way.
18283  To use the other features of the SGML package you need to save your document
18284  as LinuxDoc; this is a version in which the document is translated into
18285  the basic sgml tags.
18286  Use
18287 \family sans
18288  
18289 \bar under
18290 F
18291 \bar default
18292 ile\SpecialChar \menuseparator
18293
18294 \bar under
18295 E
18296 \bar default
18297 xport\SpecialChar \menuseparator
18298 Linu
18299 \bar under
18300 x
18301 \bar default
18302 Doc.
18303
18304 \family default
18305  You will get a file with the same name and a 
18306 \family typewriter
18307 .sgml
18308 \family default
18309  extension rather than a 
18310 \family typewriter
18311 .lyx
18312 \family default
18313  extension.
18314  See\InsetSpace ~
18315
18316 \begin_inset LatexCommand \ref{sec:sgmloperate}
18317
18318 \end_inset
18319
18320  on how you than make use of this file.
18321 \end_layout
18322
18323 \begin_layout Subsection
18324 Using the paragraph environments in LinuxDoc
18325 \end_layout
18326
18327 \begin_layout Subsubsection
18328 The Structure of a LinuxDoc Document
18329 \end_layout
18330
18331 \begin_layout Standard
18332 There is a formal structure for LinuxDoc which limits how you can place
18333  tags.
18334  There are two parts to all documents: 
18335 \end_layout
18336
18337 \begin_layout Description
18338 Header: this is everything up to the first time you insert a Section layout
18339  marker.
18340  It can include title, author, date, abstract and ToC.
18341  You must include the first two.
18342 \end_layout
18343
18344 \begin_layout Description
18345 Body: from the beginning of the first section onwards.
18346  All other tags are allowed.
18347  
18348 \end_layout
18349
18350 \begin_layout Subsubsection
18351 The LinuxDoc Paragraph Environments
18352 \end_layout
18353
18354 \begin_layout Standard
18355 \begin_inset LatexCommand \label{sec:sgmlparas}
18356
18357 \end_inset
18358
18359 Here is a list of all the tags you will find listed on the layout bar in
18360  the order they come there, with some comments where the purpose or use
18361  is not obvious:
18362 \end_layout
18363
18364 \begin_layout Itemize
18365
18366 \family sans
18367 Standard:
18368 \family roman
18369  works as described in [cross reference]
18370 \end_layout
18371
18372 \begin_layout Itemize
18373
18374 \family sans
18375 Title
18376 \family default
18377 : This will appear at the top left of the document when printed, above a
18378  heavy horizontal rule, although you will not see this on the LyX screen.
18379 \end_layout
18380
18381 \begin_layout Itemize
18382
18383 \family sans
18384 Section, Subsection, Subsubsection, Paragraph and Subparagraph:
18385 \family default
18386  all do what you would expect and in the usual order.
18387  Whether they are numbered or not is controlled by the 
18388 \family sans
18389 Section\InsetSpace ~
18390 number\InsetSpace ~
18391 depth
18392 \family default
18393  setting.
18394  You cannot get the equivalent number free versions in any other way; there
18395  is no 
18396 \family sans
18397 Section*
18398 \family default
18399  or similar
18400 \end_layout
18401
18402 \begin_layout Itemize
18403
18404 \family sans
18405 Enumerate:
18406 \family default
18407  As usual this produces a numbered and indented list as described in the
18408  
18409 \emph on
18410 User's Guide
18411 \emph default
18412 .
18413 \end_layout
18414
18415 \begin_layout Itemize
18416
18417 \family sans
18418 Itemize: 
18419 \family roman
18420 Again much the same as in the other classes: see the 
18421 \emph on
18422 User's Guide
18423 \emph default
18424 .
18425 \end_layout
18426
18427 \begin_layout Itemize
18428
18429 \family sans
18430 Description
18431 \family default
18432 : As explained in the 
18433 \emph on
18434 User's Guide
18435 \emph default
18436 .
18437  Remember that if you want the bold element at the start of a description
18438  to be more than one word then you need to put protected spaces between
18439  the words.
18440  
18441 \end_layout
18442
18443 \begin_layout Itemize
18444
18445 \family sans
18446 Verbatim: 
18447 \family default
18448 As usual.
18449 \end_layout
18450
18451 \begin_layout Itemize
18452
18453 \family sans
18454 Code: similar to the Lyx-Code
18455 \family roman
18456  environment
18457 \end_layout
18458
18459 \begin_layout Itemize
18460
18461 \family sans
18462 Author
18463 \family default
18464 : Anything you mark with this will appear on the left of the heading of
18465  the document, under the heavy rule.
18466 \end_layout
18467
18468 \begin_layout Itemize
18469
18470 \family sans
18471 Date:
18472 \family default
18473  Anything you mark with this will appear on the right of the heading under
18474  the rule.
18475  You do not have to make this a date.
18476  Any text can be entered, e.\InsetSpace ~
18477 g.
18478  a version number.
18479 \end_layout
18480
18481 \begin_layout Itemize
18482
18483 \family sans
18484 Abstract
18485 \family default
18486 : You can use this to produce a free standing paragraph after the author
18487  and date, and before the first section.
18488  You are only allowed one such paragraph.
18489 \begin_inset Foot
18490 status collapsed
18491
18492 \begin_layout Standard
18493
18494 \emph on
18495 Author's note.
18496  
18497 \emph default
18498 This needs checking ---
18499 \emph on
18500 pe.
18501 \end_layout
18502
18503 \end_inset
18504
18505
18506 \end_layout
18507
18508 \begin_layout Itemize
18509
18510 \family sans
18511 Displaymath
18512 \family default
18513 :
18514 \begin_inset Foot
18515 status collapsed
18516
18517 \begin_layout Standard
18518
18519 \emph on
18520 Author's note: 
18521 \emph default
18522 I have not yet checked this ---
18523 \emph on
18524 pe.
18525 \end_layout
18526
18527 \end_inset
18528
18529
18530 \end_layout
18531
18532 \begin_layout Subsubsection
18533 Other document features
18534 \end_layout
18535
18536 \begin_layout Standard
18537 You can also use the 
18538 \family sans
18539 Layout 
18540 \family default
18541 menu to set fonts or to emphasis words.
18542  You can also use the table of contents as usual; see the corresponding
18543  section of the 
18544 \emph on
18545 User's Guide
18546 \emph default
18547 .
18548  Although you will find some some other features on the menus e.\InsetSpace ~
18549 g.
18550  inserting footnotes.
18551  There is some doubt about whether these will work correctly.
18552 \begin_inset Foot
18553 status collapsed
18554
18555 \begin_layout Standard
18556
18557 \emph on
18558 Author's note: 
18559 \emph default
18560 Again still checking to see whether this is my system
18561 \emph on
18562  ---pe.
18563 \end_layout
18564
18565 \end_inset
18566
18567
18568 \end_layout
18569
18570 \begin_layout Subsubsection
18571 Cross references and HTML 
18572 \end_layout
18573
18574 \begin_layout Standard
18575 On the
18576 \family sans
18577  Insert
18578 \family default
18579  menu you will find two new options relating to the inclusion of URL addresses.
18580  If you use either option you will find some highlighted TeX code inserted
18581  into your document in three separate blocks with spaces available between.
18582  The blocks will be:
18583 \end_layout
18584
18585 \begin_layout Quote
18586
18587 \family typewriter
18588
18589 \backslash
18590 htmlurl{
18591 \family default
18592  or 
18593 \family typewriter
18594
18595 \backslash
18596 url{
18597 \family roman
18598
18599 \hfill
18600 space
18601 \family default
18602  
18603 \family typewriter
18604
18605 \hfill
18606 }{
18607 \family roman
18608
18609 \hfill
18610 space
18611 \hfill
18612
18613 \family typewriter
18614 }
18615 \end_layout
18616
18617 \begin_layout Standard
18618 You insert a full HTML tag between the first and second blocks.
18619  This can be 
18620 \begin_inset LatexCommand \url{http://any.address}
18621
18622 \end_inset
18623
18624  or other valid tags such as 
18625 \begin_inset LatexCommand \url{mailto:me@my.address}
18626
18627 \end_inset
18628
18629
18630 \family typewriter
18631 .
18632 \family default
18633 Then y
18634 \family roman
18635 ou 
18636 \family default
18637 insert some description between the second and third blocks.
18638  The differences are:
18639 \end_layout
18640
18641 \begin_layout Itemize
18642
18643 \family sans
18644 URL:
18645 \family roman
18646  both the HTML tag and the description will appear in the document
18647 \end_layout
18648
18649 \begin_layout Itemize
18650
18651 \family sans
18652 HTML\InsetSpace ~
18653 URL: 
18654 \family roman
18655 only the description appears in the printed version
18656 \end_layout
18657
18658 \begin_layout Subsection
18659 Using the LinuxDoc Sgml scripts
18660 \begin_inset Note Note
18661 status collapsed
18662
18663 \begin_layout Standard
18664 This section is completely outdated.
18665 \end_layout
18666
18667 \end_inset
18668
18669
18670 \end_layout
18671
18672 \begin_layout Standard
18673 \begin_inset LatexCommand \label{sec:sgmloperate}
18674
18675 \end_inset
18676
18677 You can use LinuxDoc as a text class without any additional scripts or programs,
18678  but there is not much point in doing this.
18679  All you will get is a document that looks like a 
18680 \emph on
18681 Linux Documentation Project Howto
18682 \family sans
18683 \emph default
18684 .
18685  
18686 \family default
18687 To do the document translation you need to get and install the 
18688 \family typewriter
18689 sgml-tools-1.0.x.tar.gz 
18690 \family default
18691 (with 
18692 \begin_inset Formula $x\geq3$
18693 \end_inset
18694
18695 ) package from 
18696 \family roman
18697 the SGML-Tools WWW Page
18698 \family default
18699  at
18700 \end_layout
18701
18702 \begin_layout LyX-Code
18703
18704 \family roman
18705 \begin_inset LatexCommand \url{http://pobox.com/~cg/sgmltools}
18706
18707 \end_inset
18708
18709
18710 \family default
18711  
18712 \end_layout
18713
18714 \begin_layout Standard
18715 Alternatively, you can go to the 
18716 \family typewriter
18717 sunsite
18718 \family default
18719  archive at
18720 \begin_inset Foot
18721 status collapsed
18722
18723 \begin_layout Standard
18724 Note that, at the time of this writing (01/1998), version 1.0.3 of sgml-tools
18725  has not yet been made available at 
18726 \family typewriter
18727 sunsite
18728 \family default
18729 .
18730 \end_layout
18731
18732 \end_inset
18733
18734
18735 \end_layout
18736
18737 \begin_layout LyX-Code
18738
18739 \family roman
18740 \begin_inset LatexCommand \url{ftp://sunsite.unc.edu/pub/Linux/utils/text/sgml-tools-1.0.x.tar.gz}
18741
18742 \end_inset
18743
18744
18745 \end_layout
18746
18747 \begin_layout Standard
18748
18749 \family roman
18750 The
18751 \family default
18752  file 
18753 \family typewriter
18754 sgml-tools-1.0.x.tar.gz
18755 \family default
18756  contains everything that you need to write SGML documents and convert them
18757  to groff, LaTeX, HTML, GNU info, LyX, and RTF\SpecialChar \@.
18758
18759 \end_layout
18760
18761 \begin_layout Standard
18762 This package was renamed from 
18763 \family typewriter
18764 linuxdoc-sgml-1.5.tar.gz
18765 \family default
18766  in January 1997.
18767 \end_layout
18768
18769 \begin_layout Standard
18770 Follow the instructions in that package on how to install it and how to
18771  use it.
18772  All this has to be done outside of LyX, before you can use the 
18773 \family sans
18774 \bar under
18775 F
18776 \bar default
18777 ile\SpecialChar \menuseparator
18778
18779 \bar under
18780 E
18781 \bar default
18782 xport\SpecialChar \menuseparator
18783 as\InsetSpace ~
18784 LinuxDoc 
18785 \family roman
18786 option.
18787 \end_layout
18788
18789 \begin_layout Subsection
18790 Troubleshooting LinuxDoc
18791 \end_layout
18792
18793 \begin_layout Standard
18794 When you print or preview a LinuxDoc document some checking is done of the
18795  tags before LaTeX is run.
18796  Some errors are trapped here, especially those concerning the structure
18797  of the document.
18798  LyX may produce an error message, but not leave an error box in the document
18799  for you to open.
18800  You may have to look at the files directly to discover what is wrong.
18801  Most problems seem to come from the use of options that are not fully available
18802  in the text class.
18803 \end_layout
18804
18805 \begin_layout Section
18806 Checking TeX
18807 \end_layout
18808
18809 \begin_layout Standard
18810 by 
18811 \noun on
18812 Asger Alstrup
18813 \end_layout
18814
18815 \begin_layout Subsection
18816 Introduction
18817 \end_layout
18818
18819 \begin_layout Standard
18820 Under the 
18821 \family sans
18822 \bar under
18823 T
18824 \bar default
18825 ools
18826 \family default
18827  menu, you'll find a 
18828 \family sans
18829 \bar under
18830 C
18831 \bar default
18832 heck\InsetSpace ~
18833 TeX
18834 \family default
18835  command.
18836  This feature requires you to have the 
18837 \family typewriter
18838 chktex
18839 \family default
18840  program installed, and is grayed out if you don't have it.
18841  You can get it from your nearest CTAN mirror, or over the Web from 
18842 \begin_inset LatexCommand \url{http://www.ifi.uio.no/~jensthi/chktex/}
18843
18844 \end_inset
18845
18846 .
18847 \end_layout
18848
18849 \begin_layout Standard
18850 The 
18851 \family sans
18852 ChkTeX
18853 \family default
18854  package is a program that was written by 
18855 \noun on
18856 Jens T.
18857  Berger Thielemann
18858 \noun default
18859  in frustration because some constructs in LaTeX are sometimes non-intuitive,
18860  and easy to forget.
18861  The program runs over your LaTeX file and checks the integrity of the file,
18862  and flags some common errors.
18863  In other technical words, it is 
18864 \family typewriter
18865 Lint
18866 \family default
18867  for LaTeX.
18868 \end_layout
18869
18870 \begin_layout Standard
18871 Well, what is a syntax checker doing in LyX which is supposed to produce
18872  correct LaTeX anyways? The answer is simple: Just as 
18873 \family typewriter
18874 Lint
18875 \family default
18876  not only checks the 
18877 \emph on
18878 syntax
18879 \emph default
18880  of C programs, but also does 
18881 \emph on
18882 semantic
18883 \emph default
18884  checks for type-errors, 
18885 \family sans
18886 ChkTeX
18887 \family default
18888  catches some common 
18889 \emph on
18890 typographic
18891 \emph default
18892  errors, in addition to the syntactical ones.
18893  Specifically, 
18894 \family sans
18895 ChkTeX
18896 \family default
18897  is capable of detecting several common errors, such as
18898 \end_layout
18899
18900 \begin_layout Itemize
18901 Ellipsis detection:
18902 \newline
18903 Use \SpecialChar \ldots{}
18904  instead of ...
18905 \end_layout
18906
18907 \begin_layout Itemize
18908 No space in front of/after parenthesis:
18909 \newline
18910 ( wrong spacing )
18911 \end_layout
18912
18913 \begin_layout Itemize
18914 Enforcement of normal space after common abbreviations:
18915 \newline
18916 e.
18917  g.
18918  is too wide spacing.
18919 \end_layout
18920
18921 \begin_layout Itemize
18922 Enforcement of end-of-sentence space when the last sentence ends with a
18923  capital letter:
18924 \newline
18925 This is a TEST.
18926  And this is wrong spacing.
18927 \end_layout
18928
18929 \begin_layout Itemize
18930 Space in front of labels and similar commands:
18931 \newline
18932 The label should stick right
18933  up to the text to avoid falling to a wrong page.
18934  
18935 \begin_inset LatexCommand \label{sec:chktex}
18936
18937 \end_inset
18938
18939  
18940 \begin_inset Foot
18941 status collapsed
18942
18943 \begin_layout Standard
18944 This footnote is in danger of falling off to a wrong page
18945 \end_layout
18946
18947 \end_inset
18948
18949  The label is separated too much.
18950 \end_layout
18951
18952 \begin_layout Itemize
18953 Space in front of references, instead of hard spaces:
18954 \newline
18955 In you are in bad luck,
18956  the text will break right between the referenced text and reference number,
18957  and that's a pity.
18958  See section 
18959 \begin_inset LatexCommand \ref{sec:chktex}
18960
18961 \end_inset
18962
18963 .
18964 \end_layout
18965
18966 \begin_layout Itemize
18967 Use of 
18968 \begin_inset Quotes eld
18969 \end_inset
18970
18971 x
18972 \begin_inset Quotes erd
18973 \end_inset
18974
18975  instead of 
18976 \begin_inset Formula $\times$
18977 \end_inset
18978
18979  between numbers:
18980 \newline
18981 2x2 looks cheap compared to 
18982 \begin_inset Formula $2\times2$
18983 \end_inset
18984
18985 .
18986 \end_layout
18987
18988 \begin_layout Standard
18989 and more \SpecialChar \ldots{}
18990  It is an invaluable tool when you are 
18991 \begin_inset Quotes eld
18992 \end_inset
18993
18994 finishing up
18995 \begin_inset Quotes erd
18996 \end_inset
18997
18998  your document before printing, and you should run it right after the obligatory
18999  spelling check, and before you go fine tuning the typesetting.
19000 \end_layout
19001
19002 \begin_layout Subsection
19003 How to use it
19004 \end_layout
19005
19006 \begin_layout Standard
19007 If you have the program installed, usage is as simple as choosing 
19008 \family sans
19009 \bar under
19010 T
19011 \bar default
19012 ools\SpecialChar \menuseparator
19013
19014 \bar under
19015 C
19016 \bar default
19017 heck\InsetSpace ~
19018 TeX
19019 \family default
19020 .
19021  This will make LyX generate a LaTeX file of your document, start 
19022 \family sans
19023 ChkTeX
19024 \family default
19025  to check it, and then make LyX insert 
19026 \begin_inset Quotes eld
19027 \end_inset
19028
19029 error boxes
19030 \begin_inset Quotes erd
19031 \end_inset
19032
19033  with the warnings from 
19034 \family sans
19035 ChkTeX
19036 \family default
19037 , if there were any.
19038  The warnings will be placed close to the point of the mistake, and you
19039  can quickly find them by using the 
19040 \family sans
19041 \bar under
19042 N
19043 \bar default
19044 avigate\SpecialChar \menuseparator
19045
19046 \bar under
19047 E
19048 \bar default
19049 rror
19050 \family default
19051  menu item, or the shortcut key 
19052 \family sans
19053 C-g
19054 \family default
19055  from the default 
19056 \family typewriter
19057 cua
19058 \family default
19059  bind file.
19060  Open the error boxes by clicking on them with the mouse, or use the shortcut
19061  key 
19062 \family sans
19063 C-i
19064 \family default
19065  from 
19066 \family typewriter
19067 cua
19068 \family default
19069  bindings, or the corresponding 
19070 \family sans
19071 C-o
19072 \family default
19073  for the alternate 
19074 \family typewriter
19075 emacs
19076 \family default
19077  bind file.
19078  Read the warning and correct the mistake, if it is a mistake.
19079  If you have trouble understanding what the warning is about, you can safely
19080  ignore it.
19081  Remember that there is a hidden layer between the document on screen and
19082  the technical details in invoking 
19083 \family sans
19084 ChkTeX
19085 \family default
19086 , and this gap can make some warnings seem arcane or just right down plain
19087  silly.
19088 \end_layout
19089
19090 \begin_layout Standard
19091 This document is an excellent testing bed for the feature, and it should
19092  provide quite a few warnings for you to fiddle with.
19093  Since computers are only so smart, expect most of the warnings to be false
19094  alarms, though.
19095 \end_layout
19096
19097 \begin_layout Subsection
19098 How to fine tune it
19099 \end_layout
19100
19101 \begin_layout Standard
19102 Sometimes, you'll find that 
19103 \family sans
19104 ChkTeX
19105 \family default
19106  makes more noise than suits your mood.
19107  Then you can choose not to use it, wait until your mood changes, or try
19108  to customize 
19109 \family sans
19110 ChkTeX
19111 \family default
19112  to get better along with you.
19113  Another choice in the most desperate situations is to use 
19114 \family sans
19115 \bar under
19116 V
19117 \bar default
19118 iew\SpecialChar \menuseparator
19119
19120 \bar under
19121 R
19122 \bar default
19123 emove\InsetSpace ~
19124 All\InsetSpace ~
19125 Error\InsetSpace ~
19126 Boxes
19127 \family default
19128 , which will get rid of all warnings instantly.
19129 \end_layout
19130
19131 \begin_layout Standard
19132 Although 
19133 \family sans
19134 ChkTeX
19135 \family default
19136  
19137 \emph on
19138 is
19139 \emph default
19140  very configurable and extensible, you shouldn't expect to solve all problems
19141  with 
19142 \family sans
19143 ChkTeX
19144 \family default
19145  in LyX this way.
19146  Since LyX has to generate a somewhat special LaTeX file to be able to match
19147  the line numbers from the 
19148 \family sans
19149 ChkTeX
19150 \family default
19151  output
19152 \begin_inset Foot
19153 status collapsed
19154
19155 \begin_layout Standard
19156 You can inspect the specific output from 
19157 \family sans
19158 chktex
19159 \family default
19160  by using 
19161 \family sans
19162 Edit\SpecialChar \menuseparator
19163 View\InsetSpace ~
19164 LaTeX\InsetSpace ~
19165 Log
19166 \family default
19167  right after a 
19168 \family sans
19169 chktex
19170 \family default
19171  run.
19172 \end_layout
19173
19174 \end_inset
19175
19176  to the internal document structure, some of the warnings will not seen
19177  to appear correctly.
19178  There are two things you can do about this:
19179 \end_layout
19180
19181 \begin_layout Itemize
19182 Fine tune the 
19183 \family sans
19184 ChkTeX
19185 \family default
19186  invocation command line in 
19187 \family sans
19188 Preferences
19189 \family default
19190  (tabs 
19191 \family sans
19192 Outputs
19193 \family default
19194
19195 \family sans
19196 Misc
19197 \family default
19198 ), or the global 
19199 \family sans
19200 ChkTeX
19201 \family default
19202  installation configuration file (usually with the file 
19203 \family typewriter
19204 /usr/local/share/chktexrc
19205 \family default
19206 ).
19207  See below to learn what warnings can be enabled and disabled on the command
19208  line.
19209  
19210 \end_layout
19211
19212 \begin_layout Itemize
19213 Export your document as a raw LaTeX file using 
19214 \family sans
19215 \bar under
19216 F
19217 \bar default
19218 ile\SpecialChar \menuseparator
19219
19220 \bar under
19221 E
19222 \bar default
19223 xport\SpecialChar \menuseparator
19224
19225 \bar under
19226 L
19227 \bar default
19228 aTeX
19229 \family default
19230  and run 
19231 \family typewriter
19232 chktex
19233 \family default
19234  manually on that.
19235  Invoked in this way, it can be a hassle to find the corresponding place
19236  in the document inside LyX, but with a little patience, you should be able
19237  to do it.
19238 \end_layout
19239
19240 \begin_layout Standard
19241 Here follows the warning messages that can be enabled and disabled in 
19242 \family sans
19243 Preferences
19244 \family default
19245 .
19246  Use 
19247 \family typewriter
19248 -n#
19249 \family default
19250  to disable a warning, and 
19251 \family typewriter
19252 -w#
19253 \family default
19254  to enable a warning.
19255  The emphasized entries are disabled by default, because the default is
19256  "
19257 \family typewriter
19258 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
19259 \family default
19260 ".
19261 \end_layout
19262
19263 \begin_layout Standard
19264 Notice that you should only use the options that enable and disable warnings,
19265  because LyX relies on some of the other command line parameters to be set
19266  in a specific way to have a chance to communicate with 
19267 \family typewriter
19268 chktex
19269 \family default
19270 .
19271 \end_layout
19272
19273 \begin_layout Enumerate
19274
19275 \size small
19276 \emph on
19277 Command terminated with space.
19278 \end_layout
19279
19280 \begin_layout Enumerate
19281
19282 \size small
19283 Non-breaking space (
19284 \begin_inset Quotes eld
19285 \end_inset
19286
19287
19288 \family typewriter
19289 ~
19290 \family default
19291
19292 \begin_inset Quotes erd
19293 \end_inset
19294
19295 ) should have been used.
19296 \end_layout
19297
19298 \begin_layout Enumerate
19299
19300 \size small
19301 \emph on
19302 You should enclose the previous parenthesis with 
19303 \begin_inset Quotes eld
19304 \end_inset
19305
19306
19307 \family typewriter
19308 {}
19309 \family default
19310
19311 \begin_inset Quotes erd
19312 \end_inset
19313
19314 .
19315 \end_layout
19316
19317 \begin_layout Enumerate
19318
19319 \size small
19320 Italic correction (
19321 \begin_inset Quotes eld
19322 \end_inset
19323
19324
19325 \family typewriter
19326
19327 \backslash
19328 /
19329 \family default
19330
19331 \begin_inset Quotes erd
19332 \end_inset
19333
19334 ) found in non-italic buffer.
19335 \end_layout
19336
19337 \begin_layout Enumerate
19338
19339 \size small
19340 Italic correction (
19341 \begin_inset Quotes eld
19342 \end_inset
19343
19344
19345 \family typewriter
19346
19347 \backslash
19348 /
19349 \family default
19350
19351 \begin_inset Quotes erd
19352 \end_inset
19353
19354 ) found more than once.
19355 \end_layout
19356
19357 \begin_layout Enumerate
19358
19359 \size small
19360 \emph on
19361 No italic correction (
19362 \begin_inset Quotes eld
19363 \end_inset
19364
19365
19366 \family typewriter
19367
19368 \backslash
19369 /
19370 \family default
19371
19372 \begin_inset Quotes erd
19373 \end_inset
19374
19375 ) found.
19376 \end_layout
19377
19378 \begin_layout Enumerate
19379
19380 \size small
19381 Accent command 
19382 \begin_inset Quotes eld
19383 \end_inset
19384
19385
19386 \family typewriter
19387 cmd
19388 \family default
19389
19390 \begin_inset Quotes erd
19391 \end_inset
19392
19393  needs use of 
19394 \begin_inset Quotes eld
19395 \end_inset
19396
19397
19398 \family typewriter
19399 cmd
19400 \family default
19401
19402 \begin_inset Quotes erd
19403 \end_inset
19404
19405 .
19406 \end_layout
19407
19408 \begin_layout Enumerate
19409
19410 \size small
19411 Wrong length of dash may have been used.
19412 \end_layout
19413
19414 \begin_layout Enumerate
19415
19416 \size small
19417 \emph on
19418 \begin_inset Quotes eld
19419 \end_inset
19420
19421
19422 \family typewriter
19423 %s
19424 \family default
19425
19426 \begin_inset Quotes erd
19427 \end_inset
19428
19429  expected, found 
19430 \begin_inset Quotes eld
19431 \end_inset
19432
19433
19434 \family typewriter
19435 %s
19436 \family default
19437
19438 \begin_inset Quotes erd
19439 \end_inset
19440
19441 .
19442 \end_layout
19443
19444 \begin_layout Enumerate
19445
19446 \size small
19447 Solo 
19448 \begin_inset Quotes eld
19449 \end_inset
19450
19451
19452 \family typewriter
19453 %s
19454 \family default
19455
19456 \begin_inset Quotes erd
19457 \end_inset
19458
19459  found.
19460 \end_layout
19461
19462 \begin_layout Enumerate
19463
19464 \size small
19465 You should use 
19466 \begin_inset Quotes eld
19467 \end_inset
19468
19469
19470 \family typewriter
19471 %s
19472 \family default
19473
19474 \begin_inset Quotes erd
19475 \end_inset
19476
19477  to achieve an ellipsis.
19478 \end_layout
19479
19480 \begin_layout Enumerate
19481
19482 \size small
19483 Inter-word spacing (
19484 \begin_inset Quotes eld
19485 \end_inset
19486
19487
19488 \family typewriter
19489
19490 \backslash
19491  
19492 \family default
19493
19494 \begin_inset Quotes eld
19495 \end_inset
19496
19497 ) should perhaps be used.
19498 \end_layout
19499
19500 \begin_layout Enumerate
19501
19502 \size small
19503 Inter-sentence spacing (
19504 \begin_inset Quotes eld
19505 \end_inset
19506
19507
19508 \family typewriter
19509
19510 \backslash
19511 @
19512 \family default
19513
19514 \begin_inset Quotes erd
19515 \end_inset
19516
19517 ) should perhaps be used.
19518 \end_layout
19519
19520 \begin_layout Enumerate
19521
19522 \size small
19523 Could not find argument for command.
19524 \end_layout
19525
19526 \begin_layout Enumerate
19527
19528 \size small
19529 No match found for 
19530 \begin_inset Quotes eld
19531 \end_inset
19532
19533
19534 \family typewriter
19535 %s
19536 \family default
19537
19538 \begin_inset Quotes erd
19539 \end_inset
19540
19541 .
19542 \end_layout
19543
19544 \begin_layout Enumerate
19545
19546 \size small
19547 Math mode still on at end of LaTeX file.
19548 \end_layout
19549
19550 \begin_layout Enumerate
19551
19552 \size small
19553 Number of 
19554 \begin_inset Quotes eld
19555 \end_inset
19556
19557
19558 \family typewriter
19559 char
19560 \family default
19561
19562 \begin_inset Quotes erd
19563 \end_inset
19564
19565  doesn't match the number of 
19566 \begin_inset Quotes eld
19567 \end_inset
19568
19569
19570 \family typewriter
19571 char
19572 \family default
19573
19574 \begin_inset Quotes erd
19575 \end_inset
19576
19577 .
19578 \end_layout
19579
19580 \begin_layout Enumerate
19581
19582 \size small
19583 You should use either 
19584 \family typewriter
19585
19586 \begin_inset Quotes eld
19587 \end_inset
19588
19589
19590 \family default
19591  or 
19592 \family typewriter
19593
19594 \begin_inset Quotes erd
19595 \end_inset
19596
19597
19598 \family default
19599  as an alternative to 
19600 \begin_inset Quotes eld
19601 \end_inset
19602
19603
19604 \family typewriter
19605 "
19606 \family default
19607
19608 \begin_inset Quotes erd
19609 \end_inset
19610
19611 .
19612 \end_layout
19613
19614 \begin_layout Enumerate
19615
19616 \size small
19617 You should use "
19618 \family typewriter
19619 '
19620 \family default
19621 " (ASCII 39) instead of "
19622 \family typewriter
19623 ´
19624 \family default
19625 " (ASCII 180).
19626 \end_layout
19627
19628 \begin_layout Enumerate
19629
19630 \size small
19631 User-specified pattern found.
19632 \end_layout
19633
19634 \begin_layout Enumerate
19635
19636 \size small
19637 This command might not be intended.
19638 \end_layout
19639
19640 \begin_layout Enumerate
19641
19642 \size small
19643 \emph on
19644 Comment displayed.
19645 \end_layout
19646
19647 \begin_layout Enumerate
19648
19649 \size small
19650 Either 
19651 \family typewriter
19652 ''
19653 \backslash
19654 ,'
19655 \family default
19656  or 
19657 \family typewriter
19658 '
19659 \backslash
19660 ,''
19661 \family default
19662  will look better.
19663 \end_layout
19664
19665 \begin_layout Enumerate
19666
19667 \size small
19668 Delete this space to maintain correct page references.
19669 \end_layout
19670
19671 \begin_layout Enumerate
19672
19673 \size small
19674 \emph on
19675 You might wish to put this between a pair of 
19676 \begin_inset Quotes eld
19677 \end_inset
19678
19679
19680 \family typewriter
19681 {}
19682 \family default
19683
19684 \begin_inset Quotes erd
19685 \end_inset
19686
19687 .
19688 \end_layout
19689
19690 \begin_layout Enumerate
19691
19692 \size small
19693 You ought to remove spaces in front of punctuation.
19694 \end_layout
19695
19696 \begin_layout Enumerate
19697
19698 \size small
19699 Could not execute LaTeX command.
19700 \end_layout
19701
19702 \begin_layout Enumerate
19703
19704 \size small
19705 Don't use 
19706 \family typewriter
19707
19708 \backslash
19709 /
19710 \family default
19711  in front of small punctuation.
19712 \end_layout
19713
19714 \begin_layout Enumerate
19715
19716 \family typewriter
19717 \size small
19718 $
19719 \backslash
19720 times$
19721 \family default
19722  may look prettier here.
19723 \end_layout
19724
19725 \begin_layout Enumerate
19726
19727 \size small
19728 \emph on
19729 Multiple spaces detected in output.
19730 \end_layout
19731
19732 \begin_layout Enumerate
19733
19734 \size small
19735 This text may be ignored.
19736 \end_layout
19737
19738 \begin_layout Enumerate
19739
19740 \size small
19741 Use 
19742 \family typewriter
19743
19744 \begin_inset Quotes eld
19745 \end_inset
19746
19747
19748 \family default
19749  to begin quotation, not 
19750 \family typewriter
19751 '
19752 \family default
19753 .
19754 \end_layout
19755
19756 \begin_layout Enumerate
19757
19758 \size small
19759 Use 
19760 \family typewriter
19761 '
19762 \family default
19763  to end quotation, not 
19764 \family typewriter
19765
19766 \begin_inset Quotes eld
19767 \end_inset
19768
19769
19770 \family default
19771 .
19772 \end_layout
19773
19774 \begin_layout Enumerate
19775
19776 \size small
19777 Don't mix quotes.
19778 \end_layout
19779
19780 \begin_layout Enumerate
19781
19782 \size small
19783 You should perhaps use 
19784 \begin_inset Quotes eld
19785 \end_inset
19786
19787
19788 \family typewriter
19789 cmd
19790 \family default
19791
19792 \begin_inset Quotes erd
19793 \end_inset
19794
19795  instead.
19796 \end_layout
19797
19798 \begin_layout Enumerate
19799
19800 \size small
19801 You should put a space in front of/after parenthesis.
19802 \end_layout
19803
19804 \begin_layout Enumerate
19805
19806 \size small
19807 You should avoid spaces in front of/after parenthesis.
19808 \end_layout
19809
19810 \begin_layout Enumerate
19811
19812 \size small
19813 \emph on
19814 You should not use punctuation in front of/after quotes.
19815 \end_layout
19816
19817 \begin_layout Enumerate
19818
19819 \size small
19820 Double space found.
19821 \end_layout
19822
19823 \begin_layout Enumerate
19824
19825 \size small
19826 You should put punctuation outside inner/inside display math mode.
19827 \end_layout
19828
19829 \begin_layout Enumerate
19830
19831 \size small
19832 You ought to not use primitive TeX in LaTeX code.
19833 \end_layout
19834
19835 \begin_layout Enumerate
19836
19837 \size small
19838 You should remove spaces in front of 
19839 \begin_inset Quotes eld
19840 \end_inset
19841
19842
19843 \family typewriter
19844 %s
19845 \family default
19846
19847 \begin_inset Quotes erd
19848 \end_inset
19849
19850
19851 \end_layout
19852
19853 \begin_layout Enumerate
19854
19855 \size small
19856 \begin_inset Quotes eld
19857 \end_inset
19858
19859
19860 \family typewriter
19861 %s
19862 \family default
19863
19864 \begin_inset Quotes erd
19865 \end_inset
19866
19867  is normally not followed by 
19868 \begin_inset Quotes eld
19869 \end_inset
19870
19871
19872 \family typewriter
19873 %c
19874 \family default
19875
19876 \begin_inset Quotes erd
19877 \end_inset
19878
19879 .
19880 \end_layout
19881
19882 \begin_layout Standard
19883 In later versions of LyX, we hope to provide a more complete interface to
19884  this tool (and it's smaller cousin 
19885 \family typewriter
19886 lacheck
19887 \family default
19888 ) to exploit the full power of it.
19889  But it's not exactly useless as it is now: go try it on one of your existing
19890  documents of a certain length and be surprised.
19891 \end_layout
19892
19893 \begin_layout Section
19894 Version Control in LyX
19895 \end_layout
19896
19897 \begin_layout Standard
19898 by
19899 \noun on
19900  Lars Gullik Bjønnes
19901 \end_layout
19902
19903 \begin_layout Subsection
19904 Introduction
19905 \end_layout
19906
19907 \begin_layout Standard
19908 A friend of mine wanted to try LyX for a group project.
19909  When he didn't find support for version control or file locking, he dropped
19910  it.
19911  This angered me a bit, so I thought that I should at least make support
19912  for RCS (with the possibility of CVS and/or SCCS as a future improvement.)
19913  This has now been done.
19914  LyX now supports some of the most basic RCS commands.
19915  If you need to something a bit more sophisticated you will have to do that
19916  manually in an xterm.
19917 \end_layout
19918
19919 \begin_layout Standard
19920 Before you begin to use the version control features in LyX, you should
19921  read 
19922 \begin_inset Quotes eld
19923 \end_inset
19924
19925 rcsintro
19926 \begin_inset Quotes erd
19927 \end_inset
19928
19929  (a man file, read it with 
19930 \family typewriter
19931 man rcsintro
19932 \family default
19933 ).
19934  This file describes all the basic features of RCS.
19935  You should especially notice the comment about a RCS directory, and the
19936  notion of a master RCS file (the file ending in 
19937 \family typewriter
19938 ,v
19939 \family default
19940 ).
19941 \end_layout
19942
19943 \begin_layout Standard
19944 The implementation in LyX assumes a recent version of the GNU RCS package---no
19945  guarantees are made for older versions.
19946 \end_layout
19947
19948 \begin_layout Subsection
19949 RCS commands in LyX
19950 \end_layout
19951
19952 \begin_layout Standard
19953 The following sections describe the RCS commands supported by LyX.
19954  You can find them in the 
19955 \family sans
19956 \bar under
19957 F
19958 \bar default
19959 ile\SpecialChar \menuseparator
19960
19961 \bar under
19962 V
19963 \bar default
19964 ersion\InsetSpace ~
19965 Control
19966 \family default
19967  submenu.
19968 \end_layout
19969
19970 \begin_layout Subsubsection
19971
19972 \family sans
19973 Register
19974 \end_layout
19975
19976 \begin_layout Standard
19977 If your document is not under revision control, this is the only item shown
19978  in the menu.
19979  And if it is under revision control, the 
19980 \family sans
19981 \bar under
19982 R
19983 \bar default
19984 egister
19985 \family default
19986  item is grayed out.
19987  
19988 \end_layout
19989
19990 \begin_layout Standard
19991 This command registers your document with RCS\SpecialChar \@.
19992  You are asked interactively
19993  to supply an initial description of the document.
19994  The document is now set in Read-Only mode and you have to 
19995 \family sans
19996 Check\InsetSpace ~
19997 Out\InsetSpace ~
19998 For\InsetSpace ~
19999 Edit
20000 \family default
20001 , before making any changes to it.
20002  A document under revision control has a 
20003 \begin_inset Quotes eld
20004 \end_inset
20005
20006 [RCS:<version> <locker>]
20007 \begin_inset Quotes erd
20008 \end_inset
20009
20010  item tagged to the filename in the minibuffer.
20011 \end_layout
20012
20013 \begin_layout Standard
20014 RCS command that is run: 
20015 \family typewriter
20016 ci -q -u -i -t-"<initial description>" <file-name>
20017 \end_layout
20018
20019 \begin_layout Standard
20020 Read 
20021 \family typewriter
20022 man ci
20023 \family default
20024  to understand the switches.
20025  
20026 \end_layout
20027
20028 \begin_layout Subsubsection
20029
20030 \family sans
20031 Check In Changes
20032 \end_layout
20033
20034 \begin_layout Standard
20035 When you are finished editing a file, you check in your changes.
20036  When you do this, you are asked for a description of the changes.
20037  This is stored in the history log.
20038  The version number is bumped, your changes are applied to the master RCS
20039  file, the document is unlocked and set to Read-Only mode.
20040  
20041 \end_layout
20042
20043 \begin_layout Standard
20044 RCS command: 
20045 \family typewriter
20046 ci -q -u -m"<description>" <file-name>
20047 \end_layout
20048
20049 \begin_layout Subsubsection
20050
20051 \family sans
20052 Check Out For Edit
20053 \end_layout
20054
20055 \begin_layout Standard
20056 By doing this you lock the document so that only you can edit it.
20057  This will also make the document Read-Write only for you.
20058  You will usually continue editing for a while and when you are finished
20059  you check in your changes.
20060  The status line is changed to reflect that you have locked the file.
20061  
20062 \end_layout
20063
20064 \begin_layout Standard
20065 RCS command: 
20066 \family typewriter
20067 co -q -l <file-name>
20068 \end_layout
20069
20070 \begin_layout Subsubsection
20071
20072 \family sans
20073 Revert To Last Version
20074 \end_layout
20075
20076 \begin_layout Standard
20077 This will discard all changes made to the document since the last check
20078  in.
20079  You get a warning before changes are discarded.
20080 \end_layout
20081
20082 \begin_layout Standard
20083 RCS command: 
20084 \family typewriter
20085 co -f -u<version> <file-name>
20086 \end_layout
20087
20088 \begin_layout Subsubsection
20089
20090 \family sans
20091 Undo Last Checkin
20092 \end_layout
20093
20094 \begin_layout Standard
20095 This makes as if the last check in never happened.
20096  No changes are made to the document loaded into LyX, but the last version
20097  is removed from the master RCS file.
20098  
20099 \end_layout
20100
20101 \begin_layout Standard
20102 RCS command: 
20103 \family typewriter
20104 rcs -o<version> <file-name>
20105 \end_layout
20106
20107 \begin_layout Subsubsection
20108
20109 \family sans
20110 Show History
20111 \end_layout
20112
20113 \begin_layout Standard
20114 This show the complete history of the RCS document.
20115  The output of 
20116 \family typewriter
20117 rlog <file-name>
20118 \family default
20119  is shown in a browser.
20120  See 
20121 \family typewriter
20122 man rlog
20123 \family default
20124  for more info.
20125 \end_layout
20126
20127 \begin_layout Section
20128 Literate Programming
20129 \end_layout
20130
20131 \begin_layout Standard
20132 Updated by 
20133 \noun on
20134 Kayvan Sylvan 
20135 \noun default
20136 (kayvan@sylvan.com)
20137 \noun on
20138
20139 \noun default
20140 original documentation written by 
20141 \noun on
20142 Edmar Wienskoski Jr.
20143
20144 \noun default
20145  (edmar-w-jr@technologist.com)
20146 \end_layout
20147
20148 \begin_layout Subsection
20149 Introduction
20150 \end_layout
20151
20152 \begin_layout Standard
20153 The main purpose of this documentation is to show you how to use LyX for
20154  literate programming.
20155  Where it is assumed that you are familiar with this programming technique,
20156  and know what 
20157 \begin_inset Quotes eld
20158 \end_inset
20159
20160 tangling
20161 \begin_inset Quotes erd
20162 \end_inset
20163
20164  and 
20165 \begin_inset Quotes eld
20166 \end_inset
20167
20168 weaving
20169 \begin_inset Quotes erd
20170 \end_inset
20171
20172  means.
20173  If that is not the case, please follow the web links provided in the following
20174  sections.
20175  There is a lot of good documentation out there covering old development
20176  history to the latest tools tips.
20177 \end_layout
20178
20179 \begin_layout Standard
20180 It is also assumed that you are familiar with LyX itself to a point that
20181  you are comfortable changing your LyX preferences, and X resources file.
20182  If that is not the case please refer to other LyX documentation to cover
20183  your specific needs.
20184 \end_layout
20185
20186 \begin_layout Subsection
20187 Literate Programming
20188 \end_layout
20189
20190 \begin_layout Standard
20191 From the Literate Programming FAQ: 
20192 \end_layout
20193
20194 \begin_layout Quotation
20195 Literate programming is the combination of documentation and source together
20196  in a fashion suited for reading by human beings.
20197  In fact, literate programs should be enjoyable reading, even inviting!
20198  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
20199  and documentation in a single file.
20200  Literate programming tools then parse the file to produce either readable
20201  documentation or compilable source.
20202  The WEB style of literate programming was created by D.E.
20203  Knuth during the development of his TeX typesetting software.
20204  
20205 \end_layout
20206
20207 \begin_layout Standard
20208 Another excerpt says:
20209 \end_layout
20210
20211 \begin_layout Quotation
20212
20213 \emph on
20214 How is literate programming different from verbose commenting?
20215 \end_layout
20216
20217 \begin_layout Quotation
20218 There are three distinguishing characteristics.
20219  In order of importance, they are: 
20220 \end_layout
20221
20222 \begin_deeper
20223 \begin_layout Itemize
20224 flexible order of elaboration 
20225 \end_layout
20226
20227 \begin_layout Itemize
20228 automatic support for browsing 
20229 \end_layout
20230
20231 \begin_layout Itemize
20232 typeset documentation, especially diagrams and mathematics 
20233 \end_layout
20234
20235 \end_deeper
20236 \begin_layout Standard
20237 Now that I sparked your curiosity, take a look in the references.
20238 \end_layout
20239
20240 \begin_layout Subsubsection
20241 References
20242 \end_layout
20243
20244 \begin_layout Standard
20245 The complete Literate Programming FAQ can be found at:
20246 \end_layout
20247
20248 \begin_layout Quote
20249 \begin_inset LatexCommand \url[Literate Programming FAQ]{http://shelob.ce.ttu.edu/daves/lpfaq/faq.html}
20250
20251 \end_inset
20252
20253
20254 \end_layout
20255
20256 \begin_layout Standard
20257 The FAQ lists 23 (twenty three!) different literate programming tools.
20258  Where some are specialized or 
20259 \begin_inset Quotes eld
20260 \end_inset
20261
20262 tailored
20263 \begin_inset Quotes erd
20264 \end_inset
20265
20266  for particular programming languages, while other have general scope.
20267  I selected 
20268 \noun on
20269 Noweb
20270 \noun default
20271  for my own use for several reasons:
20272 \end_layout
20273
20274 \begin_layout Itemize
20275 It can generate the documentation either in latex or html.
20276 \end_layout
20277
20278 \begin_layout Itemize
20279 It has a open architecture, i.e., it is easy to plug in new filters and to
20280  perform special processing that you may need.
20281  
20282 \end_layout
20283
20284 \begin_layout Itemize
20285 There is a good selection of filters available already (the html is one
20286  of them).
20287 \end_layout
20288
20289 \begin_layout Itemize
20290 It is free.
20291 \end_layout
20292
20293 \begin_layout Standard
20294 The Noweb web page can be found at: 
20295 \end_layout
20296
20297 \begin_layout Quote
20298 \begin_inset LatexCommand \url[Noweb home page]{http://www.cs.virginia.edu/~nr/noweb/}
20299
20300 \end_inset
20301
20302
20303 \end_layout
20304
20305 \begin_layout Standard
20306 Starting from there you can reach many other interesting links and even
20307  some literate program examples.
20308 \end_layout
20309
20310 \begin_layout Subsection
20311 LyX and Literate Programming
20312 \end_layout
20313
20314 \begin_layout Standard
20315 The LyX support for Literate Programming is provided by using the generic
20316  LyX convertors mechanism.
20317  This support is provided in a 
20318 \begin_inset Quotes eld
20319 \end_inset
20320
20321 Noweb independent
20322 \begin_inset Quotes erd
20323 \end_inset
20324
20325  way, i.e., you will be able to use this new LyX feature with some other literate
20326  programming tool of your choice by just changing your LyX preferences.
20327 \end_layout
20328
20329 \begin_layout Subsubsection
20330 Generating documents and code (weaving and tangling)
20331 \end_layout
20332
20333 \begin_layout Paragraph
20334 Selecting the document class
20335 \end_layout
20336
20337 \begin_layout Standard
20338 If you have installed Noweb and LyX successfully, whenever you open a new
20339  document or try to change the document class of an existing one, you will
20340  find that there are three new document classes available:
20341 \end_layout
20342
20343 \begin_layout Itemize
20344 Article (Noweb)
20345 \end_layout
20346
20347 \begin_layout Itemize
20348 Book (Noweb)
20349 \end_layout
20350
20351 \begin_layout Itemize
20352 Report (Noweb)
20353 \end_layout
20354
20355 \begin_layout Standard
20356 You must select one of them to create your literate documents from.
20357  
20358 \end_layout
20359
20360 \begin_layout Standard
20361 Note that literate documents are not limited to these three classes.
20362  New classes can be generated from other styles like letter or in combination
20363  with other class variations like Article (AMS).
20364  If you have special needs that cannot be covered by one of the existing
20365  classes, let the LyX developers list (lyx-devel@lists.lyx.org) know and we
20366  will arrange to insert a new entry, or teach you how to do it.
20367 \begin_inset Foot
20368 status collapsed
20369
20370 \begin_layout Standard
20371 It is very simple, it involves the creation of a file with four lines, and
20372  re-running of the auto configuration.
20373 \end_layout
20374
20375 \end_inset
20376
20377  Moreover, if you use a literate tool other than Noweb you may need to create
20378  a new set of document classes for it.
20379 \end_layout
20380
20381 \begin_layout Paragraph
20382 Typing code in
20383 \end_layout
20384
20385 \begin_layout Standard
20386 LyX enables you to write code with a layout named 
20387 \noun on
20388 Scrap
20389 \noun default
20390 .
20391 \begin_inset Foot
20392 status collapsed
20393
20394 \begin_layout Standard
20395 The equivalent Noweb term is 
20396 \begin_inset Quotes eld
20397 \end_inset
20398
20399 Chunk
20400 \begin_inset Quotes erd
20401 \end_inset
20402
20403 .
20404  For historical reasons, I got used to the term 
20405 \begin_inset Quotes eld
20406 \end_inset
20407
20408 scrap
20409 \begin_inset Quotes erd
20410 \end_inset
20411
20412  introduced by other literate tool named Nuweb, which I used for many years
20413  before rendering myself to Noweb.
20414 \end_layout
20415
20416 \end_inset
20417
20418  Noweb delimits scraps like this:
20419 \end_layout
20420
20421 \begin_layout LyX-Code
20422 <<My scrap>>=
20423 \end_layout
20424
20425 \begin_layout LyX-Code
20426   code
20427 \end_layout
20428
20429 \begin_layout LyX-Code
20430   more code
20431 \end_layout
20432
20433 \begin_layout LyX-Code
20434   even more code
20435 \end_layout
20436
20437 \begin_layout LyX-Code
20438   @
20439 \end_layout
20440
20441 \begin_layout Standard
20442 The problem is that whatever is written in between the << and the 
20443 \family typewriter
20444 @
20445 \family default
20446  must be taken literally, i.e., LyX should be prevented from making any special
20447  interpretation of what has been written.
20448  This is handled by a special layout named Scrap, that works like a normal
20449  paragraph but has a free spacing capability.
20450 \end_layout
20451
20452 \begin_layout Standard
20453 The down side of the Scrap paragraph layout is that consecutive paragraphs
20454  of code will be spaced with one empty line in the source code and also
20455  in the printed documentation.
20456  The work around is to enter each line of code within a single Scrap, with
20457  a newline (ctrl-return).
20458  The example above will look like this:
20459 \begin_inset Foot
20460 status collapsed
20461
20462 \begin_layout Standard
20463 If you have a printed version of this document you will not see any difference
20464  between the previous example and this one.
20465 \end_layout
20466
20467 \end_inset
20468
20469
20470 \end_layout
20471
20472 \begin_layout LyX-Code
20473 <<My scrap>>=
20474 \newline
20475   code
20476 \newline
20477   more code
20478 \newline
20479   even more code
20480 \newline
20481   @
20482 \end_layout
20483
20484 \begin_layout Standard
20485 This layout works fine.
20486  The only real inconvenience is that you have to type ctrl-return instead
20487  of a plain return.
20488 \begin_inset Foot
20489 status collapsed
20490
20491 \begin_layout Standard
20492 It is in my list of 
20493 \begin_inset Quotes eld
20494 \end_inset
20495
20496 improvements
20497 \begin_inset Quotes erd
20498 \end_inset
20499
20500  to fix that.
20501 \end_layout
20502
20503 \end_inset
20504
20505
20506 \end_layout
20507
20508 \begin_layout Standard
20509 As a special note, you can also use the 
20510 \begin_inset Quotes eld
20511 \end_inset
20512
20513 %def
20514 \begin_inset Quotes erd
20515 \end_inset
20516
20517  construct of Noweb in your scraps to add items to Noweb's identifier cross-refe
20518 rence:
20519 \end_layout
20520
20521 \begin_layout LyX-Code
20522 <<My scrap>>=
20523 \newline
20524   def some_function(args):
20525 \newline
20526     "This is the doc string for this
20527  function."
20528 \newline
20529     print "My args: ", args
20530 \end_layout
20531
20532 \begin_layout LyX-Code
20533 @ %def some_function
20534 \end_layout
20535
20536 \begin_layout Standard
20537 For an example of this usage and the resulting cross-reference output, look
20538  at the Literate python program in 
20539 \emph on
20540 LIBDIR/examples/listerrors.lyx 
20541 \emph default
20542 which should make this all clear.
20543 \end_layout
20544
20545 \begin_layout Paragraph
20546 Generating the documentation
20547 \end_layout
20548
20549 \begin_layout Standard
20550 At this point you already have a new document file with a proper document
20551  class, and with some code and text on it.
20552  How do I print it? The answer is simple, you select 
20553 \family sans
20554 \bar under
20555 V
20556 \bar default
20557 iew\SpecialChar \menuseparator
20558
20559 \bar under
20560 D
20561 \bar default
20562 VI,
20563 \family default
20564  etc.
20565  Just like you would do for a plain document.
20566  No special procedure is required.
20567 \end_layout
20568
20569 \begin_layout Standard
20570 To help orientate you, I will now explain what happens inside LyX:
20571 \end_layout
20572
20573 \begin_layout Enumerate
20574 When the 
20575 \family sans
20576 \bar under
20577 U
20578 \bar default
20579 pdate\SpecialChar \menuseparator
20580
20581 \bar under
20582 D
20583 \bar default
20584 VI 
20585 \family default
20586 menu option is chosen, a latex file is generated.
20587  
20588 \end_layout
20589
20590 \begin_deeper
20591 \begin_layout Standard
20592 If the document is of any literate class the generated file will be named
20593  with an extension name defined by the 
20594 \begin_inset Quotes eld
20595 \end_inset
20596
20597 literate
20598 \begin_inset Quotes erd
20599 \end_inset
20600
20601  format (defined in the Preferences panel), otherwise the file will have
20602  the usual 
20603 \family typewriter
20604 .tex 
20605 \family default
20606 extension.
20607 \end_layout
20608
20609 \end_deeper
20610 \begin_layout Enumerate
20611 Note that the only difference so far is in the name of the file, no special
20612  processing is required by LyX.
20613  Given that you formatted the code using the Scrap layout that, by itself,
20614  takes care of the business.
20615 \end_layout
20616
20617 \begin_layout Enumerate
20618 If the document is of any literate class LyX will then use the internal
20619  LyX to Noweb converter, followed by the Noweb to LaTeX converter
20620 \begin_inset Foot
20621 status open
20622
20623 \begin_layout Standard
20624 The converters are defined in the 
20625 \family sans
20626 \bar under
20627 T
20628 \bar default
20629 ools\SpecialChar \menuseparator
20630
20631 \bar under
20632 P
20633 \bar default
20634 references
20635 \family default
20636  panel, under the 
20637 \begin_inset Quotes eld
20638 \end_inset
20639
20640 Conversion
20641 \begin_inset Quotes erd
20642 \end_inset
20643
20644  tab.
20645 \end_layout
20646
20647 \end_inset
20648
20649  to generate the LaTeX file.
20650 \end_layout
20651
20652 \begin_deeper
20653 \begin_layout Standard
20654 Otherwise it will just skip this step.
20655 \end_layout
20656
20657 \end_deeper
20658 \begin_layout Enumerate
20659 Finally, LaTeX is invoked and the regular post processing continues as in
20660  a plain document.
20661 \end_layout
20662
20663 \begin_layout Standard
20664 Independence from a particular 
20665 \begin_inset Quotes eld
20666 \end_inset
20667
20668 literate tool
20669 \begin_inset Quotes erd
20670 \end_inset
20671
20672  is easily achieved by changing the commands that are run by the various
20673  converters.
20674 \end_layout
20675
20676 \begin_layout Paragraph
20677 Generating the code
20678 \end_layout
20679
20680 \begin_layout Standard
20681 When the build menu option is chosen or the corresponding button in the
20682  toolbar is pressed, a latex file is generated just like step 1 above.
20683  Next, LyX invokes the
20684 \family typewriter
20685  Noweb->Program
20686 \family default
20687  converter.
20688  Typically, this converter (like any other converter), has two parts:
20689 \end_layout
20690
20691 \begin_layout Enumerate
20692 The converter program itself.
20693  This program performs the conversion from the one format to the other (in
20694  this case, from the Noweb format to the Program pseudo-format).
20695 \end_layout
20696
20697 \begin_layout Enumerate
20698 The error log parser.
20699  This is a program whose sole purpose is to rewrite error messages in a
20700  format that LyX understands.
20701  This makes it possible for LyX to place error boxes in the right places
20702  in the file buffer.
20703 \end_layout
20704
20705 \begin_layout Standard
20706 The first part, the 
20707 \begin_inset Quotes eld
20708 \end_inset
20709
20710 Converter
20711 \begin_inset Quotes erd
20712 \end_inset
20713
20714  setting, should be set to 
20715 \begin_inset Quotes eld
20716 \end_inset
20717
20718
20719 \family typewriter
20720 build-script $$i
20721 \family default
20722
20723 \begin_inset Quotes erd
20724 \end_inset
20725
20726 .
20727  This basically means that LyX will call 
20728 \begin_inset Quotes eld
20729 \end_inset
20730
20731 build-script
20732 \begin_inset Quotes erd
20733 \end_inset
20734
20735  (a program or script) with the name of the Noweb file (generally a file
20736  in the LyX temp directory).
20737  
20738 \end_layout
20739
20740 \begin_layout Standard
20741 This is an implementation of 
20742 \begin_inset Quotes eld
20743 \end_inset
20744
20745 build-script
20746 \begin_inset Quotes erd
20747 \end_inset
20748
20749  that you can place in a directory on your path:
20750 \end_layout
20751
20752 \begin_layout LyX-Code
20753 #!/bin/sh
20754 \end_layout
20755
20756 \begin_layout LyX-Code
20757 #
20758 \end_layout
20759
20760 \begin_layout LyX-Code
20761 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
20762 \end_layout
20763
20764 \begin_layout Standard
20765 The next part of the converter setting is the 
20766 \begin_inset Quotes eld
20767 \end_inset
20768
20769 Flags
20770 \begin_inset Quotes erd
20771 \end_inset
20772
20773  which is to be set to 
20774 \begin_inset Quotes eld
20775 \end_inset
20776
20777
20778 \family typewriter
20779 originaldir,parselog=listerrors
20780 \family default
20781
20782 \begin_inset Quotes erd
20783 \end_inset
20784
20785 .
20786  This will run any errors that are generated by the 
20787 \begin_inset Quotes eld
20788 \end_inset
20789
20790 build-script
20791 \begin_inset Quotes erd
20792 \end_inset
20793
20794  process through the 
20795 \begin_inset Quotes eld
20796 \end_inset
20797
20798 listerrors
20799 \begin_inset Quotes erd
20800 \end_inset
20801
20802  program.
20803 \end_layout
20804
20805 \begin_layout Standard
20806 The converter code looks in 
20807 \emph on
20808 MYLYXDIR/scripts 
20809 \emph default
20810 first, then in
20811 \emph on
20812  LIBDIR/scripts 
20813 \emph default
20814 then on the path for the 
20815 \begin_inset Quotes eld
20816 \end_inset
20817
20818 listerrors
20819 \begin_inset Quotes erd
20820 \end_inset
20821
20822  program.
20823 \end_layout
20824
20825 \begin_layout Paragraph
20826 Build instructions in the document
20827 \end_layout
20828
20829 \begin_layout Standard
20830 The last piece of the integration between LyX and noweb is the 
20831 \begin_inset Quotes eld
20832 \end_inset
20833
20834 build-script
20835 \begin_inset Quotes erd
20836 \end_inset
20837
20838  scrap.
20839  Generally, the instructions for building your program should be embedded
20840  in a scrap of its own.
20841  The noweb-specific 
20842 \begin_inset Quotes eld
20843 \end_inset
20844
20845 build-script
20846 \begin_inset Quotes erd
20847 \end_inset
20848
20849  above uses the notangle command to look for this scrap (called 
20850 \begin_inset Quotes eld
20851 \end_inset
20852
20853 build-script
20854 \begin_inset Quotes erd
20855 \end_inset
20856
20857 ) and runs its contents through 
20858 \begin_inset Quotes eld
20859 \end_inset
20860
20861 sh
20862 \begin_inset Quotes erd
20863 \end_inset
20864
20865 .
20866 \end_layout
20867
20868 \begin_layout Standard
20869 Typically, such a scrap would look something like this:
20870 \end_layout
20871
20872 \begin_layout LyX-Code
20873 <<build-script>>=
20874 \newline
20875 #!/bin/sh
20876 \newline
20877
20878 \newline
20879 if [ -z "${NOWEB_SOURCE}" ]
20880 \newline
20881 then
20882 \newline
20883   NOWEB_SOURCE=myfile.nw
20884 \newline
20885
20886 fi
20887 \newline
20888 [...
20889  code to extract files ...]
20890 \newline
20891 [...
20892  code to compile files ...]
20893 \newline
20894 @
20895 \end_layout
20896
20897 \begin_layout Standard
20898 Look in 
20899 \emph on
20900 LIBDIR/examples/listerrors.lyx 
20901 \emph default
20902 or in 
20903 \emph on
20904 LIBDIR/examples/Literate.lyx
20905 \emph default
20906  which implement two versions of the 
20907 \begin_inset Quotes eld
20908 \end_inset
20909
20910 listerrors
20911 \begin_inset Quotes erd
20912 \end_inset
20913
20914  program for some illustrations of how all of these pieces go together or
20915  in 
20916 \emph on
20917 LIBDIR/examples/noweb2lyx.lyx.
20918  
20919 \emph default
20920 Interestingly, these three files show off the language-indepence of the
20921  LyX literate programming support since they are written in Python, C and
20922  Perl respectively.
20923 \end_layout
20924
20925 \begin_layout Subsubsection
20926 Configuring LyX
20927 \end_layout
20928
20929 \begin_layout Standard
20930 All the Literate Programming support is configured by the 
20931 \family sans
20932 \bar under
20933 T
20934 \bar default
20935 ools\SpecialChar \menuseparator
20936
20937 \bar under
20938 P
20939 \bar default
20940 references
20941 \family default
20942  panel in the 
20943 \begin_inset Quotes eld
20944 \end_inset
20945
20946 Conversion
20947 \begin_inset Quotes erd
20948 \end_inset
20949
20950  tab.
20951  The important parts are:
20952 \end_layout
20953
20954 \begin_layout Description
20955 the\InsetSpace ~
20956
20957 \begin_inset Quotes eld
20958 \end_inset
20959
20960 literate
20961 \begin_inset Quotes erd
20962 \end_inset
20963
20964 \InsetSpace ~
20965 format Set up via the Formats tab, this is where the Noweb-specific pieces
20966  are set up.
20967  The 
20968 \family sans
20969 GUI Name
20970 \family default
20971  is set to 
20972 \family typewriter
20973 NoWeb
20974 \family default
20975 , the file extension is set to 
20976 \family typewriter
20977 .nw
20978 \family default
20979 .
20980  This tells LyX to create a file with a 
20981 \family typewriter
20982 .nw
20983 \family default
20984  extension in the first step of the conversion process.
20985 \end_layout
20986
20987 \begin_layout Description
20988 the\InsetSpace ~
20989
20990 \family sans
20991 Program
20992 \family default
20993 \InsetSpace ~
20994 format This is an empty format whose sole purpose is to be the endpoint
20995  of a conversion (which then allows us to set up a converter for it).
20996 \end_layout
20997
20998 \begin_layout Description
20999
21000 \family sans
21001 NoWeb
21002 \family default
21003 ->
21004 \family sans
21005 LaTeX
21006 \family default
21007  This converter performs the 
21008 \begin_inset Quotes eld
21009 \end_inset
21010
21011 weaving
21012 \begin_inset Quotes erd
21013 \end_inset
21014
21015  of the literate document.
21016  For Noweb, it is set to 
21017 \begin_inset Quotes eld
21018 \end_inset
21019
21020
21021 \family typewriter
21022 noweave -delay -index $$i > $$o
21023 \family default
21024
21025 \begin_inset Quotes erd
21026 \end_inset
21027
21028
21029 \end_layout
21030
21031 \begin_layout Description
21032
21033 \family sans
21034 NoWeb
21035 \family default
21036 ->
21037 \family sans
21038 Program
21039 \family default
21040  This performs the 
21041 \begin_inset Quotes eld
21042 \end_inset
21043
21044 tangling step
21045 \begin_inset Quotes erd
21046 \end_inset
21047
21048 .
21049  As stated above, the Converter is set to 
21050 \begin_inset Quotes eld
21051 \end_inset
21052
21053
21054 \family typewriter
21055 build-script $$i
21056 \family default
21057
21058 \begin_inset Quotes erd
21059 \end_inset
21060
21061 , with Flags set to 
21062 \begin_inset Quotes eld
21063 \end_inset
21064
21065
21066 \family typewriter
21067 originaldir,parselog=listerrors
21068 \family default
21069
21070 \begin_inset Quotes erd
21071 \end_inset
21072
21073 .
21074 \end_layout
21075
21076 \begin_layout Subsubsection
21077 Debug extensions
21078 \end_layout
21079
21080 \begin_layout Standard
21081 There is also a new function implemented in the LyX server, the 
21082 \begin_inset Quotes eld
21083 \end_inset
21084
21085 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
21086  
21087 \end_layout
21088
21089 \begin_layout Standard
21090 When debugging code with ddd/gdb, it is possible to invoke a text editor
21091  at the current execution position with a single key stroke.
21092  The default ddd configuration for that is shift-ctrl-V.
21093  It happens that you can define the editor command line invocation in ddd
21094  by accessing the
21095 \family sans
21096  
21097 \bar under
21098 E
21099 \bar default
21100 dit\SpecialChar \menuseparator
21101
21102 \bar under
21103 P
21104 \bar default
21105 references\SpecialChar \menuseparator
21106
21107 \bar under
21108 H
21109 \bar default
21110 elpers 
21111 \family default
21112 dialog and changing the "Edit Sources" entry.
21113 \end_layout
21114
21115 \begin_layout Standard
21116 I take advantage of the new created LyX server function and this ddd feature,
21117  and set 
21118 \begin_inset Quotes eld
21119 \end_inset
21120
21121 Edit Sources
21122 \begin_inset Quotes erd
21123 \end_inset
21124
21125  to:
21126 \end_layout
21127
21128 \begin_layout LyX-Code
21129 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
21130 \end_layout
21131
21132 \begin_layout Standard
21133 With this, whenever you are using ddd and find a point in the program that
21134  you want to edit, you just press shift-ctrl-V (in the ddd window), and
21135  ddd you forward this information to LyX through the LyX server and then
21136  the LyX window will show the same file with the cursor at the same position
21137  ddd was pointing to.
21138  No more guessing or long scrolling to locate a point in the program back
21139  from debugging !
21140 \end_layout
21141
21142 \begin_layout Standard
21143 Note however that you must enable the LyX server to get this feature working
21144  (it is disabled by default).
21145  You can enable it in 
21146 \family sans
21147 Preferences
21148 \family default
21149  (tabs 
21150 \family sans
21151 Inputs
21152 \family default
21153
21154 \family sans
21155 Paths
21156 \family default
21157 ) by entering in the 
21158 \family sans
21159 LyXserver pipe
21160 \family default
21161  a path like 
21162 \begin_inset Quotes eld
21163 \end_inset
21164
21165
21166 \family typewriter
21167 /home/<your-home-directory>/.lyx/lyxpipe
21168 \family default
21169
21170 \begin_inset Quotes erd
21171 \end_inset
21172
21173
21174 \end_layout
21175
21176 \begin_layout Standard
21177 Read the LyX server documentation in the 
21178 \emph on
21179 Customization Manual
21180 \emph default
21181  for further information.
21182 \end_layout
21183
21184 \begin_layout Subsubsection
21185 Toolbar extensions
21186 \end_layout
21187
21188 \begin_layout Standard
21189 There are six new buttons that can be added to your LyX toolbar.
21190  Five of these buttons are short cuts to layout styles: 
21191 \family sans
21192 Standard
21193 \family default
21194
21195 \family sans
21196 Section
21197 \family default
21198
21199 \family sans
21200 LaTeX
21201 \family default
21202
21203 \family sans
21204 LyX-Code
21205 \family default
21206 , and 
21207 \family sans
21208 Scrap
21209 \family default
21210 .
21211  The last one is a short cut to the 
21212 \begin_inset Quotes eld
21213 \end_inset
21214
21215 Build Program
21216 \begin_inset Quotes erd
21217 \end_inset
21218
21219  File menu entry.
21220  
21221 \end_layout
21222
21223 \begin_layout Standard
21224 LyX has a range of buttons that are available for tool bar customization.
21225  In my toolbar I like to combine the six short cuts above with two more:
21226  One for 
21227 \family sans
21228 \bar under
21229 V
21230 \bar default
21231 iew
21232 \family default
21233 \SpecialChar \menuseparator
21234
21235 \family sans
21236 \bar under
21237 U
21238 \bar default
21239 pdate
21240 \family default
21241 \SpecialChar \menuseparator
21242
21243 \family sans
21244 \bar under
21245 D
21246 \bar default
21247 VI
21248 \family default
21249  and the other for 
21250 \family sans
21251 \bar under
21252 V
21253 \bar default
21254 iew\SpecialChar \menuseparator
21255
21256 \bar under
21257 D
21258 \bar default
21259 VI
21260 \family default
21261  File menu entries.
21262  Here is how it looks like:
21263 \end_layout
21264
21265 \begin_layout LyX-Code
21266 Toolbar
21267 \end_layout
21268
21269 \begin_layout LyX-Code
21270   Layouts
21271 \end_layout
21272
21273 \begin_layout LyX-Code
21274   Icon "layout Standard"
21275 \end_layout
21276
21277 \begin_layout LyX-Code
21278   Icon "layout Section"
21279 \end_layout
21280
21281 \begin_layout LyX-Code
21282   Icon "layout LaTeX"
21283 \end_layout
21284
21285 \begin_layout LyX-Code
21286   Icon "layout LyX-Code"
21287 \end_layout
21288
21289 \begin_layout LyX-Code
21290   Icon "layout Scrap"
21291 \end_layout
21292
21293 \begin_layout LyX-Code
21294   Separator
21295 \end_layout
21296
21297 \begin_layout LyX-Code
21298   Icon "buffer-view"
21299 \end_layout
21300
21301 \begin_layout LyX-Code
21302   Icon "buffer-typeset"
21303 \end_layout
21304
21305 \begin_layout LyX-Code
21306   Icon "build-program"
21307 \end_layout
21308
21309 \begin_layout LyX-Code
21310   Separator
21311 \end_layout
21312
21313 \begin_layout LyX-Code
21314 .
21315 \end_layout
21316
21317 \begin_layout LyX-Code
21318 .
21319 \end_layout
21320
21321 \begin_layout LyX-Code
21322 .
21323 \end_layout
21324
21325 \begin_layout LyX-Code
21326 End
21327 \end_layout
21328
21329 \begin_layout Subsubsection
21330 Colors customization
21331 \end_layout
21332
21333 \begin_layout Standard
21334 There are a number of colors in LyX that can be customized in 
21335 \family sans
21336 Preferences
21337 \family default
21338 .
21339  One of the things that bothers people is the LaTeX font color.
21340  The default color is red, since the scraps uses LaTeX font, and there is
21341  a lot of scraps in literate documents, you may get tired of seeing everything
21342  in red.
21343  You can change it by going to the tabs 
21344 \family sans
21345 Look&Feel
21346 \family default
21347
21348 \family sans
21349 Colors.
21350 \end_layout
21351
21352 \begin_layout Standard
21353 The next thing is the visible presence of the newline character in the screen.
21354  You can choose the color of this particular character and make it blend
21355  in the background.
21356  I recommend you choosing a color that is close to the background but not
21357  equal, that way you still can see it is there, but it is not bothering
21358  you anymore.
21359  
21360 \end_layout
21361
21362 \begin_layout Chapter
21363 Secrets of the LaTeX Masters
21364 \begin_inset LatexCommand \label{cha:secrets}
21365
21366 \end_inset
21367
21368
21369 \end_layout
21370
21371 \begin_layout Standard
21372 Though LyX is a powerful tool, it cannot hope to support everything that
21373  can be done with pure TeX/LaTeX.
21374  However, many familiar dirty TeX and LaTeX tricks can be done within LyX,
21375  as long as you are not afraid to use that 
21376 \begin_inset Quotes eld
21377 \end_inset
21378
21379 TeX
21380 \begin_inset Quotes erd
21381 \end_inset
21382
21383  button on the toolbar or add things to the LaTeX preamble.
21384  This section lists some tips, tricks, and otherwise cool ideas to give
21385  your document that extra little flair.
21386  
21387 \emph on
21388 Do try this at home
21389 \emph default
21390 , just start with something a little smaller and less important than your
21391  dissertation!
21392 \end_layout
21393
21394 \begin_layout Standard
21395 Most ideas in this section require less common files in your LaTeX installation.
21396  If you have a system like teTeX, most will already be available.
21397  A few, however, will need to be downloaded from one of the CTAN archives.
21398  Often, there are several ways to do something, or several LaTeX style files
21399  which do the same thing.
21400  We do not endorse one choice over another, we simply claim that we have
21401  done a particular task with a particular file.
21402  Put on your wizard hat, keep an eye out for dragons, and let us begin.
21403 \end_layout
21404
21405 \begin_layout Section
21406 Tricks for Footnotes and Margin Notes
21407 \end_layout
21408
21409 \begin_layout Standard
21410 suggested by 
21411 \noun on
21412 Robin Socha
21413 \end_layout
21414
21415 \begin_layout Subsection
21416 Footnotes 
21417 \end_layout
21418
21419 \begin_layout Standard
21420 LyX cannot yet take care of setting the footnote numbering back to 1 after
21421  each section in the 
21422 \begin_inset Quotes eld
21423 \end_inset
21424
21425
21426 \family sans
21427 article
21428 \family default
21429
21430 \begin_inset Quotes erd
21431 \end_inset
21432
21433
21434 \family roman
21435  document class or changing the counter style.
21436  You'll need to insert LaTeX commands like the following to achieve that:
21437 \end_layout
21438
21439 \begin_layout Standard
21440 \begin_inset ERT
21441 status inlined
21442
21443 \begin_layout Standard
21444
21445 \backslash
21446 setcounter{footnote}{0}
21447 \end_layout
21448
21449 \end_inset
21450
21451  Using 
21452 \family typewriter
21453
21454 \backslash
21455 setcounter{footnote}{0}
21456 \family roman
21457  will set the counter back to 1
21458 \begin_inset Foot
21459 status collapsed
21460
21461 \begin_layout Standard
21462 The counter has been set back to 1.
21463 \end_layout
21464
21465 \end_inset
21466
21467 .
21468 \end_layout
21469
21470 \begin_layout Standard
21471 The following command will change the numbering to small letters.
21472  Take a look at the next footnote in your xdvi or ghostview 
21473 \begin_inset ERT
21474 status inlined
21475
21476 \begin_layout Standard
21477
21478 \backslash
21479 renewcommand{
21480 \backslash
21481 thefootnote}{
21482 \backslash
21483 alph{footnote}}
21484 \end_layout
21485
21486 \end_inset
21487
21488 :
21489 \begin_inset Foot
21490 status collapsed
21491
21492 \begin_layout Standard
21493 This is an example for a footnote with alphabetic numbering.
21494 \newline
21495 Use
21496 \family typewriter
21497  
21498 \backslash
21499 renewcommand{
21500 \backslash
21501 thefootnote {
21502 \backslash
21503 alph{footnote}} 
21504 \family roman
21505 to get this.
21506 \end_layout
21507
21508 \end_inset
21509
21510
21511 \end_layout
21512
21513 \begin_layout Standard
21514 The next command sets the counter style back to default, i.e.
21515  
21516 \family typewriter
21517
21518 \backslash
21519 arabic
21520 \family default
21521
21522 \begin_inset Foot
21523 status collapsed
21524
21525 \begin_layout Standard
21526 Use
21527 \family typewriter
21528  
21529 \backslash
21530 renewcommand{
21531 \backslash
21532 thefootnote}{
21533 \backslash
21534 arabic{footnote}}
21535 \family roman
21536  to set the counter--style back to LyX's default, i.e.
21537  
21538 \backslash
21539 arabic.
21540 \family default
21541
21542 \begin_inset ERT
21543 status collapsed
21544
21545 \begin_layout Standard
21546
21547 \backslash
21548 renewcommand {
21549 \backslash
21550 thefootnote} {
21551 \backslash
21552 arabic{footnote}}
21553 \end_layout
21554
21555 \end_inset
21556
21557
21558 \end_layout
21559
21560 \end_inset
21561
21562 .
21563 \end_layout
21564
21565 \begin_layout Standard
21566 You can use 
21567 \family typewriter
21568
21569 \backslash
21570 arabic
21571 \family default
21572
21573 \family typewriter
21574
21575 \backslash
21576 roman
21577 \family default
21578
21579 \family typewriter
21580
21581 \backslash
21582 Roman
21583 \family default
21584
21585 \family typewriter
21586
21587 \backslash
21588 alph
21589 \family default
21590  or 
21591 \family typewriter
21592
21593 \backslash
21594 Alph
21595 \family default
21596  and others as counter styles.
21597  Just replace the LaTeX command in the above example and rerun TeX to see
21598  what those styles can do.
21599  
21600 \end_layout
21601
21602 \begin_layout Subsection
21603 Margin Notes
21604 \end_layout
21605
21606 \begin_layout Standard
21607 Here are two examples of neat things you can do to margin notes using LaTeX
21608  commands.
21609 \end_layout
21610
21611 \begin_layout Standard
21612 The following command will make a vertical line appear alongside your text---gre
21613 at for 
21614 \begin_inset Quotes eld
21615 \end_inset
21616
21617 thumbing
21618 \begin_inset Quotes erd
21619 \end_inset
21620
21621
21622 \family typewriter
21623
21624 \backslash
21625 marginpar{
21626 \backslash
21627 rule[-10mm]{30mm}{5mm}}
21628 \family roman
21629 .
21630 \family default
21631
21632 \begin_inset ERT
21633 status inlined
21634
21635 \begin_layout Standard
21636
21637 \backslash
21638 marginpar{
21639 \backslash
21640 rule[-10mm]{30mm}{5mm}}
21641 \end_layout
21642
21643 \end_inset
21644
21645
21646 \end_layout
21647
21648 \begin_layout Standard
21649 Check your dvi- or ghostview-output to see what the 
21650 \family typewriter
21651
21652 \backslash
21653 reversemarginpar 
21654 \family default
21655 command does to the following margin note.
21656 \end_layout
21657
21658 \begin_layout Standard
21659 \begin_inset ERT
21660 status inlined
21661
21662 \begin_layout Standard
21663
21664 \backslash
21665 reversemarginpar
21666 \end_layout
21667
21668 \end_inset
21669
21670
21671 \begin_inset Marginal
21672 status collapsed
21673
21674 \begin_layout Standard
21675 This is a 
21676 \newline
21677 margin note.
21678 \end_layout
21679
21680 \end_inset
21681
21682
21683 \end_layout
21684
21685 \begin_layout Section
21686 Multiple Columns
21687 \end_layout
21688
21689 \begin_layout Standard
21690 by 
21691 \noun on
21692 Lars Gullik Bjønnes
21693 \end_layout
21694
21695 \begin_layout Subsection
21696 Purpose
21697 \end_layout
21698
21699 \begin_layout Standard
21700 The aim for this chapter
21701 \begin_inset Foot
21702 status collapsed
21703
21704 \begin_layout Standard
21705 Editor's note: Lars' original chapter was a masterful description of how
21706  to use the 
21707 \family typewriter
21708 multicol
21709 \family default
21710  package.
21711  However, it was too long to flow smoothly in this document.
21712  I have therefore chosen to excerpt the most important sections here (sorry,
21713  Lars); you can read the original chapter (and more of the story!) in the
21714  example file 
21715 \family typewriter
21716 examples/multicol.lyx
21717 \family default
21718 .
21719  --- mer
21720 \end_layout
21721
21722 \end_inset
21723
21724  is to show how the LaTeX package 
21725 \family typewriter
21726 multicol
21727 \family default
21728  can be used in a LyX document.
21729  As LyX doesn't support the 
21730 \family typewriter
21731 multicol
21732 \family default
21733  package natively yet, we have to use some small hacks.
21734  By reading this section it should be obvious how to do this.
21735 \end_layout
21736
21737 \begin_layout Subsection
21738 Limitations 
21739 \end_layout
21740
21741 \begin_layout Standard
21742 The 
21743 \family typewriter
21744 multicol
21745 \family default
21746  package allows switching between one and multicolumn format on the same
21747  page.
21748  Footnotes are handled correctly (for the most part), but will be placed
21749  at the bottom of the page and not under each column.
21750  LaTeX's float mechanism, however, is partly disabled in the current implementat
21751 ion.
21752  At the moment only page-wide floats can be used within the scope of the
21753  environment.
21754 \end_layout
21755
21756 \begin_layout Subsection
21757 Examples
21758 \end_layout
21759
21760 \begin_layout Subsubsection
21761 Two columns
21762 \end_layout
21763
21764 \begin_layout Standard
21765 If you want to have two columns in your text, you have use LaTeX mode to
21766  insert 
21767 \family typewriter
21768
21769 \backslash
21770 begin{multicols}{2}
21771 \family default
21772  at the point where you want the two column layout to start, and then 
21773 \family typewriter
21774
21775 \backslash
21776 end{multicols}
21777 \family default
21778  where you want it to end.
21779  Like this:
21780 \end_layout
21781
21782 \begin_layout Standard
21783 \begin_inset ERT
21784 status inlined
21785
21786 \begin_layout Standard
21787
21788 \backslash
21789 begin{multicols}{2}
21790 \end_layout
21791
21792 \end_inset
21793
21794
21795 \end_layout
21796
21797 \begin_layout Standard
21798 \noindent
21799
21800 \series bold
21801 \size small
21802 The Adventure of the Empty House
21803 \series default
21804
21805 \newline
21806 by 
21807 \noun on
21808 Sir Arthur Conan Doyle
21809 \end_layout
21810
21811 \begin_layout Standard
21812
21813 \size small
21814 It was in the spring of the year 1894 that all London was interested, and
21815  the fashionable world dismayed, by the murder of the Honourable Ronald
21816  Adair under most unusual and inexplicable circumstances.
21817  The public has already learned those particulars of the crime which came
21818  out in the police investigation, but a good deal was suppressed upon that
21819  occasion, since the case for the prosecution was so overwhelmingly strong
21820  that it was not necessary to bring forward all the facts.
21821  Only now, at the end of nearly ten years, am I allowed to supply those
21822  missing links which make up the whole of that remarkable chain.
21823  The crime was of interest in itself, but that interest was as nothing to
21824  me compared to the inconceivable sequel, which afforded me the greatest
21825  shock and surprise of any event in my adventurous life.
21826  Even now, after this long interval, I find myself thrilling as I think
21827  of it, and feeling once more that sudden flood of joy, amazement, and increduli
21828 ty which utterly submerged my mind.
21829  Let me say to that public, which has shown some interest in those glimpses
21830  which I have occasionally given them of the thoughts and actions of a very
21831  remarkable man, that they are not to blame me if I have not shared my knowledge
21832  with them, for I should have considered it my first duty to do so, had
21833  I not been barred by a positive prohibition from his own lips, which was
21834  only withdrawn upon the third of last month.
21835 \end_layout
21836
21837 \begin_layout Standard
21838 \begin_inset ERT
21839 status inlined
21840
21841 \begin_layout Standard
21842
21843 \backslash
21844 end{multicols}
21845 \end_layout
21846
21847 \end_inset
21848
21849
21850 \end_layout
21851
21852 \begin_layout Subsubsection
21853 Multiple columns
21854 \end_layout
21855
21856 \begin_layout Standard
21857 The same pattern is used when you want more than two columns:
21858 \end_layout
21859
21860 \begin_layout Standard
21861 \begin_inset ERT
21862 status inlined
21863
21864 \begin_layout Standard
21865
21866 \backslash
21867 begin{multicols}{3}
21868 \end_layout
21869
21870 \end_inset
21871
21872
21873 \end_layout
21874
21875 \begin_layout Standard
21876
21877 \size footnotesize
21878 It can be imagined that my close intimacy with Sherlock Holmes had interested
21879  me deeply in crime, and that after his disappearance I never failed to
21880  read with care the various problems which came before the public.
21881  And I even attempted, more than once, for my own private satisfaction,
21882  to employ his methods in their solution, though with indifferent success.
21883  There was none, however, which appealed to me like this tragedy of Ronald
21884  Adair.
21885  As I read the evidence at the inquest, which led up to a verdict of willful
21886  murder against some person or persons unknown, I realized more clearly
21887  than I had ever done the loss which the community had sustained by the
21888  death of Sherlock Holmes.
21889  There were points about this strange business which would, I was sure,
21890  have specially appealed to him, and the efforts of the police would have
21891  been supplemented, or more probably anticipated, by the trained observation
21892  and the alert mind of the first criminal agent in Europe.
21893  All day, as I drove upon my round, I turned over the case in my mind and
21894  found no explanation which appeared to me to be adequate.
21895  At the risk of telling a twice-told tale, I will recapitulate the facts
21896  as they were known to the public at the conclusion of the inquest.
21897 \end_layout
21898
21899 \begin_layout Standard
21900 \begin_inset ERT
21901 status inlined
21902
21903 \begin_layout Standard
21904
21905 \backslash
21906 end{multicols}
21907 \end_layout
21908
21909 \end_inset
21910
21911
21912 \end_layout
21913
21914 \begin_layout Standard
21915 You can have have more than 3 columns if you want to, but that might not
21916  be very pleasant for the eye.
21917 \end_layout
21918
21919 \begin_layout Subsubsection
21920 Columns inside columns
21921 \end_layout
21922
21923 \begin_layout Standard
21924 You can even have columns inside columns:
21925 \end_layout
21926
21927 \begin_layout Standard
21928 \begin_inset ERT
21929 status inlined
21930
21931 \begin_layout Standard
21932
21933 \backslash
21934 begin{multicols}{2}
21935 \end_layout
21936
21937 \end_inset
21938
21939
21940 \end_layout
21941
21942 \begin_layout Standard
21943
21944 \size footnotesize
21945 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
21946  at that time governor of one of the Australian colonies.
21947  Adair's mother had returned from Australia to undergo the operation for
21948  cataract, and she, her son Ronald, and her daughter Hilda were living together
21949  at 427 Park Lane.
21950 \end_layout
21951
21952 \begin_layout Standard
21953 \begin_inset ERT
21954 status inlined
21955
21956 \begin_layout Standard
21957
21958 \backslash
21959 begin{multicols}{2}
21960 \end_layout
21961
21962 \end_inset
21963
21964
21965 \end_layout
21966
21967 \begin_layout Standard
21968
21969 \size footnotesize
21970 The youth moved in the best society--had, so far as was known, no enemies
21971  and no particular vices.
21972  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
21973  had been broken off by mutual consent some months before, and there was
21974  no sign that it had left any very profound feeling behind it.
21975  For the rest {sic} the man's life moved in a narrow and conventional circle,
21976  for his habits were quiet and his nature unemotional.
21977  Yet it was upon this easy-going young aristocrat that death came, in most
21978  strange and unexpected form, between the hours of ten and eleven-twenty
21979  on the night of March 30, 1894.
21980 \end_layout
21981
21982 \begin_layout Standard
21983 \begin_inset ERT
21984 status inlined
21985
21986 \begin_layout Standard
21987
21988 \backslash
21989 end{multicols}
21990 \end_layout
21991
21992 \end_inset
21993
21994
21995 \end_layout
21996
21997 \begin_layout Standard
21998
21999 \size footnotesize
22000 Ronald Adair was fond of cards--playing continually, but never for such
22001  stakes as would hurt him.
22002  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
22003  It was shown that, after dinner on the day of his death, he had played
22004  a rubber of whist at the latter club.
22005  He had also played there in the afternoon.
22006
22007 \size default
22008  
22009 \size footnotesize
22010 The evidence of those who had played with him-- Mr.
22011  Murray, Sir John Hardy, and Colonel Moran--showed that the game was whist,
22012  and that there was a fairly equal fall of the cards.
22013  Adair might have lost five pounds, but not more.
22014  His fortune was a considerable one, and such a loss could not in any way
22015  affect him.
22016  He had played nearly every day at one club or other, but he was a cautious
22017  player, and usually rose a winner.
22018  It came out in evidence that, in partnership with Colonel Moran, he had
22019  actually won as much as four hundred and twenty pounds in a sitting, some
22020  weeks before, from Godfrey Milner and Lord Balmoral.
22021  So much for his recent history as it came out at the inquest.
22022 \end_layout
22023
22024 \begin_layout Standard
22025 \begin_inset ERT
22026 status inlined
22027
22028 \begin_layout Standard
22029
22030 \backslash
22031 end{multicols}
22032 \end_layout
22033
22034 \end_inset
22035
22036
22037 \end_layout
22038
22039 \begin_layout Standard
22040 Please do read the file 
22041 \family typewriter
22042 examples/multicol.lyx
22043 \family default
22044  for more advanced examples including column and header spacing, vertical
22045  separator lines, and more.
22046 \end_layout
22047
22048 \begin_layout Section
22049 Numbering in the 
22050 \family sans
22051 Enumerate
22052 \family default
22053  Paragraph Environment
22054 \begin_inset OptArg
22055 status collapsed
22056
22057 \begin_layout Standard
22058 Numbering in Enumerate
22059 \end_layout
22060
22061 \end_inset
22062
22063
22064 \end_layout
22065
22066 \begin_layout Standard
22067 by 
22068 \noun on
22069 John Weiss
22070 \end_layout
22071
22072 \begin_layout Standard
22073 \begin_inset VSpace bigskip
22074 \end_inset
22075
22076
22077 \end_layout
22078
22079 \begin_layout Standard
22080 \noindent
22081 The default numbering for the 
22082 \family sans
22083 Enumerate
22084 \family default
22085  paragraph environment begins with Arabic numbers and ends with uppercase
22086  letters.
22087  Suppose, however, you wanted a different type of numbering scheme.
22088  Here's a quickie example of how to change the numbering scheme:
22089 \end_layout
22090
22091 \begin_layout LyX-Code
22092
22093 \backslash
22094 renewcommand{
22095 \backslash
22096 labelenumi}{
22097 \backslash
22098 Roman{enumi}.}
22099 \end_layout
22100
22101 \begin_layout LyX-Code
22102
22103 \backslash
22104 renewcommand{
22105 \backslash
22106 labelenumii}{
22107 \backslash
22108 Alph{enumii}.}
22109 \end_layout
22110
22111 \begin_layout LyX-Code
22112
22113 \backslash
22114 renewcommand{
22115 \backslash
22116 labelenumiii}{
22117 \backslash
22118 arabic{enumiii}.}
22119 \end_layout
22120
22121 \begin_layout LyX-Code
22122
22123 \backslash
22124 renewcommand{
22125 \backslash
22126 labelenumiv}{
22127 \backslash
22128 alph{enumiv}.)}
22129 \end_layout
22130
22131 \begin_layout Standard
22132 \SpecialChar \ldots{}
22133  which changes the numbering scheme to uppercase Roman numerals, uppercase
22134  letters, Arabic numbers, and lowercase letter.
22135 \end_layout
22136
22137 \begin_layout Standard
22138 Additionally, the previous example also adds a little bit extra to the numbering
22139  scheme.
22140  For example, the first level label actually looks like: 
22141 \begin_inset Quotes eld
22142 \end_inset
22143
22144 I.
22145 \begin_inset Quotes erd
22146 \end_inset
22147
22148 .
22149  For ease of reading, we'll describe what the numbering schemes look like
22150  using a notation something like this: <
22151 \begin_inset Quotes eld
22152 \end_inset
22153
22154 I.
22155 \begin_inset Quotes erd
22156 \end_inset
22157
22158 ,\InsetSpace ~
22159
22160 \begin_inset Quotes erd
22161 \end_inset
22162
22163 A.
22164 \begin_inset Quotes erd
22165 \end_inset
22166
22167 ,\InsetSpace ~
22168
22169 \begin_inset Quotes erd
22170 \end_inset
22171
22172 1.
22173 \begin_inset Quotes erd
22174 \end_inset
22175
22176 ,\InsetSpace ~
22177
22178 \begin_inset Quotes eld
22179 \end_inset
22180
22181 a.)
22182 \begin_inset Quotes erd
22183 \end_inset
22184
22185 >.
22186  
22187 \end_layout
22188
22189 \begin_layout Standard
22190 As you can see in the example, there is a label command for each nesting
22191  level, 
22192 \family typewriter
22193
22194 \backslash
22195 labelenumi
22196 \family default
22197  \SpecialChar \ldots{}
22198  
22199 \family typewriter
22200
22201 \backslash
22202 labelenumiv
22203 \family default
22204 , as well as a counter, 
22205 \family typewriter
22206 enumi
22207 \family default
22208  \SpecialChar \ldots{}
22209  
22210 \family typewriter
22211 enumiv
22212 \family default
22213 .
22214  There are also five 
22215 \begin_inset Quotes eld
22216 \end_inset
22217
22218 number printing
22219 \begin_inset Quotes erd
22220 \end_inset
22221
22222  commands, 
22223 \family typewriter
22224
22225 \backslash
22226 arabic{}
22227 \family default
22228
22229 \family typewriter
22230
22231 \backslash
22232 roman{}
22233 \family default
22234
22235 \family typewriter
22236
22237 \backslash
22238 Roman{}
22239 \family default
22240
22241 \family typewriter
22242
22243 \backslash
22244 alph{}
22245 \family default
22246 , and 
22247 \family typewriter
22248
22249 \backslash
22250 Alph{}
22251 \family default
22252 , each of which take one counter as an argument.
22253  You can add characters before or after these, but there's no need to add
22254  spaces.
22255 \end_layout
22256
22257 \begin_layout Standard
22258 You can get really fancy with these.
22259  For example:
22260 \end_layout
22261
22262 \begin_layout LyX-Code
22263
22264 \backslash
22265 renewcommand{
22266 \backslash
22267 labelenumi}{
22268 \backslash
22269 #
22270 \backslash
22271 Alph{enumi}
22272 \backslash
22273 #}
22274 \end_layout
22275
22276 \begin_layout LyX-Code
22277
22278 \backslash
22279 renewcommand{
22280 \backslash
22281 labelenumii}{
22282 \backslash
22283 Alph{enumi}.
22284 \backslash
22285 arabic{enumii}}
22286 \end_layout
22287
22288 \begin_layout LyX-Code
22289
22290 \backslash
22291 renewcommand{
22292 \backslash
22293 labelenumiii}{
22294 \backslash
22295 alph{enumiii}+}
22296 \end_layout
22297
22298 \begin_layout LyX-Code
22299
22300 \backslash
22301 renewcommand{
22302 \backslash
22303 labelenumiv}{(
22304 \backslash
22305 roman{enumiv})}
22306 \end_layout
22307
22308 \begin_layout Standard
22309 produces the somewhat out of hand numbering scheme: <
22310 \begin_inset Quotes eld
22311 \end_inset
22312
22313 #A#
22314 \begin_inset Quotes erd
22315 \end_inset
22316
22317 ,\InsetSpace ~
22318
22319 \begin_inset Quotes erd
22320 \end_inset
22321
22322 A.1
22323 \begin_inset Quotes erd
22324 \end_inset
22325
22326 ,\InsetSpace ~
22327
22328 \begin_inset Quotes erd
22329 \end_inset
22330
22331 a+
22332 \begin_inset Quotes erd
22333 \end_inset
22334
22335 ,\InsetSpace ~
22336
22337 \begin_inset Quotes eld
22338 \end_inset
22339
22340 (i)
22341 \begin_inset Quotes erd
22342 \end_inset
22343
22344 >.
22345  
22346 \end_layout
22347
22348 \begin_layout Section
22349 Extra Space Between Table Rows
22350 \end_layout
22351
22352 \begin_layout Standard
22353 by 
22354 \noun on
22355 Mike Ressler
22356 \end_layout
22357
22358 \begin_layout Standard
22359 \begin_inset VSpace bigskip
22360 \end_inset
22361
22362
22363 \end_layout
22364
22365 \begin_layout Standard
22366 \noindent
22367 LaTeX allows you to put a bit of extra space between rows in a table by
22368  giving an optional argument to the end-of-row specifier (
22369 \family typewriter
22370
22371 \backslash
22372
22373 \backslash
22374
22375 \family default
22376 ).
22377  LyX has not yet implemented this in a formal way, so here are two dirty
22378  little tricks to do the same job.
22379  
22380 \end_layout
22381
22382 \begin_layout Standard
22383 The first is the more formal, but longwinded way to do it.
22384  In the LaTeX preamble, add the following command definition: 
22385 \end_layout
22386
22387 \begin_layout Standard
22388
22389 \family typewriter
22390
22391 \backslash
22392 newcommand{
22393 \backslash
22394 extratablespace}[1]{
22395 \backslash
22396 noalign{vskip#1}}
22397 \family default
22398  This command takes a single argument---the amount of space you would like
22399  to insert.
22400  Insert the command in the first column of the row 
22401 \emph on
22402 after
22403 \emph default
22404  where you would like the space to appear.
22405  Here is an example (I've removed all the borders using 
22406 \family sans
22407 \bar under
22408 L
22409 \bar default
22410 ayout\SpecialChar \menuseparator
22411 Tabl
22412 \bar under
22413 e
22414 \family default
22415 \bar default
22416 ):
22417 \end_layout
22418
22419 \begin_layout Standard
22420 \align center
22421 \begin_inset Tabular
22422 <lyxtabular version="3" rows="4" columns="3">
22423 <features>
22424 <column alignment="center" valignment="top" width="0pt">
22425 <column alignment="center" valignment="top" width="0pt">
22426 <column alignment="center" valignment="top" width="0pt">
22427 <row>
22428 <cell alignment="center" valignment="top" topline="true" usebox="none">
22429 \begin_inset Text
22430
22431 \begin_layout Standard
22432
22433 \family roman
22434 \series medium
22435 \shape up
22436 \size normal
22437 \emph off
22438 \bar no
22439 \noun off
22440 \color none
22441 Minerals
22442 \end_layout
22443
22444 \end_inset
22445 </cell>
22446 <cell alignment="center" valignment="top" topline="true" usebox="none">
22447 \begin_inset Text
22448
22449 \begin_layout Standard
22450
22451 \family roman
22452 \series medium
22453 \shape up
22454 \size normal
22455 \emph off
22456 \bar no
22457 \noun off
22458 \color none
22459 Calcite
22460 \end_layout
22461
22462 \end_inset
22463 </cell>
22464 <cell alignment="center" valignment="top" topline="true" usebox="none">
22465 \begin_inset Text
22466
22467 \begin_layout Standard
22468
22469 \family roman
22470 \series medium
22471 \shape up
22472 \size normal
22473 \emph off
22474 \bar no
22475 \noun off
22476 \color none
22477 Dolomite
22478 \end_layout
22479
22480 \end_inset
22481 </cell>
22482 </row>
22483 <row>
22484 <cell alignment="center" valignment="top" topline="true" usebox="none">
22485 \begin_inset Text
22486
22487 \begin_layout Standard
22488
22489 \end_layout
22490
22491 \end_inset
22492 </cell>
22493 <cell alignment="center" valignment="top" topline="true" usebox="none">
22494 \begin_inset Text
22495
22496 \begin_layout Standard
22497
22498 \family roman
22499 \series medium
22500 \shape up
22501 \size normal
22502 \emph off
22503 \bar no
22504 \noun off
22505 \color none
22506 Quartz
22507 \end_layout
22508
22509 \end_inset
22510 </cell>
22511 <cell alignment="center" valignment="top" topline="true" usebox="none">
22512 \begin_inset Text
22513
22514 \begin_layout Standard
22515
22516 \family roman
22517 \series medium
22518 \shape up
22519 \size normal
22520 \emph off
22521 \bar no
22522 \noun off
22523 \color none
22524 Graphite
22525 \end_layout
22526
22527 \end_inset
22528 </cell>
22529 </row>
22530 <row>
22531 <cell alignment="center" valignment="top" topline="true" usebox="none">
22532 \begin_inset Text
22533
22534 \begin_layout Standard
22535
22536 \family roman
22537 \series medium
22538 \shape up
22539 \size normal
22540 \emph off
22541 \bar no
22542 \noun off
22543 \color none
22544 \begin_inset ERT
22545 status collapsed
22546
22547 \begin_layout Standard
22548
22549 \backslash
22550 extratablespace{2ex}
22551 \end_layout
22552
22553 \end_inset
22554
22555 Rocks
22556 \end_layout
22557
22558 \end_inset
22559 </cell>
22560 <cell alignment="center" valignment="top" topline="true" usebox="none">
22561 \begin_inset Text
22562
22563 \begin_layout Standard
22564
22565 \family roman
22566 \series medium
22567 \shape up
22568 \size normal
22569 \emph off
22570 \bar no
22571 \noun off
22572 \color none
22573 Limestone
22574 \end_layout
22575
22576 \end_inset
22577 </cell>
22578 <cell alignment="center" valignment="top" topline="true" usebox="none">
22579 \begin_inset Text
22580
22581 \begin_layout Standard
22582
22583 \family roman
22584 \series medium
22585 \shape up
22586 \size normal
22587 \emph off
22588 \bar no
22589 \noun off
22590 \color none
22591 Sandstone
22592 \end_layout
22593
22594 \end_inset
22595 </cell>
22596 </row>
22597 <row>
22598 <cell alignment="center" valignment="top" topline="true" usebox="none">
22599 \begin_inset Text
22600
22601 \begin_layout Standard
22602
22603 \end_layout
22604
22605 \end_inset
22606 </cell>
22607 <cell alignment="center" valignment="top" topline="true" usebox="none">
22608 \begin_inset Text
22609
22610 \begin_layout Standard
22611
22612 \family roman
22613 \series medium
22614 \shape up
22615 \size normal
22616 \emph off
22617 \bar no
22618 \noun off
22619 \color none
22620 Granite
22621 \end_layout
22622
22623 \end_inset
22624 </cell>
22625 <cell alignment="center" valignment="top" topline="true" usebox="none">
22626 \begin_inset Text
22627
22628 \begin_layout Standard
22629
22630 \family roman
22631 \series medium
22632 \shape up
22633 \size normal
22634 \emph off
22635 \bar no
22636 \noun off
22637 \color none
22638 Andesite
22639 \end_layout
22640
22641 \end_inset
22642 </cell>
22643 </row>
22644 </lyxtabular>
22645
22646 \end_inset
22647
22648
22649 \end_layout
22650
22651 \begin_layout Standard
22652 The second method is faster, but will make typographers and TeXperts all
22653  over the world groan.
22654  Simply put an end of row specifier with optional argument at the same spot.
22655  No fancy definitions are needed as in the above example, but there will
22656  be more space inserted than you specified because you essentially added
22657  a blank row plus the extra space.
22658  If the space added is too much, simply use a negative number, like so:
22659 \end_layout
22660
22661 \begin_layout Standard
22662 \align center
22663 \begin_inset Tabular
22664 <lyxtabular version="3" rows="4" columns="3">
22665 <features>
22666 <column alignment="center" valignment="top" width="0pt">
22667 <column alignment="center" valignment="top" width="0pt">
22668 <column alignment="center" valignment="top" width="0pt">
22669 <row>
22670 <cell alignment="center" valignment="top" topline="true" usebox="none">
22671 \begin_inset Text
22672
22673 \begin_layout Standard
22674
22675 \family roman
22676 \series medium
22677 \shape up
22678 \size normal
22679 \emph off
22680 \bar no
22681 \noun off
22682 \color none
22683 Minerals
22684 \end_layout
22685
22686 \end_inset
22687 </cell>
22688 <cell alignment="center" valignment="top" topline="true" usebox="none">
22689 \begin_inset Text
22690
22691 \begin_layout Standard
22692
22693 \family roman
22694 \series medium
22695 \shape up
22696 \size normal
22697 \emph off
22698 \bar no
22699 \noun off
22700 \color none
22701 Calcite
22702 \end_layout
22703
22704 \end_inset
22705 </cell>
22706 <cell alignment="center" valignment="top" topline="true" usebox="none">
22707 \begin_inset Text
22708
22709 \begin_layout Standard
22710
22711 \family roman
22712 \series medium
22713 \shape up
22714 \size normal
22715 \emph off
22716 \bar no
22717 \noun off
22718 \color none
22719 Dolomite
22720 \end_layout
22721
22722 \end_inset
22723 </cell>
22724 </row>
22725 <row>
22726 <cell alignment="center" valignment="top" topline="true" usebox="none">
22727 \begin_inset Text
22728
22729 \begin_layout Standard
22730
22731 \end_layout
22732
22733 \end_inset
22734 </cell>
22735 <cell alignment="center" valignment="top" topline="true" usebox="none">
22736 \begin_inset Text
22737
22738 \begin_layout Standard
22739
22740 \family roman
22741 \series medium
22742 \shape up
22743 \size normal
22744 \emph off
22745 \bar no
22746 \noun off
22747 \color none
22748 Quartz
22749 \end_layout
22750
22751 \end_inset
22752 </cell>
22753 <cell alignment="center" valignment="top" topline="true" usebox="none">
22754 \begin_inset Text
22755
22756 \begin_layout Standard
22757
22758 \family roman
22759 \series medium
22760 \shape up
22761 \size normal
22762 \emph off
22763 \bar no
22764 \noun off
22765 \color none
22766 Graphite
22767 \end_layout
22768
22769 \end_inset
22770 </cell>
22771 </row>
22772 <row>
22773 <cell alignment="center" valignment="top" topline="true" usebox="none">
22774 \begin_inset Text
22775
22776 \begin_layout Standard
22777
22778 \family roman
22779 \series medium
22780 \shape up
22781 \size normal
22782 \emph off
22783 \bar no
22784 \noun off
22785 \color none
22786 \begin_inset ERT
22787 status collapsed
22788
22789 \begin_layout Standard
22790
22791 \backslash
22792
22793 \backslash
22794 [-1ex]
22795 \end_layout
22796
22797 \end_inset
22798
22799  Rocks
22800 \end_layout
22801
22802 \end_inset
22803 </cell>
22804 <cell alignment="center" valignment="top" topline="true" usebox="none">
22805 \begin_inset Text
22806
22807 \begin_layout Standard
22808
22809 \family roman
22810 \series medium
22811 \shape up
22812 \size normal
22813 \emph off
22814 \bar no
22815 \noun off
22816 \color none
22817 Limestone
22818 \end_layout
22819
22820 \end_inset
22821 </cell>
22822 <cell alignment="center" valignment="top" topline="true" usebox="none">
22823 \begin_inset Text
22824
22825 \begin_layout Standard
22826
22827 \family roman
22828 \series medium
22829 \shape up
22830 \size normal
22831 \emph off
22832 \bar no
22833 \noun off
22834 \color none
22835 Sandstone
22836 \end_layout
22837
22838 \end_inset
22839 </cell>
22840 </row>
22841 <row>
22842 <cell alignment="center" valignment="top" topline="true" usebox="none">
22843 \begin_inset Text
22844
22845 \begin_layout Standard
22846
22847 \end_layout
22848
22849 \end_inset
22850 </cell>
22851 <cell alignment="center" valignment="top" topline="true" usebox="none">
22852 \begin_inset Text
22853
22854 \begin_layout Standard
22855
22856 \family roman
22857 \series medium
22858 \shape up
22859 \size normal
22860 \emph off
22861 \bar no
22862 \noun off
22863 \color none
22864 Granite
22865 \end_layout
22866
22867 \end_inset
22868 </cell>
22869 <cell alignment="center" valignment="top" topline="true" usebox="none">
22870 \begin_inset Text
22871
22872 \begin_layout Standard
22873
22874 \family roman
22875 \series medium
22876 \shape up
22877 \size normal
22878 \emph off
22879 \bar no
22880 \noun off
22881 \color none
22882 Andesite
22883 \end_layout
22884
22885 \end_inset
22886 </cell>
22887 </row>
22888 </lyxtabular>
22889
22890 \end_inset
22891
22892
22893 \end_layout
22894
22895 \begin_layout Standard
22896 It's short, sweet, and gets the job done quickly, even if it is really ugly.
22897  You may put away the rotten vegetables now! I promise I won't suggest anything
22898  else like that!
22899 \end_layout
22900
22901 \begin_layout Section
22902 Dropped Capitals
22903 \end_layout
22904
22905 \begin_layout Standard
22906 by 
22907 \noun on
22908 Mike Ressler
22909 \end_layout
22910
22911 \begin_layout Standard
22912 \begin_inset VSpace bigskip
22913 \end_inset
22914
22915
22916 \end_layout
22917
22918 \begin_layout Standard
22919 \noindent
22920 \begin_inset ERT
22921 status collapsed
22922
22923 \begin_layout Standard
22924
22925 \backslash
22926 newfont{
22927 \backslash
22928 tmpfont}{cmr17 scaled 2500}{
22929 \backslash
22930 tmpfont T}
22931 \backslash
22932 vspace*{-8.4ex}
22933 \end_layout
22934
22935 \end_inset
22936
22937
22938 \end_layout
22939
22940 \begin_layout Standard
22941 \noindent
22942 \begin_inset ERT
22943 status inlined
22944
22945 \begin_layout Standard
22946
22947 \backslash
22948 hangindent=3.3em 
22949 \backslash
22950 hangafter=-3
22951 \end_layout
22952
22953 \end_inset
22954
22955  hose of you who like the style of old books probably also like 
22956 \begin_inset Quotes eld
22957 \end_inset
22958
22959 dropped capitals
22960 \begin_inset Quotes erd
22961 \end_inset
22962
22963 ---those large capital letters which begin each new chapter or section.
22964  Implementing them with plain LyX/LaTeX is straightforward (assuming you
22965  know some plain TeX!) but does require a lot of work and many iterations,
22966  as you can see by all the ugly TeX-mode stuff at the beginning of this
22967  paragraph.
22968 \end_layout
22969
22970 \begin_layout Standard
22971 \begin_inset ERT
22972 status inlined
22973
22974 \begin_layout Standard
22975
22976 \backslash
22977 verb+
22978 \backslash
22979 bigdrop{-1em}{3}{ptmri}{T}+
22980 \end_layout
22981
22982 \end_inset
22983
22984 here is a much easier way of doing this, of course.
22985  The 
22986 \family typewriter
22987 dropcaps
22988 \family default
22989  (or the newer 
22990 \family typewriter
22991 dropping
22992 \family default
22993 ) package from CTAN allows a simple way to add such letters to your documents.
22994  Since this package is not a standard part of teTeX, I can't demonstrate
22995  it within this document, but if you copy this paragraph to a new document,
22996  delete the 
22997 \begin_inset Quotes eld
22998 \end_inset
22999
23000
23001 \family typewriter
23002
23003 \backslash
23004 verb
23005 \family default
23006
23007 \begin_inset Quotes erd
23008 \end_inset
23009
23010  and the pluses from the TeX code at the beginning of the paragraph, and
23011  add 
23012 \family typewriter
23013
23014 \backslash
23015 usepackage{dropcaps}
23016 \family default
23017  to your LaTeX preamble, you will get a nice Times Roman Italic 
23018 \begin_inset Quotes eld
23019 \end_inset
23020
23021 T
23022 \begin_inset Quotes erd
23023 \end_inset
23024
23025 , whose height is three lines of text and which protrudes 1 em into the
23026  margin.
23027  (Make certain you have copied 
23028 \begin_inset Quotes eld
23029 \end_inset
23030
23031
23032 \family typewriter
23033 dropcaps.sty
23034 \family default
23035
23036 \begin_inset Quotes erd
23037 \end_inset
23038
23039  into a directory where TeX can see it.) The first argument is the amount
23040  of indentation; in this case the negative sign moves it into the margin.
23041  The second argument is the height of the letter in number of lines of text.
23042  The third argument is the font name: virtually anything which has a tfm
23043  file should work (wade through the 
23044 \family typewriter
23045 .../texmf/fonts/tfm
23046 \family default
23047  directory for possibilities).
23048  My personal favorite is 
23049 \begin_inset Quotes eld
23050 \end_inset
23051
23052
23053 \family typewriter
23054 yinit
23055 \family default
23056
23057 \begin_inset Quotes erd
23058 \end_inset
23059
23060 , a fancy German font specifically designed for dropped capitals.
23061  The fourth argument is the letter (or letters) to be dropped.
23062  The 
23063 \family typewriter
23064 dropping
23065 \family default
23066  package also offers the 
23067 \family typewriter
23068
23069 \backslash
23070 bigdrop
23071 \family default
23072  command, as well as a slightly simplified 
23073 \family typewriter
23074
23075 \backslash
23076 dropping
23077 \family default
23078  command.
23079 \end_layout
23080
23081 \begin_layout Section
23082 Non-standard Paragraph Shapes
23083 \end_layout
23084
23085 \begin_layout Standard
23086 by 
23087 \noun on
23088 Mike Ressler
23089 \end_layout
23090
23091 \begin_layout Standard
23092 \begin_inset VSpace bigskip
23093 \end_inset
23094
23095
23096 \end_layout
23097
23098 \begin_layout Standard
23099 \begin_inset ERT
23100 status inlined
23101
23102 \begin_layout Standard
23103
23104 \backslash
23105 begin{sloppypar}
23106 \end_layout
23107
23108 \end_inset
23109
23110
23111 \end_layout
23112
23113 \begin_layout Standard
23114 \begin_inset ERT
23115 status collapsed
23116
23117 \begin_layout Standard
23118
23119 \backslash
23120 newdimen
23121 \backslash
23122 varunit 
23123 \end_layout
23124
23125 \begin_layout Standard
23126
23127 \backslash
23128 setlength{
23129 \backslash
23130 varunit}{4.5in}
23131 \end_layout
23132
23133 \end_inset
23134
23135
23136 \end_layout
23137
23138 \begin_layout Standard
23139 \noindent
23140 \begin_inset ERT
23141 status collapsed
23142
23143 \begin_layout Standard
23144
23145 \backslash
23146 parshape 19 0.45
23147 \backslash
23148 varunit 0.332
23149 \backslash
23150 varunit
23151 \end_layout
23152
23153 \begin_layout Standard
23154 0.40
23155 \backslash
23156 varunit 0.300
23157 \backslash
23158 varunit
23159 \end_layout
23160
23161 \begin_layout Standard
23162 0.35
23163 \backslash
23164 varunit 0.293
23165 \backslash
23166 varunit
23167 \end_layout
23168
23169 \begin_layout Standard
23170 0.30
23171 \backslash
23172 varunit 0.300
23173 \backslash
23174 varunit
23175 \end_layout
23176
23177 \begin_layout Standard
23178 0.25
23179 \backslash
23180 varunit 0.317
23181 \backslash
23182 varunit
23183 \end_layout
23184
23185 \begin_layout Standard
23186 0.20
23187 \backslash
23188 varunit 0.342
23189 \backslash
23190 varunit
23191 \end_layout
23192
23193 \begin_layout Standard
23194 0.15
23195 \backslash
23196 varunit 0.373
23197 \backslash
23198 varunit
23199 \end_layout
23200
23201 \begin_layout Standard
23202 0.10
23203 \backslash
23204 varunit 0.410
23205 \backslash
23206 varunit
23207 \end_layout
23208
23209 \begin_layout Standard
23210 0.05
23211 \backslash
23212 varunit 0.453
23213 \backslash
23214 varunit
23215 \end_layout
23216
23217 \begin_layout Standard
23218 0.00
23219 \backslash
23220 varunit 0.500
23221 \backslash
23222 varunit
23223 \end_layout
23224
23225 \begin_layout Standard
23226 0.05
23227 \backslash
23228 varunit 0.453
23229 \backslash
23230 varunit
23231 \end_layout
23232
23233 \begin_layout Standard
23234 0.10
23235 \backslash
23236 varunit 0.410
23237 \backslash
23238 varunit
23239 \end_layout
23240
23241 \begin_layout Standard
23242 0.15
23243 \backslash
23244 varunit 0.373
23245 \backslash
23246 varunit
23247 \end_layout
23248
23249 \begin_layout Standard
23250 0.20
23251 \backslash
23252 varunit 0.342
23253 \backslash
23254 varunit
23255 \end_layout
23256
23257 \begin_layout Standard
23258 0.25
23259 \backslash
23260 varunit 0.317
23261 \backslash
23262 varunit
23263 \end_layout
23264
23265 \begin_layout Standard
23266 0.30
23267 \backslash
23268 varunit 0.300
23269 \backslash
23270 varunit
23271 \end_layout
23272
23273 \begin_layout Standard
23274 0.35
23275 \backslash
23276 varunit 0.293
23277 \backslash
23278 varunit
23279 \end_layout
23280
23281 \begin_layout Standard
23282 0.40
23283 \backslash
23284 varunit 0.300
23285 \backslash
23286 varunit
23287 \end_layout
23288
23289 \begin_layout Standard
23290 0.45
23291 \backslash
23292 varunit 0.332
23293 \backslash
23294 varunit
23295 \end_layout
23296
23297 \begin_layout Standard
23298
23299 \end_layout
23300
23301 \end_inset
23302
23303 There are times when the tyranny of rectangular paragraphs must be overthrown.
23304  In such situations, a call to the delightful plain TeX command 
23305 \family typewriter
23306
23307 \backslash
23308 parshape
23309 \family default
23310  is called for.
23311  As you can see, completely arbitrary shapes can be laid out with a suitable
23312  set of linelength definitions.
23313  While this parshape may look a bit silly and useless, one could conceive
23314  of situations such as finely tuned dropped capitals, word wrapping around
23315  non-rectangular graphics, etc.
23316  which will benefit from such handcrafting.
23317 \end_layout
23318
23319 \begin_layout Standard
23320 \begin_inset VSpace bigskip
23321 \end_inset
23322
23323
23324 \end_layout
23325
23326 \begin_layout Standard
23327 The syntax is 
23328 \family typewriter
23329
23330 \backslash
23331 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
23332  #nindent #nlength
23333 \family default
23334 , where 
23335 \family typewriter
23336 numlines
23337 \family default
23338  is the number of lines of text which define the paragraph.
23339  If there turn out to be fewer lines, the shape is truncated; if there are
23340  more, the excess lines have the same dimensions as the last line of the
23341  definition.
23342  The 
23343 \family typewriter
23344 #nindent
23345 \family default
23346  and 
23347 \family typewriter
23348 #nlength
23349 \family default
23350  entries specify the indentation of the line from the left margin, and the
23351  length of the line as measured from that point.
23352  The shape applies only to the current paragraph; everything is reset to
23353  normal for the next paragraph.
23354 \end_layout
23355
23356 \begin_layout Standard
23357 \begin_inset ERT
23358 status inlined
23359
23360 \begin_layout Standard
23361
23362 \backslash
23363 end{sloppypar}
23364 \end_layout
23365
23366 \end_inset
23367
23368
23369 \end_layout
23370
23371 \begin_layout Section
23372 Summary
23373 \end_layout
23374
23375 \begin_layout Standard
23376 As you can see, the examples in this section range from the useful to the
23377  whimsical.
23378  While I don't expect that anyone will ever need the paragraph shape demonstrate
23379 d in the last section, the important point is that you can do almost anything
23380  you want in LyX if you are willing to figure out how to do it in TeX and
23381  LaTeX.
23382  TeX is a fantastically powerful typesetting system and all that power is
23383  available to you since LyX uses it as its backend.
23384  Happy LyXing!
23385 \end_layout
23386
23387 \end_body
23388 \end_document