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