]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
faabab138e0ef5076022d06c22438b475b769f61
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.0 created this file. For more info see http://www.lyx.org/
2 \lyxformat 413
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 \language_package default
72 \inputencoding latin1
73 \fontencoding global
74 \font_roman default
75 \font_sans default
76 \font_typewriter default
77 \font_default_family default
78 \use_non_tex_fonts false
79 \font_sc false
80 \font_osf false
81 \font_sf_scale 100
82 \font_tt_scale 100
83
84 \graphics default
85 \default_output_format default
86 \output_sync 0
87 \bibtex_command default
88 \index_command default
89 \paperfontsize 12
90 \spacing single
91 \use_hyperref true
92 \pdf_title "LyX's Additional Features manual"
93 \pdf_author "LyX Team"
94 \pdf_subject "LyX's additional features documentation"
95 \pdf_keywords "LyX, Documentation, Additional"
96 \pdf_bookmarks true
97 \pdf_bookmarksnumbered true
98 \pdf_bookmarksopen false
99 \pdf_bookmarksopenlevel 1
100 \pdf_breaklinks false
101 \pdf_pdfborder false
102 \pdf_colorlinks true
103 \pdf_backref false
104 \pdf_pdfusetitle false
105 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,  pdfpagelayout=OneColumn, pdfnewwindow=true,  pdfstartview=XYZ, plainpages=false, pdfpagelabels"
106 \papersize default
107 \use_geometry false
108 \use_amsmath 0
109 \use_esint 0
110 \use_mhchem 1
111 \use_mathdots 1
112 \cite_engine basic
113 \use_bibtopic false
114 \use_indices false
115 \paperorientation portrait
116 \suppress_date false
117 \use_refstyle 0
118 \index Index
119 \shortcut idx
120 \color #008000
121 \end_index
122 \secnumdepth 3
123 \tocdepth 3
124 \paragraph_separation indent
125 \paragraph_indentation default
126 \quotes_language english
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tracking_changes true
131 \output_changes false
132 \html_math_output 0
133 \html_css_as_file 0
134 \html_be_strict true
135 \author 1414654397 "Richard Heck" 
136 \end_header
137
138 \begin_body
139
140 \begin_layout Title
141 Additional LyX Features
142 \end_layout
143
144 \begin_layout Author
145 by the LyX Team
146 \begin_inset Foot
147 status collapsed
148
149 \begin_layout Plain Layout
150 \noindent
151 Principal maintainer of this file is
152 \noun on
153  Richard Heck
154 \noun default
155 .
156  If you have comments or error corrections, please send them to the LyX
157  Documentation mailing list, 
158 \begin_inset Flex Code
159 status collapsed
160
161 \begin_layout Plain Layout
162 \noindent
163 <lyx-docs@lists.lyx.org>
164 \end_layout
165
166 \end_inset
167
168 .
169 \end_layout
170
171 \end_inset
172
173  
174 \end_layout
175
176 \begin_layout Standard
177 \begin_inset CommandInset toc
178 LatexCommand tableofcontents
179
180 \end_inset
181
182
183 \end_layout
184
185 \begin_layout Chapter
186 Introduction
187 \end_layout
188
189 \begin_layout Standard
190 This manual is essentially Part II of the 
191 \emph on
192 User's Guide\SpecialChar \@.
193
194 \emph default
195  The reason for separating this document out is simple: the 
196 \emph on
197 User's Guide
198 \emph default
199  is already quite lengthy, and it contains information on all of the basic
200  features one needs to know in order to prepare most documents.
201  However, the LyX Team has worked to make LyX extensible through various
202  configuration files and external packages.
203  That means that if you want to support the Fizzwizzle LaTeX package, you
204  can create a layout file (or module) for it without having to alter LyX
205  itself.
206  We've already had contributions of several new features this way, and some
207  of them are documented here.
208  There are also some more `advanced' features, such as how to control the
209  presentation of bibliographies and how to work with multi-part documents,
210  that are not covered in the 
211 \emph on
212 User's Guide
213 \emph default
214  and are discussed here.
215 \end_layout
216
217 \begin_layout Standard
218 This manual also documents some special features, like fax support, version
219  control, and SGML support, which require additional software to work properly.
220  There is also a chapter on LyX's support for HTML.
221  And lastly, there's a chapter of LaTeX tools and tips, things you can use
222  to spruce up your documents by directly using the powerful features of
223  LaTeX.
224  After all, LyX 
225 \emph on
226 is
227 \emph default
228  only WYSIWYM and will only ever interface to some, not all, LaTeX features.
229 \end_layout
230
231 \begin_layout Standard
232 If you haven't read the 
233 \emph on
234 Introduction
235 \emph default
236  yet, you are definitely in the wrong manual.
237  The 
238 \emph on
239 Introduction
240 \emph default
241  is the first place to go, since it describes the notation and format of
242  all of the manuals.
243  You should also be thoroughly familiar with the 
244 \emph on
245 User's Guide
246 \emph default
247  and all of the basic features of LyX before attempting to read this one.
248 \end_layout
249
250 \begin_layout Standard
251 Since many of the topics in this manual depend heavily on LyX's interaction
252  with LaTeX, this first chapter covers the inner workings of LyX and how
253  to direct LyX to generate exactly the LaTeX code you want.
254  It is obviously for more seasoned LyX users.
255 \end_layout
256
257 \begin_layout Chapter
258 LyX and LaTeX
259 \end_layout
260
261 \begin_layout Section
262 How LyX Uses LaTeX
263 \end_layout
264
265 \begin_layout Standard
266 This chapter is for both TeX-nicians and the LaTeX-curious.
267  In it, we'll explain how LyX and LaTeX work together to produce printable
268  output.
269  This is the only place in any of the manuals where we assume you know something
270  about LaTeX.
271 \end_layout
272
273 \begin_layout Standard
274 At one time, LyX was called a 
275 \begin_inset Quotes eld
276 \end_inset
277
278 WYSIWYM frontend to LaTeX,
279 \begin_inset Quotes erd
280 \end_inset
281
282  but that's no longer true.
283  There are frontends to LaTeX out there.
284 \begin_inset Foot
285 status collapsed
286
287 \begin_layout Plain Layout
288 Some familar ones are TeXmaker and kile, on Linux, and TeXshop, OSX.
289  There are also the LaTeX modes for vi and emacs, of course.
290 \end_layout
291
292 \end_inset
293
294  These are basically text editors with the ability to run LaTeX and mark
295  any errors in the file you're editing.
296  Although LyX 
297 \emph on
298 is
299 \emph default
300  an editor, and it 
301 \emph on
302 does
303 \emph default
304  run LaTeX, and it also indicates errors in the file, it also does much,
305  much more.
306  For one thing, you don't need to know LaTeX to use LyX effectively.
307  And LyX has added its own extensions to LaTeX.
308  Try the following sometime: select 
309 \begin_inset Flex MenuItem
310 status collapsed
311
312 \begin_layout Plain Layout
313 Export\SpecialChar \menuseparator
314 LaTeX
315 \end_layout
316
317 \end_inset
318
319  from the 
320 \begin_inset Flex MenuItem
321 status collapsed
322
323 \begin_layout Plain Layout
324 File
325 \end_layout
326
327 \end_inset
328
329  menu (or 
330 \begin_inset Flex MenuItem
331 status collapsed
332
333 \begin_layout Plain Layout
334 View\SpecialChar \menuseparator
335 Source
336 \end_layout
337
338 \end_inset
339
340 ), then look at the preamble of the resulting 
341 \begin_inset Flex Code
342 status collapsed
343
344 \begin_layout Plain Layout
345 .tex
346 \end_layout
347
348 \end_inset
349
350  file.
351  You'll notice a variety of new macros defined specifically by LyX.
352  These macros are defined automatically, according to the features you use
353  in the document.
354 \end_layout
355
356 \begin_layout Standard
357 There are several commands that automatically invoke LaTeX.
358  They are:
359 \end_layout
360
361 \begin_layout Itemize
362 \begin_inset Flex MenuItem
363 status collapsed
364
365 \begin_layout Plain Layout
366 View\SpecialChar \menuseparator
367 Format
368 \end_layout
369
370 \end_inset
371
372
373 \end_layout
374
375 \begin_layout Itemize
376 \begin_inset Flex MenuItem
377 status collapsed
378
379 \begin_layout Plain Layout
380 View\SpecialChar \menuseparator
381 Update\SpecialChar \menuseparator
382 Format
383 \end_layout
384
385 \end_inset
386
387
388 \end_layout
389
390 \begin_layout Itemize
391 \begin_inset Flex MenuItem
392 status collapsed
393
394 \begin_layout Plain Layout
395 File\SpecialChar \menuseparator
396 Print
397 \end_layout
398
399 \end_inset
400
401
402 \end_layout
403
404 \begin_layout Itemize
405 \begin_inset Flex MenuItem
406 status collapsed
407
408 \begin_layout Plain Layout
409 File\SpecialChar \menuseparator
410 Fax
411 \end_layout
412
413 \end_inset
414
415
416 \end_layout
417
418 \begin_layout Standard
419 They will only invoke LaTeX if the file has changed since the last time
420  LaTeX was run.
421  
422 \end_layout
423
424 \begin_layout Standard
425 When LyX runs LaTeX on the file you're editing, it performs these steps:
426 \end_layout
427
428 \begin_layout Enumerate
429 Convert the document to LaTeX and save to a file with the extension 
430 \begin_inset Flex Code
431 status collapsed
432
433 \begin_layout Plain Layout
434 .tex
435 \end_layout
436
437 \end_inset
438
439  in place of 
440 \begin_inset Flex Code
441 status collapsed
442
443 \begin_layout Plain Layout
444 .lyx
445 \end_layout
446
447 \end_inset
448
449 .
450 \end_layout
451
452 \begin_layout Enumerate
453 Run LaTeX on the 
454 \begin_inset Flex Code
455 status collapsed
456
457 \begin_layout Plain Layout
458 .tex
459 \end_layout
460
461 \end_inset
462
463  file (maybe several times), and run any other commands (such as 
464 \begin_inset Flex Code
465 status collapsed
466
467 \begin_layout Plain Layout
468 bibtex
469 \end_layout
470
471 \end_inset
472
473  or 
474 \begin_inset Flex Code
475 status collapsed
476
477 \begin_layout Plain Layout
478 makeindex
479 \end_layout
480
481 \end_inset
482
483 ) needed to compile the LaTeX file.
484 \end_layout
485
486 \begin_layout Enumerate
487 If there are any errors, show the error log.
488 \end_layout
489
490 \begin_layout Standard
491 If you've run LaTeX using 
492 \begin_inset Flex MenuItem
493 status collapsed
494
495 \begin_layout Plain Layout
496 View
497 \bar under
498 \SpecialChar \menuseparator
499
500 \bar default
501 DVI
502 \end_layout
503
504 \end_inset
505
506 , LyX then runs a DVI viewer to display the DVI-file.
507  If you've used 
508 \begin_inset Flex MenuItem
509 status collapsed
510
511 \begin_layout Plain Layout
512 View
513 \bar under
514 \SpecialChar \menuseparator
515
516 \bar default
517 PostScript
518 \end_layout
519
520 \end_inset
521
522 , LyX performs further steps:
523 \end_layout
524
525 \begin_layout Itemize
526 Run 
527 \begin_inset Flex Code
528 status collapsed
529
530 \begin_layout Plain Layout
531 dvips
532 \end_layout
533
534 \end_inset
535
536  to convert the DVI file to PostScript.
537 \end_layout
538
539 \begin_layout Itemize
540 Run a PostScript viewer, such as 
541 \begin_inset Flex Code
542 status collapsed
543
544 \begin_layout Plain Layout
545 ghostview
546 \end_layout
547
548 \end_inset
549
550 , to display the PostScript file.
551 \end_layout
552
553 \begin_layout Standard
554 LyX does similar things when viewing, or exporting, other formats.
555 \end_layout
556
557 \begin_layout Section
558 Translating LaTeX files into LyX
559 \end_layout
560
561 \begin_layout Standard
562 You can import a LaTeX file into LyX by using the 
563 \begin_inset Flex MenuItem
564 status collapsed
565
566 \begin_layout Plain Layout
567 File\SpecialChar \menuseparator
568 Import\SpecialChar \menuseparator
569 LaTeX
570 \end_layout
571
572 \end_inset
573
574  command in LyX.
575  This will call a program named 
576 \begin_inset Flex Code
577 status collapsed
578
579 \begin_layout Plain Layout
580 tex2lyx
581 \end_layout
582
583 \end_inset
584
585  which will create a file 
586 \begin_inset Flex Code
587 status collapsed
588
589 \begin_layout Plain Layout
590 foo.lyx
591 \end_layout
592
593 \end_inset
594
595  from the file 
596 \begin_inset Flex Code
597 status collapsed
598
599 \begin_layout Plain Layout
600 foo.tex
601 \end_layout
602
603 \end_inset
604
605 .
606  LyX will then open that file.
607 \begin_inset Foot
608 status collapsed
609
610 \begin_layout Plain Layout
611 \begin_inset Flex Code
612 status collapsed
613
614 \begin_layout Plain Layout
615 tex2lyx
616 \end_layout
617
618 \end_inset
619
620  can also be run from the command line, of course.
621 \end_layout
622
623 \end_inset
624
625
626 \end_layout
627
628 \begin_layout Standard
629 \begin_inset Flex Code
630 status collapsed
631
632 \begin_layout Plain Layout
633 tex2lyx
634 \end_layout
635
636 \end_inset
637
638  will translate most legal LaTeX, but not everything.
639  It will put things it doesn't understand into TeX code, so after translating
640  a file with 
641 \begin_inset Flex Code
642 status collapsed
643
644 \begin_layout Plain Layout
645 tex2lyx
646 \end_layout
647
648 \end_inset
649
650 , you can look for TeX code and hand-edit it until it looks right.
651 \end_layout
652
653 \begin_layout Standard
654 If you don't know what TeX code is, read the next section.
655 \end_layout
656
657 \begin_layout Section
658 \begin_inset CommandInset label
659 LatexCommand label
660 name "sec:Inserting-TeX-Code"
661
662 \end_inset
663
664 Inserting TeX Code into LyX Documents 
665 \end_layout
666
667 \begin_layout Standard
668 Anything you can do in LaTeX you can do in LyX, for a very simple reason:
669  You can always insert TeX code into any LyX document.
670  LyX cannot, and will never be able to, display every possible LaTeX construct.
671  If ever you need to insert LaTeX commands into your LyX document, you can
672  use the 
673 \begin_inset Flex Code
674 status collapsed
675
676 \begin_layout Plain Layout
677 TeX Code
678 \end_layout
679
680 \end_inset
681
682  box, which you can insert into your document with 
683 \begin_inset Flex MenuItem
684 status collapsed
685
686 \begin_layout Plain Layout
687 Insert\SpecialChar \menuseparator
688 TeX Code
689 \end_layout
690
691 \end_inset
692
693 .
694 \end_layout
695
696 \begin_layout Standard
697 Here's an example of inserting LaTeX commands in a LyX document.
698  The code looks like this:
699 \end_layout
700
701 \begin_layout LyX-Code
702
703 \backslash
704 begin{tabular}{ll}
705 \begin_inset Newline newline
706 \end_inset
707
708
709 \backslash
710 begin{minipage}{5cm}
711 \begin_inset Newline newline
712 \end_inset
713
714 This is an example for a minipage environment.
715  You 
716 \begin_inset Newline newline
717 \end_inset
718
719 can put nearly everything in it, even (non-floating) 
720 \begin_inset Newline newline
721 \end_inset
722
723 figures and tables.
724  
725 \begin_inset Newline newline
726 \end_inset
727
728
729 \backslash
730 end{minipage}
731 \begin_inset Newline newline
732 \end_inset
733
734 &
735 \begin_inset Newline newline
736 \end_inset
737
738
739 \backslash
740 begin{minipage}{5cm}
741 \begin_inset Newline newline
742 \end_inset
743
744
745 \backslash
746 begin{verbatim}
747 \begin_inset Newline newline
748 \end_inset
749
750
751 \backslash
752 begin{minipage}{5cm}
753 \begin_inset Newline newline
754 \end_inset
755
756 This ...
757  
758 \begin_inset Newline newline
759 \end_inset
760
761
762 \backslash
763 end{minipage}
764 \begin_inset Newline newline
765 \end_inset
766
767
768 \backslash
769 end{verbatim}
770 \begin_inset Newline newline
771 \end_inset
772
773
774 \backslash
775 end{minipage}
776 \begin_inset Newline newline
777 \end_inset
778
779
780 \backslash
781 end{tabular}
782 \end_layout
783
784 \begin_layout LyX-Code
785
786 \end_layout
787
788 \begin_layout Standard
789 The 
790 \begin_inset Flex Code
791 status collapsed
792
793 \begin_layout Plain Layout
794 TeX Code
795 \end_layout
796
797 \end_inset
798
799  box containing this text is directly after this paragraph.
800  Those of you reading the manual in LyX will only see the TeX code inset.
801  Those reading a printed version of the manuals will see the actual results:
802 \end_layout
803
804 \begin_layout Standard
805 \begin_inset ERT
806 status collapsed
807
808 \begin_layout Plain Layout
809
810
811 \backslash
812 begin{tabular}{ll}
813 \end_layout
814
815 \begin_layout Plain Layout
816
817
818 \backslash
819 begin{minipage}{5cm}
820 \end_layout
821
822 \begin_layout Plain Layout
823
824 This is an example for a minipage environment.
825  You can put nearly everything in it, even (non-floating) figures and tables.
826  
827 \end_layout
828
829 \begin_layout Plain Layout
830
831
832 \backslash
833 end{minipage}
834 \end_layout
835
836 \begin_layout Plain Layout
837
838 &
839 \end_layout
840
841 \begin_layout Plain Layout
842
843
844 \backslash
845 begin{minipage}{5cm}
846 \end_layout
847
848 \begin_layout Plain Layout
849
850
851 \backslash
852 begin{verbatim}
853 \end_layout
854
855 \begin_layout Plain Layout
856
857
858 \backslash
859 begin{minipage}{5cm}
860 \end_layout
861
862 \begin_layout Plain Layout
863
864 This ...
865  
866 \end_layout
867
868 \begin_layout Plain Layout
869
870
871 \backslash
872 end{minipage}
873 \end_layout
874
875 \begin_layout Plain Layout
876
877
878 \backslash
879 end{verbatim}
880 \end_layout
881
882 \begin_layout Plain Layout
883
884
885 \backslash
886 end{minipage}
887 \end_layout
888
889 \begin_layout Plain Layout
890
891
892 \backslash
893 end{tabular}
894 \end_layout
895
896 \end_inset
897
898
899 \end_layout
900
901 \begin_layout Standard
902 In addition to using TeX code, you can also create a separate file containing
903  some complex LaTeX structure and then use 
904 \begin_inset Flex MenuItem
905 status collapsed
906
907 \begin_layout Plain Layout
908 Insert\SpecialChar \menuseparator
909 Child
910 \begin_inset space ~
911 \end_inset
912
913 Document
914 \end_layout
915
916 \end_inset
917
918  to include your file (you should select the type 
919 \begin_inset Flex Code
920 status collapsed
921
922 \begin_layout Plain Layout
923 Input
924 \end_layout
925
926 \end_inset
927
928 ).
929  We recommend that you only do this if you have a 
930 \begin_inset Flex Code
931 status collapsed
932
933 \begin_layout Plain Layout
934 .tex
935 \end_layout
936
937 \end_inset
938
939  file which you 
940 \emph on
941 know
942 \emph default
943  works already.
944  Otherwise, you'll have a big job tracking down LaTeX errors.
945 \end_layout
946
947 \begin_layout Standard
948 There are a few last points to emphasize:
949 \end_layout
950
951 \begin_layout Itemize
952 LyX 
953 \emph on
954 does not
955 \emph default
956  check if your LaTeX code is correct.
957 \end_layout
958
959 \begin_layout Itemize
960 Beware reinventing the wheel.
961 \end_layout
962
963 \begin_layout Standard
964 On that last point, LyX does have quite a few features tucked into it, and
965  more are coming.
966  Be sure to check the manuals to make sure that LyX doesn't have such-and-such
967  feature before you decide you have to do it by hand.
968  Moreover, there are numerous LaTeX packages out there to do all sorts of
969  things, from labels to envelopes to fancy multipage tables.
970  Check out 
971 \begin_inset CommandInset href
972 LatexCommand href
973 name "CTAN"
974 target "http://www.ctan.org/"
975
976 \end_inset
977
978  for details, and see chapter 
979 \begin_inset CommandInset ref
980 LatexCommand ref
981 reference "cha:secrets"
982
983 \end_inset
984
985 .
986 \end_layout
987
988 \begin_layout Standard
989 If you do need to do some wild and fancy things within your document, be
990  sure to check out a good LaTeX book for assistance.
991  There are a number of them listed in the bibliography of the 
992 \emph on
993 User's Guide
994 \emph default
995 .
996 \end_layout
997
998 \begin_layout Section
999 LyX and the LaTeX Preamble
1000 \end_layout
1001
1002 \begin_layout Subsection
1003 About the LaTeX Preamble
1004 \end_layout
1005
1006 \begin_layout Standard
1007 If you already know LaTeX, there is no need to explain here what the preamble
1008  is good for.
1009  If you don't, the following will give you some ideas—we recommend again
1010  that you consult a LaTeX book for further information.
1011  In any case, you should read the points below, because they explain what
1012  you can do and what you don't need to do in the LaTeX preamble of a LyX
1013  document.
1014 \end_layout
1015
1016 \begin_layout Standard
1017 The LaTeX preamble comes at the very beginning of a document, 
1018 \emph on
1019 before
1020 \emph default
1021  the text.
1022  It serves to:
1023 \end_layout
1024
1025 \begin_layout Itemize
1026 Declare the document class.
1027  
1028 \begin_inset Newline newline
1029 \end_inset
1030
1031 LyX already does this for you.
1032  If you're a seasoned LaTeX-nician, and you have a custom document class
1033  you want to use, check out the 
1034 \emph on
1035 Customization Manual
1036 \emph default
1037  for information on how to make LyX interface to it.
1038 \end_layout
1039
1040 \begin_layout Itemize
1041 Declare the usage of packages.
1042  
1043 \begin_inset Newline newline
1044 \end_inset
1045
1046 LaTeX packages provide special commands, which are only available within
1047  a document when the package has been declared in the preamble.
1048  For example, the package 
1049 \begin_inset Flex Code
1050 status collapsed
1051
1052 \begin_layout Plain Layout
1053 indentfirst
1054 \end_layout
1055
1056 \end_inset
1057
1058  forces all paragraphs to be indented.
1059  There are other packages for labels, envelopes, margins, etc.
1060  
1061 \end_layout
1062
1063 \begin_layout Itemize
1064 Set counters, variables, lengths and widths.
1065  
1066 \begin_inset Newline newline
1067 \end_inset
1068
1069 There are several LaTeX counters and variables which 
1070 \emph on
1071 must
1072 \emph default
1073  be set globally from within the preamble in order to have the desired effect.
1074  (There are variables which you can set and reset inside the document, too.)
1075  Margins are a good example of something which must be set in the preamble.
1076  Another example is the label format for lists.
1077  You can actually set these just about anywhere, but it's best to do it
1078  just once, inside the preamble.
1079 \end_layout
1080
1081 \begin_layout Itemize
1082 Declare user defined commands (with 
1083 \begin_inset Flex Code
1084 status collapsed
1085
1086 \begin_layout Plain Layout
1087
1088 \backslash
1089 newcommand
1090 \end_layout
1091
1092 \end_inset
1093
1094  or 
1095 \begin_inset Flex Code
1096 status collapsed
1097
1098 \begin_layout Plain Layout
1099
1100 \backslash
1101 renewcommand
1102 \end_layout
1103
1104 \end_inset
1105
1106 ).
1107 \begin_inset Newline newline
1108 \end_inset
1109
1110 These are abbreviations for LaTeX commands which appear very often inside
1111  a document.
1112  Although the preamble is a good place to declare such commands, they 
1113 \emph on
1114 can
1115 \emph default
1116  be declared anywhere (before they are used for the first time, of course).
1117  This can be useful if there is a lot of raw LaTeX code in your document,
1118  which normally should not be the case.
1119 \end_layout
1120
1121 \begin_layout Standard
1122 LyX adds its own set of definitions to the preamble of the 
1123 \begin_inset Flex Code
1124 status collapsed
1125
1126 \begin_layout Plain Layout
1127 .tex
1128 \end_layout
1129
1130 \end_inset
1131
1132  file it produces.
1133  This makes LaTeX files generated by LyX portable.
1134 \end_layout
1135
1136 \begin_layout Subsection
1137 Changing the Preamble
1138 \end_layout
1139
1140 \begin_layout Standard
1141 The commands which LyX adds to the preamble of a LaTeX file are fixed; you
1142  can't change them without patching LyX itself.
1143  You can, however, add your own stuff to the preamble by selecting 
1144 \begin_inset Flex MenuItem
1145 status collapsed
1146
1147 \begin_layout Plain Layout
1148 LaTeX
1149 \begin_inset space ~
1150 \end_inset
1151
1152 Preamble
1153 \end_layout
1154
1155 \end_inset
1156
1157  in the 
1158 \begin_inset Flex MenuItem
1159 status collapsed
1160
1161 \begin_layout Plain Layout
1162 Document\SpecialChar \menuseparator
1163 Settings
1164 \end_layout
1165
1166 \end_inset
1167
1168  dialog.
1169  LyX adds anything in the 
1170 \begin_inset Flex MenuItem
1171 status collapsed
1172
1173 \begin_layout Plain Layout
1174 Preamble
1175 \end_layout
1176
1177 \end_inset
1178
1179  dialog to its own built-in preamble.
1180  Before adding your own declarations in the preamble, you should make sure
1181  that LyX doesn't already support what you want to do.
1182  (Remember what we said about reinventing the wheel?) Also, 
1183 \emph on
1184 make sure your preamble code is correct
1185 \emph default
1186 .
1187  LyX doesn't check it for you.
1188  If there is an error, you're likely to get an error like 
1189 \begin_inset Quotes eld
1190 \end_inset
1191
1192
1193 \begin_inset Flex Code
1194 status collapsed
1195
1196 \begin_layout Plain Layout
1197 Missing 
1198 \backslash
1199 begin{document}
1200 \end_layout
1201
1202 \end_inset
1203
1204
1205 \begin_inset Quotes erd
1206 \end_inset
1207
1208 .
1209  If you see this error, check your preamble.
1210 \end_layout
1211
1212 \begin_layout Subsection
1213 Examples
1214 \end_layout
1215
1216 \begin_layout Standard
1217 Here are some examples of what you can add to a preamble, and what they
1218  do.
1219 \end_layout
1220
1221 \begin_layout Subsubsection
1222 Example #1: Offsets
1223 \end_layout
1224
1225 \begin_layout Standard
1226 There are two variables under LaTeX that control page position: 
1227 \begin_inset Flex Code
1228 status collapsed
1229
1230 \begin_layout Plain Layout
1231
1232 \backslash
1233 hoffset
1234 \end_layout
1235
1236 \end_inset
1237
1238  and 
1239 \begin_inset Flex Code
1240 status collapsed
1241
1242 \begin_layout Plain Layout
1243
1244 \backslash
1245 voffset
1246 \end_layout
1247
1248 \end_inset
1249
1250 .
1251  Their names should be self-explanatory.
1252  These variables are useful if you think for a moment about computer labels.
1253  Sometimes, the size of a print medium and the area of the medium that you
1254  can actually print on aren't the same.
1255  This is where 
1256 \begin_inset Flex Code
1257 status collapsed
1258
1259 \begin_layout Plain Layout
1260
1261 \backslash
1262 hoffset
1263 \end_layout
1264
1265 \end_inset
1266
1267  and 
1268 \begin_inset Flex Code
1269 status collapsed
1270
1271 \begin_layout Plain Layout
1272
1273 \backslash
1274 voffset
1275 \end_layout
1276
1277 \end_inset
1278
1279  come in.
1280 \end_layout
1281
1282 \begin_layout Standard
1283 The default values for 
1284 \begin_inset Flex Code
1285 status collapsed
1286
1287 \begin_layout Plain Layout
1288
1289 \backslash
1290 hoffset
1291 \end_layout
1292
1293 \end_inset
1294
1295  and 
1296 \begin_inset Flex Code
1297 status collapsed
1298
1299 \begin_layout Plain Layout
1300
1301 \backslash
1302 voffset
1303 \end_layout
1304
1305 \end_inset
1306
1307  are both 0
1308 \begin_inset space \thinspace{}
1309 \end_inset
1310
1311 points, i.
1312 \begin_inset space \thinspace{}
1313 \end_inset
1314
1315 e.
1316 \begin_inset space \space{}
1317 \end_inset
1318
1319 the page isn't shifted.
1320  Unfortunately, some DVI drivers always seem to shift the page.
1321  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1322  If you're using LyX on a system that you don't personally maintain, and
1323  your sysadmin is a doofus, 
1324 \begin_inset Flex Code
1325 status collapsed
1326
1327 \begin_layout Plain Layout
1328
1329 \backslash
1330 hoffset
1331 \end_layout
1332
1333 \end_inset
1334
1335  and 
1336 \begin_inset Flex Code
1337 status collapsed
1338
1339 \begin_layout Plain Layout
1340
1341 \backslash
1342 voffset
1343 \end_layout
1344
1345 \end_inset
1346
1347  can save the day.
1348  Suppose your left and top margins are always 0.5
1349 \begin_inset space \thinspace{}
1350 \end_inset
1351
1352 inches too big.
1353  You can add this to the preamble:
1354 \end_layout
1355
1356 \begin_layout LyX-Code
1357
1358 \backslash
1359 setlength{
1360 \backslash
1361 hoffset}{-0.5 in}
1362 \end_layout
1363
1364 \begin_layout LyX-Code
1365
1366 \backslash
1367 setlength{
1368 \backslash
1369 voffset}{-0.5 in}
1370 \end_layout
1371
1372 \begin_layout Standard
1373 and your margins should now be correct.
1374 \end_layout
1375
1376 \begin_layout Subsubsection
1377 Example #2: Labels
1378 \end_layout
1379
1380 \begin_layout Standard
1381 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1382  There's a rather nice package, available at your nearest CTAN archive,
1383  for printing sheets of labels: 
1384 \begin_inset Flex Code
1385 status collapsed
1386
1387 \begin_layout Plain Layout
1388 labels.sty
1389 \end_layout
1390
1391 \end_inset
1392
1393 .
1394  Now, your system may not have this package installed by default.
1395  We leave that up to you to check.
1396  You'll also want to read the documentation for it; we're not going to do
1397  that for you.
1398  Since this is an example, however, we'll give you an example of how you
1399  use this package.
1400 \end_layout
1401
1402 \begin_layout Standard
1403 First, make sure you're using the 
1404 \begin_inset Flex Code
1405 status collapsed
1406
1407 \begin_layout Plain Layout
1408 article
1409 \end_layout
1410
1411 \end_inset
1412
1413  document class.
1414  Next, you need to put the following in your preamble:
1415 \end_layout
1416
1417 \begin_layout LyX-Code
1418
1419 \backslash
1420 usepackage{labels}
1421 \end_layout
1422
1423 \begin_layout LyX-Code
1424
1425 \backslash
1426 LabelCols=3
1427 \end_layout
1428
1429 \begin_layout LyX-Code
1430
1431 \backslash
1432 LabelRows=7
1433 \end_layout
1434
1435 \begin_layout LyX-Code
1436
1437 \backslash
1438 LeftBorder=8mm
1439 \end_layout
1440
1441 \begin_layout LyX-Code
1442
1443 \backslash
1444 RightBorder=8mm
1445 \end_layout
1446
1447 \begin_layout LyX-Code
1448
1449 \backslash
1450 TopBorder=9mm
1451 \end_layout
1452
1453 \begin_layout LyX-Code
1454
1455 \backslash
1456 BottomBorder=2mm
1457 \end_layout
1458
1459 \begin_layout Standard
1460 This sets things up for Avery label sheets, stock #5360.
1461  You're now ready to print labels, but you'll need to insert LaTeX code,
1462  placing the commands 
1463 \begin_inset Flex Code
1464 status collapsed
1465
1466 \begin_layout Plain Layout
1467
1468 \backslash
1469 begin{labels}
1470 \end_layout
1471
1472 \end_inset
1473
1474  and 
1475 \begin_inset Flex Code
1476 status collapsed
1477
1478 \begin_layout Plain Layout
1479
1480 \backslash
1481 end{labels}
1482 \end_layout
1483
1484 \end_inset
1485
1486  around each label text.
1487  This and other special features of 
1488 \begin_inset Flex Code
1489 status collapsed
1490
1491 \begin_layout Plain Layout
1492 labels.sty
1493 \end_layout
1494
1495 \end_inset
1496
1497  are explained in its documentation.
1498 \end_layout
1499
1500 \begin_layout Standard
1501 Someday, someone may write a LyX layout file to support this package directly.
1502  Maybe that someone is you.
1503 \end_layout
1504
1505 \begin_layout Subsubsection
1506 Example #3: Paragraph Indentation
1507 \end_layout
1508
1509 \begin_layout Standard
1510 Americans are trained to indent the first line of 
1511 \emph on
1512 every
1513 \emph default
1514  paragraph.
1515  As with all of their other weird quirks, most Americans will whine and
1516  moan until they can have their way and indent the first line of all paragraphs.
1517  (Yes, we're joking.
1518  (We are?) 
1519 \emph on
1520 Yeah
1521 \emph default
1522 , we are.)
1523 \end_layout
1524
1525 \begin_layout Standard
1526 Of course, this behavior isn't standard typography.
1527  In books, you typically only indent the first line of a paragraph 
1528 \emph on
1529 if
1530 \emph default
1531  it follows another one.
1532  The idea behind indenting the first line of a paragraph is to distinguish
1533  neighboring paragraphs from one another.
1534  If there is no previous paragraph—for example, if it follows a figure or
1535  is the first paragraph in a section—then there is no need for indentation.
1536  
1537 \end_layout
1538
1539 \begin_layout Standard
1540 If you're a typical American (we're still joking!), though, you don't care
1541  about such esoteric things; you want your indentation! Add this to the
1542  preamble:
1543 \end_layout
1544
1545 \begin_layout LyX-Code
1546
1547 \backslash
1548 usepackage{indentfirst}
1549 \end_layout
1550
1551 \begin_layout Standard
1552 If your TeX distribution isn't braindead, you'll have this package, and
1553  all of your paragraphs will get the indentation the Founding Fathers intended
1554  they should have.
1555 \end_layout
1556
1557 \begin_layout Subsubsection
1558 Example #4: This Document
1559 \end_layout
1560
1561 \begin_layout Standard
1562 You can also check out the preamble of this document to get an idea of some
1563  of the advanced things you can do.
1564  Also, there are more examples and an assortment of LaTeX 
1565 \begin_inset Quotes eld
1566 \end_inset
1567
1568 dirty tricks
1569 \begin_inset Quotes erd
1570 \end_inset
1571
1572  given in Chapter
1573 \begin_inset space ~
1574 \end_inset
1575
1576
1577 \begin_inset CommandInset ref
1578 LatexCommand ref
1579 reference "cha:secrets"
1580
1581 \end_inset
1582
1583 .
1584  
1585 \end_layout
1586
1587 \begin_layout Section
1588 LyX and LaTeX Errors
1589 \end_layout
1590
1591 \begin_layout Standard
1592 When LyX calls LaTeX, it tells LaTeX to blithely ignore any errors and keep
1593  going.
1594  It then uses the logfile from the LaTeX run to do a post-mortem.
1595  After analyzing the logfile,LyX displays a dialog listing the errors.
1596  Clicking on any one of them will take you to the position in your LyX file
1597  where the error occurred.
1598 \begin_inset Foot
1599 status collapsed
1600
1601 \begin_layout Plain Layout
1602 Well, usually.
1603  Analyzing the logfile is a tough job, and LyX doesn't always go to the
1604  right line.
1605  There are also cases where LaTeX reports the error on one line, but the
1606  actual error is earlier.
1607  This is not unlike forgetting a closing brace in a program: You'll get
1608  an error, but only later.
1609 \end_layout
1610
1611 \end_inset
1612
1613
1614 \end_layout
1615
1616 \begin_layout Standard
1617 Some folks also like to look at the log file directly: It is available from
1618  
1619 \begin_inset Flex MenuItem
1620 status collapsed
1621
1622 \begin_layout Plain Layout
1623 Document
1624 \bar under
1625 \SpecialChar \menuseparator
1626
1627 \bar default
1628 Latex
1629 \begin_inset space ~
1630 \end_inset
1631
1632 Log
1633 \end_layout
1634
1635 \end_inset
1636
1637 .
1638  There are some fairly common error messages and warnings.
1639  We'll cover those here.
1640  You should look at a good LaTeX book for a complete listing.
1641 \end_layout
1642
1643 \begin_layout Itemize
1644 \begin_inset Flex Code
1645 status collapsed
1646
1647 \begin_layout Plain Layout
1648 LaTeX Warning
1649 \end_layout
1650
1651 \end_inset
1652
1653
1654 \begin_inset Newline newline
1655 \end_inset
1656
1657 Anything beginning with these words is a warning message for the purpose
1658  of 
1659 \begin_inset Quotes eld
1660 \end_inset
1661
1662 debugging
1663 \begin_inset Quotes erd
1664 \end_inset
1665
1666  the LaTeX code itself.
1667  You'll get messages like this if you added or changed cross-references
1668  or bibliography entries, in which case, LaTeX is trying to tell you that
1669  you need to make another run.
1670  You can by-and-large ignore these.
1671 \end_layout
1672
1673 \begin_layout Itemize
1674 \begin_inset Flex Code
1675 status collapsed
1676
1677 \begin_layout Plain Layout
1678 LaTeX Font Warning
1679 \end_layout
1680
1681 \end_inset
1682
1683
1684 \begin_inset Newline newline
1685 \end_inset
1686
1687 Another warning message, this time about fonts which LaTeX couldn't find.
1688  The rest of the message will often say something about a replacement font
1689  that LaTeX used.
1690  You can safely ignore these, too.
1691 \end_layout
1692
1693 \begin_layout Itemize
1694 \begin_inset Flex Code
1695 status collapsed
1696
1697 \begin_layout Plain Layout
1698 Overfull 
1699 \backslash
1700 hbox
1701 \end_layout
1702
1703 \end_inset
1704
1705
1706 \begin_inset Newline newline
1707 \end_inset
1708
1709 LaTeX absolutely 
1710 \emph on
1711 loves
1712 \emph default
1713  to spew these out.
1714  They are warnings about lines that were too long and run past the right
1715  margin.
1716  Almost always, this is unnoticeable in the final output.
1717  (It can be just a point or two.) Or, only one or two characters extend past
1718  the margin.
1719  LaTeX seems to generate at least one of these messages for just about any
1720  document you write.
1721 \begin_inset Newline newline
1722 \end_inset
1723
1724 You can ignore these messages.
1725  Your eyes will tell you if there's a problem with something that's too
1726  wide; just look at the output.
1727 \begin_inset Foot
1728 status collapsed
1729
1730 \begin_layout Plain Layout
1731 You can also enable the `draft' option in 
1732 \begin_inset Flex MenuItem
1733 status collapsed
1734
1735 \begin_layout Plain Layout
1736 Document
1737 \bar under
1738 \SpecialChar \menuseparator
1739
1740 \bar default
1741 Settings
1742 \end_layout
1743
1744 \end_inset
1745
1746 , and then LaTeX will draw a black box in the margin of lines that are overfull.
1747 \end_layout
1748
1749 \end_inset
1750
1751
1752 \end_layout
1753
1754 \begin_layout Itemize
1755 \begin_inset Flex Code
1756 status collapsed
1757
1758 \begin_layout Plain Layout
1759 Underfull 
1760 \backslash
1761 hbox
1762 \end_layout
1763
1764 \end_inset
1765
1766
1767 \begin_inset Newline newline
1768 \end_inset
1769
1770 Not quite as common as its cousin.
1771  LaTeX seems to like to print lines that are a bit too wide as opposed to
1772  ones that are a bit too narrow.
1773  We have no idea why.
1774 \end_layout
1775
1776 \begin_layout Itemize
1777 \begin_inset Flex Code
1778 status collapsed
1779
1780 \begin_layout Plain Layout
1781 Overfull 
1782 \backslash
1783 vbox
1784 \end_layout
1785
1786 \end_inset
1787
1788  and 
1789 \begin_inset Flex Code
1790 status collapsed
1791
1792 \begin_layout Plain Layout
1793 Underfull 
1794 \backslash
1795 vbox
1796 \end_layout
1797
1798 \end_inset
1799
1800
1801 \begin_inset Newline newline
1802 \end_inset
1803
1804 Warnings about troubles breaking the page.
1805  Once again, just look at the output.
1806  Your eyes will tell you where something has gone wrong.
1807 \end_layout
1808
1809 \begin_layout Itemize
1810 \begin_inset Flex Code
1811 status collapsed
1812
1813 \begin_layout Plain Layout
1814  LaTeX Error: File 
1815 \begin_inset Quotes els
1816 \end_inset
1817
1818 Xxxx
1819 \begin_inset Quotes ers
1820 \end_inset
1821
1822  not found
1823 \end_layout
1824
1825 \end_inset
1826
1827
1828 \begin_inset Newline newline
1829 \end_inset
1830
1831 The file 
1832 \begin_inset Quotes eld
1833 \end_inset
1834
1835 Xxxx
1836 \begin_inset Quotes erd
1837 \end_inset
1838
1839  isn't installed on this system.
1840  This usually appears because some package your document needs isn't installed.
1841  If you didn't touch the preamble or didn't use the 
1842 \begin_inset Flex Code
1843 status collapsed
1844
1845 \begin_layout Plain Layout
1846
1847 \backslash
1848 usepackage{}
1849 \end_layout
1850
1851 \end_inset
1852
1853  command, then one of the packages LyX tried to load is missing.
1854  Use 
1855 \begin_inset Flex MenuItem
1856 status collapsed
1857
1858 \begin_layout Plain Layout
1859 Help\SpecialChar \menuseparator
1860 LaTeX Configuration
1861 \end_layout
1862
1863 \end_inset
1864
1865  to get a list of packages that LyX knows about.
1866  This file is updated whenever you reconfigure LyX (using 
1867 \begin_inset Flex MenuItem
1868 status collapsed
1869
1870 \begin_layout Plain Layout
1871 Tools\SpecialChar \menuseparator
1872 Reconfigure
1873 \end_layout
1874
1875 \end_inset
1876
1877 ) and tells you which packages have been detected and what they do.
1878 \begin_inset Newline newline
1879 \end_inset
1880
1881 If you did use the 
1882 \begin_inset Flex Code
1883 status collapsed
1884
1885 \begin_layout Plain Layout
1886
1887 \backslash
1888 usepackage{}
1889 \end_layout
1890
1891 \end_inset
1892
1893  command and the package in question isn't installed, then you'll need to
1894  install it yourself.
1895 \end_layout
1896
1897 \begin_layout Itemize
1898 \begin_inset Flex Code
1899 status collapsed
1900
1901 \begin_layout Plain Layout
1902 LaTeX Error: Unknown option
1903 \end_layout
1904
1905 \end_inset
1906
1907
1908 \begin_inset Newline newline
1909 \end_inset
1910
1911 Error messages beginning with this are trying to tell you that you specified
1912  a bad or undefined option to a package.
1913  Check the package's documentation.
1914 \end_layout
1915
1916 \begin_layout Itemize
1917 \begin_inset Flex Code
1918 status collapsed
1919
1920 \begin_layout Plain Layout
1921 Undefined control sequence
1922 \end_layout
1923
1924 \end_inset
1925
1926
1927 \begin_inset Newline newline
1928 \end_inset
1929
1930 If you've inserted LaTeX code into your document, but made a typo, you'll
1931  get one of these.
1932  You may have forgotten to load a package.
1933  In any case, this error message usually means that you used an undefined
1934  command.
1935  
1936 \end_layout
1937
1938 \begin_layout Standard
1939 There are other error and warning messages.
1940  Some are self-explanatory.
1941  These are usually LaTeX messages.
1942  Others are downright cryptic.
1943  These are usually TeX error messages, and we really have 
1944 \emph on
1945 no clue
1946 \emph default
1947  what they mean or how to decipher them.
1948  No-one does.
1949 \end_layout
1950
1951 \begin_layout Standard
1952 There's a general sequence you should follow if you get error messages:
1953 \end_layout
1954
1955 \begin_layout Enumerate
1956 Look at the LaTeX code you inserted for typos.
1957 \end_layout
1958
1959 \begin_layout Enumerate
1960 If there are no typos, check that you used the command(s) correctly.
1961 \end_layout
1962
1963 \begin_layout Enumerate
1964 If you get a bunch of error boxes piled up at the very top of the document—and
1965  especially if you see a 
1966 \begin_inset Quotes eld
1967 \end_inset
1968
1969
1970 \begin_inset Flex Code
1971 status collapsed
1972
1973 \begin_layout Plain Layout
1974 Missing 
1975 \backslash
1976 begin{document}
1977 \end_layout
1978
1979 \end_inset
1980
1981
1982 \begin_inset Quotes erd
1983 \end_inset
1984
1985  error—it means that there are errors in the preamble.
1986  Start debugging your preamble.
1987 \end_layout
1988
1989 \begin_layout Enumerate
1990 If you didn't add anything to the preamble and didn't add any LaTeX code
1991  to the document, the first suspect is your LaTeX distribution itself.
1992  Check for missing packages and install them.
1993 \end_layout
1994
1995 \begin_layout Enumerate
1996 Okay, so there are no missing packages.
1997  Did you use any of the fine-tuning options in LyX? Specifically, did you
1998  
1999 \emph on
2000 misuse
2001 \emph default
2002  any of them, like trying to manually insert lots of 
2003 \begin_inset Flex Code
2004 status collapsed
2005
2006 \begin_layout Plain Layout
2007 Protected
2008 \begin_inset space ~
2009 \end_inset
2010
2011 Blanks
2012 \end_layout
2013
2014 \end_inset
2015
2016
2017 \begin_inset Flex Code
2018 status collapsed
2019
2020 \begin_layout Plain Layout
2021 Linebreaks
2022 \end_layout
2023
2024 \end_inset
2025
2026 , or 
2027 \begin_inset Flex Code
2028 status collapsed
2029
2030 \begin_layout Plain Layout
2031 Pagebreaks
2032 \end_layout
2033
2034 \end_inset
2035
2036 ? Did you try to kludge something together with these instead of using the
2037  appropriate paragraph environment?
2038 \end_layout
2039
2040 \begin_layout Enumerate
2041 All right, you didn't use any of the fine-tuning options, you played by
2042  the rules.
2043  Did you try to pull a fancy maneuver? Did you do something funky inside
2044  a table or an equation, like inserting a graphic into a table cell?
2045 \end_layout
2046
2047 \begin_layout Enumerate
2048 Do you have long sections of text where LaTeX cannot find a place to break
2049  a line? By default, LaTeX is rather strict about how much extra inter-word
2050  spacing it will add in order to break a line.
2051  Preferably, you should rework the paragraph to avoid the problem.
2052  If this isn't an option, you can wrap your text in 
2053 \begin_inset Flex Code
2054 status collapsed
2055
2056 \begin_layout Plain Layout
2057
2058 \backslash
2059 sloppypar
2060 \end_layout
2061
2062 \end_inset
2063
2064  to make LaTeX's line breaking more, well, sloppy.
2065 \end_layout
2066
2067 \begin_layout Enumerate
2068 Did you go overboard with the nesting? LyX (currently) doesn't check to
2069  make sure you're in the limits for nesting environments.
2070  If you nested a bunch of environments to the 
2071 \begin_inset Formula $17^{\mathrm{th}}$
2072 \end_inset
2073
2074  level, that's the problem.
2075  (The limit in LaTeX is five.)
2076 \end_layout
2077
2078 \begin_layout Enumerate
2079 Okay, you didn't get any error messages, but your output looks awful.
2080  If you have a table or figure that's too wide or long for the page, you
2081  need to:
2082 \end_layout
2083
2084 \begin_deeper
2085 \begin_layout Enumerate
2086 rescale the figure so it fits.
2087 \end_layout
2088
2089 \begin_layout Enumerate
2090 trim down the table so it fits.
2091 \end_layout
2092
2093 \end_deeper
2094 \begin_layout Enumerate
2095 If something else is wrong with the output, and you didn't try to pull anything
2096  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2097 \end_layout
2098
2099 \begin_layout Standard
2100 If all this doesn't help—well, then 
2101 \emph on
2102 perhaps
2103 \emph default
2104  you might have found a bug in LyX\SpecialChar \ldots{}
2105 .
2106 \end_layout
2107
2108 \begin_layout Chapter
2109 Supplemental Tools
2110 \end_layout
2111
2112 \begin_layout Section
2113 Customizing Bibliographies with BibTeX
2114 \end_layout
2115
2116 \begin_layout Standard
2117 The most basic information about how to use BibTeX with LyX is contained
2118  in the section 
2119 \emph on
2120 Bibliography databases (BibTeX)
2121 \emph default
2122  of the 
2123 \emph on
2124 User's Guide
2125 \emph default
2126 .
2127  The following subsections explain special bibliography features supported
2128  by LyX.
2129 \end_layout
2130
2131 \begin_layout Subsection
2132 Alternative Citation Styles
2133 \end_layout
2134
2135 \begin_layout Standard
2136 Standard BibTeX uses numbers (e.
2137 \begin_inset space \thinspace{}
2138 \end_inset
2139
2140 g.
2141 \begin_inset space \space{}
2142 \end_inset
2143
2144
2145 \begin_inset Quotes eld
2146 \end_inset
2147
2148 [12]
2149 \begin_inset Quotes erd
2150 \end_inset
2151
2152 ) to refer to a cited work.
2153  However, in many scientific disciplines, other citation styles are in use.
2154  The most common one is the author-year style (e.
2155 \begin_inset space \thinspace{}
2156 \end_inset
2157
2158 g.
2159 \begin_inset space \space{}
2160 \end_inset
2161
2162
2163 \begin_inset Quotes eld
2164 \end_inset
2165
2166 Knuth 1984a
2167 \begin_inset Quotes erd
2168 \end_inset
2169
2170 ).
2171  LyX supports two packages that provide this style, 
2172 \begin_inset Flex Code
2173 status collapsed
2174
2175 \begin_layout Plain Layout
2176 natbib
2177 \end_layout
2178
2179 \end_inset
2180
2181  and 
2182 \begin_inset Flex Code
2183 status collapsed
2184
2185 \begin_layout Plain Layout
2186 jurabib
2187 \end_layout
2188
2189 \end_inset
2190
2191 .
2192  Both packages have their pros and cons, which cannot be listed in detail.
2193  If you only want to have simple author-year (or author-numerical) style,
2194  or if you want to use one of the countless style files for 
2195 \begin_inset Flex Code
2196 status collapsed
2197
2198 \begin_layout Plain Layout
2199 natbib
2200 \end_layout
2201
2202 \end_inset
2203
2204 , than the established 
2205 \begin_inset Flex Code
2206 status collapsed
2207
2208 \begin_layout Plain Layout
2209 natbib
2210 \end_layout
2211
2212 \end_inset
2213
2214  package is probably your choice.
2215  If you need special features like short title references, ibidem etc., you
2216  might consider the 
2217 \begin_inset Flex Code
2218 status collapsed
2219
2220 \begin_layout Plain Layout
2221 jurabib
2222 \end_layout
2223
2224 \end_inset
2225
2226  package.
2227 \end_layout
2228
2229 \begin_layout Standard
2230 The handling of both packages in LyX is basically the same.
2231  Go to 
2232 \begin_inset Flex MenuItem
2233 status collapsed
2234
2235 \begin_layout Plain Layout
2236 Document\SpecialChar \menuseparator
2237 Settings
2238 \end_layout
2239
2240 \end_inset
2241
2242  and select under 
2243 \begin_inset Flex MenuItem
2244 status collapsed
2245
2246 \begin_layout Plain Layout
2247 Bibliography
2248 \end_layout
2249
2250 \end_inset
2251
2252  the option 
2253 \begin_inset Flex MenuItem
2254 status collapsed
2255
2256 \begin_layout Plain Layout
2257 Natbib
2258 \end_layout
2259
2260 \end_inset
2261
2262  or 
2263 \begin_inset Flex MenuItem
2264 status collapsed
2265
2266 \begin_layout Plain Layout
2267 Jurabib
2268 \end_layout
2269
2270 \end_inset
2271
2272 .
2273  With both packages, you will get some extra features in the citation dialog
2274  and you can select the style of the reference (
2275 \begin_inset Quotes eld
2276 \end_inset
2277
2278 Knuth 1984
2279 \begin_inset Quotes erd
2280 \end_inset
2281
2282
2283 \begin_inset Quotes eld
2284 \end_inset
2285
2286 Knuth (1984)
2287 \begin_inset Quotes erd
2288 \end_inset
2289
2290
2291 \begin_inset Quotes eld
2292 \end_inset
2293
2294 Knuth, 1984
2295 \begin_inset Quotes erd
2296 \end_inset
2297
2298
2299 \begin_inset Quotes eld
2300 \end_inset
2301
2302 1984
2303 \begin_inset Quotes erd
2304 \end_inset
2305
2306  etc.).
2307  Note that both packages need specifically designed style files.
2308  They both ship their own, but there are lots of additional style files,
2309  and there is even an interactive style file builder
2310 \begin_inset Foot
2311 status collapsed
2312
2313 \begin_layout Plain Layout
2314 See 
2315 \begin_inset Flex URL
2316 status open
2317
2318 \begin_layout Plain Layout
2319
2320 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
2321 \end_layout
2322
2323 \end_inset
2324
2325
2326 \end_layout
2327
2328 \end_inset
2329
2330  for 
2331 \begin_inset Flex Code
2332 status collapsed
2333
2334 \begin_layout Plain Layout
2335 natbib
2336 \end_layout
2337
2338 \end_inset
2339
2340 .
2341 \end_layout
2342
2343 \begin_layout Subsection
2344 Sectioned Bibliographies
2345 \end_layout
2346
2347 \begin_layout Standard
2348 Sometimes you might need to divide your bibliography into several sections.
2349  If you are for instance a historian, the possibility to separate sources
2350  and scientific works is most likely a 
2351 \begin_inset Quotes eld
2352 \end_inset
2353
2354 must have
2355 \begin_inset Quotes erd
2356 \end_inset
2357
2358 .
2359  Unfortunately, BibTeX itself does not allow you to do this.
2360  But with the help of some LaTeX packages, BibTeX can be extended to fit
2361  your needs.
2362 \end_layout
2363
2364 \begin_layout Standard
2365 LyX provides native support for one of these packages, 
2366 \family typewriter
2367 bibtopic
2368 \family default
2369 .
2370 \begin_inset Foot
2371 status collapsed
2372
2373 \begin_layout Plain Layout
2374 Available from 
2375 \begin_inset Flex URL
2376 status open
2377
2378 \begin_layout Plain Layout
2379
2380 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
2381 \end_layout
2382
2383 \end_inset
2384
2385
2386 \end_layout
2387
2388 \end_inset
2389
2390  The advantage of this package (compared to other packages like 
2391 \family typewriter
2392 multibib
2393 \family default
2394 ) is that you don't need to define new citation commands.
2395  Instead, you need to prepare different bibliographic databases which include
2396  the entries for the different sections of the bibliography.
2397  For example: If you want to divide your bibliography into the sections
2398  
2399 \begin_inset Quotes eld
2400 \end_inset
2401
2402 Sources
2403 \begin_inset Quotes erd
2404 \end_inset
2405
2406  and 
2407 \begin_inset Quotes eld
2408 \end_inset
2409
2410 Scientific works
2411 \begin_inset Quotes erd
2412 \end_inset
2413
2414 , you first need to create two bibliographic databases, e.
2415 \begin_inset space \thinspace{}
2416 \end_inset
2417
2418 g.
2419 \begin_inset space \space{}
2420 \end_inset
2421
2422
2423 \begin_inset Flex Code
2424 status collapsed
2425
2426 \begin_layout Plain Layout
2427 sources.bib
2428 \end_layout
2429
2430 \end_inset
2431
2432  and 
2433 \begin_inset Flex Code
2434 status collapsed
2435
2436 \begin_layout Plain Layout
2437 scientific.bib
2438 \end_layout
2439
2440 \end_inset
2441
2442 .
2443  
2444 \end_layout
2445
2446 \begin_layout Standard
2447 Go to 
2448 \begin_inset Flex MenuItem
2449 status collapsed
2450
2451 \begin_layout Plain Layout
2452 Document\SpecialChar \menuseparator
2453 Settings
2454 \end_layout
2455
2456 \end_inset
2457
2458  and check under 
2459 \begin_inset Flex MenuItem
2460 status collapsed
2461
2462 \begin_layout Plain Layout
2463 Bibliography
2464 \end_layout
2465
2466 \end_inset
2467
2468  the option 
2469 \begin_inset Flex MenuItem
2470 status collapsed
2471
2472 \begin_layout Plain Layout
2473 Sectioned bibliography
2474 \end_layout
2475
2476 \end_inset
2477
2478 .
2479  Now you can insert multiple BibTeX bibliographies, one for each section
2480  of your bibliography.
2481  Returning to our example: Insert the BibTeX bibliography 
2482 \begin_inset Flex Code
2483 status collapsed
2484
2485 \begin_layout Plain Layout
2486 sources.bib
2487 \end_layout
2488
2489 \end_inset
2490
2491  and a second one for the database 
2492 \begin_inset Flex Code
2493 status collapsed
2494
2495 \begin_layout Plain Layout
2496 scientific.bib
2497 \end_layout
2498
2499 \end_inset
2500
2501 .
2502  You are free to use the same or different styles for each section.
2503  Additionally, you can chose if the bibliography section should contain
2504  
2505 \begin_inset Quotes eld
2506 \end_inset
2507
2508 all cited references
2509 \begin_inset Quotes erd
2510 \end_inset
2511
2512  of the specified database(s) (which is the default), 
2513 \begin_inset Quotes eld
2514 \end_inset
2515
2516 all uncited references
2517 \begin_inset Quotes erd
2518 \end_inset
2519
2520  or even 
2521 \begin_inset Quotes eld
2522 \end_inset
2523
2524 all references
2525 \begin_inset Quotes erd
2526 \end_inset
2527
2528 .
2529  This might be useful if you would like to separate your bibliography into
2530  three sections: 
2531 \begin_inset Quotes eld
2532 \end_inset
2533
2534 Cited sources
2535 \begin_inset Quotes erd
2536 \end_inset
2537
2538
2539 \begin_inset Quotes eld
2540 \end_inset
2541
2542 Uncited sources
2543 \begin_inset Quotes erd
2544 \end_inset
2545
2546 , and 
2547 \begin_inset Quotes eld
2548 \end_inset
2549
2550 Scientific works
2551 \begin_inset Quotes erd
2552 \end_inset
2553
2554 .
2555  The titles for the sections can be added as ordinary sections or subsections.
2556  Since 
2557 \begin_inset Flex Code
2558 status collapsed
2559
2560 \begin_layout Plain Layout
2561 bibtopic
2562 \end_layout
2563
2564 \end_inset
2565
2566  removes the bibliography title, you have manually re-add that, too (as
2567  a chapter* or section*, for instance).
2568 \end_layout
2569
2570 \begin_layout Subsection
2571 Multiple Bibliographies
2572 \end_layout
2573
2574 \begin_layout Standard
2575 Multiple bibliographies, e.
2576 \begin_inset space \thinspace{}
2577 \end_inset
2578
2579 g.
2580 \begin_inset space \space{}
2581 \end_inset
2582
2583 a bibliography for each section or chapter of the document, are not supported
2584  by BibTeX itself.
2585  But the 
2586 \begin_inset Flex Code
2587 status collapsed
2588
2589 \begin_layout Plain Layout
2590 bibtopic
2591 \end_layout
2592
2593 \end_inset
2594
2595  package, which is used for the creation of sectioned bibliographies in
2596  LyX (see the previous section), provides an easy way to solve this task,
2597  if you are willing to use some 
2598 \begin_inset Flex MenuItem
2599 status collapsed
2600
2601 \begin_layout Plain Layout
2602 TeX Code
2603 \end_layout
2604
2605 \end_inset
2606
2607  (see section
2608 \begin_inset space ~
2609 \end_inset
2610
2611
2612 \begin_inset CommandInset ref
2613 LatexCommand ref
2614 reference "sec:Inserting-TeX-Code"
2615
2616 \end_inset
2617
2618 ).
2619 \begin_inset Foot
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 An alternative approach is to use the 
2624 \begin_inset Flex Code
2625 status collapsed
2626
2627 \begin_layout Plain Layout
2628 chapterbib
2629 \end_layout
2630
2631 \end_inset
2632
2633  or 
2634 \begin_inset Flex Code
2635 status collapsed
2636
2637 \begin_layout Plain Layout
2638 bibunits
2639 \end_layout
2640
2641 \end_inset
2642
2643  package, respectively.
2644 \end_layout
2645
2646 \end_inset
2647
2648
2649 \end_layout
2650
2651 \begin_layout Standard
2652 First go to 
2653 \begin_inset Flex MenuItem
2654 status collapsed
2655
2656 \begin_layout Plain Layout
2657 Document\SpecialChar \menuseparator
2658 Settings
2659 \end_layout
2660
2661 \end_inset
2662
2663  and under 
2664 \begin_inset Flex MenuItem
2665 status collapsed
2666
2667 \begin_layout Plain Layout
2668 Bibliography
2669 \end_layout
2670
2671 \end_inset
2672
2673  check 
2674 \begin_inset Flex MenuItem
2675 status collapsed
2676
2677 \begin_layout Plain Layout
2678 Sectioned bibliography
2679 \end_layout
2680
2681 \end_inset
2682
2683 .
2684  In the document, you have to enclose the sections, which shall contain
2685  their own bibliography (including the BibTeX bibliography itself), between
2686  
2687 \begin_inset Flex Code
2688 status collapsed
2689
2690 \begin_layout Plain Layout
2691
2692 \backslash
2693 begin{btUnit}
2694 \end_layout
2695
2696 \end_inset
2697
2698  and 
2699 \begin_inset Flex Code
2700 status collapsed
2701
2702 \begin_layout Plain Layout
2703
2704 \backslash
2705 end{btUnit}
2706 \end_layout
2707
2708 \end_inset
2709
2710  (those commands have to be inserted as TeX code).
2711  The bibliography will contain all references which have been cited in the
2712  current 
2713 \begin_inset Flex Code
2714 status collapsed
2715
2716 \begin_layout Plain Layout
2717 btUnit
2718 \end_layout
2719
2720 \end_inset
2721
2722 .
2723  
2724 \series bold
2725 Note:
2726 \series default
2727  If you are using this approach, then every citation reference has to be
2728  inside some 
2729 \begin_inset Flex Code
2730 status collapsed
2731
2732 \begin_layout Plain Layout
2733 btUnit
2734 \end_layout
2735
2736 \end_inset
2737
2738 .
2739  Also, the 
2740 \begin_inset Flex Code
2741 status collapsed
2742
2743 \begin_layout Plain Layout
2744 btUnit
2745 \end_layout
2746
2747 \end_inset
2748
2749 s cannot be nested.
2750 \end_layout
2751
2752 \begin_layout Section
2753 Multipart Documents
2754 \end_layout
2755
2756 \begin_layout Subsection
2757 General Operation
2758 \end_layout
2759
2760 \begin_layout Standard
2761 When you are working on a large file with many sections, it is often convenient
2762  to break up the document into several files, or perhaps you have something
2763  where a table may change from time to time, but the preceding text does
2764  not.
2765  In these cases, you should seriously consider using multipart documents.
2766  For example, scientific papers often have five major sections: the introduction
2767 , observations, results, discussion, and conclusion.
2768  Each of these could be its own separate LyX file, with one 
2769 \begin_inset Quotes eld
2770 \end_inset
2771
2772 master
2773 \begin_inset Quotes erd
2774 \end_inset
2775
2776  file which contains the title, authors, abstract, references, etc., plus
2777  the five included files.
2778  It is important to note that each of these files is a full LyX file which
2779  can be formatted and printed on its own, as well as included in a master
2780  file.
2781  Each of these files must have the same document class, however—don't attempt
2782  to mix book classes with article classes.
2783  You may also include LaTeX files; however, these files must not have their
2784  own preamble (i.
2785 \begin_inset space \thinspace{}
2786 \end_inset
2787
2788 g.
2789 \begin_inset space \space{}
2790 \end_inset
2791
2792 everything up to and including the 
2793 \begin_inset Flex Code
2794 status collapsed
2795
2796 \begin_layout Plain Layout
2797
2798 \backslash
2799 begin{document}
2800 \end_layout
2801
2802 \end_inset
2803
2804  line as well as the 
2805 \begin_inset Flex Code
2806 status collapsed
2807
2808 \begin_layout Plain Layout
2809
2810 \backslash
2811 end{document}
2812 \end_layout
2813
2814 \end_inset
2815
2816  line must be deleted) or else errors will be generated when you try to
2817  make a DVI file.
2818 \end_layout
2819
2820 \begin_layout Standard
2821 LyX allows you to include files quite easily with 
2822 \begin_inset Flex MenuItem
2823 status collapsed
2824
2825 \begin_layout Plain Layout
2826 Insert\SpecialChar \menuseparator
2827 ChiId
2828 \begin_inset space ~
2829 \end_inset
2830
2831 Document
2832 \end_layout
2833
2834 \end_inset
2835
2836 .
2837  When you click on this selection a small box is inserted into the file
2838  at the current cursor location.
2839  Clicking on the box raises a dialog which allows you to select the file
2840  to be included, and the method of its inclusion.
2841  
2842 \end_layout
2843
2844 \begin_layout Standard
2845 The file selection box should by now be obvious.
2846  The three inclusion methods are 
2847 \begin_inset Quotes eld
2848 \end_inset
2849
2850 include
2851 \begin_inset Quotes erd
2852 \end_inset
2853
2854
2855 \begin_inset Quotes eld
2856 \end_inset
2857
2858 input
2859 \begin_inset Quotes erd
2860 \end_inset
2861
2862 , and 
2863 \begin_inset Quotes eld
2864 \end_inset
2865
2866 verbatim
2867 \begin_inset Quotes erd
2868 \end_inset
2869
2870 .
2871  The difference between 
2872 \begin_inset Quotes eld
2873 \end_inset
2874
2875 include
2876 \begin_inset Quotes erd
2877 \end_inset
2878
2879  and 
2880 \begin_inset Quotes eld
2881 \end_inset
2882
2883 input
2884 \begin_inset Quotes erd
2885 \end_inset
2886
2887  is really only meaningful to LaTeXperts, but the practical difference is
2888  that files which are 
2889 \begin_inset Quotes eld
2890 \end_inset
2891
2892 included
2893 \begin_inset Quotes erd
2894 \end_inset
2895
2896  are typeset beginning on a new page, while files which are 
2897 \begin_inset Quotes eld
2898 \end_inset
2899
2900 inputted
2901 \begin_inset Quotes erd
2902 \end_inset
2903
2904  are typeset starting on the current page.
2905 \end_layout
2906
2907 \begin_layout Standard
2908 Generally, the master file is converted into a full LaTeX file before typesettin
2909 g, while the included files are converted to LaTeX files which do not have
2910  all the preamble information.
2911 \end_layout
2912
2913 \begin_layout Standard
2914
2915 \begin_inset Quotes eld
2916 \end_inset
2917
2918 verbatim
2919 \begin_inset Quotes erd
2920 \end_inset
2921
2922  included file allows you to include a file typeset exactly as it appears
2923  in the file, i.
2924 \begin_inset space \thinspace{}
2925 \end_inset
2926
2927 g.
2928 \begin_inset space \space{}
2929 \end_inset
2930
2931 in 
2932 \begin_inset Flex Code
2933 status collapsed
2934
2935 \begin_layout Plain Layout
2936 verbatim
2937 \end_layout
2938
2939 \end_inset
2940
2941  mode, with the characters set in a fixed-width typewriter font.
2942  Normally, spaces in this file are invisible, though two consecutive spaces
2943  are conserved, unlike LyX's normal treatment of spaces.
2944  However, setting the 
2945 \begin_inset Flex MenuItem
2946 status collapsed
2947
2948 \begin_layout Plain Layout
2949 Mark
2950 \begin_inset space ~
2951 \end_inset
2952
2953 spaces
2954 \begin_inset space ~
2955 \end_inset
2956
2957 in
2958 \begin_inset space ~
2959 \end_inset
2960
2961 output
2962 \end_layout
2963
2964 \end_inset
2965
2966  checkbox typesets a mark to unambiguously define the presence of a space.
2967  
2968 \end_layout
2969
2970 \begin_layout Subsection
2971 Cross-References Between Files
2972 \end_layout
2973
2974 \begin_layout Standard
2975 \begin_inset Box Shadowbox
2976 position "t"
2977 hor_pos "c"
2978 has_inner_box 1
2979 inner_pos "t"
2980 use_parbox 0
2981 use_makebox 0
2982 width "100col%"
2983 special "none"
2984 height "1in"
2985 height_special "totalheight"
2986 status open
2987
2988 \begin_layout Plain Layout
2989 This section is somewhat out of date.
2990  Need to describe default master documents and how children are opened when
2991  the master is.
2992  [[FIXME]]
2993 \end_layout
2994
2995 \end_inset
2996
2997
2998 \end_layout
2999
3000 \begin_layout Standard
3001 It is possible to set up cross-references between the different files.
3002  First, open all the files in question: let's call them A and B in a two
3003  file example, where B is included in A.
3004  Let's say you insert a label in A, then want to reference it in B.
3005  Open the cross-reference dialog in whilst in document B, and you can select
3006  the 
3007 \begin_inset Quotes eld
3008 \end_inset
3009
3010 buffer
3011 \begin_inset Quotes erd
3012 \end_inset
3013
3014  to use.
3015 \end_layout
3016
3017 \begin_layout Subsection
3018 Bibliography Lists in all Subdocuments
3019 \end_layout
3020
3021 \begin_layout Standard
3022 \begin_inset Box Frameless
3023 position "t"
3024 hor_pos "c"
3025 has_inner_box 1
3026 inner_pos "t"
3027 use_parbox 0
3028 use_makebox 0
3029 width "100col%"
3030 special "none"
3031 height "1in"
3032 height_special "totalheight"
3033 status open
3034
3035 \begin_layout Plain Layout
3036 This section also needs updating.
3037  There is now material about this on the wiki, and it could be copied here.
3038 \end_layout
3039
3040 \end_inset
3041
3042
3043 \end_layout
3044
3045 \begin_layout Standard
3046 Copy the bibliography list with all entries to all subdocuments and transform
3047  them to a comment.
3048  This way LyX will find the 
3049 \begin_inset Flex Code
3050 status collapsed
3051
3052 \begin_layout Plain Layout
3053 .bib
3054 \end_layout
3055
3056 \end_inset
3057
3058 -files and you can easily insert references without making the bibliography
3059  list visible.
3060 \end_layout
3061
3062 \begin_layout Standard
3063 As the bibliography list is in a comment, LaTeX won't use use it and the
3064  references will look like this: [?], instead of like this: [1].
3065  One solution is to use the LaTeX-package 
3066 \begin_inset Flex Code
3067 status collapsed
3068
3069 \begin_layout Plain Layout
3070 comment
3071 \end_layout
3072
3073 \end_inset
3074
3075  that will only include comments by processing the files separately.
3076  To do this, add in the LaTeX preamble of every subdocument the following:
3077 \end_layout
3078
3079 \begin_layout LyX-Code
3080
3081 \backslash
3082 usepackage{comment}
3083 \end_layout
3084
3085 \begin_layout LyX-Code
3086
3087 \backslash
3088 includecomment{comment}
3089 \end_layout
3090
3091 \begin_layout Standard
3092 See also 
3093 \begin_inset Flex URL
3094 status collapsed
3095
3096 \begin_layout Plain Layout
3097
3098 http://wiki.lyx.org/FAQ/Unsorted#toc31
3099 \end_layout
3100
3101 \end_inset
3102
3103 .
3104 \end_layout
3105
3106 \begin_layout Section
3107
3108 \change_inserted 1414654397 1302963669
3109 LyX Archives
3110 \end_layout
3111
3112 \begin_layout Standard
3113
3114 \change_inserted 1414654397 1302963893
3115 Users sometimes need to be able to 
3116 \begin_inset Quotes eld
3117 \end_inset
3118
3119 bundle
3120 \begin_inset Quotes erd
3121 \end_inset
3122
3123  a LyX file together with all the images (and other files) on which it depends,
3124  either for sending to a publisher or for sharing with a co-author.
3125  LyX 2.0 includes a Python script (written by Enrico Forestieri) that automates
3126  this process.
3127  To use it, you must have either 
3128 \begin_inset Flex Code
3129 status collapsed
3130
3131 \begin_layout Plain Layout
3132
3133 \change_inserted 1414654397 1302963710
3134 zip
3135 \change_unchanged
3136
3137 \end_layout
3138
3139 \end_inset
3140
3141  or 
3142 \begin_inset Flex Code
3143 status collapsed
3144
3145 \begin_layout Plain Layout
3146
3147 \change_inserted 1414654397 1302963714
3148 tar
3149 \change_unchanged
3150
3151 \end_layout
3152
3153 \end_inset
3154
3155  installed on your system.
3156  At present, the script prefers 
3157 \begin_inset Flex Code
3158 status collapsed
3159
3160 \begin_layout Plain Layout
3161
3162 \change_inserted 1414654397 1302963720
3163 tar
3164 \change_unchanged
3165
3166 \end_layout
3167
3168 \end_inset
3169
3170  and, if it is available, then it will compress the archive using 
3171 \begin_inset Flex Code
3172 status collapsed
3173
3174 \begin_layout Plain Layout
3175
3176 \change_inserted 1414654397 1302963726
3177 gzip
3178 \change_unchanged
3179
3180 \end_layout
3181
3182 \end_inset
3183
3184  or 
3185 \begin_inset Flex Code
3186 status collapsed
3187
3188 \begin_layout Plain Layout
3189
3190 \change_inserted 1414654397 1302963730
3191 bunzip2
3192 \change_unchanged
3193
3194 \end_layout
3195
3196 \end_inset
3197
3198 .
3199  (If only 
3200 \begin_inset Flex Code
3201 status collapsed
3202
3203 \begin_layout Plain Layout
3204
3205 \change_inserted 1414654397 1302963866
3206 zip
3207 \change_unchanged
3208
3209 \end_layout
3210
3211 \end_inset
3212
3213  is available, then it will use that.) 
3214 \end_layout
3215
3216 \begin_layout Standard
3217
3218 \change_inserted 1414654397 1302963889
3219 If the appropriate programs are available, then LyX's configuration process
3220  will set the script up to export a `LyX Archive', and this format will
3221  then be available under 
3222 \begin_inset Flex Code
3223 status collapsed
3224
3225 \begin_layout Plain Layout
3226
3227 \change_inserted 1414654397 1302963776
3228 File\SpecialChar \menuseparator
3229 Export
3230 \change_unchanged
3231
3232 \end_layout
3233
3234 \end_inset
3235
3236 .
3237 \end_layout
3238
3239 \begin_layout Section
3240 Fancy Headers and Footers
3241 \end_layout
3242
3243 \begin_layout Standard
3244 The default page layout is rather plain; for an 
3245 \begin_inset Flex Code
3246 status collapsed
3247
3248 \begin_layout Plain Layout
3249 article
3250 \end_layout
3251
3252 \end_inset
3253
3254  document class, all you get is a centered page number at the bottom of
3255  the page.
3256  This document uses KOMA-script's book class, so it appears to be a bit
3257  fancier.
3258  But to really put on a show, you need to set the document page style to
3259  
3260 \begin_inset Quotes eld
3261 \end_inset
3262
3263 fancy
3264 \begin_inset Quotes erd
3265 \end_inset
3266
3267 , as mentioned in the 
3268 \emph on
3269 User Guide
3270 \emph default
3271 .
3272  This section describes the LaTeX code you need to insert in your LaTeX
3273  preamble in order to get the desired effects.
3274 \end_layout
3275
3276 \begin_layout Standard
3277 For more information on fancy headers, see the 
3278 \begin_inset Flex Code
3279 status collapsed
3280
3281 \begin_layout Plain Layout
3282 fancyhdr
3283 \end_layout
3284
3285 \end_inset
3286
3287  package documentation.
3288  (
3289 \begin_inset Flex URL
3290 status collapsed
3291
3292 \begin_layout Plain Layout
3293
3294 http://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
3295 \end_layout
3296
3297 \end_inset
3298
3299 )
3300 \end_layout
3301
3302 \begin_layout Standard
3303 The page header is divided into three fields, not surprisingly labeled 
3304 \begin_inset Quotes eld
3305 \end_inset
3306
3307 left
3308 \begin_inset Quotes erd
3309 \end_inset
3310
3311
3312 \begin_inset Quotes eld
3313 \end_inset
3314
3315 center
3316 \begin_inset Quotes erd
3317 \end_inset
3318
3319 , and 
3320 \begin_inset Quotes eld
3321 \end_inset
3322
3323 right
3324 \begin_inset Quotes erd
3325 \end_inset
3326
3327 .
3328  The footer is also divided into these three fields.
3329  The LaTeX commands to set these fields in the simplest manner are 
3330 \begin_inset Flex Code
3331 status collapsed
3332
3333 \begin_layout Plain Layout
3334
3335 \backslash
3336 lhead
3337 \end_layout
3338
3339 \end_inset
3340
3341
3342 \begin_inset Flex Code
3343 status collapsed
3344
3345 \begin_layout Plain Layout
3346
3347 \backslash
3348 chead
3349 \end_layout
3350
3351 \end_inset
3352
3353
3354 \begin_inset Flex Code
3355 status collapsed
3356
3357 \begin_layout Plain Layout
3358
3359 \backslash
3360 rhead
3361 \end_layout
3362
3363 \end_inset
3364
3365
3366 \begin_inset Flex Code
3367 status collapsed
3368
3369 \begin_layout Plain Layout
3370
3371 \backslash
3372 lfoot
3373 \end_layout
3374
3375 \end_inset
3376
3377 , etc.
3378  Suppose you wish to put your name in the upper left hand corner of each
3379  page.
3380  Simply insert the following command in the preamble: 
3381 \end_layout
3382
3383 \begin_layout Standard
3384
3385 \family typewriter
3386
3387 \backslash
3388 lhead{John Q.
3389  DocWriter}
3390 \end_layout
3391
3392 \begin_layout Standard
3393 You will now see your name in the upper left.
3394  If a field has a default entry that you would like to get rid of (often
3395  the page number appears in the central footer, simply include a command
3396  with a blank argument, e.
3397 \begin_inset space \thinspace{}
3398 \end_inset
3399
3400 g.:
3401 \end_layout
3402
3403 \begin_layout Standard
3404
3405 \family typewriter
3406
3407 \backslash
3408 cfoot{}
3409 \end_layout
3410
3411 \begin_layout Standard
3412 Let's get really fancy: lets put the section number with the word 
3413 \begin_inset Quotes eld
3414 \end_inset
3415
3416 Section
3417 \begin_inset Quotes erd
3418 \end_inset
3419
3420  (e.
3421 \begin_inset space \thinspace{}
3422 \end_inset
3423
3424 g.
3425 \begin_inset space \space{}
3426 \end_inset
3427
3428 Section 3) in the upper left, the page number (e.
3429 \begin_inset space \thinspace{}
3430 \end_inset
3431
3432 g.
3433 \begin_inset space \space{}
3434 \end_inset
3435
3436 Page 4) in the upper right, your name in the lower left, and the date in
3437  the lower right.
3438  The following commands should now appear in the preamble:
3439 \end_layout
3440
3441 \begin_layout Standard
3442
3443 \family typewriter
3444
3445 \backslash
3446 lhead{Section 
3447 \backslash
3448 thesection}
3449 \end_layout
3450
3451 \begin_layout Standard
3452
3453 \family typewriter
3454
3455 \backslash
3456 chead{}
3457 \end_layout
3458
3459 \begin_layout Standard
3460
3461 \family typewriter
3462
3463 \backslash
3464 rhead{Page 
3465 \backslash
3466 thepage}
3467 \end_layout
3468
3469 \begin_layout Standard
3470
3471 \family typewriter
3472
3473 \backslash
3474 lfoot{John Q.
3475  DocWriter}
3476 \end_layout
3477
3478 \begin_layout Standard
3479
3480 \family typewriter
3481
3482 \backslash
3483 cfoot{}
3484 \end_layout
3485
3486 \begin_layout Standard
3487
3488 \family typewriter
3489
3490 \backslash
3491 rfoot{
3492 \backslash
3493 today}
3494 \end_layout
3495
3496 \begin_layout Standard
3497 The commands 
3498 \begin_inset Flex Code
3499 status collapsed
3500
3501 \begin_layout Plain Layout
3502
3503 \backslash
3504 thesection
3505 \end_layout
3506
3507 \end_inset
3508
3509  and 
3510 \begin_inset Flex Code
3511 status collapsed
3512
3513 \begin_layout Plain Layout
3514
3515 \backslash
3516 thepage
3517 \end_layout
3518
3519 \end_inset
3520
3521  access LaTeX's section and page counters, and so print out the current
3522  section and page numbers.
3523  
3524 \begin_inset Flex Code
3525 status collapsed
3526
3527 \begin_layout Plain Layout
3528
3529 \backslash
3530 today
3531 \end_layout
3532
3533 \end_inset
3534
3535  simply prints out today's date.
3536 \end_layout
3537
3538 \begin_layout Standard
3539 The thicknesses of the horizontal rules drawn beneath the header and above
3540  the footer can also be modified.
3541  If you don't want one of the rules, set its thickness to 0.
3542  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
3543  Use commands
3544 \family typewriter
3545  
3546 \family default
3547 like 
3548 \begin_inset Flex Code
3549 status collapsed
3550
3551 \begin_layout Plain Layout
3552
3553 \backslash
3554 renewcommand{
3555 \backslash
3556 headrulewidth}{0.4pt}
3557 \end_layout
3558
3559 \end_inset
3560
3561  and 
3562 \begin_inset Flex Code
3563 status collapsed
3564
3565 \begin_layout Plain Layout
3566
3567 \backslash
3568 renewcommand{
3569 \backslash
3570 footrulewidth}{0.4pt}
3571 \end_layout
3572
3573 \end_inset
3574
3575  to set the thicknesses.
3576 \end_layout
3577
3578 \begin_layout Standard
3579 You can switch the header/footer settings on and off for individual pages
3580  using commands like 
3581 \begin_inset Flex Code
3582 status collapsed
3583
3584 \begin_layout Plain Layout
3585
3586 \backslash
3587 thispagestyle{empty}
3588 \end_layout
3589
3590 \end_inset
3591
3592
3593 \begin_inset Flex Code
3594 status collapsed
3595
3596 \begin_layout Plain Layout
3597
3598 \backslash
3599 thispagestyle{plain}
3600 \end_layout
3601
3602 \end_inset
3603
3604 , and 
3605 \begin_inset Flex Code
3606 status collapsed
3607
3608 \begin_layout Plain Layout
3609
3610 \backslash
3611 thispagestyle{fancy}
3612 \end_layout
3613
3614 \end_inset
3615
3616 .
3617  Simply insert them in the text on the page you want changed and mark them
3618  as TeX code.
3619  In fact, title pages are marked as plain by default, while following pages
3620  are marked fancy when using the global fancy setting.
3621 \end_layout
3622
3623 \begin_layout Standard
3624 As a final example, it is possible to include an image in the header or
3625  footer.
3626  Suppose you want to put a company logo in the upper lefthand corner.
3627  You might try something like
3628 \end_layout
3629
3630 \begin_layout Standard
3631
3632 \family typewriter
3633
3634 \backslash
3635 lhead{
3636 \backslash
3637 resizebox{1in}{!}{
3638 \backslash
3639 includegraphics{logo.eps}}}
3640 \end_layout
3641
3642 \begin_layout Standard
3643 \noindent
3644 (you may need to preface this with 
3645 \begin_inset Flex Code
3646 status collapsed
3647
3648 \begin_layout Plain Layout
3649 \noindent
3650
3651 \backslash
3652 usepackage{graphics}
3653 \end_layout
3654
3655 \end_inset
3656
3657  if you don't include graphics elsewhere in your document).
3658 \end_layout
3659
3660 \begin_layout Section
3661 Itemize Bullet Selection
3662 \begin_inset CommandInset label
3663 LatexCommand label
3664 name "sec:bullet"
3665
3666 \end_inset
3667
3668
3669 \end_layout
3670
3671 \begin_layout Standard
3672 by
3673 \noun on
3674  Allan Rae
3675 \end_layout
3676
3677 \begin_layout Subsection
3678 Introduction
3679 \end_layout
3680
3681 \begin_layout Standard
3682 LyX provides 216 bullet shapes that can be accessed from a simple dialog.
3683  Using this dialog you can easily specify what bullet shape to use at each
3684  level of an itemized list.
3685  These settings are document-wide so you won't be able to specify different
3686  sets of bullets for different paragraphs.
3687 \begin_inset Foot
3688 status collapsed
3689
3690 \begin_layout Plain Layout
3691 Well, actually you can but you'll have to do it by hand.
3692 \end_layout
3693
3694 \end_inset
3695
3696
3697 \end_layout
3698
3699 \begin_layout Subsection
3700 How it looks
3701 \end_layout
3702
3703 \begin_layout Standard
3704 Open the dialog by selecting the 
3705 \begin_inset Flex MenuItem
3706 status collapsed
3707
3708 \begin_layout Plain Layout
3709 Document\SpecialChar \menuseparator
3710 Settings
3711 \end_layout
3712
3713 \end_inset
3714
3715  menu item and then select the 
3716 \begin_inset Flex MenuItem
3717 status collapsed
3718
3719 \begin_layout Plain Layout
3720 Bullets
3721 \end_layout
3722
3723 \end_inset
3724
3725  tab.
3726 \end_layout
3727
3728 \begin_layout Standard
3729 The dialog provides you with a table of bullet shapes.
3730  A column of buttons on the left of the table provides access to the six
3731  different panels of bullet shapes.
3732  The row of buttons across the top is used to select which bullet depth
3733  you are changing.
3734  A text entry under the table shows the currently selected bullet shape's
3735  LaTeX equivalent and this can be edited if desired.
3736  If you do modify the text you will also need to specify any needed packages
3737  in the LaTeX preamble.
3738 \end_layout
3739
3740 \begin_layout Standard
3741 The six panels are divided up by the packages they require.
3742  The following table shows the mappings from button name to LaTeX packages.
3743 \end_layout
3744
3745 \begin_layout Standard
3746 \align center
3747 \begin_inset Tabular
3748 <lyxtabular version="3" rows="7" columns="2">
3749 <features tabularvalignment="middle">
3750 <column alignment="center" valignment="top" width="0pt">
3751 <column alignment="center" valignment="top" width="0pt">
3752 <row>
3753 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3754 \begin_inset Text
3755
3756 \begin_layout Plain Layout
3757
3758 \family roman
3759 \series medium
3760 \shape up
3761 \size normal
3762 \emph off
3763 \bar no
3764 \noun off
3765 \color none
3766 Button
3767 \end_layout
3768
3769 \end_inset
3770 </cell>
3771 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3772 \begin_inset Text
3773
3774 \begin_layout Plain Layout
3775
3776 \family roman
3777 \series medium
3778 \shape up
3779 \size normal
3780 \emph off
3781 \bar no
3782 \noun off
3783 \color none
3784 Packages Required
3785 \end_layout
3786
3787 \end_inset
3788 </cell>
3789 </row>
3790 <row>
3791 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3792 \begin_inset Text
3793
3794 \begin_layout Plain Layout
3795
3796 \family sans
3797 \series medium
3798 \shape up
3799 \size normal
3800 \emph off
3801 \bar no
3802 \noun off
3803 \color none
3804 Standard
3805 \end_layout
3806
3807 \end_inset
3808 </cell>
3809 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3810 \begin_inset Text
3811
3812 \begin_layout Plain Layout
3813
3814 \series medium
3815 \shape up
3816 \size normal
3817 \emph off
3818 \bar no
3819 \noun off
3820 \color none
3821 base LaTeX
3822 \end_layout
3823
3824 \end_inset
3825 </cell>
3826 </row>
3827 <row>
3828 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3829 \begin_inset Text
3830
3831 \begin_layout Plain Layout
3832
3833 \family sans
3834 \series medium
3835 \shape up
3836 \size normal
3837 \emph off
3838 \bar no
3839 \noun off
3840 \color none
3841 Maths
3842 \end_layout
3843
3844 \end_inset
3845 </cell>
3846 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3847 \begin_inset Text
3848
3849 \begin_layout Plain Layout
3850
3851 \family typewriter
3852 \series medium
3853 \shape up
3854 \size normal
3855 \emph off
3856 \bar no
3857 \noun off
3858 \color none
3859 amssymb.sty
3860 \end_layout
3861
3862 \end_inset
3863 </cell>
3864 </row>
3865 <row>
3866 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3867 \begin_inset Text
3868
3869 \begin_layout Plain Layout
3870
3871 \family sans
3872 \series medium
3873 \shape up
3874 \size normal
3875 \emph off
3876 \bar no
3877 \noun off
3878 \color none
3879 Ding1
3880 \end_layout
3881
3882 \end_inset
3883 </cell>
3884 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3885 \begin_inset Text
3886
3887 \begin_layout Plain Layout
3888
3889 \family typewriter
3890 \series medium
3891 \shape up
3892 \size normal
3893 \emph off
3894 \bar no
3895 \noun off
3896 \color none
3897 pifont.sty
3898 \end_layout
3899
3900 \end_inset
3901 </cell>
3902 </row>
3903 <row>
3904 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3905 \begin_inset Text
3906
3907 \begin_layout Plain Layout
3908
3909 \family sans
3910 \series medium
3911 \shape up
3912 \size normal
3913 \emph off
3914 \bar no
3915 \noun off
3916 \color none
3917 Ding2
3918 \end_layout
3919
3920 \end_inset
3921 </cell>
3922 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3923 \begin_inset Text
3924
3925 \begin_layout Plain Layout
3926
3927 \family typewriter
3928 \series medium
3929 \shape up
3930 \size normal
3931 \emph off
3932 \bar no
3933 \noun off
3934 \color none
3935 pifont.sty
3936 \end_layout
3937
3938 \end_inset
3939 </cell>
3940 </row>
3941 <row>
3942 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
3943 \begin_inset Text
3944
3945 \begin_layout Plain Layout
3946
3947 \family sans
3948 \series medium
3949 \shape up
3950 \size normal
3951 \emph off
3952 \bar no
3953 \noun off
3954 \color none
3955 Ding3
3956 \end_layout
3957
3958 \end_inset
3959 </cell>
3960 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
3961 \begin_inset Text
3962
3963 \begin_layout Plain Layout
3964
3965 \family typewriter
3966 \series medium
3967 \shape up
3968 \size normal
3969 \emph off
3970 \bar no
3971 \noun off
3972 \color none
3973 pifont.sty
3974 \end_layout
3975
3976 \end_inset
3977 </cell>
3978 </row>
3979 <row>
3980 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
3981 \begin_inset Text
3982
3983 \begin_layout Plain Layout
3984
3985 \family sans
3986 \series medium
3987 \shape up
3988 \size normal
3989 \emph off
3990 \bar no
3991 \noun off
3992 \color none
3993 Ding4
3994 \end_layout
3995
3996 \end_inset
3997 </cell>
3998 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
3999 \begin_inset Text
4000
4001 \begin_layout Plain Layout
4002
4003 \family typewriter
4004 \series medium
4005 \shape up
4006 \size normal
4007 \emph off
4008 \bar no
4009 \noun off
4010 \color none
4011 pifont.sty
4012 \end_layout
4013
4014 \end_inset
4015 </cell>
4016 </row>
4017 </lyxtabular>
4018
4019 \end_inset
4020
4021
4022 \end_layout
4023
4024 \begin_layout Standard
4025 LyX doesn't stop you using bullets from packages you don't have.
4026  If you get errors from LaTeX when you try to view or print the file, then
4027  it is likely you are missing a package.
4028 \begin_inset Foot
4029 status collapsed
4030
4031 \begin_layout Plain Layout
4032 LyX doesn't restrict your use since you may be editing locally and exporting
4033  elsewhere.
4034 \end_layout
4035
4036 \end_inset
4037
4038
4039 \end_layout
4040
4041 \begin_layout Subsection
4042 How to use it
4043 \end_layout
4044
4045 \begin_layout Standard
4046 Select which bullet depth you want to change then select the bullet shape
4047  and size.
4048  Any changes will not be visible in LyX, but are visible when viewing the
4049  document.
4050 \end_layout
4051
4052 \begin_layout Standard
4053 You can reset a bullet shape to the default simply by clicking your right
4054  mouse button on the appropriate bullet depth button.
4055 \begin_inset Foot
4056 status collapsed
4057
4058 \begin_layout Plain Layout
4059 If you 
4060 \emph on
4061 really
4062 \emph default
4063  want to have multiple sets of paragraphs with different sets of bullets
4064  in each, then you're going to have to get your hands dirty with TeX code.
4065  The bullet selection dialog can help though because it provides you with
4066  the LaTeX code for a wide range of bullet shapes.
4067  To make your own custom paragraphs you have the following options:
4068 \end_layout
4069
4070 \begin_layout Plain Layout
4071 \begin_inset ERT
4072 status open
4073
4074 \begin_layout Plain Layout
4075
4076
4077 \backslash
4078 let
4079 \backslash
4080 savelabelitemi=
4081 \backslash
4082 labelitemi
4083 \end_layout
4084
4085 \end_inset
4086
4087
4088 \end_layout
4089
4090 \begin_layout Plain Layout
4091 \begin_inset ERT
4092 status open
4093
4094 \begin_layout Plain Layout
4095
4096
4097 \backslash
4098 renewcommand
4099 \backslash
4100 labelitemi[0]{
4101 \backslash
4102 small
4103 \backslash
4104 (
4105 \backslash
4106 sharp
4107 \backslash
4108 )}
4109 \end_layout
4110
4111 \end_inset
4112
4113
4114 \end_layout
4115
4116 \begin_layout Itemize
4117 Use the LaTeX command 
4118 \begin_inset Flex Code
4119 status collapsed
4120
4121 \begin_layout Plain Layout
4122
4123 \backslash
4124 renewcommand{}{}
4125 \end_layout
4126
4127 \end_inset
4128
4129  to specify a new bullet shape for a given depth.
4130  You'll also need to save the current bullet shape so you can restore it
4131  again afterwards.
4132  In this itemized list the following LaTeX code was used to change the bullet
4133  used for the first depth.
4134 \end_layout
4135
4136 \begin_deeper
4137 \begin_layout LyX-Code
4138
4139 \backslash
4140 let
4141 \backslash
4142 savelabelitemi=
4143 \backslash
4144 labelitemi 
4145 \end_layout
4146
4147 \begin_layout LyX-Code
4148
4149 \backslash
4150 renewcommand
4151 \backslash
4152 labelitemi[0]{
4153 \backslash
4154 small
4155 \backslash
4156 (
4157 \backslash
4158 sharp
4159 \backslash
4160 )}
4161 \end_layout
4162
4163 \end_deeper
4164 \begin_layout Itemize
4165 Note that the itemize depth is specified in Roman numerals as part of the
4166  
4167 \family typewriter
4168
4169 \backslash
4170 labelitem
4171 \family default
4172  command.
4173 \end_layout
4174
4175 \begin_layout Itemize
4176 \begin_inset ERT
4177 status open
4178
4179 \begin_layout Plain Layout
4180
4181 [
4182 \backslash
4183 (
4184 \backslash
4185 star
4186 \backslash
4187 )]
4188 \end_layout
4189
4190 \end_inset
4191
4192  Specify each individual entry by starting each item with the bullet shape
4193  enclosed in square brackets and set as 
4194 \begin_inset Flex MenuItem
4195 status collapsed
4196
4197 \begin_layout Plain Layout
4198 TeX Code
4199 \end_layout
4200
4201 \end_inset
4202
4203 .
4204  For example, this item was started with 
4205 \begin_inset Flex Code
4206 status collapsed
4207
4208 \begin_layout Plain Layout
4209 [
4210 \backslash
4211 (
4212 \backslash
4213 star
4214 \backslash
4215 )]
4216 \end_layout
4217
4218 \end_inset
4219
4220 .
4221 \end_layout
4222
4223 \begin_layout Plain Layout
4224 \begin_inset ERT
4225 status open
4226
4227 \begin_layout Plain Layout
4228
4229
4230 \backslash
4231 renewcommand
4232 \backslash
4233 labelitemi[0]{
4234 \backslash
4235 savelabelitemi}
4236 \end_layout
4237
4238 \end_inset
4239
4240
4241 \end_layout
4242
4243 \begin_layout Plain Layout
4244 You'll also need to revert the labelitem back to its previous setting for
4245  the global bullet shape settings to remain in effect.
4246  The way used here was:
4247 \end_layout
4248
4249 \begin_layout LyX-Code
4250
4251 \backslash
4252 renewcommand
4253 \backslash
4254 labelitemi[0]{
4255 \backslash
4256 savelabelitemi}
4257 \end_layout
4258
4259 \end_inset
4260
4261
4262 \end_layout
4263
4264 \begin_layout Chapter
4265 LyX and the World Wide Web
4266 \end_layout
4267
4268 \begin_layout Standard
4269 LyX has long supported the export of documents to various web-friendly formats,
4270  such as HTML.
4271  Before verson 2.0, however, HTML export was always accomplished by the use
4272  of external converters.
4273 \begin_inset Foot
4274 status collapsed
4275
4276 \begin_layout Plain Layout
4277 For details on the use of external converters with LyX, see the 
4278 \emph on
4279 Converters
4280 \emph default
4281  section of the Customization manual.
4282 \end_layout
4283
4284 \end_inset
4285
4286  These fall into two large groups: there are converters that use LaTeX as
4287  an intermediate format, such as 
4288 \begin_inset Flex Code
4289 status collapsed
4290
4291 \begin_layout Plain Layout
4292 htlatex
4293 \end_layout
4294
4295 \end_inset
4296
4297
4298 \begin_inset Flex Code
4299 status collapsed
4300
4301 \begin_layout Plain Layout
4302 html2latex
4303 \end_layout
4304
4305 \end_inset
4306
4307 , and 
4308 \begin_inset Flex Code
4309 status collapsed
4310
4311 \begin_layout Plain Layout
4312 plastex
4313 \end_layout
4314
4315 \end_inset
4316
4317 , relying upon LyX to produce the LaTeX; and there is a converter that works
4318  directly on LyX files, 
4319 \begin_inset Flex Code
4320 status collapsed
4321
4322 \begin_layout Plain Layout
4323 eLyXer
4324 \end_layout
4325
4326 \end_inset
4327
4328 .
4329  All of these have different advantages and disadvantages.
4330  
4331 \end_layout
4332
4333 \begin_layout Standard
4334 The LaTeX-based converters have the advantage that, in principle, they know
4335  everything about the exported document that LaTeX does.
4336  Such converters do not care, for example, if a certain block of code was
4337  produced by LyX or was Evil Red Text.
4338  These converters know about 
4339 \begin_inset Flex Code
4340 status collapsed
4341
4342 \begin_layout Plain Layout
4343 aux
4344 \end_layout
4345
4346 \end_inset
4347
4348  files, counters, and references, and can often make use of the 
4349 \begin_inset Flex Code
4350 status collapsed
4351
4352 \begin_layout Plain Layout
4353 bbl
4354 \end_layout
4355
4356 \end_inset
4357
4358  files generated by BibTeX.
4359  On the other hand, LaTeX is a very hard language to parse---it is sometimes
4360  said that only TeX itself understands TeX---and LaTeX-based converters
4361  will often choke on what seem to be quite simple constructs; complex ones
4362  can throw them completely, and as of this writing, for example, the 
4363 \emph on
4364 Embedded Objects
4365 \emph default
4366  manual will not export with 
4367 \begin_inset Flex Code
4368 status collapsed
4369
4370 \begin_layout Plain Layout
4371 htlatex
4372 \end_layout
4373
4374 \end_inset
4375
4376 , though the others will.
4377  The other issue concerns how math is handled.
4378  These converters typically convert the formulae into little pictures that
4379  are then linked from the HTML document.
4380  Since these are actually generated by LaTeX, they are accurate.
4381  But they do not scale well, and just getting them to look as if they are
4382  actually meant to be in your document---so that the font sizes seem to
4383  be roughly the same---can be a challenge.
4384 \end_layout
4385
4386 \begin_layout Standard
4387 Alex Fernandez's 
4388 \begin_inset Flex Code
4389 status collapsed
4390
4391 \begin_layout Plain Layout
4392 eLyXer
4393 \end_layout
4394
4395 \end_inset
4396
4397  (
4398 \begin_inset CommandInset href
4399 LatexCommand href
4400 name "http://elyxer.nongnu.org/"
4401 target "http://elyxer.nongnu.org/"
4402
4403 \end_inset
4404
4405 ) solves some of these problems.
4406  In particular, the formulae it produces scale perfectly, since it renders
4407  math using a combination of HTML and CSS rather than converting the formulae
4408  to images.
4409  But even moderately complex formula are rendered less well than with 
4410 \begin_inset Flex Code
4411 status collapsed
4412
4413 \begin_layout Plain Layout
4414 htlatex
4415 \end_layout
4416
4417 \end_inset
4418
4419 ; this reflects the limitations of HTML.
4420 \begin_inset Foot
4421 status collapsed
4422
4423 \begin_layout Plain Layout
4424 That said, 
4425 \begin_inset Flex Code
4426 status collapsed
4427
4428 \begin_layout Plain Layout
4429 eLyXer
4430 \end_layout
4431
4432 \end_inset
4433
4434  can also use jsMath and MathJax for equations, but this setting is only
4435  available globally and requires one to have access to a server that runs
4436  the backend.
4437 \end_layout
4438
4439 \end_inset
4440
4441  More importantly (as of version 1.1.1, at least), 
4442 \begin_inset Flex Code
4443 status collapsed
4444
4445 \begin_layout Plain Layout
4446 eLyXer
4447 \end_layout
4448
4449 \end_inset
4450
4451  has limited support for math macros and no support for user-defined paragraph
4452  or character styles.
4453  These limitations make 
4454 \begin_inset Flex Code
4455 status collapsed
4456
4457 \begin_layout Plain Layout
4458 eLyXer
4459 \end_layout
4460
4461 \end_inset
4462
4463  unsuitable for many of the documents LyX users produce.
4464  In principle, of course, these problems could be solved, but the LyX developers
4465  have decided to follow a different path and have made LyX itself capable
4466  of writing XHTML, just as it is capable of writing LaTeX, DocBook, and
4467  plaintext.
4468 \end_layout
4469
4470 \begin_layout Standard
4471 As of this writing, XHTML output remains under development and should probably
4472  be regarded as 
4473 \begin_inset Quotes eld
4474 \end_inset
4475
4476 experimental
4477 \begin_inset Quotes erd
4478 \end_inset
4479
4480 .
4481 \begin_inset Foot
4482 status collapsed
4483
4484 \begin_layout Plain Layout
4485 The file 
4486 \begin_inset Flex Code
4487 status collapsed
4488
4489 \begin_layout Plain Layout
4490 development/HTML.notes
4491 \end_layout
4492
4493 \end_inset
4494
4495 , which can be found in the LyX source tree or 
4496 \begin_inset CommandInset href
4497 LatexCommand href
4498 name "accessed online"
4499 target "http://www.lyx.org/trac/browser/lyx-devel/trunk/development/HTML/HTML.notes"
4500
4501 \end_inset
4502
4503 , usually contains up-to-date information about the state of XHTML output.
4504  See also the list of XHTML bugs on 
4505 \begin_inset CommandInset href
4506 LatexCommand href
4507 name "the bug tracker"
4508 target "http://www.lyx.org/trac/query?status=reopened&status=assigned&status=new&max=0&component=xhtml+export&order=id&col=id&col=summary&col=reporter&col=keywords&keywords=%21%7Efixedintrunk&desc=1"
4509
4510 \end_inset
4511
4512 .
4513 \end_layout
4514
4515 \end_inset
4516
4517  Still, the developers have chosen this approach because it has several
4518  potential advantages over the other two.
4519 \end_layout
4520
4521 \begin_layout Standard
4522 These advantages are primarily due to the fact that the XHTML output routines,
4523  since they are part of LyX, know everything LyX knows about the document
4524  being exported.
4525 \begin_inset Foot
4526 status collapsed
4527
4528 \begin_layout Plain Layout
4529 Another advantage is that, since these routines are internal to LyX, they
4530  are immune to changes in LyX's file format, or to changes in the semantics
4531  of existing insets.
4532 \end_layout
4533
4534 \end_inset
4535
4536  So they know about the table of contents (as displayed in the outline),
4537  about the counters associated with different paragraph styles, and about
4538  user-defined styles.
4539  The XHTML output routines know what LyX knows about internationalization,
4540  too, so they will output 
4541 \begin_inset Quotes eld
4542 \end_inset
4543
4544 Chapter 1
4545 \begin_inset Quotes erd
4546 \end_inset
4547
4548  or 
4549 \begin_inset Quotes eld
4550 \end_inset
4551
4552
4553 \lang ngerman
4554 Kapitel
4555 \lang english
4556  1
4557 \begin_inset Quotes erd
4558 \end_inset
4559
4560 , depending upon the language in effect at the time.
4561  
4562 \end_layout
4563
4564 \begin_layout Standard
4565 Quite generally, the output routines know what LyX knows about document
4566  layout, that is, about how the document is to be rendered on screen.
4567  We use this information when we output the document as XHTML.
4568  In particular, LyX 
4569 \emph on
4570 automatically
4571 \emph default
4572  generates CSS style information corresponding to the layout information
4573  it uses to render the document on screen: if section headings are supposed
4574  to be sans-serif and bold as seen in LyX, then (by default) they will be
4575  sans-serif and bold when viewed in a web browser, too.
4576  And this is true not just for pre-defined styles, like Section, but for
4577  any style, including user-defined styles.
4578  Indeed, the XHTML output routines make no distinction between user-defined
4579  paragraph and character styles and LyX's own pre-defined styles: in each
4580  case, everything LyX knows about the styles is contained in the layout
4581  files.
4582  And much the same is true as regards pre-defined textual insets, such as
4583  footnotes, and various custom insets.
4584  
4585 \end_layout
4586
4587 \begin_layout Standard
4588 The result is that XHTML output can be customized and extended in exactly
4589  the same way LaTeX output can be customized and extended: through layout
4590  files and modules.
4591  See chapter five of the 
4592 \emph on
4593 Customization 
4594 \emph default
4595 manual for the details.
4596 \end_layout
4597
4598 \begin_layout Standard
4599 The remainder of this chapter contains more detailed information on XHTML
4600  output, its limitations, and ways to work around those limitations.
4601 \end_layout
4602
4603 \begin_layout Section
4604 Math Output in XHTML
4605 \end_layout
4606
4607 \begin_layout Standard
4608 LyX offers four choices for how math is rendered.
4609  These have various advantages and disadvantages:
4610 \end_layout
4611
4612 \begin_layout Itemize
4613 MathML
4614 \begin_inset Newline newline
4615 \end_inset
4616
4617 MathML is a dialect of XML designed specifically for mathematics on the
4618  web, and it typically renders very well in browsers that support it.
4619  The disadvantage is that not all browsers support MathML, and support is
4620  not complete even in the Gecko-based browsers, such as Firefox.
4621 \begin_inset Newline newline
4622 \end_inset
4623
4624 If LyX is unable to render a formula as MathML---for example, if the formula
4625  uses the 
4626 \begin_inset Flex Code
4627 status collapsed
4628
4629 \begin_layout Plain Layout
4630 xymatrix
4631 \end_layout
4632
4633 \end_inset
4634
4635  package or ERT---then it will instead output the formula as an image.
4636  
4637 \end_layout
4638
4639 \begin_layout Itemize
4640 HTML
4641 \begin_inset Newline newline
4642 \end_inset
4643
4644 As mentioned above, 
4645 \begin_inset Flex Code
4646 status collapsed
4647
4648 \begin_layout Plain Layout
4649 elyxer
4650 \end_layout
4651
4652 \end_inset
4653
4654  outputs math as HTML, styled by CSS.
4655 \begin_inset Foot
4656 status collapsed
4657
4658 \begin_layout Plain Layout
4659 LyX has borrowed some of the CSS for its HTML output from 
4660 \begin_inset Flex Code
4661 status collapsed
4662
4663 \begin_layout Plain Layout
4664 elyxer
4665 \end_layout
4666
4667 \end_inset
4668
4669 .
4670 \end_layout
4671
4672 \end_inset
4673
4674  For simple formulae, this can work quite well, though with more complicated
4675  formulae it tends to break down.
4676  Still, this method has the advantage that it is very widely supported and
4677  so it may be appropriate for documents that contain only a little, fairly
4678  simple math.
4679 \begin_inset Newline newline
4680 \end_inset
4681
4682 If Lyx is unable to render a formula as HTML---for example, if the formula
4683  uses the 
4684 \begin_inset Flex Code
4685 status collapsed
4686
4687 \begin_layout Plain Layout
4688 xymatrix
4689 \end_layout
4690
4691 \end_inset
4692
4693  package or ERT---then it will instead output the formula as an image.
4694  
4695 \end_layout
4696
4697 \begin_layout Itemize
4698 Images
4699 \begin_inset Newline newline
4700 \end_inset
4701
4702 Like 
4703 \begin_inset Flex Code
4704 status collapsed
4705
4706 \begin_layout Plain Layout
4707 htlatex
4708 \end_layout
4709
4710 \end_inset
4711
4712 , LyX will output formulae as images, the very same images, in fact, that
4713  are used for instant preview.
4714 \begin_inset Foot
4715 status collapsed
4716
4717 \begin_layout Plain Layout
4718 Instant preview does 
4719 \emph on
4720 not 
4721 \emph default
4722 have to be on for images to be output, however.
4723 \end_layout
4724
4725 \end_inset
4726
4727  The advantage to this method is that the images are simply generated by
4728  LaTeX, so they are very accurate.
4729  The disadvantage, as mentioned earlier, is that these are bitmapped images,
4730  so they do not scale terribly well, and one cannot copy them, etc.
4731  (As of this writing, there are also problems about equation numbering.
4732  See 
4733 \begin_inset CommandInset href
4734 LatexCommand href
4735 name "bug 6894"
4736 target "http://www.lyx.org/trac/ticket/6894"
4737
4738 \end_inset
4739
4740 .)
4741 \begin_inset Newline newline
4742 \end_inset
4743
4744 The size of the images can be controlled by setting the 
4745 \begin_inset Quotes eld
4746 \end_inset
4747
4748 Math Images Scaling
4749 \begin_inset Quotes erd
4750 \end_inset
4751
4752  parameter under 
4753 \begin_inset Flex MenuItem
4754 status collapsed
4755
4756 \begin_layout Plain Layout
4757 Document\SpecialChar \menuseparator
4758 Settings\SpecialChar \menuseparator
4759 Output
4760 \end_layout
4761
4762 \end_inset
4763
4764 .
4765 \begin_inset Foot
4766 status collapsed
4767
4768 \begin_layout Plain Layout
4769 For those who want to know, this controls the resolution of the image in
4770  dots per inch and is based upon a default of 75 dpi.
4771 \end_layout
4772
4773 \end_inset
4774
4775
4776 \begin_inset Newline newline
4777 \end_inset
4778
4779 If LyX for some reason fails to create an image for a formula (e.g., if a
4780  required LaTeX package is not installed), then it will fall back to outputing
4781  the raw LaTeX.
4782 \end_layout
4783
4784 \begin_layout Itemize
4785 LaTeX
4786 \begin_inset Newline newline
4787 \end_inset
4788
4789 Finally, LyX will happily output math as LaTeX.
4790  As well as being the output of last resort, this method can be used with
4791  such tools as 
4792 \begin_inset CommandInset href
4793 LatexCommand href
4794 name "jsMath"
4795 target "http://www.math.union.edu/~dpvc/jsMath/"
4796
4797 \end_inset
4798
4799 , which uses JavaScript to render LaTeX embedded in HTML documents.
4800  LyX wraps the LaTeX in either a 
4801 \begin_inset Flex Code
4802 status collapsed
4803
4804 \begin_layout Plain Layout
4805 span
4806 \end_layout
4807
4808 \end_inset
4809
4810  (for inline formulas) or 
4811 \begin_inset Flex Code
4812 status collapsed
4813
4814 \begin_layout Plain Layout
4815 div
4816 \end_layout
4817
4818 \end_inset
4819
4820  (for displayed formulas) with 
4821 \begin_inset Flex Code
4822 status collapsed
4823
4824 \begin_layout Plain Layout
4825 class='math'
4826 \end_layout
4827
4828 \end_inset
4829
4830 , as is required for jsMath.
4831 \end_layout
4832
4833 \begin_layout Standard
4834 One of these output methods must be selected under 
4835 \begin_inset Flex MenuItem
4836 status collapsed
4837
4838 \begin_layout Plain Layout
4839 Document\SpecialChar \menuseparator
4840 Settings\SpecialChar \menuseparator
4841 Output
4842 \end_layout
4843
4844 \end_inset
4845
4846 .
4847  By default, LyX outputs MathML.
4848  This is a document-wide setting, therefore.
4849 \end_layout
4850
4851 \begin_layout Standard
4852 Eventually, LyX will offer the user the option to select an alternate output
4853  method for a particular inset, say, one that isn't being rendered very
4854  well by MathML.
4855 \begin_inset Foot
4856 status collapsed
4857
4858 \begin_layout Plain Layout
4859 That said, since LyX falls back to images if the inset contains ERT, then
4860  one can force output as an image by putting some harmless ERT into the
4861  math, for example: 
4862 \begin_inset Formula $a=b\relax$
4863 \end_inset
4864
4865 .
4866 \end_layout
4867
4868 \end_inset
4869
4870
4871 \end_layout
4872
4873 \begin_layout Section
4874 Bibliography and Citations
4875 \end_layout
4876
4877 \begin_layout Standard
4878 XHTML output fully supports bibliographies and citations.
4879  
4880 \end_layout
4881
4882 \begin_layout Standard
4883 Citation labels are generated by the same machinery that generates LyX's
4884  on-screen labels, so the labels will look in the output much as they do
4885  in LyX, though better.
4886  If you are using numerical citations, then LyX will output numerical labels,
4887  such as [1] or [17], rather than simply showing the citation key in square
4888  brackets, as it does on-screen.
4889  If you are using author-year citations, then LyX will add lowercase letters
4890  to the years, just as BibTeX does, if it finds more than one citation for
4891  a given author-year combination.
4892  The labels will be printed with the bibliography entries.
4893  Note that there is, at present, no way to customize the appearance of the
4894  labels, for example, to choose between square brackets and parentheses.
4895 \end_layout
4896
4897 \begin_layout Standard
4898 Bibliography output is handled by the same machinery that handles the presentati
4899 on of reference information in the citation dialog, so you will see in the
4900  XHTML output pretty much what you would see if you were to look at a given
4901  entry in the citation dialog.
4902  The formatting can be customized in your layout file or, preferably, in
4903  a module.
4904  See the 
4905 \emph on
4906 Customization
4907 \emph default
4908  manual for the details.
4909 \end_layout
4910
4911 \begin_layout Standard
4912 The main defect at present is that cross-referenced information is printed
4913  with every entry with which it is associated.
4914  So you can see things like this:
4915 \end_layout
4916
4917 \begin_layout Quote
4918 Jason Stanley, 
4919 \begin_inset Quotes eld
4920 \end_inset
4921
4922 Context and Logical Form
4923 \begin_inset Quotes erd
4924 \end_inset
4925
4926 , in 
4927 \emph on
4928 Language in Context: Selected Essays
4929 \emph default
4930  (Oxford: Oxford University Press, 2007), pp.
4931  30--68.
4932 \end_layout
4933
4934 \begin_layout Quote
4935 Jason Stanley, 
4936 \begin_inset Quotes eld
4937 \end_inset
4938
4939 Semantics in Context
4940 \begin_inset Quotes erd
4941 \end_inset
4942
4943 , in 
4944 \emph on
4945 Language in Context: Selected Essays
4946 \emph default
4947  (Oxford: Oxford University Press, 2007), pp.
4948  201--30.
4949 \end_layout
4950
4951 \begin_layout Standard
4952 This should be fixed before long.
4953 \end_layout
4954
4955 \begin_layout Standard
4956 There is no support at present for sectioned bibliographies.
4957  If you have multiple bibliographies, then LyX will print the same bibliography
4958  over and over.
4959 \end_layout
4960
4961 \begin_layout Section
4962 Indexes
4963 \end_layout
4964
4965 \begin_layout Standard
4966 LyX will happily export indexes as XHTML, but with certain limitations at
4967  the moment.
4968 \end_layout
4969
4970 \begin_layout Standard
4971 Index export will be most reliable when you do not attempt to use the fancy
4972  constructs that are described in the section on indexes in the 
4973 \emph on
4974 User's Guide
4975 \emph default
4976 .
4977 \begin_inset Foot
4978 status collapsed
4979
4980 \begin_layout Plain Layout
4981 The main issue here is that LyX itself does not really handle these.
4982  It just lets you enter what you would have to enter in raw LaTeX.
4983 \end_layout
4984
4985 \end_inset
4986
4987  We'll describe how they are handled using the subsection headings from
4988  that section.
4989 \end_layout
4990
4991 \begin_layout Itemize
4992 Grouping Index Entries (aka, sub-entries): LyX makes an effort to support
4993  these, but the entries must be separated by 
4994 \begin_inset Quotes eld
4995 \end_inset
4996
4997  ! 
4998 \begin_inset Quotes erd
4999 \end_inset
5000
5001 , that is, there must be spaces around the exclamation point.
5002  This is because it is otherwise too difficult to check for escaped exclamation
5003  points, ones in math, and so forth.
5004 \end_layout
5005
5006 \begin_layout Itemize
5007 Page Ranges: There is no support at all for page ranges, since these make
5008  no sense with XHMTL.
5009  Instead, you will just get two index entries, one at either end.
5010 \end_layout
5011
5012 \begin_layout Itemize
5013 Cross-referencing: There is no support for cross-referencing.
5014  If LyX finds an entry containing the 
5015 \begin_inset Quotes eld
5016 \end_inset
5017
5018 |see\SpecialChar \ldots{}
5019
5020 \begin_inset Quotes erd
5021 \end_inset
5022
5023  construct, it is just dropped, and the rest is treated as an ordinary index
5024  entry.
5025 \end_layout
5026
5027 \begin_layout Itemize
5028 Index Entry Order: LyX does support attempts to fix the sorting order.
5029  It will take what is before the first `@' it finds and use that for sorting,
5030  taking what follows the first `@' to be the actual entry.
5031  At present, LyX does not check for escaped `@', so do not try to index
5032  email addresses.
5033 \end_layout
5034
5035 \begin_layout Itemize
5036 Index Entry Layout: You can format entries by using the text style dialog,
5037  or by using any other method available within LyX itself.
5038  There is no support for constructs like: 
5039 \begin_inset Quotes eld
5040 \end_inset
5041
5042 entry|textbf
5043 \begin_inset Quotes erd
5044 \end_inset
5045
5046 .
5047  Indeed, if LyX finds a pipe symbol, `|', in an entry, it will delete it
5048  and everything that follows it.
5049 \end_layout
5050
5051 \begin_layout Itemize
5052 Multiple Indexes: There is no support for multiple indexes.
5053  Rather, all index entries will be printed as one large index.
5054  To avoid our printing several versions of the index, we print only the
5055  main index, so make sure you have one.
5056 \end_layout
5057
5058 \begin_layout Section
5059 Nomenclature and Glossary
5060 \end_layout
5061
5062 \begin_layout Standard
5063 There is at present no support for glossaries.
5064  Adding it would be fairly trivial, and welcome.
5065 \end_layout
5066
5067 \begin_layout Chapter
5068 The LyX Server
5069 \end_layout
5070
5071 \begin_layout Section
5072 Introduction
5073 \end_layout
5074
5075 \begin_layout Standard
5076 The `LyX server' allows other programs to talk to LyX, invoke LyX commands,
5077  and retrieve information about the LyX internal state.
5078  This is only intended for advanced users, but they should find it useful.
5079  It is by writing to the LyX server, for example, that bibliography managers,
5080  such as JabRef, are able to 
5081 \begin_inset Quotes eld
5082 \end_inset
5083
5084 push
5085 \begin_inset Quotes erd
5086 \end_inset
5087
5088  citations to LyX.
5089 \end_layout
5090
5091 \begin_layout Section
5092 Starting the LyX Server
5093 \end_layout
5094
5095 \begin_layout Standard
5096 The LyX server works through the use of a pair of named pipes.
5097  These are usually located in 
5098 \begin_inset Flex Code
5099 status collapsed
5100
5101 \begin_layout Plain Layout
5102 UserDir
5103 \end_layout
5104
5105 \end_inset
5106
5107 , (except on Windows, where 
5108 \emph on
5109 local
5110 \emph default
5111  named pipes are special objects located in 
5112 \begin_inset Flex Code
5113 status collapsed
5114
5115 \begin_layout Plain Layout
5116
5117 \backslash
5118
5119 \backslash
5120 .
5121 \backslash
5122 pipe
5123 \end_layout
5124
5125 \end_inset
5126
5127 ) and have the names 
5128 \begin_inset Quotes eld
5129 \end_inset
5130
5131
5132 \begin_inset Flex Code
5133 status collapsed
5134
5135 \begin_layout Plain Layout
5136 lyxpipe.in
5137 \end_layout
5138
5139 \end_inset
5140
5141
5142 \begin_inset Quotes erd
5143 \end_inset
5144
5145  and 
5146 \begin_inset Quotes eld
5147 \end_inset
5148
5149
5150 \begin_inset Flex Code
5151 status collapsed
5152
5153 \begin_layout Plain Layout
5154 lyxpipe.out
5155 \end_layout
5156
5157 \end_inset
5158
5159
5160 \begin_inset Quotes erd
5161 \end_inset
5162
5163 .
5164  External programs write into 
5165 \begin_inset Flex Code
5166 status collapsed
5167
5168 \begin_layout Plain Layout
5169 lyxpipe.in
5170 \end_layout
5171
5172 \end_inset
5173
5174  and read back data from 
5175 \begin_inset Flex Code
5176 status collapsed
5177
5178 \begin_layout Plain Layout
5179 lyxpipe.out
5180 \end_layout
5181
5182 \end_inset
5183
5184 .
5185  The stem of the pipe names can be defined in the 
5186 \begin_inset Flex MenuItem
5187 status collapsed
5188
5189 \begin_layout Plain Layout
5190 Tools\SpecialChar \menuseparator
5191 Preferences
5192 \end_layout
5193
5194 \end_inset
5195
5196  dialog, for example 
5197 \begin_inset Flex Code
5198 status collapsed
5199
5200 \begin_layout Plain Layout
5201 "/home/myhome/lyxpipe"
5202 \end_layout
5203
5204 \end_inset
5205
5206 , or 
5207 \begin_inset Flex Code
5208 status collapsed
5209
5210 \begin_layout Plain Layout
5211 "
5212 \backslash
5213
5214 \backslash
5215 .
5216 \backslash
5217 pipe
5218 \backslash
5219 lyxpipe"
5220 \end_layout
5221
5222 \end_inset
5223
5224  on Windows (but any working path can be used).
5225  You 
5226 \emph on
5227 must
5228 \emph default
5229  configure this manually in order for the server to start.
5230 \end_layout
5231
5232 \begin_layout Standard
5233 LyX will add the '
5234 \begin_inset Flex Code
5235 status collapsed
5236
5237 \begin_layout Plain Layout
5238 .in
5239 \end_layout
5240
5241 \end_inset
5242
5243 ' and '
5244 \begin_inset Flex Code
5245 status collapsed
5246
5247 \begin_layout Plain Layout
5248 .out
5249 \end_layout
5250
5251 \end_inset
5252
5253 ' to create the pipes.
5254  If one of the pipes already exists, LyX will assume that another LyX process
5255  is already running and will not start the server.
5256  On POSIX (Unix like) systems, if for some other reason, an unused 
5257 \begin_inset Quotes eld
5258 \end_inset
5259
5260 stale
5261 \begin_inset Quotes erd
5262 \end_inset
5263
5264  pipe is left in existence when LyX closes, then LyX will try to delete
5265  it.
5266  If this fails for some reason, you will need to delete the pipes manually
5267  and then restart LyX.
5268  On Windows, pipes are deleted by the OS on program termination or crash,
5269  so 
5270 \begin_inset Quotes eld
5271 \end_inset
5272
5273 stale
5274 \begin_inset Quotes erd
5275 \end_inset
5276
5277  pipes should not be possible.
5278 \end_layout
5279
5280 \begin_layout Standard
5281 To have several LyX processes with servers at the same time, you have to
5282  use different configurations, perhaps by using separate user directories,
5283  each with its own 
5284 \begin_inset Flex Code
5285 status collapsed
5286
5287 \begin_layout Plain Layout
5288 preferences
5289 \end_layout
5290
5291 \end_inset
5292
5293  file, for each process.
5294 \end_layout
5295
5296 \begin_layout Standard
5297 If you are developing a client program, you might find it useful to enable
5298  debugging information from the LyX server.
5299  Do this by starting LyX as 
5300 \begin_inset Flex Code
5301 status collapsed
5302
5303 \begin_layout Plain Layout
5304 lyx -dbg lyxserver
5305 \end_layout
5306
5307 \end_inset
5308
5309 .
5310 \end_layout
5311
5312 \begin_layout Standard
5313 You can find a complete example client written in C in the source distribution
5314  as 
5315 \begin_inset Flex Code
5316 status collapsed
5317
5318 \begin_layout Plain Layout
5319 development/lyxserver/server_monitor.c
5320 \end_layout
5321
5322 \end_inset
5323
5324 .
5325 \end_layout
5326
5327 \begin_layout Standard
5328 Another useful tool is command-line based client you will find in 
5329 \begin_inset Flex Code
5330 status collapsed
5331
5332 \begin_layout Plain Layout
5333 src/client/lyxclient
5334 \end_layout
5335
5336 \end_inset
5337
5338 .
5339 \end_layout
5340
5341 \begin_layout Section
5342 Normal communication
5343 \end_layout
5344
5345 \begin_layout Standard
5346 To issue a LyX call, the client writes a line of ASCII text into the input
5347  pipe.
5348  This line has the following format:
5349 \end_layout
5350
5351 \begin_layout Quote
5352 LYXCMD:
5353 \emph on
5354 clientname
5355 \emph default
5356 :
5357 \emph on
5358 function
5359 \emph default
5360 :
5361 \emph on
5362 argument
5363 \end_layout
5364
5365 \begin_layout Description
5366 clientname is a name that the client can choose arbitrarily.
5367  Its only use is that LyX will echo it if it sends an answer—so a client
5368  can dispatch results from different requesters.
5369 \end_layout
5370
5371 \begin_layout Description
5372 function is the function you want LyX to perform.
5373  It is the same as the commands you'd use in the minibuffer.
5374 \end_layout
5375
5376 \begin_layout Description
5377 argument is an optional argument which is meaningful only to some functions
5378  (for instance, the 
5379 \begin_inset Quotes eld
5380 \end_inset
5381
5382 self-insert
5383 \begin_inset Quotes erd
5384 \end_inset
5385
5386  LFUN will insert the argument as text at the cursor position).
5387 \end_layout
5388
5389 \begin_layout Standard
5390 The answer from LyX will arrive in the output pipe and be of the form
5391 \end_layout
5392
5393 \begin_layout Quote
5394 INFO:
5395 \emph on
5396 clientname
5397 \emph default
5398 :
5399 \emph on
5400 function
5401 \emph default
5402 :
5403 \emph on
5404 data
5405 \end_layout
5406
5407 \begin_layout Standard
5408 where 
5409 \emph on
5410 clientname
5411 \emph default
5412  and 
5413 \emph on
5414 function
5415 \emph default
5416  are just echoed from the command request, while 
5417 \emph on
5418 data
5419 \emph default
5420  is more or less useful information filled according to how the command
5421  execution worked out.
5422  Some commands, such as 
5423 \begin_inset Quotes eld
5424 \end_inset
5425
5426 font-state
5427 \begin_inset Quotes erd
5428 \end_inset
5429
5430 , will return information about the internal state of LyX, while other will
5431  return an empty data-response.
5432  This means that the command execution went fine.
5433 \end_layout
5434
5435 \begin_layout Standard
5436 In case of errors, the response from LyX will have this form
5437 \end_layout
5438
5439 \begin_layout Quote
5440 ERROR:
5441 \emph on
5442 clientname
5443 \emph default
5444 :
5445 \emph on
5446 function
5447 \emph default
5448 :
5449 \emph on
5450 error message
5451 \end_layout
5452
5453 \begin_layout Standard
5454 where the 
5455 \emph on
5456 error message
5457 \emph default
5458  should contain an explanation of why the command failed.
5459 \end_layout
5460
5461 \begin_layout Standard
5462 Examples:
5463 \end_layout
5464
5465 \begin_layout LyX-Code
5466 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
5467 \begin_inset Newline newline
5468 \end_inset
5469
5470 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
5471 \begin_inset Newline newline
5472 \end_inset
5473
5474 read a <~/.lyxpipe.out
5475 \begin_inset Newline newline
5476 \end_inset
5477
5478 echo $a
5479 \end_layout
5480
5481 \begin_layout Section
5482 Notification
5483 \end_layout
5484
5485 \begin_layout Standard
5486 LyX can notify clients of events going on asynchronously.
5487  Currently it will only do this if the user binds a key sequence with the
5488  function 
5489 \begin_inset Quotes eld
5490 \end_inset
5491
5492 notify
5493 \begin_inset Quotes erd
5494 \end_inset
5495
5496 .
5497  The format of the string LyX sends is as follows:
5498 \end_layout
5499
5500 \begin_layout Quote
5501 \begin_inset Flex Code
5502 status collapsed
5503
5504 \begin_layout Plain Layout
5505 NOTIFY:
5506 \end_layout
5507
5508 \end_inset
5509
5510
5511 \emph on
5512 key-sequence
5513 \end_layout
5514
5515 \begin_layout Standard
5516 where 
5517 \emph on
5518 key-sequence
5519 \emph default
5520  is the printed representation of the key sequence that was actually typed
5521  by the user.
5522 \end_layout
5523
5524 \begin_layout Standard
5525 This mechanism can be used to extend LyX's command set and implement macros.
5526  Bind some key sequence to 
5527 \begin_inset Quotes eld
5528 \end_inset
5529
5530 notify
5531 \begin_inset Quotes erd
5532 \end_inset
5533
5534 .
5535  Then start a client that listens on the output pipe, dispatches the command
5536  according to the sequence, and starts a function that may use LyX calls
5537  and LyX requests to issue a command or a series of commands to LyX.
5538 \end_layout
5539
5540 \begin_layout Section
5541 The simple LyX Server Protocol
5542 \end_layout
5543
5544 \begin_layout Standard
5545 LyX implements a simple protocol that can be used for session management.
5546  All messages are of the form
5547 \end_layout
5548
5549 \begin_layout Quote
5550 LYXSRV:
5551 \emph on
5552 clientname
5553 \emph default
5554 :
5555 \emph on
5556 protocol message
5557 \end_layout
5558
5559 \begin_layout Standard
5560 where 
5561 \emph on
5562 protocol message
5563 \emph default
5564  can be 
5565 \begin_inset Quotes eld
5566 \end_inset
5567
5568 hello
5569 \begin_inset Quotes erd
5570 \end_inset
5571
5572  or 
5573 \begin_inset Quotes eld
5574 \end_inset
5575
5576 bye
5577 \begin_inset Quotes erd
5578 \end_inset
5579
5580 .
5581  If 
5582 \begin_inset Quotes eld
5583 \end_inset
5584
5585 hello
5586 \begin_inset Quotes erd
5587 \end_inset
5588
5589  is received from a client, LyX will report back to inform the client that
5590  it's listening to it's messages, while 
5591 \begin_inset Quotes eld
5592 \end_inset
5593
5594 bye
5595 \begin_inset Quotes erd
5596 \end_inset
5597
5598  sent from LyX will inform clients that LyX is closing.
5599 \end_layout
5600
5601 \begin_layout Section
5602 Reverse DVI/PDF search
5603 \end_layout
5604
5605 \begin_layout Standard
5606 Some DVI/PDF viewers
5607 \begin_inset Foot
5608 status collapsed
5609
5610 \begin_layout Plain Layout
5611 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
5612  Skim on Mac OSX and SumatraPDF on Windows.
5613 \end_layout
5614
5615 \end_inset
5616
5617  provide 
5618 \emph on
5619 reverse search
5620 \emph default
5621  facility (also called 
5622 \emph on
5623 inverse search
5624 \emph default
5625 ).
5626  This means that you can tell LyX to put the cursor to a specific line in
5627  the document by clicking at the respective position in the DVI/PDF output.
5628  To achieve this, the viewer must be able to communicate with LyX.
5629  This is done via the LyX server either by using the named pipe (
5630 \emph on
5631 lyxpipe
5632 \emph default
5633 ), or the UNIX domain socket (
5634 \emph on
5635 lyxsocket
5636 \emph default
5637 ) that LyX creates in its temporary directory (this is the way the 
5638 \begin_inset Flex Code
5639 status collapsed
5640
5641 \begin_layout Plain Layout
5642 lyxclient
5643 \end_layout
5644
5645 \end_inset
5646
5647  program communicates with LyX).
5648  In some cases, you need a helper script that mediates between the viewer
5649  and LyX, in others, the viewer can communicate with LyX directly.
5650  This depends on the selected viewer and on your operating system.
5651  The same applies to the way viewers need to be configured and the way the
5652  reverse search is actually performed.
5653  In what follows, we will thus describe how to setup reverse search for
5654  specific viewers.
5655  Before we turn to this, though, we will explain what needs to be done generally
5656  to enable reverse search in the DVI/PDF output.
5657 \end_layout
5658
5659 \begin_layout Subsection
5660 \begin_inset CommandInset label
5661 LatexCommand label
5662 name "sub:rev-search"
5663
5664 \end_inset
5665
5666 Automatic setup
5667 \end_layout
5668
5669 \begin_layout Standard
5670 In most cases LyX will do the work for you by enabling 
5671 \begin_inset Flex MenuItem
5672 status collapsed
5673
5674 \begin_layout Plain Layout
5675 Document\SpecialChar \menuseparator
5676 Output\SpecialChar \menuseparator
5677 Synchronize with Output
5678 \end_layout
5679
5680 \end_inset
5681
5682 .
5683  In such a case LyX will automatically insert the necessary SyncTeX macro
5684  (for PDF) or load the srcltx package (for DVI) respectively.
5685  This option can be easily reached also on 
5686 \begin_inset Flex Code
5687 status collapsed
5688
5689 \begin_layout Plain Layout
5690 View/Update
5691 \end_layout
5692
5693 \end_inset
5694
5695  Toolbar.
5696 \end_layout
5697
5698 \begin_layout Standard
5699 If you need a different setting, you can select or input a custom macro
5700  from the drop down box just below 
5701 \begin_inset Flex MenuItem
5702 status collapsed
5703
5704 \begin_layout Plain Layout
5705 Document\SpecialChar \menuseparator
5706 Output\SpecialChar \menuseparator
5707 Synchronize with Output
5708 \end_layout
5709
5710 \end_inset
5711
5712 .
5713 \end_layout
5714
5715 \begin_layout Standard
5716 Please note that including the 
5717 \begin_inset Flex Code
5718 status collapsed
5719
5720 \begin_layout Plain Layout
5721 srcltx
5722 \end_layout
5723
5724 \end_inset
5725
5726  package or 
5727 \begin_inset Flex Code
5728 status collapsed
5729
5730 \begin_layout Plain Layout
5731 src-specials
5732 \end_layout
5733
5734 \end_inset
5735
5736  sometimes has an undesired impact on the typesetting.
5737  Thus, you should switch output synchronization off for the final typesetting
5738  if you use the 
5739 \begin_inset Flex Code
5740 status collapsed
5741
5742 \begin_layout Plain Layout
5743 srcltx
5744 \end_layout
5745
5746 \end_inset
5747
5748  package or 
5749 \begin_inset Flex Code
5750 status collapsed
5751
5752 \begin_layout Plain Layout
5753 src-specials
5754 \end_layout
5755
5756 \end_inset
5757
5758 .
5759 \end_layout
5760
5761 \begin_layout Standard
5762 In case you need some more special settings that are not covered by the
5763  automatic settings, read the next section about how to set up output synchroniz
5764 ation manually.
5765  If the automatic setup suits your needs, you can readily jump to section
5766 \begin_inset space ~
5767 \end_inset
5768
5769
5770 \begin_inset CommandInset ref
5771 LatexCommand ref
5772 reference "sub:configuring-viewers"
5773
5774 \end_inset
5775
5776 , where the necessary configuration steps in your viewer -- needed both
5777  with the automatic and the manual setup -- are described.
5778 \end_layout
5779
5780 \begin_layout Subsection
5781 Manual setup
5782 \end_layout
5783
5784 \begin_layout Standard
5785 LaTeX provides several different methods for reverse search.
5786  Some are built-in in the 
5787 \begin_inset Flex Code
5788 status collapsed
5789
5790 \begin_layout Plain Layout
5791 latex/pdflatex
5792 \end_layout
5793
5794 \end_inset
5795
5796  program, some are provided by external packages.
5797  Your choice depends on whether your LaTeX distribution already provides
5798  a given method (the built-in methods are rather new) and whether your viewer
5799  can cope with it.
5800  The available methods are described in the following.
5801 \end_layout
5802
5803 \begin_layout Subsubsection*
5804 Built-in DVI-search via src-specials (DVI only) 
5805 \end_layout
5806
5807 \begin_layout Standard
5808 This method provides the DVI file with the necessary information for reverse
5809  search.
5810  It is available in LaTeX since quite some time (any somewhat recent LaTeX
5811  distribution should include it), and it works reliably.
5812  To enable it, change the 
5813 \begin_inset Flex MenuItem
5814 status collapsed
5815
5816 \begin_layout Plain Layout
5817 LaT
5818 \begin_inset ERT
5819 status collapsed
5820
5821 \begin_layout Plain Layout
5822
5823 {}
5824 \end_layout
5825
5826 \end_inset
5827
5828 eX (plain)->DVI
5829 \end_layout
5830
5831 \end_inset
5832
5833  or 
5834 \begin_inset Flex MenuItem
5835 status collapsed
5836
5837 \begin_layout Plain Layout
5838 LaT
5839 \begin_inset ERT
5840 status collapsed
5841
5842 \begin_layout Plain Layout
5843
5844 {}
5845 \end_layout
5846
5847 \end_inset
5848
5849 eX (plain)->DraftDVI
5850 \end_layout
5851
5852 \end_inset
5853
5854  converter in 
5855 \begin_inset Flex MenuItem
5856 status collapsed
5857
5858 \begin_layout Plain Layout
5859 Preferences\SpecialChar \menuseparator
5860 File Handling\SpecialChar \menuseparator
5861 Converters
5862 \end_layout
5863
5864 \end_inset
5865
5866  to 
5867 \begin_inset Flex Code
5868 status collapsed
5869
5870 \begin_layout Plain Layout
5871 latex -src-specials $$i
5872 \end_layout
5873
5874 \end_inset
5875
5876 .
5877  If this doesn't work, check if your TeX engine needs different options
5878  (the syntax might differ in some distributions).
5879 \end_layout
5880
5881 \begin_layout Subsubsection*
5882 External Packages (PDFSync and scrltx) 
5883 \end_layout
5884
5885 \begin_layout Standard
5886 The packages 
5887 \emph on
5888 pdfsync
5889 \emph default
5890  and 
5891 \emph on
5892 scrltx
5893 \emph default
5894  provide reverse search facility for PDF output (via pdflatex) and DVI output,
5895  respectively.
5896  In order to enable it, load the packages in the LyX preamble: 
5897 \end_layout
5898
5899 \begin_layout Itemize
5900 \begin_inset Flex Code
5901 status collapsed
5902
5903 \begin_layout Plain Layout
5904
5905 \backslash
5906 usepackage{pdfsync}
5907 \end_layout
5908
5909 \end_inset
5910
5911  for reverse PDF search,
5912 \end_layout
5913
5914 \begin_layout Itemize
5915  
5916 \begin_inset Flex Code
5917 status collapsed
5918
5919 \begin_layout Plain Layout
5920
5921 \backslash
5922 usepackage[active]{srcltx}
5923 \end_layout
5924
5925 \end_inset
5926
5927  for reverse DVI search.
5928 \end_layout
5929
5930 \begin_layout Standard
5931 If you want to be able to perform both DVI and PDF reverse searches, you
5932  can also insert in the preamble the following lines
5933 \end_layout
5934
5935 \begin_layout LyX-Code
5936
5937 \backslash
5938 usepackage{ifpdf}
5939 \begin_inset Newline newline
5940 \end_inset
5941
5942
5943 \backslash
5944 ifpdf
5945 \begin_inset Newline newline
5946 \end_inset
5947
5948   
5949 \backslash
5950 usepackage{pdfsync}
5951 \begin_inset Newline newline
5952 \end_inset
5953
5954
5955 \backslash
5956 else
5957 \begin_inset Newline newline
5958 \end_inset
5959
5960   
5961 \backslash
5962 usepackage[active]{srcltx}
5963 \begin_inset Newline newline
5964 \end_inset
5965
5966
5967 \backslash
5968 fi
5969 \end_layout
5970
5971 \begin_layout Standard
5972 This way, you can preview the file as either DVI or PDF (pdflatex) and the
5973  right package will be used.
5974 \end_layout
5975
5976 \begin_layout Standard
5977 Note that PDFSync might affect the output layout of your document.
5978  It is therefore advised to disable PDFsync for final documents.
5979 \end_layout
5980
5981 \begin_layout Subsubsection*
5982 Built-in reverse search via SyncTeX (DVI and PDF) 
5983 \end_layout
5984
5985 \begin_layout Standard
5986 Recent versions of 
5987 \begin_inset Flex Code
5988 status collapsed
5989
5990 \begin_layout Plain Layout
5991 (pdf)latex
5992 \end_layout
5993
5994 \end_inset
5995
5996  have built-in support for both PDF and DVI reverse search.
5997  This so-called 
5998 \emph on
5999 SyncTeX
6000 \emph default
6001  facility is basically the result of the integration of the PDFSync package
6002  to the pdftex program and its merge with the 
6003 \emph on
6004 scr-specials
6005 \emph default
6006  approach.
6007  You need at least TeXLive 2008 or a recent MikTeX distribution in order
6008  to use it.
6009  Also note that only a few PDF viewers (Skim on the Mac, SumatraPDF on Windows)
6010  already provide SyncTeX support.
6011 \end_layout
6012
6013 \begin_layout Standard
6014 To enable SyncTeX for DVI output, change the 
6015 \begin_inset Flex MenuItem
6016 status collapsed
6017
6018 \begin_layout Plain Layout
6019 LaT
6020 \begin_inset ERT
6021 status collapsed
6022
6023 \begin_layout Plain Layout
6024
6025 {}
6026 \end_layout
6027
6028 \end_inset
6029
6030 eX (plain) -> DVI
6031 \end_layout
6032
6033 \end_inset
6034
6035  or 
6036 \begin_inset Flex MenuItem
6037 status collapsed
6038
6039 \begin_layout Plain Layout
6040 LaT
6041 \begin_inset ERT
6042 status collapsed
6043
6044 \begin_layout Plain Layout
6045
6046 {}
6047 \end_layout
6048
6049 \end_inset
6050
6051 eX (plain) -> DraftDVI
6052 \end_layout
6053
6054 \end_inset
6055
6056  converter in 
6057 \begin_inset Flex MenuItem
6058 status collapsed
6059
6060 \begin_layout Plain Layout
6061 Preferences\SpecialChar \menuseparator
6062 File Handling\SpecialChar \menuseparator
6063 Converters
6064 \end_layout
6065
6066 \end_inset
6067
6068  to 
6069 \begin_inset Flex Code
6070 status collapsed
6071
6072 \begin_layout Plain Layout
6073 latex -synctex=1 $$i
6074 \end_layout
6075
6076 \end_inset
6077
6078 , and for PDF output, change the 
6079 \begin_inset Flex MenuItem
6080 status collapsed
6081
6082 \begin_layout Plain Layout
6083 LaT
6084 \begin_inset ERT
6085 status collapsed
6086
6087 \begin_layout Plain Layout
6088
6089 {}
6090 \end_layout
6091
6092 \end_inset
6093
6094 eX (pdflatex) -> PDF (pdflatex)
6095 \end_layout
6096
6097 \end_inset
6098
6099  or converter to 
6100 \begin_inset Flex Code
6101 status collapsed
6102
6103 \begin_layout Plain Layout
6104 pdflatex -synctex=1 $$i
6105 \end_layout
6106
6107 \end_inset
6108
6109 .
6110  Check the documentation of your viewer whether the viewer needs to be configure
6111 d for the use with SyncTeX.
6112 \begin_inset Foot
6113 status collapsed
6114
6115 \begin_layout Plain Layout
6116 The 
6117 \begin_inset Flex Code
6118 status collapsed
6119
6120 \begin_layout Plain Layout
6121 -synctex=1
6122 \end_layout
6123
6124 \end_inset
6125
6126  option enables gzip compression.
6127  If your viewer does not support it, you should instead use 
6128 \begin_inset Flex Code
6129 status collapsed
6130
6131 \begin_layout Plain Layout
6132 -synctex=-1
6133 \end_layout
6134
6135 \end_inset
6136
6137 .
6138 \end_layout
6139
6140 \end_inset
6141
6142
6143 \end_layout
6144
6145 \begin_layout Subsection
6146 Configuring and using specific viewers
6147 \begin_inset CommandInset label
6148 LatexCommand label
6149 name "sub:configuring-viewers"
6150
6151 \end_inset
6152
6153
6154 \end_layout
6155
6156 \begin_layout Subsubsection*
6157 Xdvi (all platforms)
6158 \end_layout
6159
6160 \begin_layout Standard
6161 If you use 
6162 \begin_inset Flex Code
6163 status collapsed
6164
6165 \begin_layout Plain Layout
6166 xdvi
6167 \end_layout
6168
6169 \end_inset
6170
6171 , you don't need to do anything else for performing a reverse DVI search,
6172  as LyX already provides the necessary hooks for automatically using the
6173  
6174 \begin_inset Flex Code
6175 status collapsed
6176
6177 \begin_layout Plain Layout
6178 lyxclient
6179 \end_layout
6180
6181 \end_inset
6182
6183  program.
6184  Just setup your document as described above (reverse search is triggered
6185  by Ctrl-click or Alt-click on Mac OSX, respectively).
6186 \end_layout
6187
6188 \begin_layout Standard
6189 However, if for whatever reason you want to use the named pipe instead of
6190  the socket for communicating with LyX, simply change the DVI viewer in
6191  
6192 \begin_inset Flex MenuItem
6193 status collapsed
6194
6195 \begin_layout Plain Layout
6196 Preferences\SpecialChar \menuseparator
6197 File Handling\SpecialChar \menuseparator
6198 File formats
6199 \end_layout
6200
6201 \end_inset
6202
6203  to
6204 \begin_inset Foot
6205 status collapsed
6206
6207 \begin_layout Plain Layout
6208 On Mac OSX you have to use 
6209 \begin_inset Flex Code
6210 status collapsed
6211
6212 \begin_layout Plain Layout
6213 DISPLAY=:0.0 xdvi -editor 'lyxeditor.sh %f %l'
6214 \end_layout
6215
6216 \end_inset
6217
6218
6219 \end_layout
6220
6221 \end_inset
6222
6223  
6224 \begin_inset Flex Code
6225 status collapsed
6226
6227 \begin_layout Plain Layout
6228 xdvi -editor 'lyxeditor.sh %f %l'
6229 \end_layout
6230
6231 \end_inset
6232
6233 , where 
6234 \begin_inset Flex Code
6235 status collapsed
6236
6237 \begin_layout Plain Layout
6238 lyxeditor.sh
6239 \end_layout
6240
6241 \end_inset
6242
6243  is a suitable script.
6244  For example, a minimal shell script is the following one:
6245 \end_layout
6246
6247 \begin_layout LyX-Code
6248 #!/bin/sh
6249 \begin_inset Newline newline
6250 \end_inset
6251
6252 LYXPIPE="/path/to/lyxpipe"
6253 \begin_inset Newline newline
6254 \end_inset
6255
6256 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
6257 \begin_inset Newline newline
6258 \end_inset
6259
6260 echo "$COMMAND" > "${LYXPIPE}".in || exit
6261 \begin_inset Newline newline
6262 \end_inset
6263
6264 read < "${LYXPIPE}".out || exit
6265 \end_layout
6266
6267 \begin_layout Standard
6268 where 
6269 \begin_inset Flex Code
6270 status collapsed
6271
6272 \begin_layout Plain Layout
6273 /path/to/lyxpipe
6274 \end_layout
6275
6276 \end_inset
6277
6278  is the Ly
6279 \begin_inset ERT
6280 status collapsed
6281
6282 \begin_layout Plain Layout
6283
6284 {}
6285 \end_layout
6286
6287 \end_inset
6288
6289 XServer pipe path specified in 
6290 \begin_inset Flex MenuItem
6291 status collapsed
6292
6293 \begin_layout Plain Layout
6294 Preferences\SpecialChar \menuseparator
6295 Paths
6296 \end_layout
6297
6298 \end_inset
6299
6300 .
6301 \begin_inset Foot
6302 status collapsed
6303
6304 \begin_layout Plain Layout
6305 In the 
6306 \begin_inset Flex Code
6307 status collapsed
6308
6309 \begin_layout Plain Layout
6310 development/tools
6311 \end_layout
6312
6313 \end_inset
6314
6315  folder of a source distribution you can find a 
6316 \begin_inset Flex Code
6317 status collapsed
6318
6319 \begin_layout Plain Layout
6320 lyxeditor
6321 \end_layout
6322
6323 \end_inset
6324
6325  script which is able to locate the 
6326 \emph on
6327 lyxpipe
6328 \emph default
6329  based on your preferences.
6330 \end_layout
6331
6332 \end_inset
6333
6334
6335 \end_layout
6336
6337 \begin_layout Subsubsection*
6338 MacDviX (Mac OSX)
6339 \end_layout
6340
6341 \begin_layout Standard
6342 At the end of 
6343 \begin_inset Flex Code
6344 status collapsed
6345
6346 \begin_layout Plain Layout
6347 /Applications/MacDviX_Folder/calleditor.script
6348 \end_layout
6349
6350 \end_inset
6351
6352 , add the following lines:
6353 \end_layout
6354
6355 \begin_layout LyX-Code
6356 /Applications/Ly
6357 \begin_inset ERT
6358 status collapsed
6359
6360 \begin_layout Plain Layout
6361
6362 {}
6363 \end_layout
6364
6365 \end_inset
6366
6367 X.app/Contents/MacOS/lyxeditor "$2" $1
6368 \begin_inset Newline newline
6369 \end_inset
6370
6371 exit 1
6372 \end_layout
6373
6374 \begin_layout Standard
6375 Modify the lines accordingly if you install LyX somewhere else than in the
6376  Applications folder.
6377 \end_layout
6378
6379 \begin_layout Standard
6380 Reverse search is triggered by Alt-click (OPTION-click).
6381 \end_layout
6382
6383 \begin_layout Subsubsection*
6384 Skim (Mac OSX)
6385 \end_layout
6386
6387 \begin_layout Standard
6388 Enter 
6389 \begin_inset Flex Code
6390 status collapsed
6391
6392 \begin_layout Plain Layout
6393 open -a Skim.app $$i
6394 \end_layout
6395
6396 \end_inset
6397
6398  to the viewer setting in 
6399 \begin_inset Flex MenuItem
6400 status collapsed
6401
6402 \begin_layout Plain Layout
6403 Preferences\SpecialChar \menuseparator
6404 File Handling\SpecialChar \menuseparator
6405 File formats\SpecialChar \menuseparator
6406 PDF (pdflatex)
6407 \end_layout
6408
6409 \end_inset
6410
6411 , and then in 
6412 \begin_inset Flex MenuItem
6413 status collapsed
6414
6415 \begin_layout Plain Layout
6416 Skim\SpecialChar \menuseparator
6417 Preferences\SpecialChar \menuseparator
6418 Sync
6419 \end_layout
6420
6421 \end_inset
6422
6423  select Ly
6424 \begin_inset ERT
6425 status collapsed
6426
6427 \begin_layout Plain Layout
6428
6429 {}
6430 \end_layout
6431
6432 \end_inset
6433
6434 X.
6435 \end_layout
6436
6437 \begin_layout Standard
6438 Reverse search is triggered by COMMAND-SHIFT-click
6439 \end_layout
6440
6441 \begin_layout Subsubsection*
6442 Okular (KDE)
6443 \end_layout
6444
6445 \begin_layout Standard
6446 Go to 
6447 \begin_inset Flex MenuItem
6448 status collapsed
6449
6450 \begin_layout Plain Layout
6451 Settings\SpecialChar \menuseparator
6452 Configure Okular\SpecialChar \ldots{}
6453 \SpecialChar \menuseparator
6454 Editor
6455 \end_layout
6456
6457 \end_inset
6458
6459 , select 
6460 \begin_inset Quotes eld
6461 \end_inset
6462
6463 Custom Text Editor
6464 \begin_inset Quotes erd
6465 \end_inset
6466
6467  and add the command 
6468 \begin_inset Flex Code
6469 status collapsed
6470
6471 \begin_layout Plain Layout
6472 lyxclient -g %f %l
6473 \end_layout
6474
6475 \end_inset
6476
6477 .
6478 \end_layout
6479
6480 \begin_layout Standard
6481 Reverse search is triggered by SHIFT-click.
6482 \end_layout
6483
6484 \begin_layout Subsubsection*
6485 YAP (Windows)
6486 \end_layout
6487
6488 \begin_layout Standard
6489 Launch yap, choose its 
6490 \begin_inset Flex MenuItem
6491 status collapsed
6492
6493 \begin_layout Plain Layout
6494 View\SpecialChar \menuseparator
6495 Options
6496 \end_layout
6497
6498 \end_inset
6499
6500  menu and select the 
6501 \begin_inset Quotes eld
6502 \end_inset
6503
6504 Inverse DVI Search
6505 \begin_inset Quotes erd
6506 \end_inset
6507
6508  tab.
6509  Click on the 
6510 \begin_inset Quotes eld
6511 \end_inset
6512
6513 New\SpecialChar \ldots{}
6514
6515 \begin_inset Quotes erd
6516 \end_inset
6517
6518  button and, in the window that opens, enter 
6519 \begin_inset Quotes eld
6520 \end_inset
6521
6522 LyX Editor
6523 \begin_inset Quotes erd
6524 \end_inset
6525
6526  (or any other name you like) in the 
6527 \begin_inset Quotes eld
6528 \end_inset
6529
6530 Name:
6531 \begin_inset Quotes erd
6532 \end_inset
6533
6534  field.
6535  Now click on the button labeled 
6536 \begin_inset Quotes eld
6537 \end_inset
6538
6539 \SpecialChar \ldots{}
6540
6541 \begin_inset Quotes erd
6542 \end_inset
6543
6544  to open a file dialog and navigate to the directory containing the batch
6545  file 
6546 \begin_inset Flex Code
6547 status collapsed
6548
6549 \begin_layout Plain Layout
6550 lyxeditor.bat
6551 \end_layout
6552
6553 \end_inset
6554
6555  (see below).
6556  Select 
6557 \begin_inset Flex Code
6558 status collapsed
6559
6560 \begin_layout Plain Layout
6561 lyxeditor.bat
6562 \end_layout
6563
6564 \end_inset
6565
6566  and then specify the program arguments as 
6567 \begin_inset Flex Code
6568 status collapsed
6569
6570 \begin_layout Plain Layout
6571 %f %l
6572 \end_layout
6573
6574 \end_inset
6575
6576 .
6577  The 
6578 \begin_inset Flex Code
6579 status collapsed
6580
6581 \begin_layout Plain Layout
6582 lyxeditor.bat
6583 \end_layout
6584
6585 \end_inset
6586
6587  wrapper is used for communicating with LyX through the 
6588 \emph on
6589 lyxpipe
6590 \emph default
6591  and is as follows:
6592 \end_layout
6593
6594 \begin_layout LyX-Code
6595 @echo off
6596 \begin_inset Newline newline
6597 \end_inset
6598
6599 echo LYXCMD:revdvi:server-goto-file-row:%1 %2> 
6600 \backslash
6601
6602 \backslash
6603 .
6604 \backslash
6605 pipe
6606 \backslash
6607 lyxpipe.in
6608 \begin_inset Newline newline
6609 \end_inset
6610
6611 type 
6612 \backslash
6613
6614 \backslash
6615 .
6616 \backslash
6617 pipe
6618 \backslash
6619 lyxpipe.out
6620 \end_layout
6621
6622 \begin_layout Standard
6623 Make sure that the LyXServer pipe path you specified in LyX is 
6624 \begin_inset Flex Code
6625 status collapsed
6626
6627 \begin_layout Plain Layout
6628
6629 \backslash
6630
6631 \backslash
6632 .
6633 \backslash
6634 pipe
6635 \backslash
6636 lyxpipe
6637 \end_layout
6638
6639 \end_inset
6640
6641 , otherwise change the 
6642 \begin_inset Flex Code
6643 status collapsed
6644
6645 \begin_layout Plain Layout
6646 lyxeditor.bat
6647 \end_layout
6648
6649 \end_inset
6650
6651  wrapper accordingly.
6652 \end_layout
6653
6654 \begin_layout Standard
6655 In yap, reverse search is triggered by double-click.
6656 \end_layout
6657
6658 \begin_layout Subsubsection*
6659 SumatraPDF (Windows)
6660 \end_layout
6661
6662 \begin_layout Standard
6663 In order to use SumatraPDF for inverse search, enter 
6664 \begin_inset Flex Code
6665 status collapsed
6666
6667 \begin_layout Plain Layout
6668 SumatraPDF -inverse-search "lyxeditor.bat %f %l"
6669 \end_layout
6670
6671 \end_inset
6672
6673  in the viewer setting in 
6674 \begin_inset Flex MenuItem
6675 status collapsed
6676
6677 \begin_layout Plain Layout
6678 Preferences\SpecialChar \menuseparator
6679 File Handling\SpecialChar \menuseparator
6680 File formats\SpecialChar \menuseparator
6681 PDF (pdflatex)
6682 \end_layout
6683
6684 \end_inset
6685
6686 , where 
6687 \begin_inset Flex Code
6688 status collapsed
6689
6690 \begin_layout Plain Layout
6691 lyxeditor.bat
6692 \end_layout
6693
6694 \end_inset
6695
6696  is the previous wrapper.
6697  If SumatraPDF.exe is not in your command PATH, use its full file name.
6698 \end_layout
6699
6700 \begin_layout Standard
6701 Reverse search is triggered by double-click.
6702 \end_layout
6703
6704 \begin_layout Subsubsection*
6705 YAP (Cygwin)
6706 \end_layout
6707
6708 \begin_layout Standard
6709 First of all, make sure that yap is your default DVI viewer in the Windows
6710  environment, then launch it, choose its 
6711 \begin_inset Flex MenuItem
6712 status collapsed
6713
6714 \begin_layout Plain Layout
6715 View\SpecialChar \menuseparator
6716 Options
6717 \end_layout
6718
6719 \end_inset
6720
6721  menu and select the 
6722 \begin_inset Quotes eld
6723 \end_inset
6724
6725 Inverse DVI Search
6726 \begin_inset Quotes erd
6727 \end_inset
6728
6729  tab.
6730  Click on the 
6731 \begin_inset Quotes eld
6732 \end_inset
6733
6734 New\SpecialChar \ldots{}
6735
6736 \begin_inset Quotes erd
6737 \end_inset
6738
6739  button and, in the window that opens, enter 
6740 \begin_inset Quotes eld
6741 \end_inset
6742
6743 LyX Editor
6744 \begin_inset Quotes erd
6745 \end_inset
6746
6747  (or any other name you like) in the 
6748 \begin_inset Quotes eld
6749 \end_inset
6750
6751 Name:
6752 \begin_inset Quotes erd
6753 \end_inset
6754
6755  field.
6756  Now click on the button labeled 
6757 \begin_inset Quotes eld
6758 \end_inset
6759
6760 \SpecialChar \ldots{}
6761
6762 \begin_inset Quotes erd
6763 \end_inset
6764
6765  to open a file dialog and navigate to the directory containing the 
6766 \begin_inset Flex Code
6767 status collapsed
6768
6769 \begin_layout Plain Layout
6770 lyxeditor.exe
6771 \end_layout
6772
6773 \end_inset
6774
6775  program (which is installed by default on Cygwin along with the LyX executable).
6776  Select 
6777 \begin_inset Flex Code
6778 status collapsed
6779
6780 \begin_layout Plain Layout
6781 lyxeditor.exe
6782 \end_layout
6783
6784 \end_inset
6785
6786  and then specify the program arguments as 
6787 \begin_inset Flex Code
6788 status collapsed
6789
6790 \begin_layout Plain Layout
6791 -g %f %l
6792 \end_layout
6793
6794 \end_inset
6795
6796 .
6797  In this way, you will be using the 
6798 \emph on
6799 lyxsocket
6800 \emph default
6801  for communicating with LyX.
6802  If, for whatever reason, you want to use the 
6803 \emph on
6804 lyxpipe
6805 \emph default
6806 , omit the 
6807 \begin_inset Flex Code
6808 status collapsed
6809
6810 \begin_layout Plain Layout
6811 -g
6812 \end_layout
6813
6814 \end_inset
6815
6816  option and be sure to specify the LyXServer pipe path in the LyX preferences.
6817 \end_layout
6818
6819 \begin_layout Standard
6820 In yap, reverse search is triggered by double-click.
6821 \end_layout
6822
6823 \begin_layout Subsubsection*
6824 SumatraPDF (Cygwin)
6825 \end_layout
6826
6827 \begin_layout Standard
6828 In order to use SumatraPDF for inverse search, enter 
6829 \begin_inset Flex Code
6830 status collapsed
6831
6832 \begin_layout Plain Layout
6833 SumatraPDF.sh
6834 \end_layout
6835
6836 \end_inset
6837
6838  in the viewer setting in 
6839 \begin_inset Flex MenuItem
6840 status collapsed
6841
6842 \begin_layout Plain Layout
6843 Preferences\SpecialChar \menuseparator
6844 File Handling\SpecialChar \menuseparator
6845 File formats\SpecialChar \menuseparator
6846 PDF (pdflatex)
6847 \end_layout
6848
6849 \end_inset
6850
6851 , where 
6852 \begin_inset Flex Code
6853 status collapsed
6854
6855 \begin_layout Plain Layout
6856 SumatraPDF.sh
6857 \end_layout
6858
6859 \end_inset
6860
6861  is the following script (to be placed in your command PATH, 
6862 \begin_inset Flex Code
6863 status collapsed
6864
6865 \begin_layout Plain Layout
6866 /usr/local/bin
6867 \end_layout
6868
6869 \end_inset
6870
6871  being the best choice):
6872 \end_layout
6873
6874 \begin_layout LyX-Code
6875 #!/bin/bash
6876 \begin_inset Newline newline
6877 \end_inset
6878
6879 cd $(dirname $1)
6880 \begin_inset Newline newline
6881 \end_inset
6882
6883 SumatraPDF -inverse-search "lyxeditor -g %f %l" $(basename $1)
6884 \end_layout
6885
6886 \begin_layout Standard
6887 This wrapper script is needed because SumatraPDF is a native Windows application
6888  and does not understand the posix paths used by the Cygwin version of LyX.
6889  If SumatraPDF.exe is not in your command PATH, use its full posix path in
6890  the script above.
6891  The 
6892 \begin_inset Flex Code
6893 status collapsed
6894
6895 \begin_layout Plain Layout
6896 -g
6897 \end_layout
6898
6899 \end_inset
6900
6901  enables communication via the 
6902 \emph on
6903 lyxsocket
6904 \emph default
6905 .
6906  Again, omit the 
6907 \begin_inset Flex Code
6908 status collapsed
6909
6910 \begin_layout Plain Layout
6911 -g
6912 \end_layout
6913
6914 \end_inset
6915
6916  option if you want to use the 
6917 \emph on
6918 lyxpipe
6919 \emph default
6920 , and be sure to specify the LyXServer pipe path in the LyX preferences.
6921 \end_layout
6922
6923 \begin_layout Standard
6924 Reverse search is triggered by double-click.
6925 \end_layout
6926
6927 \begin_layout Section
6928 Forward search
6929 \end_layout
6930
6931 \begin_layout Standard
6932 Forward search is, as the name implies, in a sense the 
6933 \begin_inset Quotes eld
6934 \end_inset
6935
6936 opposite
6937 \begin_inset Quotes erd
6938 \end_inset
6939
6940  to reverse search.
6941  It allows you to let the viewer jump to a given position from within LyX.
6942  If forward search is set up (as described in what follows), you can put
6943  the cursor anywhere in your LyX document, and hit 
6944 \begin_inset Flex MenuItem
6945 status collapsed
6946
6947 \begin_layout Plain Layout
6948 Navigate\SpecialChar \menuseparator
6949 Forward search
6950 \end_layout
6951
6952 \end_inset
6953
6954  (or select 
6955 \begin_inset Flex MenuItem
6956 status collapsed
6957
6958 \begin_layout Plain Layout
6959 Forward search
6960 \end_layout
6961
6962 \end_inset
6963
6964  in the context menu via right mouse click), and then the viewer will jump
6965  to that position as well.
6966  This implies, of course, that your viewer supports this function.
6967 \end_layout
6968
6969 \begin_layout Standard
6970 To make forward search possible, you first need to provide the generated
6971  output PDF/DVI file with additional information about the TeX sources.
6972  This can be done via the methods described in the section 
6973 \begin_inset CommandInset ref
6974 LatexCommand ref
6975 reference "sub:rev-search"
6976
6977 \end_inset
6978
6979 .
6980 \end_layout
6981
6982 \begin_layout Standard
6983 Additionally, you need to configure LyX for using your viewers in 
6984 \begin_inset Flex MenuItem
6985 status collapsed
6986
6987 \begin_layout Plain Layout
6988 Tools\SpecialChar \menuseparator
6989 Preferences\SpecialChar \menuseparator
6990 Output\SpecialChar \menuseparator
6991 General
6992 \end_layout
6993
6994 \end_inset
6995
6996 .
6997  We provide a range of tested configurations for some viewers, which you
6998  can select from the drop down list.
6999  If none of these configurations suits you, you have to find out and enter
7000  a suitable configuration yourself.
7001  The definition syntax uses the following placeholders: 
7002 \end_layout
7003
7004 \begin_layout Itemize
7005 \noindent
7006 \begin_inset Flex Code
7007 status collapsed
7008
7009 \begin_layout Plain Layout
7010 $$n
7011 \end_layout
7012
7013 \end_inset
7014
7015 : row number
7016 \end_layout
7017
7018 \begin_layout Itemize
7019 \noindent
7020 \begin_inset Flex Code
7021 status collapsed
7022
7023 \begin_layout Plain Layout
7024 $$t
7025 \end_layout
7026
7027 \end_inset
7028
7029 : name of the (temporary) exported .tex file
7030 \end_layout
7031
7032 \begin_layout Itemize
7033 \noindent
7034 \begin_inset Flex Code
7035 status collapsed
7036
7037 \begin_layout Plain Layout
7038 $$o
7039 \end_layout
7040
7041 \end_inset
7042
7043 : name of the exported output file (either dvi or pdf, depending on which
7044  one exists in the temporary directory)
7045 \end_layout
7046
7047 \begin_layout Standard
7048 Note that only some of the viewers provide full forward search functionality,
7049  among them yap, xdvi, okular and Sumatra PDF
7050 \begin_inset Foot
7051 status collapsed
7052
7053 \begin_layout Plain Layout
7054 For Sumatra CMCDDE is needed --- downloadable from http://www.istri.fr/zip/CMCDDE.z
7055 ip
7056 \end_layout
7057
7058 \end_inset
7059
7060 .
7061  While many of the widespread PDF viewers (most notably Adobe Reader) do
7062  not support forward search at all, some other viewers -- e.
7063 \begin_inset space \thinspace{}
7064 \end_inset
7065
7066 g.
7067  evince and xpdf -- allow at least to reload the document and jump to a
7068  specific page of the file, so you can at least navigate 
7069 \begin_inset Quotes eld
7070 \end_inset
7071
7072 near
7073 \begin_inset Quotes erd
7074 \end_inset
7075
7076 .
7077  These latter functionality is provided by an external call of synctex (see
7078  the predefined example configurations).
7079  
7080 \end_layout
7081
7082 \begin_layout Standard
7083 Forward search works both with DVI and PDF output.
7084  LyX simply checks which preview format you have used before (i.
7085 \begin_inset space \thinspace{}
7086 \end_inset
7087
7088 e., which format is already there in the temporary directory) and chooses
7089  the appropriate configuration for the respective format.
7090  
7091 \end_layout
7092
7093 \begin_layout Chapter
7094 Special Document Classes
7095 \end_layout
7096
7097 \begin_layout Section
7098 A&A Paper
7099 \end_layout
7100
7101 \begin_layout Standard
7102 by 
7103 \noun on
7104 Peter Sütterlin
7105 \end_layout
7106
7107 \begin_layout Subsection
7108 Introduction
7109 \end_layout
7110
7111 \begin_layout Standard
7112 This section describes how LyX can be used to write articles for submission
7113  to the scientific journal 
7114 \emph on
7115 Astronomy and Astrophysics
7116 \emph default
7117  (www.edpsciences.fr/aa/ 
7118 \begin_inset Flex URL
7119 status collapsed
7120
7121 \begin_layout Plain Layout
7122
7123 http://www.edpsciences.fr/aa/
7124 \end_layout
7125
7126 \end_inset
7127
7128 ) using Version 5.01 of the document class 
7129 \family typewriter
7130 aa.cls
7131 \family default
7132 .
7133  This package can be downloaded from the ftp site
7134 \end_layout
7135
7136 \begin_layout Standard
7137 \begin_inset VSpace medskip
7138 \end_inset
7139
7140
7141 \end_layout
7142
7143 \begin_layout Standard
7144 \align center
7145 \begin_inset Flex URL
7146 status collapsed
7147
7148 \begin_layout Plain Layout
7149
7150 ftp://ftp.edpsciences.org/pub/aa/readme.html
7151 \end_layout
7152
7153 \end_inset
7154
7155
7156 \end_layout
7157
7158 \begin_layout Standard
7159 \begin_inset VSpace medskip
7160 \end_inset
7161
7162
7163 \end_layout
7164
7165 \begin_layout Standard
7166 A manual comes together with that package, and this text is not meant to
7167  replace the original manual but is merely a short guide in how to realize
7168  the correct form of your paper.
7169  
7170 \end_layout
7171
7172 \begin_layout Standard
7173 Please note that the publisher of the journal was changed from Springer
7174  to EDP Sciences starting January 1, 2001.
7175  That change involved also some slight changes to the style files, namely
7176  the removal of the thesaurus command.
7177  The LyX class aa supports the newest version of these style files, V 5.01.
7178  If you have an older version installed, please upgrade.
7179  For compatibility, the old (version 4) layout has been kept as 
7180 \family sans
7181 article (A&A V4)
7182 \family default
7183 .
7184  Please refer to the comments in 
7185 \family typewriter
7186 LyXDir/layouts/aapaper.layout
7187 \family default
7188 .
7189 \end_layout
7190
7191 \begin_layout Subsection
7192 Getting started
7193 \end_layout
7194
7195 \begin_layout Standard
7196 It is recommended you start from the example template distributed with LyX.
7197  If you are not using a template, note the following settings:
7198 \end_layout
7199
7200 \begin_layout Itemize
7201 Select 
7202 \family sans
7203 article (A&A)
7204 \family default
7205  in the 
7206 \family sans
7207 Document\SpecialChar \menuseparator
7208 Settings
7209 \family default
7210  dialog (OK, that one was obvious).
7211 \end_layout
7212
7213 \begin_layout Itemize
7214 Don't change the option 
7215 \family sans
7216 Page
7217 \begin_inset space ~
7218 \end_inset
7219
7220 style
7221 \family default
7222 : Leave it set to 
7223 \family sans
7224 default
7225 \family default
7226 .
7227  The whole layout is done by the macros, you shouldn't change anything.
7228 \end_layout
7229
7230 \begin_layout Subsection
7231 The header block
7232 \end_layout
7233
7234 \begin_layout Standard
7235 First thing to enter is the header information.
7236  It consists of seven entries, of which some are optional.
7237  They are
7238 \end_layout
7239
7240 \begin_layout Itemize
7241
7242 \family sans
7243 Title
7244 \family default
7245 : [required] 
7246 \end_layout
7247
7248 \begin_layout Itemize
7249
7250 \family sans
7251 Subtitle
7252 \family default
7253 : [optional] 
7254 \end_layout
7255
7256 \begin_layout Itemize
7257
7258 \family sans
7259 Author
7260 \family default
7261 : [required]
7262 \end_layout
7263
7264 \begin_layout Itemize
7265
7266 \family sans
7267 Address
7268 \family default
7269 : [required]
7270 \end_layout
7271
7272 \begin_layout Itemize
7273
7274 \family sans
7275 Offprints
7276 \family default
7277 : [optional] if more than one author: whom to contact for offprint requests.
7278 \end_layout
7279
7280 \begin_layout Itemize
7281
7282 \family sans
7283 Mail
7284 \family default
7285 : [optional] mail address for contacts.
7286 \end_layout
7287
7288 \begin_layout Itemize
7289
7290 \family sans
7291 Date
7292 \family default
7293 : [required].
7294  Suggested format is 
7295 \family typewriter
7296 Received: <date>; Accepted <date> 
7297 \end_layout
7298
7299 \begin_layout Standard
7300 There is no need to issue the 
7301 \family typewriter
7302
7303 \backslash
7304 maketitle
7305 \family default
7306  command, this is done automatically by LyX when the header is finished.
7307  Although the order of the single header entries doesn't matter it is advised
7308  to keep the above sequence, just to get the best optics and meets the layout
7309  of the real document.
7310 \end_layout
7311
7312 \begin_layout Standard
7313 If you want to place footnotes in the header block, e.
7314 \begin_inset space \thinspace{}
7315 \end_inset
7316
7317 g.
7318 \begin_inset space \space{}
7319 \end_inset
7320
7321 to state your present address, just use the standard footnote via the menu
7322  
7323 \family sans
7324 Insert\SpecialChar \menuseparator
7325 Footnote.
7326
7327 \family default
7328  LyX will automagically use the term 
7329 \family typewriter
7330
7331 \backslash
7332 thanks{}
7333 \family default
7334  in that case.
7335 \end_layout
7336
7337 \begin_layout Standard
7338 In addition to these topics, the macros use three additional LaTeX commands
7339  that have no counterpart in LyX:
7340 \end_layout
7341
7342 \begin_layout Itemize
7343
7344 \family typewriter
7345
7346 \backslash
7347 and
7348 \family default
7349  to separate different names for more than one author and institute, respectivel
7350 y.
7351 \end_layout
7352
7353 \begin_layout Itemize
7354
7355 \family typewriter
7356
7357 \backslash
7358 inst{<nr>}
7359 \family default
7360 to mark corresponding author/institute pairs.
7361  The institutes are numbered sequentially as they appear in the 
7362 \family sans
7363 Address
7364 \family default
7365  field, so you have to put a marker to each author.
7366 \end_layout
7367
7368 \begin_layout Itemize
7369
7370 \family typewriter
7371
7372 \backslash
7373 email{address}
7374 \family default
7375  to supply an email address for fast contact.
7376 \end_layout
7377
7378 \begin_layout Standard
7379 In all cases, the appropriate command has to be entered in LyX and marked
7380  as LaTeX code.
7381  See the examples.
7382  
7383 \end_layout
7384
7385 \begin_layout Subsection
7386 The abstract
7387 \end_layout
7388
7389 \begin_layout Standard
7390 The abstract should immediately follow the header block.
7391  With version 5 the abstract environment was changed to a command, and there
7392  is now a resctriction to only one paragraph.
7393  In addition, it should contain an entry with the keywords.
7394  This is not yet implemented for LyX, therefore you have to enter the LaTeX
7395  command 
7396 \family typewriter
7397
7398 \backslash
7399 keywords{}
7400 \family default
7401  by hand and mark it as LaTeX code.
7402  Refer to the example paper.
7403 \end_layout
7404
7405 \begin_layout Subsection
7406 Supported environments
7407 \end_layout
7408
7409 \begin_layout Standard
7410 The A&A paper layout supports the following environments for structuring
7411  your text:
7412 \end_layout
7413
7414 \begin_layout Itemize
7415
7416 \family sans
7417 Standard
7418 \end_layout
7419
7420 \begin_layout Itemize
7421
7422 \family sans
7423 Section
7424 \end_layout
7425
7426 \begin_layout Itemize
7427
7428 \family sans
7429 Subsection
7430 \end_layout
7431
7432 \begin_layout Itemize
7433
7434 \family sans
7435 Subsubsection
7436 \end_layout
7437
7438 \begin_layout Itemize
7439
7440 \family sans
7441 Itemize
7442 \end_layout
7443
7444 \begin_layout Itemize
7445
7446 \family sans
7447 Enumerate
7448 \end_layout
7449
7450 \begin_layout Itemize
7451
7452 \family sans
7453 Description
7454 \end_layout
7455
7456 \begin_layout Itemize
7457
7458 \family sans
7459 Caption
7460 \end_layout
7461
7462 \begin_layout Itemize
7463
7464 \family sans
7465 Abstract
7466 \end_layout
7467
7468 \begin_layout Itemize
7469
7470 \family sans
7471 Acknowledgment
7472 \end_layout
7473
7474 \begin_layout Itemize
7475
7476 \family sans
7477 Bibliography
7478 \end_layout
7479
7480 \begin_layout Itemize
7481
7482 \family sans
7483 LaTeX
7484 \end_layout
7485
7486 \begin_layout Subsection
7487 Commands not supported by LyX
7488 \end_layout
7489
7490 \begin_layout Standard
7491 Some commands are not yet supported by the 
7492 \family sans
7493 paper (A&A)
7494 \family default
7495  layout for LyX.
7496  Some have already been mentioned.
7497  For the sake of completeness, they are listed all together here:
7498 \end_layout
7499
7500 \begin_layout Itemize
7501
7502 \family typewriter
7503
7504 \backslash
7505 and
7506 \end_layout
7507
7508 \begin_layout Itemize
7509
7510 \family typewriter
7511
7512 \backslash
7513 email
7514 \end_layout
7515
7516 \begin_layout Itemize
7517
7518 \family typewriter
7519
7520 \backslash
7521 appendix
7522 \end_layout
7523
7524 \begin_layout Itemize
7525
7526 \family typewriter
7527
7528 \backslash
7529 authorrunning
7530 \end_layout
7531
7532 \begin_layout Itemize
7533
7534 \family typewriter
7535
7536 \backslash
7537 inst{}
7538 \end_layout
7539
7540 \begin_layout Itemize
7541
7542 \family typewriter
7543
7544 \backslash
7545 keywords{}
7546 \end_layout
7547
7548 \begin_layout Itemize
7549
7550 \family typewriter
7551
7552 \backslash
7553 object{}
7554 \end_layout
7555
7556 \begin_layout Itemize
7557
7558 \family typewriter
7559
7560 \backslash
7561 titlerunning{}
7562 \end_layout
7563
7564 \begin_layout Standard
7565 If you want to use any of these commands, you have to enter them yourself.
7566  
7567 \series bold
7568 Do not forget to mark them as LaTeX code!
7569 \end_layout
7570
7571 \begin_layout Subsection
7572 Figure and Table Floats
7573 \end_layout
7574
7575 \begin_layout Standard
7576 LyX provides support for the necessary float environments 
7577 \family sans
7578 figure, figure*, table
7579 \family default
7580  and 
7581 \family sans
7582 table*
7583 \family default
7584 , therefore we won't tell much about it here.
7585  Refer to the 
7586 \emph on
7587 User's
7588 \begin_inset space ~
7589 \end_inset
7590
7591 Guide
7592 \emph default
7593 .
7594  Just remember that tables should be left-aligned.
7595  For that, select the table and change the alignment in 
7596 \family sans
7597 Edit\SpecialChar \menuseparator
7598 Paragraph
7599 \begin_inset space ~
7600 \end_inset
7601
7602 Settings.
7603 \end_layout
7604
7605 \begin_layout Standard
7606 There is only one special thing: the figures with caption besides the figure.
7607  To create such a figure, you have to do the following:
7608 \end_layout
7609
7610 \begin_layout Enumerate
7611 Create a wide figure float: 
7612 \family sans
7613 Insert\SpecialChar \menuseparator
7614 Float\SpecialChar \menuseparator
7615 Figure
7616 \family default
7617 , then right click in the figure and select 
7618 \family sans
7619 \bar under
7620 S
7621 \bar default
7622 pan
7623 \begin_inset space ~
7624 \end_inset
7625
7626 columns
7627 \family default
7628 .
7629 \end_layout
7630
7631 \begin_layout Enumerate
7632 Enter your caption text.
7633 \end_layout
7634
7635 \begin_layout Enumerate
7636 Press 
7637 \family sans
7638 Return
7639 \family default
7640  to move the cursor above the caption.
7641 \end_layout
7642
7643 \begin_layout Enumerate
7644 Insert your figure
7645 \end_layout
7646
7647 \begin_layout Enumerate
7648 Position the cursor behind the figure and insert a horizontal fill: 
7649 \family sans
7650 Insert\SpecialChar \menuseparator
7651 Special
7652 \begin_inset space ~
7653 \end_inset
7654
7655 Character\SpecialChar \menuseparator
7656 Horizontal
7657 \begin_inset space ~
7658 \end_inset
7659
7660 Fill
7661 \family default
7662 .
7663 \end_layout
7664
7665 \begin_layout Enumerate
7666 Switch to LaTeX mode: 
7667 \family sans
7668 M-c
7669 \begin_inset space ~
7670 \end_inset
7671
7672 t
7673 \family default
7674 .
7675 \end_layout
7676
7677 \begin_layout Enumerate
7678 Enter 
7679 \family typewriter
7680
7681 \backslash
7682 parbox[b]{55mm}{
7683 \family default
7684 .
7685  
7686 \series bold
7687 Do not close the brace!
7688 \end_layout
7689
7690 \begin_layout Enumerate
7691 Position the cursor behind the caption text, switch to LaTeX mode and insert
7692  the closing brace: 
7693 \family sans
7694 M-c
7695 \begin_inset space ~
7696 \end_inset
7697
7698 t
7699 \family default
7700  
7701 \family typewriter
7702 }
7703 \family default
7704 .
7705 \end_layout
7706
7707 \begin_layout Standard
7708 Also, refer to the figures in the example paper.
7709 \end_layout
7710
7711 \begin_layout Subsection
7712 Referee layout
7713 \end_layout
7714
7715 \begin_layout Standard
7716 For submission, the paper has to be formated in a special double-spacing
7717  layout.
7718  For this purpose, you have to give the option 
7719 \family typewriter
7720 referee
7721 \family default
7722  to the documentclass.
7723  This must be done using the extra class options field in the 
7724 \family sans
7725 Document\SpecialChar \menuseparator
7726 Settings
7727 \family default
7728  dialog.
7729  Just enter the string 
7730 \family typewriter
7731 referee
7732 \family default
7733  there.
7734 \end_layout
7735
7736 \begin_layout Subsection
7737 The example paper
7738 \end_layout
7739
7740 \begin_layout Standard
7741 The 
7742 \family sans
7743 Examples
7744 \family default
7745  directory contains an example paper written with LyX.
7746  It is the example paper from the original macro package, translated to
7747  LyX.
7748  Use it for inspiration, and compare the original LaTeX code with LyX way
7749  of writing.
7750 \end_layout
7751
7752 \begin_layout Section
7753 AASTeX
7754 \end_layout
7755
7756 \begin_layout Standard
7757 by 
7758 \noun on
7759 Mike Ressler
7760 \end_layout
7761
7762 \begin_layout Subsection
7763 Introduction
7764 \end_layout
7765
7766 \begin_layout Standard
7767 AASTeX is a set of macros produced by the American Astronomical Society
7768  to facilitate electronic manuscript submission to the three journals they
7769  publish: the Astrophysical Journal (including the Letters and Supplement),
7770  the Astronomical Journal, and the Publications of the Astronomical Society
7771  of the Pacific.
7772  LyX has proven to be an excellent tool for generating these documents,
7773  especially given its equation, citation, and figure handling capabilities.
7774  LyX requires version 5.0 (or higher) of these macros; preferably 5.2, which
7775  is the version described here, or higher.
7776  Versions prior to 5.0 are intended for use with LaTeX2.09 and are fundamentally
7777  incompatible with LyX.
7778  The AASTeX package may be downloaded from the AASTeX Web site
7779 \end_layout
7780
7781 \begin_layout Standard
7782 \begin_inset VSpace medskip
7783 \end_inset
7784
7785
7786 \end_layout
7787
7788 \begin_layout Standard
7789 \align center
7790 \begin_inset Flex URL
7791 status collapsed
7792
7793 \begin_layout Plain Layout
7794
7795 http://www.journals.uchicago.edu/AAS/AASTeX
7796 \end_layout
7797
7798 \end_inset
7799
7800
7801 \end_layout
7802
7803 \begin_layout Standard
7804 \begin_inset VSpace medskip
7805 \end_inset
7806
7807
7808 \end_layout
7809
7810 \begin_layout Standard
7811 A complete user guide is contained in that package and you should familiarize
7812  yourself with it thoroughly before embarking on writing a paper in LyX.
7813  LyX will not reduce the need to figure out all the AASTeX commands, it
7814  will only reduce the drudgery of typing everything in.
7815  It is your responsibility to ensure that the final exported LaTeX document
7816  conforms completely to the requirements of the journal to which you are
7817  submitting your paper.
7818 \end_layout
7819
7820 \begin_layout Subsection
7821 Starting a New Paper
7822 \end_layout
7823
7824 \begin_layout Standard
7825 I strongly suggest that you start with the AASTeX template file.
7826  Click on 
7827 \family sans
7828 File\SpecialChar \menuseparator
7829 New from
7830 \family default
7831  
7832 \family sans
7833 Template
7834 \family default
7835 , enter the new file name, then choose the 
7836 \family typewriter
7837 aastex.lyx
7838 \family default
7839  template.
7840  This will show the most common fields found in a manuscript.
7841  Simply overwrite the existing text (including the brackets, 
7842 \family typewriter
7843 <>
7844 \family default
7845 ) with the correct information.
7846  Many of the AASTeX commands and environments can be implemented directly
7847  in LyX, but some cannot: most noticeably 
7848 \family typewriter
7849
7850 \backslash
7851 altaffilmark
7852 \family default
7853  and 
7854 \family typewriter
7855
7856 \backslash
7857 altaffiltext
7858 \family default
7859 , which should stick out like a sore thumb if you actually just opened the
7860  template file.
7861  For commands such as these, the LaTeX code must be entered directly and
7862  marked as such.
7863  Such commands are referred to as TeX code, or Evil Red Text.
7864  I tried to minimize the amount of TeX code needed in an AASTeX document,
7865  but there is still a bit more required than any of us would like.
7866 \end_layout
7867
7868 \begin_layout Subsection
7869 Finishing Your Paper
7870 \end_layout
7871
7872 \begin_layout Standard
7873 When the paper is finished to your satisfaction and previews/prints correctly,
7874  there are a few 
7875 \begin_inset Quotes eld
7876 \end_inset
7877
7878 postprocessing
7879 \begin_inset Quotes erd
7880 \end_inset
7881
7882  actions which need to be done before you submit it to the journals.
7883  
7884 \end_layout
7885
7886 \begin_layout Enumerate
7887 Export your paper as a LaTeX file (
7888 \family sans
7889 File\SpecialChar \menuseparator
7890 Export\SpecialChar \menuseparator
7891 LaTeX
7892 \family default
7893 ).
7894  
7895 \end_layout
7896
7897 \begin_layout Enumerate
7898 Edit the resulting 
7899 \family typewriter
7900 .tex
7901 \family default
7902  file with your favorite text editor
7903 \end_layout
7904
7905 \begin_deeper
7906 \begin_layout Enumerate
7907 remove the comment lines before the 
7908 \family typewriter
7909
7910 \backslash
7911 documentclass
7912 \family default
7913  command
7914 \end_layout
7915
7916 \begin_layout Enumerate
7917 remove the 
7918 \family typewriter
7919
7920 \backslash
7921 usepackage...{fontenc}
7922 \family default
7923  line if it appears (usually just after 
7924 \family typewriter
7925
7926 \backslash
7927 documentclass
7928 \family default
7929 }; also remove the 
7930 \family typewriter
7931
7932 \backslash
7933 secnumdepth
7934 \family default
7935  line if it appears.
7936 \end_layout
7937
7938 \begin_layout Enumerate
7939 remove everything between (and including) the 
7940 \family typewriter
7941
7942 \backslash
7943 makeatletter
7944 \family default
7945  and 
7946 \family typewriter
7947
7948 \backslash
7949 makeatother
7950 \family default
7951  commands, except for any commands you specifically put into the LaTeX preamble
7952  (which should appear immediately after the 
7953 \begin_inset Quotes eld
7954 \end_inset
7955
7956 User specified LaTeX commands
7957 \begin_inset Quotes erd
7958 \end_inset
7959
7960  comment in the 
7961 \family typewriter
7962 .tex
7963 \family default
7964  file).
7965 \end_layout
7966
7967 \end_deeper
7968 \begin_layout Enumerate
7969 Run the resulting file through LaTeX to make sure it still processes correctly.
7970 \end_layout
7971
7972 \begin_layout Enumerate
7973 Reread the journal requirements to make sure your filenames and formats
7974  are correct.
7975 \end_layout
7976
7977 \begin_layout Enumerate
7978 Submit it.
7979 \end_layout
7980
7981 \begin_layout Subsection
7982 Comments On Specific Commands
7983 \end_layout
7984
7985 \begin_layout Standard
7986 I will not describe the detailed usage of the individual AASTeX commands:
7987  the AASTeX User Guide (
7988 \family typewriter
7989 aasguide.tex
7990 \family default
7991 ) gives a good description of each.
7992  Thus it's probably easiest for me to go down the list as found in the guide
7993  and offer comments where necessary.
7994  So let's begin \SpecialChar \ldots{}
7995
7996 \end_layout
7997
7998 \begin_layout Subsubsection
7999 Things that work as expected
8000 \end_layout
8001
8002 \begin_layout Standard
8003 \begin_inset ERT
8004 status open
8005
8006 \begin_layout Plain Layout
8007
8008
8009 \backslash
8010 begin{sloppypar}
8011 \end_layout
8012
8013 \end_inset
8014
8015
8016 \end_layout
8017
8018 \begin_layout Standard
8019 Because they work as you might expect, I simply list them and the section
8020  they are found in: 
8021 \family typewriter
8022
8023 \backslash
8024 documentclass
8025 \family default
8026  (2.1.1), 
8027 \family typewriter
8028
8029 \backslash
8030 begin{document}
8031 \family default
8032  (2.2), 
8033 \family typewriter
8034
8035 \backslash
8036 title
8037 \family default
8038  (2.3), 
8039 \family typewriter
8040
8041 \backslash
8042 author
8043 \family default
8044  (2.3), 
8045 \family typewriter
8046
8047 \backslash
8048 affil
8049 \family default
8050  (2.3), 
8051 \family typewriter
8052
8053 \backslash
8054 abstract
8055 \family default
8056  (2.4), 
8057 \family typewriter
8058
8059 \backslash
8060 keywords
8061 \family default
8062  (2.5), 
8063 \family typewriter
8064
8065 \backslash
8066 section
8067 \family default
8068  (2.7), 
8069 \family typewriter
8070
8071 \backslash
8072 subsection
8073 \family default
8074  (2.7), 
8075 \family typewriter
8076
8077 \backslash
8078 subsubsection
8079 \family default
8080  (2.7), 
8081 \family typewriter
8082
8083 \backslash
8084 paragraph
8085 \family default
8086  (2.7), 
8087 \family typewriter
8088
8089 \backslash
8090 facility
8091 \family default
8092  (2.10), 
8093 \family typewriter
8094
8095 \backslash
8096 begin{displaymath}
8097 \family default
8098  (2.12), 
8099 \family typewriter
8100
8101 \backslash
8102 begin{equation}
8103 \family default
8104  (2.12), 
8105 \family typewriter
8106
8107 \backslash
8108 begin{eqnarray}
8109 \family default
8110  (2.12), 
8111 \family typewriter
8112
8113 \backslash
8114 begin{mathletters}
8115 \family default
8116  (2.12), 
8117 \family typewriter
8118
8119 \backslash
8120 begin{thebibliography}
8121 \family default
8122  (2.13.1), 
8123 \family typewriter
8124
8125 \backslash
8126 bibitem
8127 \family default
8128  (2.13.2), all the cite commands and their variations (2.13.2), the generic
8129  graphicx figure commands (2.14.1), 
8130 \family typewriter
8131
8132 \backslash
8133 begin{table}
8134 \family default
8135  (2.15.4), 
8136 \family typewriter
8137
8138 \backslash
8139 begin{tabular}
8140 \family default
8141  (2.15.4), 
8142 \family typewriter
8143
8144 \backslash
8145 caption
8146 \family default
8147  (2.15.4), 
8148 \family typewriter
8149
8150 \backslash
8151 label
8152 \family default
8153  (2.15.4, amongst other places), 
8154 \family typewriter
8155
8156 \backslash
8157 tablerefs
8158 \family default
8159  (2.15.5), 
8160 \family typewriter
8161
8162 \backslash
8163 tablecomments
8164 \family default
8165  (2.15.5), 
8166 \family typewriter
8167
8168 \backslash
8169 url
8170 \family default
8171  (2.17.4), 
8172 \family typewriter
8173
8174 \backslash
8175 end{document}
8176 \family default
8177  (2.18).
8178 \end_layout
8179
8180 \begin_layout Standard
8181 The following style options also work correctly: 
8182 \family typewriter
8183 longabstract
8184 \family default
8185  (2.4), 
8186 \family typewriter
8187 preprint
8188 \family default
8189  (3.2.1), 
8190 \family typewriter
8191 preprint2
8192 \family default
8193  (3.2.2), 
8194 \family typewriter
8195 eqsecnum
8196 \family default
8197  (3.3), 
8198 \family typewriter
8199 flushrt
8200 \family default
8201  (3.4).
8202  Simply put them in the 
8203 \family sans
8204 Options
8205 \family default
8206  box in 
8207 \family sans
8208 Layout\SpecialChar \menuseparator
8209 Document
8210 \family default
8211 .
8212 \end_layout
8213
8214 \begin_layout Standard
8215 \begin_inset ERT
8216 status open
8217
8218 \begin_layout Plain Layout
8219
8220
8221 \backslash
8222 end{sloppypar}
8223 \end_layout
8224
8225 \end_inset
8226
8227
8228 \end_layout
8229
8230 \begin_layout Subsubsection
8231 Things that work, but require more comment
8232 \end_layout
8233
8234 \begin_layout Standard
8235 The following items work, but require a little more discussion:
8236 \end_layout
8237
8238 \begin_layout Itemize
8239 These items are reserved for use by the journal editors, but you can put
8240  them into the LaTeX preamble if you feel compelled to do so: 
8241 \family typewriter
8242
8243 \backslash
8244 received
8245 \family default
8246
8247 \family typewriter
8248
8249 \backslash
8250 revised
8251 \family default
8252
8253 \family typewriter
8254
8255 \backslash
8256 accepted
8257 \family default
8258
8259 \family typewriter
8260
8261 \backslash
8262 ccc
8263 \family default
8264
8265 \family typewriter
8266
8267 \backslash
8268 cpright
8269 \family default
8270  (all from 2.1.3)
8271 \end_layout
8272
8273 \begin_layout Itemize
8274 These items may be placed in the LaTeX preamble, and are included as blanks
8275  in the template file: 
8276 \family typewriter
8277
8278 \backslash
8279 slugcomment
8280 \family default
8281  (2.1.4), 
8282 \family typewriter
8283
8284 \backslash
8285 shorttitle
8286 \family default
8287  (2.1.5), 
8288 \family typewriter
8289
8290 \backslash
8291 shortauthors
8292 \family default
8293  (2.1.5)
8294 \end_layout
8295
8296 \begin_layout Itemize
8297
8298 \family typewriter
8299
8300 \backslash
8301 email
8302 \family default
8303  (2.3) – can only be used 
8304 \begin_inset Quotes eld
8305 \end_inset
8306
8307 standalone
8308 \begin_inset Quotes erd
8309 \end_inset
8310
8311 , not in the middle of a paragraph.
8312  Use TeX code if you need to embed it.
8313 \end_layout
8314
8315 \begin_layout Itemize
8316
8317 \family typewriter
8318
8319 \backslash
8320 and
8321 \family default
8322  (2.3) – will have extra {} after it.
8323  This should not cause an error.
8324 \end_layout
8325
8326 \begin_layout Itemize
8327
8328 \family typewriter
8329
8330 \backslash
8331 notetoeditor
8332 \family default
8333  (2.6) – can only be used 
8334 \begin_inset Quotes eld
8335 \end_inset
8336
8337 standalone
8338 \begin_inset Quotes erd
8339 \end_inset
8340
8341 , not in the middle of a paragraph.
8342  Use TeX code if you need to embed it.
8343 \end_layout
8344
8345 \begin_layout Itemize
8346
8347 \family typewriter
8348
8349 \backslash
8350 placetable
8351 \family default
8352  (2.8) – can't insert a cross-reference tag, you must type the tag name by
8353  hand
8354 \end_layout
8355
8356 \begin_layout Itemize
8357
8358 \family typewriter
8359
8360 \backslash
8361 placefigure
8362 \family default
8363  (2.8) – same as for 
8364 \family typewriter
8365
8366 \backslash
8367 placetable
8368 \end_layout
8369
8370 \begin_layout Itemize
8371
8372 \family typewriter
8373
8374 \backslash
8375 acknowledgements
8376 \family default
8377  (2.9) – will have extra {} after it.
8378  This should not cause an error.
8379 \end_layout
8380
8381 \begin_layout Itemize
8382
8383 \family typewriter
8384
8385 \backslash
8386 appendix
8387 \family default
8388  (2.11) – will have extra {} after it.
8389  This should not cause an error.
8390 \end_layout
8391
8392 \begin_layout Itemize
8393
8394 \family typewriter
8395
8396 \backslash
8397 figcaption
8398 \family default
8399  (2.14.2) – you can insert an optional filename argument by placing the cursor
8400  at the beginning of the text and selecting 
8401 \family sans
8402 Insert\SpecialChar \menuseparator
8403 Short Title
8404 \family default
8405 .
8406  
8407 \begin_inset Quotes eld
8408 \end_inset
8409
8410 Short Title
8411 \begin_inset Quotes erd
8412 \end_inset
8413
8414  inserts an optional argument of the type needed by 
8415 \family typewriter
8416
8417 \backslash
8418 figcaption
8419 \family default
8420 .
8421  Hopefully it will be renamed someday.
8422 \end_layout
8423
8424 \begin_layout Itemize
8425
8426 \family typewriter
8427
8428 \backslash
8429 objectname
8430 \family default
8431  (2.17.1) – same as 
8432 \family typewriter
8433
8434 \backslash
8435 figcaption
8436 \family default
8437  for the catalog ID optional parameter
8438 \end_layout
8439
8440 \begin_layout Itemize
8441
8442 \family typewriter
8443
8444 \backslash
8445 dataset
8446 \family default
8447  (2.17.1) – same as 
8448 \family typewriter
8449
8450 \backslash
8451 figcaption
8452 \family default
8453  for the catalog ID optional parameter
8454 \end_layout
8455
8456 \begin_layout Subsubsection
8457 Things not implemented, use TeX code
8458 \end_layout
8459
8460 \begin_layout Standard
8461 \begin_inset ERT
8462 status open
8463
8464 \begin_layout Plain Layout
8465
8466
8467 \backslash
8468 begin{sloppypar}
8469 \end_layout
8470
8471 \end_inset
8472
8473
8474 \end_layout
8475
8476 \begin_layout Standard
8477
8478 \family typewriter
8479
8480 \backslash
8481 altaffilmark
8482 \family default
8483  (2.3), 
8484 \family typewriter
8485
8486 \backslash
8487 altaffiltext
8488 \family default
8489  (2.3), 
8490 \family typewriter
8491
8492 \backslash
8493 eqnum
8494 \family default
8495  (2.12), 
8496 \family typewriter
8497
8498 \backslash
8499 setcounter{equation}
8500 \family default
8501  (2.12), Journal name abbreviations (2.13.4), 
8502 \family typewriter
8503
8504 \backslash
8505 figurenum
8506 \family default
8507  (2.14.1), 
8508 \family typewriter
8509
8510 \backslash
8511 epsscale
8512 \family default
8513  (2.14.1), 
8514 \family typewriter
8515
8516 \backslash
8517 plotone
8518 \family default
8519  (2.14.1), 
8520 \family typewriter
8521
8522 \backslash
8523 plottwo
8524 \family default
8525  (2.14.1), 
8526 \family typewriter
8527
8528 \backslash
8529 tablenum
8530 \family default
8531  (2.15.4), 
8532 \family typewriter
8533
8534 \backslash
8535 tableline
8536 \family default
8537  (2.15.4, insert it as the first element in the lefthand cell after where
8538  you want it.
8539  Don't use any of LyX's rules in the table), 
8540 \family typewriter
8541
8542 \backslash
8543 tablenotemark
8544 \family default
8545  (2.15.5), 
8546 \family typewriter
8547
8548 \backslash
8549 tablenotetext
8550 \family default
8551  (2.15.5), much of Misc (2.17, except 
8552 \family typewriter
8553
8554 \backslash
8555 objectname
8556 \family default
8557
8558 \family typewriter
8559
8560 \backslash
8561 dataset
8562 \family default
8563
8564 \family typewriter
8565
8566 \backslash
8567 url
8568 \family default
8569 , and 
8570 \family typewriter
8571
8572 \backslash
8573 email
8574 \family default
8575 ; see above), 
8576 \family typewriter
8577
8578 \backslash
8579 singlespace
8580 \family default
8581  (3.1), 
8582 \family typewriter
8583
8584 \backslash
8585 doublespace
8586 \family default
8587  (3.1), 
8588 \family typewriter
8589
8590 \backslash
8591 onecolumn
8592 \family default
8593  (3.2), 
8594 \family typewriter
8595
8596 \backslash
8597 twocolumn
8598 \family default
8599  (3.2)
8600 \end_layout
8601
8602 \begin_layout Standard
8603 \begin_inset ERT
8604 status open
8605
8606 \begin_layout Plain Layout
8607
8608
8609 \backslash
8610 end{sloppypar}
8611 \end_layout
8612
8613 \end_inset
8614
8615
8616 \end_layout
8617
8618 \begin_layout Subsubsection
8619 Things that cannot be implemented
8620 \end_layout
8621
8622 \begin_layout Standard
8623 \SpecialChar \ldots{}
8624  at least in any meaningful sort of way, so I suggest ignoring them.
8625  They are the references environment (2.13.3), and the deluxetable environment
8626  (2.15).
8627  If you really, really need to use deluxetable, I suggest editing it in
8628  a separate file with a text editor, then using 
8629 \family sans
8630 Insert\SpecialChar \menuseparator
8631 Child
8632 \begin_inset space ~
8633 \end_inset
8634
8635 Document
8636 \family default
8637  to include it in your LyX document.
8638  See the 
8639 \family typewriter
8640 aas_sample.lyx
8641 \family default
8642  file to see an example of this.
8643 \end_layout
8644
8645 \begin_layout Subsection
8646 FAQs, Tips, Tricks, and Other Ruminations
8647 \end_layout
8648
8649 \begin_layout Subsubsection
8650 Getting LyX and AASTeX to cooperate
8651 \end_layout
8652
8653 \begin_layout Standard
8654 It can be a bit tricky to get LyX to recognize a new layout and document
8655  class.
8656  When all else fails, do this:
8657 \end_layout
8658
8659 \begin_layout Enumerate
8660 Make certain that LaTeX can find AASTeX.
8661  Copy sample.tex (and perhaps table.tex) from the AASTeX distribution into
8662  a directory completely unrelated to LaTeX or AASTeX and run LaTeX on 
8663 \family typewriter
8664 sample.tex
8665 \family default
8666 .
8667 \end_layout
8668
8669 \begin_layout Enumerate
8670 Make certain that 
8671 \family typewriter
8672 aastex.layout
8673 \family default
8674  appears in LyX's 
8675 \family typewriter
8676 layouts
8677 \family default
8678  folder
8679 \end_layout
8680
8681 \begin_layout Enumerate
8682 Rerun 
8683 \family sans
8684 Tools\SpecialChar \menuseparator
8685 Reconfigure
8686 \family default
8687  in LyX, then restart LyX.
8688 \end_layout
8689
8690 \begin_layout Enumerate
8691 Open a regular new file, not from a template.
8692  Does AASTeX appear in the class list in 
8693 \family sans
8694 Document\SpecialChar \menuseparator
8695 Settings
8696 \family default
8697 ?
8698 \end_layout
8699
8700 \begin_layout Standard
8701 If you get a warning from an existing AASTeX document about not being able
8702  to find the AASTeX layout or a message about 
8703 \begin_inset Quotes eld
8704 \end_inset
8705
8706 You should not mix title layouts with normal ones
8707 \begin_inset Quotes erd
8708 \end_inset
8709
8710 , things haven't been installed correctly.
8711 \end_layout
8712
8713 \begin_layout Subsubsection
8714 LaTeX error processing a table 
8715 \end_layout
8716
8717 \begin_layout Standard
8718 LyX, by default, attempts to center the table caption/title.
8719  This seems to produce a bad interaction in AASTeX so you should click somewhere
8720  in the caption/title, then select 
8721 \family sans
8722 Edit\SpecialChar \menuseparator
8723 Paragraph
8724 \begin_inset space ~
8725 \end_inset
8726
8727 Settings
8728 \family default
8729 , then set the 
8730 \family sans
8731 Alignment
8732 \family default
8733  to 
8734 \family sans
8735 Block
8736 \family default
8737 .
8738  This took care of it for me.
8739 \end_layout
8740
8741 \begin_layout Subsubsection
8742 References
8743 \end_layout
8744
8745 \begin_layout Standard
8746 A couple of things: 1) I have noticed some funny spacing in the reference
8747  entries in the text.
8748  When you enter the bibliography item data, make sure their is 
8749 \emph on
8750 no
8751 \emph default
8752  space between the last author and the parenthesis setting off the year;
8753  
8754 \emph on
8755 e.
8756 \begin_inset space \thinspace{}
8757 \end_inset
8758
8759 g.
8760 \begin_inset space \space{}
8761 \end_inset
8762
8763
8764 \emph default
8765 type 
8766 \family typewriter
8767 Ressler(1992)
8768 \family default
8769 , not 
8770 \family typewriter
8771 Ressler (1992)
8772 \family default
8773 .
8774  2) Entering the references at all is not obvious.
8775  The easiest thing is to start typing your first reference at the end of
8776  the document, then mark it as type 
8777 \family sans
8778 References
8779 \family default
8780 .
8781  That will put a small gray box in front of what you just typed.
8782  Click on the box to fill in the rest of the information.
8783  For new references, go to the end of an existing reference and press return.
8784  That will create a new line with its own box, etc.
8785 \end_layout
8786
8787 \begin_layout Subsubsection
8788 Including EPS files
8789 \end_layout
8790
8791 \begin_layout Standard
8792 Even though AASTeX provides its own figure commands (
8793 \family typewriter
8794
8795 \backslash
8796 plotone
8797 \family default
8798 , for example), I much prefer LaTeX's standard figure commands (with the
8799  default graphicx).
8800  You can insert the 
8801 \family typewriter
8802
8803 \backslash
8804 plotone
8805 \family default
8806 , etc.
8807 \begin_inset space ~
8808 \end_inset
8809
8810 commands as TeX code into a Figure Float box if you desire, but I never
8811  have much luck getting the layout right.
8812  With the standard graphics, LyX will insert a 
8813 \family typewriter
8814
8815 \backslash
8816 usepackage{graphicx}
8817 \family default
8818  command into the LaTeX preamble and handle the figures in the standard
8819  LaTeX2e way, interspersing the figures in the text.
8820  I believe ApJ accepts figures exactly this way now; AJ might still use
8821  the 
8822 \begin_inset Quotes eld
8823 \end_inset
8824
8825 stack everything at the end
8826 \begin_inset Quotes erd
8827 \end_inset
8828
8829  technique.
8830 \end_layout
8831
8832 \begin_layout Subsubsection
8833 Things I could have done, but didn't
8834 \end_layout
8835
8836 \begin_layout Standard
8837 There are a few 
8838 \begin_inset Quotes eld
8839 \end_inset
8840
8841 pretty
8842 \begin_inset Quotes erd
8843 \end_inset
8844
8845  things I could have implemented, but chose not to.
8846  For instance, I saw no point in double-spacing the text in the LyX window,
8847  even though it is double-spaced in the paper manuscript.
8848  Also, I chose not to make separate layouts for the preprint and preprint2
8849  styles.
8850  Since I assume you will spend most of your time in the plain manuscript
8851  mode anyway, I decided not to chew up more disk space with this.
8852  
8853 \end_layout
8854
8855 \begin_layout Subsection
8856 Final Caveat
8857 \end_layout
8858
8859 \begin_layout Standard
8860 Your mileage may vary.
8861  I've now had papers published by both ApJ and AJ that have had 98% of the
8862  effort done in LyX; the last 2% was the LaTeX post-processing and a few
8863  cleanups.
8864  I have had no trouble with the submission process, and I'm sure the journals
8865  were never aware that there might be a difference.
8866  So, go forth and publish!
8867 \end_layout
8868
8869 \begin_layout Section
8870 AMS LaTeX
8871 \end_layout
8872
8873 \begin_layout Standard
8874 by 
8875 \noun on
8876 David Johnson; updated by Richard Heck
8877 \end_layout
8878
8879 \begin_layout Standard
8880 \begin_inset VSpace bigskip
8881 \end_inset
8882
8883
8884 \end_layout
8885
8886 \begin_layout Standard
8887 \noindent
8888 The AMS LaTeX layouts are set up to conform to suggested styles for mathematical
8889  papers to be submitted to American Mathematical Society publications.
8890  The layouts are not tailored to a specific journal, but easily can be.
8891  You should refer to the AMS documentation for specific instructions for
8892  each journal (usually it will entail only changing a single line in the
8893  TeX output).
8894  That documentation is available on the Web at 
8895 \begin_inset Flex URL
8896 status open
8897
8898 \begin_layout Plain Layout
8899
8900 http://www.ams.org
8901 \end_layout
8902
8903 \end_inset
8904
8905  or by ftp at 
8906 \begin_inset Flex URL
8907 status open
8908
8909 \begin_layout Plain Layout
8910
8911 ftp://ftp.ams.org/pub/tex/amslatex/
8912 \end_layout
8913
8914 \end_inset
8915
8916 .
8917  These layouts are appropriate, and useful, for any mathematical writing.
8918  
8919 \end_layout
8920
8921 \begin_layout Standard
8922 There are two basic AMS LaTeX layouts: 
8923 \end_layout
8924
8925 \begin_layout Itemize
8926 amsart: The standard AMS article format.
8927 \end_layout
8928
8929 \begin_layout Itemize
8930 amsbook: the standard AMS book (really, monograph) format.
8931  
8932 \end_layout
8933
8934 \begin_layout Standard
8935 The layouts themselves contain only the minimum necessary to use the AMS
8936  classes.
8937  They do not, in particular, contain any of the `theorem' environments used
8938  for setting theorems, lemmas, and the like.
8939  These are contained, instead, in the 
8940 \begin_inset Flex Code
8941 status collapsed
8942
8943 \begin_layout Plain Layout
8944 Theorems (AMS)
8945 \end_layout
8946
8947 \end_inset
8948
8949  module, which is loaded by default when when you select one of the AMS
8950  classes.
8951  (It can also be used with other classes and can be removed, if you would
8952  rather use something else.) Less commonly used environments are in the 
8953 \begin_inset Flex Code
8954 status collapsed
8955
8956 \begin_layout Plain Layout
8957 Theorems (AMS-Extended)
8958 \end_layout
8959
8960 \end_inset
8961
8962  module, which must be loaded manually.
8963 \end_layout
8964
8965 \begin_layout Standard
8966 By default, theorems and the like are numbered consecutively throughout
8967  the document, but this may be modified by loading the module 
8968 \begin_inset Flex Code
8969 status collapsed
8970
8971 \begin_layout Plain Layout
8972 Theorems (Order by Section)
8973 \end_layout
8974
8975 \end_inset
8976
8977  or, if you are using 
8978 \begin_inset Flex Code
8979 status collapsed
8980
8981 \begin_layout Plain Layout
8982 book (AMS)
8983 \end_layout
8984
8985 \end_inset
8986
8987 , the module 
8988 \begin_inset Flex Code
8989 status collapsed
8990
8991 \begin_layout Plain Layout
8992 Theorems (Order by Chapter)
8993 \end_layout
8994
8995 \end_inset
8996
8997 .
8998  These will number the results as 
8999 \begin_inset Formula $n.m$
9000 \end_inset
9001
9002 , where the first number refers to the section (or chapter) and the second
9003  refers to the total number of results so far in that section (or chapter).
9004  Many environments are also available unnumbered.
9005  These are indicated by an asterisk at the end.
9006  If you happen to want 
9007 \emph on
9008 only
9009 \emph default
9010  unnumbered results, the module 
9011 \begin_inset Flex Code
9012 status collapsed
9013
9014 \begin_layout Plain Layout
9015 Theorems (Starred)
9016 \end_layout
9017
9018 \end_inset
9019
9020  provides that option.
9021 \end_layout
9022
9023 \begin_layout Standard
9024 Note that these modules do not 
9025 \emph on
9026 have
9027 \emph default
9028  to be used with the AMS classes.
9029  It is perfectly possible to use the 
9030 \begin_inset Flex Code
9031 status collapsed
9032
9033 \begin_layout Plain Layout
9034 Theorems (AMS)
9035 \end_layout
9036
9037 \end_inset
9038
9039  module, and the others mentioned, with other classes, such as 
9040 \begin_inset Flex Code
9041 status collapsed
9042
9043 \begin_layout Plain Layout
9044 article
9045 \end_layout
9046
9047 \end_inset
9048
9049
9050 \begin_inset Flex Code
9051 status collapsed
9052
9053 \begin_layout Plain Layout
9054 report
9055 \end_layout
9056
9057 \end_inset
9058
9059
9060 \begin_inset Flex Code
9061 status collapsed
9062
9063 \begin_layout Plain Layout
9064 book (KOMA-script)
9065 \end_layout
9066
9067 \end_inset
9068
9069 , and so forth.
9070 \end_layout
9071
9072 \begin_layout Subsection
9073 What these layouts provide
9074 \end_layout
9075
9076 \begin_layout Standard
9077 There is a long list of included environments provided by these layouts.
9078  In AMS-LaTeX, there is, in fact, an opportunity to define an unlimited
9079  variety of `theorem' environments.
9080  However, the AMS recommends the environments that are available in LyX.
9081  
9082 \end_layout
9083
9084 \begin_layout Standard
9085 The following environments—as well as the standard environments, such as
9086  
9087 \begin_inset Flex Noun
9088 status collapsed
9089
9090 \begin_layout Plain Layout
9091 section
9092 \end_layout
9093
9094 \end_inset
9095
9096
9097 \begin_inset Flex Noun
9098 status collapsed
9099
9100 \begin_layout Plain Layout
9101 bibliography
9102 \end_layout
9103
9104 \end_inset
9105
9106
9107 \begin_inset Flex Noun
9108 status collapsed
9109
9110 \begin_layout Plain Layout
9111 title
9112 \end_layout
9113
9114 \end_inset
9115
9116
9117 \begin_inset Flex Noun
9118 status collapsed
9119
9120 \begin_layout Plain Layout
9121 author
9122 \end_layout
9123
9124 \end_inset
9125
9126 , and 
9127 \begin_inset Flex Noun
9128 status collapsed
9129
9130 \begin_layout Plain Layout
9131 date
9132 \end_layout
9133
9134 \end_inset
9135
9136 —are provided by 
9137 \begin_inset Flex Code
9138 status collapsed
9139
9140 \begin_layout Plain Layout
9141 article (AMS)
9142 \end_layout
9143
9144 \end_inset
9145
9146  and 
9147 \begin_inset Flex Code
9148 status collapsed
9149
9150 \begin_layout Plain Layout
9151 book (AMS)
9152 \end_layout
9153
9154 \end_inset
9155
9156 :
9157 \end_layout
9158
9159 \begin_layout Description
9160 Address This should be the author's permanent address.
9161 \end_layout
9162
9163 \begin_layout Description
9164 Current
9165 \begin_inset space ~
9166 \end_inset
9167
9168 Address This should be the author's temporary address at the time of submission,
9169  if different from the Address.
9170 \end_layout
9171
9172 \begin_layout Description
9173 Email Author's e-mail address
9174 \end_layout
9175
9176 \begin_layout Description
9177 URL Author's Web address, if desired.
9178 \end_layout
9179
9180 \begin_layout Description
9181 Keywords Key words or phrases used to identify specific topics discussed
9182  in the paper.
9183 \end_layout
9184
9185 \begin_layout Description
9186 Subjectclass These refer to the AMS Subject Classifications, published and
9187  described in 
9188 \emph on
9189 Mathematical Reviews
9190 \emph default
9191 .
9192  These are also available online at the AMS cites listed above.
9193 \end_layout
9194
9195 \begin_layout Description
9196 Thanks
9197 \end_layout
9198
9199 \begin_layout Description
9200 Dedicatory
9201 \end_layout
9202
9203 \begin_layout Description
9204 Translator
9205 \end_layout
9206
9207 \begin_layout Standard
9208 The following environments are provided by both the 
9209 \begin_inset Flex Code
9210 status collapsed
9211
9212 \begin_layout Plain Layout
9213 Theorems
9214 \end_layout
9215
9216 \end_inset
9217
9218  and 
9219 \begin_inset Flex Code
9220 status collapsed
9221
9222 \begin_layout Plain Layout
9223 Theorems (AMS)
9224 \end_layout
9225
9226 \end_inset
9227
9228  modules, in the latter case in both starred (unnumbered) and unstarred
9229  (numbered) versions.
9230  These same environments are provided only in the starred versions by the
9231  
9232 \begin_inset Flex Code
9233 status collapsed
9234
9235 \begin_layout Plain Layout
9236 Theorems (Starred)
9237 \end_layout
9238
9239 \end_inset
9240
9241  module:
9242 \end_layout
9243
9244 \begin_layout Theorem
9245 This is typically used for the statements of major results.
9246  
9247 \end_layout
9248
9249 \begin_layout Corollary*
9250 This is used for statements which follow fairly directly from previous statement
9251 s.
9252  Again, these can be major results.
9253  
9254 \end_layout
9255
9256 \begin_layout Lemma
9257 These are smaller results needed to prove other statements.
9258 \end_layout
9259
9260 \begin_layout Proposition
9261 These are less major results which (hopefully) add to the general theory
9262  being discussed.
9263 \end_layout
9264
9265 \begin_layout Conjecture
9266 These are statements provided without justification, which the author does
9267  not know how to prove, but which seem to be true (to the author, at least).
9268 \end_layout
9269
9270 \begin_layout Definition*
9271 Guess what this is for.
9272  The font is different for this environment than for the previous ones.
9273  
9274 \end_layout
9275
9276 \begin_layout Example*
9277 Used for examples illustrating proven results.
9278 \end_layout
9279
9280 \begin_layout Problem
9281 It's not really known what this is for.
9282  You should figure it out.
9283 \end_layout
9284
9285 \begin_layout Exercise*
9286 Write a description for this one.
9287 \end_layout
9288
9289 \begin_layout Remark
9290 This environment is also a type of theorem, usually a lesser sort of observation.
9291 \end_layout
9292
9293 \begin_layout Claim*
9294 Often used in the course of giving a proof of a larger result.
9295 \end_layout
9296
9297 \begin_layout Case
9298 Generally, these are used to break up long arguments, using specific instances
9299  of some condition.
9300  
9301 \end_layout
9302
9303 \begin_layout Case
9304 The numbering scheme for cases is on its own, not together with other numbered
9305  statements.
9306  
9307 \end_layout
9308
9309 \begin_layout Proof
9310 At the end of this environment, a QED symbol (usually a square, but it can
9311  vary with different styles) is placed.
9312  If you want to have other environments within this one—for example, Case
9313  environments—and have the QED symbol appear only after them, then the other
9314  environments need to be nested within the proof environment.
9315  See the section 
9316 \emph on
9317 Nesting Environments
9318 \emph default
9319  of the 
9320 \emph on
9321 User's Guide
9322 \emph default
9323  for information on nesting.
9324 \end_layout
9325
9326 \begin_layout Standard
9327 And these environments are provided by 
9328 \begin_inset Flex Code
9329 status collapsed
9330
9331 \begin_layout Plain Layout
9332 Theorems (AMS-Extended)
9333 \end_layout
9334
9335 \end_inset
9336
9337 :
9338 \end_layout
9339
9340 \begin_layout Criterion*
9341 A required condition.
9342 \end_layout
9343
9344 \begin_layout Algorithm*
9345 A general procedure to be used.
9346 \end_layout
9347
9348 \begin_layout Axiom*
9349 This is a property or statement taken as true within the system being discussed.
9350 \end_layout
9351
9352 \begin_layout Condition*
9353 Sometimes used to state a condition assumed within the present context of
9354  discussion.
9355 \end_layout
9356
9357 \begin_layout Note*
9358 Similar to a Remark.
9359 \end_layout
9360
9361 \begin_layout Notation*
9362 Used for the explanation of, yes, notation.
9363 \end_layout
9364
9365 \begin_layout Summary
9366 Do we really need to tell you? 
9367 \end_layout
9368
9369 \begin_layout Acknowledgement*
9370 Acknowledgement.
9371 \end_layout
9372
9373 \begin_layout Conclusion*
9374 Sometimes used at the end of a long train of argument.
9375 \end_layout
9376
9377 \begin_layout Fact
9378 Used in a way similar to Proposition, though perhaps lower on the scale.
9379 \end_layout
9380
9381 \begin_layout Standard
9382 In addition, the AMS classes automatically provide the AMS LaTeX and AMS
9383  fonts packages.
9384  They need to be available on your system in order to use these environments.
9385 \end_layout
9386
9387 \begin_layout Section
9388 AGU journals (
9389 \family sans
9390 aguplus
9391 \family default
9392 )
9393 \end_layout
9394
9395 \begin_layout Standard
9396 by 
9397 \shape smallcaps
9398 Martin Vermeer
9399 \end_layout
9400
9401 \begin_layout Subsection
9402 Description
9403 \end_layout
9404
9405 \begin_layout Standard
9406 These are the layout files for some of the journals of the American Geophysical
9407  Society.
9408  It is assumed that you have both the AGU's own class files and AGUplus
9409  installed (everything to be found at
9410 \begin_inset Flex URL
9411 status collapsed
9412
9413 \begin_layout Plain Layout
9414
9415 ftp://ftp.agu.org/journals/latex/journals
9416 \end_layout
9417
9418 \end_inset
9419
9420 ).
9421 \end_layout
9422
9423 \begin_layout Subsection
9424 New styles
9425 \end_layout
9426
9427 \begin_layout Standard
9428 Redefined are 
9429 \family sans
9430 Paragraph
9431 \family default
9432
9433 \family sans
9434 Paragraph*
9435 \family default
9436 .
9437  They are still called this in the LyX GUI, though their LaTeX equivalents
9438  in the AGU classes are 
9439 \family sans
9440 Subsubsubsection
9441 \family default
9442  and 
9443 \family sans
9444 Subsubsubsection*
9445 \family default
9446 .
9447 \end_layout
9448
9449 \begin_layout Standard
9450 Newly defined styles are 
9451 \family sans
9452 Left_Header
9453 \family default
9454
9455 \family sans
9456 Right_Header
9457 \family default
9458
9459 \family sans
9460 Received
9461 \family default
9462
9463 \family sans
9464 Revised
9465 \family default
9466
9467 \family sans
9468 Accepted
9469 \family default
9470
9471 \family sans
9472 CCC
9473 \family default
9474
9475 \family sans
9476 PaperId
9477 \family default
9478
9479 \family sans
9480 AuthorAddr
9481 \family default
9482
9483 \family sans
9484 SlugComment
9485 \family default
9486 .
9487  These are mostly manuscript attributes and defined in the AGU class documentati
9488 on.
9489 \end_layout
9490
9491 \begin_layout Standard
9492 I suspect this is still badly incomplete.
9493 \end_layout
9494
9495 \begin_layout Subsection
9496 New floats
9497 \end_layout
9498
9499 \begin_layout Standard
9500
9501 \family sans
9502 Planotable
9503 \family default
9504  and 
9505 \family sans
9506 Plate
9507 \family default
9508 .
9509  We also have a new 
9510 \family sans
9511 Table_Caption
9512 \family default
9513 .
9514 \end_layout
9515
9516 \begin_layout Subsection
9517 Supported journals
9518 \end_layout
9519
9520 \begin_layout Itemize
9521
9522 \emph on
9523 Journal of Geophysical Research
9524 \emph default
9525
9526 \family typewriter
9527 jgrga.layout
9528 \family default
9529  — Martin Vermeer
9530 \end_layout
9531
9532 \begin_layout Standard
9533 Add your own, it isn't so hard! Look at the 
9534 \family typewriter
9535 jgrga.layout
9536 \family default
9537  example and 
9538 \family typewriter
9539 aguplus.inc
9540 \family default
9541 .
9542 \end_layout
9543
9544 \begin_layout Subsection
9545 Bugs and things to remember
9546 \end_layout
9547
9548 \begin_layout Standard
9549 In order to use the new layouts, you must remember to do the following for
9550  a new document:
9551 \end_layout
9552
9553 \begin_layout Enumerate
9554
9555 \emph on
9556 Turn off babel
9557 \emph default
9558 .
9559  This can be done in the 
9560 \family sans
9561 Layout\SpecialChar \menuseparator
9562 Document
9563 \family default
9564  or 
9565 \family sans
9566 Document\SpecialChar \menuseparator
9567 Settings
9568 \family default
9569  menu item.
9570  (AGU articles are always in English, right? So 
9571 \emph on
9572 don't
9573 \emph default
9574  choose a language.)
9575 \end_layout
9576
9577 \begin_layout Enumerate
9578 Enter 
9579 \family typewriter
9580 jgrga
9581 \family default
9582  into the document's 
9583 \family sans
9584 Extra Options
9585 \family default
9586  field.
9587  (Yes, this is a bug.)
9588 \end_layout
9589
9590 \begin_layout Enumerate
9591 Make sure you use the 
9592 \family typewriter
9593 agu.bst
9594 \family default
9595  bibliography style, by entering 
9596 \family sans
9597 agu
9598 \family default
9599  into the second field of the BibTeX inset.
9600  None of the standard styles will do.
9601 \end_layout
9602
9603 \begin_layout Section
9604 Broadway
9605 \end_layout
9606
9607 \begin_layout Standard
9608 by 
9609 \shape smallcaps
9610 Garst Reese
9611 \end_layout
9612
9613 \begin_layout Subsection
9614 Introduction
9615 \end_layout
9616
9617 \begin_layout Standard
9618 Broadway is for writing plays.
9619  The format is more decorative than Hollywood, and much less standardized.
9620  This format should be suitable for workshops.
9621 \end_layout
9622
9623 \begin_layout Subsection
9624 Special problems
9625 \end_layout
9626
9627 \begin_layout Standard
9628 The same as in Hollywood.
9629 \end_layout
9630
9631 \begin_layout Subsection
9632 Special features
9633 \end_layout
9634
9635 \begin_layout Standard
9636 Insert the 
9637 \family sans
9638 Speaker
9639 \family default
9640  names as labels then cross-reference the label to insert the name.
9641  The cross-reference dialog will show the current cast of characters.
9642 \end_layout
9643
9644 \begin_layout Subsection
9645 Paper size and Margins
9646 \end_layout
9647
9648 \begin_layout Standard
9649 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
9650 \end_layout
9651
9652 \begin_layout Subsection
9653 Environments
9654 \end_layout
9655
9656 \begin_layout Standard
9657 The following environments are available.
9658  You can use broadway.bind to get the bind keys shown at the right.
9659 \end_layout
9660
9661 \begin_layout Itemize
9662
9663 \family sans
9664 Standard
9665 \begin_inset Newline newline
9666 \end_inset
9667
9668
9669 \family default
9670 You should not have to use this, but it is here for anything that does not
9671  fit otherwise.
9672 \end_layout
9673
9674 \begin_layout Itemize
9675
9676 \family sans
9677 Narrative
9678 \begin_inset space \hfill{}
9679 \end_inset
9680
9681 M-z n
9682 \begin_inset Newline newline
9683 \end_inset
9684
9685
9686 \family default
9687 Used to describe stage setting and the action.
9688  First use of speaker names in all CAPs.
9689 \end_layout
9690
9691 \begin_layout Itemize
9692
9693 \family sans
9694 ACT
9695 \begin_inset space \hfill{}
9696 \end_inset
9697
9698 M-z a
9699 \begin_inset Newline newline
9700 \end_inset
9701
9702
9703 \family default
9704 Automatically numbered.
9705  On screen it will be arabic, but will print as Roman.
9706 \end_layout
9707
9708 \begin_layout Itemize
9709
9710 \family sans
9711 ACT*
9712 \begin_inset space \hfill{}
9713 \end_inset
9714
9715 M-z S at
9716 \begin_inset Newline newline
9717 \end_inset
9718
9719
9720 \family default
9721 Subtitle for 
9722 \family sans
9723 ACT.
9724
9725 \family default
9726  It is just centered text.
9727 \end_layout
9728
9729 \begin_layout Itemize
9730
9731 \family sans
9732 SCENE
9733 \begin_inset space \hfill{}
9734 \end_inset
9735
9736 M-z S-S
9737 \begin_inset Newline newline
9738 \end_inset
9739
9740
9741 \family default
9742 Not automatically numbered.
9743  You supply the number.
9744  This is because I couldn't figure out how.
9745 \end_layout
9746
9747 \begin_layout Itemize
9748
9749 \family sans
9750 AT_RISE:
9751 \begin_inset space \hfill{}
9752 \end_inset
9753
9754 M-z S-R
9755 \begin_inset Newline newline
9756 \end_inset
9757
9758
9759 \family default
9760 A special case of Narrative to describe the setting and action as the curtain
9761  rises.
9762 \end_layout
9763
9764 \begin_layout Itemize
9765
9766 \family sans
9767 Speaker
9768 \begin_inset space \hfill{}
9769 \end_inset
9770
9771 M-z s
9772 \begin_inset Newline newline
9773 \end_inset
9774
9775
9776 \family default
9777 The speaker's (actor's) title, centered in all CAPS.
9778 \end_layout
9779
9780 \begin_layout Itemize
9781
9782 \family sans
9783 Parenthetical
9784 \begin_inset space \hfill{}
9785 \end_inset
9786
9787 M-z p
9788 \begin_inset Newline newline
9789 \end_inset
9790
9791
9792 \family default
9793 Instructions to the speaker.
9794  The parentheses are automatically inserted.
9795  The ( will appear on screen, but both will be in the printed play.
9796  This environment is only used within 
9797 \family sans
9798 Dialogue
9799 \family default
9800 .
9801 \end_layout
9802
9803 \begin_layout Itemize
9804
9805 \family sans
9806 Dialogue
9807 \begin_inset space \hfill{}
9808 \end_inset
9809
9810 M-z d
9811 \begin_inset Newline newline
9812 \end_inset
9813
9814
9815 \family default
9816 What the Speaker says.
9817 \end_layout
9818
9819 \begin_layout Itemize
9820
9821 \family sans
9822 CURTAIN
9823 \begin_inset space \hfill{}
9824 \end_inset
9825
9826 M-z S-C
9827 \begin_inset Newline newline
9828 \end_inset
9829
9830
9831 \family default
9832 The curtain comes down.
9833 \end_layout
9834
9835 \begin_layout Itemize
9836
9837 \family sans
9838 Title
9839 \begin_inset space \hfill{}
9840 \end_inset
9841
9842 M-z S-T
9843 \end_layout
9844
9845 \begin_layout Itemize
9846
9847 \family sans
9848 Author
9849 \begin_inset space \hfill{}
9850 \end_inset
9851
9852 M-z S-A
9853 \end_layout
9854
9855 \begin_layout Itemize
9856
9857 \family sans
9858 Right_Address
9859 \begin_inset space \hfill{}
9860 \end_inset
9861
9862 M-z r
9863 \end_layout
9864
9865 \begin_layout Standard
9866 Hello there.
9867 \end_layout
9868
9869 \begin_layout Section
9870 Dinbrief
9871 \end_layout
9872
9873 \begin_layout Standard
9874 The document class 
9875 \family sans
9876 dinbrief
9877 \family default
9878  can be used to type letters according to German conventions.
9879  A template file is included in 
9880 \family typewriter
9881 .../lyx/share/templates
9882 \family default
9883  for you to use as a starting point.
9884 \end_layout
9885
9886 \begin_layout Section
9887 EGS journals (
9888 \family sans
9889 egs
9890 \family default
9891 )
9892 \end_layout
9893
9894 \begin_layout Standard
9895 by 
9896 \shape smallcaps
9897 Martin Vermeer
9898 \end_layout
9899
9900 \begin_layout Subsection
9901 Description
9902 \end_layout
9903
9904 \begin_layout Standard
9905 This is the layout file for the European Geophysical Society journals.
9906  The needed 
9907 \family typewriter
9908 egs.cls
9909 \family default
9910  can be downloaded from the web site of the EGS under 
9911 \begin_inset Flex URL
9912 status collapsed
9913
9914 \begin_layout Plain Layout
9915
9916 www.copernicus.org
9917 \end_layout
9918
9919 \end_inset
9920
9921 .
9922 \end_layout
9923
9924 \begin_layout Subsection
9925 New styles
9926 \end_layout
9927
9928 \begin_layout Standard
9929
9930 \family sans
9931 Right_address, Latex_Title, Affil, Journal, msnumber, FirstAuthor, Received,
9932  Accepted
9933 \family default
9934
9935 \family sans
9936 Offsets
9937 \family default
9938 .
9939  The current layout file is unfortunately very unmodular and would benefit
9940  from using the various 
9941 \family typewriter
9942 std*.inc
9943 \family default
9944  file inclusions.
9945 \end_layout
9946
9947 \begin_layout Section
9948 Elsevier Journals
9949 \end_layout
9950
9951 \begin_layout Standard
9952 By 
9953 \noun on
9954 Rod Pinna
9955 \end_layout
9956
9957 \begin_layout Standard
9958 Elsevier Science Publishers B.V.
9959  provides a standard LaTeX document class (
9960 \family typewriter
9961 elsart.cls
9962 \family default
9963 ) for submitting articles to their various journals.
9964  The style file can be downloaded directly from their web site: 
9965 \begin_inset Flex URL
9966 status collapsed
9967
9968 \begin_layout Plain Layout
9969
9970 http://www.elsevier.com/wps/find/authorsview.authors/latex
9971 \end_layout
9972
9973 \end_inset
9974
9975 .
9976  Instructions are supplied along with the class file, which details the
9977  requirements of the publishers.
9978  LyX includes a package that allows for the use of this class, by a layout
9979  and a template file.
9980  Installation of the class file is the same as for any other LaTeX package;
9981  instructions are provided in the Elsevier documentation.
9982 \end_layout
9983
9984 \begin_layout Standard
9985 To make use of 
9986 \family typewriter
9987 elsart.cls
9988 \family default
9989 , a file 
9990 \family typewriter
9991 elsart.layout
9992 \family default
9993  is supplied.
9994  As the Elsevier class file is based mainly on the standard article class,
9995  most of the normal functionality is provided.
9996  The Elsevier class defines a number of mathematical environments, which
9997  are similar to the AMS environments.
9998  These commands are all described in the Elsevier documentation, and are
9999  available in LyX.
10000 \end_layout
10001
10002 \begin_layout Standard
10003 The easiest way to use the Elsevier style is to base documents on the included
10004  template file.
10005  It is best not to use options such as fancy headings or the geometry package,
10006  as elements such as these are defined by Elsevier in their style file.
10007  Ideally, no extra packages except those mentioned in the Elsevier documentation
10008  should be used.
10009  Essentially, Elsevier require as 
10010 \begin_inset Quotes eld
10011 \end_inset
10012
10013 clean
10014 \begin_inset Quotes erd
10015 \end_inset
10016
10017  a LaTeX file as possible, as their intention is to take the supplied file
10018  and replace the class file with one for the particular journal to which
10019  the paper has been submitted.
10020  This also means that not too much time should be spent on the formating
10021  of the document.
10022  When it comes to be published, this will change anyway.
10023  The rest of the usage for this layout is substantially the same as for
10024  the normal article class.
10025  For details of what Elsevier do and don't allow, refer to their documentation.
10026 \end_layout
10027
10028 \begin_layout Section
10029 Foils [aka 
10030 \family sans
10031 FoilTeX
10032 \family default
10033 ]
10034 \begin_inset CommandInset label
10035 LatexCommand label
10036 name "sec:foiltex"
10037
10038 \end_inset
10039
10040
10041 \end_layout
10042
10043 \begin_layout Standard
10044 by 
10045 \noun on
10046 Allan Rae
10047 \end_layout
10048
10049 \begin_layout Subsection
10050 Introduction
10051 \end_layout
10052
10053 \begin_layout Standard
10054 This section describes how to use LyX to make slides for overhead projectors.
10055  There are two document classes that can do this: the default slides class
10056  and the 
10057 \family sans
10058 FoilTeX
10059 \family default
10060  slides class.
10061  This section documents the latter.
10062 \end_layout
10063
10064 \begin_layout Standard
10065 I'm going to say this again, nice and clear, so that there's no misunderstanding
10066 :
10067 \end_layout
10068
10069 \begin_layout Standard
10070 \begin_inset VSpace bigskip
10071 \end_inset
10072
10073
10074 \end_layout
10075
10076 \begin_layout Standard
10077 \align center
10078
10079 \size large
10080 This section documents the class 
10081 \begin_inset Quotes eld
10082 \end_inset
10083
10084
10085 \family sans
10086 slides (FoilTeX)
10087 \family default
10088
10089 \begin_inset Quotes erd
10090 \end_inset
10091
10092  
10093 \emph on
10094 only.
10095 \end_layout
10096
10097 \begin_layout Standard
10098 \begin_inset VSpace bigskip
10099 \end_inset
10100
10101
10102 \end_layout
10103
10104 \begin_layout Standard
10105 If you're looking for the documentation for 
10106 \begin_inset Quotes eld
10107 \end_inset
10108
10109
10110 \family sans
10111 slides (default)
10112 \family default
10113
10114 \begin_inset Quotes erd
10115 \end_inset
10116
10117 , check out section
10118 \begin_inset space ~
10119 \end_inset
10120
10121
10122 \begin_inset CommandInset ref
10123 LatexCommand ref
10124 reference "sec:slitex"
10125
10126 \end_inset
10127
10128 .
10129  If your machine doesn't have the 
10130 \family sans
10131 foils
10132 \family default
10133  class [
10134 \begin_inset Quotes eld
10135 \end_inset
10136
10137
10138 \family sans
10139 slides (FoilTeX)
10140 \family default
10141
10142 \begin_inset Quotes erd
10143 \end_inset
10144
10145 ] installed, you'll probably have to use the default 
10146 \family sans
10147 slides
10148 \family default
10149  class, which isn't quite as good as 
10150 \family sans
10151 foils.
10152 \end_layout
10153
10154 \begin_layout Standard
10155 The 
10156 \family sans
10157 foils
10158 \family default
10159  class is designed for use with version 2.1 of the 
10160 \family sans
10161 foils.cls
10162 \family default
10163  LaTeX class file which is now an integral part of LaTeX2e.
10164 \end_layout
10165
10166 \begin_layout Subsection
10167 Getting Started
10168 \end_layout
10169
10170 \begin_layout Standard
10171 Obviously, to use this document class, you need to select 
10172 \begin_inset Quotes eld
10173 \end_inset
10174
10175
10176 \family sans
10177 slides (FoilTeX)
10178 \family default
10179
10180 \begin_inset Quotes erd
10181 \end_inset
10182
10183  from the 
10184 \family sans
10185 Class
10186 \family default
10187  entry in the 
10188 \family sans
10189 Document
10190 \begin_inset space ~
10191 \end_inset
10192
10193 Layout
10194 \family default
10195  dialog.
10196  There are some settings in the 
10197 \family sans
10198 Document
10199 \begin_inset space ~
10200 \end_inset
10201
10202 Layout
10203 \family default
10204  dialog that you should know about that are specific to this class:
10205 \end_layout
10206
10207 \begin_layout Itemize
10208 Don't change the options 
10209 \family sans
10210 Sides
10211 \family default
10212  and 
10213 \family sans
10214 Columns
10215 \family default
10216  on the 
10217 \family sans
10218 Document
10219 \begin_inset space ~
10220 \end_inset
10221
10222 Layout
10223 \family default
10224  dialog.
10225  They're ignored by the 
10226 \family sans
10227 foils
10228 \family default
10229  class.
10230 \end_layout
10231
10232 \begin_layout Itemize
10233 The default font size is 20
10234 \begin_inset space \thinspace{}
10235 \end_inset
10236
10237 pt with the other options being 17
10238 \begin_inset space \thinspace{}
10239 \end_inset
10240
10241 pt, 25
10242 \begin_inset space \thinspace{}
10243 \end_inset
10244
10245 pt and 30
10246 \begin_inset space \thinspace{}
10247 \end_inset
10248
10249 pt.
10250 \end_layout
10251
10252 \begin_layout Itemize
10253 The default font is 
10254 \family sans
10255 sans
10256 \family default
10257  
10258 \family sans
10259 serif
10260 \family default
10261  but all math equations are still typeset in the usual roman font.
10262 \end_layout
10263
10264 \begin_layout Itemize
10265
10266 \family sans
10267 FoilTeX
10268 \family default
10269  supports A4 and Letter paper sizes as well as a special size for working
10270  with 35
10271 \begin_inset space \thinspace{}
10272 \end_inset
10273
10274 mm slides.
10275  It doesn't support A5, B5, legal or executive paper sizes.
10276 \end_layout
10277
10278 \begin_layout Itemize
10279 Don't bother changing the 
10280 \family sans
10281 Float Placement
10282 \family default
10283  settings because they are ignored anyway.
10284  All floats appear where they are defined in the text.
10285 \end_layout
10286
10287 \begin_layout Itemize
10288 The 
10289 \family sans
10290 Pagestyle
10291 \family default
10292  setting behaves a bit differently for this class.
10293  
10294 \family sans
10295 FoilTeX
10296 \family default
10297  provides extensive footer and header capabilities including a user-defined
10298  logo.
10299  See section
10300 \begin_inset space ~
10301 \end_inset
10302
10303
10304 \begin_inset CommandInset ref
10305 LatexCommand ref
10306 reference "sec:foilfoot"
10307
10308 \end_inset
10309
10310  for more details.
10311  The title page is treated differently to all other pages in the document
10312  and is 
10313 \emph on
10314 always
10315 \emph default
10316  unnumbered and 
10317 \emph on
10318 always
10319 \emph default
10320  has the logo centered at the bottom of the page (if one is defined).
10321  The possible page style choices and what they do are as follows:
10322 \end_layout
10323
10324 \begin_deeper
10325 \begin_layout Labeling
10326 \labelwidthstring MMMMMMM
10327
10328 \family sans
10329 \series bold
10330 empty
10331 \family default
10332 \series default
10333  The final output contains no page numbers, or other headers or footers
10334  (except footnotes of course).
10335  
10336 \end_layout
10337
10338 \begin_layout Labeling
10339 \labelwidthstring MMMMMMM
10340
10341 \family sans
10342 \series bold
10343 plain
10344 \family default
10345 \series default
10346  The final output contains page numbers centered at the bottom of the page.
10347  No other headings or footers (other than footnotes).
10348 \end_layout
10349
10350 \begin_layout Labeling
10351 \labelwidthstring MMMMMMM
10352
10353 \series bold
10354 foilheadings
10355 \series default
10356  Page numbers in lower right corner.
10357  Additional headers and footers are also shown.
10358  This is also the default.
10359 \end_layout
10360
10361 \begin_layout Labeling
10362 \labelwidthstring MMMMMMM
10363
10364 \series bold
10365 fancy
10366 \series default
10367  Gives you access to the 
10368 \family sans
10369 fancyheadings
10370 \family default
10371  package although its use with 
10372 \family sans
10373 FoilTeX
10374 \family default
10375  is discouraged by the writer of the 
10376 \family sans
10377 FoilTeX
10378 \family default
10379  package because of some potential page layout clashes.
10380 \end_layout
10381
10382 \end_deeper
10383 \begin_layout Subsubsection
10384 Extra Options
10385 \end_layout
10386
10387 \begin_layout Standard
10388 The following options may be used in the extra class options in the 
10389 \family sans
10390 Document\SpecialChar \menuseparator
10391 Settings
10392 \family default
10393  dialog.
10394 \end_layout
10395
10396 \begin_layout Labeling
10397 \labelwidthstring MMMMMMx
10398
10399 \series bold
10400 35mmSlide
10401 \series default
10402  This sets up the page layout for 7.33
10403 \begin_inset space \thinspace{}
10404 \end_inset
10405
10406 in by 11
10407 \begin_inset space \thinspace{}
10408 \end_inset
10409
10410 in paper, which is about the same aspect ratio as a 35
10411 \begin_inset space \thinspace{}
10412 \end_inset
10413
10414 mm slide, making it a bit easier to work with this medium.
10415 \end_layout
10416
10417 \begin_layout Labeling
10418 \labelwidthstring MMMMMMx
10419
10420 \series bold
10421 headrule
10422 \series default
10423  Places a rule across the page below the header on every page except the
10424  title page.
10425 \end_layout
10426
10427 \begin_layout Labeling
10428 \labelwidthstring MMMMMMx
10429
10430 \series bold
10431 footrule
10432 \series default
10433  Places a rule across the page above the footer on every page except the
10434  title page.
10435 \end_layout
10436
10437 \begin_layout Labeling
10438 \labelwidthstring MMMMMMx
10439
10440 \series bold
10441 dvips
10442 \series default
10443  This is automatically set each time you create a new 
10444 \family sans
10445 foils
10446 \family default
10447  document.
10448  This option tells 
10449 \family sans
10450 FoilTeX
10451 \family default
10452  to use the dvips driver to rotate those pages that are set as landscape
10453  foils.
10454 \end_layout
10455
10456 \begin_layout Labeling
10457 \labelwidthstring MMMMMMx
10458
10459 \series bold
10460 landscape
10461 \series default
10462  Simply changes the page dimensions to those of a landscape page but doesn't
10463  do any rotation.
10464  Thus if you use this option you need to use an external program to rotate
10465  each page or feed your paper through your printer as landscape.
10466  Note that this option effectively reverses the roles of the 
10467 \family sans
10468 Foilhead
10469 \family default
10470  and 
10471 \family sans
10472 Rotatefoilhead
10473 \family default
10474  environments (don't worry these are described in the next section).
10475 \end_layout
10476
10477 \begin_layout Labeling
10478 \labelwidthstring MMMMMMx
10479
10480 \series bold
10481 leqno
10482 \series default
10483  Equation numbers on the left.
10484 \end_layout
10485
10486 \begin_layout Labeling
10487 \labelwidthstring MMMMMMx
10488
10489 \series bold
10490 fleqn
10491 \series default
10492  Flush-left equations.
10493 \end_layout
10494
10495 \begin_layout Subsection
10496 Supported Environments
10497 \end_layout
10498
10499 \begin_layout Standard
10500 Most of the environments commonly supported in other classes are also supported
10501  by the 
10502 \family sans
10503 foils
10504 \family default
10505  class.
10506  There are several additional environments provided by 
10507 \family sans
10508 FoilTeX
10509 \family default
10510  as well as a couple added by LyX.
10511  The following environments are shared with other classes:
10512 \end_layout
10513
10514 \begin_layout Standard
10515 \begin_inset ERT
10516 status open
10517
10518 \begin_layout Plain Layout
10519
10520
10521 \backslash
10522 begin{multicols}{2}
10523 \end_layout
10524
10525 \end_inset
10526
10527
10528 \end_layout
10529
10530 \begin_layout Itemize
10531
10532 \family sans
10533 Standard
10534 \end_layout
10535
10536 \begin_layout Itemize
10537
10538 \family sans
10539 Itemize
10540 \end_layout
10541
10542 \begin_layout Itemize
10543
10544 \family sans
10545 Enumerate
10546 \end_layout
10547
10548 \begin_layout Itemize
10549
10550 \family sans
10551 Description
10552 \end_layout
10553
10554 \begin_layout Itemize
10555
10556 \family sans
10557 List
10558 \end_layout
10559
10560 \begin_layout Itemize
10561
10562 \family sans
10563 LyX-Code
10564 \end_layout
10565
10566 \begin_layout Itemize
10567
10568 \family sans
10569 Verse
10570 \end_layout
10571
10572 \begin_layout Itemize
10573
10574 \family sans
10575 Quote
10576 \end_layout
10577
10578 \begin_layout Itemize
10579
10580 \family sans
10581 Quotation
10582 \end_layout
10583
10584 \begin_layout Itemize
10585
10586 \family sans
10587 Title
10588 \end_layout
10589
10590 \begin_layout Itemize
10591
10592 \family sans
10593 Author
10594 \end_layout
10595
10596 \begin_layout Itemize
10597
10598 \family sans
10599 Date
10600 \end_layout
10601
10602 \begin_layout Itemize
10603
10604 \family sans
10605 Abstract
10606 \end_layout
10607
10608 \begin_layout Itemize
10609
10610 \family sans
10611 Bibliography
10612 \end_layout
10613
10614 \begin_layout Itemize
10615
10616 \family sans
10617 Address
10618 \end_layout
10619
10620 \begin_layout Itemize
10621
10622 \family sans
10623 RightAddress
10624 \end_layout
10625
10626 \begin_layout Itemize
10627
10628 \family sans
10629 Caption
10630 \end_layout
10631
10632 \begin_layout Itemize
10633
10634 \family sans
10635 Comment
10636 \end_layout
10637
10638 \begin_layout Standard
10639 \begin_inset ERT
10640 status open
10641
10642 \begin_layout Plain Layout
10643
10644
10645 \backslash
10646 end{multicols}
10647 \end_layout
10648
10649 \end_inset
10650
10651
10652 \end_layout
10653
10654 \begin_layout Standard
10655 That is, all the major environments apart from the sectioning environments.
10656  Since foils are essentially self-contained sections, with a title and body,
10657  
10658 \family sans
10659 FoilTeX
10660 \family default
10661  provides specific commands for starting new foils and these are:
10662 \end_layout
10663
10664 \begin_layout Itemize
10665
10666 \family sans
10667 Foilhead
10668 \end_layout
10669
10670 \begin_layout Itemize
10671
10672 \family sans
10673 Rotatefoilhead
10674 \end_layout
10675
10676 \begin_layout Standard
10677 LyX also provides slightly modified versions of these two environments called:
10678 \end_layout
10679
10680 \begin_layout Itemize
10681
10682 \family sans
10683 ShortFoilhead
10684 \end_layout
10685
10686 \begin_layout Itemize
10687
10688 \family sans
10689 ShortRotatefoilhead
10690 \end_layout
10691
10692 \begin_layout Standard
10693 and the differences will be explained in the next section.
10694 \end_layout
10695
10696 \begin_layout Standard
10697 Since foils are often used in presenting ideas or new theorems and such
10698  
10699 \family sans
10700 FoilTeX
10701 \family default
10702  also provides a comprehensive box of goodies for presenting them:
10703 \end_layout
10704
10705 \begin_layout Standard
10706 \begin_inset ERT
10707 status open
10708
10709 \begin_layout Plain Layout
10710
10711
10712 \backslash
10713 begin{multicols}{2}
10714 \end_layout
10715
10716 \end_inset
10717
10718
10719 \end_layout
10720
10721 \begin_layout Itemize
10722
10723 \family sans
10724 Theorem
10725 \end_layout
10726
10727 \begin_layout Itemize
10728
10729 \family sans
10730 Lemma
10731 \end_layout
10732
10733 \begin_layout Itemize
10734
10735 \family sans
10736 Corollary
10737 \end_layout
10738
10739 \begin_layout Itemize
10740
10741 \family sans
10742 Proposition
10743 \end_layout
10744
10745 \begin_layout Itemize
10746
10747 \family sans
10748 Definition
10749 \end_layout
10750
10751 \begin_layout Itemize
10752
10753 \family sans
10754 Proof
10755 \end_layout
10756
10757 \begin_layout Itemize
10758
10759 \family sans
10760 Theorem*
10761 \end_layout
10762
10763 \begin_layout Itemize
10764
10765 \family sans
10766 Lemma*
10767 \end_layout
10768
10769 \begin_layout Itemize
10770
10771 \family sans
10772 Corollary*
10773 \end_layout
10774
10775 \begin_layout Itemize
10776
10777 \family sans
10778 Proposition*
10779 \end_layout
10780
10781 \begin_layout Itemize
10782
10783 \family sans
10784 Definition*
10785 \end_layout
10786
10787 \begin_layout Standard
10788 \begin_inset ERT
10789 status open
10790
10791 \begin_layout Plain Layout
10792
10793
10794 \backslash
10795 end{multicols}
10796 \end_layout
10797
10798 \end_inset
10799
10800
10801 \end_layout
10802
10803 \begin_layout Standard
10804 The starred versions are unnumbered while the unstarred versions are numbered.
10805  There are also two list environments added by LyX and these are:
10806 \end_layout
10807
10808 \begin_layout Itemize
10809
10810 \family sans
10811 TickList
10812 \end_layout
10813
10814 \begin_layout Itemize
10815
10816 \family sans
10817 CrossList
10818 \end_layout
10819
10820 \begin_layout Standard
10821
10822 \family sans
10823 FoilTeX
10824 \family default
10825  provides some powerful header and footer capabilities that are best set
10826  in the preamble although they may be set at any point in a document.
10827  If you want to change these settings in your document the best place to
10828  do so is at the very top of a foil, i.
10829 \begin_inset space \thinspace{}
10830 \end_inset
10831
10832 g.
10833 \emph on
10834
10835 \begin_inset space \space{}
10836 \end_inset
10837
10838
10839 \emph default
10840 straight after the foilhead.
10841 \end_layout
10842
10843 \begin_layout Standard
10844 For this purpose, the following command styles are provided [
10845 \shape smallcaps
10846 Martin Vermeer
10847 \shape default
10848 ]:
10849 \end_layout
10850
10851 \begin_layout Standard
10852 \begin_inset ERT
10853 status open
10854
10855 \begin_layout Plain Layout
10856
10857
10858 \backslash
10859 begin{multicols}{2}
10860 \end_layout
10861
10862 \end_inset
10863
10864
10865 \end_layout
10866
10867 \begin_layout Itemize
10868
10869 \family sans
10870 My
10871 \begin_inset space ~
10872 \end_inset
10873
10874 Logo
10875 \end_layout
10876
10877 \begin_layout Itemize
10878
10879 \family sans
10880 Restriction
10881 \end_layout
10882
10883 \begin_layout Itemize
10884
10885 \family sans
10886 Right
10887 \begin_inset space ~
10888 \end_inset
10889
10890 Footer
10891 \end_layout
10892
10893 \begin_layout Itemize
10894
10895 \family sans
10896 Right
10897 \begin_inset space ~
10898 \end_inset
10899
10900 Header
10901 \end_layout
10902
10903 \begin_layout Itemize
10904
10905 \family sans
10906 Left
10907 \begin_inset space ~
10908 \end_inset
10909
10910 Header
10911 \end_layout
10912
10913 \begin_deeper
10914 \begin_layout Standard
10915 \begin_inset space ~
10916 \end_inset
10917
10918
10919 \end_layout
10920
10921 \end_deeper
10922 \begin_layout Standard
10923 \begin_inset ERT
10924 status open
10925
10926 \begin_layout Plain Layout
10927
10928
10929 \backslash
10930 end{multicols}
10931 \end_layout
10932
10933 \end_inset
10934
10935
10936 \end_layout
10937
10938 \begin_layout Standard
10939 There are also a few commands provided by 
10940 \family sans
10941 FoilTeX
10942 \family default
10943  that aren't directly supported by LyX but I'll tell you what they do and
10944  how to use them in section
10945 \begin_inset space ~
10946 \end_inset
10947
10948
10949 \begin_inset CommandInset ref
10950 LatexCommand ref
10951 reference "sec:unsuppfoils"
10952
10953 \end_inset
10954
10955 .
10956 \end_layout
10957
10958 \begin_layout Subsection
10959 Building a Set of Foils
10960 \end_layout
10961
10962 \begin_layout Standard
10963 This section will give a simple introduction to using the different environments
10964  to build a set of foils.
10965  If you want to see an example set of foils, take a look at the 
10966 \family typewriter
10967 Foils.lyx
10968 \family default
10969  file you find in LyX's 
10970 \family typewriter
10971 examples
10972 \family default
10973  folder.
10974 \end_layout
10975
10976 \begin_layout Subsubsection
10977 Give It a Title Page
10978 \end_layout
10979
10980 \begin_layout Standard
10981 Unlike other classes that provide 
10982 \family sans
10983 Title
10984 \family default
10985
10986 \family sans
10987 Author
10988 \family default
10989
10990 \family sans
10991 Date
10992 \family default
10993  and 
10994 \family sans
10995 Abstract
10996 \family default
10997  environments, 
10998 \family sans
10999 foils
11000 \family default
11001  creates the title on a page of its own.
11002  If you leave out the 
11003 \family sans
11004 Date
11005 \family default
11006  environment LaTeX will substitute the current date (every time you regenerate
11007  the output).
11008 \end_layout
11009
11010 \begin_layout Subsubsection
11011 Start a New Foil
11012 \end_layout
11013
11014 \begin_layout Standard
11015 As I mentioned earlier, there are four ways of starting a new foil.
11016  For portrait foils you should use 
11017 \family sans
11018 Foilhead
11019 \family default
11020  or 
11021 \family sans
11022 ShortFoilhead.
11023
11024 \family default
11025  The difference between these two environments is the amount of space between
11026  the title of the foil (the foilhead) and the body of the foil.
11027 \end_layout
11028
11029 \begin_layout Standard
11030 Landscape foils are generated using the 
11031 \family sans
11032 Rotatefoilhead
11033 \family default
11034  and 
11035 \family sans
11036 ShortRotatefoilhead
11037 \family default
11038  environments.
11039  Again the only difference is the spacing between foilhead and body.
11040  Both of the short versions have 0.5 inches less separation between the foilhead
11041  and the body.
11042  
11043 \end_layout
11044
11045 \begin_layout Standard
11046 One problem with the support for landscape foils is the requirement that
11047  you have to use the 
11048 \family typewriter
11049 dvips
11050 \family default
11051  driver to generate the PostScript output otherwise the foils won't be rotated.
11052  It is possible to get landscape foils even if you haven't got the 
11053 \family typewriter
11054 dvips
11055 \family default
11056  driver provided you can feed your foils sideways through your printer ;-)
11057 \end_layout
11058
11059 \begin_layout Subsubsection
11060 Theorems, Lemmas, Proofs and more
11061 \end_layout
11062
11063 \begin_layout Standard
11064 Due to a small bug in LyX you can't have two of the same type of these environme
11065 nts directly following each other.
11066  They must be separated by something.
11067  If you try, you will just be extending the previous environment as if you
11068  had merged the two environments together.
11069  So, how do you get around this problem? The simplest option is to insert
11070  some text between the two environments or add a 
11071 \family sans
11072 LaTeX
11073 \family default
11074  environment between the two with just a 
11075 \begin_inset Quotes eld
11076 \end_inset
11077
11078
11079 \family typewriter
11080 %
11081 \family default
11082
11083 \begin_inset Quotes erd
11084 \end_inset
11085
11086  in it.
11087  This will force LyX to produce two separate environments and hence the
11088  correct LaTeX output.
11089  An example is provided in the example file included with the LyX distribution.
11090  Remember, this problem only occurs if you are trying to place two of the
11091  same type of theorem-like environments one directly after the other.
11092 \end_layout
11093
11094 \begin_layout Subsubsection
11095 Lists
11096 \end_layout
11097
11098 \begin_layout Standard
11099 You get all the commonly supported list styles found in other classes as
11100  well as two new ones.
11101  I'll only describe the new ones here.
11102  If you want to find out more about the other list environments check out
11103  the 
11104 \emph on
11105 User's Guide.
11106
11107 \emph default
11108  If you intend to use itemized lists you might also want to read about the
11109  
11110 \family sans
11111 Itemize
11112 \begin_inset space ~
11113 \end_inset
11114
11115 Bullet
11116 \begin_inset space ~
11117 \end_inset
11118
11119 Selection
11120 \family default
11121  dialog described above in section
11122 \begin_inset space ~
11123 \end_inset
11124
11125
11126 \begin_inset CommandInset ref
11127 LatexCommand ref
11128 reference "sec:bullet"
11129
11130 \end_inset
11131
11132 .
11133 \end_layout
11134
11135 \begin_layout Standard
11136 The two new list styles, 
11137 \family sans
11138 TickList
11139 \family default
11140  and 
11141 \family sans
11142 CrossList
11143 \family default
11144 , are designed to make it easier for you to create lists of do's and don'ts
11145  or right and wrong by providing dedicated environments that use a tick
11146  or a cross as the label of the list.
11147  These lists are in fact dedicated variants of the 
11148 \family sans
11149 Itemize
11150 \family default
11151  environment.
11152  They do however require that you have the 
11153 \family typewriter
11154 psnfss
11155 \family default
11156  packages installed.
11157 \end_layout
11158
11159 \begin_layout Subsubsection
11160 Figures and Tables
11161 \end_layout
11162
11163 \begin_layout Standard
11164
11165 \family sans
11166 FoilTeX
11167 \family default
11168  redefines the floating tables and figures so that they appear exactly where
11169  they are in the text rather than pushing them to the top of the page or
11170  to some user specified location.
11171  In fact if you change the float placement settings they are simply ignored.
11172 \end_layout
11173
11174 \begin_layout Subsubsection
11175 Page Headers and Footers
11176 \begin_inset CommandInset label
11177 LatexCommand label
11178 name "sec:foilfoot"
11179
11180 \end_inset
11181
11182
11183 \end_layout
11184
11185 \begin_layout Standard
11186
11187 \family sans
11188 My
11189 \begin_inset space ~
11190 \end_inset
11191
11192 Logo
11193 \family default
11194  and 
11195 \family sans
11196 Restriction
11197 \family default
11198  are two commands used to control the left-footer text string.
11199  The first is meant to allow you to include a graphic logo on your foils
11200  and defaults to 
11201 \begin_inset Quotes eld
11202 \end_inset
11203
11204 -Typeset by 
11205 \family sans
11206 FoilTeX
11207 \family default
11208 -
11209 \begin_inset Quotes erd
11210 \end_inset
11211
11212 .
11213  While the second is meant to provide a classification for the audience,
11214  
11215 \emph on
11216 e.
11217 \begin_inset space \thinspace{}
11218 \end_inset
11219
11220 g.
11221 \emph default
11222
11223 \begin_inset space \space{}
11224 \end_inset
11225
11226 Confidential.
11227  It is empty by default.
11228 \end_layout
11229
11230 \begin_layout Standard
11231 The remaining page corners can be filled by 
11232 \family sans
11233 Right
11234 \begin_inset space ~
11235 \end_inset
11236
11237 Footer
11238 \family default
11239  (which defaults to page numbers), 
11240 \family sans
11241 Right
11242 \begin_inset space ~
11243 \end_inset
11244
11245 Header
11246 \family default
11247  (top right) and 
11248 \family sans
11249 Left
11250 \begin_inset space ~
11251 \end_inset
11252
11253 Header
11254 \family default
11255  (top left).
11256 \end_layout
11257
11258 \begin_layout Subsection
11259 Unsupported 
11260 \family sans
11261 FoilTeX
11262 \family default
11263  Goodies
11264 \begin_inset CommandInset label
11265 LatexCommand label
11266 name "sec:unsuppfoils"
11267
11268 \end_inset
11269
11270
11271 \end_layout
11272
11273 \begin_layout Standard
11274 All the commands mentioned below need to be set in a 
11275 \family sans
11276 LaTeX
11277 \family default
11278  environment or as 
11279 \family sans
11280 TeX
11281 \family default
11282  within another environment.
11283 \end_layout
11284
11285 \begin_layout Subsubsection
11286 Lengths
11287 \end_layout
11288
11289 \begin_layout Standard
11290 All lengths are adjusted using the 
11291 \family typewriter
11292
11293 \backslash
11294 setlength{
11295 \family default
11296 \emph on
11297 lengthname
11298 \family typewriter
11299 \emph default
11300 }{
11301 \family default
11302 \emph on
11303 newlength
11304 \family typewriter
11305 \emph default
11306 }
11307 \family default
11308  command.
11309  Where 
11310 \emph on
11311 lengthname
11312 \emph default
11313  should be replaced by the name given to the length you want to change and
11314  
11315 \emph on
11316 newlength
11317 \emph default
11318  is the length value.
11319  All lengths should be specified in units of length such as inches (
11320 \family typewriter
11321 in
11322 \family default
11323 ), millimeters (
11324 \family typewriter
11325 mm
11326 \family default
11327 ) or points (
11328 \family typewriter
11329 pt
11330 \family default
11331 ) or relative to some document or font-based length such as 
11332 \family typewriter
11333
11334 \backslash
11335 textwidth
11336 \family default
11337 .
11338  
11339 \end_layout
11340
11341 \begin_layout Standard
11342 It's possible to change the spacing between a foilhead and the body of the
11343  foil by adjusting the length specified by 
11344 \family typewriter
11345
11346 \backslash
11347 foilheadskip
11348 \family default
11349 .
11350  For example, to make 
11351 \emph on
11352 all
11353 \emph default
11354  foilheads 0.5
11355 \begin_inset space \space{}
11356 \end_inset
11357
11358 in closer to their bodies put the following in the preamble: 
11359 \family typewriter
11360
11361 \backslash
11362 setlength{
11363 \backslash
11364 foilheadskip}{-0.5in}
11365 \end_layout
11366
11367 \begin_layout Standard
11368 The spacings around floats can be adjusted by setting these lengths:
11369 \end_layout
11370
11371 \begin_layout Labeling
11372 \labelwidthstring MMMMMMMMMMM
11373
11374 \family typewriter
11375
11376 \backslash
11377 abovefloatskip
11378 \family default
11379  Separation between the text and the top of the float
11380 \end_layout
11381
11382 \begin_layout Labeling
11383 \labelwidthstring MMMMMMMMMMM
11384
11385 \family typewriter
11386
11387 \backslash
11388 abovecaptionskip
11389 \family default
11390  Separation between the float and the caption
11391 \end_layout
11392
11393 \begin_layout Labeling
11394 \labelwidthstring MMMMMMMMMMM
11395
11396 \family typewriter
11397
11398 \backslash
11399 belowcaptionskip
11400 \family default
11401  Separation between the caption and the following text
11402 \end_layout
11403
11404 \begin_layout Labeling
11405 \labelwidthstring MMMMMMMMMMM
11406
11407 \family typewriter
11408
11409 \backslash
11410 captionwidth
11411 \family default
11412  You can make the captions narrower than the surrounding text by adjusting
11413  this length.
11414  Best done relative to 
11415 \family typewriter
11416
11417 \backslash
11418 textwidth
11419 \family default
11420 .
11421 \end_layout
11422
11423 \begin_layout Standard
11424 There are also several title page related lengths that you may find useful
11425  if you have a long title or several authors:
11426 \end_layout
11427
11428 \begin_layout Labeling
11429 \labelwidthstring MMMMMMMMMMM
11430
11431 \family typewriter
11432
11433 \backslash
11434 abovetitleskip
11435 \family default
11436  Separation from headers to 
11437 \family sans
11438 Title
11439 \end_layout
11440
11441 \begin_layout Labeling
11442 \labelwidthstring MMMMMMMMMMM
11443
11444 \family typewriter
11445
11446 \backslash
11447 titleauthorskip
11448 \family default
11449  between 
11450 \family sans
11451 Title
11452 \family default
11453  and 
11454 \family sans
11455 Author
11456 \family default
11457  environments
11458 \end_layout
11459
11460 \begin_layout Labeling
11461 \labelwidthstring MMMMMMMMMMM
11462
11463 \family typewriter
11464
11465 \backslash
11466 authorauthorskip
11467 \family default
11468  between multiple 
11469 \family sans
11470 Author
11471 \family default
11472  lines
11473 \end_layout
11474
11475 \begin_layout Labeling
11476 \labelwidthstring MMMMMMMMMMM
11477
11478 \family typewriter
11479
11480 \backslash
11481 authordateskip
11482 \family default
11483  between the 
11484 \family sans
11485 Author
11486 \family default
11487  and the 
11488 \family sans
11489 Date
11490 \end_layout
11491
11492 \begin_layout Labeling
11493 \labelwidthstring MMMMMMMMMMM
11494
11495 \family typewriter
11496
11497 \backslash
11498 dateabstractskip
11499 \family default
11500  between the 
11501 \family sans
11502 Date
11503 \family default
11504  and the 
11505 \family sans
11506 Abstract
11507 \end_layout
11508
11509 \begin_layout Standard
11510 The last length related command affects all the list environments.
11511  If you place 
11512 \family typewriter
11513
11514 \backslash
11515 zerolistvertdimens
11516 \family default
11517  
11518 \emph on
11519 inside
11520 \emph default
11521  a list environment then all the vertical spacing between the list items
11522  is removed.
11523  Note that this is a command not a length so it doesn't require 
11524 \family typewriter
11525
11526 \backslash
11527 setlength
11528 \family default
11529  like the stuff mentioned above.
11530 \end_layout
11531
11532 \begin_layout Subsubsection
11533 Headers and Footers
11534 \end_layout
11535
11536 \begin_layout Standard
11537 The 
11538 \family typewriter
11539
11540 \backslash
11541 LogoOn
11542 \family default
11543  and 
11544 \family typewriter
11545
11546 \backslash
11547 LogoOff
11548 \family default
11549  commands control whether the logo in the 
11550 \family sans
11551 MyLogo
11552 \family default
11553  definition appear on a given page.
11554  If you put 
11555 \family typewriter
11556
11557 \backslash
11558 LogoOff
11559 \family default
11560  in the preamble then none of the foils will have the logo on them.
11561  If you don't want the logo on a particular page place the 
11562 \family typewriter
11563
11564 \backslash
11565 LogoOff
11566 \family default
11567  directly after the foilhead of that page and the 
11568 \family typewriter
11569
11570 \backslash
11571 LogoOn
11572 \family default
11573  directly after the next foilhead.
11574 \end_layout
11575
11576 \begin_layout Standard
11577 If you decide to use the 
11578 \family sans
11579 fancy
11580 \family default
11581  page style setting in the 
11582 \family sans
11583 Document
11584 \begin_inset space ~
11585 \end_inset
11586
11587 Layout
11588 \family default
11589  dialog you should probably add 
11590 \family typewriter
11591
11592 \backslash
11593 let
11594 \backslash
11595 headwidth
11596 \backslash
11597 textwidth
11598 \family default
11599  to your preamble so headers and footers on landscape pages are correctly
11600  placed when rotated.
11601  This is due to some clashes between the page layouts provided by the 
11602 \family sans
11603 fancyheadings
11604 \family default
11605  package and the 
11606 \family sans
11607 foils
11608 \family default
11609  class.
11610 \end_layout
11611
11612 \begin_layout Section
11613 Hollywood (Hollywood spec scripts)
11614 \end_layout
11615
11616 \begin_layout Standard
11617 by 
11618 \shape smallcaps
11619 Garst Reese
11620 \end_layout
11621
11622 \begin_layout Subsection
11623 Introduction
11624 \end_layout
11625
11626 \begin_layout Standard
11627 Getting the format of a Hollywood script right is a 
11628 \begin_inset Quotes eld
11629 \end_inset
11630
11631 rite of passage.
11632 \begin_inset Quotes erd
11633 \end_inset
11634
11635  It is designed to make the readers focus on content and to be easy and
11636  familiar for the actors to read.
11637  Each page of a script should be one minute of film.
11638  Nothing goes in a script that you cannot see or hear on screen.
11639  The courier 12 pt font should be used throughout.
11640  No italics.
11641 \end_layout
11642
11643 \begin_layout Subsection
11644 Special problems
11645 \end_layout
11646
11647 \begin_layout Standard
11648 Speakers' lines should NEVER break in mid-sentence.
11649  If a speaker's lines continue over a page break, repeat the 
11650 \family sans
11651 Speaker
11652 \family default
11653  title followed by (Cont'd).
11654 \end_layout
11655
11656 \begin_layout Subsection
11657 Special features
11658 \end_layout
11659
11660 \begin_layout Standard
11661 Insert the 
11662 \family sans
11663 Speaker
11664 \family default
11665  names as labels then cross-reference the label to insert the name.
11666  The cross-reference dialog will show the current cast of characters.
11667  You can use this to insert the speaker name in narratives also.
11668 \end_layout
11669
11670 \begin_layout Subsection
11671 Paper size and Margins
11672 \end_layout
11673
11674 \begin_layout Standard
11675 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11676 \end_layout
11677
11678 \begin_layout Subsection
11679 Environments
11680 \end_layout
11681
11682 \begin_layout Standard
11683 The following environments are available.
11684  You can use hollywood.bind to get the bind keys shown at the right.
11685 \end_layout
11686
11687 \begin_layout Itemize
11688
11689 \family sans
11690 Standard
11691 \begin_inset Newline newline
11692 \end_inset
11693
11694
11695 \family default
11696 Used where nothing else works.
11697  Try to avoid it.
11698 \end_layout
11699
11700 \begin_layout Itemize
11701
11702 \family sans
11703 FADE_IN
11704 \family default
11705 :
11706 \begin_inset space \hfill{}
11707 \end_inset
11708
11709
11710 \family sans
11711 M-z S-I
11712 \family default
11713
11714 \begin_inset Newline newline
11715 \end_inset
11716
11717 Usually followed by something like 
11718 \begin_inset Quotes eld
11719 \end_inset
11720
11721 on Sally waking up.
11722 \begin_inset Quotes erd
11723 \end_inset
11724
11725
11726 \end_layout
11727
11728 \begin_layout Itemize
11729
11730 \family sans
11731 INT:
11732 \begin_inset space \hfill{}
11733 \end_inset
11734
11735 M-z i
11736 \begin_inset Newline newline
11737 \end_inset
11738
11739
11740 \family default
11741 Introduces a new INTERIOR camera set-up.
11742  Always followed by DAY or NIGHT, or something similar to define the lighting
11743  required.
11744  Everthing on this line in CAPS.
11745 \end_layout
11746
11747 \begin_layout Itemize
11748
11749 \family sans
11750 EXT:
11751 \begin_inset space \hfill{}
11752 \end_inset
11753
11754 M-z e
11755 \begin_inset Newline newline
11756 \end_inset
11757
11758
11759 \family default
11760 Introduces a new EXTERIOR camera set-up.
11761  Everthing on this line in CAPS.
11762 \end_layout
11763
11764 \begin_layout Itemize
11765
11766 \family sans
11767 Speaker
11768 \begin_inset space \hfill{}
11769 \end_inset
11770
11771 M-z s
11772 \begin_inset Newline newline
11773 \end_inset
11774
11775
11776 \family default
11777 The character speaking.
11778 \end_layout
11779
11780 \begin_layout Itemize
11781
11782 \family sans
11783 Parenthetical
11784 \begin_inset space \hfill{}
11785 \end_inset
11786
11787 M-z p
11788 \begin_inset Newline newline
11789 \end_inset
11790
11791
11792 \family default
11793 Instructions to the speaker.
11794  The () are automatically inserted, but only the ( will show in LyX.
11795  Both will be printed.
11796 \end_layout
11797
11798 \begin_layout Itemize
11799
11800 \family sans
11801 Dialogue
11802 \begin_inset space \hfill{}
11803 \end_inset
11804
11805 M-z d
11806 \begin_inset Newline newline
11807 \end_inset
11808
11809
11810 \family default
11811 What the 
11812 \family sans
11813 Speaker
11814 \family default
11815  says.
11816 \end_layout
11817
11818 \begin_layout Itemize
11819
11820 \family sans
11821 Transition
11822 \begin_inset space \hfill{}
11823 \end_inset
11824
11825 M-z t
11826 \begin_inset Newline newline
11827 \end_inset
11828
11829
11830 \family default
11831 Camera movement instruction.
11832  e.
11833 \begin_inset space \thinspace{}
11834 \end_inset
11835
11836 g.
11837 \begin_inset space \space{}
11838 \end_inset
11839
11840 CUT TO:
11841 \end_layout
11842
11843 \begin_layout Itemize
11844
11845 \family sans
11846 FADE OUT:
11847 \begin_inset space \hfill{}
11848 \end_inset
11849
11850 M-z S-I
11851 \end_layout
11852
11853 \begin_layout Itemize
11854
11855 \family sans
11856 Author
11857 \begin_inset space \hfill{}
11858 \end_inset
11859
11860 M-z S-A
11861 \end_layout
11862
11863 \begin_layout Itemize
11864
11865 \family sans
11866 Title
11867 \begin_inset space \hfill{}
11868 \end_inset
11869
11870 M-z S-T
11871 \end_layout
11872
11873 \begin_layout Itemize
11874
11875 \family sans
11876 Right_Address
11877 \begin_inset space \hfill{}
11878 \end_inset
11879
11880 M-z r
11881 \end_layout
11882
11883 \begin_layout Subsection
11884 Script jargon
11885 \end_layout
11886
11887 \begin_layout Itemize
11888 (O.S) — off screen
11889 \end_layout
11890
11891 \begin_layout Itemize
11892 (V.0) — voice over
11893 \end_layout
11894
11895 \begin_layout Itemize
11896 b.
11897 \begin_inset space \thinspace{}
11898 \end_inset
11899
11900 g.
11901  — background
11902 \end_layout
11903
11904 \begin_layout Itemize
11905 C.U.
11906  — close-up
11907 \end_layout
11908
11909 \begin_layout Itemize
11910 PAN — camera movement
11911 \end_layout
11912
11913 \begin_layout Itemize
11914 INSERT — cut to close-up of
11915 \end_layout
11916
11917 \begin_layout Section
11918 ijmpc and ijmpd
11919 \end_layout
11920
11921 \begin_layout Standard
11922 by 
11923 \noun on
11924 Panayotis Papasotiriou
11925 \end_layout
11926
11927 \begin_layout Subsection
11928 Overview
11929 \end_layout
11930
11931 \begin_layout Standard
11932 The ijmpc package is a set of macros that facilitates electronic manuscript
11933  submission to the 
11934 \emph on
11935 International Journal of Modern Physics C
11936 \emph default
11937 .
11938  Similarly, the ijmpd package is for creating manuscripts to be submitted
11939  to the 
11940 \emph on
11941 International Journal of Modern Physics D
11942 \emph default
11943 .
11944  Both journals are published by World Scientific.
11945  The corresponding document classes are named 
11946 \family typewriter
11947 ws-ijmpc.cls
11948 \family default
11949  and 
11950 \family typewriter
11951 ws-ijmpd.cls
11952 \family default
11953 , respectively.
11954  These files, together with instructions for the authors, can be downloaded
11955  from the sites 
11956 \begin_inset Flex URL
11957 status collapsed
11958
11959 \begin_layout Plain Layout
11960
11961 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
11962 \end_layout
11963
11964 \end_inset
11965
11966  and 
11967 \begin_inset Flex URL
11968 status collapsed
11969
11970 \begin_layout Plain Layout
11971
11972 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
11973 \end_layout
11974
11975 \end_inset
11976
11977 .
11978  Both packages are modified versions of the standard 
11979 \begin_inset Quotes eld
11980 \end_inset
11981
11982 article
11983 \begin_inset Quotes erd
11984 \end_inset
11985
11986  package, and they are almost (but not exactly) identical.
11987  Most of their features are supported by LyX.
11988  I have used LyX successfully to write articles submitted to both journals
11989  without any problem.
11990 \end_layout
11991
11992 \begin_layout Subsection
11993 Writing a paper
11994 \end_layout
11995
11996 \begin_layout Standard
11997 As usual, the easiest way to write a paper is to start with a template.
11998  Click on 
11999 \family sans
12000 File\SpecialChar \menuseparator
12001 New from
12002 \family default
12003  
12004 \family sans
12005 \bar under
12006 T
12007 \bar default
12008 emplate
12009 \family default
12010 , then choose the 
12011 \family typewriter
12012 ijmpc.lyx
12013 \family default
12014  or 
12015 \family typewriter
12016 ijmpd.lyx
12017 \family default
12018  template.
12019  This will give an (almost) empty document that includes the most common
12020  fields found in a manuscript.
12021  Simply overwrite the existing text (including the brackets, 
12022 \family typewriter
12023 <>
12024 \family default
12025 ) with your text.
12026  You should keep in mind the following remarks.
12027 \end_layout
12028
12029 \begin_layout Enumerate
12030 LyX won't let you change the font size and the page style of the document,
12031  because such modifications are not allowed by both packages.
12032 \end_layout
12033
12034 \begin_layout Enumerate
12035 The language of the document should not be changed.
12036  Before previewing your paper, be sure that the babel package is not used.
12037  To do this, click on 
12038 \family sans
12039 Tools\SpecialChar \menuseparator
12040 Preferences
12041 \family default
12042 , select the 
12043 \family sans
12044 Lang Opts
12045 \family default
12046  tab, deselect the 
12047 \family sans
12048 Use babel
12049 \family default
12050  checkbox in the language settings, and click on 
12051 \family sans
12052 Apply
12053 \family default
12054  (or 
12055 \family sans
12056 Save
12057 \family default
12058 , if you wish to make this change permanent).
12059 \end_layout
12060
12061 \begin_layout Enumerate
12062 The 
12063 \begin_inset Quotes eld
12064 \end_inset
12065
12066 Keywords
12067 \begin_inset Quotes erd
12068 \end_inset
12069
12070  style must be used to define keywords.
12071 \end_layout
12072
12073 \begin_layout Enumerate
12074 The ijmpc package provides a style named 
12075 \begin_inset Quotes eld
12076 \end_inset
12077
12078 Classification Codes
12079 \begin_inset Quotes erd
12080 \end_inset
12081
12082 , which can be used to define classification codes, such as PACS numbers.
12083  Note that this facility is not supported by the ijmpd package.
12084 \end_layout
12085
12086 \begin_layout Enumerate
12087 Several new environments are available: 
12088 \begin_inset Quotes eld
12089 \end_inset
12090
12091 Definition
12092 \begin_inset Quotes erd
12093 \end_inset
12094
12095
12096 \begin_inset Quotes eld
12097 \end_inset
12098
12099 Step
12100 \begin_inset Quotes erd
12101 \end_inset
12102
12103
12104 \begin_inset Quotes eld
12105 \end_inset
12106
12107 Example
12108 \begin_inset Quotes erd
12109 \end_inset
12110
12111
12112 \begin_inset Quotes eld
12113 \end_inset
12114
12115 Remark
12116 \begin_inset Quotes erd
12117 \end_inset
12118
12119
12120 \begin_inset Quotes eld
12121 \end_inset
12122
12123 Notation
12124 \begin_inset Quotes erd
12125 \end_inset
12126
12127
12128 \begin_inset Quotes eld
12129 \end_inset
12130
12131 Theorem
12132 \begin_inset Quotes erd
12133 \end_inset
12134
12135
12136 \begin_inset Quotes eld
12137 \end_inset
12138
12139 Proof
12140 \begin_inset Quotes erd
12141 \end_inset
12142
12143
12144 \begin_inset Quotes eld
12145 \end_inset
12146
12147 Corollary
12148 \begin_inset Quotes erd
12149 \end_inset
12150
12151
12152 \begin_inset Quotes eld
12153 \end_inset
12154
12155 Lemma
12156 \begin_inset Quotes erd
12157 \end_inset
12158
12159
12160 \begin_inset Quotes eld
12161 \end_inset
12162
12163 Proposition
12164 \begin_inset Quotes erd
12165 \end_inset
12166
12167
12168 \begin_inset Quotes eld
12169 \end_inset
12170
12171 Prop
12172 \begin_inset Quotes erd
12173 \end_inset
12174
12175
12176 \begin_inset Quotes eld
12177 \end_inset
12178
12179 Question
12180 \begin_inset Quotes erd
12181 \end_inset
12182
12183
12184 \begin_inset Quotes eld
12185 \end_inset
12186
12187 Claim
12188 \begin_inset Quotes erd
12189 \end_inset
12190
12191 , and 
12192 \begin_inset Quotes eld
12193 \end_inset
12194
12195 Conjecture
12196 \begin_inset Quotes erd
12197 \end_inset
12198
12199 .
12200  Their use is more or less obvious.
12201  LyX supports all these environments; it will use the proper label, text
12202  style, and numbering scheme for each of them.
12203 \end_layout
12204
12205 \begin_layout Enumerate
12206 Both packages use basic citations; the natbib package should not be used.
12207  In LyX, citation references are shown as usual; in the output, citations
12208  are shown as superscripts.
12209  If you want to use a citation as normal text, you should use the 
12210 \family typewriter
12211 refcite
12212 \family default
12213  command, e.
12214 \begin_inset space \thinspace{}
12215 \end_inset
12216
12217 g.
12218 \begin_inset space \space{}
12219 \end_inset
12220
12221
12222 \begin_inset Quotes eld
12223 \end_inset
12224
12225 See Ref.
12226 \begin_inset space \space{}
12227 \end_inset
12228
12229
12230 \family typewriter
12231
12232 \backslash
12233 refcite{key}
12234 \family default
12235
12236 \begin_inset Quotes erd
12237 \end_inset
12238
12239 .
12240 \end_layout
12241
12242 \begin_layout Enumerate
12243 There is no 
12244 \begin_inset Quotes eld
12245 \end_inset
12246
12247 Acknowledgments
12248 \begin_inset Quotes erd
12249 \end_inset
12250
12251  section in both packages.
12252  To put acknowledgments, just use the 
12253 \begin_inset Quotes eld
12254 \end_inset
12255
12256 Section*
12257 \begin_inset Quotes erd
12258 \end_inset
12259
12260  environment.
12261 \end_layout
12262
12263 \begin_layout Enumerate
12264 Appendices may be added to the paper, 
12265 \emph on
12266 after
12267 \emph default
12268  the Acknowledgments and 
12269 \shape italic
12270 before
12271 \shape default
12272  the References.
12273  LyX provides a special environment, called 
12274 \begin_inset Quotes eld
12275 \end_inset
12276
12277 Appendices Section
12278 \begin_inset Quotes erd
12279 \end_inset
12280
12281  which marks the beginning of the appendices.
12282  This environment should be left blank; it just sends a LaTeX command, but
12283  nothing is really printed.
12284  In LyX, the word 
12285 \begin_inset Quotes eld
12286 \end_inset
12287
12288 Appendix
12289 \begin_inset Quotes erd
12290 \end_inset
12291
12292  is printed with blue letters, as a signal that all sections after that
12293  point are appendices.
12294  To write an appendix, use the 
12295 \begin_inset Quotes eld
12296 \end_inset
12297
12298 Appendix
12299 \begin_inset Quotes erd
12300 \end_inset
12301
12302  environment.
12303  LyX will number each appendix with capital letters, as required by both
12304  journals.
12305  Note that 
12306 \begin_inset Quotes eld
12307 \end_inset
12308
12309 Appendices Section
12310 \begin_inset Quotes erd
12311 \end_inset
12312
12313  
12314 \emph on
12315 must
12316 \emph default
12317  be present before the first appendix; if not, all appendices will be numbered
12318  as normal sections in the output.
12319 \end_layout
12320
12321 \begin_layout Enumerate
12322 The ijmpc and the ijmpd packages use the 
12323 \family typewriter
12324 tbl
12325 \family default
12326  command to implement table captions.
12327  As a result, a table created by LyX is printed correctly, but its caption
12328  is ignored.
12329  However, you can use some TeX code to overcome this problem, so that captions
12330  are printed as expected.
12331  To do so, create a float table as usual, remove the caption, and replace
12332  it with the TeX code 
12333 \family typewriter
12334
12335 \backslash
12336 tbl{
12337 \emph on
12338 your table caption
12339 \emph default
12340 }{
12341 \family default
12342  (sic); you must also the TeX code 
12343 \family typewriter
12344 }
12345 \family default
12346  immediately after the tabular material.
12347  Study the example table included in the template files to see how this
12348  trick is implemented.
12349  Alternatively, If you need table captions, you should implement the whole
12350  table float in a 
12351 \family typewriter
12352 .tex
12353 \family default
12354  file, then include this file to the LyX document (
12355 \family sans
12356 Insert\SpecialChar \menuseparator
12357 File\SpecialChar \menuseparator
12358 Child
12359 \begin_inset space ~
12360 \end_inset
12361
12362 Document
12363 \family default
12364 ).
12365  Details on how to create a table float can be found in the files 
12366 \family typewriter
12367 ws-ijmpc.tex
12368 \family default
12369  and 
12370 \family typewriter
12371 ws-ijmpd.tex
12372 \family default
12373 , included in the corresponding packages.
12374 \end_layout
12375
12376 \begin_layout Subsection
12377 Preparing a paper for submission
12378 \end_layout
12379
12380 \begin_layout Standard
12381 Before you submit your paper you must export the LyX document as a LaTeX
12382  file (
12383 \family sans
12384 File\SpecialChar \menuseparator
12385 Export\SpecialChar \menuseparator
12386 LaTeX
12387 \family default
12388 )
12389 \begin_inset Foot
12390 status open
12391
12392 \begin_layout Plain Layout
12393 Actually you have the choice between LaTeX (plain) and pdflatex.
12394  If you intend to use pdflatex to prepare the paper, you should use the
12395  pdflatex option so that included graphics are converted to PDF format,
12396  ready for use by pdflatex.
12397 \end_layout
12398
12399 \end_inset
12400
12401 , then make the following changes to the resulting 
12402 \family typewriter
12403 .tex
12404 \family default
12405  file.
12406 \end_layout
12407
12408 \begin_layout Enumerate
12409 Remove the comment lines before the 
12410 \family typewriter
12411
12412 \backslash
12413 documentclass
12414 \family default
12415  command.
12416 \end_layout
12417
12418 \begin_layout Enumerate
12419 Remove everything between (and including) the 
12420 \family typewriter
12421
12422 \backslash
12423 makeatletter
12424 \family default
12425  and 
12426 \family typewriter
12427
12428 \backslash
12429 makeatother
12430 \family default
12431  commands, except for any commands you specifically put into the LaTeX preamble.
12432 \end_layout
12433
12434 \begin_layout Standard
12435 The modified 
12436 \family typewriter
12437 .tex
12438 \family default
12439  file should be saved and processed through LaTeX as many times as necessary.
12440  You may also want to check the resulting 
12441 \family typewriter
12442 .dvi
12443 \family default
12444  document.
12445 \end_layout
12446
12447 \begin_layout Subsection
12448 Use of TeX code
12449 \end_layout
12450
12451 \begin_layout Standard
12452 The use of TeX code is reduced to two commands, which must be placed at
12453  the top of the document.
12454  If you started writing your paper by using the 
12455 \family typewriter
12456 ijmpc.lyx
12457 \family default
12458  or the 
12459 \family typewriter
12460 ijmpd.lyx
12461 \family default
12462  template, the TeX code needed is already in its place; you usually don't
12463  need to delete it.
12464  You may only modify the first TeX code to specify the information printed
12465  to the top of odd and even pages (authors' names and short paper's title,
12466  respectively).
12467  This TeX code must have the form 
12468 \family typewriter
12469
12470 \backslash
12471 markboth{Authors' Names}{Short Paper's Title}
12472 \family default
12473 .
12474 \end_layout
12475
12476 \begin_layout Section
12477 iopart
12478 \end_layout
12479
12480 \begin_layout Standard
12481 by 
12482 \noun on
12483 Uwe Stöhr
12484 \end_layout
12485
12486 \begin_layout Subsection
12487 Overview
12488 \end_layout
12489
12490 \begin_layout Standard
12491 The iopart package provides a document class to create electronic manuscript
12492  submission to the journals published by the Institute of Physics.
12493  Instructions for the authors how to create a paper using the iopart class
12494  can be downloaded together with the iopart package from the site 
12495 \begin_inset Flex URL
12496 status collapsed
12497
12498 \begin_layout Plain Layout
12499
12500 ftp://ftp.iop.org/pub/journals/latex2e
12501 \end_layout
12502
12503 \end_inset
12504
12505 .
12506 \end_layout
12507
12508 \begin_layout Subsection
12509 Writing a paper
12510 \end_layout
12511
12512 \begin_layout Standard
12513 The easiest way to write a paper is to start with the file 
12514 \emph on
12515 IOP-article.lyx
12516 \emph default
12517  that is available in LyX's examples files folder.
12518  Open this file, save it under a new name, and start writing.
12519  The example file explains how to use the special text environments.
12520  Here are the most important advices:
12521 \end_layout
12522
12523 \begin_layout Itemize
12524 To be able to compile your document to a PDF, PS, or DVI, ensure that the
12525  two options 
12526 \family sans
12527 Use AMS math package
12528 \family default
12529  in the document settings under 
12530 \family sans
12531 Math Options
12532 \family default
12533  are not used!
12534 \end_layout
12535
12536 \begin_layout Itemize
12537
12538 \size normal
12539 The title environment defines the kind of your paper.
12540  So use one of the following environments for the title:
12541 \end_layout
12542
12543 \begin_deeper
12544 \begin_layout Itemize
12545
12546 \family sans
12547 \size normal
12548 Title
12549 \family default
12550  for a Paper
12551 \end_layout
12552
12553 \begin_layout Itemize
12554
12555 \family sans
12556 \size normal
12557 Review
12558 \family default
12559  for a Review
12560 \end_layout
12561
12562 \begin_layout Itemize
12563
12564 \family sans
12565 \size normal
12566 Topical
12567 \family default
12568  for a Topical review
12569 \end_layout
12570
12571 \begin_layout Itemize
12572
12573 \family sans
12574 \size normal
12575 Comment
12576 \family default
12577  for a Comment
12578 \end_layout
12579
12580 \begin_layout Itemize
12581
12582 \family sans
12583 \size normal
12584 Note
12585 \family default
12586  for a Note
12587 \end_layout
12588
12589 \begin_layout Itemize
12590
12591 \family sans
12592 \size normal
12593 Paper
12594 \family default
12595  for a Paper (same as Title)
12596 \end_layout
12597
12598 \begin_layout Itemize
12599
12600 \family sans
12601 \size normal
12602 Prelim
12603 \family default
12604  for a Preliminary communication
12605 \end_layout
12606
12607 \begin_layout Itemize
12608
12609 \family sans
12610 \size normal
12611 Rapid
12612 \family default
12613  for a Rapid communication
12614 \end_layout
12615
12616 \begin_layout Itemize
12617
12618 \family sans
12619 \size normal
12620 Letter
12621 \family default
12622  for a Letter to the editor
12623 \end_layout
12624
12625 \end_deeper
12626 \begin_layout Itemize
12627
12628 \size normal
12629 All title environments except of 
12630 \family sans
12631 Letter
12632 \family default
12633  can have an optional short title.
12634 \end_layout
12635
12636 \begin_layout Itemize
12637 There is a general title environment 
12638 \family sans
12639 Article
12640 \family default
12641  which is not directly supported by the LyX.
12642  This can be used as TeX code when your document doesn't fit into one of
12643  the other title types.
12644 \end_layout
12645
12646 \begin_layout Standard
12647 For more informations like hints for special table and formula formatting,
12648  look at the IOP author guidelines.
12649 \end_layout
12650
12651 \begin_layout Section
12652 Kluwer
12653 \end_layout
12654
12655 \begin_layout Standard
12656 by 
12657 \noun on
12658 Panayotis Papasotiriou
12659 \end_layout
12660
12661 \begin_layout Subsection
12662 Overview
12663 \end_layout
12664
12665 \begin_layout Standard
12666 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
12667  that facilitates electronic manuscript submission to the journals they
12668  publish.
12669  Most known of them (at least in my domain of interest) are 
12670 \emph on
12671 Astrophysics and Space Science
12672 \emph default
12673  and 
12674 \emph on
12675 Solar Physics
12676 \emph default
12677 , but there are many others (see a complete list at 
12678 \begin_inset Flex URL
12679 status open
12680
12681 \begin_layout Plain Layout
12682
12683 http://www.wkap.nl/jrnllist.htm/JRNLHOME
12684 \end_layout
12685
12686 \end_inset
12687
12688 ).
12689  The Kluwer package may be downloaded from the site 
12690 \begin_inset Flex URL
12691 status collapsed
12692
12693 \begin_layout Plain Layout
12694
12695 http://www.wkap.nl/kaphtml.htm/STYLEFILES
12696 \end_layout
12697
12698 \end_inset
12699
12700 .
12701  A complete user guide is contained in that package (but it can also be
12702  downloaded separately).
12703 \end_layout
12704
12705 \begin_layout Standard
12706 LyX supports many features of the package but not everything.
12707  However, the TeX code needed is reduced to some 
12708 \begin_inset Quotes eld
12709 \end_inset
12710
12711 peculiar
12712 \begin_inset Quotes erd
12713 \end_inset
12714
12715  commands of the package (see
12716 \begin_inset space ~
12717 \end_inset
12718
12719
12720 \begin_inset CommandInset ref
12721 LatexCommand ref
12722 reference "subsec:kluwer_peculiarities"
12723
12724 \end_inset
12725
12726 ).
12727  I have recently used LyX to write an article submitted to the 
12728 \emph on
12729 Astrophysics and Space Science
12730 \emph default
12731  without any problem.
12732 \end_layout
12733
12734 \begin_layout Subsection
12735 Writing a paper
12736 \end_layout
12737
12738 \begin_layout Standard
12739 The easiest way to write a paper is to start with the Kluwer template file.
12740  Click on 
12741 \family sans
12742 File\SpecialChar \menuseparator
12743 New from
12744 \family default
12745  
12746 \family sans
12747 Template
12748 \family default
12749 , then choose the 
12750 \family typewriter
12751 kluwer.lyx
12752 \family default
12753  template.
12754  This will give an (almost) empty document that includes the most common
12755  fields found in a manuscript and a short description of their use.
12756  As in most templates, simply overwrite the existing text (including the
12757  brackets, 
12758 \family typewriter
12759 <>
12760 \family default
12761 ) with the correct information.
12762 \end_layout
12763
12764 \begin_layout Subsection
12765 Preparing a paper for submission
12766 \end_layout
12767
12768 \begin_layout Standard
12769 As in the AASTeX package, before you submit your paper to a journal you
12770  must 
12771 \begin_inset Quotes eld
12772 \end_inset
12773
12774 postprocess
12775 \begin_inset Quotes erd
12776 \end_inset
12777
12778  it as follows.
12779 \end_layout
12780
12781 \begin_layout Enumerate
12782 Export your paper as a LaTeX file.
12783  To do this, click on 
12784 \family sans
12785 File\SpecialChar \menuseparator
12786 Export\SpecialChar \menuseparator
12787 LaTeX
12788 \family default
12789 .
12790  
12791 \end_layout
12792
12793 \begin_layout Enumerate
12794 Edit the resulting 
12795 \family typewriter
12796 .tex
12797 \family default
12798  file with a text editor and make the following changes
12799 \end_layout
12800
12801 \begin_deeper
12802 \begin_layout Enumerate
12803 remove the comment lines before the 
12804 \family typewriter
12805
12806 \backslash
12807 documentclass
12808 \family default
12809  command,
12810 \end_layout
12811
12812 \begin_layout Enumerate
12813 remove everything between (and including) the 
12814 \family typewriter
12815
12816 \backslash
12817 makeatletter
12818 \family default
12819  and 
12820 \family typewriter
12821
12822 \backslash
12823 makeatother
12824 \family default
12825  commands, except for any commands you specifically put into the LaTeX preamble.
12826 \end_layout
12827
12828 \begin_layout Standard
12829 Save the resulting 
12830 \family typewriter
12831 .tex
12832 \family default
12833  file.
12834 \end_layout
12835
12836 \end_deeper
12837 \begin_layout Enumerate
12838 Run the 
12839 \family typewriter
12840 .tex
12841 \family default
12842  file through LaTeX as many times as necessary (usually up to three).
12843 \end_layout
12844
12845 \begin_layout Enumerate
12846 View the resulting 
12847 \family typewriter
12848 .dvi
12849 \family default
12850  document using, e.
12851 \begin_inset space \thinspace{}
12852 \end_inset
12853
12854 g.
12855 \begin_inset space \space{}
12856 \end_inset
12857
12858
12859 \family sans
12860 xdvi
12861 \family default
12862 , and check if everything is OK (it should, if you didn't make any mistake).
12863 \end_layout
12864
12865 \begin_layout Subsection
12866 \begin_inset Quotes eld
12867 \end_inset
12868
12869 Peculiarities
12870 \begin_inset Quotes erd
12871 \end_inset
12872
12873  of the Kluwer package
12874 \begin_inset CommandInset label
12875 LatexCommand label
12876 name "subsec:kluwer_peculiarities"
12877
12878 \end_inset
12879
12880
12881 \end_layout
12882
12883 \begin_layout Standard
12884 The Kluwer package has the following 
12885 \begin_inset Quotes eld
12886 \end_inset
12887
12888 peculiarities
12889 \begin_inset Quotes erd
12890 \end_inset
12891
12892 .
12893 \end_layout
12894
12895 \begin_layout Enumerate
12896 It is possible to write multiple articles in the same LaTeX file
12897 \begin_inset Foot
12898 status collapsed
12899
12900 \begin_layout Plain Layout
12901 I can't imagine any good reason to do this.
12902 \end_layout
12903
12904 \end_inset
12905
12906 .
12907  Each article must be included in the environment 
12908 \begin_inset Quotes eld
12909 \end_inset
12910
12911 article
12912 \begin_inset Quotes erd
12913 \end_inset
12914
12915 .
12916  Unfortunately, this environment cannot be omitted, even if you write just
12917  one article.
12918  Therefore, each article starts with the command 
12919 \family typewriter
12920
12921 \backslash
12922 begin{article}
12923 \family default
12924  and, obviously, ends with the command 
12925 \family typewriter
12926
12927 \backslash
12928 end{article}
12929 \family default
12930 .
12931  Although this can be implemented in LyX, I didn't included it, since it
12932  looks ugly and can confuse the novice user.
12933  Therefore, you need to enter them directly and mark them as LaTeX code
12934  (the well-known 
12935 \begin_inset Quotes eld
12936 \end_inset
12937
12938 TeX code
12939 \begin_inset Quotes erd
12940 \end_inset
12941
12942 ).
12943 \end_layout
12944
12945 \begin_layout Enumerate
12946 Information given at the beginning of the article (i.
12947 \begin_inset space \thinspace{}
12948 \end_inset
12949
12950 g.
12951 \begin_inset space \space{}
12952 \end_inset
12953
12954 title, subtitle, author, institution, running title, running author, abstract
12955  and keywords) must be included in an environment called 
12956 \begin_inset Quotes eld
12957 \end_inset
12958
12959 opening
12960 \begin_inset Quotes erd
12961 \end_inset
12962
12963 .
12964  This is not implemented in LyX, so you must enter title, subtitle etc.
12965 \begin_inset space ~
12966 \end_inset
12967
12968 between two TeX code lines (
12969 \family typewriter
12970
12971 \backslash
12972 begin{opening}
12973 \family default
12974  and 
12975 \family typewriter
12976
12977 \backslash
12978 end{opening}
12979 \family default
12980 ).
12981 \end_layout
12982
12983 \begin_layout Enumerate
12984 According to the user manual, the label of each bibliography item must be
12985  written as 
12986 \family typewriter
12987
12988 \backslash
12989 protect
12990 \backslash
12991 citeauthoryear{
12992 \family default
12993 \emph on
12994 author(s)
12995 \family typewriter
12996 \emph default
12997 }{
12998 \family default
12999 \emph on
13000 year
13001 \family typewriter
13002 \emph default
13003 }
13004 \family default
13005 .
13006 \end_layout
13007
13008 \begin_layout Standard
13009 The 
13010 \family typewriter
13011 kluwer.lyx
13012 \family default
13013  template takes care of all these 
13014 \begin_inset Quotes eld
13015 \end_inset
13016
13017 peculiarities
13018 \begin_inset Quotes erd
13019 \end_inset
13020
13021 .
13022  If you start a new paper using this template you don't need to do anything
13023  special.
13024  Just 
13025 \end_layout
13026
13027 \begin_layout Enumerate
13028 don't delete the TeX code included in the template, and
13029 \end_layout
13030
13031 \begin_layout Enumerate
13032 copy the example bibliography item included in the template and modify it
13033  as necessary to enter new bibliography items.
13034 \end_layout
13035
13036 \begin_layout Section
13037 Koma-Script
13038 \end_layout
13039
13040 \begin_layout Standard
13041 by 
13042 \noun on
13043 Bernd Rellermeyer
13044 \end_layout
13045
13046 \begin_layout Subsection
13047 Overview
13048 \end_layout
13049
13050 \begin_layout Standard
13051 The LyX document classes 
13052 \emph on
13053 article (koma-script)
13054 \emph default
13055
13056 \emph on
13057 report (koma-script)
13058 \emph default
13059
13060 \emph on
13061 book
13062 \emph default
13063  
13064 \emph on
13065 (koma-script)
13066 \emph default
13067 , and 
13068 \emph on
13069 letter
13070 \emph default
13071  
13072 \emph on
13073 (koma-script)
13074 \emph default
13075  correspond to the LaTeX document classes 
13076 \family typewriter
13077 scrartcl.cls
13078 \family default
13079
13080 \family typewriter
13081 scrreprt.cls
13082 \family default
13083
13084 \family typewriter
13085 scrbook.cls
13086 \family default
13087 , and 
13088 \family typewriter
13089 scrlettr.cls
13090 \family default
13091 , resp.
13092 \begin_inset space ~
13093 \end_inset
13094
13095 of the Koma-Script family.
13096  They are replacements for the standard document classes 
13097 \family typewriter
13098 article.cls
13099 \family default
13100
13101 \family typewriter
13102 report.cls
13103 \family default
13104
13105 \family typewriter
13106 book.cls
13107 \family default
13108  and 
13109 \family typewriter
13110 letter.cls
13111 \family default
13112 , resp., and fit better to European typography conventions in a number of
13113  points.
13114 \end_layout
13115
13116 \begin_layout Itemize
13117 Standard character size is 11pt in 
13118 \emph on
13119 article (koma-script)
13120 \emph default
13121
13122 \emph on
13123 report (koma-script)
13124 \emph default
13125 , and 
13126 \emph on
13127 book (koma-script)
13128 \emph default
13129 , and 12pt in 
13130 \emph on
13131 letter (koma-script)
13132 \emph default
13133 .
13134 \end_layout
13135
13136 \begin_layout Itemize
13137 Headings, labels of the description environment, and a number of elements
13138  of the 
13139 \emph on
13140 letter (koma-script)
13141 \emph default
13142  document class are set in a bold sans serif font.
13143 \begin_inset Foot
13144 status collapsed
13145
13146 \begin_layout Plain Layout
13147 There is a big difference between the bold sans serif old cm fonts and new
13148  ec fonts, especially in the appearance of headings.
13149  In comparison, the ec bold sans serif fonts look a bit thin.
13150  Here the LaTeX package 
13151 \family typewriter
13152 cmsd.sty by
13153 \family default
13154  
13155 \shape smallcaps
13156 Walter Schmidt
13157 \shape default
13158  helps to produce the 
13159 \begin_inset Quotes eld
13160 \end_inset
13161
13162 usual
13163 \begin_inset Quotes erd
13164 \end_inset
13165
13166  appearance when using the ec fonts.
13167 \end_layout
13168
13169 \end_inset
13170
13171  The numbering of chapter headings is made in the same way as the numbering
13172  of section headings, that is without the extra line 
13173 \begin_inset Quotes eld
13174 \end_inset
13175
13176 Chapter\SpecialChar \ldots{}
13177
13178 \begin_inset Quotes erd
13179 \end_inset
13180
13181 .
13182  In addition, the appearance of the headings can be modified by using a
13183  number of options (in LyX to be entered in the field 
13184 \family sans
13185 Extra
13186 \begin_inset space ~
13187 \end_inset
13188
13189 Options
13190 \family default
13191  of the dialog 
13192 \family sans
13193 Layout\SpecialChar \menuseparator
13194 Document
13195 \family default
13196 ).
13197  
13198 \end_layout
13199
13200 \begin_layout Itemize
13201 The main means in the Koma-Script document classes to design the type area
13202  are the options 
13203 \family sans
13204 BCOR
13205 \family default
13206  and 
13207 \family sans
13208 DIV
13209 \family default
13210  (in LyX to be entered in the extra class options field in the dialog 
13211 \family sans
13212 Document\SpecialChar \menuseparator
13213 Settings
13214 \family default
13215 ).
13216  They make a clearer modification of page margins possible as do the options
13217  of the dialog 
13218 \family sans
13219 Document\SpecialChar \menuseparator
13220 Settings
13221 \family default
13222 .
13223  
13224 \end_layout
13225
13226 \begin_layout Itemize
13227 The LaTeX document classes of the Koma-Script family define a number of
13228  additional commands.
13229  Those part of it which makes sense in LyX is implemented in corresponding
13230  paragraph types.
13231 \end_layout
13232
13233 \begin_layout Standard
13234 Detailed descriptions of the LaTeX document classes of the Koma-Script family
13235  can be found in the Koma-Script documentation 
13236 \emph on
13237 scrguide
13238 \emph default
13239  (German) and 
13240 \emph on
13241 scrguien
13242 \emph default
13243  (English).
13244 \end_layout
13245
13246 \begin_layout Subsection
13247 article (koma-script), report (koma-script), and book (koma-script)
13248 \end_layout
13249
13250 \begin_layout Standard
13251 The document classes 
13252 \emph on
13253 article (koma-script)
13254 \emph default
13255
13256 \emph on
13257 report (koma-script)
13258 \emph default
13259 , and 
13260 \emph on
13261 book
13262 \emph default
13263  
13264 \emph on
13265 (koma-script)
13266 \emph default
13267  are implemented in the layout files 
13268 \family typewriter
13269 scrartcl.layout
13270 \family default
13271
13272 \family typewriter
13273 scrreprt.layout
13274 \family default
13275 , and 
13276 \family typewriter
13277 scrbook.layout
13278 \family default
13279 , resp.
13280  They contain all the paragraph types of the corresponding standard document
13281  classes 
13282 \emph on
13283 article
13284 \emph default
13285
13286 \emph on
13287 report
13288 \emph default
13289 , and 
13290 \emph on
13291 book
13292 \emph default
13293 , resp., partly modified, with the exception of the LyX specific 
13294 \family sans
13295 List
13296 \family default
13297 -type, which is replaced by the new 
13298 \family sans
13299 Labeling
13300 \family default
13301 -type having the same functionality.
13302  Beside the 
13303 \family sans
13304 Labeling
13305 \family default
13306 -Type there is a number of new paragraph types added.
13307  They are 
13308 \emph on
13309 not
13310 \emph default
13311  part of 
13312 \emph on
13313 letter (koma-script)
13314 \emph default
13315 .
13316 \end_layout
13317
13318 \begin_layout Itemize
13319
13320 \family sans
13321 Addpart, Addchap
13322 \family default
13323
13324 \family sans
13325 Addsec
13326 \family default
13327 : are equivalents to 
13328 \family sans
13329 Part*, Chapter*
13330 \family default
13331  and 
13332 \family sans
13333 Section*
13334 \family default
13335 , resp., additionally inserting an entry in the table of contents.
13336  
13337 \family sans
13338 Addpart
13339 \family default
13340  and 
13341 \family sans
13342 Addchap
13343 \family default
13344  are not contained in 
13345 \emph on
13346 article (koma-script)
13347 \emph default
13348 .
13349 \end_layout
13350
13351 \begin_layout Itemize
13352
13353 \family sans
13354 Addchap*
13355 \family default
13356
13357 \family sans
13358 Addsec*
13359 \family default
13360 : behave exactly as 
13361 \family sans
13362 Addchap
13363 \family default
13364  and 
13365 \family sans
13366 Addsec
13367 \family default
13368 , resp., additionally clearing running heads.
13369  
13370 \family sans
13371 Addchap*
13372 \family default
13373  is not contained in 
13374 \emph on
13375 article (koma-script)
13376 \emph default
13377 .
13378 \begin_inset Foot
13379 status collapsed
13380
13381 \begin_layout Plain Layout
13382 There is also an 
13383 \family typewriter
13384
13385 \backslash
13386 addpart*
13387 \family default
13388  command in 
13389 \emph on
13390 book (koma-script)
13391 \emph default
13392  and in 
13393 \emph on
13394 report (koma-script)
13395 \emph default
13396 , but since this is identical to 
13397 \family sans
13398 Part*
13399 \family default
13400 , is has not been implemented in LyX.
13401 \end_layout
13402
13403 \end_inset
13404
13405
13406 \end_layout
13407
13408 \begin_layout Itemize
13409
13410 \family sans
13411 Minisec
13412 \family default
13413 : generates a heading directly above the following paragraph in the standard
13414  character size without affecting the structure of the document.
13415 \end_layout
13416
13417 \begin_layout Itemize
13418
13419 \family sans
13420 Captionabove
13421 \family default
13422  and 
13423 \family sans
13424 Captionbelow
13425 \family default
13426  are special captions which respect the different space settings needed
13427  for captions placed above or below an element (if you follow strict typographic
13428  rules, you might want to place table captions always above the table).
13429  You can also use the class option 
13430 \family typewriter
13431 tablecaptionsabove
13432 \family default
13433 , which will switch 
13434 \family sans
13435 caption
13436 \family default
13437  to 
13438 \family sans
13439 captionabove
13440 \family default
13441  for tables and 
13442 \family sans
13443 captionbelow
13444 \family default
13445  for figures.
13446  You need at least Koma-Script version 2.8q to use this.
13447 \end_layout
13448
13449 \begin_layout Itemize
13450
13451 \family sans
13452 Dictum
13453 \family default
13454 : can be used to set a bonmot, e.
13455 \begin_inset space \thinspace{}
13456 \end_inset
13457
13458 g.
13459 \begin_inset space \space{}
13460 \end_inset
13461
13462 at the beginning of a chapter.
13463  If you use the optional argument (
13464 \family sans
13465 Insert\SpecialChar \menuseparator
13466 Short
13467 \begin_inset space ~
13468 \end_inset
13469
13470 Title
13471 \family default
13472 ), you can insert the dictum's author there.
13473  Dictum and author are separated by a line.
13474  You need at least Koma-Script version 2.8q to use this.
13475  
13476 \family sans
13477 Dictum
13478 \family default
13479  is not contained in 
13480 \emph on
13481 article (koma-script)
13482 \emph default
13483 .
13484 \end_layout
13485
13486 \begin_layout Standard
13487 The following types, together with the standard types 
13488 \family sans
13489 Title
13490 \family default
13491
13492 \family sans
13493 Author
13494 \family default
13495 , and 
13496 \family sans
13497 Date
13498 \family default
13499 , form the title area of the document.
13500  They must be entered ahead of the first 
13501 \begin_inset Quotes eld
13502 \end_inset
13503
13504 ordinary
13505 \begin_inset Quotes erd
13506 \end_inset
13507
13508  paragraph.
13509 \begin_inset Foot
13510 status collapsed
13511
13512 \begin_layout Plain Layout
13513 The corresponding LaTeX commands must appear before the 
13514 \family typewriter
13515
13516 \backslash
13517 maketitle
13518 \family default
13519  command.
13520 \end_layout
13521
13522 \end_inset
13523
13524  When such a type is used more than once, the latter usage overwrites the
13525  former one, that means, for every type only the latest usage is valid.
13526  The order of the different types however has, like 
13527 \family sans
13528 Title
13529 \family default
13530
13531 \family sans
13532 Author
13533 \family default
13534 , and 
13535 \family sans
13536 Date
13537 \family default
13538 , no effect on the appearance of the produced document.
13539 \end_layout
13540
13541 \begin_layout Itemize
13542
13543 \family sans
13544 Subject
13545 \family default
13546 : produces a centered paragraph above the ordinary title (
13547 \family sans
13548 Title
13549 \family default
13550
13551 \family sans
13552 Author
13553 \family default
13554
13555 \family sans
13556 Date
13557 \family default
13558 ) for the subject of the document.
13559 \end_layout
13560
13561 \begin_layout Itemize
13562
13563 \family sans
13564 Publishers
13565 \family default
13566 : produces a centered paragraph below the ordinary title (
13567 \family sans
13568 Title
13569 \family default
13570
13571 \family sans
13572 Author
13573 \family default
13574
13575 \family sans
13576 Date
13577 \family default
13578 ) for the publishers' name.
13579 \end_layout
13580
13581 \begin_layout Itemize
13582
13583 \family sans
13584 Dedication
13585 \family default
13586 : in 
13587 \emph on
13588 report (koma-script)
13589 \emph default
13590  and 
13591 \emph on
13592 book (koma-script)
13593 \emph default
13594  produces a centered paragraph on its own page behind the title page, or
13595  in 
13596 \emph on
13597 article (koma-script)
13598 \emph default
13599  produces a centered paragraph below the ordinary title (
13600 \family sans
13601 Title
13602 \family default
13603
13604 \family sans
13605 Author
13606 \family default
13607
13608 \family sans
13609 Date
13610 \family default
13611
13612 \family sans
13613 Publishers
13614 \family default
13615 ) for a dedication.
13616 \end_layout
13617
13618 \begin_layout Itemize
13619
13620 \family sans
13621 Titlehead
13622 \family default
13623 : produces a left aligned paragraph above the ordinary title (
13624 \family sans
13625 Title
13626 \family default
13627
13628 \family sans
13629 Author
13630 \family default
13631
13632 \family sans
13633 Date
13634 \family default
13635
13636 \family sans
13637 Subject
13638 \family default
13639 ) for a document`s head.
13640 \end_layout
13641
13642 \begin_layout Itemize
13643
13644 \family sans
13645 Uppertitleback
13646 \family default
13647 : produces in a double-sided print in 
13648 \emph on
13649 report (koma-script)
13650 \emph default
13651  and 
13652 \emph on
13653 book (koma-script)
13654 \emph default
13655  a left-aligned paragraph at the top of the title page`s back or has no
13656  effect in a single-sided print or in 
13657 \emph on
13658 article (koma-script)
13659 \emph default
13660 .
13661 \end_layout
13662
13663 \begin_layout Itemize
13664
13665 \family sans
13666 Lowertitleback
13667 \family default
13668 : produces in a double-sided print in 
13669 \emph on
13670 report (koma-script)
13671 \emph default
13672  and 
13673 \emph on
13674 book (koma-script)
13675 \emph default
13676  a left-aligned paragraph at the bottom of the title page`s back or has
13677  no effect in a single-sided print or in 
13678 \emph on
13679 article (koma-script)
13680 \emph default
13681 .
13682 \end_layout
13683
13684 \begin_layout Itemize
13685
13686 \family sans
13687 Extratitle
13688 \family default
13689 : produces a special 
13690 \begin_inset Quotes eld
13691 \end_inset
13692
13693 dirty
13694 \begin_inset Quotes erd
13695 \end_inset
13696
13697  page ahead of the actual document containing a paragraph without special
13698  formatting.
13699 \end_layout
13700
13701 \begin_layout Standard
13702 The layout files for the document classes 
13703 \emph on
13704 article (koma-script)
13705 \emph default
13706
13707 \emph on
13708 report (koma-script)
13709 \emph default
13710 , and 
13711 \emph on
13712 book (koma-script)
13713 \emph default
13714  do include the file 
13715 \family typewriter
13716 scrmacros.inc
13717 \family default
13718 .
13719  This is thought of as a place to define your own types.
13720  Copy scrmacros
13721 \family typewriter
13722 .inc
13723 \family default
13724  in your personal layout directory and edit the file!
13725 \end_layout
13726
13727 \begin_layout Subsection
13728 letter (koma-script)
13729 \end_layout
13730
13731 \begin_layout Standard
13732 \begin_inset ERT
13733 status open
13734
13735 \begin_layout Plain Layout
13736
13737
13738 \backslash
13739 begin{sloppypar}
13740 \end_layout
13741
13742 \end_inset
13743
13744
13745 \end_layout
13746
13747 \begin_layout Standard
13748 \noindent
13749 The document class 
13750 \emph on
13751 letter (koma-script)
13752 \emph default
13753  is implemented in the layout file 
13754 \family typewriter
13755 scrlettr.layout
13756 \family default
13757 .
13758  It contains all the paragraph types of the corresponding standard document
13759  class 
13760 \emph on
13761 letter
13762 \emph default
13763 , partly modified, with the exception of the LyX specific types 
13764 \family sans
13765 LyX-Code
13766 \family default
13767  and 
13768 \family sans
13769 Comment
13770 \family default
13771  and the 
13772 \family sans
13773 List
13774 \family default
13775  type, which is replaced by the new 
13776 \family sans
13777 Labeling
13778 \family default
13779  type.
13780  In addition, it contains, in contrast to the standard document class, the
13781  standard types 
13782 \family sans
13783 LaTeX
13784 \family default
13785
13786 \family sans
13787 Quotation
13788 \family default
13789
13790 \family sans
13791 Quote
13792 \family default
13793 , and 
13794 \family sans
13795 Verse
13796 \family default
13797 .
13798  Furthermore, there are a number of new letter specific types.
13799 \end_layout
13800
13801 \begin_layout Standard
13802 \begin_inset ERT
13803 status open
13804
13805 \begin_layout Plain Layout
13806
13807
13808 \backslash
13809 end{sloppypar}
13810 \end_layout
13811
13812 \end_inset
13813
13814
13815 \end_layout
13816
13817 \begin_layout Standard
13818 The appearance of the letter produced by this document class can be controlled
13819  by a number of LaTeX commands, which you can put in the LaTeX preamble.
13820 \begin_inset Foot
13821 status collapsed
13822
13823 \begin_layout Plain Layout
13824 For example, the standard appearance of the letter`s heading, consisting
13825  of name and address, is quite self-willed.
13826  An 
13827 \begin_inset Quotes eld
13828 \end_inset
13829
13830 ordinary
13831 \begin_inset Quotes erd
13832 \end_inset
13833
13834  heading is produced by the following LaTeX commands in the preamble:
13835 \end_layout
13836
13837 \begin_layout LyX-Code
13838
13839 \backslash
13840 firsthead{
13841 \backslash
13842 parbox[b]{
13843 \backslash
13844 textwidth}
13845 \end_layout
13846
13847 \begin_layout LyX-Code
13848   {
13849 \backslash
13850 ignorespaces 
13851 \backslash
13852 fromname
13853 \backslash
13854
13855 \backslash
13856  
13857 \backslash
13858 ignorespaces 
13859 \backslash
13860 fromaddress}} 
13861 \end_layout
13862
13863 \begin_layout LyX-Code
13864
13865 \backslash
13866 nexthead{
13867 \backslash
13868 parbox[b]{
13869 \backslash
13870 textwidth}
13871 \end_layout
13872
13873 \begin_layout LyX-Code
13874   {
13875 \backslash
13876 ignorespaces 
13877 \backslash
13878 fromname 
13879 \backslash
13880 hfill 
13881 \backslash
13882 ignorespaces 
13883 \backslash
13884 pagename
13885 \backslash
13886  
13887 \backslash
13888 thepage}}
13889 \end_layout
13890
13891 \end_inset
13892
13893  A detailed German description of such LaTeX commands can be found in the
13894  Koma-Script documentation 
13895 \emph on
13896 scrguide
13897 \emph default
13898 .
13899  With it, the letter's author can produce his personal letter layout.
13900 \end_layout
13901
13902 \begin_layout Standard
13903 The types 
13904 \family sans
13905 Letter
13906 \family default
13907  and 
13908 \family sans
13909 Opening
13910 \family default
13911  define the beginning of the letter and must be used in every letter.
13912  To emphasize them in the LyX document class, they are marked with the letter
13913  
13914 \shape italic
13915 L
13916 \shape default
13917  or 
13918 \shape italic
13919 O
13920 \shape default
13921 , resp.
13922 \begin_inset space ~
13923 \end_inset
13924
13925 in the left margin.
13926  It is possible to write any number of letters in one file.
13927  An 
13928 \family sans
13929 Opening
13930 \family default
13931  type produces a new letter using the same addressee and a 
13932 \family sans
13933 Letter
13934 \family default
13935  type produces a new addressee.
13936  The types 
13937 \family sans
13938 Closing
13939 \family default
13940
13941 \family sans
13942 PS
13943 \family default
13944
13945 \family sans
13946 CC
13947 \family default
13948 , and 
13949 \family sans
13950 Encl
13951 \family default
13952  are ordinary paragraph types and can also be used several times in one
13953  and the same letter.
13954 \end_layout
13955
13956 \begin_layout Itemize
13957
13958 \family sans
13959 Letter
13960 \family default
13961 : produces a paragraph for the addressee and implicitly defines the beginning
13962  of the letter.
13963 \end_layout
13964
13965 \begin_layout Itemize
13966
13967 \family sans
13968 Opening
13969 \family default
13970 : produces a paragraph for the form of address and implicitly produces a
13971  new letter.
13972 \end_layout
13973
13974 \begin_layout Itemize
13975
13976 \family sans
13977 Closing
13978 \family default
13979 : produces a paragraph for a close.
13980 \end_layout
13981
13982 \begin_layout Itemize
13983
13984 \family sans
13985 PS
13986 \family default
13987 : produces a paragraph for a postscript.
13988 \end_layout
13989
13990 \begin_layout Itemize
13991
13992 \family sans
13993 CC
13994 \family default
13995 : produces a paragraph for a distribution list.
13996 \end_layout
13997
13998 \begin_layout Itemize
13999
14000 \family sans
14001 Encl
14002 \family default
14003 : produces a paragraph for enclosures.
14004 \end_layout
14005
14006 \begin_layout Standard
14007 The types 
14008 \family sans
14009 Name
14010 \family default
14011
14012 \family sans
14013 Signature
14014 \family default
14015
14016 \family sans
14017 Address
14018 \family default
14019
14020 \family sans
14021 Telephone
14022 \family default
14023
14024 \family sans
14025 Place
14026 \family default
14027
14028 \family sans
14029 Backaddress
14030 \family default
14031
14032 \family sans
14033 Specialmail
14034 \family default
14035
14036 \family sans
14037 Location
14038 \family default
14039
14040 \family sans
14041 Title
14042 \family default
14043 , and 
14044 \family sans
14045 Subject
14046 \family default
14047  are input types provided with a label to enter information, which will
14048  be processed by the document class.
14049 \begin_inset Foot
14050 status open
14051
14052 \begin_layout Plain Layout
14053 It could be seen as a matter of inconsequence, that the types 
14054 \family sans
14055 Letter
14056 \family default
14057  and 
14058 \family sans
14059 Opening
14060 \family default
14061  described above are not such input types as well.
14062  Because of the special meaning of those types, however, I have implemented
14063  them as ordinary paragraph types with a one letter mark in the left margin.
14064  Moreover, it would affect my feeling of symmetry, if the 
14065 \family sans
14066 Opening
14067 \family default
14068  type and the 
14069 \family sans
14070 Closing
14071 \family default
14072  type had such a serious different appearance.
14073 \end_layout
14074
14075 \end_inset
14076
14077  The types must be used ahead of the corresponding 
14078 \family sans
14079 Opening
14080 \family default
14081  type.
14082 \end_layout
14083
14084 \begin_layout Standard
14085 An implementation of these types in a WYSIWYG fashion does not seem to make
14086  sense, because the real appearance of the produced letter does not only
14087  depend on the usage of the particular type, but also on other factors.
14088  For example, a signature entered in the 
14089 \family sans
14090 Signature
14091 \family default
14092  type will in the standard behavior appear in the produced letter only,
14093  when in the same letter also a 
14094 \family sans
14095 Closing
14096 \family default
14097  type is used.
14098  The entered value of the 
14099 \family sans
14100 Telephone
14101 \family default
14102  type will in the standard behavior not appear in the produced letter at
14103  all.
14104  The possibility to design the letter`s heading freely is already indicated
14105  in a footnote above.
14106 \end_layout
14107
14108 \begin_layout Standard
14109 The input types can also be used as empty paragraphs.
14110  This makes sense e.
14111 \begin_inset space \thinspace{}
14112 \end_inset
14113
14114 g.
14115 \begin_inset space \space{}
14116 \end_inset
14117
14118 for the 
14119 \family sans
14120 Signature
14121 \family default
14122  type.
14123  If the 
14124 \family sans
14125 Signature
14126 \family default
14127  type is not used at all, in the standard behavior the value of the 
14128 \family sans
14129 Name
14130 \family default
14131  type is used as signature, whereas if an empty 
14132 \family sans
14133 Signature
14134 \family default
14135  type is used, no signature value is defined.
14136 \end_layout
14137
14138 \begin_layout Standard
14139 By using the input types it is possible to write a letter template, containing
14140  filled input types with your personal dates (name, address, etc.) and empty
14141  input types for other dates you want to enter.
14142 \end_layout
14143
14144 \begin_layout Itemize
14145
14146 \family sans
14147 Name
14148 \family default
14149 : sender's name, in the standard behavior appears as a centered paragraph
14150  in small caps in the letter`s heading.
14151 \end_layout
14152
14153 \begin_layout Itemize
14154
14155 \family sans
14156 Signature
14157 \family default
14158 : sender's signature, in the standard behavior appears below the 
14159 \family sans
14160 Closing
14161 \family default
14162  type.
14163  If no 
14164 \family sans
14165 Signature
14166 \family default
14167  type is used, the value of the 
14168 \family sans
14169 Name
14170 \family default
14171  type appears instead.
14172 \end_layout
14173
14174 \begin_layout Itemize
14175
14176 \family sans
14177 Address
14178 \family default
14179 : sender's address, in the standard behavior appears in a centered paragraph
14180  in the letter`s heading below the sender's name.
14181 \end_layout
14182
14183 \begin_layout Itemize
14184
14185 \family sans
14186 Telephone
14187 \family default
14188 : sender's telephone number, in the standard behavior only sets the LaTeX
14189  variable 
14190 \family typewriter
14191
14192 \backslash
14193 telephonenum
14194 \family default
14195 .
14196 \end_layout
14197
14198 \begin_layout Itemize
14199
14200 \family sans
14201 Place
14202 \family default
14203 : place of the letter`s making.
14204 \end_layout
14205
14206 \begin_layout Itemize
14207
14208 \family sans
14209 Date
14210 \family default
14211 : date of the letter`s making.
14212  
14213 \family sans
14214 Place
14215 \family default
14216  and 
14217 \family sans
14218 Date
14219 \family default
14220 , in the standard behavior, produce the place and the date in a right-aligned
14221  line below the addressee's field.
14222  If an empty 
14223 \family sans
14224 Date
14225 \family default
14226  type is used, neither place nor date appear, independent of the value of
14227  the 
14228 \family sans
14229 Place
14230 \family default
14231  type.
14232  If no 
14233 \family sans
14234 Date
14235 \family default
14236  type is used, the date of the letter `s production is used.
14237 \end_layout
14238
14239 \begin_layout Itemize
14240
14241 \family sans
14242 Backaddress
14243 \family default
14244 : sender`s back address, in the standard behavior appears above the addressee's
14245  field in a small sans serif font.
14246 \end_layout
14247
14248 \begin_layout Itemize
14249
14250 \family sans
14251 Specialmail
14252 \family default
14253 : special mail information, in the standard behavior appears underlined
14254  above the addressee's field below the back address.
14255 \end_layout
14256
14257 \begin_layout Itemize
14258
14259 \family sans
14260 Location
14261 \family default
14262 : additional information, in the standard behavior appears on right side
14263  below the addressee`s field.
14264 \end_layout
14265
14266 \begin_layout Itemize
14267
14268 \family sans
14269 Title
14270 \family default
14271 : the letter's title, in the standard behavior appears in a big, bold, sans
14272  serif font above the subject.
14273 \end_layout
14274
14275 \begin_layout Itemize
14276
14277 \family sans
14278 Subject
14279 \family default
14280 : the letter's subject, in the standard behavior appears in a bold font
14281  above the 
14282 \family sans
14283 Opening
14284 \family default
14285  paragraph.
14286 \end_layout
14287
14288 \begin_layout Standard
14289 The types 
14290 \family sans
14291 Yourref
14292 \family default
14293
14294 \family sans
14295 Yourmail
14296 \family default
14297
14298 \family sans
14299 Myref
14300 \family default
14301
14302 \family sans
14303 Customer
14304 \family default
14305 , and 
14306 \family sans
14307 Invoice
14308 \family default
14309  produce a business letter like line above the 
14310 \family sans
14311 Title
14312 \family default
14313  line containing the fields 
14314 \begin_inset Quotes eld
14315 \end_inset
14316
14317 Your ref.
14318 \begin_inset Quotes erd
14319 \end_inset
14320
14321
14322 \begin_inset Quotes eld
14323 \end_inset
14324
14325 Your letter of
14326 \begin_inset Quotes erd
14327 \end_inset
14328
14329
14330 \begin_inset Quotes eld
14331 \end_inset
14332
14333 Our ref.
14334 \begin_inset Quotes erd
14335 \end_inset
14336
14337
14338 \begin_inset Quotes eld
14339 \end_inset
14340
14341 Customer no.
14342 \begin_inset Quotes erd
14343 \end_inset
14344
14345
14346 \begin_inset Quotes eld
14347 \end_inset
14348
14349 Invoice no.
14350 \begin_inset Quotes erd
14351 \end_inset
14352
14353 , and 
14354 \begin_inset Quotes eld
14355 \end_inset
14356
14357 Date
14358 \begin_inset Quotes erd
14359 \end_inset
14360
14361 .
14362  For the date field, the value of the 
14363 \family sans
14364 Date
14365 \family default
14366  type is used.
14367  If one of these 
14368 \begin_inset Quotes eld
14369 \end_inset
14370
14371 business letter types
14372 \begin_inset Quotes erd
14373 \end_inset
14374
14375  is used, the value of the 
14376 \family sans
14377 Place
14378 \family default
14379  type however does not appear, but only the LaTeX variable 
14380 \family typewriter
14381
14382 \backslash
14383 fromplace
14384 \family default
14385  is set.
14386  The ordinary output of place and date in a right-aligned line below the
14387  addressee`s field is suppressed.
14388  The types are implemented as input types provided with a label and must
14389  be used ahead of the corresponding 
14390 \family sans
14391 Opening
14392 \family default
14393  type.
14394 \end_layout
14395
14396 \begin_layout Itemize
14397
14398 \family sans
14399 Yourref
14400 \family default
14401 : Your ref.
14402 \end_layout
14403
14404 \begin_layout Itemize
14405
14406 \family sans
14407 Yourmail
14408 \family default
14409 : Your letter of.
14410 \end_layout
14411
14412 \begin_layout Itemize
14413
14414 \family sans
14415 Myref
14416 \family default
14417 : Our ref.
14418 \end_layout
14419
14420 \begin_layout Itemize
14421
14422 \family sans
14423 Customer
14424 \family default
14425 : Customer no.
14426 \end_layout
14427
14428 \begin_layout Itemize
14429
14430 \family sans
14431 Invoice
14432 \family default
14433 : Invoice no.
14434 \end_layout
14435
14436 \begin_layout Subsection
14437 The new letter class: letter (koma-script v.2)
14438 \end_layout
14439
14440 \begin_layout Standard
14441 by 
14442 \noun on
14443 Jürgen Spitzmüller
14444 \end_layout
14445
14446 \begin_layout Standard
14447 \begin_inset VSpace medskip
14448 \end_inset
14449
14450
14451 \end_layout
14452
14453 \begin_layout Standard
14454 \noindent
14455 Koma-Script version 2.8 has introduced a new letter class 
14456 \family typewriter
14457 scrlttr2
14458 \family default
14459  which supersedes the now unsupported 
14460 \family typewriter
14461 scrlettr
14462 \family default
14463 .
14464  It has — on the LaTeX side — a completely new interface and is not compatible
14465  with the old class.
14466  Therefore, LyX supports both, though it is recommended you use the new
14467  class.
14468 \end_layout
14469
14470 \begin_layout Standard
14471 This class covers the same functionality as 
14472 \emph on
14473 letter (koma-script),
14474 \emph default
14475  and a few more.
14476  The basic items are 
14477 \family sans
14478 Address
14479 \family default
14480  (receiver's address, same as 
14481 \family sans
14482 Letter
14483 \family default
14484  in the old layout), 
14485 \family sans
14486 Opening
14487 \family default
14488 , and 
14489 \family sans
14490 Closing
14491 \family default
14492 .
14493  
14494 \family sans
14495 NextAddress
14496 \family default
14497  will start a new letter (i.
14498 \begin_inset space \thinspace{}
14499 \end_inset
14500
14501 g.
14502 \begin_inset space \space{}
14503 \end_inset
14504
14505 you can write several letters per document).
14506  New elements are sender's 
14507 \family sans
14508 E-Mail
14509 \family default
14510
14511 \family sans
14512 URL
14513 \family default
14514
14515 \family sans
14516 Fax
14517 \family default
14518
14519 \family sans
14520 Bank
14521 \family default
14522  and the possibility to use a 
14523 \family sans
14524 Logo
14525 \family default
14526  (via 
14527 \family sans
14528 Insert\SpecialChar \menuseparator
14529 Graphics
14530 \family default
14531 ) in the header.
14532 \end_layout
14533
14534 \begin_layout Standard
14535 The biggest improvement is, though, that the letter's layout is configurable
14536  to meet almost any needs.
14537  This can be done via the preamble or with a special style file (Letter
14538  Class Option, extension 
14539 \family typewriter
14540 *.lco
14541 \family default
14542 ), that will be read in as a class option.
14543 \begin_inset Foot
14544 status collapsed
14545
14546 \begin_layout Plain Layout
14547 The KOMA package comes with some default 
14548 \family typewriter
14549 *.lco
14550 \family default
14551  files.
14552  There is, for instance, a 
14553 \family typewriter
14554 DIN.lco
14555 \family default
14556  file that follows german typesetting rules, or a 
14557 \family typewriter
14558 KOMAold.lco
14559 \family default
14560  that provides the default layout of the old 
14561 \family typewriter
14562 scrlettr
14563 \family default
14564  class.
14565  The latter can be loaded with the class option 
14566 \family typewriter
14567 KOMAold
14568 \family default
14569 , inserted via the 
14570 \family sans
14571 \bar under
14572 L
14573 \bar default
14574 ayout\SpecialChar \menuseparator
14575
14576 \bar under
14577 D
14578 \bar default
14579 ocument\SpecialChar \menuseparator
14580 Extra Options
14581 \family default
14582  field.
14583 \end_layout
14584
14585 \end_inset
14586
14587  Have a look at the 
14588 \emph on
14589 koma-letter2
14590 \emph default
14591  template that is included in LyX for examples.
14592  A detailed description is to be found in the Koma-Script documentation
14593  (
14594 \emph on
14595 scrguide
14596 \emph default
14597 ).
14598 \end_layout
14599
14600 \begin_layout Subsection
14601 Problems
14602 \end_layout
14603
14604 \begin_layout Standard
14605 Visualizing the Koma-Script document classes in LyX, the LyX internals cause
14606  some problems.
14607 \end_layout
14608
14609 \begin_layout Itemize
14610 The chapter number of a 
14611 \family sans
14612 Chapter
14613 \family default
14614  type appears on a line of its own above the chapter heading instead of
14615  appearing in the same line ahead of it.
14616  The cause for that is the LyX internal behavior for the labeltype 
14617 \family sans
14618 Counter_Chapter
14619 \family default
14620  in the layout file.
14621 \end_layout
14622
14623 \begin_layout Itemize
14624 The headings of the types 
14625 \family sans
14626 Addchap
14627 \family default
14628  and 
14629 \family sans
14630 Addsec
14631 \family default
14632  are only put in the 
14633 \begin_inset Quotes eld
14634 \end_inset
14635
14636 true
14637 \begin_inset Quotes erd
14638 \end_inset
14639
14640  LaTeX table of contents, but not in the LyX table of contents (
14641 \family sans
14642 Document\SpecialChar \menuseparator
14643 Table
14644 \begin_inset space ~
14645 \end_inset
14646
14647 of
14648 \begin_inset space ~
14649 \end_inset
14650
14651 Contents
14652 \family default
14653 ).
14654 \end_layout
14655
14656 \begin_layout Itemize
14657 The paragraphs in a 
14658 \emph on
14659 letter
14660 \emph default
14661  document class appear in a skip separation mode, not indented.
14662  This is the standard behavior, no special LaTeX commands are needed for
14663  that.
14664  But in the 
14665 \family sans
14666 Document\SpecialChar \menuseparator
14667 Settings
14668 \family default
14669  dialog the corresponding radio button indicates 
14670 \family sans
14671 Indent
14672 \family default
14673 .
14674  A 
14675 \family sans
14676 Skip
14677 \family default
14678  value always has the effect that extra LaTeX commands are inserted in the
14679  document to produce the gap, which is not what is wanted in this case.
14680 \end_layout
14681
14682 \begin_layout Section
14683 Latex8 (IEEE Conference Papers)
14684 \end_layout
14685
14686 \begin_layout Standard
14687 by 
14688 \noun on
14689 Allan Rae
14690 \end_layout
14691
14692 \begin_layout Subsection
14693 Introduction
14694 \end_layout
14695
14696 \begin_layout Standard
14697 Since this class is specifically for writing submissions to IEEE sponsored
14698  conferences I strongly recommend that you get a copy of their Authors Kit.
14699  The 
14700 \family sans
14701 latex.sty
14702 \family default
14703  package and associated bibliography style file is included in the kit.
14704  The Authors Kit is usually sent out by email once your initial submission
14705  has been accepted.
14706  There is a lot of useful information in the Authors Kit explaining formatting
14707  restrictions and so on and I will assume you have read this since that
14708  means I don't have to repeat it all here.
14709 \end_layout
14710
14711 \begin_layout Subsection
14712 Getting Started
14713 \end_layout
14714
14715 \begin_layout Standard
14716 [AR\SpecialChar \@.
14717  more to come]
14718 \end_layout
14719
14720 \begin_layout Subsection
14721 Supported Environments
14722 \end_layout
14723
14724 \begin_layout Itemize
14725
14726 \family sans
14727 Standard
14728 \end_layout
14729
14730 \begin_layout Itemize
14731
14732 \family sans
14733 Title
14734 \end_layout
14735
14736 \begin_layout Itemize
14737
14738 \family sans
14739 Author
14740 \end_layout
14741
14742 \begin_layout Itemize
14743
14744 \family sans
14745 E-mail
14746 \end_layout
14747
14748 \begin_layout Itemize
14749
14750 \family sans
14751 Affiliation
14752 \end_layout
14753
14754 \begin_layout Itemize
14755
14756 \family sans
14757 Abstract
14758 \end_layout
14759
14760 \begin_layout Itemize
14761
14762 \family sans
14763 Section
14764 \end_layout
14765
14766 \begin_layout Itemize
14767
14768 \family sans
14769 SubSection
14770 \end_layout
14771
14772 \begin_layout Itemize
14773
14774 \family sans
14775 Caption
14776 \end_layout
14777
14778 \begin_layout Subsection
14779 Differences Between Screen and Paper
14780 \end_layout
14781
14782 \begin_layout Standard
14783 There are slight differences in appearance mainly with the presentation
14784  of section counters.
14785  On screen the trailing period of the section counter is missing but it
14786  will appear in the output so don't let this worry you.
14787 \end_layout
14788
14789 \begin_layout Section
14790 Memoir
14791 \end_layout
14792
14793 \begin_layout Standard
14794 By 
14795 \noun on
14796 Jürgen Spitzmüller
14797 \end_layout
14798
14799 \begin_layout Subsection
14800 Overview
14801 \end_layout
14802
14803 \begin_layout Standard
14804 Memoir is a very powerful and constantly evolving class.
14805  It has been designed with regard to fictional and non-fictional literature.
14806  Its aim is to let the user have maximum control over the typesetting of
14807  his document.
14808  Memoir is based on the standard book class, but it can also emulate the
14809  article class (see below).
14810 \end_layout
14811
14812 \begin_layout Standard
14813 Peter Wilson, the developer of Memoir, is known as the author of lots of
14814  useful packages in the LaTeX world.
14815  Most of them have been merged with Memoir.
14816  Therefore, it is much easier to layout the table of contents, appendices,
14817  chapter designs and such.
14818  LyX, though, does not support all of these goodies natively.
14819  Some of them might be added to forthcoming releases
14820 \begin_inset Foot
14821 status collapsed
14822
14823 \begin_layout Plain Layout
14824 You are invited to send suggestions to 
14825 \begin_inset Flex URL
14826 status collapsed
14827
14828 \begin_layout Plain Layout
14829
14830 lyx-devel@lists.lyx.org
14831 \end_layout
14832
14833 \end_inset
14834
14835 .
14836 \end_layout
14837
14838 \end_inset
14839
14840 , lots will probably never, due to the limitations of LyX's framework.
14841  Of course you can still use all features with the help of some native LaTeX
14842  commands (TeX code
14843 \begin_inset Foot
14844 status collapsed
14845
14846 \begin_layout Plain Layout
14847 Cf.
14848 \begin_inset ERT
14849 status collapsed
14850
14851 \begin_layout Plain Layout
14852
14853
14854 \backslash
14855  
14856 \end_layout
14857
14858 \end_inset
14859
14860 section
14861 \begin_inset space ~
14862 \end_inset
14863
14864
14865 \begin_inset CommandInset ref
14866 LatexCommand ref
14867 reference "sec:Inserting-TeX-Code"
14868
14869 \end_inset
14870
14871  for details.
14872 \end_layout
14873
14874 \end_inset
14875
14876 ).
14877  In this section, we can only list those features which are natively supported
14878  by LyX.
14879  For detailed descriptions (and for the rest of features) we recommend you
14880  have a look at the detailed manual of the Memoir class
14881 \begin_inset Foot
14882 status collapsed
14883
14884 \begin_layout Plain Layout
14885 Cf.
14886 \begin_inset ERT
14887 status collapsed
14888
14889 \begin_layout Plain Layout
14890
14891
14892 \backslash
14893  
14894 \end_layout
14895
14896 \end_inset
14897
14898
14899 \begin_inset Flex URL
14900 status collapsed
14901
14902 \begin_layout Plain Layout
14903
14904 CTAN:/macros/latex/memoir/memman.pdf
14905 \end_layout
14906
14907 \end_inset
14908
14909 .
14910 \end_layout
14911
14912 \end_inset
14913
14914 , which is not only a user guide for the class, but also both a comprehensive
14915  description on good typesetting and a superb example for good typesetting
14916  itself.
14917 \end_layout
14918
14919 \begin_layout Subsection
14920 Basic features and restrictions
14921 \end_layout
14922
14923 \begin_layout Standard
14924 Memoir supports basically all features of the standard book classes.
14925  There are, however, some differences, as follows:
14926 \end_layout
14927
14928 \begin_layout Description
14929 Font
14930 \begin_inset space ~
14931 \end_inset
14932
14933 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
14934 \end_layout
14935
14936 \begin_layout Description
14937 Page
14938 \begin_inset space ~
14939 \end_inset
14940
14941 style: The fancy page style is not supported, due to a command clash between
14942  Memoir and the fancyhdr package (they both define a command with the same
14943  name, which confuses LaTeX).
14944  Instead, Memoir comes with a number of its own page styles (see 
14945 \family sans
14946 Layout\SpecialChar \menuseparator
14947 Document\SpecialChar \menuseparator
14948 Page
14949 \begin_inset space ~
14950 \end_inset
14951
14952 Style
14953 \family default
14954 ).
14955  If you want to use these for the chapter pages, you have to use the command
14956  
14957 \family typewriter
14958
14959 \backslash
14960 chapterstyle
14961 \family default
14962  in the main text or in preamble (e.
14963 \begin_inset space \thinspace{}
14964 \end_inset
14965
14966 g.
14967 \begin_inset space \space{}
14968 \end_inset
14969
14970
14971 \family typewriter
14972
14973 \backslash
14974 chapterstyle{companion}
14975 \family default
14976 ).
14977 \end_layout
14978
14979 \begin_layout Description
14980 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
14981  optional argument in the standard classes.
14982  With this, you can specify an alternative version of the title for the
14983  table of contents and the headers (for instance, if the title is too long).
14984  In LyX, you can do this via 
14985 \family sans
14986 Insert\SpecialChar \menuseparator
14987 Short
14988 \begin_inset space ~
14989 \end_inset
14990
14991 Title
14992 \family default
14993  at the beginning of a chapter/section.
14994  Memoir features a second optional argument and thus separates the table
14995  of contents from the header.
14996  You can define three variants of a title with this: one for the main text,
14997  one for the table of contents, and one for the headers.
14998  Simply insert two optional arguments if you need this feature, the first
14999  one containing the short title for the Table of Contents, the second one
15000  containing an alternative short title for the headers.
15001 \end_layout
15002
15003 \begin_layout Description
15004 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
15005  of contents, the list of figures and the list of table start a new page
15006  automatically.
15007  Memoir does not follow this route.
15008  You have to insert a page break yourself, if you want to have one.
15009 \end_layout
15010
15011 \begin_layout Description
15012 Titlepage: For some unknown reason, Memoir uses pagination on the title
15013  page (in the standard classes, title pages are 
15014 \begin_inset Quotes eld
15015 \end_inset
15016
15017 empty
15018 \begin_inset Quotes erd
15019 \end_inset
15020
15021 , i.
15022 \begin_inset space \thinspace{}
15023 \end_inset
15024
15025 g.
15026 \begin_inset space \space{}
15027 \end_inset
15028
15029 without pagina).
15030  If you want an empty title page, type 
15031 \family typewriter
15032
15033 \backslash
15034 aliaspagestyle{title}{empty}
15035 \family default
15036  in the preamble.
15037 \end_layout
15038
15039 \begin_layout Description
15040 Article: With the class option 
15041 \emph on
15042 article
15043 \emph default
15044  (to be inserted in 
15045 \family sans
15046 Layout\SpecialChar \menuseparator
15047 Document\SpecialChar \menuseparator
15048 Extra
15049 \begin_inset space ~
15050 \end_inset
15051
15052 Options
15053 \family default
15054 ), you can emulate article style.
15055  That is, counters (footnotes, figures, tables etc.) will not be reset on
15056  new chapters, chapters don't start a new page (but are—in contrary to 
15057 \begin_inset Quotes eld
15058 \end_inset
15059
15060 real
15061 \begin_inset Quotes erd
15062 \end_inset
15063
15064  article classes—still allowed), parts, though, use their own page, as in
15065  book.
15066 \end_layout
15067
15068 \begin_layout Description
15069 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
15070  font commands, which have been used in the old LaTeX version 2.09 (e.
15071 \begin_inset space \thinspace{}
15072 \end_inset
15073
15074 g.
15075 \begin_inset space \space{}
15076 \end_inset
15077
15078
15079 \family typewriter
15080
15081 \backslash
15082 rm
15083 \family default
15084
15085 \family typewriter
15086
15087 \backslash
15088 it
15089 \family default
15090 ).
15091  It produces an error and stops LaTeX whenever such a command appears.
15092  The class option 
15093 \emph on
15094 oldfontcommands
15095 \emph default
15096  reallows the commands and spits out warnings instead (which does at least
15097  not stop LaTeX).
15098  Since a lot of packages and particularly BibTeX style files are still using
15099  those commands, we have decided to use this option by default.
15100 \end_layout
15101
15102 \begin_layout Subsection
15103 Extra features
15104 \end_layout
15105
15106 \begin_layout Standard
15107 We will only describe the features supported by LyX (which is not much currently
15108 ).
15109  Please consult the Memoir manual
15110 \begin_inset Foot
15111 status collapsed
15112
15113 \begin_layout Plain Layout
15114 Cf.
15115 \begin_inset ERT
15116 status collapsed
15117
15118 \begin_layout Plain Layout
15119
15120
15121 \backslash
15122  
15123 \end_layout
15124
15125 \end_inset
15126
15127
15128 \begin_inset Flex URL
15129 status collapsed
15130
15131 \begin_layout Plain Layout
15132
15133 CTAN:/macros/latex/memoir/memman.pdf
15134 \end_layout
15135
15136 \end_inset
15137
15138 .
15139 \end_layout
15140
15141 \end_inset
15142
15143  for details.
15144 \end_layout
15145
15146 \begin_layout Description
15147 Abstract: You may wonder why an abstract is an extra feature.
15148  Well, it is in book class.
15149  Usually books don't have abstracts.
15150  Memoir, however, has.
15151  You can use it wherever and how often you like.
15152 \end_layout
15153
15154 \begin_layout Description
15155 Chapterprecis: You may know this older typesetting style: The contents of
15156  a chapter are summarized below the title and also in the table of contents
15157  (e.
15158 \begin_inset space \thinspace{}
15159 \end_inset
15160
15161 g.
15162 \begin_inset space \space{}
15163 \end_inset
15164
15165
15166 \emph on
15167 Our hero arrives in Troia; he loses some friends; he finds others
15168 \emph default
15169 ).
15170  Chapterprecis does exactly this.
15171  It is therefore only sensible below a chapter.
15172 \end_layout
15173
15174 \begin_layout Description
15175 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
15176  The epigraph environment provides an elegant way of typesetting such a
15177  motto.
15178  The motto itself (text) and its author (source) are divided by a short
15179  line.
15180  Unfortunately, we have to fool LyX a bit here again, since the environment
15181  needs two arguments (text and source).
15182  In this case, we have to use curly brackets (in TeX mode) between the two
15183  arguments: 
15184 \emph on
15185 <smart slogan>
15186 \emph default
15187  
15188 \family typewriter
15189 }{
15190 \family default
15191  
15192 \emph on
15193 <author of the slogan>.
15194 \end_layout
15195
15196 \begin_layout Description
15197 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
15198  complex figurative poems).
15199  LyX can only support a few of them.
15200  One is poemtitle, which is a centered title for poems, which will also
15201  be added to the table of contents (verse is the standard environment for
15202  poems.
15203  Memoir has some enhanced versions of verse, but you need to use TeX code,
15204  because they have to be nested inside regular verse environments, which
15205  is not possible with LyX).
15206 \end_layout
15207
15208 \begin_layout Description
15209 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
15210 \end_layout
15211
15212 \begin_layout Section
15213 Article (mwart), book (mwbk) and report (mwrep)
15214 \begin_inset Argument
15215 status collapsed
15216
15217 \begin_layout Plain Layout
15218 The 
15219 \family typewriter
15220 mw
15221 \family default
15222  Classes
15223 \end_layout
15224
15225 \end_inset
15226
15227
15228 \end_layout
15229
15230 \begin_layout Standard
15231 by 
15232 \noun on
15233 Tomasz Luczak
15234 \end_layout
15235
15236 \begin_layout Standard
15237 The LyX document classes 
15238 \emph on
15239 article (mwart)
15240 \emph default
15241
15242 \emph on
15243 report (mwrep)
15244 \emph default
15245  and 
15246 \emph on
15247 book
15248 \emph default
15249  
15250 \emph on
15251 (mwbk)
15252 \emph default
15253  correspond to the LaTeX document classes 
15254 \family typewriter
15255 mwart.cls
15256 \family default
15257
15258 \family typewriter
15259 mwrep.cls
15260 \family default
15261  and 
15262 \family typewriter
15263 mwbk.cls
15264 \family default
15265 , resp.
15266  They are replacements for the standard document classes 
15267 \family typewriter
15268 article.cls
15269 \family default
15270
15271 \family typewriter
15272 report.cls
15273 \family default
15274  and 
15275 \family typewriter
15276 book.cls
15277 \family default
15278 , resp., and fit better to Polish typography conventions in a number of points.
15279  
15280 \end_layout
15281
15282 \begin_layout Standard
15283 Basic differences:
15284 \end_layout
15285
15286 \begin_layout Itemize
15287 Unnumbered titles (with star, e.
15288 \begin_inset space \thinspace{}
15289 \end_inset
15290
15291 g.
15292 \begin_inset space \space{}
15293 \end_inset
15294
15295
15296 \family sans
15297 Section*
15298 \family default
15299 ) are added into table of contents,
15300 \end_layout
15301
15302 \begin_layout Itemize
15303 Additional page styles:
15304 \end_layout
15305
15306 \begin_deeper
15307 \begin_layout Description
15308 uheadings header with separated lines,
15309 \end_layout
15310
15311 \begin_layout Description
15312 myheadings custom header, contents headers via commands: 
15313 \family typewriter
15314
15315 \backslash
15316 markright
15317 \family default
15318  and 
15319 \family typewriter
15320
15321 \backslash
15322 markboth
15323 \family default
15324 ,
15325 \end_layout
15326
15327 \begin_layout Description
15328 myuheadings custom header with separated lines,
15329 \end_layout
15330
15331 \begin_layout Description
15332 outer page number is placed on outer side of page
15333 \end_layout
15334
15335 \end_deeper
15336 \begin_layout Itemize
15337 Options 
15338 \end_layout
15339
15340 \begin_deeper
15341 \begin_layout Description
15342 rmheadings serif titles — default,
15343 \end_layout
15344
15345 \begin_layout Description
15346 sfheadings sansserif titles,
15347 \end_layout
15348
15349 \begin_layout Description
15350 authortitle on title page first placed is author next title — default,
15351 \end_layout
15352
15353 \begin_layout Description
15354 titleauthor on title page first placed is title next author,
15355 \end_layout
15356
15357 \begin_layout Description
15358 withmarginpar reserve place on page for margins.
15359 \end_layout
15360
15361 \end_deeper
15362 \begin_layout Section
15363 Paper
15364 \end_layout
15365
15366 \begin_layout Standard
15367 The document class 
15368 \family sans
15369 paper
15370 \family default
15371  provides an alternative to the standard 
15372 \family sans
15373 article
15374 \family default
15375  class.
15376  It provides similar functionality, but you might prefer this layout with
15377  sans serif sections, headings, and more.
15378 \end_layout
15379
15380 \begin_layout Section
15381 RevTeX4
15382 \end_layout
15383
15384 \begin_layout Standard
15385 by 
15386 \noun on
15387 Amir Karger
15388 \end_layout
15389
15390 \begin_layout Standard
15391 \begin_inset VSpace bigskip
15392 \end_inset
15393
15394
15395 \end_layout
15396
15397 \begin_layout Standard
15398 \noindent
15399 The 
15400 \family sans
15401 Revtex
15402 \begin_inset space ~
15403 \end_inset
15404
15405 4
15406 \family default
15407  textclass works with the American Physical Sociey's RevTeX 4.0 (the 
15408 \begin_inset Formula $\beta$
15409 \end_inset
15410
15411  release of May, 1999) class.
15412 \end_layout
15413
15414 \begin_layout Standard
15415 LyX has a 
15416 \family sans
15417 Revtex
15418 \family default
15419  textclass, which works with RevTeX 3.1.
15420  However, v3.1 is basically obsolete, as it works with LaTeX 2.09.
15421  That means that it doesn't interact very well with LyX, which requires
15422  LaTeX2e, although it has been kludged to work.
15423  Since RevTeX 4.0 has been designed to work much more cleanly with LaTeX2e,
15424  LyX with the 
15425 \family sans
15426 RevTeX
15427 \begin_inset space ~
15428 \end_inset
15429
15430 4
15431 \family default
15432  textclass should also be pretty easy to use.
15433 \end_layout
15434
15435 \begin_layout Standard
15436 These documents are supposed to be used in 
15437 \emph on
15438 addition
15439 \emph default
15440  to the RevTeX 4.0 documents, so we don't describe any of the special RevTeX
15441  macros, and assume you'll know what to put in the preamble if necessary.
15442 \end_layout
15443
15444 \begin_layout Subsection
15445 Installation
15446 \end_layout
15447
15448 \begin_layout Standard
15449 All you need to do is install RevTeX 4, as described in the package's README
15450  file.
15451  The package can be found at The RevTeX 4 Web Site 
15452 \begin_inset Flex URL
15453 status collapsed
15454
15455 \begin_layout Plain Layout
15456
15457 http://publish.aps.org/revtex4/
15458 \end_layout
15459
15460 \end_inset
15461
15462 .
15463  Install it somewhere that LaTeX can see it.
15464  Test it by trying to LaTeX a short RevTeX 4 document in some random directory
15465  (i.
15466 \begin_inset space \thinspace{}
15467 \end_inset
15468
15469 g.
15470 \begin_inset space \space{}
15471 \end_inset
15472
15473 not the directory where you installed the class file.) Then, if you reconfigure
15474  LyX, it will find the class file and let you use the RevTeX4 textclass.
15475 \end_layout
15476
15477 \begin_layout Standard
15478 Probably the easiest way to get started is either to import a RevTeX 4 document
15479  using 
15480 \family typewriter
15481 tex2lyx
15482 \family default
15483 , or to use the 
15484 \family sans
15485 Revtex
15486 \begin_inset space ~
15487 \end_inset
15488
15489 4
15490 \family default
15491  template, found in the templates directory.
15492 \end_layout
15493
15494 \begin_layout Subsection
15495 Preamble Matter
15496 \end_layout
15497
15498 \begin_layout Standard
15499 Optional arguments to 
15500 \family typewriter
15501
15502 \backslash
15503 documentclass
15504 \family default
15505 , like 
15506 \begin_inset Quotes eld
15507 \end_inset
15508
15509 preprint
15510 \begin_inset Quotes erd
15511 \end_inset
15512
15513  and 
15514 \begin_inset Quotes eld
15515 \end_inset
15516
15517 aps
15518 \begin_inset Quotes erd
15519 \end_inset
15520
15521 , go in the 
15522 \family sans
15523 E
15524 \bar under
15525 x
15526 \bar default
15527 tra
15528 \begin_inset space ~
15529 \end_inset
15530
15531 Options
15532 \family default
15533  field in the 
15534 \family sans
15535 Document
15536 \begin_inset space ~
15537 \end_inset
15538
15539 Layout
15540 \family default
15541  dialog, as usual.
15542  Remember that in RevTeX, at least one optional argument is required! 
15543 \end_layout
15544
15545 \begin_layout Standard
15546 Other preamble matter, like 
15547 \family typewriter
15548
15549 \backslash
15550 draft
15551 \family default
15552  etc.
15553 \begin_inset space ~
15554 \end_inset
15555
15556 goes in the 
15557 \family sans
15558 LaTeX
15559 \begin_inset space ~
15560 \end_inset
15561
15562 Preamble
15563 \family default
15564  dialog, also as usual.
15565 \end_layout
15566
15567 \begin_layout Subsection
15568 Layouts
15569 \end_layout
15570
15571 \begin_layout Standard
15572 The layouts basically correspond to the commands in RevTeX4.0.
15573  For example, the Email layout corresponds to 
15574 \family typewriter
15575
15576 \backslash
15577 email{}
15578 \family default
15579 .
15580  Note that (at least as of RevTeX 4.0 Beta), the 
15581 \family sans
15582 Address
15583 \family default
15584  and 
15585 \family sans
15586 Affiliation
15587 \family default
15588  layouts are exactly equivalent, so you shouldn't need to use both.
15589 \begin_inset Foot
15590 status collapsed
15591
15592 \begin_layout Plain Layout
15593 In case you're curious, both were included so that 
15594 \family typewriter
15595 tex2lyx
15596 \family default
15597  would be able to translate both 
15598 \family typewriter
15599
15600 \backslash
15601 address
15602 \family default
15603  and 
15604 \family typewriter
15605
15606 \backslash
15607 affiliation
15608 \family default
15609 .
15610 \end_layout
15611
15612 \end_inset
15613
15614
15615 \end_layout
15616
15617 \begin_layout Subsection
15618 Important Notes
15619 \end_layout
15620
15621 \begin_layout Standard
15622 There are a couple of important unique aspects of RevTeX 4 which might cause
15623  bugs that will be even more confusing in LyX.
15624 \end_layout
15625
15626 \begin_layout Standard
15627 In RevTeX, the 
15628 \family typewriter
15629
15630 \backslash
15631 thanks
15632 \family default
15633  command goes 
15634 \emph on
15635 outside
15636 \emph default
15637  the 
15638 \family typewriter
15639
15640 \backslash
15641 author
15642 \family default
15643  command.
15644  The LyX equivalent is that there is a separate Thanks layout.
15645  Do 
15646 \emph on
15647 not
15648 \emph default
15649  write footnotes in the 
15650 \family sans
15651 Author
15652 \family default
15653  layout, or weird things may happen.
15654  See the RevTeX 4 documentation for more details.
15655 \end_layout
15656
15657 \begin_layout Standard
15658 Also, the 
15659 \family sans
15660 Author
15661 \begin_inset space ~
15662 \end_inset
15663
15664 Email
15665 \family default
15666
15667 \family sans
15668 Author
15669 \begin_inset space ~
15670 \end_inset
15671
15672 URL
15673 \family default
15674 , and 
15675 \family sans
15676 Thanks
15677 \family default
15678  layouts must be placed 
15679 \emph on
15680 in between
15681 \emph default
15682  the 
15683 \family sans
15684 Author
15685 \family default
15686  layout and the corresponding 
15687 \family sans
15688 Address
15689 \family default
15690  (or equivalent 
15691 \family sans
15692 Affiliation
15693 \family default
15694 ) layout.
15695  If you put the 
15696 \family sans
15697 Thanks
15698 \family default
15699  after the 
15700 \family sans
15701 Address
15702 \family default
15703 , the LaTeX won't compile.
15704 \end_layout
15705
15706 \begin_layout Subsection
15707 Drawbacks
15708 \end_layout
15709
15710 \begin_layout Standard
15711 The main problem with this layout is that you can't use the optional arguments
15712  to layouts like Email and Title.
15713  (The problem is not unique to this layout; you can't use optional arguments
15714  to the Section layouts either.) This means that after you export that file
15715  to LaTeX (which you'll need to do eventually to send it in to APS), you'll
15716  need to edit the LaTeX file with a text editor to add the optional arguments
15717  to set, e.
15718 \begin_inset space \thinspace{}
15719 \end_inset
15720
15721 g.
15722 \begin_inset space \space{}
15723 \end_inset
15724
15725 the running title for the page headers.
15726  Lacking these layouts makes the 
15727 \family typewriter
15728
15729 \backslash
15730 altaffiliation
15731 \family default
15732  (and the equivalent 
15733 \family typewriter
15734
15735 \backslash
15736 altaddress
15737 \family default
15738 ) useless, so the corresponding layouts don't exist, and will have to be
15739  added by hand.
15740 \begin_inset Foot
15741 status collapsed
15742
15743 \begin_layout Plain Layout
15744
15745 \emph on
15746 Note from JMarc:
15747 \emph default
15748  actually, LyX 1.3.0 supports some forms of optional arguments, but this layout
15749  has not been updated yet to take advantage of it.
15750 \end_layout
15751
15752 \end_inset
15753
15754  
15755 \end_layout
15756
15757 \begin_layout Section
15758 Springer Journals (
15759 \family sans
15760 svjour
15761 \family default
15762 )
15763 \end_layout
15764
15765 \begin_layout Standard
15766 by 
15767 \noun on
15768 Martin Vermeer
15769 \end_layout
15770
15771 \begin_layout Subsection
15772 Description
15773 \end_layout
15774
15775 \begin_layout Standard
15776 These are the layout files for some of the journal formats used by Springer
15777  Verlag and listed on 
15778 \begin_inset Flex URL
15779 status collapsed
15780
15781 \begin_layout Plain Layout
15782
15783 http://www.springer.de/author/tex/help-journals.html
15784 \end_layout
15785
15786 \end_inset
15787
15788 , where you should also go to fetch the class files (yes, these are LaTeX2e
15789  now!).
15790  It is a modular system: the things common to all journals are implemented
15791  in 
15792 \family typewriter
15793 svjour.inc
15794 \family default
15795 , which journal-specific layout files (such as, e.
15796 \begin_inset space \thinspace{}
15797 \end_inset
15798
15799 g.
15800 \begin_inset space \space{}
15801 \end_inset
15802
15803
15804 \family typewriter
15805 svjog.layout
15806 \family default
15807  for Journal of Geodesy) can include.
15808 \end_layout
15809
15810 \begin_layout Standard
15811 This means that implementing support for any other Springer journal on this
15812  list is as simple as writing your own 
15813 \family typewriter
15814 sv
15815 \family default
15816 <myjournal>
15817 \family typewriter
15818 .layout
15819 \family default
15820  file following the outline given in 
15821 \family typewriter
15822 svjog.layout
15823 \family default
15824 .
15825  
15826 \end_layout
15827
15828 \begin_layout Standard
15829 It is reasonably well tested only for the Journal of Geodesy.
15830  
15831 \family typewriter
15832 svjour
15833 \family default
15834  and 
15835 \family typewriter
15836 svjog
15837 \family default
15838  come with the standard LyX distribution.
15839  Install the relevant class file (downloaded from Springer) in a proper
15840  directory, reconfigure LaTeX (in the teTeX case by running 
15841 \family typewriter
15842 texhash
15843 \family default
15844 , as root if necessary — doesn't LyX take care of this?), reconfigure LyX
15845  and it should work.
15846 \end_layout
15847
15848 \begin_layout Subsection
15849 New styles
15850 \end_layout
15851
15852 \begin_layout Standard
15853 A large number of theorem-like styles — 
15854 \family sans
15855 Claim, Conjecture,
15856 \family default
15857  
15858 \family sans
15859 \SpecialChar \ldots{}
15860 Theorem
15861 \family default
15862 .
15863 \end_layout
15864
15865 \begin_layout Standard
15866
15867 \family sans
15868 Headnote, Dedication, Subtitle, Running_LaTeX_Title, Author_Running, Institute,
15869  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
15870 \family default
15871 .
15872  See the Springer class file documentation for details.
15873 \end_layout
15874
15875 \begin_layout Subsection
15876 Supported journals
15877 \end_layout
15878
15879 \begin_layout Itemize
15880
15881 \emph on
15882 Journal of Geodesy
15883 \emph default
15884
15885 \family typewriter
15886 svjog.layout
15887 \family default
15888  — Martin Vermeer
15889 \end_layout
15890
15891 \begin_layout Itemize
15892
15893 \emph on
15894 Probability Theory and Related Fields
15895 \emph default
15896
15897 \family typewriter
15898 svprobth.layout
15899 \family default
15900  — Jean-Marc Lasgouttes
15901 \end_layout
15902
15903 \begin_layout Standard
15904 Add your own, it isn't so hard!
15905 \end_layout
15906
15907 \begin_layout Subsection
15908 Credits
15909 \end_layout
15910
15911 \begin_layout Standard
15912 These files are partly based on the older 
15913 \family typewriter
15914 ejour2.layout
15915 \family default
15916 , which was again based on a tinkered-with version of an old LaTeX 2.09 style
15917  file from Springer.
15918  All this, and the 
15919 \family typewriter
15920 ejour2
15921 \family default
15922  layout, are now defunct.
15923  Jean-Marc Lasgouttes helped out big in making me find my way around the
15924  LyX layout file mechanism.
15925 \end_layout
15926
15927 \begin_layout Subsection
15928 Bugs
15929 \end_layout
15930
15931 \begin_layout Standard
15932 Probably.
15933  But probably less than in the old hacked-LaTeX 
15934 \family typewriter
15935 ejour2
15936 \family default
15937 .
15938 \end_layout
15939
15940 \begin_layout Standard
15941 Limitations e.
15942 \begin_inset space \thinspace{}
15943 \end_inset
15944
15945 g.: does not display the number for theorem-like layouts, just #.
15946 \end_layout
15947
15948 \begin_layout Section
15949 Slides [aka 
15950 \noun on
15951 SliTeX
15952 \noun default
15953 ]
15954 \begin_inset CommandInset label
15955 LatexCommand label
15956 name "sec:slitex"
15957
15958 \end_inset
15959
15960
15961 \end_layout
15962
15963 \begin_layout Standard
15964 by 
15965 \noun on
15966 John Weiss
15967 \noun default
15968  
15969 \end_layout
15970
15971 \begin_layout Subsection
15972 Introduction
15973 \end_layout
15974
15975 \begin_layout Standard
15976 This section describes how to use LyX to make slides for overhead projectors.
15977  There are two document classes that can do this: the default slides class
15978  and the 
15979 \family sans
15980 FoilTeX
15981 \family default
15982  slides class.
15983  This section documents the former.
15984 \end_layout
15985
15986 \begin_layout Standard
15987 I'm going to say this again, nice and clear, so that there's no misunderstanding
15988 :
15989 \end_layout
15990
15991 \begin_layout Standard
15992 \begin_inset VSpace bigskip
15993 \end_inset
15994
15995
15996 \end_layout
15997
15998 \begin_layout Standard
15999 \align center
16000
16001 \size large
16002 This section documents the class 
16003 \begin_inset Quotes eld
16004 \end_inset
16005
16006
16007 \family sans
16008 slides (default)
16009 \family default
16010
16011 \begin_inset Quotes erd
16012 \end_inset
16013
16014  
16015 \emph on
16016 only.
16017 \end_layout
16018
16019 \begin_layout Standard
16020 \begin_inset VSpace bigskip
16021 \end_inset
16022
16023
16024 \end_layout
16025
16026 \begin_layout Standard
16027 If you're looking for the documentation for 
16028 \begin_inset Quotes eld
16029 \end_inset
16030
16031
16032 \family sans
16033 slides (FoilTeX)
16034 \family default
16035
16036 \begin_inset Quotes erd
16037 \end_inset
16038
16039 , check out section
16040 \begin_inset space ~
16041 \end_inset
16042
16043
16044 \begin_inset CommandInset ref
16045 LatexCommand ref
16046 reference "sec:foiltex"
16047
16048 \end_inset
16049
16050 .
16051  The 
16052 \family sans
16053 foils
16054 \family default
16055  class [
16056 \begin_inset Quotes eld
16057 \end_inset
16058
16059
16060 \family sans
16061 slides (FoilTeX)
16062 \family default
16063
16064 \begin_inset Quotes erd
16065 \end_inset
16066
16067 ] is actually somewhat better than the default 
16068 \family sans
16069 slides
16070 \family default
16071  class,
16072 \begin_inset Foot
16073 status collapsed
16074
16075 \begin_layout Plain Layout
16076 \SpecialChar \ldots{}
16077 or so I've been told repeatedly by its advocates.
16078  Having never used it, I have no idea if this claim is true or not.
16079 \end_layout
16080
16081 \end_inset
16082
16083  which this section documents.
16084 \end_layout
16085
16086 \begin_layout Standard
16087 This class is the LaTeX2e improvement of the old 
16088 \noun on
16089 SliTeX
16090 \noun default
16091  package.
16092  Every LaTeX2e distribution includes this class [which I'll just refer to
16093  as 
16094 \begin_inset Quotes eld
16095 \end_inset
16096
16097
16098 \family sans
16099 slides
16100 \family default
16101
16102 \begin_inset Quotes erd
16103 \end_inset
16104
16105  from now on], so you're bound to have it.
16106  As I noted earlier, there are other classes, such as 
16107 \family sans
16108 foils
16109 \family default
16110 , which also produce slides for overhead projectors and do a better job
16111  at it.
16112  However, there are some things which 
16113 \family sans
16114 slides
16115 \family default
16116  can do which the others can't, such as generate overlays.
16117  Read on to learn more!
16118 \end_layout
16119
16120 \begin_layout Subsection
16121 Getting Started
16122 \begin_inset CommandInset label
16123 LatexCommand label
16124 name "sec:slidesetup"
16125
16126 \end_inset
16127
16128
16129 \end_layout
16130
16131 \begin_layout Standard
16132 Obviously, to use this document class, you need to select 
16133 \begin_inset Quotes eld
16134 \end_inset
16135
16136
16137 \family sans
16138 slides (default)
16139 \family default
16140
16141 \begin_inset Quotes erd
16142 \end_inset
16143
16144  from the class list in the 
16145 \family sans
16146 Document\SpecialChar \menuseparator
16147 Settings
16148 \family default
16149  dialog.
16150  There are some other special things you should know about this class:
16151 \end_layout
16152
16153 \begin_layout Itemize
16154 Don't bother changing the options 
16155 \family sans
16156 Sides and Columns
16157 \family default
16158 .
16159  They're not supported by the 
16160 \family sans
16161 slides
16162 \family default
16163  class, anyways.
16164 \end_layout
16165
16166 \begin_layout Itemize
16167 The option 
16168 \family sans
16169 Page
16170 \begin_inset space ~
16171 \end_inset
16172
16173 style
16174 \family default
16175  behaves a bit differently for this class.
16176  The possible choices and what they do are as follows:
16177 \end_layout
16178
16179 \begin_deeper
16180 \begin_layout Description
16181
16182 \family sans
16183 plain
16184 \family default
16185  The final output contains page numbers in the lower right corner.
16186 \end_layout
16187
16188 \begin_layout Description
16189
16190 \family sans
16191 headings
16192 \family default
16193  Like 
16194 \family sans
16195 plain
16196 \family default
16197 , but also prints out any time markers you've put in.
16198  This is the default.
16199 \end_layout
16200
16201 \begin_layout Description
16202
16203 \family sans
16204 empty
16205 \family default
16206  The final output contains no page numbers, time markers, or alignment markers.
16207 \end_layout
16208
16209 \end_deeper
16210 \begin_layout Itemize
16211 The 
16212 \family sans
16213 slides
16214 \family default
16215  class has an extra option: 
16216 \family typewriter
16217 clock
16218 \family default
16219 .
16220  To use it, put 
16221 \begin_inset Quotes eld
16222 \end_inset
16223
16224
16225 \family typewriter
16226 clock
16227 \family default
16228
16229 \begin_inset Quotes erd
16230 \end_inset
16231
16232  in the extra class options.
16233 \end_layout
16234
16235 \begin_deeper
16236 \begin_layout Standard
16237 Using this options allows you to add time markers to 
16238 \family sans
16239 Note
16240 \family default
16241 s.
16242  See section
16243 \begin_inset space ~
16244 \end_inset
16245
16246
16247 \begin_inset CommandInset ref
16248 LatexCommand ref
16249 reference "sec:slideNote"
16250
16251 \end_inset
16252
16253  for more details.
16254 \end_layout
16255
16256 \end_deeper
16257 \begin_layout Standard
16258 You can also use the template file 
16259 \begin_inset Quotes eld
16260 \end_inset
16261
16262
16263 \family typewriter
16264 slides.lyx
16265 \family default
16266
16267 \begin_inset Quotes erd
16268 \end_inset
16269
16270  to automatically set up a document to use the 
16271 \family sans
16272 slides
16273 \family default
16274  class [using 
16275 \family sans
16276 File\SpecialChar \menuseparator
16277 New
16278 \begin_inset space ~
16279 \end_inset
16280
16281 from
16282 \begin_inset space ~
16283 \end_inset
16284
16285 Template
16286 \family default
16287  to open your new document].
16288  The template file also contains some examples of the special paragraph
16289  environments used by this class.
16290  I'll describe those next.
16291 \end_layout
16292
16293 \begin_layout Subsection
16294 Paragraph Environments
16295 \end_layout
16296
16297 \begin_layout Subsubsection
16298 Supported Environments
16299 \end_layout
16300
16301 \begin_layout Standard
16302 The first thing you'll notice when you start up a new 
16303 \family sans
16304 slides
16305 \family default
16306  document is the font size and type: it's the equivalent of the size 
16307 \begin_inset Quotes eld
16308 \end_inset
16309
16310
16311 \family sans
16312 Largest
16313 \family default
16314
16315 \begin_inset Quotes erd
16316 \end_inset
16317
16318  in the 
16319 \family sans
16320 Sans
16321 \begin_inset space ~
16322 \end_inset
16323
16324 Serif
16325 \family default
16326  font.
16327  This is also what's used in the output.
16328  Think of this as a 
16329 \begin_inset Quotes eld
16330 \end_inset
16331
16332 visual cue
16333 \begin_inset Quotes erd
16334 \end_inset
16335
16336  to remind you that this is a slide.
16337  Your final slides will use a larger font; ergo, you'll have less space.
16338  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
16339 \end_layout
16340
16341 \begin_layout Standard
16342 The next thing that becomes obvious is the changes to the paragraph environment
16343  pull-down box [at the far-left end of the toolbar].
16344  Most of the paragraph environments you're used to seeing are missing.
16345  There are also five new ones.
16346  That's because the 
16347 \family sans
16348 slides
16349 \family default
16350  class itself only supports certain paragraph environments:
16351 \end_layout
16352
16353 \begin_layout Itemize
16354
16355 \family sans
16356 Standard
16357 \end_layout
16358
16359 \begin_layout Itemize
16360
16361 \family sans
16362 Itemize
16363 \end_layout
16364
16365 \begin_layout Itemize
16366
16367 \family sans
16368 Enumerate
16369 \end_layout
16370
16371 \begin_layout Itemize
16372
16373 \family sans
16374 Description
16375 \end_layout
16376
16377 \begin_layout Itemize
16378
16379 \family sans
16380 List
16381 \end_layout
16382
16383 \begin_layout Itemize
16384
16385 \family sans
16386 Quotation
16387 \end_layout
16388
16389 \begin_layout Itemize
16390
16391 \family sans
16392 Quote
16393 \end_layout
16394
16395 \begin_layout Itemize
16396
16397 \family sans
16398 Verse
16399 \end_layout
16400
16401 \begin_layout Itemize
16402
16403 \family sans
16404 Caption
16405 \end_layout
16406
16407 \begin_layout Itemize
16408
16409 \family sans
16410 LyX-Code
16411 \end_layout
16412
16413 \begin_layout Itemize
16414
16415 \family sans
16416 Comment
16417 \end_layout
16418
16419 \begin_layout Standard
16420 All of the other standard environments, including the section-heading environmen
16421 ts, aren't used in the 
16422 \family sans
16423 slides
16424 \family default
16425  class.
16426 \end_layout
16427
16428 \begin_layout Standard
16429 On the other hand, you'll notice the following new environments:
16430 \end_layout
16431
16432 \begin_layout Itemize
16433
16434 \family sans
16435 Slide
16436 \end_layout
16437
16438 \begin_layout Itemize
16439
16440 \family sans
16441 Overlay
16442 \end_layout
16443
16444 \begin_layout Itemize
16445
16446 \family sans
16447 Note
16448 \end_layout
16449
16450 \begin_layout Itemize
16451
16452 \family sans
16453 InvisibleText
16454 \end_layout
16455
16456 \begin_layout Itemize
16457
16458 \family sans
16459 VisibleText
16460 \end_layout
16461
16462 \begin_layout Standard
16463 These five are kind of quirky, due to a 
16464 \begin_inset Quotes eld
16465 \end_inset
16466
16467 feature
16468 \begin_inset Quotes erd
16469 \end_inset
16470
16471  in LyX.
16472  You see, LyX doesn't permit you to nest any other paragraph environment
16473  into an empty environment.
16474  Now, that's fine and dandy, but it means that you wouldn't be able to start
16475  a slide with anything except plain text.
16476  To deal with this, I've performed a little 
16477 \begin_inset Quotes eld
16478 \end_inset
16479
16480 LaTeX magic.
16481 \begin_inset Quotes erd
16482 \end_inset
16483
16484  
16485 \end_layout
16486
16487 \begin_layout Subsubsection
16488 Quirks of the New Environments
16489 \begin_inset CommandInset label
16490 LatexCommand label
16491 name "sec:slideQuirk"
16492
16493 \end_inset
16494
16495
16496 \end_layout
16497
16498 \begin_layout Standard
16499 All five of the new paragraph environments are somewhat quirky due to inherent
16500  limitiations in the current version of LyX.
16501  As I just mentioned, LyX forbids environments that begin with another environme
16502 nt.
16503  To get around this, the 
16504 \family sans
16505 Slide
16506 \family default
16507  environment isn't a paragraph environment as described in the 
16508 \emph on
16509 User's Guide
16510 \emph default
16511 .
16512  
16513 \end_layout
16514
16515 \begin_layout Standard
16516 You should consider 
16517 \family sans
16518 Slide
16519 \family default
16520
16521 \family sans
16522 Overlay
16523 \family default
16524 , and 
16525 \family sans
16526 Note
16527 \family default
16528  to be 
16529 \begin_inset Quotes eld
16530 \end_inset
16531
16532 pseudo-environments.
16533 \begin_inset Quotes erd
16534 \end_inset
16535
16536  They look like a section heading or a 
16537 \begin_inset Quotes eld
16538 \end_inset
16539
16540
16541 \family sans
16542 Caption
16543 \family default
16544 ,
16545 \begin_inset Quotes erd
16546 \end_inset
16547
16548  but really begin a [and, if necessary, end the previous] paragraph environment.
16549  Likewise, treat 
16550 \family sans
16551 InvisibleText
16552 \family default
16553  and 
16554 \family sans
16555 VisibleText
16556 \family default
16557  as 
16558 \begin_inset Quotes eld
16559 \end_inset
16560
16561 pseudo-commands.
16562 \begin_inset Quotes erd
16563 \end_inset
16564
16565  These two perform some action.
16566 \end_layout
16567
16568 \begin_layout Standard
16569 A common feature of all five environments, 
16570 \family sans
16571 Slide
16572 \family default
16573
16574 \family sans
16575 Overlay
16576 \family default
16577
16578 \family sans
16579 Note
16580 \family default
16581
16582 \family sans
16583 InvisibleText
16584 \family default
16585  and 
16586 \family sans
16587 VisibleText
16588 \family default
16589 , is a rather long-ish label.
16590  The text following this label — ordinarily the contents of the paragraph
16591  environment — is utterly irrelevant for 
16592 \family sans
16593 Slide
16594 \family default
16595
16596 \family sans
16597 Overlay
16598 \family default
16599
16600 \family sans
16601 Note
16602 \family default
16603
16604 \family sans
16605 InvisibleText
16606 \family default
16607  and 
16608 \family sans
16609 VisibleText
16610 \family default
16611 .
16612  LyX completely ignores it.
16613  In fact, you can leave these five environments completely empty.
16614  
16615 \end_layout
16616
16617 \begin_layout Standard
16618 While you don't 
16619 \emph on
16620 have
16621 \emph default
16622  to put any text after the rather long-ish label, you might want to.
16623  This could be a short description of the contents of the 
16624 \family sans
16625 Slide
16626 \family default
16627 , for example.
16628  In that case, enter your descriptive comment and hit 
16629 \family sans
16630 Return
16631 \family default
16632  as you normally would.
16633 \end_layout
16634
16635 \begin_layout Standard
16636 If, on the other hand, you don't want to enter any descriptive text, you'll
16637  hit another LyX quirk.
16638  LyX, like nature, abhors a vacuum, and will not let you start a new paragraph
16639  environment until you put something in the old one.
16640  So, do this:
16641 \end_layout
16642
16643 \begin_layout Itemize
16644 Start entering the text that will 
16645 \emph on
16646 follow
16647 \emph default
16648  the new 
16649 \family sans
16650 Slide
16651 \family default
16652
16653 \family sans
16654 Overlay
16655 \family default
16656
16657 \family sans
16658 Note
16659 \family default
16660
16661 \family sans
16662 InvisibleText
16663 \family default
16664  or 
16665 \family sans
16666 VisibleText
16667 \family default
16668 .
16669  
16670 \end_layout
16671
16672 \begin_layout Itemize
16673 Now move to the beginning of that paragraph.
16674  
16675 \end_layout
16676
16677 \begin_layout Itemize
16678 Next, hit 
16679 \family sans
16680 Return
16681 \family default
16682 .
16683  
16684 \end_layout
16685
16686 \begin_layout Itemize
16687 Finally, change this new, empty paragraph to a 
16688 \family sans
16689 Slide
16690 \family default
16691
16692 \family sans
16693 Overlay
16694 \family default
16695
16696 \family sans
16697 Note
16698 \family default
16699
16700 \family sans
16701 InvisibleText
16702 \family default
16703  or 
16704 \family sans
16705 VisibleText
16706 \family default
16707 .
16708  
16709 \end_layout
16710
16711 \begin_layout Standard
16712 Some future version of LyX will, hopefully, resolve this quirkiness\SpecialChar \ldots{}
16713
16714 \end_layout
16715
16716 \begin_layout Subsection
16717 Making a Presentation with 
16718 \family sans
16719 Slide
16720 \family default
16721
16722 \family sans
16723 Overlay
16724 \family default
16725  and 
16726 \family sans
16727 Note
16728 \end_layout
16729
16730 \begin_layout Subsubsection
16731 Using the 
16732 \family sans
16733 Slide
16734 \family default
16735  Environment
16736 \end_layout
16737
16738 \begin_layout Standard
16739 If you're expecting this section to teach you how to actually make a presentatio
16740 n, you'll be sorely disappointed.
16741  Naturally, I'll describe all of the ways the 
16742 \family sans
16743 slides
16744 \family default
16745  class can assist you in preparing the materials for a presentation.
16746  Filling in the contents, however, is up to you.
16747  [Then again, that 
16748 \emph on
16749 is
16750 \emph default
16751  the LyX philosophy.]
16752 \end_layout
16753
16754 \begin_layout Standard
16755 Choosing the 
16756 \family sans
16757 Slide
16758 \family default
16759  environment [in the manner described in section
16760 \begin_inset space ~
16761 \end_inset
16762
16763
16764 \begin_inset CommandInset ref
16765 LatexCommand ref
16766 reference "sec:slideQuirk"
16767
16768 \end_inset
16769
16770 ] tells LyX to begin a new slide [duh].
16771  The label for this environment/
16772 \begin_inset Quotes erd
16773 \end_inset
16774
16775 pseudo-command
16776 \begin_inset Quotes erd
16777 \end_inset
16778
16779  is an 
16780 \begin_inset Quotes eld
16781 \end_inset
16782
16783 ASCII line,
16784 \begin_inset Quotes erd
16785 \end_inset
16786
16787  in cool blue, followed by the label, 
16788 \begin_inset Quotes eld
16789 \end_inset
16790
16791 NewSlide:
16792 \begin_inset Quotes erd
16793 \end_inset
16794
16795 .
16796  Any text or paragraph environments that follow this one go on the new slide.
16797  It's that simple.
16798 \end_layout
16799
16800 \begin_layout Standard
16801 Slides are probably the only time you'll need to forcibly end pages in LyX
16802  (this can be specified in the 
16803 \family sans
16804 Paragraph Layout
16805 \family default
16806  dialog).
16807  In fact, you'll want to, once you finish entering the contents of one slide.
16808  If you've entered more text than can physically fit on a slide, the extra
16809  overflows onto a new slide.
16810  I don't recommend doing this, however, since the overflow slide won't have
16811  any page number on it.
16812  Furthermore, it may interfere with any 
16813 \family sans
16814 Overlay
16815 \family default
16816  you've made to accompany the oversized 
16817 \family sans
16818 Slide
16819 \family default
16820 .
16821 \end_layout
16822
16823 \begin_layout Standard
16824 The 
16825 \family sans
16826 Overlay
16827 \family default
16828  and 
16829 \family sans
16830 Note
16831 \family default
16832  environments work the same way as the 
16833 \family sans
16834 Slide
16835 \family default
16836  environment.
16837  They both create an 
16838 \begin_inset Quotes eld
16839 \end_inset
16840
16841 ASCII line
16842 \begin_inset Quotes erd
16843 \end_inset
16844
16845  followed by a label [
16846 \begin_inset Quotes eld
16847 \end_inset
16848
16849 NewOverlay:
16850 \begin_inset Quotes erd
16851 \end_inset
16852
16853  and 
16854 \begin_inset Quotes eld
16855 \end_inset
16856
16857 NewNote:
16858 \begin_inset Quotes erd
16859 \end_inset
16860
16861 , respectively].
16862  The color is a stunning magenta instead of blue, and the 
16863 \begin_inset Quotes eld
16864 \end_inset
16865
16866 ASCII line
16867 \begin_inset Quotes erd
16868 \end_inset
16869
16870  will look different, in style and in length.
16871  The label fonts of all three also differ from one another.
16872 \end_layout
16873
16874 \begin_layout Standard
16875 As with a 
16876 \family sans
16877 Slide
16878 \family default
16879 , if the contents of a 
16880 \family sans
16881 Note
16882 \family default
16883  or 
16884 \family sans
16885 Overlay
16886 \family default
16887  exceed the physical size of a slide or sheet of paper, the extra will overflow
16888  onto a new sheet.
16889  Again, you should avoid this.
16890  It defeats the whole purpose of 
16891 \family sans
16892 Note
16893 \family default
16894 s and 
16895 \family sans
16896 Overlay
16897 \family default
16898 s.
16899 \end_layout
16900
16901 \begin_layout Subsubsection
16902 Using 
16903 \family sans
16904 Overlay
16905 \family default
16906  with 
16907 \family sans
16908 Slide
16909 \end_layout
16910
16911 \begin_layout Standard
16912 The idea behind an 
16913 \family sans
16914 Overlay
16915 \family default
16916  is a slide that sits atop another slide.
16917  Perhaps you wish to discuss a figure on the main 
16918 \family sans
16919 Slide
16920 \family default
16921  before displaying the text associated with it.
16922  One way to accomplish this is tape a flap of dark paper over the part of
16923  the 
16924 \family sans
16925 Slide
16926 \family default
16927  you want to display later.
16928  This method fails, however, if you wish to overlap one graph with another,
16929  for example.
16930  You would then have to fumble while speaking to align the two separate,
16931  overlapping 
16932 \family sans
16933 Slide
16934 \family default
16935 s to align the two graphs.
16936  The use of an 
16937 \family sans
16938 Overlay
16939 \family default
16940  environment in both cases makes life much easier.
16941 \end_layout
16942
16943 \begin_layout Standard
16944 Each 
16945 \family sans
16946 Overlay
16947 \family default
16948  receives the page number of its 
16949 \begin_inset Quotes eld
16950 \end_inset
16951
16952 parent
16953 \begin_inset Quotes erd
16954 \end_inset
16955
16956  
16957 \family sans
16958 Slide
16959 \family default
16960 , appended by 
16961 \begin_inset Quotes eld
16962 \end_inset
16963
16964
16965 \family typewriter
16966 -a
16967 \family default
16968
16969 \begin_inset Quotes erd
16970 \end_inset
16971
16972 .
16973 \begin_inset Foot
16974 status collapsed
16975
16976 \begin_layout Plain Layout
16977 Presumably, mutliple 
16978 \family sans
16979 Overlay
16980 \family default
16981 s would have 
16982 \begin_inset Quotes eld
16983 \end_inset
16984
16985
16986 \family typewriter
16987 -a
16988 \family default
16989
16990 \begin_inset Quotes erd
16991 \end_inset
16992
16993
16994 \begin_inset Quotes eld
16995 \end_inset
16996
16997
16998 \family typewriter
16999 -b
17000 \family default
17001
17002 \begin_inset Quotes erd
17003 \end_inset
17004
17005
17006 \begin_inset Quotes eld
17007 \end_inset
17008
17009
17010 \family typewriter
17011 -c
17012 \family default
17013
17014 \begin_inset Quotes erd
17015 \end_inset
17016
17017 , etc.
17018 \begin_inset space ~
17019 \end_inset
17020
17021 appended to the page number of the parent 
17022 \family sans
17023 Slide
17024 \family default
17025 .
17026  
17027 \end_layout
17028
17029 \end_inset
17030
17031  Clearly, you want the contents of both the 
17032 \family sans
17033 Slide
17034 \family default
17035  and the 
17036 \family sans
17037 Overlay
17038 \family default
17039  to each fit on a single physical slide! You should probably consider an
17040  
17041 \family sans
17042 Overlay
17043 \family default
17044  as 
17045 \begin_inset Quotes eld
17046 \end_inset
17047
17048 part of
17049 \begin_inset Quotes erd
17050 \end_inset
17051
17052  a 
17053 \family sans
17054 Slide
17055 \family default
17056 .
17057  Indeed, the LyX 
17058 \family sans
17059 slides
17060 \family default
17061  class provides a visual cue for this: the label at the start of an 
17062 \family sans
17063 Overlay
17064 \family default
17065  is shorter than that at the start of a 
17066 \family sans
17067 Slide
17068 \family default
17069 .
17070  Lastly, when you generate printable output, you'll find alignment markers
17071  in all four corners of both the 
17072 \family sans
17073 Overlay
17074 \family default
17075  page and its parent 
17076 \family sans
17077 Slide
17078 \family default
17079 .
17080  These will assist you in lining up the two physical slides.
17081 \end_layout
17082
17083 \begin_layout Standard
17084 The major problem in overlaying two slides is aligning the contents of the
17085  two transparencies.
17086  How much space should you leave for that graph on the second slide? Worse
17087  still, what if you want a graph and a sentence on second slide, but there
17088  is text on the main transparency that goes in between them? You could try
17089  and insert vertical space of the right size.
17090  The better way is to use 
17091 \family sans
17092 InvisibleText
17093 \family default
17094  and 
17095 \family sans
17096 VisibleText
17097 \family default
17098 .
17099 \end_layout
17100
17101 \begin_layout Standard
17102 As their names imply, 
17103 \family sans
17104 InvisibleText
17105 \family default
17106  and 
17107 \family sans
17108 VisibleText
17109 \family default
17110  are two command-like paragraph environments that make all subsequent text
17111  invisible and visible, respectively.
17112  Note from section
17113 \begin_inset space ~
17114 \end_inset
17115
17116
17117 \begin_inset CommandInset ref
17118 LatexCommand ref
17119 reference "sec:slideQuirk"
17120
17121 \end_inset
17122
17123  that you don't place anything 
17124 \emph on
17125 into
17126 \emph default
17127  these two environments, however.
17128  When you create an 
17129 \family sans
17130 InvisibleText
17131 \family default
17132 , it inserts a centered, sky-blue label into the page reading 
17133 \begin_inset Quotes eld
17134 \end_inset
17135
17136 <Invisible Text Follows>
17137 \begin_inset Quotes erd
17138 \end_inset
17139
17140 .
17141  For paragraphs following this label, the parts of the 
17142 \family sans
17143 Slide
17144 \family default
17145  [or 
17146 \family sans
17147 Overlay
17148 \family default
17149 ; it doesn't matter which] where they would be contain instead blank space.
17150  
17151 \end_layout
17152
17153 \begin_layout Standard
17154 For 
17155 \family sans
17156 VisibleText
17157 \family default
17158 , the corresponding centered label is 
17159 \begin_inset Quotes eld
17160 \end_inset
17161
17162 <Visible Text Follows>
17163 \begin_inset Quotes erd
17164 \end_inset
17165
17166  in blazing green.
17167  Paragraphs following this label behave normally.
17168  Note that the beginning of a new 
17169 \family sans
17170 Slide
17171 \family default
17172
17173 \family sans
17174 Overlay
17175 \family default
17176 , or 
17177 \family sans
17178 Note
17179 \family default
17180  automatically shuts off an 
17181 \family sans
17182 InvisibleText
17183 \family default
17184 .
17185  It's therefore not necessary to use 
17186 \family sans
17187 VisibleText
17188 \family default
17189  at the end of a 
17190 \family sans
17191 Slide
17192 \family default
17193 .
17194 \end_layout
17195
17196 \begin_layout Standard
17197 By now, it should be obvious how to create overlay transparencies using
17198  the proper combination of 
17199 \family sans
17200 InvisibleText
17201 \family default
17202  and 
17203 \family sans
17204 VisibleText
17205 \family default
17206  on a 
17207 \family sans
17208 Slide
17209 \family default
17210  and 
17211 \family sans
17212 Overlay
17213 \family default
17214 :
17215 \end_layout
17216
17217 \begin_layout Enumerate
17218 Create a 
17219 \family sans
17220 Slide
17221 \family default
17222 , including everything that will appear on it, whether on the main slide
17223  or on the 
17224 \family sans
17225 Overlay
17226 \family default
17227 .
17228 \end_layout
17229
17230 \begin_layout Enumerate
17231 Before each figure or paragraph that will appear only on the 
17232 \family sans
17233 Overlay
17234 \family default
17235 , insert an 
17236 \family sans
17237 InvisibleText
17238 \family default
17239  environment.
17240  If necessary, insert a 
17241 \family sans
17242 VisibleText
17243 \family default
17244  environment after the 
17245 \family sans
17246 Overlay
17247 \family default
17248 -only text.
17249 \end_layout
17250
17251 \begin_layout Enumerate
17252 Start an 
17253 \family sans
17254 Overlay
17255 \family default
17256  immediately following the 
17257 \family sans
17258 Slide
17259 \family default
17260 .
17261 \end_layout
17262
17263 \begin_layout Enumerate
17264 Copy the contents of this 
17265 \family sans
17266 Slide
17267 \family default
17268  into the 
17269 \family sans
17270 Overlay
17271 \family default
17272 .
17273 \end_layout
17274
17275 \begin_layout Enumerate
17276 Within the 
17277 \family sans
17278 Overlay
17279 \family default
17280 , change all of the 
17281 \family sans
17282 InvisibleText
17283 \family default
17284  lines to 
17285 \family sans
17286 VisibleText
17287 \family default
17288  and vice-versa.
17289 \end_layout
17290
17291 \begin_layout Standard
17292 That's it.
17293  You've just made an 
17294 \family sans
17295 Overlay
17296 \family default
17297 .
17298 \end_layout
17299
17300 \begin_layout Standard
17301 There's one problem with the way I've designed the LyX 
17302 \family sans
17303 slides
17304 \family default
17305  class: you can't make text in the middle of a paragraph invisible, nor
17306  make text in the middle of an invisible paragraph visible again.
17307  To accomplish this feat, you'll need to use some inlined LaTeX codes.
17308 \begin_inset Foot
17309 status collapsed
17310
17311 \begin_layout Plain Layout
17312 The commands of interest are: 
17313 \end_layout
17314
17315 \begin_layout Itemize
17316
17317 \family typewriter
17318 {
17319 \backslash
17320 invisible \SpecialChar \ldots{}
17321  }
17322 \end_layout
17323
17324 \begin_layout Itemize
17325
17326 \family typewriter
17327 {
17328 \backslash
17329 visible \SpecialChar \ldots{}
17330  }
17331 \end_layout
17332
17333 \begin_layout Plain Layout
17334 \SpecialChar \ldots{}
17335 and need to be marked as TeX.
17336  The text whose 
17337 \begin_inset Quotes eld
17338 \end_inset
17339
17340 visibility
17341 \begin_inset Quotes erd
17342 \end_inset
17343
17344  you wish to change goes in between the brackets [and after the 
17345 \family typewriter
17346
17347 \backslash
17348 invisible
17349 \family default
17350  or 
17351 \family typewriter
17352
17353 \backslash
17354 visible
17355 \family default
17356  command].
17357  If you don't know how to mark text as TeX, see the appropriate section
17358  of the 
17359 \emph on
17360 User's Guide
17361 \emph default
17362 .
17363 \end_layout
17364
17365 \end_inset
17366
17367
17368 \end_layout
17369
17370 \begin_layout Subsubsection
17371 Using 
17372 \family sans
17373 Note
17374 \family default
17375  with 
17376 \family sans
17377 Slide
17378 \family default
17379
17380 \begin_inset CommandInset label
17381 LatexCommand label
17382 name "sec:slideNote"
17383
17384 \end_inset
17385
17386
17387 \end_layout
17388
17389 \begin_layout Standard
17390 Like an 
17391 \family sans
17392 Overlay
17393 \family default
17394 , a 
17395 \family sans
17396 Note
17397 \family default
17398  is associated with a 
17399 \begin_inset Quotes eld
17400 \end_inset
17401
17402 parent
17403 \begin_inset Quotes erd
17404 \end_inset
17405
17406  
17407 \family sans
17408 Slide
17409 \family default
17410 .
17411  Here, too, the LyX 
17412 \family sans
17413 slides
17414 \family default
17415  class provides visual cues.
17416  The label for a 
17417 \family sans
17418 Note
17419 \family default
17420  is shorter than that of a 
17421 \family sans
17422 Slide
17423 \family default
17424  [yet longer than that of an 
17425 \family sans
17426 Overlay
17427 \family default
17428 ] and, like the label of an 
17429 \family sans
17430 Overlay
17431 \family default
17432  is shockingly magenta.
17433  Additionally, the printed 
17434 \family sans
17435 Note
17436 \family default
17437  has the page number of its 
17438 \begin_inset Quotes eld
17439 \end_inset
17440
17441 parent
17442 \begin_inset Quotes erd
17443 \end_inset
17444
17445  
17446 \family sans
17447 Slide
17448 \family default
17449 , appended by 
17450 \begin_inset Quotes eld
17451 \end_inset
17452
17453
17454 \family typewriter
17455 -
17456 \family default
17457 1
17458 \begin_inset Quotes erd
17459 \end_inset
17460
17461
17462 \begin_inset Quotes eld
17463 \end_inset
17464
17465
17466 \family typewriter
17467 -
17468 \family default
17469 2
17470 \begin_inset Quotes erd
17471 \end_inset
17472
17473
17474 \begin_inset Quotes eld
17475 \end_inset
17476
17477
17478 \family typewriter
17479 -
17480 \family default
17481 3
17482 \begin_inset Quotes erd
17483 \end_inset
17484
17485 , etc.
17486  You can have multiple 
17487 \family sans
17488 Note
17489 \family default
17490 s associated with a single 
17491 \family sans
17492 Slide
17493 \family default
17494 , and, as with 
17495 \family sans
17496 Slide
17497 \family default
17498  and 
17499 \family sans
17500 Overlay
17501 \family default
17502 , you'll probably want to break up long 
17503 \family sans
17504 Note
17505 \family default
17506 s so that they fit on a single sheet of paper.
17507 \end_layout
17508
17509 \begin_layout Standard
17510 The purpose of a 
17511 \family sans
17512 Note
17513 \family default
17514  is obvious: it contains anything additional you might want to say about
17515  a 
17516 \family sans
17517 Slide
17518 \family default
17519 .
17520  It could also be used as a sheet of reminders for a particular 
17521 \family sans
17522 Slide
17523 \family default
17524 .
17525  In the case of the latter, you might want to make use of time markers.
17526  Currently, the LyX 
17527 \family sans
17528 slides
17529 \family default
17530  class has no 
17531 \begin_inset Quotes eld
17532 \end_inset
17533
17534 native
17535 \begin_inset Quotes erd
17536 \end_inset
17537
17538  support for time markers, a 
17539 \noun on
17540 SliTeX
17541 \noun default
17542  feature.
17543  So, you'll have to resort to using the LaTeX codes.
17544 \end_layout
17545
17546 \begin_layout Standard
17547 To use time markers, you'll need to specify the extra class option 
17548 \begin_inset Quotes eld
17549 \end_inset
17550
17551
17552 \family typewriter
17553 clock
17554 \family default
17555
17556 \begin_inset Quotes erd
17557 \end_inset
17558
17559  [see section
17560 \begin_inset space ~
17561 \end_inset
17562
17563
17564 \begin_inset CommandInset ref
17565 LatexCommand ref
17566 reference "sec:slidesetup"
17567
17568 \end_inset
17569
17570 ].
17571  This option turns on timing marks, which will appear in the lower-left-hand
17572  corner of every 
17573 \family sans
17574 Note
17575 \family default
17576  you generate.
17577  To set what appears in the time marker, you use the LaTeX commands 
17578 \begin_inset Quotes eld
17579 \end_inset
17580
17581
17582 \family typewriter
17583
17584 \backslash
17585 settime{}
17586 \family default
17587
17588 \begin_inset Quotes erd
17589 \end_inset
17590
17591  and 
17592 \begin_inset Quotes eld
17593 \end_inset
17594
17595
17596 \family typewriter
17597
17598 \backslash
17599 addtime{}
17600 \family default
17601
17602 \begin_inset Quotes erd
17603 \end_inset
17604
17605 .
17606  The arguments of both commands are time measured in seconds.
17607  
17608 \begin_inset Quotes eld
17609 \end_inset
17610
17611
17612 \family typewriter
17613
17614 \backslash
17615 settime{}
17616 \family default
17617
17618 \begin_inset Quotes erd
17619 \end_inset
17620
17621  sets the time marker to a given time.
17622  
17623 \begin_inset Quotes eld
17624 \end_inset
17625
17626
17627 \family typewriter
17628
17629 \backslash
17630 addtime{}
17631 \family default
17632
17633 \begin_inset Quotes erd
17634 \end_inset
17635
17636  increments the time marker by the specified amount.
17637  Using time markers and 
17638 \family sans
17639 Note
17640 \family default
17641 s in this fashion, you can remind yourself how much time to spend on a particula
17642
17643 \family sans
17644 Slide
17645 \family default
17646 .
17647 \end_layout
17648
17649 \begin_layout Standard
17650 There's one last feature to describe.
17651  Clearly, you'd like to print out all of your 
17652 \family sans
17653 Slide
17654 \family default
17655 s and 
17656 \family sans
17657 Overlay
17658 \family default
17659 s on transparencies while printing all of your 
17660 \family sans
17661 Note
17662 \family default
17663 s on plain paper.
17664  However, a 
17665 \family sans
17666 Note
17667 \family default
17668  
17669 \emph on
17670 must
17671 \emph default
17672  follow the 
17673 \family sans
17674 Slide
17675 \family default
17676  with which it is associated.
17677  What's a person to do?
17678 \end_layout
17679
17680 \begin_layout Standard
17681 Luckily, there are two LaTeX commands that allow you to select what to print
17682  out.
17683  Both must be placed into the preamble of your document.
17684  The command 
17685 \begin_inset Quotes eld
17686 \end_inset
17687
17688
17689 \family typewriter
17690
17691 \backslash
17692 onlyslides{
17693 \backslash
17694 slides}
17695 \family default
17696
17697 \begin_inset Quotes erd
17698 \end_inset
17699
17700  will cause the output to contain only the 
17701 \family sans
17702 Slide
17703 \family default
17704 s and 
17705 \family sans
17706 Overlay
17707 \family default
17708 s.
17709  Correspondingly, the command 
17710 \begin_inset Quotes eld
17711 \end_inset
17712
17713
17714 \family typewriter
17715
17716 \backslash
17717 onlynotes{
17718 \backslash
17719 notes}
17720 \family default
17721
17722 \begin_inset Quotes erd
17723 \end_inset
17724
17725  prevents the output of anything but 
17726 \family sans
17727 Note
17728 \family default
17729 s.
17730  I'd advise placing both commands in the preamble and initially comment
17731  both out.
17732  You can then preview your entire presentation as you write.
17733  When you're done writing, you can then uncomment one of the two to select
17734  what you want to print.
17735  I like to uncomment 
17736 \begin_inset Quotes eld
17737 \end_inset
17738
17739
17740 \family typewriter
17741
17742 \backslash
17743 onlyslides{
17744 \backslash
17745 slides}
17746 \family default
17747
17748 \begin_inset Quotes erd
17749 \end_inset
17750
17751  , print to a file with 
17752 \begin_inset Quotes eld
17753 \end_inset
17754
17755
17756 \family typewriter
17757 -slides
17758 \family default
17759
17760 \begin_inset Quotes erd
17761 \end_inset
17762
17763  in its name, comment it back out, then uncomment 
17764 \begin_inset Quotes eld
17765 \end_inset
17766
17767
17768 \family typewriter
17769
17770 \backslash
17771 onlynotes{
17772 \backslash
17773 notes}
17774 \family default
17775
17776 \begin_inset Quotes erd
17777 \end_inset
17778
17779  and print to a 
17780 \begin_inset Quotes eld
17781 \end_inset
17782
17783
17784 \family typewriter
17785 *-notes.ps
17786 \family default
17787
17788 \begin_inset Quotes erd
17789 \end_inset
17790
17791  file.
17792  I can then send either file to a printer, loading transparencies or plain
17793  paper as appropriate.
17794 \end_layout
17795
17796 \begin_layout Standard
17797 You can also provide other arguments to the 
17798 \begin_inset Quotes eld
17799 \end_inset
17800
17801
17802 \family typewriter
17803
17804 \backslash
17805 onlyslides{}
17806 \family default
17807
17808 \begin_inset Quotes erd
17809 \end_inset
17810
17811  and 
17812 \begin_inset Quotes eld
17813 \end_inset
17814
17815
17816 \family typewriter
17817
17818 \backslash
17819 onlynotes{}
17820 \family default
17821
17822 \begin_inset Quotes erd
17823 \end_inset
17824
17825  commands.
17826  See a good LaTeX book for details.
17827 \end_layout
17828
17829 \begin_layout Subsection
17830 The 
17831 \family sans
17832 slides
17833 \family default
17834  Class Template File
17835 \end_layout
17836
17837 \begin_layout Standard
17838 I have also provided a template file, 
17839 \begin_inset Quotes eld
17840 \end_inset
17841
17842
17843 \family typewriter
17844 slides.lyx
17845 \family default
17846
17847 \begin_inset Quotes erd
17848 \end_inset
17849
17850 , with the 
17851 \family sans
17852 slides
17853 \family default
17854  class.
17855  To use it, begin your new presentation with 
17856 \family sans
17857 \bar under
17858 F
17859 \bar default
17860 ile\SpecialChar \menuseparator
17861 New
17862 \begin_inset space ~
17863 \end_inset
17864
17865 from
17866 \begin_inset space ~
17867 \end_inset
17868
17869
17870 \bar under
17871 T
17872 \bar default
17873 emplate
17874 \family default
17875 .
17876  Your new LyX presentation file will contain an example 
17877 \family sans
17878 Slide
17879 \family default
17880  – 
17881 \family sans
17882 Overlay
17883 \family default
17884  – 
17885 \family sans
17886 Note
17887 \family default
17888  triplet.
17889  The 
17890 \family sans
17891 Slide
17892 \family default
17893  and 
17894 \family sans
17895 Overlay
17896 \family default
17897  additionally contain an example of the use of 
17898 \family sans
17899 InvisibleText
17900 \family default
17901  and 
17902 \family sans
17903 VisibleText
17904 \family default
17905 .
17906  Lastly, the preamble will contain:
17907 \end_layout
17908
17909 \begin_layout LyX-Code
17910 % Uncomment to print out only slides and overlays
17911 \end_layout
17912
17913 \begin_layout LyX-Code
17914 %
17915 \end_layout
17916
17917 \begin_layout LyX-Code
17918 %
17919 \backslash
17920 onlyslides{
17921 \backslash
17922 slides}
17923 \begin_inset Newline newline
17924 \end_inset
17925
17926  
17927 \end_layout
17928
17929 \begin_layout LyX-Code
17930 % Uncomment to print out only notes
17931 \end_layout
17932
17933 \begin_layout LyX-Code
17934 %
17935 \end_layout
17936
17937 \begin_layout LyX-Code
17938 %
17939 \backslash
17940 onlynotes{
17941 \backslash
17942 notes}
17943 \end_layout
17944
17945 \begin_layout Standard
17946 One final thing: I created this class to support the LaTeX2e 
17947 \begin_inset Quotes eld
17948 \end_inset
17949
17950
17951 \noun on
17952 SliTeX
17953 \noun default
17954  emulation
17955 \begin_inset Quotes erd
17956 \end_inset
17957
17958  class, one of the built-in LaTeX2e classes.
17959  Neither I nor the rest of the LyX Team endorse or oppose the use of this
17960  built-in slide class.
17961  It's here if you want it or need it.
17962  There exist other LaTeX2e classes for creating presentations, such as the
17963  
17964 \family sans
17965 Foils
17966 \family default
17967  class [see section
17968 \begin_inset space ~
17969 \end_inset
17970
17971
17972 \begin_inset CommandInset ref
17973 LatexCommand ref
17974 reference "sec:foiltex"
17975
17976 \end_inset
17977
17978 ] or the 
17979 \begin_inset Quotes eld
17980 \end_inset
17981
17982
17983 \family typewriter
17984 seminar
17985 \family default
17986
17987 \begin_inset Quotes erd
17988 \end_inset
17989
17990  package [present on some TeX distributions].
17991  The latter is not yet supported under LyX.
17992 \begin_inset Foot
17993 status collapsed
17994
17995 \begin_layout Plain Layout
17996 Perhaps you can take on the task\SpecialChar \ldots{}
17997
17998 \end_layout
17999
18000 \end_inset
18001
18002  I know nothing about these other classes.
18003  Try them out to see what sort of alternative they provide.
18004 \end_layout
18005
18006 \begin_layout Chapter
18007 LyX Features needing Extra Software
18008 \end_layout
18009
18010 \begin_layout Section
18011 Checking TeX
18012 \end_layout
18013
18014 \begin_layout Standard
18015 by 
18016 \noun on
18017 Asger Alstrup
18018 \end_layout
18019
18020 \begin_layout Subsection
18021 Introduction
18022 \end_layout
18023
18024 \begin_layout Standard
18025 If you have the 
18026 \family typewriter
18027 chktex
18028 \family default
18029  program installed
18030 \begin_inset Foot
18031 status collapsed
18032
18033 \begin_layout Plain Layout
18034
18035 \family typewriter
18036 chktex
18037 \family default
18038  is not yet available when you are using the LaTeX distribution MiKTeX.
18039 \end_layout
18040
18041 \end_inset
18042
18043 , you'll find in the 
18044 \family sans
18045 Tools
18046 \family default
18047  menu the entry: 
18048 \family sans
18049 Check
18050 \begin_inset space ~
18051 \end_inset
18052
18053 TeX
18054 \family default
18055 .
18056  You can get 
18057 \family typewriter
18058 chktex
18059 \family default
18060  it from CTAN, 
18061 \begin_inset CommandInset href
18062 LatexCommand href
18063 target "http://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
18064
18065 \end_inset
18066
18067 .
18068 \end_layout
18069
18070 \begin_layout Standard
18071 The 
18072 \family sans
18073 ChkTeX
18074 \family default
18075  package is a program that was written by 
18076 \begin_inset Flex Noun
18077 status collapsed
18078
18079 \begin_layout Plain Layout
18080 Jens T.
18081 \begin_inset space ~
18082 \end_inset
18083
18084 Berger Thielemann
18085 \end_layout
18086
18087 \end_inset
18088
18089  in frustration because some constructs in LaTeX are sometimes non-intuitive,
18090  and easy to forget.
18091  The program runs over your LaTeX file, checks the integrity of the file,
18092  and flags some common errors.
18093  In other technical words, it is 
18094 \family typewriter
18095 lint
18096 \family default
18097  for LaTeX.
18098 \end_layout
18099
18100 \begin_layout Standard
18101 Well, what is a syntax checker doing in LyX which is supposed to produce
18102  correct LaTeX anyways? The answer is simple: Just as 
18103 \family typewriter
18104 Lint
18105 \family default
18106  not only checks the 
18107 \emph on
18108 syntax
18109 \emph default
18110  of C programs, but also does 
18111 \emph on
18112 semantic
18113 \emph default
18114  checks for type-errors, 
18115 \family sans
18116 ChkTeX
18117 \family default
18118  catches some common 
18119 \emph on
18120 typographic
18121 \emph default
18122  errors, in addition to the syntactical ones.
18123  Specifically, 
18124 \family sans
18125 ChkTeX
18126 \family default
18127  is capable of detecting several common errors, such as
18128 \end_layout
18129
18130 \begin_layout Itemize
18131 Ellipsis detection:
18132 \begin_inset Newline newline
18133 \end_inset
18134
18135 Use \SpecialChar \ldots{}
18136  instead of ...
18137 \end_layout
18138
18139 \begin_layout Itemize
18140 No space in front of/after parenthesis:
18141 \begin_inset Newline newline
18142 \end_inset
18143
18144 ( wrong spacing )
18145 \end_layout
18146
18147 \begin_layout Itemize
18148 Enforcement of normal space after common abbreviations:
18149 \begin_inset Newline newline
18150 \end_inset
18151
18152 e.
18153 \begin_inset space \thinspace{}
18154 \end_inset
18155
18156 g.
18157 \begin_inset space \space{}
18158 \end_inset
18159
18160 is too wide spacing.
18161 \end_layout
18162
18163 \begin_layout Itemize
18164 Enforcement of end-of-sentence space when the last sentence ends with a
18165  capital letter:
18166 \begin_inset Newline newline
18167 \end_inset
18168
18169 This is a TEST.
18170  And this is wrong spacing.
18171 \end_layout
18172
18173 \begin_layout Itemize
18174 Space in front of labels and similar commands:
18175 \begin_inset Newline newline
18176 \end_inset
18177
18178 The label should stick right up to the text to avoid falling to a wrong
18179  page.
18180  
18181 \begin_inset CommandInset label
18182 LatexCommand label
18183 name "sec:chktex"
18184
18185 \end_inset
18186
18187  
18188 \begin_inset Foot
18189 status collapsed
18190
18191 \begin_layout Plain Layout
18192 This footnote is in danger of falling off to a wrong page
18193 \end_layout
18194
18195 \end_inset
18196
18197  The label is separated too much.
18198 \end_layout
18199
18200 \begin_layout Itemize
18201 Space in front of references, instead of hard spaces:
18202 \begin_inset Newline newline
18203 \end_inset
18204
18205 In you are in bad luck, the text will break right between the referenced
18206  text and reference number, and that's a pity.
18207  See section 
18208 \begin_inset CommandInset ref
18209 LatexCommand ref
18210 reference "sec:chktex"
18211
18212 \end_inset
18213
18214 .
18215 \end_layout
18216
18217 \begin_layout Itemize
18218 Use of 
18219 \begin_inset Quotes eld
18220 \end_inset
18221
18222 x
18223 \begin_inset Quotes erd
18224 \end_inset
18225
18226  instead of 
18227 \begin_inset Formula $\times$
18228 \end_inset
18229
18230  between numbers:
18231 \begin_inset Newline newline
18232 \end_inset
18233
18234 2x2 looks cheap compared to 
18235 \begin_inset Formula $2\times2$
18236 \end_inset
18237
18238 .
18239 \end_layout
18240
18241 \begin_layout Standard
18242 and more \SpecialChar \ldots{}
18243  It is an invaluable tool when you are 
18244 \begin_inset Quotes eld
18245 \end_inset
18246
18247 finishing up
18248 \begin_inset Quotes erd
18249 \end_inset
18250
18251  your document before printing, and you should run it right after the obligatory
18252  spelling check, and before you go fine tuning the typesetting.
18253 \end_layout
18254
18255 \begin_layout Subsection
18256 How to use it
18257 \end_layout
18258
18259 \begin_layout Standard
18260 If you have the program installed, usage is as simple as choosing 
18261 \family sans
18262 Tools\SpecialChar \menuseparator
18263 Check
18264 \begin_inset space ~
18265 \end_inset
18266
18267 TeX
18268 \family default
18269 .
18270  This will make LyX generate a LaTeX file of your document, start 
18271 \family sans
18272 ChkTeX
18273 \family default
18274  to check it, and then make LyX insert 
18275 \begin_inset Quotes eld
18276 \end_inset
18277
18278 error boxes
18279 \begin_inset Quotes erd
18280 \end_inset
18281
18282  with the warnings from 
18283 \family sans
18284 ChkTeX
18285 \family default
18286 , if there were any.
18287  The warnings will be placed close to the point of the mistake, and you
18288  can quickly find them by using the 
18289 \family sans
18290 Navigate\SpecialChar \menuseparator
18291 Error
18292 \family default
18293  menu item, or the shortcut key 
18294 \family sans
18295 C-g
18296 \family default
18297  from the default 
18298 \family typewriter
18299 cua
18300 \family default
18301  bind file.
18302  Open the error boxes by clicking on them with the mouse, or use the shortcut
18303  key 
18304 \family sans
18305 C-i
18306 \family default
18307  from 
18308 \family typewriter
18309 cua
18310 \family default
18311  bindings, or the corresponding 
18312 \family sans
18313 C-o
18314 \family default
18315  for the alternate 
18316 \family typewriter
18317 emacs
18318 \family default
18319  bind file.
18320  Read the warning and correct the mistake, if it is a mistake.
18321  If you have trouble understanding what the warning is about, you can safely
18322  ignore it.
18323  Remember that there is a hidden layer between the document on screen and
18324  the technical details in invoking 
18325 \family sans
18326 ChkTeX
18327 \family default
18328 , and this gap can make some warnings seem arcane or just right down plain
18329  silly.
18330 \end_layout
18331
18332 \begin_layout Standard
18333 This document is an excellent testing bed for the feature, and it should
18334  provide quite a few warnings for you to fiddle with.
18335  Since computers are only so smart, expect most of the warnings to be false
18336  alarms, though.
18337 \end_layout
18338
18339 \begin_layout Subsection
18340 How to fine tune it
18341 \end_layout
18342
18343 \begin_layout Standard
18344 Sometimes, you'll find that 
18345 \family sans
18346 ChkTeX
18347 \family default
18348  makes more noise than suits your mood.
18349  Then you can choose not to use it, wait until your mood changes, or try
18350  to customize 
18351 \family sans
18352 ChkTeX
18353 \family default
18354  to get better along with you.
18355  Another choice in the most desperate situations is to use 
18356 \family sans
18357 View\SpecialChar \menuseparator
18358 Remove
18359 \begin_inset space ~
18360 \end_inset
18361
18362 All
18363 \begin_inset space ~
18364 \end_inset
18365
18366 Error
18367 \begin_inset space ~
18368 \end_inset
18369
18370 Boxes
18371 \family default
18372 , which will get rid of all warnings instantly.
18373 \end_layout
18374
18375 \begin_layout Standard
18376 Although 
18377 \family sans
18378 ChkTeX
18379 \family default
18380  
18381 \emph on
18382 is
18383 \emph default
18384  very configurable and extensible, you shouldn't expect to solve all problems
18385  with 
18386 \family sans
18387 ChkTeX
18388 \family default
18389  in LyX this way.
18390  Since LyX has to generate a somewhat special LaTeX file to be able to match
18391  the line numbers from the 
18392 \family sans
18393 ChkTeX
18394 \family default
18395  output
18396 \begin_inset Foot
18397 status collapsed
18398
18399 \begin_layout Plain Layout
18400 You can inspect the specific output from 
18401 \family sans
18402 chktex
18403 \family default
18404  by using 
18405 \family sans
18406 Edit\SpecialChar \menuseparator
18407 View
18408 \begin_inset space ~
18409 \end_inset
18410
18411 LaTeX
18412 \begin_inset space ~
18413 \end_inset
18414
18415 Log
18416 \family default
18417  right after a 
18418 \family sans
18419 chktex
18420 \family default
18421  run.
18422 \end_layout
18423
18424 \end_inset
18425
18426  to the internal document structure, some of the warnings will not seen
18427  to appear correctly.
18428  There are two things you can do about this:
18429 \end_layout
18430
18431 \begin_layout Itemize
18432 Fine tune the 
18433 \family sans
18434 ChkTeX
18435 \family default
18436  invocation command line in 
18437 \family sans
18438 Preferences
18439 \family default
18440  (tabs 
18441 \family sans
18442 Outputs
18443 \family default
18444
18445 \family sans
18446 Misc
18447 \family default
18448 ), or the global 
18449 \family sans
18450 ChkTeX
18451 \family default
18452  installation configuration file (usually with the file 
18453 \family typewriter
18454 chktexrc
18455 \family default
18456 ).
18457  See below to learn what warnings can be enabled and disabled on the command
18458  line.
18459  
18460 \end_layout
18461
18462 \begin_layout Itemize
18463 Export your document as a raw LaTeX file using 
18464 \family sans
18465 File\SpecialChar \menuseparator
18466 Export\SpecialChar \menuseparator
18467 LaTeX
18468 \family default
18469  and run 
18470 \family typewriter
18471 chktex
18472 \family default
18473  manually on that.
18474  Invoked in this way, it can be a hassle to find the corresponding place
18475  in the document inside LyX, but with a little patience, you should be able
18476  to do it.
18477 \end_layout
18478
18479 \begin_layout Standard
18480 Here follows the warning messages that can be enabled and disabled in 
18481 \family sans
18482 Preferences
18483 \family default
18484 .
18485  Use 
18486 \family typewriter
18487 -n#
18488 \family default
18489  to disable a warning, and 
18490 \family typewriter
18491 -w#
18492 \family default
18493  to enable a warning.
18494  The emphasized entries are disabled by default, because the default is
18495  "
18496 \family typewriter
18497 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
18498 \family default
18499 ".
18500 \end_layout
18501
18502 \begin_layout Standard
18503 Notice that you should only use the options that enable and disable warnings,
18504  because LyX relies on some of the other command line parameters to be set
18505  in a specific way to have a chance to communicate with 
18506 \family typewriter
18507 chktex
18508 \family default
18509 .
18510 \end_layout
18511
18512 \begin_layout Enumerate
18513
18514 \size small
18515 \emph on
18516 Command terminated with space.
18517 \end_layout
18518
18519 \begin_layout Enumerate
18520
18521 \size small
18522 Non-breaking space (
18523 \begin_inset Quotes eld
18524 \end_inset
18525
18526
18527 \family typewriter
18528 ~
18529 \family default
18530
18531 \begin_inset Quotes erd
18532 \end_inset
18533
18534 ) should have been used.
18535 \end_layout
18536
18537 \begin_layout Enumerate
18538
18539 \size small
18540 \emph on
18541 You should enclose the previous parenthesis with 
18542 \begin_inset Quotes eld
18543 \end_inset
18544
18545
18546 \family typewriter
18547 {}
18548 \family default
18549
18550 \begin_inset Quotes erd
18551 \end_inset
18552
18553 .
18554 \end_layout
18555
18556 \begin_layout Enumerate
18557
18558 \size small
18559 Italic correction (
18560 \begin_inset Quotes eld
18561 \end_inset
18562
18563
18564 \family typewriter
18565
18566 \backslash
18567 /
18568 \family default
18569
18570 \begin_inset Quotes erd
18571 \end_inset
18572
18573 ) found in non-italic buffer.
18574 \end_layout
18575
18576 \begin_layout Enumerate
18577
18578 \size small
18579 Italic correction (
18580 \begin_inset Quotes eld
18581 \end_inset
18582
18583
18584 \family typewriter
18585
18586 \backslash
18587 /
18588 \family default
18589
18590 \begin_inset Quotes erd
18591 \end_inset
18592
18593 ) found more than once.
18594 \end_layout
18595
18596 \begin_layout Enumerate
18597
18598 \size small
18599 \emph on
18600 No italic correction (
18601 \begin_inset Quotes eld
18602 \end_inset
18603
18604
18605 \family typewriter
18606
18607 \backslash
18608 /
18609 \family default
18610
18611 \begin_inset Quotes erd
18612 \end_inset
18613
18614 ) found.
18615 \end_layout
18616
18617 \begin_layout Enumerate
18618
18619 \size small
18620 Accent command 
18621 \begin_inset Quotes eld
18622 \end_inset
18623
18624
18625 \family typewriter
18626 cmd
18627 \family default
18628
18629 \begin_inset Quotes erd
18630 \end_inset
18631
18632  needs use of 
18633 \begin_inset Quotes eld
18634 \end_inset
18635
18636
18637 \family typewriter
18638 cmd
18639 \family default
18640
18641 \begin_inset Quotes erd
18642 \end_inset
18643
18644 .
18645 \end_layout
18646
18647 \begin_layout Enumerate
18648
18649 \size small
18650 Wrong length of dash may have been used.
18651 \end_layout
18652
18653 \begin_layout Enumerate
18654
18655 \size small
18656 \emph on
18657 \begin_inset Quotes eld
18658 \end_inset
18659
18660
18661 \family typewriter
18662 %s
18663 \family default
18664
18665 \begin_inset Quotes erd
18666 \end_inset
18667
18668  expected, found 
18669 \begin_inset Quotes eld
18670 \end_inset
18671
18672
18673 \family typewriter
18674 %s
18675 \family default
18676
18677 \begin_inset Quotes erd
18678 \end_inset
18679
18680 .
18681 \end_layout
18682
18683 \begin_layout Enumerate
18684
18685 \size small
18686 Solo 
18687 \begin_inset Quotes eld
18688 \end_inset
18689
18690
18691 \family typewriter
18692 %s
18693 \family default
18694
18695 \begin_inset Quotes erd
18696 \end_inset
18697
18698  found.
18699 \end_layout
18700
18701 \begin_layout Enumerate
18702
18703 \size small
18704 You should use 
18705 \begin_inset Quotes eld
18706 \end_inset
18707
18708
18709 \family typewriter
18710 %s
18711 \family default
18712
18713 \begin_inset Quotes erd
18714 \end_inset
18715
18716  to achieve an ellipsis.
18717 \end_layout
18718
18719 \begin_layout Enumerate
18720
18721 \size small
18722 Inter-word spacing (
18723 \begin_inset Quotes eld
18724 \end_inset
18725
18726
18727 \family typewriter
18728
18729 \backslash
18730
18731 \family default
18732  
18733 \begin_inset Quotes eld
18734 \end_inset
18735
18736 ) should perhaps be used.
18737 \end_layout
18738
18739 \begin_layout Enumerate
18740
18741 \size small
18742 Inter-sentence spacing (
18743 \begin_inset Quotes eld
18744 \end_inset
18745
18746
18747 \family typewriter
18748
18749 \backslash
18750 @
18751 \family default
18752
18753 \begin_inset Quotes erd
18754 \end_inset
18755
18756 ) should perhaps be used.
18757 \end_layout
18758
18759 \begin_layout Enumerate
18760
18761 \size small
18762 Could not find argument for command.
18763 \end_layout
18764
18765 \begin_layout Enumerate
18766
18767 \size small
18768 No match found for 
18769 \begin_inset Quotes eld
18770 \end_inset
18771
18772
18773 \family typewriter
18774 %s
18775 \family default
18776
18777 \begin_inset Quotes erd
18778 \end_inset
18779
18780 .
18781 \end_layout
18782
18783 \begin_layout Enumerate
18784
18785 \size small
18786 Math mode still on at end of LaTeX file.
18787 \end_layout
18788
18789 \begin_layout Enumerate
18790
18791 \size small
18792 Number of 
18793 \begin_inset Quotes eld
18794 \end_inset
18795
18796
18797 \family typewriter
18798 char
18799 \family default
18800
18801 \begin_inset Quotes erd
18802 \end_inset
18803
18804  doesn't match the number of 
18805 \begin_inset Quotes eld
18806 \end_inset
18807
18808
18809 \family typewriter
18810 char
18811 \family default
18812
18813 \begin_inset Quotes erd
18814 \end_inset
18815
18816 .
18817 \end_layout
18818
18819 \begin_layout Enumerate
18820
18821 \size small
18822 You should use either 
18823 \family typewriter
18824
18825 \begin_inset Quotes eld
18826 \end_inset
18827
18828
18829 \family default
18830  or 
18831 \family typewriter
18832
18833 \begin_inset Quotes erd
18834 \end_inset
18835
18836
18837 \family default
18838  as an alternative to 
18839 \begin_inset Quotes eld
18840 \end_inset
18841
18842
18843 \family typewriter
18844 "
18845 \family default
18846
18847 \begin_inset Quotes erd
18848 \end_inset
18849
18850 .
18851 \end_layout
18852
18853 \begin_layout Enumerate
18854
18855 \size small
18856 You should use "
18857 \family typewriter
18858 '
18859 \family default
18860 " (ASCII 39) instead of "
18861 \family typewriter
18862 ´
18863 \family default
18864 " (ASCII 180).
18865 \end_layout
18866
18867 \begin_layout Enumerate
18868
18869 \size small
18870 User-specified pattern found.
18871 \end_layout
18872
18873 \begin_layout Enumerate
18874
18875 \size small
18876 This command might not be intended.
18877 \end_layout
18878
18879 \begin_layout Enumerate
18880
18881 \size small
18882 \emph on
18883 Comment displayed.
18884 \end_layout
18885
18886 \begin_layout Enumerate
18887
18888 \size small
18889 Either 
18890 \family typewriter
18891 ''
18892 \backslash
18893 ,'
18894 \family default
18895  or 
18896 \family typewriter
18897 '
18898 \backslash
18899 ,''
18900 \family default
18901  will look better.
18902 \end_layout
18903
18904 \begin_layout Enumerate
18905
18906 \size small
18907 Delete this space to maintain correct page references.
18908 \end_layout
18909
18910 \begin_layout Enumerate
18911
18912 \size small
18913 \emph on
18914 You might wish to put this between a pair of 
18915 \begin_inset Quotes eld
18916 \end_inset
18917
18918
18919 \family typewriter
18920 {}
18921 \family default
18922
18923 \begin_inset Quotes erd
18924 \end_inset
18925
18926 .
18927 \end_layout
18928
18929 \begin_layout Enumerate
18930
18931 \size small
18932 You ought to remove spaces in front of punctuation.
18933 \end_layout
18934
18935 \begin_layout Enumerate
18936
18937 \size small
18938 Could not execute LaTeX command.
18939 \end_layout
18940
18941 \begin_layout Enumerate
18942
18943 \size small
18944 Don't use 
18945 \family typewriter
18946
18947 \backslash
18948 /
18949 \family default
18950  in front of small punctuation.
18951 \end_layout
18952
18953 \begin_layout Enumerate
18954
18955 \family typewriter
18956 \size small
18957 $
18958 \backslash
18959 times$
18960 \family default
18961  may look prettier here.
18962 \end_layout
18963
18964 \begin_layout Enumerate
18965
18966 \size small
18967 \emph on
18968 Multiple spaces detected in output.
18969 \end_layout
18970
18971 \begin_layout Enumerate
18972
18973 \size small
18974 This text may be ignored.
18975 \end_layout
18976
18977 \begin_layout Enumerate
18978
18979 \size small
18980 Use 
18981 \family typewriter
18982
18983 \begin_inset Quotes eld
18984 \end_inset
18985
18986
18987 \family default
18988  to begin quotation, not 
18989 \family typewriter
18990 '
18991 \family default
18992 .
18993 \end_layout
18994
18995 \begin_layout Enumerate
18996
18997 \size small
18998 Use 
18999 \family typewriter
19000 '
19001 \family default
19002  to end quotation, not 
19003 \family typewriter
19004
19005 \begin_inset Quotes eld
19006 \end_inset
19007
19008
19009 \family default
19010 .
19011 \end_layout
19012
19013 \begin_layout Enumerate
19014
19015 \size small
19016 Don't mix quotes.
19017 \end_layout
19018
19019 \begin_layout Enumerate
19020
19021 \size small
19022 You should perhaps use 
19023 \begin_inset Quotes eld
19024 \end_inset
19025
19026
19027 \family typewriter
19028 cmd
19029 \family default
19030
19031 \begin_inset Quotes erd
19032 \end_inset
19033
19034  instead.
19035 \end_layout
19036
19037 \begin_layout Enumerate
19038
19039 \size small
19040 You should put a space in front of/after parenthesis.
19041 \end_layout
19042
19043 \begin_layout Enumerate
19044
19045 \size small
19046 You should avoid spaces in front of/after parenthesis.
19047 \end_layout
19048
19049 \begin_layout Enumerate
19050
19051 \size small
19052 \emph on
19053 You should not use punctuation in front of/after quotes.
19054 \end_layout
19055
19056 \begin_layout Enumerate
19057
19058 \size small
19059 Double space found.
19060 \end_layout
19061
19062 \begin_layout Enumerate
19063
19064 \size small
19065 You should put punctuation outside inner/inside display math mode.
19066 \end_layout
19067
19068 \begin_layout Enumerate
19069
19070 \size small
19071 You ought to not use primitive TeX in LaTeX code.
19072 \end_layout
19073
19074 \begin_layout Enumerate
19075
19076 \size small
19077 You should remove spaces in front of 
19078 \begin_inset Quotes eld
19079 \end_inset
19080
19081
19082 \family typewriter
19083 %s
19084 \family default
19085
19086 \begin_inset Quotes erd
19087 \end_inset
19088
19089
19090 \end_layout
19091
19092 \begin_layout Enumerate
19093
19094 \size small
19095 \begin_inset Quotes eld
19096 \end_inset
19097
19098
19099 \family typewriter
19100 %s
19101 \family default
19102
19103 \begin_inset Quotes erd
19104 \end_inset
19105
19106  is normally not followed by 
19107 \begin_inset Quotes eld
19108 \end_inset
19109
19110
19111 \family typewriter
19112 %c
19113 \family default
19114
19115 \begin_inset Quotes erd
19116 \end_inset
19117
19118 .
19119 \end_layout
19120
19121 \begin_layout Standard
19122 In later versions of LyX, we hope to provide a more complete interface to
19123  this tool (and it's smaller cousin 
19124 \family typewriter
19125 lacheck
19126 \family default
19127 ) to exploit the full power of it.
19128  But it's not exactly useless as it is now: go try it on one of your existing
19129  documents of a certain length and be surprised.
19130 \end_layout
19131
19132 \begin_layout Section
19133 Version Control in LyX
19134 \end_layout
19135
19136 \begin_layout Standard
19137 by
19138 \noun on
19139  Lars Gullik Bjønnes 
19140 \noun default
19141 and 
19142 \noun on
19143 Pavel Sanda
19144 \end_layout
19145
19146 \begin_layout Subsection
19147 Introduction
19148 \end_layout
19149
19150 \begin_layout Standard
19151 A friend of mine wanted to try LyX for a group project.
19152  When he didn't find support for version control or file locking, he dropped
19153  it.
19154  This angered me a bit, so I thought that I should at least make support
19155  for RCS (with the possibility of CVS and/or SCCS as a future improvement.)
19156  This has been done.
19157  LyX now supports some of the most basic RCS/CVS/SVN commands.
19158  If you need something a bit more sophisticated you will have to do that
19159  manually in a terminal.
19160 \end_layout
19161
19162 \begin_layout Standard
19163 Before you begin to use the version control features in LyX, you should
19164  be familiar with RCS/CVS/SVN usage before start using it under LyX.
19165  Also note that CVS support is not as good as subversion support so we advice
19166  using SVN instead.
19167  Good place to start with Subversion is SVN Book
19168 \begin_inset Foot
19169 status open
19170
19171 \begin_layout Plain Layout
19172 \begin_inset CommandInset href
19173 LatexCommand href
19174 target "http://svnbook.red-bean.com/"
19175
19176 \end_inset
19177
19178
19179 \end_layout
19180
19181 \end_inset
19182
19183 .
19184  In case of RCS you should read 
19185 \begin_inset Quotes eld
19186 \end_inset
19187
19188 rcsintro
19189 \begin_inset Quotes erd
19190 \end_inset
19191
19192  (a man file, read it with 
19193 \family typewriter
19194 man rcsintro
19195 \family default
19196 ).
19197  This file describes all the basic features of RCS.
19198  You should especially notice the comment about a RCS directory, and the
19199  notion of a master RCS file (the file ending in 
19200 \family typewriter
19201 ,v
19202 \family default
19203 ).
19204 \end_layout
19205
19206 \begin_layout Standard
19207 The implementation in LyX assumes a recent version of the GNU RCS or CVS/SVN
19208  package—no guarantees are made for older versions.
19209  Most of the log messages are not currently displayed after operations —
19210  you can check them in Messages pane if unsure.
19211 \end_layout
19212
19213 \begin_layout Standard
19214 For introducing your own external commands consult vc-command in the manual
19215  of LyX functions.
19216 \end_layout
19217
19218 \begin_layout Subsection
19219 RCS commands in LyX
19220 \end_layout
19221
19222 \begin_layout Standard
19223 The following sections describe the RCS commands supported by LyX.
19224  You can find them in the 
19225 \family sans
19226 File\SpecialChar \menuseparator
19227 Version
19228 \begin_inset space ~
19229 \end_inset
19230
19231 Control
19232 \family default
19233  submenu.
19234  LyX was tested against RCS 5.7.
19235 \end_layout
19236
19237 \begin_layout Subsubsection
19238
19239 \family sans
19240 Register
19241 \end_layout
19242
19243 \begin_layout Standard
19244 If your document is not under revision control, this is the only item shown
19245  in the menu.
19246  And if it is under revision control, the 
19247 \family sans
19248 Register
19249 \family default
19250  item is not visible.
19251  
19252 \end_layout
19253
19254 \begin_layout Standard
19255 This command registers your document with RCS (unless you are under the
19256  directory managed by CVS)\SpecialChar \@.
19257  You are asked interactively to supply an initial
19258  description of the document.
19259  The document is now set in Read-Only mode and you have to 
19260 \family sans
19261 Check
19262 \begin_inset space ~
19263 \end_inset
19264
19265 Out
19266 \begin_inset space ~
19267 \end_inset
19268
19269 For
19270 \begin_inset space ~
19271 \end_inset
19272
19273 Edit
19274 \family default
19275 , before making any changes to it.
19276  A document under revision control has a 
19277 \begin_inset Quotes eld
19278 \end_inset
19279
19280 [RCS:<version> <locker>]
19281 \begin_inset Quotes erd
19282 \end_inset
19283
19284  item tagged to the filename in the minibuffer.
19285 \end_layout
19286
19287 \begin_layout Standard
19288 RCS command that is run: 
19289 \family typewriter
19290 ci -q -u -i -t-"<initial description>" <file-name>
19291 \end_layout
19292
19293 \begin_layout Standard
19294 Read 
19295 \family typewriter
19296 man ci
19297 \family default
19298  to understand the switches.
19299  
19300 \end_layout
19301
19302 \begin_layout Subsubsection
19303
19304 \family sans
19305 Check In Changes
19306 \end_layout
19307
19308 \begin_layout Standard
19309 When you are finished editing a file, you check in your changes.
19310  When you do this, you are asked for a description of the changes.
19311  This is stored in the history log.
19312  The version number is bumped, your changes are applied to the master RCS
19313  file, the document is unlocked and set to Read-Only mode.
19314  
19315 \end_layout
19316
19317 \begin_layout Standard
19318 RCS command: 
19319 \family typewriter
19320 ci -q -u -m"<description>" <file-name>
19321 \end_layout
19322
19323 \begin_layout Subsubsection
19324
19325 \family sans
19326 Check Out For Edit
19327 \end_layout
19328
19329 \begin_layout Standard
19330 By doing this you lock the document so that only you can edit it.
19331  This will also make the document Read-Write only for you.
19332  You will usually continue editing for a while and when you are finished
19333  you check in your changes.
19334  The status line is changed to reflect that you have locked the file.
19335  
19336 \end_layout
19337
19338 \begin_layout Standard
19339 RCS command: 
19340 \family typewriter
19341 co -q -l <file-name>
19342 \end_layout
19343
19344 \begin_layout Subsubsection
19345
19346 \family sans
19347 Revert To Repository Version
19348 \end_layout
19349
19350 \begin_layout Standard
19351 This will discard all changes made to the document since the last check
19352  in.
19353  You get a warning before changes are discarded.
19354 \end_layout
19355
19356 \begin_layout Standard
19357 RCS command: 
19358 \family typewriter
19359 co -f -u<version> <file-name>
19360 \end_layout
19361
19362 \begin_layout Subsubsection
19363
19364 \family sans
19365 Undo Last Checkin
19366 \end_layout
19367
19368 \begin_layout Standard
19369 This makes as if the last check in never happened.
19370  No changes are made to the document loaded into LyX, but the last version
19371  is removed from the master RCS file.
19372  
19373 \end_layout
19374
19375 \begin_layout Standard
19376 RCS command: 
19377 \family typewriter
19378 rcs -o<version> <file-name>
19379 \end_layout
19380
19381 \begin_layout Subsubsection
19382
19383 \family sans
19384 Show History
19385 \end_layout
19386
19387 \begin_layout Standard
19388 This shows the complete history of the RCS document.
19389  The output of 
19390 \family typewriter
19391 rlog <file-name>
19392 \family default
19393  is shown in a browser.
19394  See 
19395 \family typewriter
19396 man rlog
19397 \family default
19398  for more info.
19399 \end_layout
19400
19401 \begin_layout Subsubsection
19402 Revision info
19403 \end_layout
19404
19405 \begin_layout Standard
19406 LyX supports RCS version number information (only), see 
19407 \begin_inset CommandInset ref
19408 LatexCommand ref
19409 reference "sub:VCS-Revision-Information"
19410
19411 \end_inset
19412
19413  for details.
19414 \end_layout
19415
19416 \begin_layout Subsection
19417 CVS commands in LyX
19418 \end_layout
19419
19420 \begin_layout Standard
19421 A subset of CVS operations is supported by LyX.
19422  You can find the commands in the 
19423 \family sans
19424 File\SpecialChar \menuseparator
19425 Version
19426 \begin_inset space ~
19427 \end_inset
19428
19429 Control
19430 \family default
19431  submenu.
19432  The version control system SVN is more powerful, so please use it instead
19433  of CVS if possible.
19434 \end_layout
19435
19436 \begin_layout Subsubsection
19437
19438 \family sans
19439 General CVS usage
19440 \end_layout
19441
19442 \begin_layout Standard
19443 If you start from scratch with CVS you have to create your repository and
19444  checkout the working copy with external tools.
19445  If you're using a client-server setup you may need to login before doing
19446  the first repository checkout.
19447 \end_layout
19448
19449 \begin_layout Standard
19450 If your documents are under revision control and others are using the same
19451  repository problems arise when different changes to the same document at
19452  the same location happen.
19453  Standard CVS repositories doesn't operate with a file locking mechanism.
19454  This may be surprising, but conflicts only occur if people disagree on
19455  the proper content of the same part of a document.
19456  So, if co-workers are used to communicate regularly, these conflicts occur
19457  rarely.
19458  If they don't communicate they have a fundamental problem anyway.
19459  Nevertheless some people like to work with so called 
19460 \begin_inset Quotes eld
19461 \end_inset
19462
19463 reserved checkouts
19464 \begin_inset Quotes erd
19465 \end_inset
19466
19467 .
19468  If they do so the working copy of all files is readonly when checked out
19469  first and the user starts editing after using a special command to make
19470  the working copy writable.
19471  When the changes are checked in the working copy returns to readonly state.
19472  With LyX one has to edit the 
19473 \begin_inset Flex Code
19474 status collapsed
19475
19476 \begin_layout Plain Layout
19477 .cvsrc
19478 \end_layout
19479
19480 \end_inset
19481
19482  file and add the line 
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 cvs -r
19488 \end_layout
19489
19490 \end_inset
19491
19492  to work with reserved checkouts.
19493  The benefit is the possibility to see who is using a writable copy of some
19494  document.
19495  It's not guaranteed only one user makes a copy writable.
19496 \end_layout
19497
19498 \begin_layout Standard
19499 LyX tries to guess if you're using reserved or non-reserved checkouts.
19500  If your working copy is readonly or it is writable and an additional copy
19501  of your document exists in the CVS/Base sub-directory a reserved otherwise
19502  a non-reserved checkout is assumed.
19503  When a reserved checkout is detected you have to use 
19504 \begin_inset Flex MenuItem
19505 status collapsed
19506
19507 \begin_layout Plain Layout
19508 Check Out
19509 \end_layout
19510
19511 \end_inset
19512
19513  to make your working copy writable if it's readonly.
19514  After doing so the 
19515 \begin_inset Flex MenuItem
19516 status collapsed
19517
19518 \begin_layout Plain Layout
19519 Check In
19520 \end_layout
19521
19522 \end_inset
19523
19524  operation is possible and that makes your working copy readonly again after
19525  transferring your changes to the repository.
19526 \end_layout
19527
19528 \begin_layout Standard
19529 More information about CVS can be found here 
19530 \begin_inset Flex URL
19531 status collapsed
19532
19533 \begin_layout Plain Layout
19534
19535 http://www.nongnu.org/cvs
19536 \end_layout
19537
19538 \end_inset
19539
19540  and here 
19541 \begin_inset Flex URL
19542 status collapsed
19543
19544 \begin_layout Plain Layout
19545
19546 http://ximbiot.com/cvs
19547 \end_layout
19548
19549 \end_inset
19550
19551 .
19552 \end_layout
19553
19554 \begin_layout Standard
19555 Read 
19556 \family typewriter
19557 man cvs
19558 \family default
19559  to understand the sub-commands and the switches mentioned below.
19560 \end_layout
19561
19562 \begin_layout Subsubsection
19563
19564 \family sans
19565 Register
19566 \end_layout
19567
19568 \begin_layout Standard
19569 If your document is not under revision control, this is the only item shown
19570  in the menu.
19571  And if it is under revision control, the 
19572 \family sans
19573 \bar under
19574 R
19575 \bar default
19576 egister
19577 \family default
19578  item is not visible.
19579  
19580 \end_layout
19581
19582 \begin_layout Standard
19583 This command registers in CVS your document 
19584 \begin_inset Flex Strong
19585 status collapsed
19586
19587 \begin_layout Plain Layout
19588
19589 \emph on
19590 only
19591 \end_layout
19592
19593 \end_inset
19594
19595  in case you have already the documents directory under CVS control (in
19596  particular 
19597 \family typewriter
19598 CVS/Entries
19599 \family default
19600  file exists).
19601  This means you have to create or checkout the archive by yourself using
19602  external tools.
19603  (In case you forget that step LyX registers the document with RCS.)
19604 \end_layout
19605
19606 \begin_layout Standard
19607 Then you are asked interactively to supply an initial description of the
19608  document.
19609  Don't forget that registered file is not yet checked in.
19610 \end_layout
19611
19612 \begin_layout Standard
19613 CVS command that is run: 
19614 \family typewriter
19615 cvs -q add -m"<entered message>" "<file-name>"
19616 \end_layout
19617
19618 \begin_layout Standard
19619 The term 
19620 \family typewriter
19621 "<file-name>"
19622 \family default
19623  above and for all other CVS commands is an abbreviation for 
19624 \begin_inset Quotes eld
19625 \end_inset
19626
19627 change the current working directory to file location and use the file name
19628  without path component as argument
19629 \begin_inset Quotes erd
19630 \end_inset
19631
19632 .
19633 \end_layout
19634
19635 \begin_layout Subsubsection
19636
19637 \family sans
19638 Check In Changes
19639 \end_layout
19640
19641 \begin_layout Standard
19642 When you are finished editing a file, you commit your changes.
19643  When you do this and you had changed the document, you are asked for a
19644  description of the changes.
19645  After that changes are written to the repository.
19646  In case you didn't change the document and a reserved checkout is detected
19647  the reservation made on 
19648 \begin_inset Flex MenuItem
19649 status collapsed
19650
19651 \begin_layout Plain Layout
19652 Check Out
19653 \end_layout
19654
19655 \end_inset
19656
19657  is undone.
19658 \end_layout
19659
19660 \begin_layout Labeling
19661 \labelwidthstring 00.00.0000
19662 CVS
19663 \begin_inset space ~
19664 \end_inset
19665
19666 command: 
19667 \begin_inset space ~
19668 \end_inset
19669
19670
19671 \begin_inset Newline newline
19672 \end_inset
19673
19674
19675 \begin_inset Flex Code
19676 status collapsed
19677
19678 \begin_layout Plain Layout
19679 cvs 
19680 \family typewriter
19681 -q commit -m"<description>" "<file-name>"
19682 \end_layout
19683
19684 \end_inset
19685
19686  or
19687 \begin_inset Newline newline
19688 \end_inset
19689
19690
19691 \begin_inset Flex Code
19692 status collapsed
19693
19694 \begin_layout Plain Layout
19695 cvs -q unedit 
19696 \family typewriter
19697 "<file-name>"
19698 \end_layout
19699
19700 \end_inset
19701
19702
19703 \end_layout
19704
19705 \begin_layout Subsubsection
19706
19707 \family sans
19708 Check Out Changes
19709 \end_layout
19710
19711 \begin_layout Standard
19712 When you are sharing a repository with others, you may have to incorporate
19713  their changes into your working copy.
19714 \end_layout
19715
19716 \begin_layout Standard
19717 CVS command: 
19718 \family typewriter
19719 cvs -q update "<file-name>"
19720 \end_layout
19721
19722 \begin_layout Standard
19723 If a readonly checkout is detected the working copy is made writable and
19724  reserved.
19725 \end_layout
19726
19727 \begin_layout Standard
19728 CVS command: 
19729 \family typewriter
19730 cvs -q edit "<file-name>"
19731 \end_layout
19732
19733 \begin_layout Subsubsection
19734
19735 \family sans
19736 Revert To Repository Version
19737 \end_layout
19738
19739 \begin_layout Standard
19740 This will discard all changes made to the document since the last check
19741  in.
19742  You get a warning before changes are discarded.
19743  Firstly the file is deleted, secondly CVS update command is run.
19744 \end_layout
19745
19746 \begin_layout Standard
19747 CVS command: 
19748 \family typewriter
19749 cvs -q update "<file-name>"
19750 \end_layout
19751
19752 \begin_layout Standard
19753 If a reserved checkout is detected and the working copy has no changes only
19754  the reservation is undone.
19755 \end_layout
19756
19757 \begin_layout Standard
19758 CVS command: 
19759 \family typewriter
19760 cvs -q unedit "<file-name>"
19761 \end_layout
19762
19763 \begin_layout Subsubsection
19764 Update of the local directory checkout from repository
19765 \end_layout
19766
19767 \begin_layout Standard
19768 Once your documents gets more complex, containing sub-documents and pictures,
19769  including external 
19770 \begin_inset Flex Code
19771 status collapsed
19772
19773 \begin_layout Plain Layout
19774 .tex
19775 \end_layout
19776
19777 \end_inset
19778
19779  files and so on using version control becomes more complicated.
19780  LyX supports updating the whole tree in which resides the document.
19781  This become especially useful once you cooperate with people which neither
19782  have detailed knowledge about CVS usage nor they have ambition to commit
19783  additional material to the repository.
19784  You have to organize the files structure so that all external files are
19785  in the same directory or subdirectories of the document.
19786  It's good practice anyway to store multipart documents in an extra directory.
19787 \end_layout
19788
19789 \begin_layout Standard
19790 The 
19791 \begin_inset Flex Code
19792 status collapsed
19793
19794 \begin_layout Plain Layout
19795 Update local directory from repository
19796 \end_layout
19797
19798 \end_inset
19799
19800  command updates the whole directory.
19801  If local changes are detected user is warned before update starts.
19802  In case of merge conflicts both versions of the conflicting document parts
19803  are placed in the final document.
19804  You have to review and correct the result of the merge.
19805  You'll find the conflicts enclosed in pairs of 
19806 \begin_inset Flex Code
19807 status collapsed
19808
19809 \begin_layout Plain Layout
19810 <<<<<<<
19811 \end_layout
19812
19813 \end_inset
19814
19815  and 
19816 \begin_inset Flex Code
19817 status collapsed
19818
19819 \begin_layout Plain Layout
19820 >>>>>>>
19821 \end_layout
19822
19823 \end_inset
19824
19825  separated by 
19826 \begin_inset Flex Code
19827 status collapsed
19828
19829 \begin_layout Plain Layout
19830 =======
19831 \end_layout
19832
19833 \end_inset
19834
19835 .
19836  The first part is your version as before the update operation with the
19837  document name prepended.
19838  The second one is the repository version with the version number after
19839  the sequence of 
19840 \begin_inset Flex Code
19841 status collapsed
19842
19843 \begin_layout Plain Layout
19844 >
19845 \end_layout
19846
19847 \end_inset
19848
19849  signs.
19850 \end_layout
19851
19852 \begin_layout Labeling
19853 \labelwidthstring 00.00.0000
19854 CVS
19855 \begin_inset space ~
19856 \end_inset
19857
19858 commands: 
19859 \begin_inset space ~
19860 \end_inset
19861
19862
19863 \begin_inset Newline newline
19864 \end_inset
19865
19866
19867 \begin_inset Flex Code
19868 status collapsed
19869
19870 \begin_layout Plain Layout
19871 cd $path; cvs diff 
19872 \family typewriter
19873 "."
19874 \end_layout
19875
19876 \end_inset
19877
19878  (Ask if changes are detected.)
19879 \begin_inset Newline newline
19880 \end_inset
19881
19882
19883 \begin_inset Flex Code
19884 status collapsed
19885
19886 \begin_layout Plain Layout
19887 cd $path; cvs -q update 
19888 \family typewriter
19889 "."
19890 \end_layout
19891
19892 \end_inset
19893
19894
19895 \end_layout
19896
19897 \begin_layout Standard
19898 where 
19899 \begin_inset Flex Code
19900 status collapsed
19901
19902 \begin_layout Plain Layout
19903 $path
19904 \end_layout
19905
19906 \end_inset
19907
19908  stands for the path to the document.
19909 \end_layout
19910
19911 \begin_layout Subsubsection
19912
19913 \family sans
19914 Show History
19915 \end_layout
19916
19917 \begin_layout Standard
19918 This shows the complete history of the CVS document.
19919  The output of 
19920 \family typewriter
19921 cvs log "<file-name>"
19922 \family default
19923  is shown in a browser.
19924 \end_layout
19925
19926 \begin_layout Subsection
19927 SVN commands in LyX
19928 \end_layout
19929
19930 \begin_layout Standard
19931 SVN is now partially supported by LyX.
19932  You can find the commands in the 
19933 \family sans
19934 File\SpecialChar \menuseparator
19935 Version
19936 \begin_inset space ~
19937 \end_inset
19938
19939 Control
19940 \family default
19941  submenu.
19942  Please note that if you use password protected access to repository via
19943  ssh, you will be asked in terminal window.
19944  LyX was tested against SVN 1.5 and 1.6
19945 \begin_inset Foot
19946 status open
19947
19948 \begin_layout Plain Layout
19949 Most of the commands will work with 1.4 too, see 
19950 \begin_inset CommandInset ref
19951 LatexCommand ref
19952 reference "sub:SVN-Repo-Update"
19953
19954 \end_inset
19955
19956 .
19957 \end_layout
19958
19959 \end_inset
19960
19961
19962 \end_layout
19963
19964 \begin_layout Subsubsection
19965
19966 \family sans
19967 Register
19968 \end_layout
19969
19970 \begin_layout Standard
19971 If your document is not under revision control, this is the only item shown
19972  in the menu.
19973  And if it is under revision control, the 
19974 \family sans
19975 \bar under
19976 R
19977 \bar default
19978 egister
19979 \family default
19980  item is not visible.
19981  
19982 \end_layout
19983
19984 \begin_layout Standard
19985 This command registers in SVN your document ONLY in case you have already
19986  the documents directory under SVN control (in particular 
19987 \family typewriter
19988 .svn/entries
19989 \family default
19990  file exists).
19991  This means you have to checkout the archive by yourself.
19992  
19993 \end_layout
19994
19995 \begin_layout Standard
19996 Then you are asked interactively to supply an initial description of the
19997  document.
19998  Don't forget that registered file is not yet commited.
19999 \end_layout
20000
20001 \begin_layout Standard
20002 SVN command that is run: 
20003 \family typewriter
20004 svn add -q 
20005 \begin_inset Quotes eld
20006 \end_inset
20007
20008 <file-name>
20009 \begin_inset Quotes erd
20010 \end_inset
20011
20012
20013 \end_layout
20014
20015 \begin_layout Standard
20016 Read 
20017 \family typewriter
20018 man svn
20019 \family default
20020  to understand the switches.
20021  
20022 \end_layout
20023
20024 \begin_layout Subsubsection
20025
20026 \family sans
20027 Check In Changes
20028 \end_layout
20029
20030 \begin_layout Standard
20031 When you are finished editing a file, you commit your changes.
20032  When you do this, you are asked for a description of the changes.
20033  After that changes are commited.
20034 \end_layout
20035
20036 \begin_layout Standard
20037 SVN command:
20038 \begin_inset Foot
20039 status collapsed
20040
20041 \begin_layout Plain Layout
20042 In case locking is not enabled.
20043  See Section 
20044 \begin_inset CommandInset ref
20045 LatexCommand ref
20046 reference "subsec:SVN-File-Locking"
20047
20048 \end_inset
20049
20050 .
20051 \end_layout
20052
20053 \end_inset
20054
20055  
20056 \family typewriter
20057 svn commit -q -m"<description>" <file-name>
20058 \end_layout
20059
20060 \begin_layout Subsubsection
20061
20062 \family sans
20063 Check Out For Edit
20064 \end_layout
20065
20066 \begin_layout Standard
20067 Updates the changes of this file from the repository.
20068  Be sure you understand SVN merging and conflicts resolving before using
20069  this function, because all conflicts has to be resolved manually by you!
20070 \end_layout
20071
20072 \begin_layout Standard
20073 SVN command:
20074 \begin_inset Foot
20075 status collapsed
20076
20077 \begin_layout Plain Layout
20078 Ditto.
20079 \end_layout
20080
20081 \end_inset
20082
20083  
20084 \family typewriter
20085 svn update --non-interactive 
20086 \begin_inset Quotes eld
20087 \end_inset
20088
20089 <file-name>
20090 \begin_inset Quotes erd
20091 \end_inset
20092
20093
20094 \end_layout
20095
20096 \begin_layout Subsubsection
20097
20098 \family sans
20099 Revert To Repository Version
20100 \end_layout
20101
20102 \begin_layout Standard
20103 This will discard all changes made to the document since the last check
20104  in.
20105  You get a warning before changes are discarded.
20106  
20107 \end_layout
20108
20109 \begin_layout Standard
20110 SVN command: 
20111 \family typewriter
20112 svn revert -q 
20113 \begin_inset Quotes eld
20114 \end_inset
20115
20116 <file-name>
20117 \begin_inset Quotes erd
20118 \end_inset
20119
20120
20121 \end_layout
20122
20123 \begin_layout Subsubsection
20124 \begin_inset CommandInset label
20125 LatexCommand label
20126 name "sub:SVN-Repo-Update"
20127
20128 \end_inset
20129
20130 Update of the local directory checkout from repository
20131 \begin_inset Foot
20132 status collapsed
20133
20134 \begin_layout Plain Layout
20135 Note that this command will work only with subversion 
20136 \begin_inset Formula $\geqq1.5$
20137 \end_inset
20138
20139
20140 \end_layout
20141
20142 \end_inset
20143
20144
20145 \end_layout
20146
20147 \begin_layout Standard
20148 All the commands above have one shortcomming - they deal with the current
20149  document only.
20150  Once your document contains pictures, includes external 
20151 \begin_inset Flex Code
20152 status collapsed
20153
20154 \begin_layout Plain Layout
20155 .tex
20156 \end_layout
20157
20158 \end_inset
20159
20160  files and so on administration becomes more complicated.
20161  LyX now supports updating the whole tree in which resides the document
20162 \begin_inset Foot
20163 status collapsed
20164
20165 \begin_layout Plain Layout
20166 One need to organize the files structure so that all external files are
20167  in the same directory or subdirectories of the document.
20168  
20169 \end_layout
20170
20171 \end_inset
20172
20173 .
20174  This become especially useful once you cooperate with people which neither
20175  know about subversion management nor they have ambition to commit additional
20176  material to the repository.
20177  
20178 \end_layout
20179
20180 \begin_layout Standard
20181 \begin_inset Flex Code
20182 status collapsed
20183
20184 \begin_layout Plain Layout
20185 Update local directory from repository
20186 \end_layout
20187
20188 \end_inset
20189
20190  command updates the whole directory and in case of merge conflicts local
20191  version of the files are left, so no unintended data loss occurs.
20192  If local changes are detected user is warned before update starts.
20193 \end_layout
20194
20195 \begin_layout Labeling
20196 \labelwidthstring 00.00.0000
20197 SVN
20198 \begin_inset space ~
20199 \end_inset
20200
20201 commands: 
20202 \begin_inset space ~
20203 \end_inset
20204
20205
20206 \begin_inset Newline newline
20207 \end_inset
20208
20209
20210 \begin_inset Flex Code
20211 status collapsed
20212
20213 \begin_layout Plain Layout
20214 svn diff $path
20215 \end_layout
20216
20217 \end_inset
20218
20219  (Ask if changes are detected.)
20220 \begin_inset Newline newline
20221 \end_inset
20222
20223
20224 \begin_inset Flex Code
20225 status collapsed
20226
20227 \begin_layout Plain Layout
20228 svn update --accept mine-full $path
20229 \end_layout
20230
20231 \end_inset
20232
20233
20234 \end_layout
20235
20236 \begin_layout Standard
20237 where 
20238 \begin_inset Flex Code
20239 status collapsed
20240
20241 \begin_layout Plain Layout
20242 $path
20243 \end_layout
20244
20245 \end_inset
20246
20247  stands for the path to the document.
20248 \end_layout
20249
20250 \begin_layout Subsubsection
20251
20252 \family sans
20253 Show History
20254 \end_layout
20255
20256 \begin_layout Standard
20257 This shows the complete history of the SVN document.
20258  The output of 
20259 \family typewriter
20260 svn log 
20261 \begin_inset Quotes eld
20262 \end_inset
20263
20264 <file-name>
20265 \begin_inset Quotes erd
20266 \end_inset
20267
20268
20269 \family default
20270  is shown in a browser.
20271 \end_layout
20272
20273 \begin_layout Subsubsection
20274 File Locking
20275 \begin_inset CommandInset label
20276 LatexCommand label
20277 name "subsec:SVN-File-Locking"
20278
20279 \end_inset
20280
20281
20282 \end_layout
20283
20284 \begin_layout Standard
20285 The file exchange through various revision control systems brings the problem
20286  of merge conflicts in case two different users try to edit the same (parts
20287  of) document.
20288  When such a conflict happens it needs manual resolving and one reasonable
20289  alternative is to provide some kind of locking mechanism, which guarantees
20290  that only one user is allowed to edit file at the given time.
20291 \end_layout
20292
20293 \begin_layout Standard
20294 SVN has two such mechanisms to provide mutual exclusivity for file access
20295  - locks and automatic setting of write permissions (see sec.
20296  
20297 \begin_inset CommandInset ref
20298 LatexCommand ref
20299 reference "subsec:Automatical-Locking-Property"
20300
20301 \end_inset
20302
20303 ) based on 
20304 \begin_inset Flex Code
20305 status collapsed
20306
20307 \begin_layout Plain Layout
20308 svn:needs-lock
20309 \end_layout
20310
20311 \end_inset
20312
20313  file svn property
20314 \begin_inset Foot
20315 status open
20316
20317 \begin_layout Plain Layout
20318 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
20319 \end_layout
20320
20321 \end_inset
20322
20323 .
20324  If this property is detected for a given document LyX starts to use SVN
20325  locks for document editing automatically and the whole check-in/out mechanism
20326  switches to the same regimen as for RCS.
20327  This in particular means there are two different modes of file use in LyX:
20328 \end_layout
20329
20330 \begin_layout Itemize
20331 Unlocked state.
20332  The loaded file is in the read-only mode.
20333  For editing on needs to check-out.
20334  
20335 \emph on
20336 Check-out
20337 \emph default
20338  consists of updating from the repository and gaining write lock.
20339  If the lock is not possible to obtain, we remain in unlocked state.
20340 \end_layout
20341
20342 \begin_layout Itemize
20343 Locked state.
20344  The loaded file is in the 'normal' edit mode.
20345  No other user is allowed to edit the file.
20346  
20347 \emph on
20348 Check-in
20349 \emph default
20350  consists of commiting changes and releasing write-lock.
20351  If no changes have been made to the document, no commit will be produced
20352 \begin_inset Foot
20353 status collapsed
20354
20355 \begin_layout Plain Layout
20356 Don't be puzzled by the fact that you will be asked for commit message anyway.
20357 \end_layout
20358
20359 \end_inset
20360
20361  and only the write-lock will be released.
20362 \end_layout
20363
20364 \begin_layout Standard
20365 SVN commands:
20366 \end_layout
20367
20368 \begin_layout Labeling
20369 \labelwidthstring 00.00.0000
20370 Check-in:
20371 \family typewriter
20372  svn commit -q -m"<description>" "<file-name>"
20373 \begin_inset Newline newline
20374 \end_inset
20375
20376 svn unlock "<file-name>"
20377 \end_layout
20378
20379 \begin_layout Labeling
20380 \labelwidthstring 00.00.0000
20381 Check-out: 
20382 \family typewriter
20383 svn update "<file-name>"
20384 \begin_inset Newline newline
20385 \end_inset
20386
20387 svn lock "<file-name>"
20388 \end_layout
20389
20390 \begin_layout Subsubsection
20391
20392 \family typewriter
20393 \begin_inset CommandInset label
20394 LatexCommand label
20395 name "subsec:Automatical-Locking-Property"
20396
20397 \end_inset
20398
20399
20400 \family default
20401 Automatic Locking Property
20402 \end_layout
20403
20404 \begin_layout Standard
20405 The above mentioned automatic setting of write permissions of the .lyx file
20406  can be set through
20407 \family sans
20408 \bar under
20409  F
20410 \bar default
20411 ile\SpecialChar \menuseparator
20412
20413 \bar under
20414 V
20415 \bar default
20416 ersion
20417 \begin_inset space ~
20418 \end_inset
20419
20420 Control\SpecialChar \menuseparator
20421
20422 \bar under
20423 T
20424 \bar default
20425 oggle locking property
20426 \family default
20427 .
20428  This command is active only when the file is not locked on the svn server
20429  (i.e.
20430  you need to check-out before proceeding).
20431 \end_layout
20432
20433 \begin_layout Labeling
20434 \labelwidthstring 00.00.0000
20435 SVN
20436 \begin_inset space ~
20437 \end_inset
20438
20439 commands:
20440 \end_layout
20441
20442 \begin_layout Labeling
20443 \labelwidthstring 00.00.0000
20444 Set:
20445 \family typewriter
20446  svn propset svn:needs-lock ON "<file-name>"
20447 \end_layout
20448
20449 \begin_layout Labeling
20450 \labelwidthstring 00.00.0000
20451 Unset: 
20452 \family typewriter
20453 svn propdel svn:needs-lock "<file-name>"
20454 \end_layout
20455
20456 \begin_layout Subsubsection
20457 \begin_inset CommandInset label
20458 LatexCommand label
20459 name "sub:VCS-Revision-Information"
20460
20461 \end_inset
20462
20463 Revision Information in Documents
20464 \end_layout
20465
20466 \begin_layout Standard
20467 There are more possibilities how to activate revision information in our
20468  document.
20469 \end_layout
20470
20471 \begin_layout Itemize
20472 LyX supports directly:
20473 \end_layout
20474
20475 \begin_deeper
20476 \begin_layout Itemize
20477 tree revision information (
20478 \begin_inset Flex Code
20479 status collapsed
20480
20481 \begin_layout Plain Layout
20482 vcs-tree-revision
20483 \end_layout
20484
20485 \end_inset
20486
20487 ).
20488  The result is the output of the 
20489 \begin_inset Flex Code
20490 status collapsed
20491
20492 \begin_layout Plain Layout
20493 svnversion
20494 \end_layout
20495
20496 \end_inset
20497
20498  command, the following table gives you an idea, how to read the results.
20499 \end_layout
20500
20501 \begin_layout Standard
20502 \align center
20503 \begin_inset Tabular
20504 <lyxtabular version="3" rows="6" columns="2">
20505 <features tabularvalignment="middle">
20506 <column alignment="center" valignment="top" width="0">
20507 <column alignment="center" valignment="top" width="0">
20508 <row>
20509 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20510 \begin_inset Text
20511
20512 \begin_layout Plain Layout
20513 Output
20514 \end_layout
20515
20516 \end_inset
20517 </cell>
20518 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20519 \begin_inset Text
20520
20521 \begin_layout Plain Layout
20522 Meaning
20523 \end_layout
20524
20525 \end_inset
20526 </cell>
20527 </row>
20528 <row>
20529 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20530 \begin_inset Text
20531
20532 \begin_layout Plain Layout
20533 4123:4168
20534 \end_layout
20535
20536 \end_inset
20537 </cell>
20538 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20539 \begin_inset Text
20540
20541 \begin_layout Plain Layout
20542 mixed revision working copy
20543 \end_layout
20544
20545 \end_inset
20546 </cell>
20547 </row>
20548 <row>
20549 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20550 \begin_inset Text
20551
20552 \begin_layout Plain Layout
20553 4168M
20554 \end_layout
20555
20556 \end_inset
20557 </cell>
20558 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20559 \begin_inset Text
20560
20561 \begin_layout Plain Layout
20562 modified working copy
20563 \end_layout
20564
20565 \end_inset
20566 </cell>
20567 </row>
20568 <row>
20569 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20570 \begin_inset Text
20571
20572 \begin_layout Plain Layout
20573 4123S
20574 \end_layout
20575
20576 \end_inset
20577 </cell>
20578 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20579 \begin_inset Text
20580
20581 \begin_layout Plain Layout
20582 switched working copy
20583 \end_layout
20584
20585 \end_inset
20586 </cell>
20587 </row>
20588 <row>
20589 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
20590 \begin_inset Text
20591
20592 \begin_layout Plain Layout
20593 4123P
20594 \end_layout
20595
20596 \end_inset
20597 </cell>
20598 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
20599 \begin_inset Text
20600
20601 \begin_layout Plain Layout
20602 partial working copy, from a sparse checkout
20603 \end_layout
20604
20605 \end_inset
20606 </cell>
20607 </row>
20608 <row>
20609 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
20610 \begin_inset Text
20611
20612 \begin_layout Plain Layout
20613 4123:4168MS
20614 \end_layout
20615
20616 \end_inset
20617 </cell>
20618 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
20619 \begin_inset Text
20620
20621 \begin_layout Plain Layout
20622 mixed revision, modified, switched working copy
20623 \end_layout
20624
20625 \end_inset
20626 </cell>
20627 </row>
20628 </lyxtabular>
20629
20630 \end_inset
20631
20632
20633 \end_layout
20634
20635 \begin_layout Itemize
20636 file revision information.
20637  The result comes from parsing the output of 
20638 \begin_inset Flex Code
20639 status collapsed
20640
20641 \begin_layout Plain Layout
20642 svn
20643 \begin_inset space ~
20644 \end_inset
20645
20646 info
20647 \begin_inset space ~
20648 \end_inset
20649
20650 --xml
20651 \begin_inset space ~
20652 \end_inset
20653
20654 file.lyx
20655 \end_layout
20656
20657 \end_inset
20658
20659 .
20660  Supported flags are:
20661 \end_layout
20662
20663 \begin_deeper
20664 \begin_layout Itemize
20665 version number of the last commit (
20666 \begin_inset Flex Code
20667 status collapsed
20668
20669 \begin_layout Plain Layout
20670 vcs-revision
20671 \end_layout
20672
20673 \end_inset
20674
20675 )
20676 \end_layout
20677
20678 \begin_layout Itemize
20679 author of the last commit (
20680 \begin_inset Flex Code
20681 status collapsed
20682
20683 \begin_layout Plain Layout
20684 vcs-author
20685 \end_layout
20686
20687 \end_inset
20688
20689 )
20690 \end_layout
20691
20692 \begin_layout Itemize
20693 date of the last commit (
20694 \begin_inset Flex Code
20695 status collapsed
20696
20697 \begin_layout Plain Layout
20698 vcs-date
20699 \end_layout
20700
20701 \end_inset
20702
20703 )
20704 \end_layout
20705
20706 \begin_layout Itemize
20707 time of the last commit (
20708 \begin_inset Flex Code
20709 status collapsed
20710
20711 \begin_layout Plain Layout
20712 vcs-time
20713 \end_layout
20714
20715 \end_inset
20716
20717 )
20718 \end_layout
20719
20720 \end_deeper
20721 \begin_layout Standard
20722 You can obtain this info via InsetInfo (e.g.
20723  
20724 \begin_inset Flex Code
20725 status collapsed
20726
20727 \begin_layout Plain Layout
20728 info-insert buffer vcs-date
20729 \end_layout
20730
20731 \end_inset
20732
20733 ).
20734  The information will be available only when you have the file stored under
20735  svn managment (i.e.
20736  the 
20737 \begin_inset Flex Code
20738 status collapsed
20739
20740 \begin_layout Plain Layout
20741 .svn
20742 \end_layout
20743
20744 \end_inset
20745
20746  directory is available with your document).
20747 \end_layout
20748
20749 \end_deeper
20750 \begin_layout Itemize
20751 Another---a hacking one---possibility is to use svn keywords
20752 \begin_inset Foot
20753 status collapsed
20754
20755 \begin_layout Plain Layout
20756 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
20757 \end_layout
20758
20759 \end_inset
20760
20761 .
20762  In short -- you set file keywords property (e.g.
20763  
20764 \family sans
20765 svn propset svn:keywords 'Rev' file.lyx
20766 \family default
20767 ) and then paste keyword TeX code
20768 \begin_inset Foot
20769 status collapsed
20770
20771 \begin_layout Plain Layout
20772 This is an easy way how to ensure that LyX won't break the line in the middle
20773  of keyword tag.
20774 \end_layout
20775
20776 \end_inset
20777
20778  tag in your document (e.g.
20779  
20780 \begin_inset ERT
20781 status open
20782
20783 \begin_layout Plain Layout
20784
20785 $Rev$
20786 \end_layout
20787
20788 \end_inset
20789
20790 ).
20791  This way svn client will automatically substitute revision number (e.g.
20792  
20793 \begin_inset ERT
20794 status open
20795
20796 \begin_layout Plain Layout
20797
20798 $Rev: 59 $
20799 \end_layout
20800
20801 \end_inset
20802
20803 ) after each update and commit.
20804  There are more problems with this approach.
20805  Firstly, the '$' character is used in TeX world for math equations, so
20806  any occurence of math formula 
20807 \begin_inset Formula $Rev$
20808 \end_inset
20809
20810  become 
20811 \begin_inset Formula $Rev:59$
20812 \end_inset
20813
20814  in your LyX document.
20815  Similarly for other keywords like Id, Date, Author, etc.
20816  Secondly svn output is dependent on your locales, so its very easy that
20817  svn would produce some problematic strings once Date is used.
20818  Thirdly you get the whole 'Rev: 59' string in your document instead of
20819  the plain number.
20820  Until subversion implements user's custom keywords it will be hard to use
20821  this approach reliably or let LyX to support it directly.
20822 \end_layout
20823
20824 \begin_layout Subsection
20825 SVN and Windows Environment
20826 \end_layout
20827
20828 \begin_layout Quote
20829 My inclination is to say that if the user cannot figure out the command
20830  line operations on their own fairly quickly, they would be well advised
20831  to use TortoiseSVN.
20832  ---P.
20833  A.
20834  Rubin
20835 \end_layout
20836
20837 \begin_layout Subsubsection
20838 Preparation
20839 \end_layout
20840
20841 \begin_layout Standard
20842 In addition to installing LyX, and having access to a Subversion repository,
20843  the user will need to install the Subversion client program.
20844  A Windows installer for the client program is available from 
20845 \begin_inset CommandInset href
20846 LatexCommand href
20847 name "CollabNet"
20848 target "http://www.collab.net/nonav/downloads/subversion/"
20849
20850 \end_inset
20851
20852 .
20853  The user may also want to install 
20854 \begin_inset CommandInset href
20855 LatexCommand href
20856 name "TortoiseSVN"
20857 target "http://tortoisesvn.tigris.org/"
20858
20859 \end_inset
20860
20861 , which integrates Subversion operations into the context (rightclick) menu
20862  of Windows Explorer.
20863  Operations done outside LyX will typically be more convenient using the
20864  Explorer context menu.
20865  Note that TortoiseSVN is not a replacement for the client program, which
20866  is what LyX itself will use.
20867 \end_layout
20868
20869 \begin_layout Subsubsection
20870 Bringing a document under Subversion control
20871 \end_layout
20872
20873 \begin_layout Standard
20874 Before a LyX document can be brought under version control in Subversion,
20875  its parent directory needs to be under version control.
20876  If the document is being added to a project already in the repository,
20877  this is accomplished by checking the project out to the directory where
20878  the new document will be placed.
20879  If the project itself is not yet under version control (for instance, if
20880  this document starts a new project), the directory must be imported into
20881  the repository.
20882  This is done outside LyX.
20883  Both import and checkout are easily accomplished from the Explorer context
20884  menu using TortoiseSVN, or alternatively can be done using the command
20885  line client at a DOS prompt.
20886  The procedure for importing the project using TortoiseSVN is described
20887  below, assuming an existing repository and a new project being started
20888  in 
20889 \family typewriter
20890 C:
20891 \backslash
20892 new project
20893 \family default
20894 .
20895  For information on using the Subversion client program, run 
20896 \family typewriter
20897 svn --help 
20898 \family default
20899 in a DOS shell.
20900 \end_layout
20901
20902 \begin_layout Enumerate
20903 Locate 
20904 \family typewriter
20905 C:
20906 \backslash
20907 new project 
20908 \family default
20909 in Windows Explorer, right click it, and select 
20910 \family typewriter
20911 TortoiseSVN > Repo-browser
20912 \family default
20913 .
20914  If necessary, adjust the URL for the repository, then click OK.
20915 \end_layout
20916
20917 \begin_layout Enumerate
20918 Right click the level of the repository under which you want to place the
20919  new project folder (typically the top level) and click 
20920 \family typewriter
20921 Create folder\SpecialChar \ldots{}
20922
20923 \family default
20924  Supply a name for the project folder and click OK.
20925  Add a message for the log file if desired, then click OK again.
20926  The new project folder should appear in the repository.
20927  Finally, click OK again to exit the repository browser.
20928 \end_layout
20929
20930 \begin_layout Enumerate
20931 Once again right click 
20932 \family typewriter
20933 C:
20934 \backslash
20935 new project
20936 \family default
20937 , this time selecting SVN Checkout\SpecialChar \ldots{}
20938  Select the URL of the project folder
20939  you just created in the repository, and set the checkout directory to 
20940 \family typewriter
20941 C:
20942 \backslash
20943 new project.
20944
20945 \family default
20946  Click OK.
20947  You will be warned about a non-empty folder; click OK to proceed.
20948  You should now have a 
20949 \family typewriter
20950 .svn
20951 \family default
20952  directory under 
20953 \family typewriter
20954 C:
20955 \backslash
20956 new project.
20957 \end_layout
20958
20959 \begin_layout Enumerate
20960 Create or open your document in LyX and click 
20961 \family sans
20962 \bar under
20963 F
20964 \bar default
20965 ile\SpecialChar \menuseparator
20966
20967 \bar under
20968 V
20969 \bar default
20970 ersion
20971 \begin_inset space ~
20972 \end_inset
20973
20974 Control\SpecialChar \menuseparator
20975
20976 \bar under
20977 R
20978 \bar default
20979 egister.
20980  
20981 \family default
20982 Add a log message and click OK to commit the document to version control.
20983 \end_layout
20984
20985 \begin_layout Standard
20986 From this point onward, you should have full functionality in the 
20987 \family sans
20988 \bar under
20989 F
20990 \bar default
20991 ile\SpecialChar \menuseparator
20992
20993 \bar under
20994 V
20995 \bar default
20996 ersion
20997 \begin_inset space ~
20998 \end_inset
20999
21000 Control
21001 \family default
21002  menu.
21003  You also have the option of checking the document in and out, viewing its
21004  history, etc.
21005  using the TortoiseSVN context menu in Windows Explorer or the Subversion
21006  client program from a command prompt.
21007 \end_layout
21008
21009 \begin_layout Subsubsection
21010 SSH tunnel used with SVN under Windows
21011 \end_layout
21012
21013 \begin_layout Standard
21014 Compared with Linux setting up svn client to communicate over ssh under
21015  Windows is a rather troublesome task.
21016  We will at least offer some hints how to setup the client side but prior
21017  knowledge about ssh and the Windows command line is needed, also be prepared
21018  for a great deal of frustration\SpecialChar \ldots{}
21019
21020 \end_layout
21021
21022 \begin_layout Enumerate
21023 Get a svn client for windows, as described in the previous sections.
21024  When it is a fresh install run some svn command (e.g.
21025  
21026 \begin_inset Flex Code
21027 status collapsed
21028
21029 \begin_layout Plain Layout
21030 svn --version
21031 \end_layout
21032
21033 \end_inset
21034
21035 ) to create config files, which you will need to change later on.
21036 \end_layout
21037
21038 \begin_layout Enumerate
21039 Choose a ssh client for Windows.
21040  There are several possibilities, we will use the one from Putty tools
21041 \begin_inset Foot
21042 status open
21043
21044 \begin_layout Plain Layout
21045 \begin_inset Flex URL
21046 status collapsed
21047
21048 \begin_layout Plain Layout
21049
21050 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
21051 \end_layout
21052
21053 \end_inset
21054
21055
21056 \end_layout
21057
21058 \end_inset
21059
21060 .
21061  You will need to set the connection up so that the client doesn't ask for
21062  any password from you.
21063  To keep things easy we will use only keys without any additional password
21064  protection etc.
21065 \end_layout
21066
21067 \begin_deeper
21068 \begin_layout Enumerate
21069 Generate keys by 
21070 \begin_inset Flex Code
21071 status collapsed
21072
21073 \begin_layout Plain Layout
21074 puttygen
21075 \end_layout
21076
21077 \end_inset
21078
21079 .
21080  Save your private .ppk key file and put the public one on the server side.
21081  If the SVN server runs on Linux, note that the format of the public key
21082  is not compatible with Linux openssh and you will need to direcly copy-paste
21083  the key from the “
21084 \emph on
21085 Public key for pasting into OpenSSH authorized_keys file
21086 \emph default
21087 :” edit field into the server's 
21088 \begin_inset Flex Code
21089 status collapsed
21090
21091 \begin_layout Plain Layout
21092 ~/.ssh/authorized_keys
21093 \end_layout
21094
21095 \end_inset
21096
21097
21098 \begin_inset Flex Code
21099 status collapsed
21100
21101 \begin_layout Plain Layout
21102 authorized_keys2
21103 \end_layout
21104
21105 \end_inset
21106
21107  file.
21108 \end_layout
21109
21110 \begin_layout Enumerate
21111 Get the Putty's 
21112 \begin_inset Flex Code
21113 status collapsed
21114
21115 \begin_layout Plain Layout
21116 plink
21117 \end_layout
21118
21119 \end_inset
21120
21121 .
21122  In the SVN config file
21123 \begin_inset Foot
21124 status collapsed
21125
21126 \begin_layout Plain Layout
21127 Exact path depends on Windows version, usually somewhere around 
21128 \begin_inset Flex Code
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132 c:
21133 \backslash
21134 Documents and Settings
21135 \backslash
21136 user
21137 \backslash
21138 Application Data
21139 \backslash
21140 Subversion
21141 \backslash
21142 config
21143 \end_layout
21144
21145 \end_inset
21146
21147  / 
21148 \begin_inset Flex Code
21149 status collapsed
21150
21151 \begin_layout Plain Layout
21152 AppData
21153 \backslash
21154 Roaming
21155 \backslash
21156 Subversion
21157 \end_layout
21158
21159 \end_inset
21160
21161 .
21162 \end_layout
21163
21164 \end_inset
21165
21166 , section [tunnels], setup ssh command, e.g.
21167  
21168 \begin_inset Flex Code
21169 status collapsed
21170
21171 \begin_layout Plain Layout
21172 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
21173 \end_layout
21174
21175 \end_inset
21176
21177 .
21178 \begin_inset Foot
21179 status collapsed
21180
21181 \begin_layout Plain Layout
21182 It will usually take a lot of time to get exact command right and it depends
21183  on many things.
21184  For example do not have some remote server saved as a default session in
21185  Putty etc.
21186  If things fail, try to connect via plink without SVN first.
21187 \end_layout
21188
21189 \end_inset
21190
21191
21192 \end_layout
21193
21194 \end_deeper
21195 \begin_layout Enumerate
21196 Checkout the SVN archive, e.g.
21197  
21198 \begin_inset Flex Code
21199 status collapsed
21200
21201 \begin_layout Plain Layout
21202 svn co svn+ssh://user@server/repository_path
21203 \end_layout
21204
21205 \end_inset
21206
21207 .
21208 \end_layout
21209
21210 \begin_layout Subsubsection
21211 End-of-Line Conversions
21212 \end_layout
21213
21214 \begin_layout Standard
21215 When the collsraborators are mixing Linux and Windows environments, LyX
21216  will use different line endings inside the .lyx files.
21217  This is not a problem as far as LyX functionality is concerned, but the
21218  commit diffs will be huge and merge-conflicts prone.
21219  Fortunately SVN itself knows
21220 \begin_inset Foot
21221 status collapsed
21222
21223 \begin_layout Plain Layout
21224 \begin_inset Flex URL
21225 status collapsed
21226
21227 \begin_layout Plain Layout
21228
21229 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
21230 \end_layout
21231
21232 \end_inset
21233
21234
21235 \end_layout
21236
21237 \end_inset
21238
21239  how to deal with CR/LF problems when switching .lyx files to the 
21240 \begin_inset Flex Code
21241 status collapsed
21242
21243 \begin_layout Plain Layout
21244 native
21245 \end_layout
21246
21247 \end_inset
21248
21249  mode.
21250 \begin_inset Foot
21251 status collapsed
21252
21253 \begin_layout Plain Layout
21254 For the lazy guys: 
21255 \begin_inset Flex Code
21256 status collapsed
21257
21258 \begin_layout Plain Layout
21259 svn propset svn:eol-style native FILE_NAME
21260 \end_layout
21261
21262 \end_inset
21263
21264
21265 \end_layout
21266
21267 \end_inset
21268
21269
21270 \end_layout
21271
21272 \begin_layout Subsection
21273 Further tuning
21274 \end_layout
21275
21276 \begin_layout Standard
21277 With the recent addition of the vc-command function LyX power users are
21278  allowed to create their own commands for revision control.
21279 \end_layout
21280
21281 \begin_layout Standard
21282 As an example you can see how two TortoiseSVN commands could be integrated
21283  directly:
21284 \end_layout
21285
21286 \begin_layout Description
21287 Commit: 
21288 \begin_inset Flex Code
21289 status collapsed
21290
21291 \begin_layout Plain Layout
21292 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
21293 \end_layout
21294
21295 \end_inset
21296
21297
21298 \end_layout
21299
21300 \begin_layout Description
21301 Revert: 
21302 \begin_inset Flex Code
21303 status collapsed
21304
21305 \begin_layout Plain Layout
21306 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
21307 \end_layout
21308
21309 \end_inset
21310
21311
21312 \end_layout
21313
21314 \begin_layout Subsection
21315 Version control and Document comparison
21316 \end_layout
21317
21318 \begin_layout Standard
21319 One of the typical uses of version control is to inspect the changes between
21320  revisions, usually by creating 
21321 \begin_inset Flex Code
21322 status collapsed
21323
21324 \begin_layout Plain Layout
21325 diff
21326 \end_layout
21327
21328 \end_inset
21329
21330  dumps.
21331  While this is useful for plain text files, it is much less useful in the
21332  case of LyX files, which have more complicated structure.
21333  Hence we provide binding to the Document comparison feature.
21334  They are two ways of calling this feature - either by direct call of 
21335 \begin_inset Flex Code
21336 status collapsed
21337
21338 \begin_layout Plain Layout
21339 VC_COMPARE
21340 \end_layout
21341
21342 \end_inset
21343
21344  LyX function (for details see LyX functions manual) or by icon/menu item
21345  
21346 \begin_inset Flex MenuItem
21347 status collapsed
21348
21349 \begin_layout Plain Layout
21350 Compare with older revision...
21351 \end_layout
21352
21353 \end_inset
21354
21355 .
21356  One can either compare two chosen revisions of the document or he can simply
21357  compare the current version of edited text with older revisions (where
21358  '
21359 \begin_inset Flex MenuItem
21360 status collapsed
21361
21362 \begin_layout Plain Layout
21363 0
21364 \end_layout
21365
21366 \end_inset
21367
21368 ' revisions back means comparison of the edited file with last commited
21369  revision).
21370  
21371 \end_layout
21372
21373 \begin_layout Standard
21374 This feature is supported for SVN and RCS though due to the more complicated
21375  versioning scheme of RCS there is a constraint -- when addressing the revisions
21376  in dialog, numbers always point to the last number in RCS revision number,
21377  i.e.
21378  '35' in '1.2.35'.
21379 \end_layout
21380
21381 \begin_layout Section
21382 Literate Programming
21383 \end_layout
21384
21385 \begin_layout Standard
21386 Updated by 
21387 \noun on
21388 Kayvan Sylvan 
21389 \noun default
21390 (kayvan@sylvan.com)
21391 \noun on
21392
21393 \noun default
21394 original documentation written by 
21395 \noun on
21396 Edmar Wienskoski Jr.
21397
21398 \noun default
21399  (edmar-w-jr@technologist.com)
21400 \end_layout
21401
21402 \begin_layout Subsection
21403 Introduction
21404 \end_layout
21405
21406 \begin_layout Standard
21407 The main purpose of this documentation is to show you how to use LyX for
21408  literate programming, where it is assumed that you are familiar with this
21409  programming technique, and know what 
21410 \begin_inset Quotes eld
21411 \end_inset
21412
21413 tangling
21414 \begin_inset Quotes erd
21415 \end_inset
21416
21417  and 
21418 \begin_inset Quotes eld
21419 \end_inset
21420
21421 weaving
21422 \begin_inset Quotes erd
21423 \end_inset
21424
21425  means.
21426  If that is not the case, please follow the web links provided in the following
21427  sections.
21428  There is a lot of good documentation out there covering old development
21429  history to the latest tools tips.
21430 \end_layout
21431
21432 \begin_layout Standard
21433 It is also assumed that you are familiar with LyX itself to a point that
21434  you are comfortable changing your LyX preferences, and X resources file.
21435  If that is not the case please refer to other LyX documentation to cover
21436  your specific needs.
21437 \end_layout
21438
21439 \begin_layout Subsection
21440 Literate Programming
21441 \end_layout
21442
21443 \begin_layout Standard
21444 From the Literate Programming FAQ: 
21445 \end_layout
21446
21447 \begin_layout Quotation
21448 Literate programming is the combination of documentation and source together
21449  in a fashion suited for reading by human beings.
21450  In fact, literate programs should be enjoyable reading, even inviting!
21451  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
21452  and documentation in a single file.
21453  Literate programming tools then parse the file to produce either readable
21454  documentation or compilable source.
21455  The WEB style of literate programming was created by D.
21456 \begin_inset space \thinspace{}
21457 \end_inset
21458
21459 E.
21460  Knuth during the development of his TeX typesetting software.
21461  
21462 \end_layout
21463
21464 \begin_layout Standard
21465 Another excerpt says:
21466 \end_layout
21467
21468 \begin_layout Quotation
21469
21470 \emph on
21471 How is literate programming different from verbose commenting?
21472 \end_layout
21473
21474 \begin_layout Quotation
21475 There are three distinguishing characteristics.
21476  In order of importance, they are: 
21477 \end_layout
21478
21479 \begin_deeper
21480 \begin_layout Itemize
21481 flexible order of elaboration 
21482 \end_layout
21483
21484 \begin_layout Itemize
21485 automatic support for browsing 
21486 \end_layout
21487
21488 \begin_layout Itemize
21489 typeset documentation, especially diagrams and mathematics 
21490 \end_layout
21491
21492 \end_deeper
21493 \begin_layout Standard
21494 Now that I sparked your curiosity, take a look in the references.
21495 \end_layout
21496
21497 \begin_layout Subsubsection
21498 References
21499 \end_layout
21500
21501 \begin_layout Standard
21502 The complete Literate Programming FAQ can be found at:
21503 \end_layout
21504
21505 \begin_layout Quote
21506 Literate Programming FAQ 
21507 \begin_inset Flex URL
21508 status collapsed
21509
21510 \begin_layout Plain Layout
21511
21512 http://www.literateprogramming.com/lpfaq.pdf
21513 \end_layout
21514
21515 \end_inset
21516
21517
21518 \end_layout
21519
21520 \begin_layout Standard
21521 The FAQ lists 23 (twenty three!) different literate programming tools.
21522  Where some are specialized or 
21523 \begin_inset Quotes eld
21524 \end_inset
21525
21526 tailored
21527 \begin_inset Quotes erd
21528 \end_inset
21529
21530  for particular programming languages, while other have general scope.
21531  I selected 
21532 \noun on
21533 Noweb
21534 \noun default
21535  for my own use for several reasons:
21536 \end_layout
21537
21538 \begin_layout Itemize
21539 It can generate the documentation either in LaTeX or HTML.
21540 \end_layout
21541
21542 \begin_layout Itemize
21543 It has a open architecture, i.
21544 \begin_inset space \thinspace{}
21545 \end_inset
21546
21547 g.
21548 \begin_inset space \space{}
21549 \end_inset
21550
21551 it is easy to plug in new filters and to perform special processing that
21552  you may need.
21553  
21554 \end_layout
21555
21556 \begin_layout Itemize
21557 There is a good selection of filters available already (the HTML is one
21558  of them).
21559 \end_layout
21560
21561 \begin_layout Itemize
21562 It is free.
21563 \end_layout
21564
21565 \begin_layout Standard
21566 The Noweb web page can be found at: 
21567 \end_layout
21568
21569 \begin_layout Quote
21570 Noweb home page 
21571 \begin_inset Flex URL
21572 status collapsed
21573
21574 \begin_layout Plain Layout
21575
21576 http://www.cs.virginia.edu/~nr/noweb/
21577 \end_layout
21578
21579 \end_inset
21580
21581
21582 \end_layout
21583
21584 \begin_layout Standard
21585 Starting from there you can reach many other interesting links and even
21586  some literate program examples.
21587 \end_layout
21588
21589 \begin_layout Subsection
21590 LyX and Literate Programming
21591 \end_layout
21592
21593 \begin_layout Standard
21594 The LyX support for Literate Programming is provided by using the generic
21595  LyX converters mechanism.
21596  This support is provided in a 
21597 \begin_inset Quotes eld
21598 \end_inset
21599
21600 Noweb independent
21601 \begin_inset Quotes erd
21602 \end_inset
21603
21604  way, i.
21605 \begin_inset space \thinspace{}
21606 \end_inset
21607
21608 g.
21609 \begin_inset space \space{}
21610 \end_inset
21611
21612 you will be able to use this new LyX feature with some other literate programmin
21613 g tool of your choice by just changing your LyX preferences.
21614 \end_layout
21615
21616 \begin_layout Subsubsection
21617 Generating documents and code (weaving and tangling)
21618 \end_layout
21619
21620 \begin_layout Paragraph
21621 Selecting the document class
21622 \end_layout
21623
21624 \begin_layout Standard
21625 If you have installed Noweb and LyX successfully, whenever you open a new
21626  document or try to change the document class of an existing one, you will
21627  find that there are three new document classes available:
21628 \end_layout
21629
21630 \begin_layout Itemize
21631 Article (Noweb)
21632 \end_layout
21633
21634 \begin_layout Itemize
21635 Book (Noweb)
21636 \end_layout
21637
21638 \begin_layout Itemize
21639 Report (Noweb)
21640 \end_layout
21641
21642 \begin_layout Standard
21643 You must select one of them to create your literate documents from.
21644  
21645 \end_layout
21646
21647 \begin_layout Standard
21648 Note that literate documents are not limited to these three classes.
21649  New classes can be generated from other styles like letter or in combination
21650  with other class variations like Article (AMS).
21651  If you have special needs that cannot be covered by one of the existing
21652  classes, let the LyX developers list (lyx-devel@lists.lyx.org) know and we
21653  will arrange to insert a new entry, or teach you how to do it.
21654 \begin_inset Foot
21655 status collapsed
21656
21657 \begin_layout Plain Layout
21658 It is very simple, it involves the creation of a file with four lines, and
21659  re-running of the auto configuration.
21660 \end_layout
21661
21662 \end_inset
21663
21664  Moreover, if you use a literate tool other than Noweb you may need to create
21665  a new set of document classes for it.
21666 \end_layout
21667
21668 \begin_layout Paragraph
21669 Typing code in
21670 \end_layout
21671
21672 \begin_layout Standard
21673 LyX enables you to write code with a layout named 
21674 \noun on
21675 Scrap
21676 \noun default
21677 .
21678 \begin_inset Foot
21679 status collapsed
21680
21681 \begin_layout Plain Layout
21682 The equivalent Noweb term is 
21683 \begin_inset Quotes eld
21684 \end_inset
21685
21686 Chunk
21687 \begin_inset Quotes erd
21688 \end_inset
21689
21690 .
21691  For historical reasons, I got used to the term 
21692 \begin_inset Quotes eld
21693 \end_inset
21694
21695 scrap
21696 \begin_inset Quotes erd
21697 \end_inset
21698
21699  introduced by other literate tool named Nuweb, which I used for many years
21700  before rendering myself to Noweb.
21701 \end_layout
21702
21703 \end_inset
21704
21705  Noweb delimits scraps like this:
21706 \end_layout
21707
21708 \begin_layout LyX-Code
21709 <<My scrap>>=
21710 \end_layout
21711
21712 \begin_layout LyX-Code
21713   code
21714 \end_layout
21715
21716 \begin_layout LyX-Code
21717   more code
21718 \end_layout
21719
21720 \begin_layout LyX-Code
21721   even more code
21722 \end_layout
21723
21724 \begin_layout LyX-Code
21725   @
21726 \end_layout
21727
21728 \begin_layout Standard
21729 The problem is that whatever is written in between the << and the 
21730 \family typewriter
21731 @
21732 \family default
21733  must be taken literally, i.
21734 \begin_inset space \thinspace{}
21735 \end_inset
21736
21737 g.
21738 \begin_inset space \space{}
21739 \end_inset
21740
21741 LyX should be prevented from making any special interpretation of what has
21742  been written.
21743  This is handled by a special layout named Scrap, that works like a normal
21744  paragraph but has a free spacing capability.
21745 \end_layout
21746
21747 \begin_layout Standard
21748 The down side of the Scrap paragraph layout is that consecutive paragraphs
21749  of code will be spaced with one empty line in the source code and also
21750  in the printed documentation.
21751  The work around is to enter each line of code within a single Scrap, with
21752  a newline (ctrl-return).
21753  The example above will look like this:
21754 \begin_inset Foot
21755 status collapsed
21756
21757 \begin_layout Plain Layout
21758 If you have a printed version of this document you will not see any difference
21759  between the previous example and this one.
21760 \end_layout
21761
21762 \end_inset
21763
21764
21765 \end_layout
21766
21767 \begin_layout LyX-Code
21768 <<My scrap>>=
21769 \begin_inset Newline newline
21770 \end_inset
21771
21772   code
21773 \begin_inset Newline newline
21774 \end_inset
21775
21776   more code
21777 \begin_inset Newline newline
21778 \end_inset
21779
21780   even more code
21781 \begin_inset Newline newline
21782 \end_inset
21783
21784   @
21785 \end_layout
21786
21787 \begin_layout Standard
21788 This layout works fine.
21789  The only real inconvenience is that you have to type ctrl-return instead
21790  of a plain return.
21791 \begin_inset Foot
21792 status collapsed
21793
21794 \begin_layout Plain Layout
21795 It is in my list of 
21796 \begin_inset Quotes eld
21797 \end_inset
21798
21799 improvements
21800 \begin_inset Quotes erd
21801 \end_inset
21802
21803  to fix that.
21804 \end_layout
21805
21806 \end_inset
21807
21808
21809 \end_layout
21810
21811 \begin_layout Standard
21812 As a special note, you can also use the 
21813 \begin_inset Quotes eld
21814 \end_inset
21815
21816 %def
21817 \begin_inset Quotes erd
21818 \end_inset
21819
21820  construct of Noweb in your scraps to add items to Noweb's identifier cross-refe
21821 rence:
21822 \end_layout
21823
21824 \begin_layout LyX-Code
21825 <<My scrap>>=
21826 \begin_inset Newline newline
21827 \end_inset
21828
21829   def some_function(args):
21830 \begin_inset Newline newline
21831 \end_inset
21832
21833     "This is the doc string for this function."
21834 \begin_inset Newline newline
21835 \end_inset
21836
21837     print "My args: ", args
21838 \end_layout
21839
21840 \begin_layout LyX-Code
21841 @ %def some_function
21842 \end_layout
21843
21844 \begin_layout Standard
21845 For an example of this usage and the resulting cross-reference output, look
21846  at the Literate python program in 
21847 \emph on
21848 LIBDIR/examples/listerrors.lyx
21849 \emph default
21850  which should make this all clear.
21851 \end_layout
21852
21853 \begin_layout Paragraph
21854 Generating the documentation
21855 \end_layout
21856
21857 \begin_layout Standard
21858 At this point you already have a new document file with a proper document
21859  class, and with some code and text on it.
21860  How do I print it? The answer is simple, you select 
21861 \family sans
21862 View\SpecialChar \menuseparator
21863 DVI,
21864 \family default
21865  etc.
21866  Just like you would do for a plain document.
21867  No special procedure is required.
21868 \end_layout
21869
21870 \begin_layout Standard
21871 To help orientate you, I will now explain what happens inside LyX:
21872 \end_layout
21873
21874 \begin_layout Enumerate
21875 When the 
21876 \family sans
21877 Update\SpecialChar \menuseparator
21878 DVI
21879 \family default
21880  menu option is chosen, a LaTeX file is generated.
21881  
21882 \end_layout
21883
21884 \begin_deeper
21885 \begin_layout Standard
21886 If the document is of any literate class the generated file will be named
21887  with an extension name defined by the 
21888 \begin_inset Quotes eld
21889 \end_inset
21890
21891 literate
21892 \begin_inset Quotes erd
21893 \end_inset
21894
21895  format (defined in the Preferences panel), otherwise the file will have
21896  the usual 
21897 \family typewriter
21898 .tex
21899 \family default
21900  extension.
21901 \end_layout
21902
21903 \end_deeper
21904 \begin_layout Enumerate
21905 Note that the only difference so far is in the name of the file, no special
21906  processing is required by LyX.
21907  Given that you formatted the code using the Scrap layout that, by itself,
21908  takes care of the business.
21909 \end_layout
21910
21911 \begin_layout Enumerate
21912 If the document is of any literate class LyX will then use the internal
21913  LyX to Noweb converter, followed by the Noweb to LaTeX converter
21914 \begin_inset Foot
21915 status collapsed
21916
21917 \begin_layout Plain Layout
21918 The converters are defined in the 
21919 \family sans
21920 Tools\SpecialChar \menuseparator
21921 Preferences
21922 \family default
21923  panel, under the 
21924 \begin_inset Quotes eld
21925 \end_inset
21926
21927 Conversion
21928 \begin_inset Quotes erd
21929 \end_inset
21930
21931  tab.
21932  See section 
21933 \emph on
21934 Converters
21935 \emph default
21936  of the 
21937 \emph on
21938 Customization
21939 \emph default
21940  manual for general information about converters.
21941 \end_layout
21942
21943 \end_inset
21944
21945  to generate the LaTeX file.
21946 \end_layout
21947
21948 \begin_deeper
21949 \begin_layout Standard
21950 Otherwise it will just skip this step.
21951 \end_layout
21952
21953 \end_deeper
21954 \begin_layout Enumerate
21955 Finally, LaTeX is invoked and the regular post processing continues as in
21956  a plain document.
21957 \end_layout
21958
21959 \begin_layout Standard
21960 Independence from a particular 
21961 \begin_inset Quotes eld
21962 \end_inset
21963
21964 literate tool
21965 \begin_inset Quotes erd
21966 \end_inset
21967
21968  is easily achieved by changing the commands that are run by the various
21969  converters.
21970 \end_layout
21971
21972 \begin_layout Paragraph
21973 Generating the code
21974 \end_layout
21975
21976 \begin_layout Standard
21977 When the build menu option is chosen or the corresponding button in the
21978  toolbar is pressed, a LaTeX file is generated just like step 1 above.
21979  Next, LyX invokes the 
21980 \family typewriter
21981 Noweb->Program
21982 \family default
21983  converter.
21984  This converter needs to be defined by the user and is not installed by
21985  default, though the Program format is.
21986  This converter (like any other converter) will have two parts:
21987 \end_layout
21988
21989 \begin_layout Enumerate
21990 The converter program itself.
21991  This program performs the conversion from the one format to the other (in
21992  this case, from the Noweb format to the Program pseudo-format).
21993 \end_layout
21994
21995 \begin_layout Enumerate
21996 The error log parser.
21997  This is a program whose sole purpose is to rewrite error messages in a
21998  format that LyX understands.
21999  This makes it possible for LyX to place error boxes in the right places
22000  in the file buffer.
22001 \end_layout
22002
22003 \begin_layout Standard
22004 The first part, the 
22005 \begin_inset Quotes eld
22006 \end_inset
22007
22008 Converter
22009 \begin_inset Quotes erd
22010 \end_inset
22011
22012  setting, should be set to 
22013 \begin_inset Quotes eld
22014 \end_inset
22015
22016
22017 \family typewriter
22018 build-script $$i
22019 \family default
22020
22021 \begin_inset Quotes erd
22022 \end_inset
22023
22024 .
22025  This basically means that LyX will call 
22026 \begin_inset Quotes eld
22027 \end_inset
22028
22029 build-script
22030 \begin_inset Quotes erd
22031 \end_inset
22032
22033  (a program or script) with the name of the Noweb file (normally a file
22034  in the LyX temp directory).
22035  
22036 \end_layout
22037
22038 \begin_layout Standard
22039 This is an implementation of 
22040 \begin_inset Quotes eld
22041 \end_inset
22042
22043 build-script
22044 \begin_inset Quotes erd
22045 \end_inset
22046
22047  that you can place in a directory on your path:
22048 \end_layout
22049
22050 \begin_layout LyX-Code
22051 #!/bin/sh
22052 \end_layout
22053
22054 \begin_layout LyX-Code
22055 #
22056 \end_layout
22057
22058 \begin_layout LyX-Code
22059 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 sh
22060 \end_layout
22061
22062 \begin_layout Standard
22063 The next part of the converter setting is the 
22064 \begin_inset Quotes eld
22065 \end_inset
22066
22067 Flags
22068 \begin_inset Quotes erd
22069 \end_inset
22070
22071  which is to be set to 
22072 \begin_inset Quotes eld
22073 \end_inset
22074
22075
22076 \family typewriter
22077 parselog=listerrors
22078 \family default
22079
22080 \begin_inset Quotes erd
22081 \end_inset
22082
22083 .
22084  This will run any errors that are generated by the 
22085 \begin_inset Quotes eld
22086 \end_inset
22087
22088 build-script
22089 \begin_inset Quotes erd
22090 \end_inset
22091
22092  process through the 
22093 \begin_inset Quotes eld
22094 \end_inset
22095
22096 listerrors
22097 \begin_inset Quotes erd
22098 \end_inset
22099
22100  program.
22101 \end_layout
22102
22103 \begin_layout Standard
22104 The converter code looks in 
22105 \emph on
22106 MYLYXDIR/scripts
22107 \emph default
22108  first, then in 
22109 \emph on
22110 LIBDIR/scripts
22111 \emph default
22112  then on the path for the 
22113 \begin_inset Quotes eld
22114 \end_inset
22115
22116 listerrors
22117 \begin_inset Quotes erd
22118 \end_inset
22119
22120  program.
22121 \end_layout
22122
22123 \begin_layout Standard
22124 The build will normally take place in LyX's temporary directory, so the
22125  files produced by the conversion will be in that directory.
22126  LyX will copy out what it regards as the `main' file, but the 
22127 \family typewriter
22128 Noweb->Program
22129 \family default
22130  conversion may produce several files, and so most of these would then be
22131  deleted when LyX was closed.
22132  The present solution is to use a `copier',
22133 \begin_inset Foot
22134 status collapsed
22135
22136 \begin_layout Plain Layout
22137 See section 
22138 \emph on
22139 Copiers
22140 \emph default
22141  of the 
22142 \emph on
22143 Customization
22144 \emph default
22145  manual for information on these.
22146 \end_layout
22147
22148 \end_inset
22149
22150  in this case, the 
22151 \family typewriter
22152 ext_copy.py
22153 \family default
22154  script in its default mode, so that the entire contents of the temporary
22155  directory is copied.
22156  More will get copied than is needed, to be sure, but nothing will be lost.
22157  If, however, you know what extensions the generated files will have, this
22158  can be improved by using the 
22159 \family typewriter
22160 -e
22161 \family default
22162  option to 
22163 \family typewriter
22164 ext_copy
22165 \family default
22166 .
22167  This option takes a comma-separated list of extensions to copy.
22168  So, for example, if the conversion will generate only files with the extensions
22169  
22170 \family typewriter
22171 .c
22172 \family default
22173  and 
22174 \family typewriter
22175 .h
22176 \family default
22177 , then the correct definition would be:
22178 \end_layout
22179
22180 \begin_layout LyX-Code
22181 python -tt $$s/scripts/ext_copy.py -e c,h $$i $$o
22182 \end_layout
22183
22184 \begin_layout Standard
22185 The result will be that only files with these two extensions will be copied
22186  out.
22187 \end_layout
22188
22189 \begin_layout Paragraph
22190 Build instructions in the document
22191 \end_layout
22192
22193 \begin_layout Standard
22194 The last piece of the integration between LyX and noweb is the 
22195 \begin_inset Quotes eld
22196 \end_inset
22197
22198 build-script
22199 \begin_inset Quotes erd
22200 \end_inset
22201
22202  scrap.
22203  Generally, the instructions for building your program should be embedded
22204  in a scrap of its own.
22205  The noweb-specific 
22206 \begin_inset Quotes eld
22207 \end_inset
22208
22209 build-script
22210 \begin_inset Quotes erd
22211 \end_inset
22212
22213  above uses the notangle command to look for this scrap (called 
22214 \begin_inset Quotes eld
22215 \end_inset
22216
22217 build-script
22218 \begin_inset Quotes erd
22219 \end_inset
22220
22221 ) and runs its contents through 
22222 \begin_inset Quotes eld
22223 \end_inset
22224
22225 sh
22226 \begin_inset Quotes erd
22227 \end_inset
22228
22229 .
22230 \end_layout
22231
22232 \begin_layout Standard
22233 Typically, such a scrap would look something like this:
22234 \end_layout
22235
22236 \begin_layout LyX-Code
22237 <<build-script>>=
22238 \begin_inset Newline newline
22239 \end_inset
22240
22241 #!/bin/sh
22242 \begin_inset Newline newline
22243 \end_inset
22244
22245
22246 \begin_inset Newline newline
22247 \end_inset
22248
22249 if [ -z "${NOWEB_SOURCE}" ]
22250 \begin_inset Newline newline
22251 \end_inset
22252
22253 then
22254 \begin_inset Newline newline
22255 \end_inset
22256
22257   NOWEB_SOURCE=myfile.nw
22258 \begin_inset Newline newline
22259 \end_inset
22260
22261 fi
22262 \begin_inset Newline newline
22263 \end_inset
22264
22265 [...
22266  code to extract files ...]
22267 \begin_inset Newline newline
22268 \end_inset
22269
22270 [...
22271  code to compile files ...]
22272 \begin_inset Newline newline
22273 \end_inset
22274
22275 @
22276 \end_layout
22277
22278 \begin_layout Standard
22279 Look in 
22280 \emph on
22281 LIBDIR/examples/listerrors.lyx
22282 \emph default
22283  or in 
22284 \emph on
22285 LIBDIR/examples/Literate.lyx
22286 \emph default
22287  which implement two versions of the 
22288 \begin_inset Quotes eld
22289 \end_inset
22290
22291 listerrors
22292 \begin_inset Quotes erd
22293 \end_inset
22294
22295  program for some illustrations of how all of these pieces go together or
22296  in 
22297 \emph on
22298 LIBDIR/examples/noweb2lyx.lyx.
22299
22300 \emph default
22301  Interestingly, these three files show off the language-indepence of the
22302  LyX literate programming support since they are written in Python, C and
22303  Perl respectively.
22304 \end_layout
22305
22306 \begin_layout Subsubsection
22307 Configuring LyX
22308 \end_layout
22309
22310 \begin_layout Standard
22311 All the Literate Programming support is configured by the 
22312 \family sans
22313 Tools\SpecialChar \menuseparator
22314 Preferences
22315 \family default
22316  panel in the 
22317 \begin_inset Quotes eld
22318 \end_inset
22319
22320 Conversion
22321 \begin_inset Quotes erd
22322 \end_inset
22323
22324  tab.
22325  The important parts are:
22326 \end_layout
22327
22328 \begin_layout Description
22329 the
22330 \begin_inset space ~
22331 \end_inset
22332
22333
22334 \begin_inset Quotes eld
22335 \end_inset
22336
22337 literate
22338 \begin_inset Quotes erd
22339 \end_inset
22340
22341
22342 \begin_inset space ~
22343 \end_inset
22344
22345 format Set up via the Formats tab, this is where the Noweb-specific pieces
22346  are set up.
22347  The 
22348 \family sans
22349 GUI Name
22350 \family default
22351  is set to 
22352 \family typewriter
22353 NoWeb
22354 \family default
22355 , the file extension is set to 
22356 \family typewriter
22357 .nw
22358 \family default
22359 .
22360  This tells LyX to create a file with a 
22361 \family typewriter
22362 .nw
22363 \family default
22364  extension in the first step of the conversion process.
22365 \end_layout
22366
22367 \begin_layout Description
22368 the
22369 \begin_inset space ~
22370 \end_inset
22371
22372
22373 \family sans
22374 Program
22375 \family default
22376
22377 \begin_inset space ~
22378 \end_inset
22379
22380 format This is an empty format whose sole purpose is to be the endpoint
22381  of a conversion (which then allows us to set up a converter for it).
22382 \end_layout
22383
22384 \begin_layout Description
22385
22386 \family sans
22387 NoWeb
22388 \family default
22389 ->
22390 \family sans
22391 LaTeX
22392 \family default
22393  This converter performs the 
22394 \begin_inset Quotes eld
22395 \end_inset
22396
22397 weaving
22398 \begin_inset Quotes erd
22399 \end_inset
22400
22401  of the literate document.
22402  For Noweb, it is set to 
22403 \begin_inset Quotes eld
22404 \end_inset
22405
22406
22407 \family typewriter
22408 noweave -delay -index $$i > $$o
22409 \family default
22410
22411 \begin_inset Quotes erd
22412 \end_inset
22413
22414
22415 \end_layout
22416
22417 \begin_layout Description
22418
22419 \family sans
22420 NoWeb
22421 \family default
22422 ->
22423 \family sans
22424 Program
22425 \family default
22426  This performs the 
22427 \begin_inset Quotes eld
22428 \end_inset
22429
22430 tangling step
22431 \begin_inset Quotes erd
22432 \end_inset
22433
22434 .
22435  As stated above, the Converter is set to 
22436 \begin_inset Quotes eld
22437 \end_inset
22438
22439
22440 \family typewriter
22441 build-script $$i
22442 \family default
22443
22444 \begin_inset Quotes erd
22445 \end_inset
22446
22447 , with Flags set to 
22448 \begin_inset Quotes eld
22449 \end_inset
22450
22451
22452 \family typewriter
22453 originaldir,parselog=listerrors
22454 \family default
22455
22456 \begin_inset Quotes erd
22457 \end_inset
22458
22459 .
22460 \end_layout
22461
22462 \begin_layout Subsubsection
22463 Debug extensions
22464 \end_layout
22465
22466 \begin_layout Standard
22467 There is also a new function implemented in the LyX server, the 
22468 \begin_inset Quotes eld
22469 \end_inset
22470
22471 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
22472  
22473 \end_layout
22474
22475 \begin_layout Standard
22476 When debugging code with ddd/gdb, it is possible to invoke a text editor
22477  at the current execution position with a single key stroke.
22478  The default ddd configuration for that is shift-ctrl-V.
22479  It happens that you can define the editor command line invocation in ddd
22480  by accessing the 
22481 \family sans
22482 Edit\SpecialChar \menuseparator
22483 Preferences\SpecialChar \menuseparator
22484 Helpers
22485 \family default
22486  dialog and changing the "Edit Sources" entry.
22487 \end_layout
22488
22489 \begin_layout Standard
22490 I take advantage of the new created LyX server function and this ddd feature,
22491  and set 
22492 \begin_inset Quotes eld
22493 \end_inset
22494
22495 Edit Sources
22496 \begin_inset Quotes erd
22497 \end_inset
22498
22499  to:
22500 \end_layout
22501
22502 \begin_layout LyX-Code
22503 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
22504 \end_layout
22505
22506 \begin_layout Standard
22507 With this, whenever you are using ddd and find a point in the program that
22508  you want to edit, you just press shift-ctrl-V (in the ddd window), and
22509  ddd you forward this information to LyX through the LyX server and then
22510  the LyX window will show the same file with the cursor at the same position
22511  ddd was pointing to.
22512  No more guessing or long scrolling to locate a point in the program back
22513  from debugging !
22514 \end_layout
22515
22516 \begin_layout Standard
22517 Note however that you must enable the LyX server to get this feature working
22518  (it is disabled by default).
22519  You can enable it in 
22520 \family sans
22521 Preferences
22522 \family default
22523  (tabs 
22524 \family sans
22525 Inputs
22526 \family default
22527
22528 \family sans
22529 Paths
22530 \family default
22531 ) by entering in the 
22532 \family sans
22533 LyXserver pipe
22534 \family default
22535  a path like 
22536 \begin_inset Quotes eld
22537 \end_inset
22538
22539
22540 \family typewriter
22541 /home/<your-home-directory>/.lyx/lyxpipe
22542 \family default
22543
22544 \begin_inset Quotes erd
22545 \end_inset
22546
22547
22548 \end_layout
22549
22550 \begin_layout Standard
22551 Read the LyX server documentation in the 
22552 \emph on
22553 Customization Manual
22554 \emph default
22555  for further information.
22556 \end_layout
22557
22558 \begin_layout Subsubsection
22559 Toolbar extensions
22560 \end_layout
22561
22562 \begin_layout Standard
22563 There are six new buttons that can be added to your LyX toolbar.
22564  Five of these buttons are short cuts to layout styles: 
22565 \family sans
22566 Standard
22567 \family default
22568
22569 \family sans
22570 Section
22571 \family default
22572
22573 \family sans
22574 LaTeX
22575 \family default
22576
22577 \family sans
22578 LyX-Code
22579 \family default
22580 , and 
22581 \family sans
22582 Scrap
22583 \family default
22584 .
22585  The last one is a short cut to the 
22586 \begin_inset Quotes eld
22587 \end_inset
22588
22589 Build Program
22590 \begin_inset Quotes erd
22591 \end_inset
22592
22593  File menu entry.
22594  
22595 \end_layout
22596
22597 \begin_layout Standard
22598 LyX has a range of buttons that are available for tool bar customization.
22599  In my toolbar I like to combine the six short cuts above with two more:
22600  One for 
22601 \family sans
22602 View
22603 \family default
22604 \SpecialChar \menuseparator
22605
22606 \family sans
22607 Update
22608 \family default
22609 \SpecialChar \menuseparator
22610
22611 \family sans
22612 DVI
22613 \family default
22614  and the other for 
22615 \family sans
22616 View\SpecialChar \menuseparator
22617 DVI
22618 \family default
22619  File menu entries.
22620  Here is how it looks like:
22621 \end_layout
22622
22623 \begin_layout LyX-Code
22624 Toolbar
22625 \end_layout
22626
22627 \begin_layout LyX-Code
22628   Layouts
22629 \end_layout
22630
22631 \begin_layout LyX-Code
22632   Icon "layout Standard"
22633 \end_layout
22634
22635 \begin_layout LyX-Code
22636   Icon "layout Section"
22637 \end_layout
22638
22639 \begin_layout LyX-Code
22640   Icon "layout LaTeX"
22641 \end_layout
22642
22643 \begin_layout LyX-Code
22644   Icon "layout LyX-Code"
22645 \end_layout
22646
22647 \begin_layout LyX-Code
22648   Icon "layout Scrap"
22649 \end_layout
22650
22651 \begin_layout LyX-Code
22652   Separator
22653 \end_layout
22654
22655 \begin_layout LyX-Code
22656   Icon "buffer-view"
22657 \end_layout
22658
22659 \begin_layout LyX-Code
22660   Icon "buffer-typeset"
22661 \end_layout
22662
22663 \begin_layout LyX-Code
22664   Icon "build-program"
22665 \end_layout
22666
22667 \begin_layout LyX-Code
22668   Separator
22669 \end_layout
22670
22671 \begin_layout LyX-Code
22672 .
22673 \end_layout
22674
22675 \begin_layout LyX-Code
22676 .
22677 \end_layout
22678
22679 \begin_layout LyX-Code
22680 .
22681 \end_layout
22682
22683 \begin_layout LyX-Code
22684 End
22685 \end_layout
22686
22687 \begin_layout Subsubsection
22688 Colors customization
22689 \end_layout
22690
22691 \begin_layout Standard
22692 There are a number of colors in LyX that can be customized in 
22693 \family sans
22694 Preferences
22695 \family default
22696 .
22697  One of the things that bothers people is the LaTeX font color.
22698  The default color is red, since the scraps uses LaTeX font, and there is
22699  a lot of scraps in literate documents, you may get tired of seeing everything
22700  in red.
22701  You can change it by going to the tabs 
22702 \family sans
22703 Look&Feel
22704 \family default
22705
22706 \family sans
22707 Colors.
22708 \end_layout
22709
22710 \begin_layout Standard
22711 The next thing is the visible presence of the newline character in the screen.
22712  You can choose the color of this particular character and make it blend
22713  in the background.
22714  I recommend you choosing a color that is close to the background but not
22715  equal, that way you still can see it is there, but it is not bothering
22716  you anymore.
22717  
22718 \end_layout
22719
22720 \begin_layout Chapter
22721 Secrets of the LaTeX Masters
22722 \begin_inset CommandInset label
22723 LatexCommand label
22724 name "cha:secrets"
22725
22726 \end_inset
22727
22728
22729 \end_layout
22730
22731 \begin_layout Standard
22732 Though LyX is a powerful tool, it cannot hope to support everything that
22733  can be done with pure TeX/LaTeX.
22734  However, many familiar dirty TeX and LaTeX tricks can be done within LyX,
22735  as long as you are not afraid to use that 
22736 \begin_inset Quotes eld
22737 \end_inset
22738
22739 TeX
22740 \begin_inset Quotes erd
22741 \end_inset
22742
22743  button on the toolbar or add things to the LaTeX preamble.
22744  This section lists some tips, tricks, and otherwise cool ideas to give
22745  your document that extra little flair.
22746  
22747 \emph on
22748 Do try this at home
22749 \emph default
22750 , just start with something a little smaller and less important than your
22751  dissertation!
22752 \end_layout
22753
22754 \begin_layout Standard
22755 Most ideas in this section require less common files in your LaTeX installation.
22756  If you have a system like TeXLive, most will already be available.
22757  A few, however, will need to be downloaded from one of the CTAN archives.
22758  Often, there are several ways to do something, or several LaTeX style files
22759  which do the same thing.
22760  We do not endorse one choice over another, we simply claim that we have
22761  done a particular task with a particular file.
22762  Put on your wizard hat, keep an eye out for dragons, and let us begin.
22763 \end_layout
22764
22765 \begin_layout Section
22766 Multiple Columns
22767 \end_layout
22768
22769 \begin_layout Standard
22770 by 
22771 \noun on
22772 Lars Gullik Bjønnes
22773 \end_layout
22774
22775 \begin_layout Subsection
22776 Purpose
22777 \end_layout
22778
22779 \begin_layout Standard
22780 The aim for this chapter
22781 \begin_inset Foot
22782 status collapsed
22783
22784 \begin_layout Plain Layout
22785 Editor's note: Lars' original chapter was a masterful description of how
22786  to use the 
22787 \family typewriter
22788 multicol
22789 \family default
22790  package.
22791  However, it was too long to flow smoothly in this document.
22792  I have therefore chosen to excerpt the most important sections here (sorry,
22793  Lars); you can read the original chapter (and more of the story!) in the
22794  example file 
22795 \family typewriter
22796 examples/multicol.lyx
22797 \family default
22798 .
22799  — mer
22800 \end_layout
22801
22802 \end_inset
22803
22804  is to show how the LaTeX package 
22805 \family typewriter
22806 multicol
22807 \family default
22808  can be used in a LyX document.
22809  As LyX doesn't support the 
22810 \family typewriter
22811 multicol
22812 \family default
22813  package natively yet, we have to use some small hacks.
22814  By reading this section it should be obvious how to do this.
22815 \end_layout
22816
22817 \begin_layout Subsection
22818 Limitations 
22819 \end_layout
22820
22821 \begin_layout Standard
22822 The 
22823 \family typewriter
22824 multicol
22825 \family default
22826  package allows switching between one and multicolumn format on the same
22827  page.
22828  Footnotes are handled correctly (for the most part), but will be placed
22829  at the bottom of the page and not under each column.
22830  LaTeX's float mechanism, however, is partly disabled in the current implementat
22831 ion.
22832  At the moment only page-wide floats can be used within the scope of the
22833  environment.
22834 \end_layout
22835
22836 \begin_layout Subsection
22837 Examples
22838 \end_layout
22839
22840 \begin_layout Subsubsection
22841 Two columns
22842 \end_layout
22843
22844 \begin_layout Standard
22845 If you want to have two columns in your text, you have use LaTeX mode to
22846  insert 
22847 \family typewriter
22848
22849 \backslash
22850 begin{multicols}{2}
22851 \family default
22852  at the point where you want the two column layout to start, and then 
22853 \family typewriter
22854
22855 \backslash
22856 end{multicols}
22857 \family default
22858  where you want it to end.
22859  Like this:
22860 \end_layout
22861
22862 \begin_layout Standard
22863 \begin_inset ERT
22864 status open
22865
22866 \begin_layout Plain Layout
22867
22868
22869 \backslash
22870 begin{multicols}{2}
22871 \end_layout
22872
22873 \end_inset
22874
22875
22876 \end_layout
22877
22878 \begin_layout Standard
22879 \noindent
22880
22881 \series bold
22882 \size small
22883 The Adventure of the Empty House
22884 \series default
22885
22886 \begin_inset Newline newline
22887 \end_inset
22888
22889 by 
22890 \noun on
22891 Sir Arthur Conan Doyle
22892 \end_layout
22893
22894 \begin_layout Standard
22895
22896 \size small
22897 It was in the spring of the year 1894 that all London was interested, and
22898  the fashionable world dismayed, by the murder of the Honourable Ronald
22899  Adair under most unusual and inexplicable circumstances.
22900  The public has already learned those particulars of the crime which came
22901  out in the police investigation, but a good deal was suppressed upon that
22902  occasion, since the case for the prosecution was so overwhelmingly strong
22903  that it was not necessary to bring forward all the facts.
22904  Only now, at the end of nearly ten years, am I allowed to supply those
22905  missing links which make up the whole of that remarkable chain.
22906  The crime was of interest in itself, but that interest was as nothing to
22907  me compared to the inconceivable sequel, which afforded me the greatest
22908  shock and surprise of any event in my adventurous life.
22909  Even now, after this long interval, I find myself thrilling as I think
22910  of it, and feeling once more that sudden flood of joy, amazement, and increduli
22911 ty which utterly submerged my mind.
22912  Let me say to that public, which has shown some interest in those glimpses
22913  which I have occasionally given them of the thoughts and actions of a very
22914  remarkable man, that they are not to blame me if I have not shared my knowledge
22915  with them, for I should have considered it my first duty to do so, had
22916  I not been barred by a positive prohibition from his own lips, which was
22917  only withdrawn upon the third of last month.
22918 \end_layout
22919
22920 \begin_layout Standard
22921 \begin_inset ERT
22922 status open
22923
22924 \begin_layout Plain Layout
22925
22926
22927 \backslash
22928 end{multicols}
22929 \end_layout
22930
22931 \end_inset
22932
22933
22934 \end_layout
22935
22936 \begin_layout Subsubsection
22937 Multiple columns
22938 \end_layout
22939
22940 \begin_layout Standard
22941 The same pattern is used when you want more than two columns:
22942 \end_layout
22943
22944 \begin_layout Standard
22945 \begin_inset ERT
22946 status open
22947
22948 \begin_layout Plain Layout
22949
22950
22951 \backslash
22952 begin{multicols}{3}
22953 \end_layout
22954
22955 \end_inset
22956
22957
22958 \end_layout
22959
22960 \begin_layout Standard
22961
22962 \size footnotesize
22963 It can be imagined that my close intimacy with Sherlock Holmes had interested
22964  me deeply in crime, and that after his disappearance I never failed to
22965  read with care the various problems which came before the public.
22966  And I even attempted, more than once, for my own private satisfaction,
22967  to employ his methods in their solution, though with indifferent success.
22968  There was none, however, which appealed to me like this tragedy of Ronald
22969  Adair.
22970  As I read the evidence at the inquest, which led up to a verdict of willful
22971  murder against some person or persons unknown, I realized more clearly
22972  than I had ever done the loss which the community had sustained by the
22973  death of Sherlock Holmes.
22974  There were points about this strange business which would, I was sure,
22975  have specially appealed to him, and the efforts of the police would have
22976  been supplemented, or more probably anticipated, by the trained observation
22977  and the alert mind of the first criminal agent in Europe.
22978  All day, as I drove upon my round, I turned over the case in my mind and
22979  found no explanation which appeared to me to be adequate.
22980  At the risk of telling a twice-told tale, I will recapitulate the facts
22981  as they were known to the public at the conclusion of the inquest.
22982 \end_layout
22983
22984 \begin_layout Standard
22985 \begin_inset ERT
22986 status open
22987
22988 \begin_layout Plain Layout
22989
22990
22991 \backslash
22992 end{multicols}
22993 \end_layout
22994
22995 \end_inset
22996
22997
22998 \end_layout
22999
23000 \begin_layout Standard
23001 You can have more than 3 columns if you want to, but that might not be very
23002  pleasant for the eye.
23003 \end_layout
23004
23005 \begin_layout Subsubsection
23006 Columns inside columns
23007 \end_layout
23008
23009 \begin_layout Standard
23010 You can even have columns inside columns:
23011 \end_layout
23012
23013 \begin_layout Standard
23014 \begin_inset ERT
23015 status open
23016
23017 \begin_layout Plain Layout
23018
23019
23020 \backslash
23021 begin{multicols}{2}
23022 \end_layout
23023
23024 \end_inset
23025
23026
23027 \end_layout
23028
23029 \begin_layout Standard
23030
23031 \size footnotesize
23032 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
23033  at that time governor of one of the Australian colonies.
23034  Adair's mother had returned from Australia to undergo the operation for
23035  cataract, and she, her son Ronald, and her daughter Hilda were living together
23036  at 427 Park Lane.
23037 \end_layout
23038
23039 \begin_layout Standard
23040 \begin_inset ERT
23041 status open
23042
23043 \begin_layout Plain Layout
23044
23045
23046 \backslash
23047 begin{multicols}{2}
23048 \end_layout
23049
23050 \end_inset
23051
23052
23053 \end_layout
23054
23055 \begin_layout Standard
23056
23057 \size footnotesize
23058 The youth moved in the best society–had, so far as was known, no enemies
23059  and no particular vices.
23060  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
23061  had been broken off by mutual consent some months before, and there was
23062  no sign that it had left any very profound feeling behind it.
23063  For the rest {sic} the man's life moved in a narrow and conventional circle,
23064  for his habits were quiet and his nature unemotional.
23065  Yet it was upon this easy-going young aristocrat that death came, in most
23066  strange and unexpected form, between the hours of ten and eleven-twenty
23067  on the night of March 30, 1894.
23068 \end_layout
23069
23070 \begin_layout Standard
23071 \begin_inset ERT
23072 status open
23073
23074 \begin_layout Plain Layout
23075
23076
23077 \backslash
23078 end{multicols}
23079 \end_layout
23080
23081 \end_inset
23082
23083
23084 \end_layout
23085
23086 \begin_layout Standard
23087
23088 \size footnotesize
23089 Ronald Adair was fond of cards–playing continually, but never for such stakes
23090  as would hurt him.
23091  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
23092  It was shown that, after dinner on the day of his death, he had played
23093  a rubber of whist at the latter club.
23094  He had also played there in the afternoon.
23095
23096 \size default
23097  
23098 \size footnotesize
23099 The evidence of those who had played with him– Mr.
23100  Murray, Sir John Hardy, and Colonel Moran–showed that the game was whist,
23101  and that there was a fairly equal fall of the cards.
23102  Adair might have lost five pounds, but not more.
23103  His fortune was a considerable one, and such a loss could not in any way
23104  affect him.
23105  He had played nearly every day at one club or other, but he was a cautious
23106  player, and usually rose a winner.
23107  It came out in evidence that, in partnership with Colonel Moran, he had
23108  actually won as much as four hundred and twenty pounds in a sitting, some
23109  weeks before, from Godfrey Milner and Lord Balmoral.
23110  So much for his recent history as it came out at the inquest.
23111 \end_layout
23112
23113 \begin_layout Standard
23114 \begin_inset ERT
23115 status open
23116
23117 \begin_layout Plain Layout
23118
23119
23120 \backslash
23121 end{multicols}
23122 \end_layout
23123
23124 \end_inset
23125
23126
23127 \end_layout
23128
23129 \begin_layout Standard
23130 Please do read the file 
23131 \family typewriter
23132 examples/multicol.lyx
23133 \family default
23134  for more advanced examples including column and header spacing, vertical
23135  separator lines, and more.
23136 \end_layout
23137
23138 \begin_layout Section
23139 Numbering in the 
23140 \family sans
23141 Enumerate
23142 \family default
23143  Paragraph Environment
23144 \begin_inset Argument
23145 status collapsed
23146
23147 \begin_layout Plain Layout
23148 Numbering in Enumerate
23149 \end_layout
23150
23151 \end_inset
23152
23153
23154 \end_layout
23155
23156 \begin_layout Standard
23157 by 
23158 \noun on
23159 John Weiss
23160 \end_layout
23161
23162 \begin_layout Standard
23163 \begin_inset VSpace bigskip
23164 \end_inset
23165
23166
23167 \end_layout
23168
23169 \begin_layout Standard
23170 \noindent
23171 The default numbering for the 
23172 \family sans
23173 Enumerate
23174 \family default
23175  paragraph environment begins with Arabic numbers and ends with uppercase
23176  letters.
23177  Suppose, however, you wanted a different type of numbering scheme.
23178  Here's a quickie example of how to change the numbering scheme:
23179 \end_layout
23180
23181 \begin_layout LyX-Code
23182
23183 \backslash
23184 renewcommand{
23185 \backslash
23186 labelenumi}{
23187 \backslash
23188 Roman{enumi}.}
23189 \end_layout
23190
23191 \begin_layout LyX-Code
23192
23193 \backslash
23194 renewcommand{
23195 \backslash
23196 labelenumii}{
23197 \backslash
23198 Alph{enumii}.}
23199 \end_layout
23200
23201 \begin_layout LyX-Code
23202
23203 \backslash
23204 renewcommand{
23205 \backslash
23206 labelenumiii}{
23207 \backslash
23208 arabic{enumiii}.}
23209 \end_layout
23210
23211 \begin_layout LyX-Code
23212
23213 \backslash
23214 renewcommand{
23215 \backslash
23216 labelenumiv}{
23217 \backslash
23218 alph{enumiv}.)}
23219 \end_layout
23220
23221 \begin_layout Standard
23222 \SpecialChar \ldots{}
23223  which changes the numbering scheme to uppercase Roman numerals, uppercase
23224  letters, Arabic numbers, and lowercase letter.
23225 \end_layout
23226
23227 \begin_layout Standard
23228 Additionally, the previous example also adds a little bit extra to the numbering
23229  scheme.
23230  For example, the first level label actually looks like: 
23231 \begin_inset Quotes eld
23232 \end_inset
23233
23234 I.
23235 \begin_inset Quotes erd
23236 \end_inset
23237
23238 .
23239  For ease of reading, we'll describe what the numbering schemes look like
23240  using a notation something like this: <
23241 \begin_inset Quotes eld
23242 \end_inset
23243
23244 I.
23245 \begin_inset Quotes erd
23246 \end_inset
23247
23248 ,
23249 \begin_inset space ~
23250 \end_inset
23251
23252
23253 \begin_inset Quotes erd
23254 \end_inset
23255
23256 A.
23257 \begin_inset Quotes erd
23258 \end_inset
23259
23260 ,
23261 \begin_inset space ~
23262 \end_inset
23263
23264
23265 \begin_inset Quotes erd
23266 \end_inset
23267
23268 1.
23269 \begin_inset Quotes erd
23270 \end_inset
23271
23272 ,
23273 \begin_inset space ~
23274 \end_inset
23275
23276
23277 \begin_inset Quotes eld
23278 \end_inset
23279
23280 a.)
23281 \begin_inset Quotes erd
23282 \end_inset
23283
23284 >.
23285  
23286 \end_layout
23287
23288 \begin_layout Standard
23289 As you can see in the example, there is a label command for each nesting
23290  level, 
23291 \family typewriter
23292
23293 \backslash
23294 labelenumi
23295 \family default
23296  \SpecialChar \ldots{}
23297  
23298 \family typewriter
23299
23300 \backslash
23301 labelenumiv
23302 \family default
23303 , as well as a counter, 
23304 \family typewriter
23305 enumi
23306 \family default
23307  \SpecialChar \ldots{}
23308  
23309 \family typewriter
23310 enumiv
23311 \family default
23312 .
23313  There are also five 
23314 \begin_inset Quotes eld
23315 \end_inset
23316
23317 number printing
23318 \begin_inset Quotes erd
23319 \end_inset
23320
23321  commands, 
23322 \family typewriter
23323
23324 \backslash
23325 arabic{}
23326 \family default
23327
23328 \family typewriter
23329
23330 \backslash
23331 roman{}
23332 \family default
23333
23334 \family typewriter
23335
23336 \backslash
23337 Roman{}
23338 \family default
23339
23340 \family typewriter
23341
23342 \backslash
23343 alph{}
23344 \family default
23345 , and 
23346 \family typewriter
23347
23348 \backslash
23349 Alph{}
23350 \family default
23351 , each of which take one counter as an argument.
23352  You can add characters before or after these, but there's no need to add
23353  spaces.
23354 \end_layout
23355
23356 \begin_layout Standard
23357 You can get really fancy with these.
23358  For example:
23359 \end_layout
23360
23361 \begin_layout LyX-Code
23362
23363 \backslash
23364 renewcommand{
23365 \backslash
23366 labelenumi}{
23367 \backslash
23368 #
23369 \backslash
23370 Alph{enumi}
23371 \backslash
23372 #}
23373 \end_layout
23374
23375 \begin_layout LyX-Code
23376
23377 \backslash
23378 renewcommand{
23379 \backslash
23380 labelenumii}{
23381 \backslash
23382 Alph{enumi}.
23383 \backslash
23384 arabic{enumii}}
23385 \end_layout
23386
23387 \begin_layout LyX-Code
23388
23389 \backslash
23390 renewcommand{
23391 \backslash
23392 labelenumiii}{
23393 \backslash
23394 alph{enumiii}+}
23395 \end_layout
23396
23397 \begin_layout LyX-Code
23398
23399 \backslash
23400 renewcommand{
23401 \backslash
23402 labelenumiv}{(
23403 \backslash
23404 roman{enumiv})}
23405 \end_layout
23406
23407 \begin_layout Standard
23408 produces the somewhat out of hand numbering scheme: <
23409 \begin_inset Quotes eld
23410 \end_inset
23411
23412 #A#
23413 \begin_inset Quotes erd
23414 \end_inset
23415
23416 ,
23417 \begin_inset space ~
23418 \end_inset
23419
23420
23421 \begin_inset Quotes erd
23422 \end_inset
23423
23424 A.1
23425 \begin_inset Quotes erd
23426 \end_inset
23427
23428 ,
23429 \begin_inset space ~
23430 \end_inset
23431
23432
23433 \begin_inset Quotes erd
23434 \end_inset
23435
23436 a+
23437 \begin_inset Quotes erd
23438 \end_inset
23439
23440 ,
23441 \begin_inset space ~
23442 \end_inset
23443
23444
23445 \begin_inset Quotes eld
23446 \end_inset
23447
23448 (i)
23449 \begin_inset Quotes erd
23450 \end_inset
23451
23452 >.
23453  
23454 \end_layout
23455
23456 \begin_layout Section
23457 Dropped Capitals
23458 \end_layout
23459
23460 \begin_layout Standard
23461 by 
23462 \noun on
23463 Mike Ressler
23464 \end_layout
23465
23466 \begin_layout Standard
23467 \begin_inset VSpace bigskip
23468 \end_inset
23469
23470
23471 \end_layout
23472
23473 \begin_layout Standard
23474 \noindent
23475 \begin_inset ERT
23476 status collapsed
23477
23478 \begin_layout Plain Layout
23479
23480
23481 \backslash
23482 newfont{
23483 \backslash
23484 tmpfont}{cmr17 scaled 2500}{
23485 \backslash
23486 tmpfont T}
23487 \backslash
23488 vspace*{-8.4ex}
23489 \end_layout
23490
23491 \end_inset
23492
23493
23494 \end_layout
23495
23496 \begin_layout Standard
23497 \noindent
23498 \begin_inset ERT
23499 status open
23500
23501 \begin_layout Plain Layout
23502
23503
23504 \backslash
23505 hangindent=3.3em 
23506 \backslash
23507 hangafter=-3
23508 \end_layout
23509
23510 \end_inset
23511
23512  hose of you who like the style of old books probably also like 
23513 \begin_inset Quotes eld
23514 \end_inset
23515
23516 dropped capitals
23517 \begin_inset Quotes erd
23518 \end_inset
23519
23520 —those large capital letters which begin each new chapter or section.
23521  Implementing them with plain LyX/LaTeX is straightforward (assuming you
23522  know some plain TeX!) but does require a lot of work and many iterations,
23523  as you can see by all the ugly TeX-mode stuff at the beginning of this
23524  paragraph.
23525 \end_layout
23526
23527 \begin_layout Standard
23528 \begin_inset ERT
23529 status open
23530
23531 \begin_layout Plain Layout
23532
23533
23534 \backslash
23535 verb+
23536 \backslash
23537 bigdrop{-1em}{3}{ptmri}{T}+
23538 \end_layout
23539
23540 \end_inset
23541
23542 here is a much easier way of doing this, of course.
23543  The 
23544 \family typewriter
23545 dropcaps
23546 \family default
23547  (or the newer 
23548 \family typewriter
23549 dropping
23550 \family default
23551 ) package from CTAN allows a simple way to add such letters to your documents.
23552  Since this package is not a standard part of TeXLive, I can't demonstrate
23553  it within this document, but if you copy this paragraph to a new document,
23554  delete the 
23555 \begin_inset Quotes eld
23556 \end_inset
23557
23558
23559 \family typewriter
23560
23561 \backslash
23562 verb
23563 \family default
23564
23565 \begin_inset Quotes erd
23566 \end_inset
23567
23568  and the pluses from the TeX code at the beginning of the paragraph, and
23569  add 
23570 \family typewriter
23571
23572 \backslash
23573 usepackage{dropcaps}
23574 \family default
23575  to your LaTeX preamble, you will get a nice Times Roman Italic 
23576 \begin_inset Quotes eld
23577 \end_inset
23578
23579 T
23580 \begin_inset Quotes erd
23581 \end_inset
23582
23583 , whose height is three lines of text and which protrudes 1 em into the
23584  margin.
23585  (Make certain you have copied 
23586 \begin_inset Quotes eld
23587 \end_inset
23588
23589
23590 \family typewriter
23591 dropcaps.sty
23592 \family default
23593
23594 \begin_inset Quotes erd
23595 \end_inset
23596
23597  into a directory where TeX can see it.) The first argument is the amount
23598  of indentation; in this case the negative sign moves it into the margin.
23599  The second argument is the height of the letter in number of lines of text.
23600  The third argument is the font name: virtually anything which has a tfm
23601  file should work (wade through the 
23602 \family typewriter
23603 .../texmf/fonts/tfm
23604 \family default
23605  directory for possibilities).
23606  My personal favorite is 
23607 \begin_inset Quotes eld
23608 \end_inset
23609
23610
23611 \family typewriter
23612 yinit
23613 \family default
23614
23615 \begin_inset Quotes erd
23616 \end_inset
23617
23618 , a fancy German font specifically designed for dropped capitals.
23619  The fourth argument is the letter (or letters) to be dropped.
23620  The 
23621 \family typewriter
23622 dropping
23623 \family default
23624  package also offers the 
23625 \family typewriter
23626
23627 \backslash
23628 bigdrop
23629 \family default
23630  command, as well as a slightly simplified 
23631 \family typewriter
23632
23633 \backslash
23634 dropping
23635 \family default
23636  command.
23637 \end_layout
23638
23639 \begin_layout Section
23640 Non-standard Paragraph Shapes
23641 \end_layout
23642
23643 \begin_layout Standard
23644 by 
23645 \noun on
23646 Mike Ressler
23647 \end_layout
23648
23649 \begin_layout Standard
23650 \begin_inset VSpace bigskip
23651 \end_inset
23652
23653
23654 \end_layout
23655
23656 \begin_layout Standard
23657 \begin_inset ERT
23658 status collapsed
23659
23660 \begin_layout Plain Layout
23661
23662
23663 \backslash
23664 begin{sloppypar}
23665 \end_layout
23666
23667 \end_inset
23668
23669
23670 \end_layout
23671
23672 \begin_layout Standard
23673 \begin_inset ERT
23674 status collapsed
23675
23676 \begin_layout Plain Layout
23677
23678
23679 \backslash
23680 newdimen
23681 \backslash
23682 varunit 
23683 \end_layout
23684
23685 \begin_layout Plain Layout
23686
23687
23688 \backslash
23689 setlength{
23690 \backslash
23691 varunit}{4.5in}
23692 \end_layout
23693
23694 \end_inset
23695
23696
23697 \end_layout
23698
23699 \begin_layout Standard
23700 \noindent
23701 \begin_inset ERT
23702 status collapsed
23703
23704 \begin_layout Plain Layout
23705
23706
23707 \backslash
23708 parshape 19 0.45
23709 \backslash
23710 varunit 0.332
23711 \backslash
23712 varunit
23713 \end_layout
23714
23715 \begin_layout Plain Layout
23716
23717 0.40
23718 \backslash
23719 varunit 0.300
23720 \backslash
23721 varunit
23722 \end_layout
23723
23724 \begin_layout Plain Layout
23725
23726 0.35
23727 \backslash
23728 varunit 0.293
23729 \backslash
23730 varunit
23731 \end_layout
23732
23733 \begin_layout Plain Layout
23734
23735 0.30
23736 \backslash
23737 varunit 0.300
23738 \backslash
23739 varunit
23740 \end_layout
23741
23742 \begin_layout Plain Layout
23743
23744 0.25
23745 \backslash
23746 varunit 0.317
23747 \backslash
23748 varunit
23749 \end_layout
23750
23751 \begin_layout Plain Layout
23752
23753 0.20
23754 \backslash
23755 varunit 0.342
23756 \backslash
23757 varunit
23758 \end_layout
23759
23760 \begin_layout Plain Layout
23761
23762 0.15
23763 \backslash
23764 varunit 0.373
23765 \backslash
23766 varunit
23767 \end_layout
23768
23769 \begin_layout Plain Layout
23770
23771 0.10
23772 \backslash
23773 varunit 0.410
23774 \backslash
23775 varunit
23776 \end_layout
23777
23778 \begin_layout Plain Layout
23779
23780 0.05
23781 \backslash
23782 varunit 0.453
23783 \backslash
23784 varunit
23785 \end_layout
23786
23787 \begin_layout Plain Layout
23788
23789 0.00
23790 \backslash
23791 varunit 0.500
23792 \backslash
23793 varunit
23794 \end_layout
23795
23796 \begin_layout Plain Layout
23797
23798 0.05
23799 \backslash
23800 varunit 0.453
23801 \backslash
23802 varunit
23803 \end_layout
23804
23805 \begin_layout Plain Layout
23806
23807 0.10
23808 \backslash
23809 varunit 0.410
23810 \backslash
23811 varunit
23812 \end_layout
23813
23814 \begin_layout Plain Layout
23815
23816 0.15
23817 \backslash
23818 varunit 0.373
23819 \backslash
23820 varunit
23821 \end_layout
23822
23823 \begin_layout Plain Layout
23824
23825 0.20
23826 \backslash
23827 varunit 0.342
23828 \backslash
23829 varunit
23830 \end_layout
23831
23832 \begin_layout Plain Layout
23833
23834 0.25
23835 \backslash
23836 varunit 0.317
23837 \backslash
23838 varunit
23839 \end_layout
23840
23841 \begin_layout Plain Layout
23842
23843 0.30
23844 \backslash
23845 varunit 0.300
23846 \backslash
23847 varunit
23848 \end_layout
23849
23850 \begin_layout Plain Layout
23851
23852 0.35
23853 \backslash
23854 varunit 0.293
23855 \backslash
23856 varunit
23857 \end_layout
23858
23859 \begin_layout Plain Layout
23860
23861 0.40
23862 \backslash
23863 varunit 0.300
23864 \backslash
23865 varunit
23866 \end_layout
23867
23868 \begin_layout Plain Layout
23869
23870 0.45
23871 \backslash
23872 varunit 0.332
23873 \backslash
23874 varunit
23875 \end_layout
23876
23877 \begin_layout Plain Layout
23878
23879 \end_layout
23880
23881 \end_inset
23882
23883 There are times when the tyranny of rectangular paragraphs must be overthrown.
23884  In such situations, a call to the delightful plain TeX command 
23885 \family typewriter
23886
23887 \backslash
23888 parshape
23889 \family default
23890  is called for.
23891  As you can see, completely arbitrary shapes can be laid out with a suitable
23892  set of linelength definitions.
23893  While this parshape may look a bit silly and useless, one could conceive
23894  of situations such as finely tuned dropped capitals, word wrapping around
23895  non-rectangular graphics, etc.
23896  which will benefit from such handcrafting.
23897 \end_layout
23898
23899 \begin_layout Standard
23900 \begin_inset VSpace bigskip
23901 \end_inset
23902
23903
23904 \end_layout
23905
23906 \begin_layout Standard
23907 The syntax is 
23908 \family typewriter
23909
23910 \backslash
23911 parshape numlines #1indent #1length #2indent #2length \SpecialChar \ldots{}
23912  #nindent #nlength
23913 \family default
23914 , where 
23915 \family typewriter
23916 numlines
23917 \family default
23918  is the number of lines of text which define the paragraph.
23919  If there turn out to be fewer lines, the shape is truncated; if there are
23920  more, the excess lines have the same dimensions as the last line of the
23921  definition.
23922  The 
23923 \family typewriter
23924 #nindent
23925 \family default
23926  and 
23927 \family typewriter
23928 #nlength
23929 \family default
23930  entries specify the indentation of the line from the left margin, and the
23931  length of the line as measured from that point.
23932  The shape applies only to the current paragraph; everything is reset to
23933  normal for the next paragraph.
23934 \end_layout
23935
23936 \begin_layout Standard
23937 \begin_inset ERT
23938 status collapsed
23939
23940 \begin_layout Plain Layout
23941
23942
23943 \backslash
23944 end{sloppypar}
23945 \end_layout
23946
23947 \end_inset
23948
23949
23950 \end_layout
23951
23952 \begin_layout Section
23953 Summary
23954 \end_layout
23955
23956 \begin_layout Standard
23957 As you can see, the examples in this section range from the useful to the
23958  whimsical.
23959  While I don't expect that anyone will ever need the paragraph shape demonstrate
23960 d in the last section, the important point is that you can do almost anything
23961  you want in LyX if you are willing to figure out how to do it in TeX and
23962  LaTeX.
23963  TeX is a fantastically powerful typesetting system and all that power is
23964  available to you since LyX uses it as its backend.
23965  Happy LyXing!
23966 \end_layout
23967
23968 \end_body
23969 \end_document