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