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