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