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