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